@yolo-labs/yolobridge 0.24.0 → 0.25.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -1
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -208,7 +208,9 @@ export function parseAttachArgs(args) {
208
208
  * is the obvious default and is already what `--label` is usually set to
209
209
  * by hand. An explicit `--label` still wins.
210
210
  * - **`remoteHost` is assembled**: the launch directory, the OS platform
211
- * string, and which agent binary this attach drives.
211
+ * string, which agent binary this attach drives, and the daemon's own
212
+ * version — see `RemoteHostInfo.cliVersion` for why that last one is a
213
+ * capability signal rather than a nicety.
212
214
  *
213
215
  * What is deliberately NOT collected, and should not be added without its
214
216
  * own consent story: environment variables, anything listing the contents
@@ -218,12 +220,17 @@ export function parseAttachArgs(args) {
218
220
  */
219
221
  export function resolveAttachHostInfo(input) {
220
222
  const label = input.label?.trim();
223
+ const cliVersion = input.cliVersion?.trim();
221
224
  return {
222
225
  hostLabel: label || input.hostname.trim() || undefined,
223
226
  remoteHost: {
224
227
  cwd: input.cwd,
225
228
  platform: input.platform,
226
229
  agent: input.agent,
230
+ // Omitted rather than sent as 'unknown': a reader must be able to tell
231
+ // "this daemon does not report a version" from "it reports a version it
232
+ // could not determine", and only the first is a reason to hedge.
233
+ ...(cliVersion && cliVersion !== 'unknown' ? { cliVersion } : {}),
227
234
  },
228
235
  };
229
236
  }
@@ -310,6 +317,7 @@ async function cmdAttach(args) {
310
317
  cwd: spawnCwd,
311
318
  platform: process.platform,
312
319
  agent: resolvedAgentId,
320
+ cliVersion: readOwnVersion(),
313
321
  });
314
322
  let mcpProxyHandle;
315
323
  // argv fragment pointing the spawned agent at the local MCP proxy, or
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yolo-labs/yolobridge",
3
- "version": "0.24.0",
4
- "description": "YoloBridge local coding-agent daemon that attaches a user's own Claude Code/Codex session to a YOLO Studio workspace as a first-class tile (docs/YOLOBRIDGE_PLAN.md, build-order Phase 5).",
3
+ "version": "0.25.0",
4
+ "description": "YoloBridge \u2014 local coding-agent daemon that attaches a user's own Claude Code/Codex session to a YOLO Studio workspace as a first-class tile (docs/YOLOBRIDGE_PLAN.md, build-order Phase 5).",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {