@kitman-sh/cli 0.15.0 → 0.15.1

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.
@@ -2195,7 +2195,7 @@ var pathOfLink = (link) => {
2195
2195
  return page === null ? link : page[1] || "index";
2196
2196
  };
2197
2197
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2198
- var pinnedLink2 = (link, version = "0.15.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2198
+ var pinnedLink2 = (link, version = "0.15.1") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2199
2199
  var pageOf = (path) => path.split("#")[0];
2200
2200
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2201
2201
  function excerpt(text, queryTerms) {
@@ -171,11 +171,6 @@ import {
171
171
  encodeUnknownJsonStringSync,
172
172
  storable
173
173
  } from "./chunk-dx792s4w.js";
174
- import {
175
- Id,
176
- secretReference,
177
- secretPlaceholder
178
- } from "./chunk-5hkdgzh4.js";
179
174
  import {
180
175
  currentTimeMillis,
181
176
  SecureRandom,
@@ -262,7 +257,7 @@ import {
262
257
  checkServicesFile,
263
258
  checkServices,
264
259
  serviceChecks
265
- } from "./chunk-8393zths.js";
260
+ } from "./chunk-f36s9s1g.js";
266
261
  import {
267
262
  join,
268
263
  interrupt,
@@ -324,8 +319,8 @@ import {
324
319
  applyAgentEnvironmentMaterialization2,
325
320
  isPathWithin2,
326
321
  skillIdentity2
327
- } from "./chunk-fv2zpgh0.js";
328
- import"./chunk-4x7a1qkj.js";
322
+ } from "./chunk-ygx2pda7.js";
323
+ import"./chunk-kskb0hkb.js";
329
324
  import {
330
325
  egressAllowed,
331
326
  writeSecretRegistry,
@@ -350,8 +345,8 @@ import {
350
345
  rpcRunFiles,
351
346
  programHostsEnv,
352
347
  undeclaredHostsEnv
353
- } from "./chunk-cf1hxp43.js";
354
- import"./chunk-rt0qfdtg.js";
348
+ } from "./chunk-d40233pm.js";
349
+ import"./chunk-zy4sv70r.js";
355
350
  import {
356
351
  nextInt
357
352
  } from "./chunk-3ns4sbfb.js";
@@ -360,7 +355,12 @@ import {
360
355
  ChildProcessSpawner,
361
356
  make3
362
357
  } from "./chunk-k2wd9r6t.js";
363
- import"./chunk-djp6t2g6.js";
358
+ import"./chunk-91tmbf95.js";
359
+ import {
360
+ Id,
361
+ secretReference,
362
+ secretPlaceholder
363
+ } from "./chunk-5hkdgzh4.js";
364
364
 
365
365
  // packages/core/src/sync-kit.ts
366
366
  import { createHash } from "crypto";
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-snwjv2sd.js";
7
+ } from "./chunk-2vxb3q01.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -23,7 +23,7 @@ import {
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-fv2zpgh0.js";
26
+ } from "./chunk-ygx2pda7.js";
27
27
  import {
28
28
  instructionsStart,
29
29
  instructionsEnd,
@@ -31,10 +31,10 @@ import {
31
31
  antigravityPlugins,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-8393zths.js";
35
- import"./chunk-5hkdgzh4.js";
36
- import"./chunk-4x7a1qkj.js";
34
+ } from "./chunk-f36s9s1g.js";
35
+ import"./chunk-kskb0hkb.js";
37
36
  import"./chunk-k2wd9r6t.js";
37
+ import"./chunk-5hkdgzh4.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-8393zths.js";
126
+ } from "./chunk-f36s9s1g.js";
127
127
 
128
128
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
129
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -176,13 +176,7 @@ import {
176
176
  StepManifest,
177
177
  KitSetup,
178
178
  RunnerRpcError
179
- } from "./chunk-8393zths.js";
180
- import {
181
- guard,
182
- Id,
183
- Timestamp,
184
- ActorType
185
- } from "./chunk-5hkdgzh4.js";
179
+ } from "./chunk-f36s9s1g.js";
186
180
  import {
187
181
  getCurrent,
188
182
  runForEach,
@@ -193,6 +187,12 @@ import {
193
187
  recommendationProblem,
194
188
  questionAdvice
195
189
  } from "./chunk-csxxwscf.js";
190
+ import {
191
+ guard,
192
+ Id,
193
+ Timestamp,
194
+ ActorType
195
+ } from "./chunk-5hkdgzh4.js";
196
196
  var __defProp = Object.defineProperty;
197
197
  var __returnValue = (v) => v;
198
198
  function __exportSetter(name, newValue) {
@@ -251,15 +251,15 @@ import {
251
251
  harnessNames,
252
252
  herdrRunnerCapabilities2,
253
253
  declaredChecks
254
- } from "./chunk-8393zths.js";
255
- import {
256
- Id,
257
- Timestamp
258
- } from "./chunk-5hkdgzh4.js";
254
+ } from "./chunk-f36s9s1g.js";
259
255
  import {
260
256
  ChildProcessSpawner,
261
257
  make3
262
258
  } from "./chunk-k2wd9r6t.js";
259
+ import {
260
+ Id,
261
+ Timestamp
262
+ } from "./chunk-5hkdgzh4.js";
263
263
 
264
264
  // apps/cli/src/cli-error.ts
265
265
  function cliErrorCode(error, status) {
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
1326
1326
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1327
1327
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1328
1328
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1329
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-wfz64h9p.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1329
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-wh4bpc4w.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1330
1330
  });
