@kitman-sh/cli 0.14.8 → 0.14.9

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 (27) hide show
  1. package/dist/{chunk-6dj39qtt.js → chunk-0x5r7h2g.js} +23 -23
  2. package/dist/{chunk-79g5zh2p.js → chunk-2r4jy82z.js} +2 -2
  3. package/dist/{chunk-hrtr5wfq.js → chunk-3hdjd2c3.js} +50 -24
  4. package/dist/{chunk-721qyd1a.js → chunk-6qygqj10.js} +6 -6
  5. package/dist/{chunk-ctpgfdzf.js → chunk-93xj74qp.js} +3 -3
  6. package/dist/{chunk-63m3r0k4.js → chunk-axr8avvs.js} +4 -4
  7. package/dist/{chunk-5wrhj4cj.js → chunk-b2yy07ag.js} +4 -4
  8. package/dist/{chunk-bdd62njv.js → chunk-bmwf2ea5.js} +177 -34
  9. package/dist/{chunk-9avbsbvk.js → chunk-c80dvhxf.js} +6 -1
  10. package/dist/{chunk-drp4zdwq.js → chunk-cpss81fx.js} +6 -6
  11. package/dist/{chunk-y0y2gg8d.js → chunk-cwdrhsvk.js} +2 -2
  12. package/dist/{chunk-cf723a2y.js → chunk-czmbgsqr.js} +25 -4
  13. package/dist/{chunk-xfs1nf75.js → chunk-dd7wknyk.js} +132 -281
  14. package/dist/{chunk-hz4t408c.js → chunk-e3c15bgw.js} +4 -4
  15. package/dist/{chunk-6x43ntsx.js → chunk-enmtmq63.js} +1 -1
  16. package/dist/{chunk-dq21ab8w.js → chunk-ftre6ndb.js} +18 -18
  17. package/dist/{chunk-q0x3c0dh.js → chunk-h7qv6nzc.js} +3 -3
  18. package/dist/{chunk-wszvkzg8.js → chunk-jsb61dsk.js} +30 -30
  19. package/dist/{chunk-b009hdm0.js → chunk-mgjer6c7.js} +5 -5
  20. package/dist/{chunk-bpx2zjh7.js → chunk-qb9jft1r.js} +2 -2
  21. package/dist/{chunk-1rwaetnm.js → chunk-qvyqfm54.js} +9 -9
  22. package/dist/{chunk-ya4z1n5p.js → chunk-vjt0d9zj.js} +7 -7
  23. package/dist/{chunk-bbf0jzsc.js → chunk-vt8aqeby.js} +1 -1
  24. package/dist/{chunk-zpp4jg4a.js → chunk-wttgq85b.js} +60 -60
  25. package/dist/{chunk-eytzmdna.js → chunk-y9x0yv20.js} +28 -28
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -42,7 +42,7 @@ import {
42
42
  isFailure2,
43
43
  hasInterrupts,
44
44
  makeUnsafe5,
45
- make15,
45
+ make16,
46
46
  _await,
47
47
  fail5,
48
48
  isDoneUnsafe,
@@ -169,8 +169,14 @@ import {
169
169
  decodeJsonStringSync,
170
170
  encodeUnknownJsonStringSync,
171
171
  storable
172
- } from "./chunk-zpp4jg4a.js";
172
+ } from "./chunk-wttgq85b.js";
173
173
  import {
174
+ Id,
175
+ secretReference,
176
+ secretPlaceholder
177
+ } from "./chunk-c80dvhxf.js";
178
+ import {
179
+ currentTimeMillis,
174
180
  SecureRandom,
175
181
  layerWebCrypto,
176
182
  layer,
@@ -249,9 +255,8 @@ import {
249
255
  checkServicesFile,
250
256
  checkServices,
251
257
  serviceChecks
252
- } from "./chunk-xfs1nf75.js";
258
+ } from "./chunk-dd7wknyk.js";
253
259
  import {
254
- currentTimeMillis,
255
260
  join,
256
261
  interrupt,
257
262
  unbounded,
@@ -259,7 +264,7 @@ import {
259
264
  unbounded2,
260
265
  offer,
261
266
  makeUnsafe3,
262
- make10,
267
+ make11,
263
268
  fromQueue,
264
269
  fromPubSub,
265
270
  map2,
@@ -295,7 +300,7 @@ import {
295
300
  writeSrtSettings2,
296
301
  srtStepArgv2,
297
302
  srtArgv2
298
- } from "./chunk-bdd62njv.js";
303
+ } from "./chunk-bmwf2ea5.js";
299
304
  import {
300
305
  writeAgentEnvironmentConfigFile2,
301
306
  readManifestSkillPaths2,
@@ -311,8 +316,8 @@ import {
311
316
  applyAgentEnvironmentMaterialization2,
312
317
  isPathWithin2,
313
318
  skillIdentity2
314
- } from "./chunk-5wrhj4cj.js";
315
- import"./chunk-q0x3c0dh.js";
319
+ } from "./chunk-b2yy07ag.js";
320
+ import"./chunk-h7qv6nzc.js";
316
321
  import {
317
322
  egressAllowed,
318
323
  writeSecretRegistry,
@@ -322,7 +327,7 @@ import {
322
327
  secretFilter2,
323
328
  opaqueTunnelRefusal2,
324
329
  isOpaqueConnectReason2
325
- } from "./chunk-y0y2gg8d.js";
330
+ } from "./chunk-cwdrhsvk.js";
326
331
  import {
327
332
  sliceBytes2,
328
333
  maxLineBytes2,
@@ -330,28 +335,23 @@ import {
330
335
  decodedOption2,
331
336
  decoded2,
332
337
  readOpencode2
333
- } from "./chunk-b009hdm0.js";
338
+ } from "./chunk-mgjer6c7.js";
334
339
  import {
335
340
  uploadRunFile,
336
341
  programLease,
337
342
  rpcRunFiles,
338
343
  programHostsEnv,
339
344
  undeclaredHostsEnv
340
- } from "./chunk-hrtr5wfq.js";
341
- import"./chunk-drp4zdwq.js";
345
+ } from "./chunk-3hdjd2c3.js";
346
+ import"./chunk-cpss81fx.js";
342
347
  import {
343
348
  nextInt
344
- } from "./chunk-bbf0jzsc.js";
349
+ } from "./chunk-vt8aqeby.js";
345
350
  import {
346
351
  ChildProcessSpawner,
347
352
  make3
348
- } from "./chunk-79g5zh2p.js";
349
- import"./chunk-dq21ab8w.js";
350
- import {
351
- Id,
352
- secretReference,
353
- secretPlaceholder
354
- } from "./chunk-9avbsbvk.js";
353
+ } from "./chunk-2r4jy82z.js";
354
+ import"./chunk-ftre6ndb.js";
355
355
 
