@kitman-sh/cli 0.10.53 → 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.
Files changed (31) hide show
  1. package/dist/{chunk-x9dhxfts.js → chunk-148mjppg.js} +5 -5
  2. package/dist/{chunk-mej2bx5n.js → chunk-19aqk325.js} +4 -4
  3. package/dist/{chunk-jafetf7z.js → chunk-3d6abgjh.js} +2 -2
  4. package/dist/{chunk-pp1p3g6e.js → chunk-4kssrezn.js} +6 -1
  5. package/dist/{chunk-ctasxxz5.js → chunk-5j3cxsnp.js} +10 -10
  6. package/dist/{chunk-7thnf14y.js → chunk-5y5axze6.js} +609 -6
  7. package/dist/{chunk-mbctzx7e.js → chunk-61k67vxh.js} +76 -1389
  8. package/dist/{chunk-arvwar2c.js → chunk-7evwar6b.js} +1 -1
  9. package/dist/{chunk-p6spvbwq.js → chunk-c0wrcam4.js} +30 -32
  10. package/dist/{chunk-eg8f5ncv.js → chunk-dkpqwk0q.js} +7 -7
  11. package/dist/{chunk-r8p3nxcp.js → chunk-eerh2t20.js} +10 -10
  12. package/dist/chunk-g7vk5tjp.js +1109 -0
  13. package/dist/{chunk-vjmz23rs.js → chunk-gwcqz1bj.js} +1 -1
  14. package/dist/{chunk-wh1pa2aa.js → chunk-m32wb6t0.js} +245 -108
  15. package/dist/{chunk-3bj7sc3v.js → chunk-mmetyep8.js} +7 -7
  16. package/dist/{chunk-30397r95.js → chunk-mtgkvbk4.js} +4 -4
  17. package/dist/{chunk-jagzz148.js → chunk-my987gxf.js} +20 -24
  18. package/dist/{chunk-dzh9e6n2.js → chunk-q0yna8sw.js} +52 -35
  19. package/dist/{chunk-6vns3ej0.js → chunk-rjfxnk05.js} +5 -5
  20. package/dist/{chunk-g5bs3f6z.js → chunk-twp7aprz.js} +4 -6
  21. package/dist/{chunk-x0b92bjb.js → chunk-vtn088tq.js} +6 -6
  22. package/dist/{chunk-b6thzgc9.js → chunk-wczs5vrq.js} +2 -2
  23. package/dist/{chunk-11p4wf6n.js → chunk-xgwjcq4z.js} +3 -3
  24. package/dist/{chunk-v290mf51.js → chunk-y48wz1sa.js} +157 -33
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
  27. package/dist/chunk-1mc9vgcr.js +0 -39
  28. package/dist/chunk-jfvq7s24.js +0 -145
  29. package/dist/chunk-txwt6r25.js +0 -1731
  30. package/dist/chunk-vyv0p5eq.js +0 -3183
  31. package/dist/chunk-z821b2gp.js +0 -164
@@ -8,7 +8,7 @@ import {
8
8
  isFunction2,
9
9
  isUndefined2,
10
10
  isObjectOrArray
11
- } from "./chunk-mbctzx7e.js";
11
+ } from "./chunk-61k67vxh.js";
12
12
 
13
13
  // packages/core/src/runtime-type.ts
14
14
  var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
@@ -5,7 +5,7 @@ import {
5
5
  isObject,
6
6
  isJsonObject,
7
7
  isString
8
- } from "./chunk-arvwar2c.js";
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
- make17,
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-mbctzx7e.js";
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-wh1pa2aa.js";
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-11p4wf6n.js";
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-7thnf14y.js";
276
- import"./chunk-g5bs3f6z.js";
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-x0b92bjb.js";
285
+ } from "./chunk-vtn088tq.js";
285
286
  import {
286
287
  writeSecretRegistry,
287
288
  secretRefusalLog,
288
289
  parseSecretRefusals
289
- } from "./chunk-jafetf7z.js";
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-jfvq7s24.js";
298
- import"./chunk-ctasxxz5.js";
297
+ } from "./chunk-g7vk5tjp.js";
298
+ import"./chunk-5j3cxsnp.js";
299
299
  import {
300
300
  nextInt
301
- } from "./chunk-vjmz23rs.js";
302
- import"./chunk-x9dhxfts.js";
301
+ } from "./chunk-gwcqz1bj.js";
303
302
  import {
304
303
  ChildProcessSpawner,
305
- make7
306
- } from "./chunk-3bj7sc3v.js";
307
- import"./chunk-1mc9vgcr.js";
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";
@@ -2432,20 +2430,20 @@ var requireKitCommands = (setup, runs) => gen(function* () {
2432
2430
  });
