@kitman-sh/cli 0.14.7 → 0.14.8

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.
@@ -33,7 +33,6 @@ import {
33
33
  Json,
34
34
  encodePrettyJsonString
35
35
  } from "./chunk-zpp4jg4a.js";
36
- import"./chunk-8k6adfg7.js";
37
36
  import {
38
37
  SecureRandom,
39
38
  layerWebCrypto,
@@ -45,7 +44,7 @@ import {
45
44
  layer4,
46
45
  kitmanMcpServer,
47
46
  RunnerRpcProtocolVersion
48
- } from "./chunk-aj2608jz.js";
47
+ } from "./chunk-xfs1nf75.js";
49
48
  import {
50
49
  decodeText,
51
50
  mkString,
@@ -57,19 +56,20 @@ import {
57
56
  import {
58
57
  Packument,
59
58
  tarballMatches
60
- } from "./chunk-qkh0dhad.js";
61
- import"./chunk-s7rhz991.js";
59
+ } from "./chunk-q0x3c0dh.js";
60
+ import"./chunk-drp4zdwq.js";
62
61
  import {
63
62
  AgentDeclaration,
64
63
  KitDeclarations,
65
64
  describeFlag,
66
65
  Described
67
- } from "./chunk-d2bqqd9t.js";
66
+ } from "./chunk-hrtr5wfq.js";
68
67
  import {
69
68
  ChildProcessSpawner,
70
69
  make3
71
70
  } from "./chunk-79g5zh2p.js";
72
- import"./chunk-9yenzg12.js";
71
+ import"./chunk-dq21ab8w.js";
72
+ import"./chunk-9avbsbvk.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-aj2608jz.js";
39
+ } from "./chunk-xfs1nf75.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-qkh0dhad.js";
42
+ } from "./chunk-q0x3c0dh.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-aj2608jz.js";
15
+ } from "./chunk-xfs1nf75.js";
16
16
  import"./chunk-bdd62njv.js";
17
17
  import"./chunk-zpp4jg4a.js";
18
18
  export {
@@ -170,11 +170,6 @@ import {
170
170
  encodeUnknownJsonStringSync,
171
171
  storable
172
172
  } from "./chunk-zpp4jg4a.js";
173
- import {
174
- Id,
175
- secretReference,
176
- secretPlaceholder
177
- } from "./chunk-8k6adfg7.js";
178
173
  import {
179
174
  SecureRandom,
180
175
  layerWebCrypto,
@@ -254,7 +249,7 @@ import {
254
249
  checkServicesFile,
255
250
  checkServices,
256
251
  serviceChecks
257
- } from "./chunk-aj2608jz.js";
252
+ } from "./chunk-xfs1nf75.js";
258
253
  import {
259
254
  currentTimeMillis,
260
255
  join,
@@ -316,8 +311,8 @@ import {
316
311
  applyAgentEnvironmentMaterialization2,
317
312
  isPathWithin2,
318
313
  skillIdentity2
319
- } from "./chunk-cn86thbx.js";
320
- import"./chunk-qkh0dhad.js";
314
+ } from "./chunk-5wrhj4cj.js";
315
+ import"./chunk-q0x3c0dh.js";
321
316
  import {
322
317
  egressAllowed,
323
318
  writeSecretRegistry,
@@ -327,7 +322,7 @@ import {
327
322
  secretFilter2,
328
323
  opaqueTunnelRefusal2,
329
324
  isOpaqueConnectReason2
330
- } from "./chunk-y6njjend.js";
325
+ } from "./chunk-y0y2gg8d.js";
331
326
  import {
332
327
  sliceBytes2,
333
328
  maxLineBytes2,
@@ -342,8 +337,8 @@ import {
342
337
  rpcRunFiles,
343
338
  programHostsEnv,
344
339
  undeclaredHostsEnv
345
- } from "./chunk-d2bqqd9t.js";
346
- import"./chunk-s7rhz991.js";
340
+ } from "./chunk-hrtr5wfq.js";
341
+ import"./chunk-drp4zdwq.js";
347
342
  import {
348
343
  nextInt
349
344
  } from "./chunk-bbf0jzsc.js";
@@ -351,7 +346,12 @@ import {
351
346
  ChildProcessSpawner,
352
347
  make3
353
348
  } from "./chunk-79g5zh2p.js";
354
- import"./chunk-9yenzg12.js";
349
+ import"./chunk-dq21ab8w.js";
350
+ import {
351
+ Id,
352
+ secretReference,
353
+ secretPlaceholder
354
+ } from "./chunk-9avbsbvk.js";
355
355
 
356
356
  // packages/core/src/sync-kit.ts
357
357
  import { createHash } from "crypto";
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-htxs2z8d.js";
7
+ } from "./chunk-cf723a2y.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -4,10 +4,10 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-s7rhz991.js";
8
- import"./chunk-9yenzg12.js";
9
- import"./chunk-aj2608jz.js";
10
- import"./chunk-8k6adfg7.js";
7
+ } from "./chunk-drp4zdwq.js";
8
+ import"./chunk-dq21ab8w.js";
9
+ import"./chunk-xfs1nf75.js";
10
+ import"./chunk-9avbsbvk.js";
11
11
  import"./chunk-bdd62njv.js";
12
12
  import"./chunk-zpp4jg4a.js";
13
13
  export {
@@ -20,11 +20,6 @@ import {
20
20
  FiniteFromString
21
21
  } from "./chunk-zpp4jg4a.js";
22
22
 
23
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
- var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
25
- var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
26
- var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
27
-
28
23
  // packages/core/src/schema.ts
29
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
30
25
  var DatePattern = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
@@ -1557,7 +1557,7 @@ var pathOfLink = (link) => {
1557
1557
  return page === null ? link : page[1] || "index";
1558
1558
  };
1559
1559
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1560
- var pinnedLink2 = (link, version = "0.14.7") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1560
+ var pinnedLink2 = (link, version = "0.14.8") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1561
1561
  var pageOf = (path) => path.split("#")[0];
1562
1562
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1563
1563
  function excerpt(text, queryTerms) {
@@ -4,8 +4,8 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-y6njjend.js";
8
- import"./chunk-8k6adfg7.js";
7
+ } from "./chunk-y0y2gg8d.js";
8
+ import"./chunk-9avbsbvk.js";
9
9
  import"./chunk-zpp4jg4a.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
@@ -110,7 +110,7 @@ import {
110
110
  ParseOptions,
111
111
  RpcClientDefect,
112
112
  RpcClientError
113
- } from "./chunk-aj2608jz.js";
113
+ } from "./chunk-xfs1nf75.js";
114
114
  import {
115
115
  Clock,
116
116
  interrupt,
@@ -16,7 +16,7 @@ import {
16
16
  RunnerReplicaRpcs,
17
17
  RunnerRunFileRpcs,
18
18
  ProgramRpcs
19
- } from "./chunk-aj2608jz.js";
19
+ } from "./chunk-xfs1nf75.js";
20
20
  import {
21
21
  runForEach
22
22
  } from "./chunk-bdd62njv.js";
@@ -25,7 +25,7 @@ import {
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-9yenzg12.js";
28
+ } from "./chunk-dq21ab8w.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -169,13 +169,7 @@ import {
169
169
  runMcpEffect,
170
170
  createAgentAuthSignedFetch,
171
171
  setupMcpAgentCredential
172
- } from "./chunk-aj2608jz.js";
173
- import {
174
- guard,
175
- Id,
176
- Timestamp,
177
- ActorType
178
- } from "./chunk-8k6adfg7.js";
172
+ } from "./chunk-xfs1nf75.js";
179
173
  import {
180
174
  currentTimeMillis,
181
175
  join,
@@ -197,7 +191,7 @@ import {
197
191
  import {
198
192
  searchDocs2,
199
193
  readDoc2
200
- } from "./chunk-htxs2z8d.js";
194
+ } from "./chunk-cf723a2y.js";
201
195
  import {
202
196
  nextInt
203
197
  } from "./chunk-bbf0jzsc.js";
@@ -207,7 +201,13 @@ import {
207
201
  withHeaders,
208
202
  layerProtocolSocket,
209
203
  ConnectionHooks
210
- } from "./chunk-9yenzg12.js";
204
+ } from "./chunk-dq21ab8w.js";
205
+ import {
206
+ guard,
207
+ Id,
208
+ Timestamp,
209
+ ActorType
210
+ } from "./chunk-9avbsbvk.js";
211
211
 
212
212
  // apps/cli/src/mcp.ts
213
213
  import { tmpdir as tmpdir2 } from "os";
