@kitman-sh/cli 0.12.2 → 0.12.4

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.
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-mtkstrh3.js";
2
+ import"./chunk-nfc1scfz.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,8 +12,8 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-c7253rcg.js";
16
- import"./chunk-0h49y8gf.js";
15
+ } from "./chunk-vbv9x6d7.js";
16
+ import"./chunk-trqvcc06.js";
17
17
  import"./chunk-zw3gf6r5.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
@@ -1,4 +1,9 @@
1
1
  // @bun
2
+ import {
3
+ make11,
4
+ runForEach,
5
+ compiled2
6
+ } from "./chunk-trqvcc06.js";
2
7
  import {
3
8
  getOrUndefined,
4
9
  liftThrowable,
@@ -26,15 +31,10 @@ import {
26
31
  isString2,
27
32
  encodeUnknownJsonStringSync
28
33
  } from "./chunk-zw3gf6r5.js";
29
- import {
30
- make11,
31
- runForEach,
32
- compiled2
33
- } from "./chunk-0h49y8gf.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-mtkstrh3.js";
37
+ } from "./chunk-nfc1scfz.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-gmm11k85.js";
7
+ } from "./chunk-9hqbmnkh.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -76,6 +76,10 @@ import {
76
76
  toCodecJson,
77
77
  Json
78
78
  } from "./chunk-zw3gf6r5.js";
79
+ import {
80
+ runForEach,
81
+ FileSystem
82
+ } from "./chunk-trqvcc06.js";
79
83
  import {
80
84
  guard
81
85
  } from "./chunk-q5w3v4k1.js";
@@ -105,11 +109,7 @@ import {
105
109
  KitDigest,
106
110
  KitSetup,
107
111
  RunnerRpcError
108
- } from "./chunk-c7253rcg.js";
109
- import {
110
- runForEach,
111
- FileSystem
112
- } from "./chunk-0h49y8gf.js";
112
+ } from "./chunk-vbv9x6d7.js";
113
113
 
114
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -1,4 +1,12 @@
1
1
  // @bun
2
+ import {
3
+ decodeText,
4
+ mkString,
5
+ FileSystem,
6
+ Path,
7
+ withDefault,
8
+ String2
9
+ } from "./chunk-trqvcc06.js";
2
10
  import {
3
11
  isString,
4
12
  hasProperty,
@@ -34,14 +42,6 @@ import {
34
42
  encodePrettyJsonString
35
43
  } from "./chunk-zw3gf6r5.js";
36
44
  import"./chunk-q5w3v4k1.js";
37
- import {
38
- decodeText,
39
- mkString,
40
- FileSystem,
41
- Path,
42
- withDefault,
43
- String2
44
- } from "./chunk-0h49y8gf.js";
45
45
  import {
46
46
  SecureRandom,
47
47
  layerWebCrypto,
@@ -53,23 +53,23 @@ import {
53
53
  layer4,
54
54
  kitmanMcpServer,
55
55
  RunnerRpcProtocolVersion
56
- } from "./chunk-c7253rcg.js";
56
+ } from "./chunk-vbv9x6d7.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-1wbdexzg.js";
61
- import"./chunk-13yrey2v.js";
60
+ } from "./chunk-rs0qassb.js";
61
+ import"./chunk-6b91ftp6.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-4d4n8qjs.js";
67
+ } from "./chunk-j373bdw1.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
70
  make3
71
- } from "./chunk-mtkstrh3.js";
72
- import"./chunk-fs72937p.js";
71
+ } from "./chunk-nfc1scfz.js";
72
+ import"./chunk-v1pa2dpe.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -31,7 +31,7 @@ import {
31
31
  runCollect,
32
32
  runDrain,
33
33
  mkString
34
- } from "./chunk-0h49y8gf.js";
34
+ } from "./chunk-trqvcc06.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;
@@ -1,4 +1,8 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path
5
+ } from "./chunk-trqvcc06.js";
2
6
  import {
3
7
  isObject,
4
8
  isUint8Array,
@@ -15,25 +19,21 @@ import {
15
19
  encodePrettyJsonString
16
20
  } from "./chunk-zw3gf6r5.js";
17
21
  import"./chunk-q5w3v4k1.js";
18
- import {
19
- FileSystem,
20
- Path
21
- } from "./chunk-0h49y8gf.js";
22
22
  import {
23
23
  tomlTableHeader2,
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-rgby07sa.js";
27
+ } from "./chunk-y1mhc7qd.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
31
31
  renderMcpServer,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-c7253rcg.js";
35
- import"./chunk-1wbdexzg.js";
36
- import"./chunk-mtkstrh3.js";
34
+ } from "./chunk-vbv9x6d7.js";
35
+ import"./chunk-rs0qassb.js";
36
+ import"./chunk-nfc1scfz.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
39
39
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -4,11 +4,11 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-13yrey2v.js";
8
- import"./chunk-fs72937p.js";
9
- import"./chunk-c7253rcg.js";
7
+ } from "./chunk-6b91ftp6.js";
8
+ import"./chunk-v1pa2dpe.js";
9
+ import"./chunk-vbv9x6d7.js";
10
10
  import"./chunk-q5w3v4k1.js";