2433
2431
  var stepKitSetup = (agent, harness) => gen(function* () {
2434
2432
  const kits = agent.brief.kits ?? [];
2435
- if (kits.length === 0)
2436
- return;
2437
- const fetch = agent.setupArchive;
2438
2433
  const unavailable = (reason) => ({
2439
2434
  refused: failed("kit_setup_unavailable", `Kitman could not load the Run's Kit setup: ${reason}`)
2440
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;
2441
2441
  if (fetch === undefined)
2442
2442
  return unavailable("this Runner fetches no setup archives");
2443
- if (!isKitHarness(harness))
2444
- return unavailable(`no Kit setup renders for the ${harness} harness`);
2445
2443
  const setups = yield* forEach(kits, (kit) => fetch(kit.setupDigest).pipe(flatMap3(decodeSetupArchive), map8((archive) => ({ name: kit.name, version: kit.version, archive })))).pipe(result);
2446
2444
  if (isFailure(setups))
2447
2445
  return unavailable(setups.failure.message);
2448
- const setup = materializeKitSetup(harness, setups.success, agent.brief.listedSkills ?? []);
2446
+ const setup = materializeKitSetup(harness, [...setups.success, kitmanSkillEntry], agent.brief.listedSkills ?? []);
2449
2447
  for (const server of setup.mcpServers) {
2450
2448
  const missing = kitMcpSecretNames(server.transport).find((name) => agent.secrets?.[name] === undefined);
2451
2449
  if (missing !== undefined)
@@ -5494,7 +5492,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
5494
5492
  const input = yield* unbounded2();
5495
5493
  const pending = new Map;
5496
5494
  let lastId = 0;
5497
- const handle = yield* spawner.spawn(make7(binary, ["app-server"], {
5495
+ const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
5498
5496
  cwd: env.home,
5499
5497
  extendEnv: true,
5500
5498
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -5517,7 +5515,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
5517
5515
  return {
5518
5516
  request: (method, params) => gen(function* () {
5519
5517
  const id = ++lastId;
5520
- const deferred = yield* make17();
5518
+ const deferred = yield* make16();
5521
5519
  pending.set(id, deferred);
5522
5520
  yield* send({ id, method, params });
5523
5521
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -5657,7 +5655,7 @@ var handshake = [
5657
5655
  `).join("");
5658
5656
  var kitmanMcpPreflight = (mcp) => gen(function* () {
5659
5657
  const spawner = yield* ChildProcessSpawner;
5660
- const server = yield* spawner.spawn(make7(mcp.command, [...mcp.args], {
5658
+ const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
5661
5659
  extendEnv: true,
5662
5660
  env: mcp.env,
5663
5661
  stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
@@ -5733,7 +5731,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
5733
5731
  };
5734
5732
  const exitCode = sandbox === undefined ? yield* gen(function* () {
5735
5733
  const spawner = yield* ChildProcessSpawner;
5736
- const handle = yield* spawner.spawn(make7(input.bun ?? process.execPath, [file], {
5734
+ const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
5737
5735
  stdin: make11(new TextEncoder().encode(stdin)),
5738
5736
  stdout: "inherit",
5739
5737
  stderr: "inherit",
@@ -4,13 +4,13 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-ctasxxz5.js";
8
- import"./chunk-x9dhxfts.js";
9
- import"./chunk-wh1pa2aa.js";
10
- import"./chunk-11p4wf6n.js";
11
- import"./chunk-pp1p3g6e.js";
12
- import"./chunk-arvwar2c.js";
13
- import"./chunk-mbctzx7e.js";
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-mbctzx7e.js";
15
+ } from "./chunk-61k67vxh.js";
16
+ import"./chunk-4kssrezn.js";
16
17
  import {
17
18
  isJsonObject
18
- } from "./chunk-arvwar2c.js";
19
+ } from "./chunk-7evwar6b.js";
19
20
  import {
20
21
  FileSystem,
21
22
  Path
22
- } from "./chunk-11p4wf6n.js";
23
+ } from "./chunk-xgwjcq4z.js";
23
24
  import {
24
25
  tomlTableHeader2,
25
26
  tomlKeyPath2,
27
+ kitmanSkillEntry,
26
28
  isPathWithin2
27
- } from "./chunk-7thnf14y.js";
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-wh1pa2aa.js";
35
- import"./chunk-pp1p3g6e.js";
36
- import"./chunk-g5bs3f6z.js";
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));