@shadowob/connector 1.1.17 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,6 +16,12 @@ npx @shadowob/connector@latest --daemon \
16
16
 
17
17
  The daemon connects this computer once, scans supported runtimes, sends heartbeats to Shadow, claims Buddy setup jobs, and configures the selected runtime. Supported runtime detection currently includes OpenClaw, Hermes Agent, Claude Code, Codex CLI, OpenCode, Gemini CLI, Cursor CLI, Kimi CLI, Copilot CLI, and Antigravity CLI.
18
18
 
19
+ Desktop builds run the connector through Electron's Node runtime. If the user's
20
+ machine does not have Node/npm, the connector downloads a verified official
21
+ Node.js runtime under `~/.shadowob/connector/node/`, installs Shadow CLI tools
22
+ under `~/.shadowob/connector/node-global/`, and adds that toolchain plus nvm,
23
+ login-shell, and common user bin directories to the runtime `PATH`.
24
+
19
25
  Use `--once` to run one heartbeat/job pass for debugging, and `--poll-interval-ms` to tune the loop interval.
20
26
 
21
27
  Print a plan:
@@ -66,6 +72,22 @@ npx @shadowob/connector@latest update --target cc-connect --server-url https://s
66
72
 
67
73
  Existing model providers, plugins, projects, platforms, and unrelated keys are preserved.
68
74
 
75
+ When Shadow's official model proxy is enabled on the server, daemon-created
76
+ Buddy setup jobs also include an OpenAI-compatible provider. The connector
77
+ writes it into OpenClaw/Hermes/cc-connect config so a newly installed desktop
78
+ Buddy has a usable default LLM provider without asking the user for an API key.
79
+ Manual runs can pass the same values explicitly:
80
+
81
+ ```bash
82
+ npx @shadowob/connector@latest connect \
83
+ --target cc-connect \
84
+ --server-url https://shadowob.com \
85
+ --token buddy-token \
86
+ --model-provider-base-url https://shadowob.com/api/ai/v1 \
87
+ --model-provider-api-key model-proxy-token \
88
+ --model-provider-model deepseek-v4-flash
89
+ ```
90
+
69
91
  ## OpenClaw
70
92
 
71
93
  ```bash
@@ -86,6 +108,10 @@ openclaw gateway restart
86
108
 
87
109
  OpenClaw resolves the Buddy identity from the token and pulls channel policy dynamically from Shadow.
88
110
 
111
+ Reference: OpenClaw's plugin documentation covers `openclaw plugins install`,
112
+ managed plugin roots, and repair/update behavior:
113
+ https://docs.openclaw.ai/plugins
114
+
89
115
  ## Hermes Agent
90
116
 
91
117
  ```bash
@@ -128,10 +154,15 @@ export SHADOW_HEARTBEAT_INTERVAL_SECONDS=30
128
154
  export SHADOW_SLASH_COMMANDS_JSON='[]'
129
155
  ```
130
156
 
157
+ For the official model proxy, Hermes receives `model.provider: custom`,
158
+ `model.base_url`, and `model.default` in `~/.hermes/config.yaml`. This follows
159
+ Hermes' documented custom OpenAI-compatible endpoint shape:
160
+ https://hermes-agent.nousresearch.com/docs/integrations/providers
161
+
131
162
  ## cc-connect
132
163
 
133
164
  The connector uses the ShadowOB-capable fork
134
- `buggyblues/cc-connect@63b5d59`. It does not install the official npm
165
+ `buggyblues/cc-connect@f382563`. It does not install the official npm
135
166
  `cc-connect` package, because the npm package currently points to the upstream
136
167
  `chenhg5/cc-connect` release line.
137
168
 
@@ -151,9 +182,16 @@ With `--install`, the CLI first tries the fork's GitHub release asset matching
151
182
  the local OS/CPU and verifies its pinned SHA-256. If the fork release asset is
152
183
  missing or does not match, it pulls the pinned source archive, builds a `no_web`
153
184
  Go binary, caches it under
154
- `~/.shadowob/connector/cc-connect/63b5d59/bin/`, and starts that binary when
185
+ `~/.shadowob/connector/cc-connect/f382563/bin/`, and starts that binary when
155
186
  `--start` is present.
156
187
 
188
+ The fork is published as GitHub release
189
+ https://github.com/buggyblues/cc-connect/releases/tag/v1.3.3-beta.7. It is
190
+ merged from upstream `chenhg5/cc-connect` and preserves the ShadowOB platform.
191
+ Upstream usage docs cover supported agents, providers, `/model`, `/dir`, voice,
192
+ attachments, cron, daemon mode, and web management:
193
+ https://github.com/chenhg5/cc-connect/blob/main/docs/usage.zh-CN.md
194
+
157
195
  Equivalent TOML:
158
196
 
159
197
  ```toml
@@ -167,6 +205,17 @@ type = "codex"
167
205
 
168
206
  [projects.agent.options]
169
207
  work_dir = "."
208
+ provider = "shadow-official"
209
+ model = "deepseek-v4-flash"
210
+
211
+ [[projects.agent.providers]]
212
+ name = "shadow-official"
213
+ api_key = "model-proxy-token"
214
+ base_url = "https://shadowob.com/api/ai/v1"
215
+ model = "deepseek-v4-flash"
216
+
217
+ [[projects.agent.providers.models]]
218
+ model = "deepseek-v4-flash"
170
219
 
171
220
  [[projects.platforms]]
172
221
  type = "shadowob"