@cabane/companion 0.6.136 → 0.6.139
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/dist/cli.js +10 -1
- package/dist/pairing-config.js +10 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -12517,9 +12517,18 @@ async function postJson(baseUrl, path, body) {
|
|
|
12517
12517
|
}
|
|
12518
12518
|
function requestEnrollmentCode(baseUrl, opts = {}) {
|
|
12519
12519
|
return postJson(baseUrl, "/api/device-enrollment/code", {
|
|
12520
|
-
...opts.label ? { label: opts.label } : {}
|
|
12520
|
+
...opts.label ? { label: opts.label } : {},
|
|
12521
|
+
...hostFacts()
|
|
12521
12522
|
});
|
|
12522
12523
|
}
|
|
12524
|
+
function hostFacts() {
|
|
12525
|
+
const nodeMajor = Number.parseInt(process.versions.node.split(".")[0] ?? "", 10);
|
|
12526
|
+
return {
|
|
12527
|
+
platform: process.platform,
|
|
12528
|
+
arch: process.arch,
|
|
12529
|
+
...Number.isInteger(nodeMajor) ? { nodeMajor } : {}
|
|
12530
|
+
};
|
|
12531
|
+
}
|
|
12523
12532
|
function deviceLabelFromHostname(hostname5) {
|
|
12524
12533
|
const trimmed = hostname5.trim().replace(/\.local$/i, "");
|
|
12525
12534
|
if (trimmed.length === 0) return void 0;
|
package/dist/pairing-config.js
CHANGED
|
@@ -453,9 +453,18 @@ async function postJson(baseUrl, path, body) {
|
|
|
453
453
|
}
|
|
454
454
|
function requestEnrollmentCode(baseUrl, opts = {}) {
|
|
455
455
|
return postJson(baseUrl, "/api/device-enrollment/code", {
|
|
456
|
-
...opts.label ? { label: opts.label } : {}
|
|
456
|
+
...opts.label ? { label: opts.label } : {},
|
|
457
|
+
...hostFacts()
|
|
457
458
|
});
|
|
458
459
|
}
|
|
460
|
+
function hostFacts() {
|
|
461
|
+
const nodeMajor = Number.parseInt(process.versions.node.split(".")[0] ?? "", 10);
|
|
462
|
+
return {
|
|
463
|
+
platform: process.platform,
|
|
464
|
+
arch: process.arch,
|
|
465
|
+
...Number.isInteger(nodeMajor) ? { nodeMajor } : {}
|
|
466
|
+
};
|
|
467
|
+
}
|
|
459
468
|
function pollOnce(baseUrl, deviceCode) {
|
|
460
469
|
return postJson(baseUrl, "/api/device-enrollment/poll", { deviceCode });
|
|
461
470
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabane/companion",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.139",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Cabane Companion (headless): connect a coding agent on your machine to your Cabane workspace as a responder — drive work against your own codebase, files, and MCP servers without putting any of it in Cabane.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"prepublishOnly": "pnpm build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
32
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.283",
|
|
33
33
|
"@anthropic-ai/sandbox-runtime": "0.0.77",
|
|
34
|
-
"@openai/codex-sdk": "0.
|
|
34
|
+
"@openai/codex-sdk": "0.158.0",
|
|
35
35
|
"@hono/node-server": "1.19.14",
|
|
36
36
|
"@inquirer/prompts": "7.10.1",
|
|
37
37
|
"commander": "12.1.0",
|