@kitman-sh/cli 0.13.12 → 0.13.14

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-36s51mp6.js → chunk-06dwvzv0.js} +64 -64
  2. package/dist/{chunk-fwja3qb1.js → chunk-24h0y27w.js} +1 -1
  3. package/dist/{chunk-ths93svq.js → chunk-3vbs995s.js} +208 -352
  4. package/dist/{chunk-4m923rz8.js → chunk-4142qeg3.js} +3 -3
  5. package/dist/{chunk-02ye1s9f.js → chunk-5ba08a9e.js} +18 -18
  6. package/dist/{chunk-nge8fq10.js → chunk-5mxvqg32.js} +9 -9
  7. package/dist/{chunk-n1aqwdc2.js → chunk-6agcvxbj.js} +10 -10
  8. package/dist/{chunk-8cxh8j07.js → chunk-89rpg6j9.js} +94 -94
  9. package/dist/{chunk-3z9yz32f.js → chunk-8xpdkxr7.js} +14 -60
  10. package/dist/{chunk-1bkrxc3v.js → chunk-aa30tt6t.js} +2 -2
  11. package/dist/{chunk-4t6nrgxw.js → chunk-d4kmyv5h.js} +4 -4
  12. package/dist/{chunk-npjpmb0w.js → chunk-dwxqp8ez.js} +9 -9
  13. package/dist/{chunk-x5nv63jj.js → chunk-ef3nzqng.js} +3 -3
  14. package/dist/{chunk-8t1vygmr.js → chunk-fk5238tn.js} +4 -4
  15. package/dist/{chunk-eahqsd8h.js → chunk-ggmwpwhf.js} +2 -2
  16. package/dist/{chunk-szt25e0z.js → chunk-hgfphycc.js} +191 -39
  17. package/dist/{chunk-95w14qxp.js → chunk-hmt2egsx.js} +6 -6
  18. package/dist/{chunk-9d03t0pn.js → chunk-hw9fcfs0.js} +9 -9
  19. package/dist/{chunk-yab3j170.js → chunk-mmd7mjv0.js} +3 -3
  20. package/dist/{chunk-mcw7wvtx.js → chunk-pxvd8w2v.js} +6 -1
  21. package/dist/{chunk-zb5pnthp.js → chunk-st8ggqv1.js} +33 -33
  22. package/dist/{chunk-2xh5p0na.js → chunk-vjsqg4a5.js} +12 -11
  23. package/dist/{chunk-z74fnmqb.js → chunk-vmww6hnk.js} +20 -20
  24. package/dist/{chunk-n734b61f.js → chunk-zencwg2t.js} +1 -1
  25. package/dist/{chunk-8pbnfqaz.js → chunk-zgraq2y3.js} +101 -59
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -104,8 +104,21 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-8pbnfqaz.js";
107
+ } from "./chunk-zgraq2y3.js";
108
108
  import {
109
+ tap,
110
+ mapError,
111
+ decodeText,
112
+ run,
113
+ mkString,
114
+ FileSystem,
115
+ Path,
116
+ withDefault,
117
+ option,
118
+ String2
119
+ } from "./chunk-hgfphycc.js";
120
+ import {
121
+ currentTimeMillis,
109
122
  SecureRandom,
110
123
  layerWebCrypto,
111
124
  runMain,
@@ -154,7 +167,7 @@ import {
154
167
  digestSha256,
155
168
  sha256Hasher,
156
169
  raw,
157
- make5,
170
+ make4,
158
171
  get,
159
172
  put,
160
173
  HttpClient,
@@ -217,27 +230,14 @@ import {
217
230
  harnessNames,
218
231
  herdrRunnerCapabilities2,
219
232
  declaredChecks
220
- } from "./chunk-ths93svq.js";
233
+ } from "./chunk-3vbs995s.js";
221
234
  import {
222
- currentTimeMillis,
223
- tap,
224
- mapError,
225
- decodeText,
226
- run,
227
- mkString,
228
- FileSystem,
229
- Path,
230
- withDefault,
231
- option,
232
- String2
233
- } from "./chunk-szt25e0z.js";
235
+ Id
236
+ } from "./chunk-pxvd8w2v.js";
234
237
  import {
235
238
  ChildProcessSpawner,
236
- make3
237
- } from "./chunk-3z9yz32f.js";
238
- import {
239
- Id
240
- } from "./chunk-mcw7wvtx.js";
239
+ make2
240
+ } from "./chunk-8xpdkxr7.js";
241
241
 
242
242
  // apps/cli/src/cli-error.ts
