Initial import: opencode Chrome extension + native host (browser MCP bridge)
This commit is contained in:
commit
ee5b79570c
41 files changed
+6845
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Optional component: adds the llama.cpp provider to the user's opencode config.
|
||||
APP="/Library/Application Support/opencode-browser"
|
||||
USER_NAME="$(stat -f%Su /dev/console)"
|
||||
if [ -z "$USER_NAME" ] || [ "$USER_NAME" = "root" ] || [ "$USER_NAME" = "loginwindow" ]; then
|
||||
exit 0
|
||||
fi
|
||||
USER_HOME="$(dscl . -read "/Users/$USER_NAME" NFSHomeDirectory | awk '{print $2}')"
|
||||
sudo -u "$USER_NAME" HOME="$USER_HOME" "$APP/bin/node" "$APP/user-setup.mjs" llama "$APP" || true
|
||||
exit 0
|
||||
Reference in new issue
Block a user