@kitman-sh/cli 0.49.0 → 0.50.1

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 (28) hide show
  1. package/dist/{chunk-4vxbxjf8.js → chunk-5tgpa02q.js} +1 -1
  2. package/dist/{chunk-6ne389p2.js → chunk-72ht3484.js} +10 -10
  3. package/dist/{chunk-6btp5qcy.js → chunk-7y1w0dhd.js} +13 -11
  4. package/dist/{chunk-zr1kvjzj.js → chunk-8r9k7pqk.js} +9 -3
  5. package/dist/{chunk-ceh3fcex.js → chunk-9jz94mb7.js} +1 -1
  6. package/dist/{chunk-5t7qvmkj.js → chunk-9vdy85kg.js} +21 -21
  7. package/dist/{chunk-kaqwjb64.js → chunk-ag79vvjy.js} +4 -4
  8. package/dist/{chunk-04wqa07j.js → chunk-apv9h5tz.js} +1 -1
  9. package/dist/{chunk-wr2yqtwt.js → chunk-bk28dr40.js} +20 -20
  10. package/dist/{chunk-vtzn8zqj.js → chunk-brbym443.js} +2 -2
  11. package/dist/{chunk-cv7xg2ps.js → chunk-ecweehc6.js} +103 -81
  12. package/dist/{chunk-59hspz5e.js → chunk-g3c1vesf.js} +1 -1
  13. package/dist/{chunk-nsw1wykj.js → chunk-h3wes7wf.js} +10 -10
  14. package/dist/{chunk-xajmb07d.js → chunk-hyaq30ne.js} +21 -170
  15. package/dist/{chunk-9ykh05hz.js → chunk-k1fdsn2c.js} +1 -1
  16. package/dist/{chunk-dh7ewhqd.js → chunk-k5cqc0cs.js} +6 -4
  17. package/dist/{chunk-e2dszepq.js → chunk-mtrhqr16.js} +3 -3
  18. package/dist/{chunk-n3jpxd14.js → chunk-n00cpb86.js} +2 -2
  19. package/dist/{chunk-k462v2v7.js → chunk-n381rqax.js} +157 -13
  20. package/dist/{chunk-0n9f624b.js → chunk-q8m2ygyt.js} +4 -4
  21. package/dist/{chunk-5pjbxhxy.js → chunk-qfwhsqej.js} +3 -3
  22. package/dist/{chunk-8qvgey5g.js → chunk-rr0rem5d.js} +6 -6
  23. package/dist/{chunk-c3m48dge.js → chunk-s6z4sdkw.js} +4 -4
  24. package/dist/{chunk-qvvph24z.js → chunk-s8ws5fqj.js} +18 -11
  25. package/dist/{chunk-0hb5d4rz.js → chunk-v96hm634.js} +9 -9
  26. package/dist/{chunk-cps0774f.js → chunk-watq46xe.js} +19 -11
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-k462v2v7.js";
21
+ } from "./chunk-n381rqax.js";
22
22
 
23
23
  // packages/core/src/schema.ts
24
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -1,12 +1,4 @@
1
1
  // @bun
2
- import {
3
- currentTimeMillis,
4
- make10,
5
- runForEach,
6
- toPull,
7
- FileSystem,
8
- compiled2
9
- } from "./chunk-xajmb07d.js";
10
2
  import {
11
3
  isSome,
12
4
  getOrElse,
@@ -43,11 +35,19 @@ import {
43
35
  isJsonObject,
44
36
  isString2,
45
37
  encodeUnknownJsonStringSync
46
- } from "./chunk-k462v2v7.js";
38
+ } from "./chunk-n381rqax.js";
47
39
  import {
40
+ make10,
41
+ runForEach,
42
+ toPull,
43
+ FileSystem,
44
+ compiled2
45
+ } from "./chunk-hyaq30ne.js";
46
+ import {
47
+ currentTimeMillis,
48
48
  ChildProcessSpawner,
49
49
  make2
50
- } from "./chunk-zr1kvjzj.js";
50
+ } from "./chunk-8r9k7pqk.js";
51
51
 