1331
1331
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-wfz64h9p.js")), (module) => module.updateHerdrCore(options))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-wh4bpc4w.js")), (module) => module.updateHerdrCore(options))
1333
1333
  });
1334
1334
  var herdrCoreMissing = (error) => {
1335
1335
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
1773
1773
  });
1774
1774
  var syncKits = (input) => gen(function* () {
1775
1775
  const fs = yield* FileSystem;
1776
- const { syncKitSetup } = yield* promise(() => import("./chunk-4zc1g45m.js"));
1776
+ const { syncKitSetup } = yield* promise(() => import("./chunk-6h70kent.js"));
1777
1777
  const harnesses = yield* syncTargets(input.harness);
1778
1778
  const chain = yield* input.client.getKitChain(input.workspaceId);
1779
1779
  for (const { name, problem } of chain.skipped)
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
3268
3268
  };
3269
3269
 
3270
3270
  // apps/cli/src/scaffold-files.ts
3271
- var cliVersion = "0.15.0";
3271
+ var cliVersion = "0.15.1";
3272
3272
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3273
3273
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3274
3274
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3533
3533
 
3534
3534
  // apps/cli/src/commands.ts
3535
3535
  var ClientId = "kitman-cli";
3536
- var agentRuntime = promise(() => import("./chunk-58hehm8d.js"));
3536
+ var agentRuntime = promise(() => import("./chunk-60fhzjx3.js"));
3537
3537
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3538
3538
  defaultValue: () => gen(function* () {
3539
3539
  const tui = yield* tryPromise({
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5072
5072
  });
5073
5073
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5074
5074
  defaultValue: () => (options) => gen(function* () {
5075
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-qkt77rtj.js"));
5075
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-tgt9a3yz.js"));
5076
5076
  return yield* makeRunnerRpcClient({
5077
5077
  runnerId: options.runnerId,
5078
5078
  bearer: options.bearer,
@@ -5645,7 +5645,7 @@ function mcpCommand(args) {
5645
5645
  if (command.action === "run") {
5646
5646
  if (command.args.length > 0)
5647
5647
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5648
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-3n99j4z0.js"));
5648
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-fggwdr03.js"));
5649
5649
  return yield* runMcpServerCommand({ flags: command.flags });
5650
5650
  }
5651
5651
  if (command.action !== "setup")
@@ -6145,7 +6145,7 @@ function programLoopCommand(command) {
6145
6145
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6146
6146
  });
6147
6147
  }
6148
- var docsModule = promise(() => import("./chunk-b16qxawc.js"));
6148
+ var docsModule = promise(() => import("./chunk-69xka6ew.js"));
6149
6149
  function docsCommand(args) {
6150
6150
  return gen(function* () {
6151
6151
  const command = parseCommand(args);
@@ -7147,7 +7147,7 @@ function changeRequestCommand(args) {
7147
7147
  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}`);
7148
7148
  });
7149
7149
  }
7150
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-mrkrt2hg.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7150
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-xrjt25ns.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7151
7151
  var loopOutline = (command) => gen(function* () {
7152
7152
  const path = yield* Path;
7153
7153
  const loop = requiredArg(command, "a Loop id");
@@ -7167,9 +7167,9 @@ var loopOutline = (command) => gen(function* () {
7167
7167
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7168
7168
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7169
7169
  });
7170
- var KitWriter = map9(promise(() => import("./chunk-mrkrt2hg.js")), (build) => build.writeKit);
7170
+ var KitWriter = map9(promise(() => import("./chunk-xrjt25ns.js")), (build) => build.writeKit);
7171
7171
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7172
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-mrkrt2hg.js")), (build) => build.buildKit(directory))
7172
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-xrjt25ns.js")), (build) => build.buildKit(directory))
7173
7173
  });
7174
7174
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7175
7175
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -170,13 +170,7 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-8393zths.js";
174
- import {
175
- guard,
176
- Id,
177
- Timestamp,
178
- ActorType
179
- } from "./chunk-5hkdgzh4.js";
173
+ } from "./chunk-f36s9s1g.js";
180
174
  import {
181
175
  join,
182
176
  interrupt,
@@ -197,7 +191,7 @@ import {
197
191
  import {
198
192
  searchDocs2,
199
193
  readDoc2
200
- } from "./chunk-snwjv2sd.js";
194
+ } from "./chunk-2vxb3q01.js";
201
195
  import {
202
196
  nextInt
203
197
  } from "./chunk-3ns4sbfb.js";
@@ -210,7 +204,13 @@ import {
210
204
  withHeaders,
211
205
  layerProtocolSocket,
212
206
  ConnectionHooks
213
- } from "./chunk-djp6t2g6.js";
207
+ } from "./chunk-91tmbf95.js";
208
+ import {
209
+ guard,
210
+ Id,
211
+ Timestamp,
212
+ ActorType
213
+ } from "./chunk-5hkdgzh4.js";
214
214
 
215
215
  // apps/cli/src/mcp.ts
216
216
  import { tmpdir as tmpdir2 } from "os";
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-8393zths.js";
42
+ } from "./chunk-f36s9s1g.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-rt0qfdtg.js";
8
- import"./chunk-djp6t2g6.js";
9
- import"./chunk-8393zths.js";
7
+ } from "./chunk-zy4sv70r.js";
8
+ import"./chunk-91tmbf95.js";
9
+ import"./chunk-f36s9s1g.js";
10
10
  import"./chunk-5hkdgzh4.js";
11
11
  import"./chunk-vg78dz3w.js";
12
12
  import"./chunk-dx792s4w.js";
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-8393zths.js";
15
+ } from "./chunk-f36s9s1g.js";
16
16
  import"./chunk-vg78dz3w.js";
17
17
  import"./chunk-dx792s4w.js";
18
18
  export {
@@ -52,7 +52,7 @@ import {
52
52
  KitDeclarations,
53
53
  kitmanMcpServer,
54
54
  RunnerRpcProtocolVersion
55
- } from "./chunk-8393zths.js";
55
+ } from "./chunk-f36s9s1g.js";
56
56
  import {
57
57
  decodeText,
58
58
  mkString,
@@ -64,22 +64,22 @@ import {
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-4x7a1qkj.js";
68
- import"./chunk-5hkdgzh4.js";
67
+ } from "./chunk-kskb0hkb.js";
69
68
  import {
70
69
  stepDefinedTwice,
71
70
  hostSteps,
72
71
  exports_activities,
73
72
  describeFlag,
74
73
  Described
75
- } from "./chunk-cf1hxp43.js";
76
- import"./chunk-rt0qfdtg.js";
74
+ } from "./chunk-d40233pm.js";
75
+ import"./chunk-zy4sv70r.js";
77
76
  import"./chunk-csxxwscf.js";
78
77
  import {
79
78
  ChildProcessSpawner,
80
79
  make3
81
80
  } from "./chunk-k2wd9r6t.js";
82
- import"./chunk-djp6t2g6.js";
81
+ import"./chunk-91tmbf95.js";
82
+ import"./chunk-5hkdgzh4.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-8393zths.js";
39
+ } from "./chunk-f36s9s1g.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-4x7a1qkj.js";
42
+ } from "./chunk-kskb0hkb.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-8393zths.js";
22
+ } from "./chunk-f36s9s1g.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-djp6t2g6.js";
28
+ } from "./chunk-91tmbf95.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
14
14
  const { runOpencodeReader } = await import("./chunk-xx711t5r.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-vq7caqt2.js");
17
+ const { runCli } = await import("./chunk-dv4v0tbn.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.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {
@@ -333,19 +333,6 @@ import {
333
333
  harnessesUnsupportedInSrt2,
334
334
  harnessesUnsupportedInDocker2
335
335
  } from "./chunk-vg78dz3w.js";
336
- import {
337
- isDateTime,
338
- Numeric,
339
- isWholeNumber,
340
- guard,
341
- Id,
342
- Timestamp,
343
- ActorType,
344
- SecretName,
345
- SecretScope,
346
- SecretHosts,
347
- isSecretReference
348
- } from "./chunk-5hkdgzh4.js";
349
336
  import {
350
337
  isRedacted,
351
338
  make,
@@ -360,6 +347,19 @@ import {
360
347
  parseFdName,
361
348
  fdName
362
349
  } from "./chunk-k2wd9r6t.js";
350
+ import {
351
+ isDateTime,
352
+ Numeric,
353
+ isWholeNumber,
354
+ guard,
355
+ Id,
356
+ Timestamp,
357
+ ActorType,
358
+ SecretName,
359
+ SecretScope,
360
+ SecretHosts,
361
+ isSecretReference
362
+ } from "./chunk-5hkdgzh4.js";
363
363
 
364
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
365
  var makeEquivalence3 = Tuple;