356
356
  // packages/core/src/sync-kit.ts
357
357
  import { createHash } from "crypto";
@@ -7346,7 +7346,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7346
7346
  return {
7347
7347
  request: (method, params) => gen(function* () {
7348
7348
  const id = ++lastId;
7349
- const deferred = yield* make15();
7349
+ const deferred = yield* make16();
7350
7350
  pending.set(id, deferred);
7351
7351
  yield* send({ id, method, params });
7352
7352
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -7489,7 +7489,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
7489
7489
  const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
7490
7490
  extendEnv: true,
7491
7491
  env: mcp.env,
7492
- stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
7492
+ stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
7493
7493
  stderr: "ignore"
7494
7494
  }));
7495
7495
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -7563,7 +7563,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
7563
7563
  const exitCode = sandbox === undefined ? yield* gen(function* () {
7564
7564
  const spawner = yield* ChildProcessSpawner;
7565
7565
  const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
7566
- stdin: make10(new TextEncoder().encode(stdin)),
7566
+ stdin: make11(new TextEncoder().encode(stdin)),
7567
7567
  stdout: "inherit",
7568
7568
  stderr: "inherit",
7569
7569
  extendEnv: false,
@@ -22,7 +22,7 @@ import {
22
22
  map8,
23
23
  raceFirst,
24
24
  scoped
25
- } from "./chunk-zpp4jg4a.js";
25
+ } from "./chunk-wttgq85b.js";
26
26
  import {
27
27
  unwrap,
28
28
  drainFork,
@@ -31,7 +31,7 @@ import {
31
31
  runCollect,
32
32
  runDrain,
33
33
  mkString
34
- } from "./chunk-bdd62njv.js";
34
+ } from "./chunk-bmwf2ea5.js";
35
35
 
36
36
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
37
37
  var redactedRegistry = /* @__PURE__ */ new WeakMap;
@@ -75,8 +75,12 @@ import {
75
75
  toEquivalence,
76
76
  toCodecJson,
77
77
  Json
78
- } from "./chunk-zpp4jg4a.js";
78
+ } from "./chunk-wttgq85b.js";
79
79
  import {
80
+ guard
81
+ } from "./chunk-c80dvhxf.js";
82
+ import {
83
+ currentTimeMillis,
80
84
  WebCrypto,
81
85
  SafeJson,
82
86
  AgentSandboxNetwork,
@@ -84,6 +88,7 @@ import {
84
88
  AgentCapabilities,
85
89
  LoopDataSchemaRef,
86
90
  LoopVersion,
91
+ LoopDescription,
87
92
  ProgramLoop,
88
93
  AgentFallback,
89
94
  ProgramWorkUnit,
@@ -101,15 +106,11 @@ import {
101
106
  KitDigest,
102
107
  KitSetup,
103
108
  RunnerRpcError
104
- } from "./chunk-xfs1nf75.js";
109
+ } from "./chunk-dd7wknyk.js";
105
110
  import {
106
- currentTimeMillis,
107
111
  runForEach,
108
112
  FileSystem
109
- } from "./chunk-bdd62njv.js";
110
- import {
111
- guard
112
- } from "./chunk-9avbsbvk.js";
113
+ } from "./chunk-bmwf2ea5.js";
113
114
 
114
115
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
116
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -236,6 +237,7 @@ var LoopCapabilities = [
236
237
  "read_project",
237
238
  "draft_update"
238
239
  ];
240
+ var LoopRoles = ["review"];
239
241
  var JsonObject = Record(String4, Json);
240
242
  var SecretName = String4.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
241
243
  var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
@@ -251,9 +253,11 @@ var LoopManifest = Struct({
251
253
  id: String4,
252
254
  title: String4,
253
255
  version: optionalKey(LoopVersion),
256
+ description: optionalKey(LoopDescription),
254
257
  input: JsonObject,
255
258
  output: JsonObject,
256
259
  outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
260
+ role: optionalKey(Literals(LoopRoles)),
257
261
  agents: Record(String4, String4),
258
262
  checkout: Literals(["none", "read", "write"]),
259
263
  when: ArraySchema(WhenClause),
@@ -332,6 +336,45 @@ var KitDeclarations = Struct({
332
336
  var sameLoop = toEquivalence(LoopManifest);
333
337
  var sameAgent = toEquivalence(AgentDeclaration);
334
338
 
339
+ // packages/sdk/src/loop/review.ts
340
+ var Severity = Literals(["blocker", "major", "minor"]);
341
+ var Finding = Struct({
342
+ severity: Severity,
343
+ file: String4,
344
+ line: Int,
345
+ detail: String4
346
+ });
347
+ var MergedFinding = Struct({
348
+ id: String4,
349
+ ...Finding.fields,
350
+ seats: ArraySchema(String4),
351
+ blockingSeats: optionalKey(ArraySchema(String4))
352
+ });
353
+ var Rebuttal = Struct({ findingId: String4, reason: String4 });
354
+ var RebuttalVerdict = Struct({ findingId: String4, accepted: Boolean2 });
355
+ var ScopeJudgement = Struct({ met: Boolean2, unmet: ArraySchema(String4) });
356
+
357
+ // packages/sdk/src/loop/role.ts
358
+ var ReviewRoleFinding = Struct({ id: String4, severity: Severity });
359
+ var ReviewRoleInput = Struct({
360
+ changeRequestId: optional(String4),
361
+ base: optional(String4),
362
+ head: optional(String4),
363
+ files: optional(ArraySchema(String4)),
364
+ since: optional(String4),
365
+ approved: optional(String4),
366
+ failing: optional(ArraySchema(String4)),
367
+ notRun: optional(ArraySchema(String4)),
368
+ reviewed: optional(String4),
369
+ earlier: optional(ArraySchema(ReviewRoleFinding))
370
+ });
371
+ var ReviewRoleOutput = Struct({
372
+ findings: ArraySchema(ReviewRoleFinding),
373
+ blocking: Boolean2,
374
+ scope: optional(Struct({ met: Boolean2 })),
375
+ failing: optional(ArraySchema(String4))
376
+ });
377
+
335
378
  // packages/sdk/src/loop/define.ts
336
379
  var LoopOutcome = Literals([
337
380
  "feature",
@@ -984,23 +1027,6 @@ var LoopJournal = Struct({
984
1027
 
985
1028
  class ScriptedFailure extends TaggedClass("ScriptedFailure") {
986
1029
  }
987
- // packages/sdk/src/loop/review.ts
988
- var Severity = Literals(["blocker", "major", "minor"]);
989
- var Finding = Struct({
990
- severity: Severity,
991
- file: String4,
992
- line: Int,
993
- detail: String4
994
- });
995
- var MergedFinding = Struct({
996
- id: String4,
997
- ...Finding.fields,
998
- seats: ArraySchema(String4),
999
- blockingSeats: optionalKey(ArraySchema(String4))
1000
- });
1001
- var Rebuttal = Struct({ findingId: String4, reason: String4 });
1002
- var RebuttalVerdict = Struct({ findingId: String4, accepted: Boolean2 });
1003
- var ScopeJudgement = Struct({ met: Boolean2, unmet: ArraySchema(String4) });
1004
1030
  // packages/sdk/src/loop/check.ts
1005
1031
  class CheckFailed extends TaggedError2()("CheckFailed", {
1006
1032
  loop: String4,
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-drp4zdwq.js";
8
- import"./chunk-dq21ab8w.js";
9
- import"./chunk-xfs1nf75.js";
10
- import"./chunk-9avbsbvk.js";
11
- import"./chunk-bdd62njv.js";
12
- import"./chunk-zpp4jg4a.js";
7
+ } from "./chunk-cpss81fx.js";
8
+ import"./chunk-ftre6ndb.js";
9
+ import"./chunk-dd7wknyk.js";
10
+ import"./chunk-c80dvhxf.js";
11
+ import"./chunk-bmwf2ea5.js";
12
+ import"./chunk-wttgq85b.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-y0y2gg8d.js";
8
- import"./chunk-9avbsbvk.js";
9
- import"./chunk-zpp4jg4a.js";
7
+ } from "./chunk-cwdrhsvk.js";
8
+ import"./chunk-c80dvhxf.js";
9
+ import"./chunk-wttgq85b.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-79g5zh2p.js";
2
+ import"./chunk-2r4jy82z.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-xfs1nf75.js";
16
- import"./chunk-bdd62njv.js";
17
- import"./chunk-zpp4jg4a.js";
15
+ } from "./chunk-dd7wknyk.js";
16
+ import"./chunk-bmwf2ea5.js";
17
+ import"./chunk-wttgq85b.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-zpp4jg4a.js";
28
+ } from "./chunk-wttgq85b.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-bdd62njv.js";
34
+ } from "./chunk-bmwf2ea5.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-xfs1nf75.js";
39
+ } from "./chunk-dd7wknyk.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-q0x3c0dh.js";
42
+ } from "./chunk-h7qv6nzc.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {