@cabane/companion 0.6.187 → 0.6.189
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 +489 -243
- package/dist/launch.js +9 -1
- package/dist/pairing-config.js +9 -1
- package/dist/runtime.js +264 -188
- package/package.json +1 -1
package/dist/launch.js
CHANGED
|
@@ -196,7 +196,15 @@ var companionConfigSchema = z2.object({
|
|
|
196
196
|
// and an agent with no folder of its own and no prepare hook works there
|
|
197
197
|
// (`turn-execution.ts`, `prepareEnvironment`). Default `~/.cabane/work`: hidden, so pairing a
|
|
198
198
|
// laptop creates no new visible folder; set it to make the work visible.
|
|
199
|
-
root: z2.string().min(1).refine(isRootPath, { message: "must be an absolute path, or start with ~/" }).optional()
|
|
199
|
+
root: z2.string().min(1).refine(isRootPath, { message: "must be an absolute path, or start with ~/" }).optional(),
|
|
200
|
+
// An argv prefix the operator puts in front of every turn's runner: the companion starts
|
|
201
|
+
// `<prefix…> <its own run-turn command…>` instead of the runner bare. What the prefix does
|
|
202
|
+
// is the operator's (a box of their own making, ENG225); the companion knows nothing of it
|
|
203
|
+
// beyond handing the runner over, with the turn's inputs in its environment and the
|
|
204
|
+
// credential and secrets on its stdin (`runner/launch.ts`, `boxed`).
|
|
205
|
+
runner: z2.object({
|
|
206
|
+
command: z2.array(z2.string().min(1)).min(1)
|
|
207
|
+
}).strict().optional()
|
|
200
208
|
});
|
|
201
209
|
var legacyOfferSchema = z2.object({
|
|
202
210
|
claudeCode: z2.object({ enabled: z2.boolean().optional() }).passthrough().optional(),
|
package/dist/pairing-config.js
CHANGED
|
@@ -221,7 +221,15 @@ var companionConfigSchema = z2.object({
|
|
|
221
221
|
// and an agent with no folder of its own and no prepare hook works there
|
|
222
222
|
// (`turn-execution.ts`, `prepareEnvironment`). Default `~/.cabane/work`: hidden, so pairing a
|
|
223
223
|
// laptop creates no new visible folder; set it to make the work visible.
|
|
224
|
-
root: z2.string().min(1).refine(isRootPath, { message: "must be an absolute path, or start with ~/" }).optional()
|
|
224
|
+
root: z2.string().min(1).refine(isRootPath, { message: "must be an absolute path, or start with ~/" }).optional(),
|
|
225
|
+
// An argv prefix the operator puts in front of every turn's runner: the companion starts
|
|
226
|
+
// `<prefix…> <its own run-turn command…>` instead of the runner bare. What the prefix does
|
|
227
|
+
// is the operator's (a box of their own making, ENG225); the companion knows nothing of it
|
|
228
|
+
// beyond handing the runner over, with the turn's inputs in its environment and the
|
|
229
|
+
// credential and secrets on its stdin (`runner/launch.ts`, `boxed`).
|
|
230
|
+
runner: z2.object({
|
|
231
|
+
command: z2.array(z2.string().min(1)).min(1)
|
|
232
|
+
}).strict().optional()
|
|
225
233
|
});
|
|
226
234
|
function retiredConfigKeys(raw) {
|
|
227
235
|
if (!raw || typeof raw !== "object") return [];
|