243
243
  function cliErrorCode(error, status) {
@@ -1018,10 +1018,10 @@ var sandboxMissing = (sandbox, missing) => ({
1018
1018
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1019
1019
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1020
1020
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1021
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-8t1vygmr.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1021
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-fk5238tn.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1022
1022
  });
1023
1023
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1024
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-8t1vygmr.js")), (module) => module.updateHerdrCore(options))
1024
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-fk5238tn.js")), (module) => module.updateHerdrCore(options))
1025
1025
  });
1026
1026
  var herdrCoreMissing = (error) => {
1027
1027
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1447,7 +1447,7 @@ var syncTargets = (harness) => gen(function* () {
1447
1447
  });
1448
1448
  var syncKits = (input) => gen(function* () {
1449
1449
  const fs = yield* FileSystem;
1450
- const { syncKitSetup } = yield* promise(() => import("./chunk-n1aqwdc2.js"));
1450
+ const { syncKitSetup } = yield* promise(() => import("./chunk-6agcvxbj.js"));
1451
1451
  const harnesses = yield* syncTargets(input.harness);
1452
1452
  const chain = yield* input.client.getKitChain(input.workspaceId);
1453
1453
  for (const { name, problem } of chain.skipped)
@@ -1964,7 +1964,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
1964
1964
  run: (command, args) => runCommand2(command, args),
1965
1965
  attach: (command, args) => gen(function* () {
1966
1966
  const spawner = yield* ChildProcessSpawner;
1967
- const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1967
+ const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1968
1968
  const exitCode = yield* handle.exitCode;
1969
1969
  if (exitCode !== 0)
1970
1970
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -2366,7 +2366,7 @@ var package_default = {
2366
2366
  };
2367
2367
 
2368
2368
  // apps/cli/src/scaffold.ts
2369
- var cliVersion = "0.13.12";
2369
+ var cliVersion = "0.13.14";
2370
2370
  var packageJson = (name, scaffold) => `${JSON.stringify({
2371
2371
  name,
2372
2372
  private: true,
@@ -2518,7 +2518,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2518
2518
 
2519
2519
  // apps/cli/src/commands.ts
2520
2520
  var ClientId = "kitman-cli";
2521
- var agentRuntime = promise(() => import("./chunk-36s51mp6.js"));
2521
+ var agentRuntime = promise(() => import("./chunk-06dwvzv0.js"));
2522
2522
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2523
2523
  defaultValue: () => gen(function* () {
2524
2524
  const tui = yield* tryPromise({
@@ -3554,7 +3554,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3554
3554
  });
3555
3555
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3556
3556
  defaultValue: () => (options) => gen(function* () {
3557
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-95w14qxp.js"));
3557
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-hmt2egsx.js"));
3558
3558
  return yield* makeRunnerRpcClient({
3559
3559
  runnerId: options.runnerId,
3560
3560
  bearer: options.bearer,
@@ -4118,7 +4118,7 @@ function mcpCommand(args) {
4118
4118
  if (command.action === "run") {
4119
4119
  if (command.args.length > 0)
4120
4120
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4121
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-8cxh8j07.js"));
4121
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-89rpg6j9.js"));
4122
4122
  return yield* runMcpServerCommand({ flags: command.flags });
4123
4123
  }
4124
4124
  if (command.action !== "setup")
@@ -4606,7 +4606,7 @@ function programLoopCommand(command) {
4606
4606
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4607
4607
  });
4608
4608
  }
4609
- var docsModule = promise(() => import("./chunk-n734b61f.js"));
4609
+ var docsModule = promise(() => import("./chunk-zencwg2t.js"));
4610
4610
  function docsCommand(args) {
4611
4611
  return gen(function* () {
4612
4612
  const command = parseCommand(args);
@@ -4869,7 +4869,7 @@ var runShowLines = (shown) => [
4869
4869
  ...questionLines2(shown.questions.filter((question) => question.status === "open")),
4870
4870
  ...shown.artifacts.flatMap((artifact) => [`Artifact ${artifact.kind}: ${artifact.title}`, artifact.text]),
4871
4871
  ...shown.children.map((child) => `Child ${child.name}: ${child.runId} ${child.status}`),
4872
- ...shown.waiting.map((waiting) => waiting.kind === "queue" ? `${waiting.unrunnable === undefined ? "Waiting for a Runner slot for" : "Waiting for a Runner that can run"} ${waiting.name}: ${queueWords(waiting)}` : `Waiting on ${waiting.kind} ${waiting.name}`)
4872
+ ...shown.waiting.map((waiting) => waiting.kind === "queue" ? waiting.quotaUntil !== undefined ? `${waiting.name}: ${queueWords(waiting)}` : `${waiting.unrunnable === undefined ? "Waiting for a Runner slot for" : "Waiting for a Runner that can run"} ${waiting.name}: ${queueWords(waiting)}` : `Waiting on ${waiting.kind} ${waiting.name}`)
4873
4873
  ];
4874
4874
  var myTeamsSections = [
4875
4875
  ["needsYou", "Needs you"],
@@ -5441,9 +5441,9 @@ function changeRequestCommand(args) {
5441
5441
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5442
5442
  });
5443
5443
  }
5444
- var KitWriter = map8(promise(() => import("./chunk-02ye1s9f.js")), (build) => build.writeKit);
5444
+ var KitWriter = map8(promise(() => import("./chunk-5ba08a9e.js")), (build) => build.writeKit);
5445
5445
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5446
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-02ye1s9f.js")), (build) => build.buildKit(directory))
5446
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-5ba08a9e.js")), (build) => build.buildKit(directory))
5447
5447
  });
5448
5448
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5449
5449
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -6220,7 +6220,7 @@ function downloadPresignedAsset(download, outputPath) {
6220
6220
  return gen(function* () {
6221
6221
  const fs = yield* FileSystem;
6222
6222
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
6223
- const response = yield* send(make5(download.method)(download.url), failed);
6223
+ const response = yield* send(make4(download.method)(download.url), failed);
6224
6224
  if (response.status < 200 || response.status >= 300)
6225
6225
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
6226
6226
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -75,8 +75,16 @@ import {
75
75
  toEquivalence,
76
76
  toCodecJson,
77
77
  Json
78
- } from "./chunk-8pbnfqaz.js";
78
+ } from "./chunk-zgraq2y3.js";
79
79
  import {
80
+ runForEach,
81
+ FileSystem
82
+ } from "./chunk-hgfphycc.js";
83
+ import {
84
+ guard
85
+ } from "./chunk-pxvd8w2v.js";
86
+ import {
87
+ currentTimeMillis,
80
88
  WebCrypto,
81
89
  SafeJson,
82
90
  AgentSandboxNetwork,
@@ -101,15 +109,7 @@ import {
101
109
  KitDigest,
102
110
  KitSetup,
103
111
  RunnerRpcError
104
- } from "./chunk-ths93svq.js";
105
- import {
106
- currentTimeMillis,
107
- runForEach,
108
- FileSystem
109
- } from "./chunk-szt25e0z.js";
110
- import {
111
- guard
112
- } from "./chunk-mcw7wvtx.js";
112
+ } from "./chunk-3vbs995s.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");
@@ -670,7 +670,8 @@ var CreateTasksRequest = Struct({
670
670
  tickets: ArraySchema(PlanTicket),
671
671
  projectId: optionalKey(String4),
672
672
  builds: optionalKey(Boolean2),
673
- releases: optionalKey(Boolean2)
673
+ releases: optionalKey(Boolean2),
674
+ planReviewed: optionalKey(Boolean2)
674
675
  });
675
676
  var CreateTasksResult = Struct({
676
677
  tasks: ArraySchema(Struct({ key: String4, taskId: String4 }))
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get3,
15
+ get4,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,8 +96,21 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-8pbnfqaz.js";
99
+ } from "./chunk-zgraq2y3.js";
100
100
  import {
101
+ interrupt,
102
+ getCurrent,
103
+ makeUnsafe2,
104
+ bounded,
105
+ offerAll,
106
+ failCause,
107
+ end,
108
+ shutdownUnsafe,
109
+ fromQueue,
110
+ unwrap
111
+ } from "./chunk-hgfphycc.js";
112
+ import {
113
+ Clock,
101
114
  empty,
102
115
  fromInput,
103
116
  merge,
@@ -110,20 +123,7 @@ import {
110
123
  ParseOptions,
111
124
  RpcClientDefect,
112
125
  RpcClientError
113
- } from "./chunk-ths93svq.js";
114
- import {
115
- Clock,
116
- interrupt,
117
- getCurrent,
118
- makeUnsafe2,
119
- bounded,
120
- offerAll,
121
- failCause,
122
- end,
123
- shutdownUnsafe,
124
- fromQueue,
125
- unwrap
126
- } from "./chunk-szt25e0z.js";
126
+ } from "./chunk-3vbs995s.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")) {
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
237
  const disableTracing = options?.disableTracing ?? false;
238
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
239
  const services = yield* context();
240
- const scope = get3(services, Scope);
240
+ const scope = get4(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
483
483
  };
484
484
  });
485
485
  var clientIdCounter = 0;
486
- var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
487
487
  const clientId = clientIdCounter++;
488
488
  const {
489
489
  codecFor,
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get3(rpc.annotations, ParseOptions);
646
+ const parseOptions = get4(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
829
829
  class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
830
830
  }
831
831
 
832
- export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-x5nv63jj.js";
7
+ } from "./chunk-ef3nzqng.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,