@kitman-sh/cli 0.14.2 → 0.14.3

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 (28) hide show
  1. package/LICENSE.md +10 -0
  2. package/dist/{chunk-avhqm9p0.js → chunk-2w9a76nr.js} +34 -183
  3. package/dist/{chunk-ryxff0xk.js → chunk-34748vfg.js} +337 -181
  4. package/dist/{chunk-gwz39037.js → chunk-3f6mzrm7.js} +1 -1
  5. package/dist/{chunk-m9x7feh0.js → chunk-44kx62t6.js} +7 -7
  6. package/dist/{chunk-t9chwen8.js → chunk-65dpe0ev.js} +2 -2
  7. package/dist/{chunk-ge9qjp6s.js → chunk-7q3t3x0x.js} +6 -6
  8. package/dist/{chunk-jzfy127y.js → chunk-7v1n7a6k.js} +4 -4
  9. package/dist/{chunk-v86jpzpr.js → chunk-91j33xf2.js} +9 -9
  10. package/dist/{chunk-4xez238w.js → chunk-9anvghq2.js} +2 -2
  11. package/dist/{chunk-h6kd80nr.js → chunk-9avbsbvk.js} +1 -6
  12. package/dist/{chunk-q4ch3t9q.js → chunk-a4mkjaxa.js} +6 -6
  13. package/dist/{chunk-scdr623z.js → chunk-bbf0jzsc.js} +1 -1
  14. package/dist/{chunk-vfw3xn1e.js → chunk-ctpgfdzf.js} +3 -3
  15. package/dist/{chunk-80vwvv5x.js → chunk-daem5h1c.js} +28 -28
  16. package/dist/{chunk-39pdxhcv.js → chunk-dhtx14r5.js} +3 -3
  17. package/dist/{chunk-z7c2ndfg.js → chunk-er9n65mh.js} +11 -11
  18. package/dist/{chunk-0r9tp5pz.js → chunk-f96vy2h9.js} +4 -4
  19. package/dist/{chunk-ffq8vvvx.js → chunk-hasfatd4.js} +5 -5
  20. package/dist/{chunk-hza25m2e.js → chunk-my9vcmfw.js} +31 -31
  21. package/dist/{chunk-24j1cmsm.js → chunk-rgrpvnwg.js} +21 -21
  22. package/dist/{chunk-3csj1ve1.js → chunk-rvnem2bt.js} +4 -4
  23. package/dist/{chunk-yfag1eey.js → chunk-tebzffha.js} +19 -19
  24. package/dist/{chunk-e024f8af.js → chunk-y0y2gg8d.js} +2 -2
  25. package/dist/{chunk-1jabs81x.js → chunk-zpp4jg4a.js} +59 -101
  26. package/dist/{chunk-qqmxhk9w.js → chunk-zxmx605h.js} +60 -14
  27. package/dist/index.js +4 -4
  28. package/package.json +4 -3
@@ -104,19 +104,7 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-1jabs81x.js";
108
- import {
109
- tap,
110
- mapError,
111
- decodeText,
112
- run,
113
- mkString,
114
- FileSystem,
115
- Path,
116
- withDefault,
117
- option,
118
- String2
119
- } from "./chunk-avhqm9p0.js";
107
+ } from "./chunk-zpp4jg4a.js";
120
108
  import {
121
109
  currentTimeMillis,
122
110
  SecureRandom,
@@ -168,7 +156,7 @@ import {
168
156
  digestSha256,
169
157
  sha256Hasher,
170
158
  raw,
171
- make4,
159
+ make5,
172
160
  get,
173
161
  put,
174
162
  HttpClient,
@@ -232,14 +220,26 @@ import {
232
220
  harnessNames,
233
221
  herdrRunnerCapabilities2,
234
222
  declaredChecks
235
- } from "./chunk-ryxff0xk.js";
223
+ } from "./chunk-34748vfg.js";
236
224
  import {
237
- Id
238
- } from "./chunk-h6kd80nr.js";
225
+ tap,
226
+ mapError,
227
+ decodeText,
228
+ run,
229
+ mkString,
230
+ FileSystem,
231
+ Path,
232
+ withDefault,
233
+ option,
234
+ String2
235
+ } from "./chunk-2w9a76nr.js";
239
236
  import {
240
237
  ChildProcessSpawner,
241
- make2
242
- } from "./chunk-qqmxhk9w.js";
238
+ make3
239
+ } from "./chunk-zxmx605h.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-3csj1ve1.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1023
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rvnem2bt.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-3csj1ve1.js")), (module) => module.updateHerdrCore(options))
1026
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rvnem2bt.js")), (module) => module.updateHerdrCore(options))
1027
1027
  });
