@kitman-sh/cli 0.14.7 → 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-bty0mbn4.js → chunk-0x5r7h2g.js} +19 -19
  2. package/dist/{chunk-79g5zh2p.js → chunk-2r4jy82z.js} +2 -2
  3. package/dist/{chunk-d2bqqd9t.js → chunk-3hdjd2c3.js} +48 -22
  4. package/dist/{chunk-64zvzv63.js → chunk-6qygqj10.js} +6 -6
  5. package/dist/{chunk-w8pevmva.js → chunk-93xj74qp.js} +3 -3
  6. package/dist/{chunk-rjz0pnf9.js → chunk-axr8avvs.js} +4 -4
  7. package/dist/{chunk-cn86thbx.js → chunk-b2yy07ag.js} +4 -4
  8. package/dist/{chunk-bdd62njv.js → chunk-bmwf2ea5.js} +177 -34
  9. package/dist/{chunk-8k6adfg7.js → chunk-c80dvhxf.js} +1 -1
  10. package/dist/{chunk-s7rhz991.js → chunk-cpss81fx.js} +6 -6
  11. package/dist/{chunk-y6njjend.js → chunk-cwdrhsvk.js} +2 -2
  12. package/dist/{chunk-htxs2z8d.js → chunk-czmbgsqr.js} +25 -4
  13. package/dist/{chunk-aj2608jz.js → chunk-dd7wknyk.js} +132 -281
  14. package/dist/{chunk-hz4t408c.js → chunk-e3c15bgw.js} +4 -4
  15. package/dist/{chunk-gnhfwa99.js → chunk-enmtmq63.js} +1 -1
  16. package/dist/{chunk-9yenzg12.js → chunk-ftre6ndb.js} +18 -18
  17. package/dist/{chunk-qkh0dhad.js → chunk-h7qv6nzc.js} +3 -3
  18. package/dist/{chunk-xxx61cda.js → chunk-jsb61dsk.js} +29 -29
  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-ag19ejy7.js → chunk-qvyqfm54.js} +9 -9
  22. package/dist/{chunk-jv4p85q5.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-c9j28q63.js → chunk-y9x0yv20.js} +23 -23
  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,13 +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
174
  Id,
175
175
  secretReference,
176
176
  secretPlaceholder
177
- } from "./chunk-8k6adfg7.js";
177
+ } from "./chunk-c80dvhxf.js";
178
178
  import {
179
+ currentTimeMillis,
179
180
  SecureRandom,
180
181
  layerWebCrypto,
181
182
  layer,
@@ -254,9 +255,8 @@ import {
254
255
  checkServicesFile,
255
256
  checkServices,
256
257
  serviceChecks
257
- } from "./chunk-aj2608jz.js";
258
+ } from "./chunk-dd7wknyk.js";
258
259
  import {
259
- currentTimeMillis,
260
260
  join,
261
261
  interrupt,
262
262
  unbounded,
@@ -264,7 +264,7 @@ import {
264
264
  unbounded2,
265
265
  offer,
266
266
  makeUnsafe3,
267
- make10,
267
+ make11,
268
268
  fromQueue,
269
269
  fromPubSub,
270
270
  map2,
@@ -300,7 +300,7 @@ import {
300
300
  writeSrtSettings2,
301
301
  srtStepArgv2,
302
302
  srtArgv2
303
- } from "./chunk-bdd62njv.js";
303
+ } from "./chunk-bmwf2ea5.js";
304
304
  import {
305
305
  writeAgentEnvironmentConfigFile2,
306
306
  readManifestSkillPaths2,
@@ -316,8 +316,8 @@ import {
316
316
  applyAgentEnvironmentMaterialization2,
317
317
  isPathWithin2,
318
318
  skillIdentity2
319
- } from "./chunk-cn86thbx.js";
320
- import"./chunk-qkh0dhad.js";
319
+ } from "./chunk-b2yy07ag.js";
320
+ import"./chunk-h7qv6nzc.js";
321
321
  import {
322
322
  egressAllowed,
323
323
  writeSecretRegistry,
@@ -327,7 +327,7 @@ import {
327
327
  secretFilter2,
328
328
  opaqueTunnelRefusal2,
329
329
  isOpaqueConnectReason2
330
- } from "./chunk-y6njjend.js";
330
+ } from "./chunk-cwdrhsvk.js";
331
331
  import {
332
332
  sliceBytes2,
333
333
  maxLineBytes2,
@@ -335,23 +335,23 @@ import {
335
335
  decodedOption2,
336
336
  decoded2,
337
337
  readOpencode2
338
- } from "./chunk-b009hdm0.js";
338
+ } from "./chunk-mgjer6c7.js";
339
339
  import {
340
340
  uploadRunFile,
341
341
  programLease,
342
342
  rpcRunFiles,
343
343
  programHostsEnv,
344
344
  undeclaredHostsEnv
345
- } from "./chunk-d2bqqd9t.js";
346
- import"./chunk-s7rhz991.js";
345
+ } from "./chunk-3hdjd2c3.js";
346
+ import"./chunk-cpss81fx.js";
347
347
  import {
348
348
  nextInt
349
- } from "./chunk-bbf0jzsc.js";
349
+ } from "./chunk-vt8aqeby.js";
350
350
  import {
351
351
  ChildProcessSpawner,
352
352
  make3
353
- } from "./chunk-79g5zh2p.js";
354
- import"./chunk-9yenzg12.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,11 +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
80
  guard
81
- } from "./chunk-8k6adfg7.js";
81
+ } from "./chunk-c80dvhxf.js";
82
82
  import {
83
+ currentTimeMillis,
83
84
  WebCrypto,
84
85
  SafeJson,
85
86
  AgentSandboxNetwork,
@@ -87,6 +88,7 @@ import {
87
88
  AgentCapabilities,
88
89
  LoopDataSchemaRef,
89
90
  LoopVersion,
91
+ LoopDescription,
90
92
  ProgramLoop,
91
93
  AgentFallback,
92
94
  ProgramWorkUnit,
@@ -104,12 +106,11 @@ import {
104
106
  KitDigest,
105
107
  KitSetup,
106
108
  RunnerRpcError
107
- } from "./chunk-aj2608jz.js";
109
+ } from "./chunk-dd7wknyk.js";
108
110
  import {
109
- currentTimeMillis,
110
111
  runForEach,
111
112
  FileSystem
112
- } from "./chunk-bdd62njv.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-s7rhz991.js";
8
- import"./chunk-9yenzg12.js";
9
- import"./chunk-aj2608jz.js";
10
- import"./chunk-8k6adfg7.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-y6njjend.js";
8
- import"./chunk-8k6adfg7.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-aj2608jz.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-aj2608jz.js";
39
+ } from "./chunk-dd7wknyk.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-qkh0dhad.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 = {}) {