@kitman-sh/cli 0.10.61 → 0.10.62

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-x306t6v1.js → chunk-09jf8588.js} +11 -11
  2. package/dist/{chunk-qdn9tnav.js → chunk-0fdgam8v.js} +17 -26
  3. package/dist/{chunk-rzr11xyn.js → chunk-1w81w56v.js} +2 -2
  4. package/dist/{chunk-byhwksbq.js → chunk-1z9p4q8b.js} +2 -2
  5. package/dist/{chunk-769fbeff.js → chunk-5y050gx7.js} +36 -36
  6. package/dist/{chunk-26hcgbe7.js → chunk-a4798jzf.js} +3 -3
  7. package/dist/{chunk-677etczq.js → chunk-d3ksv8y1.js} +28 -70
  8. package/dist/{chunk-43tv7md8.js → chunk-d8awdfdj.js} +60 -60
  9. package/dist/{chunk-evgrce0h.js → chunk-e3tv8mv2.js} +5 -5
  10. package/dist/{chunk-zej59tf2.js → chunk-eawcprsb.js} +60 -14
  11. package/dist/{chunk-wf3ednaj.js → chunk-ft2fm6ye.js} +19 -19
  12. package/dist/{chunk-mewtccqf.js → chunk-hvev0dve.js} +11 -11
  13. package/dist/{chunk-7a5njmab.js → chunk-hxkk42cg.js} +7 -7
  14. package/dist/{chunk-eyw9a80g.js → chunk-kz8e6cfc.js} +21 -21
  15. package/dist/{chunk-1vav1vaf.js → chunk-phmma642.js} +7 -7
  16. package/dist/{chunk-p23kedha.js → chunk-q3c7vmby.js} +1 -1
  17. package/dist/{chunk-wnwyp9qn.js → chunk-rrnee9mk.js} +1 -1
  18. package/dist/{chunk-ksx5nt4b.js → chunk-rrz0v4fg.js} +5 -5
  19. package/dist/{chunk-k2bnq58a.js → chunk-sdpjvc1r.js} +115 -107
  20. package/dist/{chunk-r0s0wvev.js → chunk-smgvtzd2.js} +7 -7
  21. package/dist/{chunk-h6360r1c.js → chunk-v01c0k6j.js} +1 -1
  22. package/dist/{chunk-n7g89pj2.js → chunk-wkccjgwb.js} +4 -4
  23. package/dist/{chunk-9p6v3jd2.js → chunk-wtpwkjws.js} +4 -4
  24. package/dist/{chunk-qdx3wa4y.js → chunk-z0z56a72.js} +9 -9
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -1,12 +1,4 @@
1
1
  // @bun
2
- import {
3
- decodeText,
4
- mkString,
5
- FileSystem,
6
- Path,
7
- withDefault,
8
- String2
9
- } from "./chunk-qdn9tnav.js";
10
2
  import {
11
3
  isString2,
12
4
  hasProperty,
@@ -40,9 +32,17 @@ import {
40
32
  toCodecJson,
41
33
  Json,
42
34
  encodePrettyJsonString
43
- } from "./chunk-677etczq.js";
44
- import"./chunk-wnwyp9qn.js";
45
- import"./chunk-h6360r1c.js";
35
+ } from "./chunk-d3ksv8y1.js";
36
+ import"./chunk-rrnee9mk.js";
37
+ import"./chunk-v01c0k6j.js";
38
+ import {
39
+ decodeText,
40
+ mkString,
41
+ FileSystem,
42
+ Path,
43
+ withDefault,
44
+ String2
45
+ } from "./chunk-0fdgam8v.js";
46
46
  import {
47
47
  SecureRandom,
48
48
  layerWebCrypto,
@@ -54,23 +54,23 @@ import {
54
54
  layer4,
55
55
  kitmanMcpServer,
56
56
  RunnerRpcProtocolVersion
57
- } from "./chunk-k2bnq58a.js";
57
+ } from "./chunk-sdpjvc1r.js";
58
58
  import {
59
59
  Packument,
60
60
  tarballMatches
61
- } from "./chunk-26hcgbe7.js";
62
- import"./chunk-7a5njmab.js";
61
+ } from "./chunk-a4798jzf.js";
62
+ import"./chunk-hxkk42cg.js";
63
63
  import {
64
64
  AgentDeclaration,
65
65
  KitDeclarations,
66
66
  describeFlag,
67
67
  Described
68
- } from "./chunk-1vav1vaf.js";
68
+ } from "./chunk-phmma642.js";
69
69
  import {
70
70
  ChildProcessSpawner,
71
- make2
72
- } from "./chunk-zej59tf2.js";
73
- import"./chunk-evgrce0h.js";
71
+ make3
72
+ } from "./chunk-eawcprsb.js";
73
+ import"./chunk-e3tv8mv2.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
109
109
  }));