1028
1028
  var herdrCoreMissing = (error) => {
1029
1029
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1449,7 +1449,7 @@ var syncTargets = (harness) => gen(function* () {
1449
1449
  });
1450
1450
  var syncKits = (input) => gen(function* () {
1451
1451
  const fs = yield* FileSystem;
1452
- const { syncKitSetup } = yield* promise(() => import("./chunk-m9x7feh0.js"));
1452
+ const { syncKitSetup } = yield* promise(() => import("./chunk-44kx62t6.js"));
1453
1453
  const harnesses = yield* syncTargets(input.harness);
1454
1454
  const chain = yield* input.client.getKitChain(input.workspaceId);
1455
1455
  for (const { name, problem } of chain.skipped)
@@ -1966,7 +1966,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
1966
1966
  run: (command, args) => runCommand2(command, args),
1967
1967
  attach: (command, args) => gen(function* () {
1968
1968
  const spawner = yield* ChildProcessSpawner;
1969
- const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1969
+ const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1970
1970
  const exitCode = yield* handle.exitCode;
1971
1971
  if (exitCode !== 0)
1972
1972
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -2368,7 +2368,7 @@ var package_default = {
2368
2368
  };
2369
2369
 
2370
2370
  // apps/cli/src/scaffold.ts
2371
- var cliVersion = "0.14.2";
2371
+ var cliVersion = "0.14.3";
2372
2372
  var packageJson = (name, scaffold) => `${JSON.stringify({
2373
2373
  name,
2374
2374
  private: true,
@@ -2520,7 +2520,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2520
2520
 
2521
2521
  // apps/cli/src/commands.ts
2522
2522
  var ClientId = "kitman-cli";
2523
- var agentRuntime = promise(() => import("./chunk-24j1cmsm.js"));
2523
+ var agentRuntime = promise(() => import("./chunk-rgrpvnwg.js"));
2524
2524
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2525
2525
  defaultValue: () => gen(function* () {
2526
2526
  const tui = yield* tryPromise({
@@ -3556,7 +3556,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3556
3556
  });
3557
3557
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3558
3558
  defaultValue: () => (options) => gen(function* () {
3559
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-q4ch3t9q.js"));
3559
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-a4mkjaxa.js"));
3560
3560
  return yield* makeRunnerRpcClient({
3561
3561
  runnerId: options.runnerId,
3562
3562
  bearer: options.bearer,
@@ -4123,7 +4123,7 @@ function mcpCommand(args) {
4123
4123
  if (command.action === "run") {
4124
4124
  if (command.args.length > 0)
4125
4125
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4126
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-80vwvv5x.js"));
4126
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-daem5h1c.js"));
4127
4127
  return yield* runMcpServerCommand({ flags: command.flags });
4128
4128
  }
4129
4129
  if (command.action !== "setup")
@@ -4611,7 +4611,7 @@ function programLoopCommand(command) {
4611
4611
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4612
4612
  });
4613
4613
  }
4614
- var docsModule = promise(() => import("./chunk-gwz39037.js"));
4614
+ var docsModule = promise(() => import("./chunk-3f6mzrm7.js"));
4615
4615
  function docsCommand(args) {
4616
4616
  return gen(function* () {
4617
4617
  const command = parseCommand(args);
@@ -5453,9 +5453,9 @@ function changeRequestCommand(args) {
5453
5453
  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}`);
5454
5454
  });
5455
5455
  }
5456
- var KitWriter = map8(promise(() => import("./chunk-z7c2ndfg.js")), (build) => build.writeKit);
5456
+ var KitWriter = map8(promise(() => import("./chunk-er9n65mh.js")), (build) => build.writeKit);
5457
5457
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5458
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-z7c2ndfg.js")), (build) => build.buildKit(directory))
5458
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-er9n65mh.js")), (build) => build.buildKit(directory))
5459
5459
  });