52
52
  // packages/agent-runtime/src/opencode-store.ts
53
53
  import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-k462v2v7.js";
121
+ } from "./chunk-n381rqax.js";
122
122
  import {
123
123
  SecureRandom,
124
124
  makeUnsafe,
@@ -170,9 +170,8 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-qvvph24z.js";
173
+ } from "./chunk-s8ws5fqj.js";
174
174
  import {
175
- currentTimeMillis,
176
175
  join,
177
176
  interrupt,
178
177
  empty3,
@@ -188,30 +187,33 @@ import {
188
187
  withDefault,
189
188
  option,
190
189
  String2
191
- } from "./chunk-xajmb07d.js";
190
+ } from "./chunk-hyaq30ne.js";
192
191
  import {
193
192
  searchDocs2,
194
193
  readDoc2
195
- } from "./chunk-ceh3fcex.js";
194
+ } from "./chunk-9jz94mb7.js";
196
195
  import {
197
196
  nextInt
198
- } from "./chunk-04wqa07j.js";
197
+ } from "./chunk-apv9h5tz.js";
199
198
  import {
200
199
  recommendationProblem
201
- } from "./chunk-9ykh05hz.js";
200
+ } from "./chunk-k1fdsn2c.js";
201
+ import {
202
+ currentTimeMillis
203
+ } from "./chunk-8r9k7pqk.js";
202
204
  import {
203
205
  layerJson,
204
206
  make3,
205
207
  withHeaders,
206
208
  layerProtocolSocket,
207
209
  ConnectionHooks
208
- } from "./chunk-dh7ewhqd.js";
210
+ } from "./chunk-k5cqc0cs.js";
209
211
  import {
210
212
  guard,
211
213
  Id,
212
214
  Timestamp,
213
215
  ActorType
214
- } from "./chunk-4vxbxjf8.js";
216
+ } from "./chunk-5tgpa02q.js";
215
217
 
216
218
  // apps/cli/src/mcp.ts
217
219
  import { tmpdir as tmpdir2 } from "os";
@@ -2420,7 +2422,6 @@ var generatedOpenApiSchemas = {
2420
2422
  "87d00551956db90e": JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"teamId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1},"runId":{"type":"string","minLength":1},"stepKey":{"type":"string","minLength":1,"maxLength":240},"waitId":{"type":"string","minLength":1},"taskThreadEntryId":{"type":"string","minLength":1},"prompt":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"freeText":{"type":"boolean"},"answerSchema":{"type":"object"},"optionDescriptions":{"type":"object","additionalProperties":{"type":"string"}},"recommended":{"type":"string"},"recommendationReason":{"type":"string"},"informationOnly":{"type":"boolean"},"default":{"type":"string","maxLength":4000,"pattern":"^(?![\\\\s\\\\S]*(?:(?:^|[^A-Za-z0-9])sk-[A-Za-z0-9_-]{16,}|ghp_[A-Za-z0-9_]+|github_pat_[A-Za-z0-9_]+|glpat-[A-Za-z0-9_-]+|\\\\b[Bb][Ee][Aa][Rr][Ee][Rr]\\\\s+[A-Za-z0-9._~+/=-]+|eyJ[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+|[A-Za-z][A-Za-z0-9+.-]*:\\\\/\\\\/(?:[^\\\\s/?#]*@|[^\\\\s?#]*\\\\?)))[\\\\s\\\\S]*$"},"defaultAt":{"type":"string","format":"date-time"},"responderPolicy":{"type":"object","properties":{"eligibleMemberIds":{"type":"array","items":{"type":"string","minLength":1},"maxItems":100,"uniqueItems":true},"allowWorkspaceAdmins":{"type":"boolean"}},"required":["eligibleMemberIds","allowWorkspaceAdmins"],"additionalProperties":false},"status":{"type":"string","enum":["open","answered","resume_requested","resumed","resume_failed","expired","cancelled"]},"answer":{"type":"object","properties":{"value":{"type":"string","maxLength":4000,"pattern":"^(?![\\\\s\\\\S]*(?:(?:^|[^A-Za-z0-9])sk-[A-Za-z0-9_-]{16,}|ghp_[A-Za-z0-9_]+|github_pat_[A-Za-z0-9_]+|glpat-[A-Za-z0-9_-]+|\\\\b[Bb][Ee][Aa][Rr][Ee][Rr]\\\\s+[A-Za-z0-9._~+/=-]+|eyJ[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+|[A-Za-z][A-Za-z0-9+.-]*:\\\\/\\\\/(?:[^\\\\s/?#]*@|[^\\\\s?#]*\\\\?)))[\\\\s\\\\S]*$"},"answeredByUserId":{"type":"string","minLength":1},"byDefault":{"type":"boolean"},"byAuto":{"type":"boolean"},"evidence":{"type":"object","properties":{"review":{"type":"string","minLength":1,"maxLength":240},"head":{"type":"string","minLength":1,"maxLength":240}},"additionalProperties":false},"answeredAt":{"type":"string","format":"date-time"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":240}},"required":["value","answeredAt","idempotencyKey"],"additionalProperties":false},"resolutionOutcome":{"type":"string","maxLength":4000,"pattern":"^(?![\\\\s\\\\S]*(?:(?:^|[^A-Za-z0-9])sk-[A-Za-z0-9_-]{16,}|ghp_[A-Za-z0-9_]+|github_pat_[A-Za-z0-9_]+|glpat-[A-Za-z0-9_-]+|\\\\b[Bb][Ee][Aa][Rr][Ee][Rr]\\\\s+[A-Za-z0-9._~+/=-]+|eyJ[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+|[A-Za-z][A-Za-z0-9+.-]*:\\\\/\\\\/(?:[^\\\\s/?#]*@|[^\\\\s?#]*\\\\?)))[\\\\s\\\\S]*$"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"resolvedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","runId","stepKey","waitId","prompt","responderPolicy","status","createdAt","updatedAt"],"additionalProperties":false}'),
2421
2423
  "883256a3dec42d3c": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"logo":{"type":["string","null"],"maxLength":2048},"notificationPreferences":{"type":"object","properties":{"decisionsRequiringAttention":{"type":"boolean"},"workReadyForReview":{"type":"boolean"}},"required":["decisionsRequiringAttention","workReadyForReview"],"additionalProperties":false},"releaseChannel":{"type":"string","enum":["stable","next"]}},"additionalProperties":false}}}'),
2422
2424
  "895ed3078f5b3bb9": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId"],"properties":{"workspaceId":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string","minLength":1},"me":{"type":"boolean"}}}}}'),
2423
- "89d13d5a543363c0": JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","input"],"properties":{"runnerId":{"type":"string"},"input":{"type":"object","properties":{"workUnitId":{"type":"string","minLength":1},"lease":{"type":"object","properties":{"leaseOwnerId":{"type":"string","minLength":1},"runnerReplicaId":{"type":"string","minLength":1},"leaseId":{"type":"string","minLength":1},"attempt":{"type":"integer","minimum":1,"maximum":9007199254740991},"fencingToken":{"type":"string","minLength":1,"maxLength":240,"pattern":"^[A-Za-z0-9._:-]+$"},"capacitySlot":{"type":"string","minLength":1,"maxLength":240}},"required":["leaseOwnerId","runnerReplicaId","leaseId","attempt","fencingToken","capacitySlot"],"additionalProperties":false},"crashed":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"],"additionalProperties":false},"tokens":{"anyOf":[{"type":"object","properties":{"input":{"type":"integer","minimum":0,"maximum":9007199254740991},"output":{"type":"integer","minimum":0,"maximum":9007199254740991},"cached":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input","output","cached"],"additionalProperties":false},{"type":"string","enum":["none"]}]},"ranModel":{"type":"string","minLength":1,"maxLength":200}},"required":["workUnitId","lease"],"additionalProperties":false}}}'),
2424
2425
  "89f8e1710beaa6fd": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskId","input"],"properties":{"workspaceId":{"type":"string"},"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"typeId":{"type":"string"}},"required":["typeId"],"additionalProperties":true}}}'),
2425
2426
  "8ac901573072021d": JSON.parse('{"type":"object","additionalProperties":false,"required":["taskId"],"properties":{"taskId":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"limit":{"anyOf":[{"type":"number"},{"type":"string"}],"multipleOf":1,"minimum":1,"maximum":100},"cursor":{"type":"string","minLength":1,"maxLength":512}}}}}'),
2426
2427
  "8b7f0d125d2e791e": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","loop","input"],"properties":{"workspaceId":{"type":"string"},"loop":{"type":"string"},"input":{"type":"object","properties":{"teamId":{"type":"string"},"projectId":{"type":"string"},"when":{"type":"string"},"values":{"type":"object"},"unset":{"type":"array","items":{"type":"string"}},"off":{"type":"boolean"}},"additionalProperties":false}}}'),
@@ -2566,6 +2567,7 @@ var generatedOpenApiSchemas = {
2566
2567
  d0fc6e2ff3936a66: JSON.parse('{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}'),
2567
2568
  d2bd2b1645c3d7c9: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskId","input"],"properties":{"workspaceId":{"type":"string"},"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"description":{"type":"string"},"expectedRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptanceCriteria":{"type":"array","items":{"type":"string"}},"promise":{"type":"string"},"outOfScope":{"type":"array","items":{"type":"string"}}},"additionalProperties":true,"allOf":[{"dependentRequired":{"description":["expectedRevision"]}}]}}}'),
2568
2569
  d414f4bf42cac3bf: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","releaseId","sinceId"],"properties":{"workspaceId":{"type":"string"},"releaseId":{"type":"string"},"sinceId":{"type":"string"}}}'),
2570
+ d42b4f0add6bacab: JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","input"],"properties":{"runnerId":{"type":"string"},"input":{"type":"object","properties":{"workUnitId":{"type":"string","minLength":1},"lease":{"type":"object","properties":{"leaseOwnerId":{"type":"string","minLength":1},"runnerReplicaId":{"type":"string","minLength":1},"leaseId":{"type":"string","minLength":1},"attempt":{"type":"integer","minimum":1,"maximum":9007199254740991},"fencingToken":{"type":"string","minLength":1,"maxLength":240,"pattern":"^[A-Za-z0-9._:-]+$"},"capacitySlot":{"type":"string","minLength":1,"maxLength":240}},"required":["leaseOwnerId","runnerReplicaId","leaseId","attempt","fencingToken","capacitySlot"],"additionalProperties":false},"crashed":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500},"output":{"type":"string","minLength":1,"maxLength":4000},"outputCut":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"tokens":{"anyOf":[{"type":"object","properties":{"input":{"type":"integer","minimum":0,"maximum":9007199254740991},"output":{"type":"integer","minimum":0,"maximum":9007199254740991},"cached":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input","output","cached"],"additionalProperties":false},{"type":"string","enum":["none"]}]},"ranModel":{"type":"string","minLength":1,"maxLength":200}},"required":["workUnitId","lease"],"additionalProperties":false}}}'),
2569
2571
  d43dbe22c50735a6: JSON.parse('{"type":"object","additionalProperties":false,"required":["taskId","input"],"properties":{"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"input":{"type":"object","properties":{"kind":{"type":"string","enum":["note","question","answer","decision","blocker","finding","handoff","test_result","file_reference","status_change","assignment_change","link","change_request_review"]},"content":{"type":"string","minLength":1},"replyToEntryId":{"type":"string","minLength":1},"sessionId":{"type":"string","minLength":1},"metadata":{"type":"object"}},"required":["kind","content"],"additionalProperties":false}}}'),
2570
2572
  d452082a06ab5d01: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","projectId"],"properties":{"workspaceId":{"type":"string"},"projectId":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string"}}}}}'),
2571
2573
  d47c5c5993120979: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"type":"object","properties":{"days":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}'),
@@ -2886,7 +2888,7 @@ var generatedOpenApiOperationContracts = {
2886
2888
  rejectProposal: { inputSchemaId: "20968fa48262e049", outputSchemaId: "7fab9a5599bcd5e7" },
2887
2889
  releaseClaim: { inputSchemaId: "7bed8e79738b4b18", outputSchemaId: "f9063d1392f12dae" },
2888
2890
  releaseProject: { inputSchemaId: "7e5d9ded46e58a68", outputSchemaId: "9933f9e0c14c959b" },
2889
- releaseRunnerWorkUnit: { inputSchemaId: "89d13d5a543363c0", outputSchemaId: "44136fa355b3678a" },
2891
+ releaseRunnerWorkUnit: { inputSchemaId: "d42b4f0add6bacab", outputSchemaId: "44136fa355b3678a" },
2890
2892
  removeInitiativeMember: { inputSchemaId: "329effe3e10d3405", outputSchemaId: "a338183ae192be44" },
2891
2893
  removeKit: { inputSchemaId: "8fc1ea5dc8321b2e", outputSchemaId: "fd8b1ae3fafaa38a" },
2892
2894
  removeKitInstall: { inputSchemaId: "78448073ec29793b", outputSchemaId: "fd8b1ae3fafaa38a" },
@@ -9,6 +9,8 @@ import {
9
9
  fail3,
10
10
  getOrThrow,
11
11
  TaggedError,
12
+ ClockRef,
13
+ currentTimeMillis2,
12
14
  never,
13
15
  flatMap3,
14
16
  andThen2,
@@ -18,7 +20,7 @@ import {
18
20
  isRedacted,
19
21
  make16,
20
22
  value
21
- } from "./chunk-k462v2v7.js";
23
+ } from "./chunk-n381rqax.js";
22
24
  import {
23
25
  unwrap,
24
26
  drainFork,
@@ -27,7 +29,11 @@ import {
27
29
  runCollect,
28
30
  runDrain,
29
31
  mkString
30
- } from "./chunk-xajmb07d.js";
32
+ } from "./chunk-hyaq30ne.js";
33
+
34
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
35
+ var Clock = ClockRef;
36
+ var currentTimeMillis = currentTimeMillis2;
31
37
 
32
38
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
33
39
  function nominal() {
@@ -340,4 +346,4 @@ var shellScript = (templates, expressions) => {
340
346
  }
341
347
  return script;
342
348
  };
343
- export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
349
+ export { Clock, currentTimeMillis, ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
@@ -2230,7 +2230,7 @@ var pathOfLink = (link) => {
2230
2230
  return page === null ? link : page[1] || "index";
2231
2231
  };
2232
2232
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2233
- var pinnedLink2 = (link, version = "0.49.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2233
+ var pinnedLink2 = (link, version = "0.50.1") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2234
2234
  var pageOf = (path) => path.split("#")[0];
2235
2235
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2236
2236
  function excerpt(text, queryTerms) {
@@ -109,9 +109,8 @@ import {
109
109
  decodeJsonStringOption,
110
110
  encodeJsonStringSync,
111
111
  encodePrettyJsonString
112
- } from "./chunk-k462v2v7.js";
112
+ } from "./chunk-n381rqax.js";
113
113
  import {
114
- currentTimeMillis,
115
114
  tap,
116
115
  mapError,
117
116
  decodeText,
@@ -122,7 +121,12 @@ import {
122
121
  withDefault,
123
122
  option,
124
123
  String2
125
- } from "./chunk-xajmb07d.js";
124
+ } from "./chunk-hyaq30ne.js";
125
+ import {
126
+ currentTimeMillis,
127
+ ChildProcessSpawner,
128
+ make2
129
+ } from "./chunk-8r9k7pqk.js";
126
130
  import {
127
131
  SecureRandom,
128
132
  layerWebCrypto,
@@ -253,15 +257,11 @@ import {
253
257
  harnessNames,
254
258
  herdrRunnerCapabilities2,
255
259
  declaredChecks
256
- } from "./chunk-qvvph24z.js";
257
- import {
258
- ChildProcessSpawner,
259
- make2
260
- } from "./chunk-zr1kvjzj.js";
260
+ } from "./chunk-s8ws5fqj.js";
261
261
  import {
262
262
  Id,
263
263
  Timestamp
264
- } from "./chunk-4vxbxjf8.js";
264
+ } from "./chunk-5tgpa02q.js";
265
265
 
266
266
  // apps/cli/src/cli-error.ts
267
267
  function cliErrorCode(error, status) {
@@ -1329,10 +1329,10 @@ var sandboxMissing = (sandbox, missing) => ({
1329
1329
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1330
1330
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1331
1331
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-c3m48dge.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-s6z4sdkw.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1333
1333
  });
1334
1334
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1335
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-c3m48dge.js")), (module) => module.updateHerdrCore(options))
1335
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-s6z4sdkw.js")), (module) => module.updateHerdrCore(options))
1336
1336
  });
1337
1337
  var herdrCoreMissing = (error) => {
1338
1338
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1799,7 +1799,7 @@ var syncTargets = (harness) => gen(function* () {
1799
1799
  });
1800
1800
  var syncKits = (input) => gen(function* () {
1801
1801
  const fs = yield* FileSystem;
1802
- const { syncKitSetup } = yield* promise(() => import("./chunk-nsw1wykj.js"));
1802
+ const { syncKitSetup } = yield* promise(() => import("./chunk-h3wes7wf.js"));
1803
1803
  const harnesses = yield* syncTargets(input.harness);
1804
1804
  const chain = yield* input.client.getKitChain(input.workspaceId);
1805
1805
  for (const { name, problem } of chain.skipped)
@@ -3295,7 +3295,7 @@ var shipped_steps_generated_default = {
3295
3295
  };
3296
3296
 
3297
3297
  // apps/cli/src/scaffold-files.ts
3298
- var cliVersion = "0.49.0";
3298
+ var cliVersion = "0.50.1";
3299
3299
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3300
3300
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3301
3301
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3560,7 +3560,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3560
3560
 
3561
3561
  // apps/cli/src/commands.ts
3562
3562
  var ClientId = "kitman-cli";
3563
- var agentRuntime = promise(() => import("./chunk-cv7xg2ps.js"));
3563
+ var agentRuntime = promise(() => import("./chunk-ecweehc6.js"));
3564
3564
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3565
3565
  defaultValue: () => gen(function* () {
3566
3566
  const tui = yield* tryPromise({
@@ -5099,7 +5099,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5099
5099
  });
5100
5100
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5101
5101
  defaultValue: () => (options) => gen(function* () {
5102
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-8qvgey5g.js"));
5102
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-rr0rem5d.js"));
5103
5103
  return yield* makeRunnerRpcClient({
5104
5104
  runnerId: options.runnerId,
5105
5105
  bearer: options.bearer,
@@ -5644,7 +5644,7 @@ function startCanonicalHerdrRunnerCommand(input) {
5644
5644
  release: (workUnitId, lease, crashed, tokens, ranModel) => rpc.release({
5645
5645
  workUnitId,
5646
5646
  lease,
5647
- ...crashed === undefined ? undefined : { crashed: { reason: crashed } },
5647
+ ...crashed === undefined ? undefined : { crashed },
5648
5648
  ...tokens === undefined ? undefined : { tokens },
5649
5649
  ...ranModel === undefined ? undefined : { ranModel }
5650
5650
  })
@@ -5711,7 +5711,7 @@ function mcpCommand(args) {
5711
5711
  if (command.action === "run") {
5712
5712
  if (command.args.length > 0)
5713
5713
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5714
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-6btp5qcy.js"));
5714
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-7y1w0dhd.js"));
5715
5715
  return yield* runMcpServerCommand({ flags: command.flags });
5716
5716
  }
5717
5717
  if (command.action !== "setup")
@@ -6211,7 +6211,7 @@ function programLoopCommand(command) {
6211
6211
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6212
6212
  });
6213
6213
  }
6214
- var docsModule = promise(() => import("./chunk-59hspz5e.js"));
6214
+ var docsModule = promise(() => import("./chunk-g3c1vesf.js"));
6215
6215
  function docsCommand(args) {
6216
6216
  return gen(function* () {
6217
6217
  const command = parseCommand(args);
@@ -7222,7 +7222,7 @@ function changeRequestCommand(args) {
7222
7222
  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}`);
7223
7223
  });
7224
7224
  }
7225
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-wr2yqtwt.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7225
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-bk28dr40.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7226
7226
  var loopOutline = (command) => gen(function* () {
7227
7227
  const path = yield* Path;
7228
7228
  const loop = requiredArg(command, "a Loop id");
@@ -7242,9 +7242,9 @@ var loopOutline = (command) => gen(function* () {
7242
7242
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7243
7243
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7244
7244
  });
7245
- var KitWriter = map9(promise(() => import("./chunk-wr2yqtwt.js")), (build) => build.writeKit);
7245
+ var KitWriter = map9(promise(() => import("./chunk-bk28dr40.js")), (build) => build.writeKit);
7246
7246
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7247
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-wr2yqtwt.js")), (build) => build.buildKit(directory))
7247
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-bk28dr40.js")), (build) => build.buildKit(directory))
7248
7248
  });
7249
7249
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7250
7250
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -9,10 +9,10 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-6ne389p2.js";
13
- import"./chunk-zr1kvjzj.js";
14
- import"./chunk-xajmb07d.js";
15
- import"./chunk-k462v2v7.js";
12
+ } from "./chunk-72ht3484.js";
13
+ import"./chunk-8r9k7pqk.js";
14
+ import"./chunk-hyaq30ne.js";
15
+ import"./chunk-n381rqax.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-k462v2v7.js";
6
+ } from "./chunk-n381rqax.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -1,12 +1,4 @@
1
1
  // @bun
2
- import {
3
- decodeText,
4
- mkString,
5
- FileSystem,
6
- Path,
7
- withDefault,
8
- String2
9
- } from "./chunk-xajmb07d.js";
10
2
  import {
11
3
  isString,
12
4
  isObject,
@@ -43,7 +35,7 @@ import {
43
35
  toCodecJson,
44
36
  Json,
45
37
  encodePrettyJsonString
46
- } from "./chunk-k462v2v7.js";
38
+ } from "./chunk-n381rqax.js";
47
39
  import {
48
40
  SecureRandom,
49
41
  layerWebCrypto,
@@ -60,26 +52,34 @@ import {
60
52
  KitDeclarations,
61
53
  kitmanMcpServer,
62
54
  RunnerRpcProtocolVersion
63
- } from "./chunk-qvvph24z.js";
55
+ } from "./chunk-s8ws5fqj.js";
56
+ import {
57
+ decodeText,
58
+ mkString,
59
+ FileSystem,
60
+ Path,
61
+ withDefault,
62
+ String2
63
+ } from "./chunk-hyaq30ne.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-e2dszepq.js";
67
+ } from "./chunk-mtrhqr16.js";
68
+ import {
69
+ ChildProcessSpawner,
70
+ make2
71
+ } from "./chunk-8r9k7pqk.js";
68
72
  import {
69
73
  stepDefinedTwice,
70
74
  hostSteps,
71
75
  exports_activities,
72
76
  describeFlag,
73
77
  Described
74
- } from "./chunk-cps0774f.js";
75
- import"./chunk-0n9f624b.js";
76
- import"./chunk-9ykh05hz.js";
77
- import {
78
- ChildProcessSpawner,
79
- make2
80
- } from "./chunk-zr1kvjzj.js";
81
- import"./chunk-dh7ewhqd.js";
82
- import"./chunk-4vxbxjf8.js";
78
+ } from "./chunk-watq46xe.js";
79
+ import"./chunk-q8m2ygyt.js";
80
+ import"./chunk-k1fdsn2c.js";
81
+ import"./chunk-k5cqc0cs.js";
82
+ import"./chunk-5tgpa02q.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-xajmb07d.js";
19
- import"./chunk-k462v2v7.js";
18
+ } from "./chunk-hyaq30ne.js";
19
+ import"./chunk-n381rqax.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,