lc пре 3 недеља
родитељ
комит
a887bc936b
1 измењених фајлова са 42 додато и 0 уклоњено
  1. 42 0
      README.md

+ 42 - 0
README.md

@@ -0,0 +1,42 @@
+# opencode-config
+
+Global OpenCode configuration: settings, MCP servers, plugins, and skills wiring.
+
+## Replicate on a new machine
+
+```bash
+# 1. Clone this config (replace <token> with a Gogs access token)
+git clone https://gogadmin:<token>@git.algometic.com/gogadmin/opencode-config.git ~/.config/opencode
+
+# 2. Install plugin dependencies (needed by plugins/rtk.ts)
+cd ~/.config/opencode && npm install
+
+# 3. Clone the skills repo (public, referenced by opencode.jsonc)
+git clone https://github.com/anthropics/skills ~/.config/opencode/skills-repo
+```
+
+## What's in here
+
+| Path | Purpose |
+|---|---|
+| `opencode.jsonc` | Skills path + MCP servers (postgres, flymcp) |
+| `config.json` | Local Qwen provider (`qwen-local/qwen3.8`) and default model |
+| `plugins/rtk.ts` | RTK plugin — requires `rtk >= 0.23.0` in PATH |
+| `package.json` | Plugin dependency: `@opencode-ai/plugin` |
+
+## Per-machine adjustments after cloning
+
+- **flymcp**: `opencode.jsonc` points at `/home/i78700es/.local/bin/flymcp` — install flymcp and fix the path if the user/home differs.
+- **postgres MCP**: connects to `postgres://localhost:5432/mcp` (sandbox creds in `opencode.jsonc`) — make sure the local postgres sandbox is running, or update the URL.
+- **Qwen provider**: `config.json` targets `http://192.168.1.38:8284/v1` — adjust if the local model server moves.
+- **rtk**: install `rtk >= 0.23.0` in PATH so the plugin's command rewrites work.
+
+## Keeping in sync
+
+```bash
+cd ~/.config/opencode
+git pull          # get updates
+git add -A && git commit -m "..." && git push   # publish changes
+```
+
+For continuous sync, point Syncthing (or rsync over cron) at `~/.config/opencode/` — the `.gitignore` already excludes `node_modules/` and `skills-repo/`.