5460
5460
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5461
5461
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -6232,7 +6232,7 @@ function downloadPresignedAsset(download, outputPath) {
6232
6232
  return gen(function* () {
6233
6233
  const fs = yield* FileSystem;
6234
6234
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
6235
- const response = yield* send(make4(download.method)(download.url), failed);
6235
+ const response = yield* send(make5(download.method)(download.url), failed);
6236
6236
  if (response.status < 200 || response.status >= 300)
6237
6237
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
6238
6238
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -168,12 +168,7 @@ import {
168
168
  decodeJsonStringSync,
169
169
  encodeUnknownJsonStringSync,
170
170
  storable
171
- } from "./chunk-1jabs81x.js";
172
- import {
173
- Id,
174
- secretReference,
175
- secretPlaceholder
176
- } from "./chunk-h6kd80nr.js";
171
+ } from "./chunk-zpp4jg4a.js";
177
172
  import {
178
173
  currentTimeMillis,
179
174
  SecureRandom,
@@ -254,7 +249,7 @@ import {
254
249
  checkServicesFile,
255
250
  checkServices,
256
251
  serviceChecks
257
- } from "./chunk-ryxff0xk.js";
252
+ } from "./chunk-34748vfg.js";
258
253
  import {
259
254
  join,
260
255
  interrupt,
@@ -298,7 +293,7 @@ import {
298
293
  writeSrtSettings2,
299
294
  srtStepArgv2,
300
295
  srtArgv2
301
- } from "./chunk-avhqm9p0.js";
296
+ } from "./chunk-2w9a76nr.js";
302
297
  import {
303
298
  writeAgentEnvironmentConfigFile2,
304
299
  readManifestSkillPaths2,
@@ -314,8 +309,8 @@ import {
314
309
  applyAgentEnvironmentMaterialization2,
315
310
  isPathWithin2,
316
311
  skillIdentity2
317
- } from "./chunk-0r9tp5pz.js";
318
- import"./chunk-39pdxhcv.js";
312
+ } from "./chunk-f96vy2h9.js";
313
+ import"./chunk-dhtx14r5.js";
319
314
  import {
320
315
  egressAllowed,
321
316
  writeSecretRegistry,
@@ -325,7 +320,7 @@ import {
325
320
  secretFilter2,
326
321
  opaqueTunnelRefusal2,
327
322
  isOpaqueConnectReason2
328
- } from "./chunk-e024f8af.js";
323
+ } from "./chunk-y0y2gg8d.js";
329
324
  import {
330
325
  sliceBytes2,
331
326
  maxLineBytes2,
@@ -333,23 +328,28 @@ import {
333
328
  decodedOption2,
334
329
  decoded2,
335
330
  readOpencode2
336
- } from "./chunk-ffq8vvvx.js";
331
+ } from "./chunk-hasfatd4.js";
337
332
  import {
338
333
  uploadRunFile,
339
334
  programLease,
340
335
  rpcRunFiles,
341
336
  programHostsEnv,
342
337
  undeclaredHostsEnv
343
- } from "./chunk-ge9qjp6s.js";
344
- import"./chunk-v86jpzpr.js";
338
+ } from "./chunk-7q3t3x0x.js";
339
+ import"./chunk-91j33xf2.js";
345
340
  import {
346
341
  nextInt
347
- } from "./chunk-scdr623z.js";
342
+ } from "./chunk-bbf0jzsc.js";
348
343
  import {
349
344
  ChildProcessSpawner,
350
- make2
351
- } from "./chunk-qqmxhk9w.js";
352
- import"./chunk-yfag1eey.js";
345
+ make3
346
+ } from "./chunk-zxmx605h.js";
347
+ import"./chunk-tebzffha.js";
348
+ import {
349
+ Id,
350
+ secretReference,
351
+ secretPlaceholder
352
+ } from "./chunk-9avbsbvk.js";
353
353
 