110
110
  var run = (command, args, cwd) => gen(function* () {
111
111
  const spawner = yield* ChildProcessSpawner;
112
- const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
112
+ const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
113
113
  const [stdout, stderr, exitCode] = yield* all3([
114
114
  mkString(decodeText(handle.stdout)),
115
115
  mkString(decodeText(handle.stderr)),
@@ -1,8 +1,4 @@
1
1
  // @bun
2
- import {
3
- FileSystem,
4
- Path
5
- } from "./chunk-qdn9tnav.js";
6
2
  import {
7
3
  isObject2,
8
4
  isUint8Array,
@@ -16,26 +12,30 @@ import {
16
12
  orElseSucceed,
17
13
  decodeJsonString,
18
14
  encodePrettyJsonString
19
- } from "./chunk-677etczq.js";
20
- import"./chunk-wnwyp9qn.js";
15
+ } from "./chunk-d3ksv8y1.js";
16
+ import"./chunk-rrnee9mk.js";
21
17
  import {
22
18
  isJsonObject
23
- } from "./chunk-h6360r1c.js";
19
+ } from "./chunk-v01c0k6j.js";
20
+ import {
21
+ FileSystem,
22
+ Path
23
+ } from "./chunk-0fdgam8v.js";
24
24
  import {
25
25
  tomlTableHeader2,
26
26
  tomlKeyPath2,
27
27
  kitmanSkillEntry,
28
28
  isPathWithin2
29
- } from "./chunk-qdx3wa4y.js";
29
+ } from "./chunk-z0z56a72.js";
30
30
  import {
31
31
  instructionsStart,
32
32
  instructionsEnd,
33
33
  renderMcpServer,
34
34
  materializeKitSetup,
35
35
  tomlInline
36
- } from "./chunk-k2bnq58a.js";
37
- import"./chunk-26hcgbe7.js";
38
- import"./chunk-zej59tf2.js";
36
+ } from "./chunk-sdpjvc1r.js";
37
+ import"./chunk-a4798jzf.js";
38
+ import"./chunk-eawcprsb.js";
39
39
 
40
40
  // packages/agent-runtime/src/kit-setup-sync.ts
41
41
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-677etczq.js";
9
+ } from "./chunk-d3ksv8y1.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-qdn9tnav.js";
12
+ } from "./chunk-0fdgam8v.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-k2bnq58a.js";
22
+ } from "./chunk-sdpjvc1r.js";
23
23
  import {
24
24
  layerJson,
25
- make3,
25
+ make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-evgrce0h.js";
28
+ } from "./chunk-e3tv8mv2.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
46
46
  var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