@@ -76,9 +76,6 @@ import {
76
76
  toCodecJson,
77
77
  Json
78
78
  } from "./chunk-zpp4jg4a.js";
79
- import {
80
- guard
81
- } from "./chunk-8k6adfg7.js";
82
79
  import {
83
80
  WebCrypto,
84
81
  SafeJson,
@@ -104,12 +101,15 @@ import {
104
101
  KitDigest,
105
102
  KitSetup,
106
103
  RunnerRpcError
107
- } from "./chunk-aj2608jz.js";
104
+ } from "./chunk-xfs1nf75.js";
108
105
  import {
109
106
  currentTimeMillis,
110
107
  runForEach,
111
108
  FileSystem
112
109
  } from "./chunk-bdd62njv.js";
110
+ import {
111
+ guard
112
+ } from "./chunk-9avbsbvk.js";
113
113
 
114
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-aj2608jz.js";
42
+ } from "./chunk-xfs1nf75.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -219,10 +219,7 @@ import {
219
219
  harnessNames,
220
220
  herdrRunnerCapabilities2,
221
221
  declaredChecks
222
- } from "./chunk-aj2608jz.js";
223
- import {
224
- Id
225
- } from "./chunk-8k6adfg7.js";
222
+ } from "./chunk-xfs1nf75.js";
226
223
  import {
227
224
  currentTimeMillis,
228
225
  tap,
@@ -240,6 +237,9 @@ import {
240
237
  ChildProcessSpawner,
241
238
  make3
242
239
  } from "./chunk-79g5zh2p.js";
240
+ import {
241
+ Id
242
+ } from "./chunk-9avbsbvk.js";
243
243
 
244
244
  // apps/cli/src/cli-error.ts
245
245
  function cliErrorCode(error, status) {
@@ -1020,10 +1020,10 @@ var sandboxMissing = (sandbox, missing) => ({
1020
1020
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1021
1021
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1022
1022
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1023
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rjz0pnf9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1023
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-63m3r0k4.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1024
1024
  });
1025
1025
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1026
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rjz0pnf9.js")), (module) => module.updateHerdrCore(options))
1026
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-63m3r0k4.js")), (module) => module.updateHerdrCore(options))
1027
1027
  });