11
- import"./chunk-0h49y8gf.js";
11
+ import"./chunk-trqvcc06.js";
12
12
  import"./chunk-zw3gf6r5.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-0h49y8gf.js";
31
+ } from "./chunk-trqvcc06.js";
32
32
  import {
33
33
  newerKitmanVersion,
34
34
  digestSha256,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-c7253rcg.js";
42
+ } from "./chunk-vbv9x6d7.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -250,6 +250,15 @@ var makeEquivalence = (equivalence) => {
250
250
  return (self, that) => is(self, that) && is(that, self);
251
251
  };
252
252
 
253
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
254
+ var BigInt2 = globalThis.BigInt;
255
+ var toNumber = (b) => {
256
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
257
+ return none();
258
+ }
259
+ return some(Number(b));
260
+ };
261
+
253
262
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
254
263
  var bigint0 = /* @__PURE__ */ BigInt(0);
255
264
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -3557,4 +3566,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3557
3566
  ...argv
3558
3567
  ];
3559
3568
 
3560
- export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3569
+ export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-0h49y8gf.js";
111
+ } from "./chunk-trqvcc06.js";
112
112
  import {
113
113
  Clock,
114
114
  empty,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-c7253rcg.js";
126
+ } from "./chunk-vbv9x6d7.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")) {
@@ -265,6 +265,7 @@ import {
265
265
  import {
266
266
  map,
267
267
  makeEquivalence,
268
+ toNumber,
268
269
  bytes,
269
270
  BadArgument,
270
271
  systemError,
@@ -328,7 +329,7 @@ import {
328
329
  String2,
329
330
  optionalEnv,
330
331
  harnessesUnsupportedInSrt2
331
- } from "./chunk-0h49y8gf.js";
332
+ } from "./chunk-trqvcc06.js";
332
333
  import {
333
334
  isDateTime,
334
335
  Numeric,
@@ -355,7 +356,7 @@ import {
355
356
  make3,
356
357
  parseFdName,
357
358
  fdName
358
- } from "./chunk-mtkstrh3.js";
359
+ } from "./chunk-nfc1scfz.js";
359
360
 
360
361
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
361
362
  var makeEquivalence3 = Tuple;
@@ -897,15 +898,6 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
897
898
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
898
899
  var runMain = runMain2;
899
900
 
900
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
901
- var BigInt2 = globalThis.BigInt;
902
- var toNumber = (b) => {
903
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
904
- return none();
905
- }
906
- return some(Number(b));
907
- };
908
-
909
901
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
902
  var makeUnsafe = makeUnsafe6;
911
903
  var make18 = make4;
@@ -6253,6 +6245,8 @@ var Run = Struct({
6253
6245
  failureSummary: optionalKey(String4),
6254
6246
  closure: optionalKey(RunClosure),
6255
6247
  alignment: optionalKey(RunAlignment),
6248
+ pausedAt: optionalKey(Timestamp),
6249
+ pausedBy: optionalKey(RunActorRef),
6256
6250
  startedAt: optionalKey(Timestamp),
6257
6251
  completedAt: optionalKey(Timestamp),
6258
6252
  createdAt: Timestamp,
@@ -6516,6 +6510,7 @@ var RunSteer = Struct({
6516
6510
  text: LoopSafeText,
6517
6511
  delivery: Literals(RunSteerDeliveries),
6518
6512
  step: optionalKey(String4),
6513
+ sender: optionalKey(RunActorRef),
6519
6514
  createdAt: Timestamp
6520
6515
  });
6521
6516
  var RunSteerInput = Struct({
@@ -6536,6 +6531,7 @@ var RunSteerSent = Struct({
6536
6531
  var RunDisplayStates = [
6537
6532
  "queued",
6538
6533
  "running",
6534
+ "paused",
6539
6535
  "needs_you",
6540
6536
  "blocked",
6541
6537
  "failed",
@@ -6615,7 +6611,7 @@ var RunShow = Struct({
6615
6611
  })),
6616
6612
  artifacts: ArraySchema(RunArtifact),
6617
6613
  findings: ArraySchema(RunArtifact),
6618
- events: ArraySchema(Struct({ id: Id, type: String4, occurredAt: Timestamp })),
6614
+ events: ArraySchema(Struct({ id: Id, type: String4, actor: optionalKey(RunActorRef), occurredAt: Timestamp })),
6619
6615
  evidence: ArraySchema(RunEvidence),
6620
6616
  steers: ArraySchema(RunSteer),
6621
6617
  waiting: ArraySchema(RunWaiting),
@@ -6722,7 +6718,7 @@ var RunAnswer = Struct({
6722
6718
  question: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
6723
6719
  idempotencyKey: String4.check(isMinLength(1), isMaxLength(240))
6724
6720
  });
6725
- var RunActionKinds = ["offer", "stop", "resume"];
6721
+ var RunActionKinds = ["offer", "stop", "pause", "resume"];
6726
6722
  var RunActionSummary = Struct({
6727
6723
  id: String4.check(isMinLength(1)),
6728
6724
  title: String4,
@@ -11334,6 +11330,7 @@ var metricLabels = new Map;
11334
11330
  var runDisplayLabels = {
11335
11331
  queued: "Queued",
11336
11332
  running: "Running",
11333
+ paused: "Paused",
11337
11334
  needs_you: "Needs you",
11338
11335
  blocked: "Blocked",
11339
11336
  failed: "Failed",
@@ -12448,6 +12445,9 @@ class KitmanEffectClient {
12448
12445
  headers: this.headers()
12449
12446
  });
12450
12447
  }
12448
+ pauseRun(runId) {
12449
+ return this.request("pauseRun", `/runs/${segment(runId)}/pause`, { method: "POST", headers: this.headers() });
12450
+ }
12451
12451
  resumeRun(runId, input = {}) {
12452
12452
  return this.request("resumeRun", `/runs/${segment(runId)}/resume`, {
12453
12453
  method: "POST",
@@ -12593,6 +12593,11 @@ class KitmanEffectClient {
12593
12593
  headers: this.headers()
12594
12594
  });
12595
12595
  }
12596
+ showReviewQueue(workspaceId) {
12597
+ return this.request("showReviewQueue", `/workspaces/${segment(workspaceId)}/inbox/review-queue`, {
12598
+ headers: this.headers()
12599
+ });
12600
+ }
12596
12601
  markInboxRead(workspaceId, input) {
12597
12602
  return this.request("markInboxRead", `/workspaces/${segment(workspaceId)}/inbox/read`, {
12598
12603
  method: "POST",
@@ -1,4 +1,10 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path,
5
+ optionalEnv,
6
+ tempDirectoryScoped
7
+ } from "./chunk-trqvcc06.js";
2
8
  import {
3
9
  Reference,
4
10
  TaggedError,
@@ -26,20 +32,14 @@ import {
26
32
  encodePrettyJsonString,
27
33
  decodeJsonStringSync
28
34
  } from "./chunk-zw3gf6r5.js";
29
- import {
30
- FileSystem,
31
- Path,
32
- optionalEnv,
33
- tempDirectoryScoped
34
- } from "./chunk-0h49y8gf.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-c7253rcg.js";
39
+ } from "./chunk-vbv9x6d7.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-1wbdexzg.js";
42
+ } from "./chunk-rs0qassb.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -14,7 +14,7 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-0h49y8gf.js";
17
+ } from "./chunk-trqvcc06.js";
18
18
  import"./chunk-zw3gf6r5.js";
19
19
  export {
20
20
  compiled2 as compiled,
@@ -7,9 +7,9 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-cbpb2rww.js";
11
- import"./chunk-mtkstrh3.js";
12
- import"./chunk-0h49y8gf.js";
10
+ } from "./chunk-bvpczkzf.js";
11
+ import"./chunk-nfc1scfz.js";
12
+ import"./chunk-trqvcc06.js";
13
13
  import"./chunk-zw3gf6r5.js";
14
14
  export {
15
15
  decoded2 as decoded,
package/dist/index.js CHANGED
@@ -5,15 +5,15 @@
5
5
  var args = process.argv.slice(2);
6
6
  if (args[0] === "srt") {
7
7
  process.argv.splice(2, 1);
8
- const { runSrtCli } = await import("./chunk-5zth85pj.js");
8
+ const { runSrtCli } = await import("./chunk-ywgv15tb.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
11
  const { runSrtStep } = await import("./chunk-gy9rf14f.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-5zhh41gb.js");
14
+ const { runOpencodeReader } = await import("./chunk-zbcxbph8.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-fq26n6j0.js");
17
+ const { runCli } = await import("./chunk-7tf77mw4.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.12.2",
3
+ "version": "0.12.4",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {