@cabane/companion 0.6.190 → 0.6.192
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 +11 -10
- package/dist/runtime.js +1 -5
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -5845,8 +5845,6 @@ var init_run_spec2 = __esm({
|
|
|
5845
5845
|
TURN_CONTROL_MCP_SERVER2 = "cabane_companion";
|
|
5846
5846
|
ACTIVE_CONVERSATION_HEADER3 = "x-cabane-active-conversation";
|
|
5847
5847
|
ENV_ENVELOPE_KEYS = [
|
|
5848
|
-
"CABANE_PLAYGROUND",
|
|
5849
|
-
"CABANE_PLAYGROUND_BIN",
|
|
5850
5848
|
"CABANE_CONVERSATION_ID",
|
|
5851
5849
|
"CABANE_AGENT_ID",
|
|
5852
5850
|
"CABANE_CONVERSATION_TITLE"
|
|
@@ -7547,9 +7545,11 @@ function required(env, name) {
|
|
|
7547
7545
|
function runnerPlace(env) {
|
|
7548
7546
|
const workRoot2 = env[PLACE_ENV.workRoot];
|
|
7549
7547
|
const transcriptDir = env[PLACE_ENV.transcriptDir];
|
|
7548
|
+
const box = env[PLACE_ENV.box];
|
|
7550
7549
|
return {
|
|
7551
7550
|
...workRoot2 ? { workRoot: workRoot2 } : {},
|
|
7552
|
-
...transcriptDir ? { transcriptDir } : {}
|
|
7551
|
+
...transcriptDir ? { transcriptDir } : {},
|
|
7552
|
+
...box ? { box } : {}
|
|
7553
7553
|
};
|
|
7554
7554
|
}
|
|
7555
7555
|
function parseRunnerInput(env, stdin) {
|
|
@@ -7631,7 +7631,8 @@ var init_protocol = __esm({
|
|
|
7631
7631
|
};
|
|
7632
7632
|
PLACE_ENV = {
|
|
7633
7633
|
workRoot: "CABANE_WORK_ROOT",
|
|
7634
|
-
transcriptDir: "CABANE_TRANSCRIPT_DIR"
|
|
7634
|
+
transcriptDir: "CABANE_TRANSCRIPT_DIR",
|
|
7635
|
+
box: "CABANE_BOX"
|
|
7635
7636
|
};
|
|
7636
7637
|
runtimeHealthSchema = z14.object({
|
|
7637
7638
|
quotaState: z14.enum(["ok", "limited", "auth_expired", "unknown"]),
|
|
@@ -7702,8 +7703,7 @@ function runnerExecEnv(base, boxed) {
|
|
|
7702
7703
|
const env = {};
|
|
7703
7704
|
for (const [k, v] of Object.entries(base)) {
|
|
7704
7705
|
if (v === void 0) continue;
|
|
7705
|
-
if (boxed &&
|
|
7706
|
-
continue;
|
|
7706
|
+
if (boxed && BOXED_ENV_DROPPED.includes(k)) continue;
|
|
7707
7707
|
env[k] = v;
|
|
7708
7708
|
}
|
|
7709
7709
|
return env;
|
|
@@ -8041,7 +8041,7 @@ async function runTurnInRunner(opts, launch, duties, payload, handleOpts) {
|
|
|
8041
8041
|
duties.notifyEnd({ id: payload.messageId, ok: false, durationMs, reason });
|
|
8042
8042
|
return { ok: false, durationMs, reason };
|
|
8043
8043
|
}
|
|
8044
|
-
var BOXED_ENV_DROPPED,
|
|
8044
|
+
var BOXED_ENV_DROPPED, PINO_LEVELS;
|
|
8045
8045
|
var init_launch = __esm({
|
|
8046
8046
|
"src/runner/launch.ts"() {
|
|
8047
8047
|
"use strict";
|
|
@@ -8061,7 +8061,6 @@ var init_launch = __esm({
|
|
|
8061
8061
|
"DBUS_SESSION_BUS_ADDRESS",
|
|
8062
8062
|
"XDG_RUNTIME_DIR"
|
|
8063
8063
|
];
|
|
8064
|
-
BOXED_ENV_DROPPED_PREFIX = "CABANE_GATE_";
|
|
8065
8064
|
PINO_LEVELS = {
|
|
8066
8065
|
10: "trace",
|
|
8067
8066
|
20: "debug",
|
|
@@ -9582,7 +9581,7 @@ var init_turn_execution = __esm({
|
|
|
9582
9581
|
async prepareEnvironment() {
|
|
9583
9582
|
const { payload, workspaceId, turnId, turnLog } = this;
|
|
9584
9583
|
const prepareHook = this.opts.local.prepareHook;
|
|
9585
|
-
const pairDir = pairDirectory(this.opts.workRoot, {
|
|
9584
|
+
const pairDir = this.opts.boxed ? this.opts.workRoot : pairDirectory(this.opts.workRoot, {
|
|
9586
9585
|
workspaceSlug: this.opts.workspaceSlug,
|
|
9587
9586
|
agentUsername: this.opts.agentUsername,
|
|
9588
9587
|
conversationId: payload.conversationId
|
|
@@ -10808,8 +10807,10 @@ function runnerTurnOptions(input, log2, emit, extras = {}) {
|
|
|
10808
10807
|
local: spec.local,
|
|
10809
10808
|
// The place the runner stands in names its own root and transcript
|
|
10810
10809
|
// directory when it has them (`PLACE_ENV`); the launcher's host-computed
|
|
10811
|
-
// values are what a runner on the person's own machine gets.
|
|
10810
|
+
// values are what a runner on the person's own machine gets. A box is one
|
|
10811
|
+
// conversation × agent's, so the turn stands in its root itself.
|
|
10812
10812
|
workRoot: input.place?.workRoot ?? spec.workRoot,
|
|
10813
|
+
...input.place?.box ? { boxed: true } : {},
|
|
10813
10814
|
runConfig: spec.runConfig,
|
|
10814
10815
|
// The launcher's copy of the device's secrets, when it sent one: a runner
|
|
10815
10816
|
// in a box has no `secrets.json` to read.
|
package/dist/runtime.js
CHANGED
|
@@ -5898,8 +5898,6 @@ var CABANE_MCP_SERVER3 = "cabane";
|
|
|
5898
5898
|
var TURN_CONTROL_MCP_SERVER2 = "cabane_companion";
|
|
5899
5899
|
var ACTIVE_CONVERSATION_HEADER3 = "x-cabane-active-conversation";
|
|
5900
5900
|
var ENV_ENVELOPE_KEYS = [
|
|
5901
|
-
"CABANE_PLAYGROUND",
|
|
5902
|
-
"CABANE_PLAYGROUND_BIN",
|
|
5903
5901
|
"CABANE_CONVERSATION_ID",
|
|
5904
5902
|
"CABANE_AGENT_ID",
|
|
5905
5903
|
"CABANE_CONVERSATION_TITLE"
|
|
@@ -7541,13 +7539,11 @@ var BOXED_ENV_DROPPED = [
|
|
|
7541
7539
|
"DBUS_SESSION_BUS_ADDRESS",
|
|
7542
7540
|
"XDG_RUNTIME_DIR"
|
|
7543
7541
|
];
|
|
7544
|
-
var BOXED_ENV_DROPPED_PREFIX = "CABANE_GATE_";
|
|
7545
7542
|
function runnerExecEnv(base, boxed) {
|
|
7546
7543
|
const env = {};
|
|
7547
7544
|
for (const [k, v] of Object.entries(base)) {
|
|
7548
7545
|
if (v === void 0) continue;
|
|
7549
|
-
if (boxed &&
|
|
7550
|
-
continue;
|
|
7546
|
+
if (boxed && BOXED_ENV_DROPPED.includes(k)) continue;
|
|
7551
7547
|
env[k] = v;
|
|
7552
7548
|
}
|
|
7553
7549
|
return env;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabane/companion",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.192",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Cabane Companion (headless): connect an 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",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"prepublishOnly": "pnpm build"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
33
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.303",
|
|
34
34
|
"@clack/prompts": "1.8.1",
|
|
35
|
-
"@openai/codex-sdk": "0.
|
|
35
|
+
"@openai/codex-sdk": "0.163.0",
|
|
36
36
|
"@hono/node-server": "1.19.14",
|
|
37
37
|
"commander": "12.1.0",
|
|
38
38
|
"eventsource-parser": "3.0.8",
|