354
354
  // packages/core/src/sync-kit.ts
355
355
  import { createHash } from "crypto";
@@ -7152,7 +7152,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7152
7152
  const input = yield* unbounded2();
7153
7153
  const pending = new Map;
7154
7154
  let lastId = 0;
7155
- const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
7155
+ const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
7156
7156
  cwd: env.home,
7157
7157
  extendEnv: true,
7158
7158
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -7315,7 +7315,7 @@ var handshake = [
7315
7315
  `).join("");
7316
7316
  var kitmanMcpPreflight = (mcp) => gen(function* () {
7317
7317
  const spawner = yield* ChildProcessSpawner;
7318
- const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
7318
+ const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
7319
7319
  extendEnv: true,
7320
7320
  env: mcp.env,
7321
7321
  stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
@@ -7391,7 +7391,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
7391
7391
  };
7392
7392
  const exitCode = sandbox === undefined ? yield* gen(function* () {
7393
7393
  const spawner = yield* ChildProcessSpawner;
7394
- const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
7394
+ const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
7395
7395
  stdin: make10(new TextEncoder().encode(stdin)),
7396
7396
  stdout: "inherit",
7397
7397
  stderr: "inherit",
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-qqmxhk9w.js";
2
+ import"./chunk-zxmx605h.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,9 +12,9 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-ryxff0xk.js";
16
- import"./chunk-avhqm9p0.js";
17
- import"./chunk-1jabs81x.js";
15
+ } from "./chunk-34748vfg.js";
16
+ import"./chunk-2w9a76nr.js";
17
+ import"./chunk-zpp4jg4a.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get4,
15
+ get3,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,19 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-1jabs81x.js";
100
- import {
101
- interrupt,
102
- getCurrent,
103
- makeUnsafe2,
104
- bounded,
105
- offerAll,
106
- failCause,
107
- end,
108
- shutdownUnsafe,
109
- fromQueue,
110
- unwrap
111
- } from "./chunk-avhqm9p0.js";
99
+ } from "./chunk-zpp4jg4a.js";
112
100
  import {
113
101
  Clock,
114
102
  empty,
@@ -123,7 +111,19 @@ import {
123
111
  ParseOptions,
124
112
  RpcClientDefect,
125
113
  RpcClientError
126
- } from "./chunk-ryxff0xk.js";
114
+ } from "./chunk-34748vfg.js";
115
+ import {
116
+ interrupt,
117
+ getCurrent,
118
+ makeUnsafe2,
119
+ bounded,
120
+ offerAll,
121
+ failCause,
122
+ end,
123
+ shutdownUnsafe,
124
+ fromQueue,
125
+ unwrap
126
+ } from "./chunk-2w9a76nr.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")) {
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
237
  const disableTracing = options?.disableTracing ?? false;
238
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
239
  const services = yield* context();
240
- const scope = get4(services, Scope);
240
+ const scope = get3(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
483
483
  };
484
484
  });
485
485
  var clientIdCounter = 0;
486
- var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
487
487
  const clientId = clientIdCounter++;
488
488
  const {
489
489
  codecFor,
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get4(rpc.annotations, ParseOptions);
646
+ const parseOptions = get3(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
829
829
  class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
830
830
  }
831
831
 
832
- export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-1jabs81x.js";
16
+ } from "./chunk-zpp4jg4a.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-h6kd80nr.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";