@intentic/sandbox-contract 1.226.0 → 1.227.0

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 (194) hide show
  1. package/dist/contracts/activity.contract.d.ts.map +1 -1
  2. package/dist/contracts/activity.contract.js +17 -2
  3. package/dist/contracts/activity.contract.js.map +1 -1
  4. package/dist/contracts/agent.contract.d.ts +19 -2
  5. package/dist/contracts/agent.contract.d.ts.map +1 -1
  6. package/dist/contracts/agent.contract.js +71 -8
  7. package/dist/contracts/agent.contract.js.map +1 -1
  8. package/dist/contracts/agents.contract.d.ts +59 -0
  9. package/dist/contracts/agents.contract.d.ts.map +1 -1
  10. package/dist/contracts/agents.contract.js +164 -19
  11. package/dist/contracts/agents.contract.js.map +1 -1
  12. package/dist/contracts/automations.contract.d.ts.map +1 -1
  13. package/dist/contracts/automations.contract.js +78 -9
  14. package/dist/contracts/automations.contract.js.map +1 -1
  15. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  16. package/dist/contracts/capabilities.contract.js +98 -11
  17. package/dist/contracts/capabilities.contract.js.map +1 -1
  18. package/dist/contracts/chores.contract.d.ts.map +1 -1
  19. package/dist/contracts/chores.contract.js +26 -3
  20. package/dist/contracts/chores.contract.js.map +1 -1
  21. package/dist/contracts/ci.contract.d.ts.map +1 -1
  22. package/dist/contracts/ci.contract.js +52 -6
  23. package/dist/contracts/ci.contract.js.map +1 -1
  24. package/dist/contracts/claude.contract.d.ts.map +1 -1
  25. package/dist/contracts/claude.contract.js +44 -5
  26. package/dist/contracts/claude.contract.js.map +1 -1
  27. package/dist/contracts/drafts.contract.d.ts.map +1 -1
  28. package/dist/contracts/drafts.contract.js +26 -3
  29. package/dist/contracts/drafts.contract.js.map +1 -1
  30. package/dist/contracts/endpoints.contract.d.ts +1 -0
  31. package/dist/contracts/endpoints.contract.d.ts.map +1 -1
  32. package/dist/contracts/endpoints.contract.js +17 -2
  33. package/dist/contracts/endpoints.contract.js.map +1 -1
  34. package/dist/contracts/exit.contract.d.ts.map +1 -1
  35. package/dist/contracts/exit.contract.js +62 -7
  36. package/dist/contracts/exit.contract.js.map +1 -1
  37. package/dist/contracts/extensions.contract.d.ts +1 -0
  38. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  39. package/dist/contracts/extensions.contract.js +124 -15
  40. package/dist/contracts/extensions.contract.js.map +1 -1
  41. package/dist/contracts/git.contract.d.ts.map +1 -1
  42. package/dist/contracts/git.contract.js +384 -43
  43. package/dist/contracts/git.contract.js.map +1 -1
  44. package/dist/contracts/grok.contract.d.ts.map +1 -1
  45. package/dist/contracts/grok.contract.js +25 -3
  46. package/dist/contracts/grok.contract.js.map +1 -1
  47. package/dist/contracts/history.contract.d.ts.map +1 -1
  48. package/dist/contracts/history.contract.js +35 -4
  49. package/dist/contracts/history.contract.js.map +1 -1
  50. package/dist/contracts/intentic.contract.d.ts.map +1 -1
  51. package/dist/contracts/intentic.contract.js +25 -3
  52. package/dist/contracts/intentic.contract.js.map +1 -1
  53. package/dist/contracts/inventory.contract.d.ts.map +1 -1
  54. package/dist/contracts/inventory.contract.js +26 -3
  55. package/dist/contracts/inventory.contract.js.map +1 -1
  56. package/dist/contracts/logs.contract.d.ts +17 -0
  57. package/dist/contracts/logs.contract.d.ts.map +1 -1
  58. package/dist/contracts/logs.contract.js +27 -3
  59. package/dist/contracts/logs.contract.js.map +1 -1
  60. package/dist/contracts/loops.contract.d.ts.map +1 -1
  61. package/dist/contracts/loops.contract.js +52 -6
  62. package/dist/contracts/loops.contract.js.map +1 -1
  63. package/dist/contracts/panels.contract.d.ts.map +1 -1
  64. package/dist/contracts/panels.contract.js +26 -3
  65. package/dist/contracts/panels.contract.js.map +1 -1
  66. package/dist/contracts/personas.contract.d.ts.map +1 -1
  67. package/dist/contracts/personas.contract.js +71 -8
  68. package/dist/contracts/personas.contract.js.map +1 -1
  69. package/dist/contracts/ports.contract.d.ts.map +1 -1
  70. package/dist/contracts/ports.contract.js +26 -3
  71. package/dist/contracts/ports.contract.js.map +1 -1
  72. package/dist/contracts/prepush.contract.d.ts.map +1 -1
  73. package/dist/contracts/prepush.contract.js +24 -3
  74. package/dist/contracts/prepush.contract.js.map +1 -1
  75. package/dist/contracts/providers.contract.d.ts +1 -0
  76. package/dist/contracts/providers.contract.d.ts.map +1 -1
  77. package/dist/contracts/providers.contract.js +9 -1
  78. package/dist/contracts/providers.contract.js.map +1 -1
  79. package/dist/contracts/public.contract.d.ts.map +1 -1
  80. package/dist/contracts/public.contract.js +26 -3
  81. package/dist/contracts/public.contract.js.map +1 -1
  82. package/dist/contracts/push.contract.d.ts.map +1 -1
  83. package/dist/contracts/push.contract.js +35 -4
  84. package/dist/contracts/push.contract.js.map +1 -1
  85. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  86. package/dist/contracts/secrets.contract.js +43 -5
  87. package/dist/contracts/secrets.contract.js.map +1 -1
  88. package/dist/contracts/sessions.contract.d.ts +3 -0
  89. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  90. package/dist/contracts/sessions.contract.js +15 -2
  91. package/dist/contracts/sessions.contract.js.map +1 -1
  92. package/dist/contracts/settings.contract.d.ts +19 -0
  93. package/dist/contracts/settings.contract.d.ts.map +1 -1
  94. package/dist/contracts/settings.contract.js +43 -5
  95. package/dist/contracts/settings.contract.js.map +1 -1
  96. package/dist/contracts/share.contract.d.ts.map +1 -1
  97. package/dist/contracts/share.contract.js +35 -4
  98. package/dist/contracts/share.contract.js.map +1 -1
  99. package/dist/contracts/skills.contract.d.ts.map +1 -1
  100. package/dist/contracts/skills.contract.js +35 -4
  101. package/dist/contracts/skills.contract.js.map +1 -1
  102. package/dist/contracts/system.contract.d.ts +7 -0
  103. package/dist/contracts/system.contract.d.ts.map +1 -1
  104. package/dist/contracts/system.contract.js +107 -14
  105. package/dist/contracts/system.contract.js.map +1 -1
  106. package/dist/contracts/translator.contract.d.ts.map +1 -1
  107. package/dist/contracts/translator.contract.js +29 -4
  108. package/dist/contracts/translator.contract.js.map +1 -1
  109. package/dist/contracts/usage.contract.d.ts.map +1 -1
  110. package/dist/contracts/usage.contract.js +9 -1
  111. package/dist/contracts/usage.contract.js.map +1 -1
  112. package/dist/contracts/vpn.contract.d.ts.map +1 -1
  113. package/dist/contracts/vpn.contract.js +32 -4
  114. package/dist/contracts/vpn.contract.js.map +1 -1
  115. package/dist/contracts/workflows.contract.d.ts.map +1 -1
  116. package/dist/contracts/workflows.contract.js +70 -8
  117. package/dist/contracts/workflows.contract.js.map +1 -1
  118. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  119. package/dist/contracts/workspace.contract.js +216 -25
  120. package/dist/contracts/workspace.contract.js.map +1 -1
  121. package/dist/events.d.ts +46 -0
  122. package/dist/events.d.ts.map +1 -1
  123. package/dist/events.js +193 -88
  124. package/dist/events.js.map +1 -1
  125. package/dist/history-state.d.ts.map +1 -1
  126. package/dist/history-state.js +1 -0
  127. package/dist/history-state.js.map +1 -1
  128. package/dist/index.d.ts +197 -70
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +2 -0
  131. package/dist/index.js.map +1 -1
  132. package/dist/prompt-complexity.d.ts +9 -1
  133. package/dist/prompt-complexity.d.ts.map +1 -1
  134. package/dist/prompt-complexity.js +13 -5
  135. package/dist/prompt-complexity.js.map +1 -1
  136. package/dist/request-id.d.ts +3 -0
  137. package/dist/request-id.d.ts.map +1 -0
  138. package/dist/request-id.js +3 -0
  139. package/dist/request-id.js.map +1 -0
  140. package/dist/schemas.d.ts +89 -0
  141. package/dist/schemas.d.ts.map +1 -1
  142. package/dist/schemas.js +2912 -1276
  143. package/dist/schemas.js.map +1 -1
  144. package/dist/starter.d.ts +3 -0
  145. package/dist/starter.d.ts.map +1 -0
  146. package/dist/starter.js +3 -0
  147. package/dist/starter.js.map +1 -0
  148. package/package.json +5 -4
  149. package/src/contract-lock.test.ts +8 -2
  150. package/src/contracts/activity.contract.ts +18 -2
  151. package/src/contracts/agent.contract.ts +78 -8
  152. package/src/contracts/agents.contract.ts +180 -19
  153. package/src/contracts/automations.contract.ts +80 -9
  154. package/src/contracts/capabilities.contract.ts +106 -11
  155. package/src/contracts/chores.contract.ts +29 -3
  156. package/src/contracts/ci.contract.ts +55 -6
  157. package/src/contracts/claude.contract.ts +47 -5
  158. package/src/contracts/drafts.contract.ts +26 -3
  159. package/src/contracts/endpoints.contract.ts +19 -2
  160. package/src/contracts/exit.contract.ts +69 -7
  161. package/src/contracts/extensions.contract.ts +134 -15
  162. package/src/contracts/git.contract.ts +421 -43
  163. package/src/contracts/grok.contract.ts +26 -3
  164. package/src/contracts/history.contract.ts +37 -4
  165. package/src/contracts/intentic.contract.ts +28 -3
  166. package/src/contracts/inventory.contract.ts +27 -3
  167. package/src/contracts/logs.contract.ts +41 -4
  168. package/src/contracts/loops.contract.ts +58 -6
  169. package/src/contracts/panels.contract.ts +26 -3
  170. package/src/contracts/personas.contract.ts +77 -8
  171. package/src/contracts/ports.contract.ts +27 -3
  172. package/src/contracts/prepush.contract.ts +26 -3
  173. package/src/contracts/providers.contract.ts +10 -1
  174. package/src/contracts/public.contract.ts +29 -3
  175. package/src/contracts/push.contract.ts +37 -4
  176. package/src/contracts/secrets.contract.ts +46 -5
  177. package/src/contracts/sessions.contract.ts +16 -2
  178. package/src/contracts/settings.contract.ts +46 -5
  179. package/src/contracts/share.contract.ts +37 -4
  180. package/src/contracts/skills.contract.ts +39 -4
  181. package/src/contracts/system.contract.ts +119 -14
  182. package/src/contracts/translator.contract.ts +32 -4
  183. package/src/contracts/usage.contract.ts +10 -1
  184. package/src/contracts/vpn.contract.ts +35 -4
  185. package/src/contracts/workflows.contract.ts +77 -8
  186. package/src/contracts/workspace.contract.ts +231 -25
  187. package/src/events.ts +259 -89
  188. package/src/history-state.ts +6 -0
  189. package/src/index.ts +2 -0
  190. package/src/prompt-complexity.test.ts +69 -0
  191. package/src/prompt-complexity.ts +102 -39
  192. package/src/request-id.ts +41 -0
  193. package/src/schemas.ts +3700 -1260
  194. package/src/starter.ts +13 -0
@@ -1 +1 @@
1
- {"version":3,"file":"activity.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/activity.contract.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACJ,MAAM;;;;;;;;;;;;;;;;;;;;CACT,CAAC"}
1
+ {"version":3,"file":"activity.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/activity.contract.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUJ,MAAM;;;;;;;;;;;;;;;;;;;;CAQT,CAAC"}
@@ -1,7 +1,22 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { ActivityListSchema, ActivityQuerySchema, ActivityStatusSchema } from "../schemas.js";
3
3
  export const activityContract = {
4
- list: oc.route({ method: "GET", path: "/activity" }).input(ActivityQuerySchema).output(ActivityListSchema),
5
- status: oc.route({ method: "GET", path: "/activity/status" }).output(ActivityStatusSchema),
4
+ list: oc
5
+ .route({
6
+ method: "GET",
7
+ path: "/activity",
8
+ summary: "What the agent has done out in the world",
9
+ description: "The audit trail of actions taken on outside services. Read-only on purpose: entries are written by the sandbox alone, which is what makes it a record worth trusting.",
10
+ })
11
+ .input(ActivityQuerySchema)
12
+ .output(ActivityListSchema),
13
+ status: oc
14
+ .route({
15
+ method: "GET",
16
+ path: "/activity/status",
17
+ summary: "Whether the audit trail is being kept",
18
+ description: "Which sources are feeding the record and whether each is working.",
19
+ })
20
+ .output(ActivityStatusSchema),
6
21
  };
