@kitman-sh/cli 0.10.78 → 0.10.80

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 (26) hide show
  1. package/dist/{chunk-bqpj1be3.js → chunk-0dwnwx45.js} +6 -132
  2. package/dist/{chunk-k0bjhj9m.js → chunk-0wy2gwj2.js} +8 -8
  3. package/dist/{chunk-cn6h21ar.js → chunk-1xn27063.js} +5 -5
  4. package/dist/{chunk-76ctrqm6.js → chunk-2afjvt1c.js} +1 -1
  5. package/dist/{chunk-9zd52pda.js → chunk-4tjeks83.js} +5 -5
  6. package/dist/{chunk-apjzbve5.js → chunk-5v9pywm3.js} +151 -53
  7. package/dist/{chunk-g4j97dv5.js → chunk-61jk9k82.js} +269 -187
  8. package/dist/{chunk-5aebee0q.js → chunk-7b6qsc4y.js} +23 -23
  9. package/dist/{chunk-tzz4fv17.js → chunk-80z95x19.js} +1 -1
  10. package/dist/{chunk-whyjvrf2.js → chunk-84gm9qq8.js} +27 -26
  11. package/dist/{chunk-xb70ys3n.js → chunk-bxxym84e.js} +31 -165
  12. package/dist/{chunk-b0cscqbw.js → chunk-ctfv3bg6.js} +2 -2
  13. package/dist/{chunk-nnq8d7k0.js → chunk-czxcs1ce.js} +7 -7
  14. package/dist/{chunk-bj8jqwk3.js → chunk-f3k1vjtf.js} +21 -21
  15. package/dist/{chunk-545b129z.js → chunk-fwsq4r8a.js} +9 -2
  16. package/dist/{chunk-t07tn0ay.js → chunk-hr6etnzn.js} +4 -4
  17. package/dist/{chunk-fq47a5yd.js → chunk-kjms81x1.js} +2 -2
  18. package/dist/{chunk-5sdw5ws3.js → chunk-twms8y72.js} +4 -4
  19. package/dist/{chunk-jbwk6k6m.js → chunk-v9nqb2tp.js} +226 -40
  20. package/dist/{chunk-6h16wtxk.js → chunk-vcvnk771.js} +4 -4
  21. package/dist/{chunk-98sg1yyd.js → chunk-wqv9y3dk.js} +14 -60
  22. package/dist/{chunk-e8zm8z3a.js → chunk-xkqbgz5j.js} +8 -8
  23. package/dist/{chunk-697qeg1j.js → chunk-yp10rhmv.js} +7 -7
  24. package/dist/{chunk-qbsqc416.js → chunk-z0tv3ak5.js} +3 -3
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  getOrUndefined,
7
7
  Reference,
8
8
  TaggedError,
9
- make16,
9
+ make15,
10
10
  _await,
11
11
  fail5,
12
12
  succeed5,
@@ -85,7 +85,7 @@ import {
85
85
  decodeJsonString,
86
86
  encodeJsonStringSync,
87
87
  encodePrettyJsonString
88
- } from "./chunk-jbwk6k6m.js";
88
+ } from "./chunk-v9nqb2tp.js";
89
89
  import {
90
90
  tap,
91
91
  mapError,
@@ -97,7 +97,11 @@ import {
97
97
  withDefault,
98
98
  option,
99
99
  String2
100
- } from "./chunk-xb70ys3n.js";
100
+ } from "./chunk-bxxym84e.js";
101
+ import {
102
+ ChildProcessSpawner,
103
+ make2
104
+ } from "./chunk-wqv9y3dk.js";
101
105
  import {
102
106
  currentTimeMillis,
103
107
  SecureRandom,
@@ -135,7 +139,7 @@ import {
135
139
  digestSha256,
136
140
  sha256Hasher,
137
141
  raw,
138
- make5,
142
+ make4,
139
143
  get,
140
144
  put,
141
145
  HttpClient,
@@ -197,10 +201,10 @@ import {
197
201
  harnessNames,
198
202
  herdrRunnerCapabilities2,
199
203
  declaredChecks
200
- } from "./chunk-g4j97dv5.js";
204
+ } from "./chunk-61jk9k82.js";
201
205
  import {
202
206
  Id
203
- } from "./chunk-545b129z.js";
207
+ } from "./chunk-fwsq4r8a.js";
204
208
  import {
205
209
  toJsonValue,
206
210
  isOneOf,
@@ -210,11 +214,7 @@ import {
210
214
  isObject,
211
215
  isJsonObject,
212
216
  isString
213
- } from "./chunk-tzz4fv17.js";
214
- import {
215
- ChildProcessSpawner,
216
- make3
217
- } from "./chunk-98sg1yyd.js";
217
+ } from "./chunk-80z95x19.js";
218
218
 
