@kitman-sh/cli 0.13.7 → 0.13.8

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-byg71zra.js → chunk-08dyrk6y.js} +10 -10
  2. package/dist/{chunk-t82w7459.js → chunk-0h49y8gf.js} +17 -26
  3. package/dist/{chunk-kk32jckf.js → chunk-5zhh41gb.js} +4 -4
  4. package/dist/{chunk-4crf5vhd.js → chunk-5zth85pj.js} +2 -2
  5. package/dist/{chunk-4bgj3b5r.js → chunk-7bytsxkf.js} +7 -7
  6. package/dist/{chunk-m406nanz.js → chunk-96svx416.js} +6 -6
  7. package/dist/{chunk-22z1yemd.js → chunk-a24jc5rx.js} +5 -3
  8. package/dist/{chunk-m079pjdy.js → chunk-byeasm6x.js} +3 -3
  9. package/dist/{chunk-t37qzgmb.js → chunk-c4ccpwjy.js} +4 -4
  10. package/dist/{chunk-mtdz4k32.js → chunk-cbpb2rww.js} +10 -10
  11. package/dist/{chunk-x44re8th.js → chunk-cq2h8q9e.js} +7 -7
  12. package/dist/{chunk-bbks1scp.js → chunk-eg1n8wvf.js} +35 -21
  13. package/dist/{chunk-8v0t5kzg.js → chunk-ff1r9vcq.js} +1 -1
  14. package/dist/{chunk-xt97vb58.js → chunk-gj1padza.js} +87 -43
  15. package/dist/{chunk-24h0y27w.js → chunk-gq7y5v3e.js} +1 -1
  16. package/dist/{chunk-bs5bh8ys.js → chunk-gr17n0z3.js} +18 -18
  17. package/dist/{chunk-mmd7mjv0.js → chunk-gy9rf14f.js} +3 -3
  18. package/dist/{chunk-1nxcn08k.js → chunk-h1rmw7yk.js} +5 -5
  19. package/dist/{chunk-vxfajzpz.js → chunk-mtkstrh3.js} +60 -14
  20. package/dist/{chunk-pxvd8w2v.js → chunk-q5w3v4k1.js} +1 -1
  21. package/dist/{chunk-4x3zm541.js → chunk-vm2qy986.js} +119 -108
  22. package/dist/{chunk-ggmwpwhf.js → chunk-y1krmnbv.js} +2 -2
  23. package/dist/{chunk-jbjz7b6n.js → chunk-z68rzf0f.js} +61 -61
  24. package/dist/{chunk-zgraq2y3.js → chunk-zw3gf6r5.js} +28 -70
  25. package/dist/{chunk-9g8tc40f.js → chunk-zz589n7a.js} +9 -9
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-zgraq2y3.js";
121
+ } from "./chunk-zw3gf6r5.js";
122
122
  import {
123
123
  currentTimeMillis,
124
124
  SecureRandom,
@@ -158,8 +158,8 @@ import {
158
158
  sessionForApi,
159
159
  readAuthStore,
160
160
  agentCredentialForApi,
161
- make5,
162
161
  make6,
162
+ make7,
163
163
  Service,
164
164
  shouldRefresh,
165
165
  refreshSession,
@@ -170,7 +170,13 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-4x3zm541.js";
173
+ } from "./chunk-vm2qy986.js";
174
+ import {
175
+ guard,
176
+ Id,
177
+ Timestamp,
178
+ ActorType
179
+ } from "./chunk-q5w3v4k1.js";
174
180
  import {
175
181
  join,
176
182
  interrupt,
@@ -184,27 +190,21 @@ import {
184
190
  withDefault,
185
191
  option,
186
192
  String2
187
- } from "./chunk-t82w7459.js";
188
- import {
189
- guard,
190
- Id,
191
- Timestamp,
192
- ActorType
193
- } from "./chunk-pxvd8w2v.js";
193
+ } from "./chunk-0h49y8gf.js";
194
194
  import {
195
195
  searchDocs2,
196
196
  readDoc2
197
- } from "./chunk-22z1yemd.js";
197
+ } from "./chunk-a24jc5rx.js";
198
198
  import {
199
199
  nextInt
200
- } from "./chunk-24h0y27w.js";
200
+ } from "./chunk-gq7y5v3e.js";
201
201
  import {
202
202
  layerJson,
203
- make3,
203
+ make4,
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-1nxcn08k.js";
207
+ } from "./chunk-h1rmw7yk.js";
208
208
 
209
209
  // apps/cli/src/mcp.ts
210
210
  import { tmpdir as tmpdir2 } from "os";
@@ -1956,56 +1956,56 @@ var LivePresenceSubscriptionMessage = Union([
1956
1956
  LivePresenceSubscriptionUpdate
1957
1957
  ]);
1958
1958
 
1959
- class LiveRpcs extends make6(make5("Session", {
1959
+ class LiveRpcs extends make7(make6("Session", {
1960
1960
  success: Struct({ workspaceId: String4, clientKind: String4 }),
1961
1961
  error: LiveRpcError
1962
- }), make5("Subscribe", {
1962
+ }), make6("Subscribe", {
1963
1963
  payload: LiveSubscribeInput,
1964
1964
  success: LiveSubscriptionMessage,
1965
1965
  error: LiveRpcError,
1966
1966
  stream: true
1967
- }), make5("Replay", {
1967
+ }), make6("Replay", {
1968
1968
  payload: LiveReplayInput,
1969
1969
  success: ArraySchema(LiveEvent),
1970
1970
  error: LiveRpcError
1971
- }), make5("Ack", {
1971
+ }), make6("Ack", {
1972
1972
  payload: LiveAckInput,
1973
1973
  success: LiveAckResult,
1974
1974
  error: LiveRpcError
1975
- }), make5("SubscribeWeb", {
1975
+ }), make6("SubscribeWeb", {
1976
1976
  payload: LiveWebSubscribeInput,
1977
1977
  success: LiveWebSubscriptionMessage,
1978
1978
  error: LiveRpcError,
1979
1979
  stream: true
1980
- }), make5("SubscriptionStatus", {
1980
+ }), make6("SubscriptionStatus", {
1981
1981
  payload: { subscriptionId: String4 },
1982
1982
  success: LiveSubscriptionStatus,
1983
1983
  error: LiveRpcError
1984
- }), make5("ReplayWeb", {
1984
+ }), make6("ReplayWeb", {
1985
1985
  payload: LiveWebReplayInput,
1986
1986
  success: LiveWebReplayResult,
1987
1987
  error: LiveRpcError
1988
- }), make5("AckWeb", {
1988
+ }), make6("AckWeb", {
1989
1989
  payload: LiveWebAckInput,
1990
1990
  success: LiveWebAckResult,
1991
1991
  error: LiveRpcError
1992
- }), make5("PublishPresence", {
1992
+ }), make6("PublishPresence", {
1993
1993
  payload: LivePresencePublishInput,
1994
1994
  success: LivePresenceEntry,
1995
1995
  error: LiveRpcError
1996
- }), make5("SubscribePresence", {
1996
+ }), make6("SubscribePresence", {
1997
1997
  payload: LivePresenceSubscribeInput,
1998
1998
  success: LivePresenceSubscriptionMessage,
1999
1999
  error: LiveRpcError,
2000
2000
  stream: true
2001
- }), make5("ClearPresence", {
2001
+ }), make6("ClearPresence", {
2002
2002
  payload: { scope: optional(LiveScope) },
2003
2003
  error: LiveRpcError
2004
- }), make5("RecordSessionUpdate", {
2004
+ }), make6("RecordSessionUpdate", {
2005
2005
  payload: { sessionId: String4, input: SessionUpdateCreate },
2006
2006
  success: SessionUpdate,
2007
2007
  error: LiveRpcError
2008
- }), make5("EndSession", {
2008
+ }), make6("EndSession", {
2009
2009
  payload: { sessionId: String4, input: SessionEnd },
2010
2010
  success: Session,
2011
2011
  error: LiveRpcError
@@ -2057,7 +2057,7 @@ function connectKitmanLiveRoot(protocol) {
2057
2057
  })
2058
2058
  });
2059
2059
  const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
2060
- const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2060
+ const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2061
2061
  let abandon = () => {};
2062
2062
  const abandoned = new Promise((_resolve, reject) => {
2063
2063
  abandon = reject;
@@ -2273,6 +2273,7 @@ var generatedOpenApiSchemas = {
2273
2273
  "2113130e4b2eb8a5": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","bindingId"],"properties":{"workspaceId":{"type":"string"},"bindingId":{"type":"string"}}}'),
2274
2274
  "21d0aedfbc688a03": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","projectId","input"],"properties":{"workspaceId":{"type":"string"},"projectId":{"type":"string"},"input":{"type":"object","properties":{"trigger":{"type":["string","null"],"enum":["merge","milestone","project"]}},"required":["trigger"],"additionalProperties":false}}}'),
2275
2275
  "2420a714ddb98c43": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":80},"teamId":{"type":"string"},"typeId":{"type":"string"},"loop":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":20000},"acceptanceCriteria":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":50},"labelIds":{"type":"array","items":{"type":"string"}}},"required":["name"],"additionalProperties":true}}}'),
2276
+ "2494a5e35f1eb8f7": JSON.parse('{"type":"object","additionalProperties":false,"required":["teamId","input"],"properties":{"teamId":{"type":"string"},"input":{"type":"object","properties":{"defaultRepoBindingId":{"type":["string","null"],"minLength":1},"standardBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"epicBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"isolatedChildBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"delivery":{"type":"string","enum":["gated","auto"]},"hoursPerPriorityLevel":{"type":"integer","minimum":1,"maximum":168},"agentsStateScope":{"type":"boolean"},"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expectedRevision"],"additionalProperties":false}}}'),
2276
2277
  "24c769346fcba8ee": JSON.parse('{"type":"object","properties":{"removed":{"type":"boolean"}},"required":["removed"],"additionalProperties":false}'),
2277
2278
  "24e1ac5e89cd75b9": JSON.parse('{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":214,"pattern":"^(@[a-z0-9-~][a-z0-9-._~]*\\\\/)?[a-z0-9-~][a-z0-9-._~]*$"},"layer":{"type":"string","enum":["team","workspace"]},"teamId":{"type":"string","minLength":1},"current":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"protocolVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"provenance":{"type":"object","properties":{"repository":{"type":"string"},"commit":{"type":"string"},"clean":{"type":"boolean"}},"required":["clean"],"additionalProperties":false},"deployedByActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"deployedByActorId":{"type":"string"},"deployBindingId":{"type":"string","minLength":1},"carried":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":214,"pattern":"^(@[a-z0-9-~][a-z0-9-._~]*\\\\/)?[a-z0-9-~][a-z0-9-._~]*$"},"version":{"type":"string"},"setup":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["name","version","setup"],"additionalProperties":false}},"deployedAt":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["current","superseded","dev","removed"]}},"required":["number","digest","protocolVersion","provenance","deployedByActorType","deployedByActorId","deployedAt","status"],"additionalProperties":false},"loops":{"type":"array","items":{"type":"string"}},"agents":{"type":"array","items":{"type":"string"}},"versions":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"protocolVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"provenance":{"type":"object","properties":{"repository":{"type":"string"},"commit":{"type":"string"},"clean":{"type":"boolean"}},"required":["clean"],"additionalProperties":false},"deployedByActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"deployedByActorId":{"type":"string"},"deployBindingId":{"type":"string","minLength":1},"carried":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":214,"pattern":"^(@[a-z0-9-~][a-z0-9-._~]*\\\\/)?[a-z0-9-~][a-z0-9-._~]*$"},"version":{"type":"string"},"setup":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["name","version","setup"],"additionalProperties":false}},"deployedAt":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["current","superseded","dev","removed"]}},"required":["number","digest","protocolVersion","provenance","deployedByActorType","deployedByActorId","deployedAt","status"],"additionalProperties":false}},"schedules":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"id":{"type":"string","minLength":1},"name":{"type":"string"}},"required":["key","id"],"additionalProperties":false}},"drift":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["schedule"]},"key":{"type":"string"},"field":{"type":"string"},"declared":{},"live":{},"changedBy":{"type":"object","properties":{"actorType":{"type":"string"},"actorId":{"type":"string"}},"required":["actorType","actorId"],"additionalProperties":false},"changedAt":{"type":"string","format":"date-time"}},"required":["kind","key","field","declared","live"],"additionalProperties":false}}},"required":["name","layer","loops","agents","versions","schedules","drift"],"additionalProperties":false}'),
2278
2279
  "25f6dd90044eeba7": JSON.parse('{"type":"object","additionalProperties":false,"required":["changeRequestId"],"properties":{"changeRequestId":{"type":"string"}}}'),
@@ -2448,7 +2449,6 @@ var generatedOpenApiSchemas = {
2448
2449
  "97ae329027451702": JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1},"sessionId":{"type":"string","minLength":1},"sourceSession":{"type":"object","properties":{"id":{"type":"string","minLength":1},"actorType":{"type":"string","enum":["human","delegated_agent","agent"]},"agentIdentityId":{"type":"string","minLength":1},"agentName":{"type":"string"},"runtimeProfile":{"type":"string"},"modelProvider":{"type":"string"},"modelName":{"type":"string"},"modelId":{"type":"string"},"startedAt":{"type":"string","format":"date-time"}},"required":["id","actorType","startedAt"],"additionalProperties":false},"replyToEntryId":{"type":"string","minLength":1},"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},"metadata":{"type":"object"},"actorType":{"type":"string","enum":["human","delegated_agent","agent"]},"actorId":{"type":"string","minLength":1},"delegatedByUserId":{"type":"string","minLength":1},"createdAt":{"type":"string","format":"date-time"},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"type":"string","enum":["thumbs_up","thumbs_down","heart","laugh","hooray","confused","eyes","rocket"]},"actors":{"type":"array","items":{"type":"object","properties":{"actorType":{"type":"string","enum":["human","delegated_agent","agent"]},"actorId":{"type":"string","minLength":1}},"required":["actorType","actorId"],"additionalProperties":false}}},"required":["reaction","actors"],"additionalProperties":false}}},"required":["id","workspaceId","taskId","kind","content","metadata","actorType","actorId","createdAt"],"additionalProperties":false}'),
2449
2450
  "97bbcfe64a1e312d": 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":{"teamId":{"type":"string"}},"required":["teamId"],"additionalProperties":true}}}'),
2450
2451
  "9849aa6871c44e79": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":80},"scope":{"type":"string","enum":["personal","team","workspace"]},"teamId":{"type":"string"},"query":{"type":"object","properties":{"filter":{"type":"object","properties":{"match":{"type":"string","enum":["all","any"]},"conditions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"field":{"type":"string","enum":["team"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["state"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["stateCategory"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string","enum":["triage","backlog","unstarted","started","completed","canceled","duplicate"]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["assignee"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["me","none"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["creator"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["me"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["priority"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string","enum":["none","urgent","high","medium","low"]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["labels"]},"op":{"type":"string","enum":["any","all","none"]},"value":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["repository"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["none"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["project"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["none"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["milestone"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["none"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["parent"]},"op":{"type":"string","enum":["any","none"]},"negate":{"type":"boolean"}},"required":["field","op"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["parent"]},"op":{"type":"string","enum":["is"]},"value":{"type":"string"},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["type"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["text"]},"op":{"type":"string","enum":["contains"]},"value":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":200},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["created","updated"]},"op":{"type":"string","enum":["between"]},"value":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"additionalProperties":true},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["run"]},"op":{"type":"string","enum":["is"]},"value":{"type":"string","enum":["active","needs_person","none"]},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true}]},"maxItems":50}},"required":["match","conditions"],"additionalProperties":true},"grouping":{"type":"string","enum":["none","state","type","assignee","priority","repository","project","milestone"]},"ordering":{"type":"string","enum":["manual","priority","created","updated","key"]},"layout":{"type":"string","enum":["list","board"]},"includeTriage":{"type":"boolean"}},"required":["filter","grouping","ordering","layout","includeTriage"],"additionalProperties":true}},"required":["name","scope","query"],"additionalProperties":true}}}'),
2451
- "98560390c1ace987": JSON.parse('{"type":"object","properties":{"defaultRepoBindingId":{"type":"string","minLength":1},"standardBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"epicBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"isolatedChildBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"delivery":{"type":"string","enum":["gated","auto"]},"hoursPerPriorityLevel":{"type":"integer","minimum":1,"maximum":168},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["standardBranchTemplate","epicBranchTemplate","isolatedChildBranchTemplate","delivery","hoursPerPriorityLevel","revision"],"additionalProperties":false}'),
2452
2452
  "987dd799df75624b": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","repoBindingId","name"],"properties":{"workspaceId":{"type":"string"},"repoBindingId":{"type":"string"},"name":{"type":"string"}}}'),
2453
2453
  "99057071a31ecd6d": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":120},"description":{"type":"string"},"leadId":{"type":"string"},"status":{"type":"string","enum":["planned","active","paused","completed","canceled"]},"targetDate":{"type":"string"}},"required":["name"],"additionalProperties":true}}}'),
2454
2454
  "996611f15f70f2eb": JSON.parse('{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string","pattern":"^[a-z0-9][a-z0-9._:-]*$","minLength":1,"maxLength":128},"runId":{"type":"string","minLength":1},"loopId":{"type":"string"},"runStatus":{"type":"string","enum":["pending","running","blocked","completed","failed","canceled","expired"]},"claimedAt":{"type":"string","format":"date-time"},"keptAt":{"type":"string","format":"date-time"},"keptReason":{"type":"string"},"waiting":{"type":"array","items":{"type":"string","minLength":1}}},"required":["resource","runId","loopId","runStatus","claimedAt","waiting"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}'),
@@ -2462,7 +2462,6 @@ var generatedOpenApiSchemas = {
2462
2462
  "9befb9220de5e308": 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"]}]}},"required":["workUnitId","lease"],"additionalProperties":false}}}'),
2463
2463
  "9bf81e27f1f1ba85": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","repoBindingId","input"],"properties":{"workspaceId":{"type":"string"},"repoBindingId":{"type":"string"},"input":{"type":"object","properties":{"team":{"type":["string","null"],"minLength":1}},"required":["team"],"additionalProperties":false}}}'),
2464
2464
  "9c4d995fa9386db7": JSON.parse('{"type":"object","additionalProperties":false,"required":["decisionId"],"properties":{"decisionId":{"type":"string"}}}'),
2465
- "9d23f777fddbb804": JSON.parse('{"type":"object","additionalProperties":false,"required":["teamId","input"],"properties":{"teamId":{"type":"string"},"input":{"type":"object","properties":{"defaultRepoBindingId":{"type":["string","null"],"minLength":1},"standardBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"epicBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"isolatedChildBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"delivery":{"type":"string","enum":["gated","auto"]},"hoursPerPriorityLevel":{"type":"integer","minimum":1,"maximum":168},"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expectedRevision"],"additionalProperties":false}}}'),
2466
2465
  "9d5b310e453e4043": JSON.parse('{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"runnerId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":160},"status":{"type":"string","enum":["active","draining","stopped","disabled"]},"healthStatus":{"type":"string","enum":["healthy","degraded","unhealthy","unknown"]},"drainState":{"type":"string","enum":["accepting","draining","drained"]},"capacity":{"type":"object","properties":{"maxConcurrentRuns":{"type":"number","minimum":1},"maxCpuCores":{"type":"number","minimum":1},"maxMemoryMb":{"type":"number","minimum":1},"maxRunSeconds":{"type":"number","minimum":1}},"additionalProperties":false},"cacheHints":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":240,"pattern":"^(?!\\\\/)(?!.*:\\\\/\\\\/)(?!.*\\\\\\\\)(?!.*\\\\s)(?!.*(?:^|\\\\/)\\\\.\\\\.?($|\\\\/))[A-Za-z0-9._:@/-]+$"},"sharing":{"type":"string","enum":["runner","replica","workspace"]},"warmed":{"type":"boolean"},"cacheClass":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9._:-]+$"},"developmentEnvironmentHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"agentEnvironmentHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"sandboxPolicyHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"secretScopeHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"cacheState":{"type":"string","enum":["hit","miss","stale","corrupt","lock_wait","invalidated"]}},"required":["key","sharing","warmed"],"additionalProperties":false}},"placement":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"label":{"type":"string","minLength":1,"maxLength":160},"zone":{"type":"string","minLength":1,"maxLength":160}},"required":["kind"],"additionalProperties":false},"telemetry":{"type":"object","properties":{"activeWorkUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"queuedWorkUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHitRate":{"type":"number","minimum":0,"maximum":1}},"additionalProperties":false},"lastHeartbeatAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","runnerId","name","status","healthStatus","drainState","capacity","cacheHints","telemetry","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}'),
2467
2466
  "9daa8a9aff4917b8": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId"],"properties":{"workspaceId":{"type":"string","minLength":1},"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}}}}}'),
2468
2467
  "9e5be89e00911910": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","projectId","input"],"properties":{"workspaceId":{"type":"string"},"projectId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":120},"description":{"type":"string"},"leadId":{"type":["string","null"]},"status":{"type":"string","enum":["planned","active","paused","completed","canceled"]},"targetDate":{"type":["string","null"]},"visibility":{"type":"string","enum":["workspace","private"]}},"additionalProperties":true}}}'),
@@ -2562,6 +2561,7 @@ var generatedOpenApiSchemas = {
2562
2561
  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}}}'),
2563
2562
  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"}}}}}'),
2564
2563
  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}}}'),
2564
+ d565eb30a74abd5b: JSON.parse('{"type":"object","properties":{"defaultRepoBindingId":{"type":"string","minLength":1},"standardBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"epicBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"isolatedChildBranchTemplate":{"type":"string","minLength":1,"maxLength":160},"delivery":{"type":"string","enum":["gated","auto"]},"hoursPerPriorityLevel":{"type":"integer","minimum":1,"maximum":168},"agentsStateScope":{"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["standardBranchTemplate","epicBranchTemplate","isolatedChildBranchTemplate","delivery","hoursPerPriorityLevel","agentsStateScope","revision"],"additionalProperties":false}'),
2565
2565
  d5afb090a9ae987f: JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"scopeType":{"type":"string","enum":["workspace","repository","loop","kit","team","task"]},"scopeId":{"type":"string","minLength":1},"content":{"type":"string","minLength":1,"maxLength":10000},"status":{"type":"string","enum":["proposed","accepted","rejected","deprecated"]},"confidence":{"type":"string","enum":["low","medium","high"]},"sourceType":{"type":"string","enum":["user","agent","session","context_pack","run"]},"sourceId":{"type":"string","minLength":1},"createdByActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"createdByActorId":{"type":"string","minLength":1},"approvedByUserId":{"type":"string","minLength":1},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","scopeType","scopeId","content","status","confidence","createdByActorType","createdByActorId","createdAt","updatedAt"],"additionalProperties":false}'),
2566
2566
  d5cd425c5bb37bcb: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskIdOrKey","input"],"properties":{"workspaceId":{"type":"string"},"taskIdOrKey":{"type":"string"},"input":{"type":"object","properties":{"loop":{"type":"string","minLength":1,"maxLength":120},"overrideBlockers":{"type":"boolean"}},"required":["loop"],"additionalProperties":false}}}'),
2567
2567
  d6c0cf8cc888455c: JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1},"kind":{"type":"string","minLength":1},"url":{"type":"string","minLength":1},"title":{"type":"string"},"provider":{"type":"string"},"externalId":{"type":"string"},"metadata":{"type":"object"},"createdByActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"createdByActorId":{"type":"string","minLength":1},"createdAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","taskId","kind","url","metadata","createdByActorType","createdByActorId","createdAt"],"additionalProperties":false}'),
@@ -2728,7 +2728,7 @@ var generatedOpenApiOperationContracts = {
2728
2728
  getTaskAssetDownloadUrl: { inputSchemaId: "ca3740c8616abdf4", outputSchemaId: "6a7fec9ab19a1677" },
2729
2729
  getTaskExecutionRecord: { inputSchemaId: "8ac901573072021d", outputSchemaId: "9f64bd155181b75f" },
2730
2730
  getTeam: { inputSchemaId: "9b4b1d8280129ef9", outputSchemaId: "706c8c03a6431f03" },
2731
- getTeamDeliverySettings: { inputSchemaId: "fc99a2a80b97a8b2", outputSchemaId: "98560390c1ace987" },
2731
+ getTeamDeliverySettings: { inputSchemaId: "fc99a2a80b97a8b2", outputSchemaId: "d565eb30a74abd5b" },
2732
2732
  getTeamDeliveryTarget: { inputSchemaId: "fc99a2a80b97a8b2", outputSchemaId: "090f8a8cb18bbfad" },
2733
2733
  getTeamReleaseTrigger: { inputSchemaId: "fc99a2a80b97a8b2", outputSchemaId: "99fd651cae8dcad1" },
2734
2734
  getTeamTask: { inputSchemaId: "c5273a7bc295286e", outputSchemaId: "b69fc58e9f6c827e" },
@@ -2937,7 +2937,7 @@ var generatedOpenApiOperationContracts = {
2937
2937
  updateTaskTemplate: { inputSchemaId: "b4519c90307c489c", outputSchemaId: "6fbd2b18391b5fe0" },
2938
2938
  updateTaskType: { inputSchemaId: "a238577cdcf52564", outputSchemaId: "beedd18878e4633d" },
2939
2939
  updateTeam: { inputSchemaId: "b56d458937ac19c4", outputSchemaId: "706c8c03a6431f03" },
2940
- updateTeamDeliverySettings: { inputSchemaId: "9d23f777fddbb804", outputSchemaId: "98560390c1ace987" },
2940
+ updateTeamDeliverySettings: { inputSchemaId: "2494a5e35f1eb8f7", outputSchemaId: "d565eb30a74abd5b" },
2941
2941
  updateTriageRule: { inputSchemaId: "38775bffeb1b661b", outputSchemaId: "1c88d235cae8e504" },
2942
2942
  updateWorkflowState: { inputSchemaId: "f78ee3b13cb8c506", outputSchemaId: "706c8c03a6431f03" },
2943
2943
  updateWorkspace: { inputSchemaId: "2cfef3fd6c0dbad6", outputSchemaId: "83567d1d5cb4da04" },
@@ -3448,7 +3448,7 @@ var operationSpecs = [
3448
3448
  parameters: ["workspaceId", "input"],
3449
3449
  namespacePath: ["teamTasks", "create"],
3450
3450
  tags: ["tasks"],
3451
- summary: "Make a Task in a Team, in the Team's default state unless `stateId` says otherwise. `promise` is one sentence that says what is true once it is done, and `outOfScope` lists the cases it does not handle. Read `skills({ name: 'scope-tasks' })` first; it says how to scope a Task, and how to file two or more related ones."
3451
+ summary: "Make a Task in a Team, in the Team's default state unless `stateId` says otherwise. `promise` is one sentence that says what is true once it is done, and `outOfScope` lists the cases it does not handle. Read `skills({ name: 'scope-tasks' })` first; it says how to scope a Task, and how to file two or more related ones. A Team can refuse an agent's Task without a `promise`."
3452
3452
  },
3453
3453
  {
3454
3454
  name: "getTeamTask",
@@ -5747,10 +5747,59 @@ function compactOperationDescriptor(operation) {
5747
5747
  };
5748
5748
  }
5749
5749
 
5750
+ // packages/core/src/scope-tasks.generated.ts
5751
+ var scopeTasksText = `# Scope a Task
5752
+
5753
+ How to scope a Task, so an agent can build it in one session and a review of it ends.
5754
+
5755
+ Read this before you create a Task or write a plan's ticket.
5756
+
5757
+ ## One Promise per Task
5758
+
5759
+ - Give a Task one Promise: one sentence that says what is true once it is done. Write it in the Task's \`promise\`. Two Promises are two Tasks.
5760
+ - A Promise is open-ended when it covers cases nobody can list, such as every path, any input or all source code. Reviews of it keep finding one more case. Split it into a first Task with a bounded case, whose cases you list, and later Tasks that each widen it.
5761
+ - Size a Task to fit one agent session under 200k tokens of context, from reading the code to a verified change. Split one that does not fit.
5762
+
5763
+ ## What to write
5764
+
5765
+ - **Decisions:** make every design decision yourself, or ask the person. Leave none to the implementer.
5766
+ - **Interfaces:** name the operations, types, settings or pages the Task adds or changes, and how each behaves.
5767
+ - **Cases:** list the cases it handles, with the failures, and what happens in each.
5768
+ - **Tests:** name what a test must show, and where the tests go. Make each Acceptance Criterion something a reviewer can check against the change.
5769
+ - **Where to start:** name the modules, documents and decisions to read first.
5770
+ - **Out of scope:** list the cases the Task does not handle. When the Promise is open-ended, list them in \`outOfScope\`.
5771
+ - **Blockers:** name the Tasks whose code it needs, and relate them as blockers.
5772
+
5773
+ Write no code and no line numbers: both are out of date before the Task is built. Name things by what they are called.
5774
+
5775
+ ## Two or more related Tasks
5776
+
5777
+ Start the **File Tasks** Loop instead of creating related Tasks one by one. It makes a Task of each ticket and relates their blockers, so none is picked up before the Tasks it needs. In Code Mode:
5778
+
5779
+ \`\`\`js
5780
+ await kitman.runs.start({
5781
+ workspaceId,
5782
+ teamId,
5783
+ loop: 'file-tasks',
5784
+ input: {
5785
+ tickets: [
5786
+ { key: 'first', title: '\u2026', body: '\u2026', acceptanceCriteria: ['\u2026'], blockedBy: [] },
5787
+ { key: 'wider', title: '\u2026', body: '\u2026', acceptanceCriteria: ['\u2026'], blockedBy: ['first'] }
5788
+ ]
5789
+ }
5790
+ })
5791
+ \`\`\`
5792
+
5793
+ From a terminal, pass the same Input to \`kitman run start file-tasks --input '<json>'\`. Add \`projectId\` to the Input to file them in a Project. In a Plan Run, write the tickets in the plan: Plan files them.
5794
+ `;
5795
+
5750
5796
  // apps/mcp/src/result.ts
5751
5797
  var SummaryFieldMaxLength = 120;
5752
5798
  var ErrorMessageMaxLength = 500;
5753
5799
  var NestedTextMaxLength = 2000;
5800
+ var scopeGuideSuffix = `
5801
+
5802
+ ${scopeTasksText}`;
5754
5803
  var TaskKeyPattern = /^[A-Z][A-Z0-9]{1,6}-[1-9][0-9]*$/;
5755
5804
  function formatMcpToolSuccess(capability, output) {
5756
5805
  const safeOutput = preserveExecutionPauseMetadata(output, redactResponseSurface(output));
@@ -5792,7 +5841,7 @@ function slimNested(value, workspaceId) {
5792
5841
  }));
5793
5842
  }
5794
5843
  function cutText(value) {
5795
- if (value.length <= NestedTextMaxLength)
5844
+ if (value.length <= NestedTextMaxLength || value.endsWith(scopeGuideSuffix))
5796
5845
  return value;
5797
5846
  return `${value.slice(0, NestedTextMaxLength)}\u2026[cut ${value.length - NestedTextMaxLength} characters; return this field on its own or call execute with full: true]`;
5798
5847
  }
@@ -6237,9 +6286,11 @@ function unwrapCallEnvelopes(value) {
6237
6286
  return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, unwrapCallEnvelopes(item)]));
6238
6287
  }
6239
6288
  function safeToolError(error) {
6289
+ const message = error.message.length > 0 ? sanitizeErrorMessage2(error.message) : "Kitman operation failed.";
6290
+ const scopeMissing = error instanceof KitmanClientError && error.code === "TaskScopeMissing";
6240
6291
  return {
6241
6292
  code: error.name.length > 0 ? error.name : "kitman_operation_error",
6242
- message: error.message.length > 0 ? sanitizeErrorMessage2(error.message) : "Kitman operation failed."
6293
+ message: scopeMissing ? `${message}${scopeGuideSuffix}` : message
6243
6294
  };
6244
6295
  }
6245
6296
  function sanitizeErrorMessage2(value) {
@@ -6307,17 +6358,10 @@ How Kitman works, such as Kits, Agents and their layers (\`extends\`, \`harness\
6307
6358
  - Credentials, bearer tokens, private keys, raw auth stores, env, filesystem, and child processes are not available in the sandbox.
6308
6359
  - Routine reads and work-loop updates should not pause. Destructive, authority-expanding, governance, and external-delivery operations may pause for approval.
6309
6360
  `;
6310
- var guideBody = (path) => {
6311
- const guide = readDoc2({ path });
6312
- return "text" in guide ? `# ${guide.title}
6313
-
6314
- ${guide.text}
6315
- ` : guide.error.message;
6316
- };
6317
6361
  var scopeTasksSkill = {
6318
6362
  name: "scope-tasks",
6319
6363
  summary: "How to scope a Task. Read it before you create a Task or write a ticket.",
6320
- body: guideBody("scope-tasks")
6364
+ body: scopeTasksText
6321
6365
  };
6322
6366
  var CodeModeSkills = [
6323
6367
  {
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zgraq2y3.js";
6
+ } from "./chunk-zw3gf6r5.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-t82w7459.js";
10
2
  import {
11
3
  isString,
12
4
  hasProperty,
@@ -40,8 +32,8 @@ import {
40
32
  toCodecJson,
41
33
  Json,
42
34
  encodePrettyJsonString
43
- } from "./chunk-zgraq2y3.js";
44
- import"./chunk-pxvd8w2v.js";
35
+ } from "./chunk-zw3gf6r5.js";
36
+ import"./chunk-q5w3v4k1.js";
45
37
  import {
46
38
  SecureRandom,
47
39
  layerWebCrypto,
@@ -53,23 +45,31 @@ import {
53
45
  layer4,
54
46
  kitmanMcpServer,
55
47
  RunnerRpcProtocolVersion
56
- } from "./chunk-4x3zm541.js";
48
+ } from "./chunk-vm2qy986.js";
49
+ import {
50
+ decodeText,
51
+ mkString,
52
+ FileSystem,
53
+ Path,
54
+ withDefault,
55
+ String2
56
+ } from "./chunk-0h49y8gf.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-m079pjdy.js";
61
- import"./chunk-x44re8th.js";
60
+ } from "./chunk-byeasm6x.js";
61
+ import"./chunk-cq2h8q9e.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-4bgj3b5r.js";
67
+ } from "./chunk-7bytsxkf.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
- make2
71
- } from "./chunk-vxfajzpz.js";
72
- import"./chunk-1nxcn08k.js";
70
+ make3
71
+ } from "./chunk-mtkstrh3.js";
72
+ import"./chunk-h1rmw7yk.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
108
108
  }));
109
109
  var run = (command, args, cwd) => gen(function* () {
110
110
  const spawner = yield* ChildProcessSpawner;
111
- const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
111
+ const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
112
112
  const [stdout, stderr, exitCode] = yield* all3([
113
113
  mkString(decodeText(handle.stdout)),
114
114
  mkString(decodeText(handle.stderr)),
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-ggmwpwhf.js";
8
- import"./chunk-pxvd8w2v.js";
9
- import"./chunk-zgraq2y3.js";
7
+ } from "./chunk-y1krmnbv.js";
8
+ import"./chunk-q5w3v4k1.js";
9
+ import"./chunk-zw3gf6r5.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -96,7 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-zgraq2y3.js";
99
+ } from "./chunk-zw3gf6r5.js";
100
100
  import {
101
101
  interrupt,
102
102
  getCurrent,
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-t82w7459.js";
111
+ } from "./chunk-0h49y8gf.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-4x3zm541.js";
126
+ } from "./chunk-vm2qy986.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")) {
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
483
483
  };
484
484
  });
485
485
  var clientIdCounter = 0;
486
- var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
487
487
  const clientId = clientIdCounter++;
488
488
  const {
489
489
  codecFor,
@@ -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, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };