@kitman-sh/cli 0.10.52 → 0.10.54
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/{chunk-x9dhxfts.js → chunk-148mjppg.js} +5 -5
- package/dist/{chunk-mej2bx5n.js → chunk-19aqk325.js} +4 -4
- package/dist/{chunk-jafetf7z.js → chunk-3d6abgjh.js} +2 -2
- package/dist/{chunk-pp1p3g6e.js → chunk-4kssrezn.js} +6 -1
- package/dist/{chunk-ctasxxz5.js → chunk-5j3cxsnp.js} +10 -10
- package/dist/{chunk-7thnf14y.js → chunk-5y5axze6.js} +609 -6
- package/dist/{chunk-mbctzx7e.js → chunk-61k67vxh.js} +76 -1389
- package/dist/{chunk-arvwar2c.js → chunk-7evwar6b.js} +1 -1
- package/dist/{chunk-dre9z977.js → chunk-c0wrcam4.js} +31 -32
- package/dist/{chunk-eg8f5ncv.js → chunk-dkpqwk0q.js} +7 -7
- package/dist/{chunk-r8p3nxcp.js → chunk-eerh2t20.js} +10 -10
- package/dist/chunk-g7vk5tjp.js +1109 -0
- package/dist/{chunk-vjmz23rs.js → chunk-gwcqz1bj.js} +1 -1
- package/dist/{chunk-wh1pa2aa.js → chunk-m32wb6t0.js} +245 -108
- package/dist/{chunk-3bj7sc3v.js → chunk-mmetyep8.js} +7 -7
- package/dist/{chunk-30397r95.js → chunk-mtgkvbk4.js} +4 -4
- package/dist/{chunk-jagzz148.js → chunk-my987gxf.js} +20 -24
- package/dist/{chunk-dzh9e6n2.js → chunk-q0yna8sw.js} +52 -35
- package/dist/{chunk-6vns3ej0.js → chunk-rjfxnk05.js} +5 -5
- package/dist/{chunk-g5bs3f6z.js → chunk-twp7aprz.js} +4 -6
- package/dist/{chunk-x0b92bjb.js → chunk-vtn088tq.js} +6 -6
- package/dist/{chunk-b6thzgc9.js → chunk-wczs5vrq.js} +2 -2
- package/dist/{chunk-11p4wf6n.js → chunk-xgwjcq4z.js} +3 -3
- package/dist/{chunk-fpmwm9bp.js → chunk-y48wz1sa.js} +157 -33
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-1mc9vgcr.js +0 -39
- package/dist/chunk-jfvq7s24.js +0 -145
- package/dist/chunk-txwt6r25.js +0 -1731
- package/dist/chunk-vyv0p5eq.js +0 -3183
- package/dist/chunk-z821b2gp.js +0 -164
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isObject,
|
|
6
6
|
isJsonObject,
|
|
7
7
|
isString
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7evwar6b.js";
|
|
9
9
|
import {
|
|
10
10
|
pipeArguments,
|
|
11
11
|
dual,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
isFailure2,
|
|
43
43
|
hasInterrupts,
|
|
44
44
|
makeUnsafe5,
|
|
45
|
-
|
|
45
|
+
make16,
|
|
46
46
|
_await,
|
|
47
47
|
fail5,
|
|
48
48
|
isDoneUnsafe,
|
|
@@ -154,7 +154,11 @@ import {
|
|
|
154
154
|
encodePrettyJsonString,
|
|
155
155
|
decodeJsonStringSync,
|
|
156
156
|
encodeUnknownJsonStringSync
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-61k67vxh.js";
|
|
158
|
+
import {
|
|
159
|
+
Id,
|
|
160
|
+
secretReference
|
|
161
|
+
} from "./chunk-4kssrezn.js";
|
|
158
162
|
import {
|
|
159
163
|
currentTimeMillis,
|
|
160
164
|
SecureRandom,
|
|
@@ -217,11 +221,7 @@ import {
|
|
|
217
221
|
installCommand,
|
|
218
222
|
checkServicesFile,
|
|
219
223
|
checkServices
|
|
220
|
-
} from "./chunk-
|
|
221
|
-
import {
|
|
222
|
-
Id,
|
|
223
|
-
secretReference
|
|
224
|
-
} from "./chunk-pp1p3g6e.js";
|
|
224
|
+
} from "./chunk-m32wb6t0.js";
|
|
225
225
|
import {
|
|
226
226
|
join,
|
|
227
227
|
interrupt,
|
|
@@ -257,12 +257,13 @@ import {
|
|
|
257
257
|
writeSrtSettings2,
|
|
258
258
|
srtStepArgv2,
|
|
259
259
|
srtArgv2
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-xgwjcq4z.js";
|
|
261
261
|
import {
|
|
262
262
|
writeAgentEnvironmentConfigFile2,
|
|
263
263
|
readManifestSkillPaths2,
|
|
264
264
|
tomlTableHeader2,
|
|
265
265
|
tomlKeyPath2,
|
|
266
|
+
kitmanSkillEntry,
|
|
266
267
|
SourceResolver,
|
|
267
268
|
withSourceResolutionCache2,
|
|
268
269
|
AgentEnvironmentMaterializationError2,
|
|
@@ -272,8 +273,8 @@ import {
|
|
|
272
273
|
applyAgentEnvironmentMaterialization2,
|
|
273
274
|
isPathWithin2,
|
|
274
275
|
skillIdentity2
|
|
275
|
-
} from "./chunk-
|
|
276
|
-
import"./chunk-
|
|
276
|
+
} from "./chunk-5y5axze6.js";
|
|
277
|
+
import"./chunk-twp7aprz.js";
|
|
277
278
|
import {
|
|
278
279
|
sliceBytes2,
|
|
279
280
|
maxLineBytes2,
|
|
@@ -281,31 +282,28 @@ import {
|
|
|
281
282
|
decodedOption2,
|
|
282
283
|
decoded2,
|
|
283
284
|
readOpencode2
|
|
284
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-vtn088tq.js";
|
|
285
286
|
import {
|
|
286
287
|
writeSecretRegistry,
|
|
287
288
|
secretRefusalLog,
|
|
288
289
|
parseSecretRefusals
|
|
289
|
-
} from "./chunk-
|
|
290
|
-
import"./chunk-txwt6r25.js";
|
|
290
|
+
} from "./chunk-3d6abgjh.js";
|
|
291
291
|
import {
|
|
292
292
|
uploadRunFile,
|
|
293
293
|
programLease,
|
|
294
294
|
rpcRunFiles,
|
|
295
295
|
programHostsEnv,
|
|
296
296
|
undeclaredHostsEnv
|
|
297
|
-
} from "./chunk-
|
|
298
|
-
import"./chunk-
|
|
297
|
+
} from "./chunk-g7vk5tjp.js";
|
|
298
|
+
import"./chunk-5j3cxsnp.js";
|
|
299
299
|
import {
|
|
300
300
|
nextInt
|
|
301
|
-
} from "./chunk-
|
|
302
|
-
import"./chunk-x9dhxfts.js";
|
|
301
|
+
} from "./chunk-gwcqz1bj.js";
|
|
303
302
|
import {
|
|
304
303
|
ChildProcessSpawner,
|
|
305
|
-
|
|
306
|
-
} from "./chunk-
|
|
307
|
-
import"./chunk-
|
|
308
|
-
import"./chunk-z821b2gp.js";
|
|
304
|
+
make3
|
|
305
|
+
} from "./chunk-mmetyep8.js";
|
|
306
|
+
import"./chunk-148mjppg.js";
|
|
309
307
|
|
|
310
308
|
// packages/core/src/sync-kit.ts
|
|
311
309
|
import { createHash } from "crypto";
|
|
@@ -1652,6 +1650,7 @@ var HarnessAdapters = [
|
|
|
1652
1650
|
CLAUDE_CODE_DISABLE_BUNDLED_SKILLS: "1",
|
|
1653
1651
|
CLAUDE_CODE_DISABLE_AUTO_MEMORY: "1",
|
|
1654
1652
|
CLAUDE_CODE_DISABLE_ADVISOR_TOOL: "1",
|
|
1653
|
+
CLAUDE_CODE_DISABLE_FEATURE_FLAGS: "1",
|
|
1655
1654
|
ENABLE_TOOL_SEARCH: "false"
|
|
1656
1655
|
},
|
|
1657
1656
|
mcpToolTimeout: { kind: "env", variables: ["MCP_TOOL_TIMEOUT", "CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT"], unit: "ms" },
|
|
@@ -2431,20 +2430,20 @@ var requireKitCommands = (setup, runs) => gen(function* () {
|
|
|
2431
2430
|
});
|
|
2432
2431
|
var stepKitSetup = (agent, harness) => gen(function* () {
|
|
2433
2432
|
const kits = agent.brief.kits ?? [];
|
|
2434
|
-
if (kits.length === 0)
|
|
2435
|
-
return;
|
|
2436
|
-
const fetch = agent.setupArchive;
|
|
2437
2433
|
const unavailable = (reason) => ({
|
|
2438
2434
|
refused: failed("kit_setup_unavailable", `Kitman could not load the Run's Kit setup: ${reason}`)
|
|
2439
2435
|
});
|
|
2436
|
+
if (!isKitHarness(harness))
|
|
2437
|
+
return kits.length === 0 ? undefined : unavailable(`no Kit setup renders for the ${harness} harness`);
|
|
2438
|
+
if (kits.length === 0)
|
|
2439
|
+
return materializeKitSetup(harness, [kitmanSkillEntry], agent.brief.listedSkills ?? []);
|
|
2440
|
+
const fetch = agent.setupArchive;
|
|
2440
2441
|
if (fetch === undefined)
|
|
2441
2442
|
return unavailable("this Runner fetches no setup archives");
|
|
2442
|
-
if (!isKitHarness(harness))
|
|
2443
|
-
return unavailable(`no Kit setup renders for the ${harness} harness`);
|
|
2444
2443
|
const setups = yield* forEach(kits, (kit) => fetch(kit.setupDigest).pipe(flatMap3(decodeSetupArchive), map8((archive) => ({ name: kit.name, version: kit.version, archive })))).pipe(result);
|
|
2445
2444
|
if (isFailure(setups))
|
|
2446
2445
|
return unavailable(setups.failure.message);
|
|
2447
|
-
const setup = materializeKitSetup(harness, setups.success, agent.brief.listedSkills ?? []);
|
|
2446
|
+
const setup = materializeKitSetup(harness, [...setups.success, kitmanSkillEntry], agent.brief.listedSkills ?? []);
|
|
2448
2447
|
for (const server of setup.mcpServers) {
|
|
2449
2448
|
const missing = kitMcpSecretNames(server.transport).find((name) => agent.secrets?.[name] === undefined);
|
|
2450
2449
|
if (missing !== undefined)
|
|
@@ -5493,7 +5492,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
5493
5492
|
const input = yield* unbounded2();
|
|
5494
5493
|
const pending = new Map;
|
|
5495
5494
|
let lastId = 0;
|
|
5496
|
-
const handle = yield* spawner.spawn(
|
|
5495
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
5497
5496
|
cwd: env.home,
|
|
5498
5497
|
extendEnv: true,
|
|
5499
5498
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -5516,7 +5515,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
5516
5515
|
return {
|
|
5517
5516
|
request: (method, params) => gen(function* () {
|
|
5518
5517
|
const id = ++lastId;
|
|
5519
|
-
const deferred = yield*
|
|
5518
|
+
const deferred = yield* make16();
|
|
5520
5519
|
pending.set(id, deferred);
|
|
5521
5520
|
yield* send({ id, method, params });
|
|
5522
5521
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -5656,7 +5655,7 @@ var handshake = [
|
|
|
5656
5655
|
`).join("");
|
|
5657
5656
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
5658
5657
|
const spawner = yield* ChildProcessSpawner;
|
|
5659
|
-
const server = yield* spawner.spawn(
|
|
5658
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
5660
5659
|
extendEnv: true,
|
|
5661
5660
|
env: mcp.env,
|
|
5662
5661
|
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
@@ -5732,7 +5731,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
5732
5731
|
};
|
|
5733
5732
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
5734
5733
|
const spawner = yield* ChildProcessSpawner;
|
|
5735
|
-
const handle = yield* spawner.spawn(
|
|
5734
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
5736
5735
|
stdin: make11(new TextEncoder().encode(stdin)),
|
|
5737
5736
|
stdout: "inherit",
|
|
5738
5737
|
stderr: "inherit",
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-5j3cxsnp.js";
|
|
8
|
+
import"./chunk-148mjppg.js";
|
|
9
|
+
import"./chunk-m32wb6t0.js";
|
|
10
|
+
import"./chunk-4kssrezn.js";
|
|
11
|
+
import"./chunk-7evwar6b.js";
|
|
12
|
+
import"./chunk-xgwjcq4z.js";
|
|
13
|
+
import"./chunk-61k67vxh.js";
|
|
14
14
|
export {
|
|
15
15
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
16
16
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -12,30 +12,30 @@ import {
|
|
|
12
12
|
orElseSucceed,
|
|
13
13
|
decodeJsonString,
|
|
14
14
|
encodePrettyJsonString
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-61k67vxh.js";
|
|
16
|
+
import"./chunk-4kssrezn.js";
|
|
16
17
|
import {
|
|
17
18
|
isJsonObject
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7evwar6b.js";
|
|
19
20
|
import {
|
|
20
21
|
FileSystem,
|
|
21
22
|
Path
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-xgwjcq4z.js";
|
|
23
24
|
import {
|
|
24
25
|
tomlTableHeader2,
|
|
25
26
|
tomlKeyPath2,
|
|
27
|
+
kitmanSkillEntry,
|
|
26
28
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5y5axze6.js";
|
|
28
30
|
import {
|
|
29
31
|
instructionsStart,
|
|
30
32
|
instructionsEnd,
|
|
31
33
|
renderMcpServer,
|
|
32
34
|
materializeKitSetup,
|
|
33
35
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-3bj7sc3v.js";
|
|
38
|
-
import"./chunk-z821b2gp.js";
|
|
36
|
+
} from "./chunk-m32wb6t0.js";
|
|
37
|
+
import"./chunk-twp7aprz.js";
|
|
38
|
+
import"./chunk-mmetyep8.js";
|
|
39
39
|
|
|
40
40
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
41
41
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -122,7 +122,7 @@ var codexConfigKept = (text, servers) => {
|
|
|
122
122
|
var syncKitSetup = (input) => gen(function* () {
|
|
123
123
|
const fs = yield* FileSystem;
|
|
124
124
|
const path = yield* Path;
|
|
125
|
-
const setup = materializeKitSetup(input.harness, input.kits);
|
|
125
|
+
const setup = materializeKitSetup(input.harness, [...input.kits, kitmanSkillEntry]);
|
|
126
126
|
const layout = layoutOf(path, input.harness, input.home);
|
|
127
127
|
const skillsDir = path.join(layout.root, setup.skillsRoot);
|
|
128
128
|
const write = (file, content) => andThen2(fs.makeDirectory(path.dirname(file), { recursive: true }), isUint8Array(content) ? fs.writeFile(file, content) : fs.writeFileString(file, content));
|