219
219
  // apps/cli/src/cli-error.ts
220
220
  function cliErrorCode(error, status) {
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
504
504
  var checkRegistryImageSetting = pinnedImage;
505
505
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
506
506
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
507
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-5sdw5ws3.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
507
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-twms8y72.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
508
508
  });
509
509
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
510
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-5sdw5ws3.js")), (module) => module.updateHerdrCore(options))
510
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-twms8y72.js")), (module) => module.updateHerdrCore(options))
511
511
  });
512
512
  var herdrCoreMissing = (error) => {
513
513
  if (isTagged(error, "HerdrCoreMissing"))
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
733
733
  });
734
734
  var syncKits = (input) => gen(function* () {
735
735
  const fs = yield* FileSystem;
736
- const { syncKitSetup } = yield* promise(() => import("./chunk-k0bjhj9m.js"));
736
+ const { syncKitSetup } = yield* promise(() => import("./chunk-0wy2gwj2.js"));
737
737
  const harnesses = yield* syncTargets(input.harness);
738
738
  const chain = yield* input.client.getKitChain(input.workspaceId);
739
739
  for (const { name, problem } of chain.skipped)
@@ -1249,7 +1249,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
1249
1249
  run: (command, args) => runCommand2(command, args),
1250
1250
  attach: (command, args) => gen(function* () {
1251
1251
  const spawner = yield* ChildProcessSpawner;
1252
- const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1252
+ const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1253
1253
  const exitCode = yield* handle.exitCode;
1254
1254
  if (exitCode !== 0)
1255
1255
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -1651,7 +1651,7 @@ var package_default = {
1651
1651
  };
1652
1652
 
1653
1653
  // apps/cli/src/scaffold.ts
1654
- var cliVersion = "0.10.78";
1654
+ var cliVersion = "0.10.80";
1655
1655
  var packageJson = (name, scaffold) => `${JSON.stringify({
1656
1656
  name,
1657
1657
  private: true,
@@ -1901,7 +1901,7 @@ var Usage = [
1901
1901
  "Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
1902
1902
  ].join(`
1903
1903
  `);
1904
- var agentRuntime = promise(() => import("./chunk-whyjvrf2.js"));
1904
+ var agentRuntime = promise(() => import("./chunk-84gm9qq8.js"));
1905
1905
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
1906
1906
  defaultValue: () => gen(function* () {
1907
1907
  const tui = yield* tryPromise({
@@ -2777,7 +2777,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
2777
2777
  });
2778
2778
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2779
2779
  defaultValue: () => (options) => gen(function* () {
2780
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-697qeg1j.js"));
2780
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-yp10rhmv.js"));
2781
2781
  return yield* makeRunnerRpcClient({
2782
2782
  runnerId: options.runnerId,
2783
2783
  bearer: options.bearer,
@@ -2972,7 +2972,7 @@ function startCanonicalHerdrRunnerCommand(input) {
2972
2972
  });
2973
2973
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
2974
2974
  const platform = yield* context();
2975
- const updated = yield* make16();
2975
+ const updated = yield* make15();
2976
2976
  const scope = yield* scope2;
2977
2977
  yield* listenForSignals({
2978
2978
  rpc,
@@ -3161,7 +3161,7 @@ function mcpCommand(args) {
3161
3161
  if (command.action === "run") {
3162
3162
  if (command.args.length > 0)
3163
3163
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3164
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-apjzbve5.js"));
3164
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-5v9pywm3.js"));
3165
3165
  return yield* runMcpServerCommand({ flags: command.flags });
3166
3166
  }
3167
3167
  if (command.action !== "setup")
@@ -4372,9 +4372,9 @@ function claimCommand(args) {
4372
4372
  }
4373
4373
  });
4374
4374
  }
4375
- var KitWriter = map8(promise(() => import("./chunk-bj8jqwk3.js")), (build) => build.writeKit);
4375
+ var KitWriter = map8(promise(() => import("./chunk-f3k1vjtf.js")), (build) => build.writeKit);
4376
4376
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4377
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-bj8jqwk3.js")), (build) => build.buildKit(directory))
4377
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-f3k1vjtf.js")), (build) => build.buildKit(directory))
4378
4378
  });
4379
4379
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4380
4380
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -5132,7 +5132,7 @@ function downloadPresignedAsset(download, outputPath) {
5132
5132
  return gen(function* () {
5133
5133
  const fs = yield* FileSystem;
5134
5134
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
5135
- const response = yield* send(make5(download.method)(download.url), failed);
5135
+ const response = yield* send(make4(download.method)(download.url), failed);
5136
5136
  if (response.status < 200 || response.status >= 300)
5137
5137
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
5138
5138
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -8,7 +8,7 @@ import {
8
8
  isFunction2,
9
9
  isUndefined2,
10
10
  isObjectOrArray
11
- } from "./chunk-jbwk6k6m.js";
11
+ } from "./chunk-v9nqb2tp.js";
12
12
 
13
13
  // packages/core/src/runtime-type.ts
14
14
  var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
@@ -6,7 +6,7 @@ import {
6
6
  isObject,
7
7
  isJsonObject,
8
8
  isString
9
- } from "./chunk-tzz4fv17.js";
9
+ } from "./chunk-80z95x19.js";
10
10
  import {
11
11
  pipeArguments,
12
12
  dual,
@@ -46,7 +46,7 @@ import {
46
46
  isFailure2,
47
47
  hasInterrupts,
48
48
  makeUnsafe5,
49
- make16,
49
+ make15,
50
50
  _await,
51
51
  fail5,
52
52
  isDoneUnsafe,
@@ -165,12 +165,12 @@ import {
165
165
  encodePrettyJsonString,
166
166
  decodeJsonStringSync,
167
167
  encodeUnknownJsonStringSync
168
- } from "./chunk-jbwk6k6m.js";
168
+ } from "./chunk-v9nqb2tp.js";
169
169
  import {
170
170
  Id,
171
171
  secretReference,
172
172
  secretPlaceholder
173
- } from "./chunk-545b129z.js";
173
+ } from "./chunk-fwsq4r8a.js";
174
174
  import {
175
175
  currentTimeMillis,
176
176
  SecureRandom,
@@ -243,7 +243,7 @@ import {
243
243
  installCommand,
244
244
  checkServicesFile,
245
245
  checkServices
246
- } from "./chunk-g4j97dv5.js";
246
+ } from "./chunk-61jk9k82.js";
247
247
  import {
248
248
  join,
249
249
  interrupt,
@@ -252,7 +252,7 @@ import {
252
252
  unbounded2,
253
253
  offer,
254
254
  makeUnsafe3,
255
- make11,
255
+ make10,
256
256
  fromQueue,
257
257
  fromPubSub,
258
258
  map2,
@@ -283,7 +283,7 @@ import {
283
283
  writeSrtSettings2,
284
284
  srtStepArgv2,
285
285
  srtArgv2
286
- } from "./chunk-xb70ys3n.js";
286
+ } from "./chunk-bxxym84e.js";
287
287
  import {
288
288
  writeAgentEnvironmentConfigFile2,
289
289
  readManifestSkillPaths2,
@@ -299,8 +299,12 @@ import {
299
299
  applyAgentEnvironmentMaterialization2,
300
300
  isPathWithin2,
301
301
  skillIdentity2
302
- } from "./chunk-bqpj1be3.js";
303
- import"./chunk-qbsqc416.js";
302
+ } from "./chunk-0dwnwx45.js";
303
+ import"./chunk-z0tv3ak5.js";
304
+ import {
305
+ ChildProcessSpawner,
306
+ make2
307
+ } from "./chunk-wqv9y3dk.js";
304
308
  import {
305
309
  egressAllowed,
306
310
  writeSecretRegistry,
@@ -310,7 +314,7 @@ import {
310
314
  secretFilter2,
311
315
  opaqueTunnelRefusal2,
312
316
  isOpaqueConnectReason2
313
- } from "./chunk-b0cscqbw.js";
317
+ } from "./chunk-ctfv3bg6.js";
314
318
  import {
315
319
  sliceBytes2,
316
320
  maxLineBytes2,
@@ -318,23 +322,19 @@ import {
318
322
  decodedOption2,
319
323
  decoded2,
320
324
  readOpencode2
321
- } from "./chunk-e8zm8z3a.js";
325
+ } from "./chunk-xkqbgz5j.js";
322
326
  import {
323
327
  uploadRunFile,
324
328
  programLease,
325
329
  rpcRunFiles,
326
330
  programHostsEnv,
327
331
  undeclaredHostsEnv
328
- } from "./chunk-6h16wtxk.js";
329
- import"./chunk-nnq8d7k0.js";
332
+ } from "./chunk-vcvnk771.js";
333
+ import"./chunk-czxcs1ce.js";
330
334
  import {
331
335
  nextInt
332
- } from "./chunk-76ctrqm6.js";
333
- import {
334
- ChildProcessSpawner,
335
- make3
336
- } from "./chunk-98sg1yyd.js";
337
- import"./chunk-cn6h21ar.js";
336
+ } from "./chunk-2afjvt1c.js";
337
+ import"./chunk-1xn27063.js";
338
338
 
339
339
  // packages/core/src/sync-kit.ts
340
340
  import { createHash } from "crypto";
@@ -4824,6 +4824,7 @@ var sendFailure = (error) => ("code" in error) && isString(error.code) ? error.c
4824
4824
  var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
4825
4825
  var storable = (value) => isString(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
4826
4826
  var isKitmanAsk = (tool) => /kitman/.test(tool) && /(?:^|_|\.)ask$/.test(tool);
4827
+ var waitsOnPerson = (tool) => /kitman/.test(tool) && /(?:^|_|\.)(?:ask|submit_output)$/.test(tool);
4827
4828
  var filesOf = (tool, args) => {
4828
4829
  const patch = isJsonObject(args) ? args.patchText : args;
4829
4830
  if (tool === "apply_patch" && isString(patch))
@@ -5134,7 +5135,7 @@ var transcriptRelay = (input) => {
5134
5135
  if (events.length > 0)
5135
5136
  progressAt = yield* currentTimeMillis;
5136
5137
  for (const event of events)
5137
- if (event.kind === "tool_call" && isKitmanAsk(event.name))
5138
+ if (event.kind === "tool_call" && waitsOnPerson(event.name))
5138
5139
  remembered(asking, event.callId);
5139
5140
  else if (event.kind === "tool_result")
5140
5141
  asking.delete(event.callId);
@@ -6531,7 +6532,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
6531
6532
  const input = yield* unbounded2();
6532
6533
  const pending = new Map;
6533
6534
  let lastId = 0;
6534
- const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
6535
+ const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
6535
6536
  cwd: env.home,
6536
6537
  extendEnv: true,
6537
6538
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -6554,7 +6555,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
6554
6555
  return {
6555
6556
  request: (method, params) => gen(function* () {
6556
6557
  const id = ++lastId;
6557
- const deferred = yield* make16();
6558
+ const deferred = yield* make15();
6558
6559
  pending.set(id, deferred);
6559
6560
  yield* send({ id, method, params });
6560
6561
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -6694,10 +6695,10 @@ var handshake = [
6694
6695
  `).join("");
6695
6696
  var kitmanMcpPreflight = (mcp) => gen(function* () {
6696
6697
  const spawner = yield* ChildProcessSpawner;
6697
- const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
6698
+ const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
6698
6699
  extendEnv: true,
6699
6700
  env: mcp.env,
6700
- stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
6701
+ stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
6701
6702
  stderr: "ignore"
6702
6703
  }));
6703
6704
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -6770,8 +6771,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
6770
6771
  };
6771
6772
  const exitCode = sandbox === undefined ? yield* gen(function* () {
6772
6773
  const spawner = yield* ChildProcessSpawner;
6773
- const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
6774
- stdin: make11(new TextEncoder().encode(stdin)),
6774
+ const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
6775
+ stdin: make10(new TextEncoder().encode(stdin)),
6775
6776
  stdout: "inherit",
6776
6777
  stderr: "inherit",
6777
6778
  extendEnv: false,