7
22
  //# sourceMappingURL=activity.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"activity.contract.js","sourceRoot":"","sources":["../../src/contracts/activity.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAI9F,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC;IAC1G,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC;CAC7F,CAAC"}
1
+ {"version":3,"file":"activity.contract.js","sourceRoot":"","sources":["../../src/contracts/activity.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAI9F,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,0CAA0C;QACnD,WAAW,EACP,uKAAuK;KAC9K,CAAC;SACD,KAAK,CAAC,mBAAmB,CAAC;SAC1B,MAAM,CAAC,kBAAkB,CAAC;IAC/B,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,uCAAuC;QAChD,WAAW,EAAE,mEAAmE;KACnF,CAAC;SACD,MAAM,CAAC,oBAAoB,CAAC;CACpC,CAAC"}
@@ -45,6 +45,7 @@ export declare const agentContract: {
45
45
  effort: import("zod").ZodOptional<import("zod").ZodString>;
46
46
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
47
47
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
48
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
48
49
  editorContext: import("zod").ZodOptional<import("zod").ZodObject<{
49
50
  file: import("zod").ZodString;
50
51
  startLine: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -231,6 +232,14 @@ export declare const agentContract: {
231
232
  kind: "fast_mode";
232
233
  state: "cooldown" | "off" | "on";
233
234
  reason?: string | undefined;
235
+ } | {
236
+ kind: "tier";
237
+ tier: "fast" | "standard";
238
+ score: number;
239
+ rules: string[];
240
+ model?: string | undefined;
241
+ routed: boolean;
242
+ held?: boolean | undefined;
234
243
  } | {
235
244
  kind: "provider_retry";
236
245
  attempt: number;
@@ -409,7 +418,7 @@ export declare const agentContract: {
409
418
  } | {
410
419
  kind: "error";
411
420
  message: string;
412
- code?: "agent-busy" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "grok-model-invalid" | "provider-outage" | "rate_limit" | "session-not-found" | "subscription-required" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "unknown-command" | undefined;
421
+ code?: "agent-busy" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-window-too-small" | "grok-model-invalid" | "provider-outage" | "rate_limit" | "session-not-found" | "subscription-required" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "unknown-command" | undefined;
413
422
  resetsAt?: number | undefined;
414
423
  autoResume?: "available" | "scheduled" | undefined;
415
424
  outage?: {
@@ -595,6 +604,14 @@ export declare const agentContract: {
595
604
  kind: "fast_mode";
596
605
  state: "cooldown" | "off" | "on";
597
606
  reason?: string | undefined;
607
+ } | {
608
+ kind: "tier";
609
+ tier: "fast" | "standard";
610
+ score: number;
611
+ rules: string[];
612
+ model?: string | undefined;
613
+ routed: boolean;
614
+ held?: boolean | undefined;
598
615
  } | {
599
616
  kind: "provider_retry";
600
617
  attempt: number;
@@ -773,7 +790,7 @@ export declare const agentContract: {
773
790
  } | {
774
791
  kind: "error";
775
792
  message: string;
776
- code?: "agent-busy" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "grok-model-invalid" | "provider-outage" | "rate_limit" | "session-not-found" | "subscription-required" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "unknown-command" | undefined;
793
+ code?: "agent-busy" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-window-too-small" | "grok-model-invalid" | "provider-outage" | "rate_limit" | "session-not-found" | "subscription-required" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "unknown-command" | undefined;
777
794
  resetsAt?: number | undefined;
778
795
  autoResume?: "available" | "scheduled" | undefined;
779
796
  outage?: {
@@ -1 +1 @@
1
- {"version":3,"file":"agent.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,aAAa;IACtB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUN,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL,KAAK;;;;;;;;;;;;;IAUL,IAAI;;;;;IAYJ,MAAM;;;;;;;IAYN,QAAQ;;;;;;;;;IAaR,QAAQ;;;;;;;;;;;;CASX,CAAC"}
@@ -2,13 +2,76 @@ import { eventIterator, oc } from "@orpc/contract";
2
2
  import { AgentCommandsQuerySchema, AgentCommandsSchema, AttachFrameSchema } from "../events.js";
3
3
  import { AgentReplySchema, AgentTurnSchema, AttachTurnSchema, OkSchema, ProviderRefusalsSchema, RewindResultSchema, RewindTurnSchema, StartedTurnSchema, SteerSchema, StopTurnSchema, } from "../schemas.js";
4
4
  export const agentContract = {
5
- run: oc.route({ method: "POST", path: "/agent" }).input(AgentTurnSchema).output(StartedTurnSchema),
6
- attach: oc.route({ method: "POST", path: "/agent/attach" }).input(AttachTurnSchema).output(eventIterator(AttachFrameSchema)),
7
- reply: oc.route({ method: "POST", path: "/agent/reply" }).input(AgentReplySchema).output(OkSchema),
8
- steer: oc.route({ method: "POST", path: "/agent/steer" }).input(SteerSchema).output(OkSchema),
9
- stop: oc.route({ method: "POST", path: "/agent/stop" }).input(StopTurnSchema).output(OkSchema),
10
- rewind: oc.route({ method: "POST", path: "/agent/rewind" }).input(RewindTurnSchema).output(RewindResultSchema),
11
- commands: oc.route({ method: "GET", path: "/agent/commands" }).input(AgentCommandsQuerySchema).output(AgentCommandsSchema),
12
- refusals: oc.route({ method: "GET", path: "/agent/refusals" }).output(ProviderRefusalsSchema),
5
+ run: oc
6
+ .route({
7
+ method: "POST",
8
+ path: "/agent",
9
+ summary: "Say something to an agent",
10
+ description: "Starts a turn and answers immediately with its id; the work runs inside the sandbox whether or not anybody stays connected. Watch it by attaching. Naming a conversation that does not exist yet opens it.",
11
+ })
12
+ .input(AgentTurnSchema)
13
+ .output(StartedTurnSchema),
14
+ attach: oc
15
+ .route({
16
+ method: "POST",
17
+ path: "/agent/attach",
18
+ summary: "Watch a turn happen",
19
+ description: "Streams everything the agent does: its words, the tools it reaches for, and the answers it gets. Give it the point you have already seen and it replays from there before going live, so a reload loses nothing. The window that started the turn holds no special claim, and any number of watchers on any number of devices see the same thing.",
20
+ })
21
+ .input(AttachTurnSchema)
22
+ .output(eventIterator(AttachFrameSchema)),
23
+ reply: oc
24
+ .route({
25
+ method: "POST",
26
+ path: "/agent/reply",
27
+ summary: "Answer a question the agent asked",
28
+ description: "Un-parks a turn that is waiting on you: approving a plan, choosing between options, or permitting a tool. The turn picks up where it stopped.",
29
+ })
30
+ .input(AgentReplySchema)
31
+ .output(OkSchema),
32
+ steer: oc
33
+ .route({
34
+ method: "POST",
35
+ path: "/agent/steer",
36
+ summary: "Interrupt a running turn",
37
+ description: "Slips a message into a turn already under way, without stopping it. This is how you redirect an agent mid-thought rather than waiting for it to finish being wrong.",
38
+ })
39
+ .input(SteerSchema)
40
+ .output(OkSchema),
41
+ stop: oc
42
+ .route({
43
+ method: "POST",
44
+ path: "/agent/stop",
45
+ summary: "Stop a turn now",
46
+ description: "Cancels the running turn inside the sandbox. Whatever it had already written to disk stays written.",
47
+ })
48
+ .input(StopTurnSchema)
49
+ .output(OkSchema),
50
+ rewind: oc
51
+ .route({
52
+ method: "POST",
53
+ path: "/agent/rewind",
54
+ summary: "Go back to an earlier message",
55
+ description: "Puts the files back as they stood at that point, drops every message after it, and forgets what the model remembered, so the next thing you say starts from there cleanly. Refused while a turn is running, because a restore cannot overwrite files an agent is editing, and refused for a message with no saved state to return to.",
56
+ })
57
+ .input(RewindTurnSchema)
58
+ .output(RewindResultSchema),
59
+ commands: oc
60
+ .route({
61
+ method: "GET",
62
+ path: "/agent/commands",
63
+ summary: "Shortcut commands the agent knows",
64
+ description: "The commands a provider published the last time one of its turns ran, so a composer can offer them before this conversation has run anything. A running turn's own list wins over this one.",
65
+ })
66
+ .input(AgentCommandsQuerySchema)
67
+ .output(AgentCommandsSchema),
68
+ refusals: oc
69
+ .route({
70
+ method: "GET",
71
+ path: "/agent/refusals",
72
+ summary: "The last time each provider said no",
73
+ description: "What each model provider most recently refused and why. Read this alongside an account's usage: the usage says how full it was when last checked, this says whether it has since started turning work away.",
74
+ })
75
+ .output(ProviderRefusalsSchema),
13
76
  };
14
77
  //# sourceMappingURL=agent.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.contract.js","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,EACH,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,cAAc,GACjB,MAAM,eAAe,CAAC;AAOvB,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC;IAClG,MAAM,EAAE,EAAE,CAAC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E,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,iBAAiB;QAC1B,WAAW,EAAE,qGAAqG;KACrH,CAAC;SACD,KAAK,CAAC,cAAc,CAAC;SACrB,MAAM,CAAC,QAAQ,CAAC;IAIrB,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,+BAA+B;QACxC,WAAW,EACP,uUAAuU;KAC9U,CAAC;SACD,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,kBAAkB,CAAC;IAG/B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EACP,6LAA6L;KACpM,CAAC;SACD,KAAK,CAAC,wBAAwB,CAAC;SAC/B,MAAM,CAAC,mBAAmB,CAAC;IAIhC,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EACP,6MAA6M;KACpN,CAAC;SACD,MAAM,CAAC,sBAAsB,CAAC;CACtC,CAAC"}
@@ -27,6 +27,11 @@ export declare const agentsContract: {
27
27
  effort: import("zod").ZodOptional<import("zod").ZodString>;
28
28
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
29
29
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
30
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
31
+ fast: "fast";
32
+ standard: "standard";
33
+ }>>;
34
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
30
35
  account: import("zod").ZodOptional<import("zod").ZodString>;
31
36
  branch: import("zod").ZodOptional<import("zod").ZodString>;
32
37
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -183,6 +188,11 @@ export declare const agentsContract: {
183
188
  effort: import("zod").ZodOptional<import("zod").ZodString>;
184
189
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
185
190
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
191
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
192
+ fast: "fast";
193
+ standard: "standard";
194
+ }>>;
195
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
186
196
  account: import("zod").ZodOptional<import("zod").ZodString>;
187
197
  branch: import("zod").ZodOptional<import("zod").ZodString>;
188
198
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -326,6 +336,7 @@ export declare const agentsContract: {
326
336
  }, import("zod/v4/core").$strip>>;
327
337
  }, import("zod/v4/core").$strip>>;
328
338
  scanned: import("zod").ZodNumber;
339
+ indexing: import("zod").ZodBoolean;
329
340
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
330
341
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
331
342
  id: import("zod").ZodString;
@@ -356,6 +367,11 @@ export declare const agentsContract: {
356
367
  effort: import("zod").ZodOptional<import("zod").ZodString>;
357
368
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
358
369
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
370
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
371
+ fast: "fast";
372
+ standard: "standard";
373
+ }>>;
374
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
359
375
  account: import("zod").ZodOptional<import("zod").ZodString>;
360
376
  branch: import("zod").ZodOptional<import("zod").ZodString>;
361
377
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -486,6 +502,9 @@ export declare const agentsContract: {
486
502
  text: import("zod").ZodString;
487
503
  }, import("zod/v4/core").$strip>>>;
488
504
  placed: import("zod").ZodOptional<import("zod").ZodBoolean>;
505
+ noticeAction: import("zod").ZodOptional<import("zod").ZodEnum<{
506
+ tierHold: "tierHold";
507
+ }>>;
489
508
  }, import("zod/v4/core").$strip>>;
490
509
  sessionId: import("zod").ZodOptional<import("zod").ZodString>;
491
510
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
@@ -525,6 +544,11 @@ export declare const agentsContract: {
525
544
  effort: import("zod").ZodOptional<import("zod").ZodString>;
526
545
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
527
546
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
547
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
548
+ fast: "fast";
549
+ standard: "standard";
550
+ }>>;
551
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
528
552
  account: import("zod").ZodOptional<import("zod").ZodString>;
529
553
  branch: import("zod").ZodOptional<import("zod").ZodString>;
530
554
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -665,6 +689,11 @@ export declare const agentsContract: {
665
689
  effort: import("zod").ZodOptional<import("zod").ZodString>;
666
690
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
667
691
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
692
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
693
+ fast: "fast";
694
+ standard: "standard";
695
+ }>>;
696
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
668
697
  account: import("zod").ZodOptional<import("zod").ZodString>;
669
698
  branch: import("zod").ZodOptional<import("zod").ZodString>;
670
699
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -805,6 +834,11 @@ export declare const agentsContract: {
805
834
  effort: import("zod").ZodOptional<import("zod").ZodString>;
806
835
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
807
836
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
837
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
838
+ fast: "fast";
839
+ standard: "standard";
840
+ }>>;
841
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
808
842
  account: import("zod").ZodOptional<import("zod").ZodString>;
809
843
  branch: import("zod").ZodOptional<import("zod").ZodString>;
810
844
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -944,6 +978,11 @@ export declare const agentsContract: {
944
978
  effort: import("zod").ZodOptional<import("zod").ZodString>;
945
979
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
946
980
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
981
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
982
+ fast: "fast";
983
+ standard: "standard";
984
+ }>>;
985
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
947
986
  account: import("zod").ZodOptional<import("zod").ZodString>;
948
987
  branch: import("zod").ZodOptional<import("zod").ZodString>;
949
988
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -1082,6 +1121,11 @@ export declare const agentsContract: {
1082
1121
  effort: import("zod").ZodOptional<import("zod").ZodString>;
1083
1122
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
1084
1123
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
1124
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
1125
+ fast: "fast";
1126
+ standard: "standard";
1127
+ }>>;
1128
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
1085
1129
  account: import("zod").ZodOptional<import("zod").ZodString>;
1086
1130
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1087
1131
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -1322,6 +1366,11 @@ export declare const agentsContract: {
1322
1366
  effort: import("zod").ZodOptional<import("zod").ZodString>;
1323
1367
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
1324
1368
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
1369
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
1370
+ fast: "fast";
1371
+ standard: "standard";
1372
+ }>>;
1373
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
1325
1374
  account: import("zod").ZodOptional<import("zod").ZodString>;
1326
1375
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1327
1376
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -1467,6 +1516,11 @@ export declare const agentsContract: {
1467
1516
  effort: import("zod").ZodOptional<import("zod").ZodString>;
1468
1517
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
1469
1518
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
1519
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
1520
+ fast: "fast";
1521
+ standard: "standard";
1522
+ }>>;
1523
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
1470
1524
  account: import("zod").ZodOptional<import("zod").ZodString>;
1471
1525
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1472
1526
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -1609,6 +1663,11 @@ export declare const agentsContract: {
1609
1663
  effort: import("zod").ZodOptional<import("zod").ZodString>;
1610
1664
  thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
1611
1665
  fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
1666
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
1667
+ fast: "fast";
1668
+ standard: "standard";
1669
+ }>>;
1670
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
1612
1671
  account: import("zod").ZodOptional<import("zod").ZodString>;
1613
1672
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1614
1673
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"agents.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agents.contract.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;IAUJ,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUJ,QAAQ;;;;;;;;;;IASR,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaJ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUX,OAAO;;;;;IAUP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUP,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUT,KAAK;;;CASR,CAAC"}
@@ -2,27 +2,172 @@ import { oc } from "@orpc/contract";
2
2
  import { AgentTranscriptSchema } from "../events.js";
3
3
  import { AgentArchiveSchema, AgentAutoLandSchema, AgentChangesSchema, AgentFileDiffQuerySchema, AgentIdSchema, AgentIdsSchema, AgentLandSchema, AgentPlaceSchema, AgentRenameSchema, AgentResumeAfterOutageSchema, AgentSearchQuerySchema, AgentSearchResultSchema, AgentsListSchema, AgentsMovedSchema, AgentsRemovedSchema, AgentSummarySchema, FileDiffSchema, LandResultSchema, OkSchema, } from "../schemas.js";
4
4
  export const agentsContract = {
5
- list: oc.route({ method: "GET", path: "/agents" }).output(AgentsListSchema),
6
- archived: oc.route({ method: "GET", path: "/agents/archived" }).output(AgentsListSchema),
7
- search: oc.route({ method: "GET", path: "/agents/search" }).input(AgentSearchQuerySchema).output(AgentSearchResultSchema),
8
- get: oc.route({ method: "GET", path: "/agents/{id}" }).input(AgentIdSchema).output(AgentSummarySchema),
9
- transcript: oc.route({ method: "GET", path: "/agents/{id}/transcript" }).input(AgentIdSchema).output(AgentTranscriptSchema),
10
- place: oc.route({ method: "POST", path: "/agents/{id}/place" }).input(AgentPlaceSchema).output(OkSchema),
11
- rename: oc.route({ method: "POST", path: "/agents/{id}/rename" }).input(AgentRenameSchema).output(AgentSummarySchema),
12
- autoLand: oc.route({ method: "POST", path: "/agents/{id}/auto-land" }).input(AgentAutoLandSchema).output(AgentSummarySchema),
5
+ list: oc
6
+ .route({
7
+ method: "GET",
8
+ path: "/agents",
9
+ summary: "Every live conversation",
10
+ description: "The fleet as the board draws it: each conversation with its title, what it is doing, when it last moved and whether anybody has read it since. Archived conversations are not in here.",
11
+ })
12
+ .output(AgentsListSchema),
13
+ archived: oc
14
+ .route({
15
+ method: "GET",
16
+ path: "/agents/archived",
17
+ summary: "Conversations put away",
18
+ description: "The same shape as the live fleet, for the conversations somebody has decided are finished. Their work is kept, and any one of them can be brought back.",
19
+ })
20
+ .output(AgentsListSchema),
21
+ search: oc
22
+ .route({
23
+ method: "GET",
24
+ path: "/agents/search",
25
+ summary: "Find a conversation",
26
+ description: "Searches the live fleet and the archive together. Both halves on purpose: the board hides finished work by design, and a filter that says it found nothing while the answer sits one click away is simply wrong.",
27
+ })
28
+ .input(AgentSearchQuerySchema)
29
+ .output(AgentSearchResultSchema),
30
+ get: oc
31
+ .route({
32
+ method: "GET",
33
+ path: "/agents/{id}",
34
+ summary: "One conversation's card",
35
+ description: "Everything the board shows for a single conversation: its title, state, working branch, unread marker and timestamps.",
36
+ })
37
+ .input(AgentIdSchema)
38
+ .output(AgentSummarySchema),
39
+ transcript: oc
40
+ .route({
41
+ method: "GET",
42
+ path: "/agents/{id}/transcript",
43
+ summary: "The full conversation record",
44
+ description: "Every message in one conversation, in order, including the tool calls and their results. This is the record the chat replays and the next turn is seeded from.",
45
+ })
46
+ .input(AgentIdSchema)
47
+ .output(AgentTranscriptSchema),
48
+ place: oc
49
+ .route({
50
+ method: "POST",
51
+ path: "/agents/{id}/place",
52
+ summary: "Put words in the agent's mouth",
53
+ description: "Writes a line into the record as though the agent had said it, with no turn behind it and no reply. Human readers see it marked as placed. The next real turn starts fresh from the record, where the line reads as the agent's own. Refused while a turn is running.",
54
+ })
55
+ .input(AgentPlaceSchema)
56
+ .output(OkSchema),
57
+ rename: oc
58
+ .route({
59
+ method: "POST",
60
+ path: "/agents/{id}/rename",
61
+ summary: "Retitle a conversation",
62
+ description: "Sets the title a person chose, replacing the one that was generated. Allowed while the conversation is working, and it does not count as activity.",
63
+ })
64
+ .input(AgentRenameSchema)
65
+ .output(AgentSummarySchema),
66
+ autoLand: oc
67
+ .route({
68
+ method: "POST",
69
+ path: "/agents/{id}/auto-land",
70
+ summary: "Whether this conversation merges its work automatically",
71
+ description: "Overrides the sandbox-wide setting for one conversation; clear it to go back to following the default. Deliberately allowed mid-turn, because the setting is read when the turn finishes, so flipping it while the agent works means exactly hold this piece of work for review.",
72
+ })
73
+ .input(AgentAutoLandSchema)
74
+ .output(AgentSummarySchema),
13
75
  resumeAfterOutage: oc
14
- .route({ method: "POST", path: "/agents/{id}/resume-after-outage" })
76
+ .route({
77
+ method: "POST",
78
+ path: "/agents/{id}/resume-after-outage",
79
+ summary: "Whether this conversation retries after a provider outage",
80
+ description: "Overrides the sandbox-wide setting for one conversation; clear it to follow the default again. This is what the offer shown when a turn dies writes, because the press happens inside one conversation and honestly means finish this piece of work.",
81
+ })
15
82
  .input(AgentResumeAfterOutageSchema)
16
83
  .output(AgentSummarySchema),
17
- seen: oc.route({ method: "POST", path: "/agents/{id}/seen" }).input(AgentIdSchema).output(AgentSummarySchema),
18
- seenAll: oc.route({ method: "POST", path: "/agents/seen" }).output(AgentsListSchema),
19
- diff: oc.route({ method: "GET", path: "/agents/{id}/diff" }).input(AgentIdSchema).output(AgentChangesSchema),
20
- fileDiff: oc.route({ method: "GET", path: "/agents/{id}/{repo}/file-diff" }).input(AgentFileDiffQuerySchema).output(FileDiffSchema),
21
- land: oc.route({ method: "POST", path: "/agents/{id}/land" }).input(AgentLandSchema).output(LandResultSchema),
22
- requestLand: oc.route({ method: "POST", path: "/agents/{id}/request-land" }).input(AgentIdSchema).output(AgentSummarySchema),
23
- discard: oc.route({ method: "POST", path: "/agents/{id}/discard" }).input(AgentIdSchema).output(OkSchema),
24
- archive: oc.route({ method: "POST", path: "/agents/archive" }).input(AgentArchiveSchema).output(AgentsMovedSchema),
25
- unarchive: oc.route({ method: "POST", path: "/agents/unarchive" }).input(AgentIdsSchema).output(AgentsMovedSchema),
26
- purge: oc.route({ method: "POST", path: "/agents/purge" }).output(AgentsRemovedSchema),
84
+ seen: oc
85
+ .route({
86
+ method: "POST",
87
+ path: "/agents/{id}/seen",
88
+ summary: "Mark a conversation read",
89
+ description: "Stamps the read marker behind the unread badge on one card. Allowed while the conversation is working, and reading never counts as activity.",
90
+ })
91
+ .input(AgentIdSchema)
92
+ .output(AgentSummarySchema),
93
+ seenAll: oc
94
+ .route({
95
+ method: "POST",
96
+ path: "/agents/seen",
97
+ summary: "Mark every conversation read",
98
+ description: "Clears the unread badge across the whole fleet at once, and hands the refreshed list back.",
99
+ })
100
+ .output(AgentsListSchema),
101
+ diff: oc
102
+ .route({
103
+ method: "GET",
104
+ path: "/agents/{id}/diff",
105
+ summary: "Everything a conversation has changed",
106
+ description: "One flat set of changed files per repo, measured against where each repo stood when the conversation started, with every file flagged as already merged or not. Not the staged-and-unstaged shape a working copy has, because nobody ever checks this branch out to stage into it.",
107
+ })
108
+ .input(AgentIdSchema)
109
+ .output(AgentChangesSchema),
110
+ fileDiff: oc
111
+ .route({
112
+ method: "GET",
113
+ path: "/agents/{id}/{repo}/file-diff",
114
+ summary: "One file's before and after in a conversation's work",
115
+ description: "Both sides of a single file: what it held when the conversation started and what it holds on its branch now.",
116
+ })
117
+ .input(AgentFileDiffQuerySchema)
118
+ .output(FileDiffSchema),
119
+ land: oc
120
+ .route({
121
+ method: "POST",
122
+ path: "/agents/{id}/land",
123
+ summary: "Merge a conversation's work into the workspace",
124
+ description: "Brings the conversation's branches into the main tree, one repo at a time. A conflict is reported rather than raised and nothing is lost when it fails. Refused while a turn is running, and refused for a conversation that works directly in the shared tree, which has nothing to merge.",
125
+ })
126
+ .input(AgentLandSchema)
127
+ .output(LandResultSchema),
128
+ requestLand: oc
129
+ .route({
130
+ method: "POST",
131
+ path: "/agents/{id}/request-land",
132
+ summary: "Ask a maintainer to merge this work",
133
+ description: "For a collaborator who is not allowed to merge: marks the conversation as waiting for review, with who asked. The request shows on every maintainer's board and clears when somebody merges or discards it.",
134
+ })
135
+ .input(AgentIdSchema)
136
+ .output(AgentSummarySchema),
137
+ discard: oc
138
+ .route({
139
+ method: "POST",
140
+ path: "/agents/{id}/discard",
141
+ summary: "Throw a conversation's work away",
142
+ description: "Deletes the conversation's working copies, its branches and its entry. Nothing is kept. Refused while a turn is running, and refused for a conversation working in the shared tree.",
143
+ })
144
+ .input(AgentIdSchema)
145
+ .output(OkSchema),
146
+ archive: oc
147
+ .route({
148
+ method: "POST",
149
+ path: "/agents/archive",
150
+ summary: "Put conversations away",
151
+ description: "The gentle counterpart to discarding. Commits whatever the conversation still has in progress onto its own branch, releases its working copy, and keeps the entry and the record. It leaves the live fleet and joins the archive. Refused for a conversation that is running.",
152
+ })
153
+ .input(AgentArchiveSchema)
154
+ .output(AgentsMovedSchema),
155
+ unarchive: oc
156
+ .route({
157
+ method: "POST",
158
+ path: "/agents/unarchive",
159
+ summary: "Bring conversations back",
160
+ description: "Returns archived conversations to the live fleet. The next turn picks up a fresh working copy from the branch that was kept.",
161
+ })
162
+ .input(AgentIdsSchema)
163
+ .output(AgentsMovedSchema),
164
+ purge: oc
165
+ .route({
166
+ method: "POST",
167
+ path: "/agents/purge",
168
+ summary: "Empty the archive for good",
169
+ description: "Discards every conversation already in the archive: working copies, branches and entries. The whole archive rather than a chosen few, because the archive is the pile somebody has already decided is over. A teardown that fails on one conversation leaves that one behind instead of taking the rest down with it.",
170
+ })
171
+ .output(AgentsRemovedSchema),
27
172
  };
28
173
  //# sourceMappingURL=agents.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.contract.js","sourceRoot":"","sources":["../../src/contracts/agents.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EACH,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,QAAQ,GACX,MAAM,eAAe,CAAC;AA0BvB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAC3E,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAKxF,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,E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KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC;IAClH,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;CACzF,CAAC"}
1
+ {"version":3,"file":"agents.contract.js","sourceRoot":"","sources":["../../src/contracts/agents.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EACH,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,QAAQ,GACX,MAAM,eAAe,CAAC;AA0BvB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,yBAAyB;QAClC,WAAW,EACP,wLAAwL;KAC/L,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAC7B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,yJAAyJ;KAChK,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAK7B,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;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C;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,gBAAgB,CAAC;IAI7B,WAAW,EAAE,EAAE;SACV,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,2BAA2B;QACjC,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EACP,6MAA6M;KACpN,CAAC;SACD,KAAK,CAAC,aAAa,CAAC;SACpB,MAAM,CAAC,kBAAkB,CAAC;IAC/B,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EACP,qLAAqL;KAC5L,CAAC;SACD,KAAK,CAAC,aAAa,CAAC;SACpB,MAAM,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,+QAA+Q;KACtR,CAAC;SACD,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,iBAAiB,CAAC;IAC9B,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,0BAA0B;QACnC,WAAW,EACP,8HAA8H;KACrI,CAAC;SACD,KAAK,CAAC,cAAc,CAAC;SACrB,MAAM,CAAC,iBAAiB,CAAC;IAC9B,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,uTAAuT;KAC9T,CAAC;SACD,MAAM,CAAC,mBAAmB,CAAC;CACnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"automations.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/automations.contract.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,mBAAmB;IAC5B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKJ,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACN,UAAU;;;;;;IACV,MAAM;;;;;IAoBN,GAAG;;;;;IACH,WAAW;;;;;;;;;;;;;;;;;;IACX,OAAO;;;;;IACP,MAAM;;;;;CACT,CAAC"}
1
+ {"version":3,"file":"automations.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/automations.contract.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,mBAAmB;IAC5B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYJ,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASN,UAAU;;;;;;IASV,MAAM;;;;;IA4BN,GAAG;;;;;IAUH,WAAW;;;;;;;;;;;;;;;;;;IAQX,OAAO;;;;;IASP,MAAM;;;;;CAST,CAAC"}