Initial import: opencode Chrome extension + native host (browser MCP bridge)

This commit is contained in:
ner committed 2026-11-25 18:46:48 +02:00
commit ee5b79570c
41 files changed
+6845

No files matched your search

+10
View File
@@ -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