47
47
  var makeRunnerRpcClient2 = (options) => gen(function* () {
48
48
  const protocol = yield* build(options.protocol);
49
- const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
50
50
  const authorized = authorizer(options);
51
51
  return {
52
52
  claim: (input) => authorized(client.Claim(input)),
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
74
74
  });
75
75
  var makeProgramRpcClient2 = (options) => gen(function* () {
76
76
  const protocol = yield* build(options.protocol);
77
- const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -6,7 +6,7 @@ import {
6
6
  getOrUndefined,
7
7
  Reference,
8
8
  TaggedError,
9
- make15,
9
+ make16,
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-677etczq.js";
88
+ } from "./chunk-d3ksv8y1.js";
89
89
  import {
90
90
  tap,
91
91
  mapError,
@@ -97,7 +97,7 @@ import {
97
97
  withDefault,
98
98
  option,
99
99
  String2
100
- } from "./chunk-qdn9tnav.js";
100
+ } from "./chunk-0fdgam8v.js";
101
101
  import {
102
102
  currentTimeMillis,
103
103
  SecureRandom,
@@ -135,7 +135,7 @@ import {
135
135
  digestSha256,
136
136
  sha256Hasher,
137
137
  raw,
138
- make4,
138
+ make5,
139
139
  get,
140
140
  put,
141
141
  HttpClient,
@@ -197,10 +197,10 @@ import {
197
197
  harnessNames,
198
198
  herdrRunnerCapabilities2,
199
199
  declaredChecks
200
- } from "./chunk-k2bnq58a.js";
200
+ } from "./chunk-sdpjvc1r.js";
201
201
  import {
202
202
  Id
203
- } from "./chunk-wnwyp9qn.js";
203
+ } from "./chunk-rrnee9mk.js";
204
204
  import {
205
205
  toJsonValue,
206
206
  isOneOf,
@@ -210,11 +210,11 @@ import {
210
210
  isObject,
211
211
  isJsonObject,
212
212
  isString
213
- } from "./chunk-h6360r1c.js";
213
+ } from "./chunk-v01c0k6j.js";
214
214
  import {
215
215
  ChildProcessSpawner,
216
- make2
217
- } from "./chunk-zej59tf2.js";
216
+ make3
217
+ } from "./chunk-eawcprsb.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-n7g89pj2.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
507
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-wkccjgwb.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-n7g89pj2.js")), (module) => module.updateHerdrCore(options))
510
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-wkccjgwb.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-mewtccqf.js"));
736
+ const { syncKitSetup } = yield* promise(() => import("./chunk-hvev0dve.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(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1252
+ const handle = yield* spawner.spawn(make3(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.61";
1654
+ var cliVersion = "0.10.62";
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-43tv7md8.js"));
1904
+ var agentRuntime = promise(() => import("./chunk-d8awdfdj.js"));
1905
1905
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
1906
1906
  defaultValue: () => gen(function* () {
1907
1907
  const tui = yield* tryPromise({
@@ -2756,7 +2756,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
2756
2756
  });
2757
2757
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2758
2758
  defaultValue: () => (options) => gen(function* () {
2759
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-r0s0wvev.js"));
2759
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-smgvtzd2.js"));
2760
2760
  return yield* makeRunnerRpcClient({
2761
2761
  runnerId: options.runnerId,
2762
2762
  bearer: options.bearer,
@@ -2951,7 +2951,7 @@ function startCanonicalHerdrRunnerCommand(input) {
2951
2951
  });
2952
2952
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
2953
2953
  const platform = yield* context();
2954
- const updated = yield* make15();
2954
+ const updated = yield* make16();
2955
2955
  const scope = yield* scope2;
2956
2956
  yield* listenForSignals({
2957
2957
  rpc,
@@ -3140,7 +3140,7 @@ function mcpCommand(args) {
3140
3140
  if (command.action === "run") {
3141
3141
  if (command.args.length > 0)
3142
3142
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3143
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-769fbeff.js"));
3143
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-5y050gx7.js"));
3144
3144
  return yield* runMcpServerCommand({ flags: command.flags });
3145
3145
  }
3146
3146
  if (command.action !== "setup")
@@ -4342,9 +4342,9 @@ function claimCommand(args) {
4342
4342
  }
4343
4343
  });
4344
4344
  }
4345
- var KitWriter = map8(promise(() => import("./chunk-wf3ednaj.js")), (build) => build.writeKit);
4345
+ var KitWriter = map8(promise(() => import("./chunk-ft2fm6ye.js")), (build) => build.writeKit);
4346
4346
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4347
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-wf3ednaj.js")), (build) => build.buildKit(directory))
4347
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-ft2fm6ye.js")), (build) => build.buildKit(directory))
4348
4348
  });
4349
4349
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4350
4350
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -5102,7 +5102,7 @@ function downloadPresignedAsset(download, outputPath) {
5102
5102
  return gen(function* () {
5103
5103
  const fs = yield* FileSystem;
5104
5104
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
5105
- const response = yield* send(make4(download.method)(download.url), failed);
5105
+ const response = yield* send(make5(download.method)(download.url), failed);
5106
5106
  if (response.status < 200 || response.status >= 300)
5107
5107
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
5108
5108
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -75,14 +75,10 @@ import {
75
75
  toEquivalence,
76
76
  toCodecJson,
77
77
  Json
78
- } from "./chunk-677etczq.js";
79
- import {
80
- runForEach,
81
- FileSystem
82
- } from "./chunk-qdn9tnav.js";
78
+ } from "./chunk-d3ksv8y1.js";
83
79
  import {
84
80
  guard
85
- } from "./chunk-wnwyp9qn.js";
81
+ } from "./chunk-rrnee9mk.js";
86
82
  import {
87
83
  currentTimeMillis,
88
84
  WebCrypto,
@@ -109,7 +105,11 @@ import {
109
105
  KitDigest,
110
106
  KitSetup,
111
107
  RunnerRpcError
112
- } from "./chunk-k2bnq58a.js";
108
+ } from "./chunk-sdpjvc1r.js";
109
+ import {
110
+ runForEach,
111
+ FileSystem
112
+ } from "./chunk-0fdgam8v.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");
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-677etczq.js";
6
+ } from "./chunk-d3ksv8y1.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-677etczq.js";
21
+ } from "./chunk-d3ksv8y1.js";
22
22
 
23
23
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
24
  var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
@@ -7,11 +7,11 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-x306t6v1.js";
11
- import"./chunk-zej59tf2.js";
12
- import"./chunk-h6360r1c.js";
13
- import"./chunk-qdn9tnav.js";
14
- import"./chunk-677etczq.js";
10
+ } from "./chunk-09jf8588.js";
11
+ import"./chunk-eawcprsb.js";
12
+ import"./chunk-v01c0k6j.js";
13
+ import"./chunk-0fdgam8v.js";
14
+ import"./chunk-d3ksv8y1.js";
15
15
  export {
16
16
  decoded2 as decoded,
17
17
  decodedOption2 as decodedOption,