1028
1028
  var herdrCoreMissing = (error) => {
1029
1029
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1467,7 +1467,7 @@ var syncTargets = (harness) => gen(function* () {
1467
1467
  });
1468
1468
  var syncKits = (input) => gen(function* () {
1469
1469
  const fs = yield* FileSystem;
1470
- const { syncKitSetup } = yield* promise(() => import("./chunk-jv4p85q5.js"));
1470
+ const { syncKitSetup } = yield* promise(() => import("./chunk-ya4z1n5p.js"));
1471
1471
  const harnesses = yield* syncTargets(input.harness);
1472
1472
  const chain = yield* input.client.getKitChain(input.workspaceId);
1473
1473
  for (const { name, problem } of chain.skipped)
@@ -2386,7 +2386,7 @@ var package_default = {
2386
2386
  };
2387
2387
 
2388
2388
  // apps/cli/src/scaffold.ts
2389
- var cliVersion = "0.14.7";
2389
+ var cliVersion = "0.14.8";
2390
2390
  var packageJson = (name, scaffold) => `${JSON.stringify({
2391
2391
  name,
2392
2392
  private: true,
@@ -2538,7 +2538,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2538
2538
 
2539
2539
  // apps/cli/src/commands.ts
2540
2540
  var ClientId = "kitman-cli";
2541
- var agentRuntime = promise(() => import("./chunk-bty0mbn4.js"));
2541
+ var agentRuntime = promise(() => import("./chunk-6dj39qtt.js"));
2542
2542
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2543
2543
  defaultValue: () => gen(function* () {
2544
2544
  const tui = yield* tryPromise({
@@ -3574,7 +3574,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3574
3574
  });
3575
3575
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3576
3576
  defaultValue: () => (options) => gen(function* () {
3577
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-64zvzv63.js"));
3577
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-721qyd1a.js"));
3578
3578
  return yield* makeRunnerRpcClient({
3579
3579
  runnerId: options.runnerId,
3580
3580
  bearer: options.bearer,
@@ -4141,7 +4141,7 @@ function mcpCommand(args) {
4141
4141
  if (command.action === "run") {
4142
4142
  if (command.args.length > 0)
4143
4143
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4144
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-c9j28q63.js"));
4144
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-eytzmdna.js"));
4145
4145
  return yield* runMcpServerCommand({ flags: command.flags });
4146
4146
  }
4147
4147
  if (command.action !== "setup")
@@ -4629,7 +4629,7 @@ function programLoopCommand(command) {
4629
4629
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4630
4630
  });
4631
4631
  }
4632
- var docsModule = promise(() => import("./chunk-gnhfwa99.js"));
4632
+ var docsModule = promise(() => import("./chunk-6x43ntsx.js"));
4633
4633
  function docsCommand(args) {
4634
4634
  return gen(function* () {
4635
4635
  const command = parseCommand(args);
@@ -5471,9 +5471,9 @@ function changeRequestCommand(args) {
5471
5471
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5472
5472
  });
5473
5473
  }
5474
- var KitWriter = map8(promise(() => import("./chunk-ag19ejy7.js")), (build) => build.writeKit);
5474
+ var KitWriter = map8(promise(() => import("./chunk-1rwaetnm.js")), (build) => build.writeKit);
5475
5475
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5476
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-ag19ejy7.js")), (build) => build.buildKit(directory))
5476
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-1rwaetnm.js")), (build) => build.buildKit(directory))
5477
5477
  });
5478
5478
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5479
5479
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -274,19 +274,6 @@ import {
274
274
  encodeJsonStringSync,
275
275
  encodePrettyJsonString
276
276
  } from "./chunk-zpp4jg4a.js";
277
- import {
278
- isDateTime,
279
- Numeric,
280
- isWholeNumber,
281
- guard,
282
- Id,
283
- Timestamp,
284
- ActorType,
285
- SecretName,
286
- SecretScope,
287
- SecretHosts,
288
- isSecretReference
289
- } from "./chunk-8k6adfg7.js";
290
277
  import {
291
278
  map,
292
279
  makeEquivalence,
@@ -373,6 +360,19 @@ import {
373
360
  parseFdName,
374
361
  fdName
375
362
  } from "./chunk-79g5zh2p.js";
363
+ import {
364
+ isDateTime,
365
+ Numeric,
366
+ isWholeNumber,
367
+ guard,
368
+ Id,
369
+ Timestamp,
370
+ ActorType,
371
+ SecretName,
372
+ SecretScope,
373
+ SecretHosts,
374
+ isSecretReference
375
+ } from "./chunk-9avbsbvk.js";
376
376
 
377
377
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
378
378
  var makeEquivalence3 = Tuple;
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-8k6adfg7.js";
20
+ } from "./chunk-9avbsbvk.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -14,7 +14,6 @@ import {
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
16
  } from "./chunk-zpp4jg4a.js";
17
- import"./chunk-8k6adfg7.js";
18
17
  import {
19
18
  FileSystem,
20
19
  Path
@@ -24,7 +23,7 @@ import {
24
23
  tomlKeyPath2,
25
24
  kitmanSkillEntry,
26
25
  isPathWithin2
27
- } from "./chunk-cn86thbx.js";
26
+ } from "./chunk-5wrhj4cj.js";
28
27
  import {
29
28
  instructionsStart,
30
29
  instructionsEnd,
@@ -32,9 +31,10 @@ import {
32
31
  antigravityPlugins,
33
32
  materializeKitSetup,
34
33
  tomlInline
35
- } from "./chunk-aj2608jz.js";
36
- import"./chunk-qkh0dhad.js";
34
+ } from "./chunk-xfs1nf75.js";
35
+ import"./chunk-q0x3c0dh.js";
37
36
  import"./chunk-79g5zh2p.js";
37
+ import"./chunk-9avbsbvk.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
package/dist/index.js CHANGED
@@ -8,12 +8,12 @@ if (args[0] === "srt") {
8
8
  const { runSrtCli } = await import("./chunk-bpx2zjh7.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-w8pevmva.js");
11
+ const { runSrtStep } = await import("./chunk-ctpgfdzf.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
14
  const { runOpencodeReader } = await import("./chunk-hz4t408c.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-xxx61cda.js");
17
+ const { runCli } = await import("./chunk-wszvkzg8.js");
18
18
  runCli(args);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/cli",
3
- "version": "0.14.7",
3
+ "version": "0.14.8",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {