@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,9 +1,40 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { OkSchema, PushChannelIdSchema, PushChannelSchema, PushConfigQuerySchema, PushConfigSchema, PushTestSchema } from "../schemas.js";
3
3
  export const pushContract = {
4
- config: oc.route({ method: "GET", path: "/push/config" }).input(PushConfigQuerySchema).output(PushConfigSchema),
5
- subscribe: oc.route({ method: "POST", path: "/push/subscribe" }).input(PushChannelSchema).output(OkSchema),
6
- unsubscribe: oc.route({ method: "POST", path: "/push/unsubscribe" }).input(PushChannelIdSchema).output(OkSchema),
7
- test: oc.route({ method: "POST", path: "/push/test" }).output(PushTestSchema),
4
+ config: oc
5
+ .route({
6
+ method: "GET",
7
+ path: "/push/config",
8
+ summary: "What a device needs to subscribe",
9
+ description: "The public key and settings a browser or app needs before it can register for notifications from this sandbox.",
10
+ })
11
+ .input(PushConfigQuerySchema)
12
+ .output(PushConfigSchema),
13
+ subscribe: oc
14
+ .route({
15
+ method: "POST",
16
+ path: "/push/subscribe",
17
+ summary: "Send notifications to this device",
18
+ description: "Registers one device. The sandbox only interrupts you on the three moments where attention is genuinely wanted: a turn has finished, the agent is stuck on a question, and something is waiting for approval.",
19
+ })
20
+ .input(PushChannelSchema)
21
+ .output(OkSchema),
22
+ unsubscribe: oc
23
+ .route({
24
+ method: "POST",
25
+ path: "/push/unsubscribe",
26
+ summary: "Stop notifying a device",
27
+ description: "Removes one registered device. Others keep receiving.",
28
+ })
29
+ .input(PushChannelIdSchema)
30
+ .output(OkSchema),
31
+ test: oc
32
+ .route({
33
+ method: "POST",
34
+ path: "/push/test",
35
+ summary: "Send a test notification",
36
+ description: "Proves the whole chain end to end. Worth having, because there are four separate places a notification can be lost that nobody can inspect from the outside: the device's permission, its registration, the sandbox's key, and the delivery service.",
37
+ })
38
+ .output(PushTestSchema),
8
39
  };
9
40
  //# sourceMappingURL=push.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"push.contract.js","sourceRoot":"","sources":["../../src/contracts/push.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IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE,gHAAgH;KAChI,CAAC;SACD,KAAK,CAAC,qBAAqB,CAAC;SAC5B,MAAM,CAAC,gBAAgB,CAAC;IAC7B,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EACP,+MAA+M;KACtN,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,QAAQ,CAAC;IACrB,WAAW,EAAE,EAAE;SACV,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,yBAAyB;QAClC,WAAW,EAAE,uDAAuD;KACvE,CAAC;SACD,KAAK,CAAC,mBAAmB,CAAC;SAC1B,MAAM,CAAC,QAAQ,CAAC;IACrB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,0BAA0B;QACnC,WAAW,EACP,sPAAsP;KAC7P,CAAC;SACD,MAAM,CAAC,cAAc,CAAC;CAC9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"secrets.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/secrets.contract.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe;IACxB,GAAG;;;;;;IACH,IAAI;;;IACJ,MAAM;;;;;IACN,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACT,MAAM;;;;;CACT,CAAC"}
1
+ {"version":3,"file":"secrets.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/secrets.contract.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe;IACxB,GAAG;;;;;;IAUH,IAAI;;;IAQJ,MAAM;;;;;IASN,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAST,MAAM;;;;;CAUT,CAAC"}
@@ -1,10 +1,48 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { OkSchema, SecretInventorySchema, SecretKeyParamSchema, SecretKeysSchema, SecretRevealSchema, SecretSetSchema } from "../schemas.js";
3
3
  export const secretsContract = {
4
- set: oc.route({ method: "POST", path: "/secrets" }).input(SecretSetSchema).output(OkSchema),
5
- list: oc.route({ method: "GET", path: "/secrets" }).output(SecretKeysSchema),
6
- remove: oc.route({ method: "DELETE", path: "/secrets/{key}" }).input(SecretKeyParamSchema).output(OkSchema),
7
- inventory: oc.route({ method: "GET", path: "/secrets/inventory" }).output(SecretInventorySchema),
8
- reveal: oc.route({ method: "POST", path: "/secrets/reveal" }).input(SecretKeyParamSchema).output(SecretRevealSchema),
4
+ set: oc
5
+ .route({
6
+ method: "POST",
7
+ path: "/secrets",
8
+ summary: "Store a secret",
9
+ description: "Writes one name and value into the sandbox's own store, where running processes pick it up without a restart. Refused until the sandbox has somewhere to keep them.",
10
+ })
11
+ .input(SecretSetSchema)
12
+ .output(OkSchema),
13
+ list: oc
14
+ .route({
15
+ method: "GET",
16
+ path: "/secrets",
17
+ summary: "Names of the stored secrets",
18
+ description: "Which secrets exist here. Names only, never values.",
19
+ })
20
+ .output(SecretKeysSchema),
21
+ remove: oc
22
+ .route({
23
+ method: "DELETE",
24
+ path: "/secrets/{key}",
25
+ summary: "Delete a secret",
26
+ description: "Removes one by name.",
27
+ })
28
+ .input(SecretKeyParamSchema)
29
+ .output(OkSchema),
30
+ inventory: oc
31
+ .route({
32
+ method: "GET",
33
+ path: "/secrets/inventory",
34
+ summary: "Every secret this sandbox holds, from everywhere",
35
+ description: "One view across all the places secrets live here: what exists, where it came from and whether it is working. Never any values. This one always answers, even before there is a store to write to.",
36
+ })
37
+ .output(SecretInventorySchema),
38
+ reveal: oc
39
+ .route({
40
+ method: "POST",
41
+ path: "/secrets/reveal",
42
+ summary: "Show one secret's value",
43
+ description: "The only call that hands a value back, and it is for the owner alone. Sent as a body rather than in the address, so the name never ends up in a log or a browser's history.",
44
+ })
45
+ .input(SecretKeyParamSchema)
46
+ .output(SecretRevealSchema),
9
47
  };
10
48
  //# sourceMappingURL=secrets.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"secrets.contract.js","sourceRoot":"","sources":["../../src/contracts/secrets.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAO7I,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC3F,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAC5E,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC3G,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAChG,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC;CACvH,CAAC"}
1
+ {"version":3,"file":"secrets.contract.js","sourceRoot":"","sources":["../../src/contracts/secrets.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAO7I,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,GAAG,EAAE,EAAE;SACF,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,gBAAgB;QACzB,WAAW,EACP,qKAAqK;KAC5K,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC;IACrB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,qDAAqD;KACrE,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAC7B,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,iBAAiB;QAC1B,WAAW,EAAE,sBAAsB;KACtC,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,QAAQ,CAAC;IACrB,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,kDAAkD;QAC3D,WAAW,EACP,mMAAmM;KAC1M,CAAC;SACD,MAAM,CAAC,qBAAqB,CAAC;IAClC,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,yBAAyB;QAClC,WAAW,EACP,6KAA6K;KACpL,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,kBAAkB,CAAC;CAClC,CAAC"}
@@ -37,6 +37,9 @@ export declare const sessionsContract: {
37
37
  text: z.ZodString;
38
38
  }, z.core.$strip>>>;
39
39
  placed: z.ZodOptional<z.ZodBoolean>;
40
+ noticeAction: z.ZodOptional<z.ZodEnum<{
41
+ tierHold: "tierHold";
42
+ }>>;
40
43
  }, z.core.$strip>>;
41
44
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
42
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;;;;;;;;IAIJ,GAAG;;;;;;;;;;;;;;;;;;;;;;CACN,CAAC"}
1
+ {"version":3,"file":"sessions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;;;;;;;;IAUJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CASN,CAAC"}
@@ -4,9 +4,22 @@ import { SessionTranscriptSchema } from "../events.js";
4
4
  import { SessionIdParamSchema, SessionsListSchema } from "../schemas.js";
5
5
  export const sessionsContract = {
6
6
  list: oc
7
- .route({ method: "GET", path: "/sessions" })
7
+ .route({
8
+ method: "GET",
9
+ path: "/sessions",
10
+ summary: "Past conversations in this workspace",
11
+ description: "Summaries for a history menu, filtered when you pass a search. Covers conversations that worked in their own private copies too, so nothing is hidden just because it happened on a branch.",
12
+ })
8
13
  .input(z.object({ query: z.string().optional(), caseSensitive: z.stringbool().optional() }))
9
14
  .output(SessionsListSchema),
10
- get: oc.route({ method: "GET", path: "/sessions/{id}" }).input(SessionIdParamSchema).output(SessionTranscriptSchema),
15
+ get: oc
16
+ .route({
17
+ method: "GET",
18
+ path: "/sessions/{id}",
19
+ summary: "Read one past conversation",
20
+ description: "The full record of a single conversation, restored for display.",
21
+ })
22
+ .input(SessionIdParamSchema)
23
+ .output(SessionTranscriptSchema),
11
24
  };
12
25
  //# sourceMappingURL=sessions.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.contract.js","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAUzE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;SAC3C,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;SAC3F,MAAM,CAAC,kBAAkB,CAAC;IAC/B,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC;CACvH,CAAC"}
1
+ {"version":3,"file":"sessions.contract.js","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAUzE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,sCAAsC;QAC/C,WAAW,EACP,6LAA6L;KACpM,CAAC;SACD,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;SAC3F,MAAM,CAAC,kBAAkB,CAAC;IAC/B,GAAG,EAAE,EAAE;SACF,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EAAE,iEAAiE;KACjF,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,uBAAuB,CAAC;CACvC,CAAC"}
@@ -25,6 +25,11 @@ export declare const settingsContract: {
25
25
  on: "on";
26
26
  shadow: "shadow";
27
27
  }>>;
28
+ autoTierEagerness: import("zod").ZodDefault<import("zod").ZodEnum<{
29
+ balanced: "balanced";
30
+ cautious: "cautious";
31
+ eager: "eager";
32
+ }>>;
28
33
  autoFastModels: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
29
34
  agentRetentionDays: import("zod").ZodDefault<import("zod").ZodNumber>;
30
35
  resumeAfterOutage: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -145,6 +150,11 @@ export declare const settingsContract: {
145
150
  on: "on";
146
151
  shadow: "shadow";
147
152
  }>>;
153
+ autoTierEagerness: import("zod").ZodDefault<import("zod").ZodEnum<{
154
+ balanced: "balanced";
155
+ cautious: "cautious";
156
+ eager: "eager";
157
+ }>>;
148
158
  autoFastModels: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
149
159
  agentRetentionDays: import("zod").ZodDefault<import("zod").ZodNumber>;
150
160
  resumeAfterOutage: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -357,6 +367,15 @@ export declare const settingsContract: {
357
367
  }>>;
358
368
  cohort: import("zod").ZodOptional<import("zod").ZodString>;
359
369
  }, import("zod/v4/core").$strip>>;
370
+ tier: import("zod").ZodOptional<import("zod").ZodObject<{
371
+ judged: import("zod").ZodNumber;
372
+ fast: import("zod").ZodNumber;
373
+ atStakeUsd: import("zod").ZodNumber;
374
+ routed: import("zod").ZodNumber;
375
+ routedUsd: import("zod").ZodNumber;
376
+ escalated: import("zod").ZodNumber;
377
+ denied: import("zod").ZodNumber;
378
+ }, import("zod/v4/core").$strip>>;
360
379
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
361
380
  builtinPrompt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
362
381
  base: import("zod").ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"settings.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/settings.contract.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACH,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACP,aAAa;;;;;;;;;IAIb,OAAO;CACV,CAAC"}
1
+ {"version":3,"file":"settings.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/settings.contract.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASH,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUP,aAAa;;;;;;;;;IAab,OAAO;CASV,CAAC"}
@@ -1,10 +1,48 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { BuiltinPromptSchema, BuiltinPromptTextSchema, DayWindowQuerySchema, OkSchema, RuleFiringsSchema, SandboxSettingsSchema, SavingsReportSchema, } from "../schemas.js";
3
3
  export const settingsContract = {
4
- get: oc.route({ method: "GET", path: "/settings" }).output(SandboxSettingsSchema),
5
- set: oc.route({ method: "POST", path: "/settings" }).input(SandboxSettingsSchema).output(OkSchema),
6
- savings: oc.route({ method: "GET", path: "/settings/savings" }).input(DayWindowQuerySchema).output(SavingsReportSchema),
7
- builtinPrompt: oc.route({ method: "GET", path: "/settings/system-prompt/{base}" }).input(BuiltinPromptSchema).output(BuiltinPromptTextSchema),
8
- firings: oc.route({ method: "GET", path: "/settings/rule-firings" }).output(RuleFiringsSchema),
4
+ get: oc
5
+ .route({
6
+ method: "GET",
7
+ path: "/settings",
8
+ summary: "How this sandbox is configured",
9
+ description: "Every setting that governs how agents behave here, with the defaults filled in for anything nobody has chosen.",
10
+ })
11
+ .output(SandboxSettingsSchema),
12
+ set: oc
13
+ .route({
14
+ method: "POST",
15
+ path: "/settings",
16
+ summary: "Change the sandbox settings",
17
+ description: "Writes the settings whole, so send the complete object rather than the fields you changed.",
18
+ })
19
+ .input(SandboxSettingsSchema)
20
+ .output(OkSchema),
21
+ savings: oc
22
+ .route({
23
+ method: "GET",
24
+ path: "/settings/savings",
25
+ summary: "What the token-saving measures were worth",
26
+ description: "Measured rather than estimated: what each mechanism actually saved over a range of days. The same day range the spending ledger takes, so one calendar filters both.",
27
+ })
28
+ .input(DayWindowQuerySchema)
29
+ .output(SavingsReportSchema),
30
+ builtinPrompt: oc
31
+ .route({
32
+ method: "GET",
33
+ path: "/settings/system-prompt/{base}",
34
+ summary: "Read a built-in system prompt",
35
+ description: "The actual text behind one of the built-in modes, so a settings screen can show the prompt instead of asking anyone to trust a description of it, and so either can be forked into a custom one.",
36
+ })
37
+ .input(BuiltinPromptSchema)
38
+ .output(BuiltinPromptTextSchema),
39
+ firings: oc
40
+ .route({
41
+ method: "GET",
42
+ path: "/settings/rule-firings",
43
+ summary: "When each rule last did something",
44
+ description: "A separate read rather than a field on the settings, because a rule firing is not somebody editing anything: folding it in would turn every firing into a settings write and put a self-changing value inside the object a screen edits.",
45
+ })
46
+ .output(RuleFiringsSchema),
9
47
  };
10
48
  //# sourceMappingURL=settings.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.contract.js","sourceRoot":"","sources":["../../src/contracts/settings.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,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ACF,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,gCAAgC;QACzC,WAAW,EAAE,gHAAgH;KAChI,CAAC;SACD,MAAM,CAAC,qBAAqB,CAAC;IAClC,GAAG,EAAE,EAAE;SACF,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,4FAA4F;KAC5G,CAAC;SACD,KAAK,CAAC,qBAAqB,CAAC;SAC5B,MAAM,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,2CAA2C;QACpD,WAAW,EACP,sKAAsK;KAC7K,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,mBAAmB,CAAC;IAChC,aAAa,EAAE,EAAE;SACZ,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gCAAgC;QACtC,OAAO,EAAE,+BAA+B;QACxC,WAAW,EACP,kMAAkM;KACzM,CAAC;SACD,KAAK,CAAC,mBAAmB,CAAC;SAC1B,MAAM,CAAC,uBAAuB,CAAC;IAIpC,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EACP,0OAA0O;KACjP,CAAC;SACD,MAAM,CAAC,iBAAiB,CAAC;CACjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"share.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/share.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa;IACtB,IAAI;;;;;;;;;;;;;;IAEJ,MAAM;;;;;;;;;;;;;;;;;;;IAEN,MAAM;;;;;;;;;;;;;;IACN,MAAM;;;;;CACT,CAAC"}
1
+ {"version":3,"file":"share.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/share.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa;IACtB,IAAI;;;;;;;;;;;;;;IAUJ,MAAM;;;;;;;;;;;;;;;;;;;IAWN,MAAM;;;;;;;;;;;;;;IASN,MAAM;;;;;CAST,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { OkSchema, ShareCreateSchema, ShareListSchema, ShareRemoveSchema, ShareUpdateSchema, SharedConversationSchema } from "../schemas.js";
3
3
  export const shareContract = {
4
- list: oc.route({ method: "GET", path: "/share" }).output(ShareListSchema),
5
- create: oc.route({ method: "POST", path: "/share" }).input(ShareCreateSchema).output(SharedConversationSchema),
6
- update: oc.route({ method: "POST", path: "/share/update" }).input(ShareUpdateSchema).output(SharedConversationSchema),
7
- remove: oc.route({ method: "POST", path: "/share/remove" }).input(ShareRemoveSchema).output(OkSchema),
4
+ list: oc
5
+ .route({
6
+ method: "GET",
7
+ path: "/share",
8
+ summary: "Conversations published as pages",
9
+ description: "Every conversation that has been turned into a read-only page, with its link. There is no call to read one back: the page itself is the read, and it answers to anyone who has the link.",
10
+ })
11
+ .output(ShareListSchema),
12
+ create: oc
13
+ .route({
14
+ method: "POST",
15
+ path: "/share",
16
+ summary: "Publish a conversation",
17
+ description: "Renders a conversation into a page anybody with the link can read, without signing in. Answers with the link, so nothing has to be listed again to find it.",
18
+ })
19
+ .input(ShareCreateSchema)
20
+ .output(SharedConversationSchema),
21
+ update: oc
22
+ .route({
23
+ method: "POST",
24
+ path: "/share/update",
25
+ summary: "Refresh a published page",
26
+ description: "Re-renders an existing page from the conversation as it stands now. Same link, newer contents.",
27
+ })
28
+ .input(ShareUpdateSchema)
29
+ .output(SharedConversationSchema),
30
+ remove: oc
31
+ .route({
32
+ method: "POST",
33
+ path: "/share/remove",
34
+ summary: "Unpublish a conversation",
35
+ description: "Takes the page down, so the link stops answering.",
36
+ })
37
+ .input(ShareRemoveSchema)
38
+ .output(OkSchema),
8
39
  };
9
40
  //# sourceMappingURL=share.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"share.contract.js","sourceRoot":"","sources":["../../src/contracts/share.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAW7I,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC;IAEzE,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC;IAE9G,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC;IACrH,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CACxG,CAAC"}
1
+ {"version":3,"file":"share.contract.js","sourceRoot":"","sources":["../../src/contracts/share.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAW7I,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EACP,0LAA0L;KACjM,CAAC;SACD,MAAM,CAAC,eAAe,CAAC;IAE5B,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,6JAA6J;KACpK,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,wBAAwB,CAAC;IAErC,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,0BAA0B;QACnC,WAAW,EAAE,gGAAgG;KAChH,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,wBAAwB,CAAC;IACrC,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,0BAA0B;QACnC,WAAW,EAAE,mDAAmD;KACnE,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"skills.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/skills.contract.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;IACJ,IAAI;;;;;;;IAGJ,IAAI;;;;;;;IACJ,MAAM;;;;;CACT,CAAC"}
1
+ {"version":3,"file":"skills.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/skills.contract.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;IASJ,IAAI;;;;;;;IAYJ,IAAI;;;;;;;IAUJ,MAAM;;;;;CAUT,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { OkSchema, SkillBodySchema, SkillDraftSchema, SkillIdSchema, SkillRemoveSchema, SkillsListSchema } from "../schemas.js";
3
3
  export const skillsContract = {
4
- list: oc.route({ method: "GET", path: "/skills" }).output(SkillsListSchema),
5
- read: oc.route({ method: "GET", path: "/skills/read" }).input(SkillIdSchema).output(SkillBodySchema),
6
- save: oc.route({ method: "POST", path: "/skills" }).input(SkillDraftSchema).output(OkSchema),
7
- remove: oc.route({ method: "POST", path: "/skills/remove" }).input(SkillRemoveSchema).output(OkSchema),
4
+ list: oc
5
+ .route({
6
+ method: "GET",
7
+ path: "/skills",
8
+ summary: "What the agent knows how to do",
9
+ description: "Every skill available here and whether it is switched on, joined from all four places they come from: the owner's own, the settings, plugins a connection installed, and folders inside extensions.",
10
+ })
11
+ .output(SkillsListSchema),
12
+ read: oc
13
+ .route({
14
+ method: "GET",
15
+ path: "/skills/read",
16
+ summary: "Read one skill",
17
+ description: "The full text of a single skill. The name travels in the query rather than the address, because a name can carry the owner it came from and that will not fit in a path.",
18
+ })
19
+ .input(SkillIdSchema)
20
+ .output(SkillBodySchema),
21
+ save: oc
22
+ .route({
23
+ method: "POST",
24
+ path: "/skills",
25
+ summary: "Write a skill",
26
+ description: "Creates or rewrites a skill by name, and switches it on, because you wrote it in order to use it. Renaming is saving under the new name and deleting the old.",
27
+ })
28
+ .input(SkillDraftSchema)
29
+ .output(OkSchema),
30
+ remove: oc
31
+ .route({
32
+ method: "POST",
33
+ path: "/skills/remove",
34
+ summary: "Delete a skill",
35
+ description: "Removes the text and takes it off the enabled list in one step, so a screen never has to sequence two calls and never leaves one half done.",
36
+ })
37
+ .input(SkillRemoveSchema)
38
+ .output(OkSchema),
8
39
  };
9
40
  //# sourceMappingURL=skills.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skills.contract.js","sourceRoot":"","sources":["../../src/contracts/skills.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAehI,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,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC;IAGpG,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC5F,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CACzG,CAAC"}
1
+ {"version":3,"file":"skills.contract.js","sourceRoot":"","sources":["../../src/contracts/skills.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAehI,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,gCAAgC;QACzC,WAAW,EACP,qMAAqM;KAC5M,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAC7B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,gBAAgB;QACzB,WAAW,EACP,0KAA0K;KACjL,CAAC;SACD,KAAK,CAAC,aAAa,CAAC;SACpB,MAAM,CAAC,eAAe,CAAC;IAG5B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,eAAe;QACxB,WAAW,EACP,+JAA+J;KACtK,CAAC;SACD,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,QAAQ,CAAC;IACrB,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,gBAAgB;QACzB,WAAW,EACP,6IAA6I;KACpJ,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
@@ -112,6 +112,8 @@ export declare const systemContract: {
112
112
  effort?: string | undefined;
113
113
  thinking?: boolean | undefined;
114
114
  fast?: boolean | undefined;
115
+ tier?: "fast" | "standard" | undefined;
116
+ tierHold?: boolean | undefined;
115
117
  account?: string | undefined;
116
118
  branch?: string | undefined;
117
119
  autoLand?: boolean | undefined;
@@ -271,6 +273,8 @@ export declare const systemContract: {
271
273
  effort?: string | undefined;
272
274
  thinking?: boolean | undefined;
273
275
  fast?: boolean | undefined;
276
+ tier?: "fast" | "standard" | undefined;
277
+ tierHold?: boolean | undefined;
274
278
  account?: string | undefined;
275
279
  branch?: string | undefined;
276
280
  autoLand?: boolean | undefined;
@@ -503,6 +507,9 @@ export declare const systemContract: {
503
507
  text: z.ZodString;
504
508
  }, z.core.$strip>>>;
505
509
  placed: z.ZodOptional<z.ZodBoolean>;
510
+ noticeAction: z.ZodOptional<z.ZodEnum<{
511
+ tierHold: "tierHold";
512
+ }>>;
506
513
  }, z.core.$strip>>;
507
514
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
508
515
  manageMachineSandbox: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;IAIJ,gBAAgB;;;;;;;;;;;;IAGhB,OAAO;;;;;IACP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKN,QAAQ;;;;;;;;;IAER,KAAK;;;;;;;;;;;;IAKL,SAAS;;;;;;;;;;;;;;;;;;;;;;;;IACT,YAAY;;;;;IAIZ,kBAAkB;;;;;;;;;IASlB,QAAQ;;;;;;;;;;;;;;;;;;;;;IACR,YAAY;;;;;IAQZ,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACT,kBAAkB;;;;;;;;;;;;;;;;;;;;;;IAWlB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC"}
1
+ {"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;IAYJ,gBAAgB;;;;;;;;;;;;IAWhB,OAAO;;;;;IASP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWN,QAAQ;;;;;;;;;IAWR,KAAK;;;;;;;;;;;;IAYL,SAAS;;;;;;;;;;;;;;;;;;;;;;;;IAST,YAAY;;;;;IAYZ,kBAAkB;;;;;;;;;IAelB,QAAQ;;;;;;;;;;;;;;;;;;;;;IASR,YAAY;;;;;IAiBZ,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAST,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;IAiBlB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUvB,CAAC"}
@@ -3,30 +3,123 @@ import { z } from "zod";
3
3
  import { SessionTranscriptSchema, SystemEventSchema } from "../events.js";
4
4
  import { BrowserNameParamSchema, BrowsersListSchema, DaemonSessionSchema, InfoSchema, ManifestProblemsSchema, MachineFlowLineSchema, MachineSandboxFlowInputSchema, OkSchema, PresenceReportSchema, SubagentIdParamSchema, SubagentsListSchema, TerminalNameParamSchema, TerminalScrollbackQuerySchema, TerminalScrollbackSchema, TerminalsListSchema, UsageSummarySchema, } from "../schemas.js";
5
5
  export const systemContract = {
6
- info: oc.route({ method: "GET", path: "/info" }).output(InfoSchema),
7
- manifestProblems: oc.route({ method: "GET", path: "/system/manifest-problems" }).output(ManifestProblemsSchema),
8
- session: oc.route({ method: "POST", path: "/system/session" }).output(DaemonSessionSchema),
6
+ info: oc
7
+ .route({
8
+ method: "GET",
9
+ path: "/info",
10
+ summary: "What this sandbox is",
11
+ description: "The sandbox's own identity and state: which workspace it holds, which image it runs, what it is called, and the list of calls it actually implements. Start here, because a browser is routinely newer than the sandbox it is talking to and this is how it finds out what is there.",
12
+ })
13
+ .output(InfoSchema),
14
+ manifestProblems: oc
15
+ .route({
16
+ method: "GET",
17
+ path: "/system/manifest-problems",
18
+ summary: "Settings files the sandbox could not read",
19
+ description: "Anything the daemon tripped over in its own configuration on disk: a file it had to fall back from, a key it did not recognise, an entry it skipped. Separate from the identity call because it goes stale for a different reason, namely a file changing.",
20
+ })
21
+ .output(ManifestProblemsSchema),
22
+ session: oc
23
+ .route({
24
+ method: "POST",
25
+ path: "/system/session",
26
+ summary: "Trade a sign-in for a session",
27
+ description: "Exchanges a verified sign-in, or a session that has not expired yet, for a fresh session the daemon minted. That session is the credential every other call carries, and calling this again with a live one renews it.",
28
+ })
29
+ .output(DaemonSessionSchema),
9
30
  events: oc
10
- .route({ method: "GET", path: "/events" })
31
+ .route({
32
+ method: "GET",
33
+ path: "/events",
34
+ summary: "The live event stream",
35
+ description: "A stream held open for as long as you want it, carrying heartbeats so a caller notices the sandbox dying at once, batches of file changes so a tree or an editor can refresh itself, and the roster of who else is looking. Give it an id for this connection to appear in that roster; leave it out and you watch without being seen.",
36
+ })
11
37
  .input(z.object({ clientId: z.string().optional() }))
12
38
  .output(eventIterator(SystemEventSchema)),
13
- presence: oc.route({ method: "POST", path: "/system/presence" }).input(PresenceReportSchema).output(OkSchema),
14
- usage: oc.route({ method: "GET", path: "/system/usage" }).output(UsageSummarySchema),
15
- terminals: oc.route({ method: "GET", path: "/system/terminals" }).output(TerminalsListSchema),
16
- killTerminal: oc.route({ method: "DELETE", path: "/system/terminals/{name}" }).input(TerminalNameParamSchema).output(OkSchema),
39
+ presence: oc
40
+ .route({
41
+ method: "POST",
42
+ path: "/system/presence",
43
+ summary: "Say what you are looking at",
44
+ description: "Reports which view, conversation or file this connection is on, or that it has gone idle. The daemon fans it back out on the event stream so everyone else's roster updates.",
45
+ })
46
+ .input(PresenceReportSchema)
47
+ .output(OkSchema),
48
+ usage: oc
49
+ .route({
50
+ method: "GET",
51
+ path: "/system/usage",
52
+ summary: "What has been spent",
53
+ description: "Token and cost totals per account, added up from the record of every finished turn.",
54
+ })
55
+ .output(UsageSummarySchema),
56
+ terminals: oc
57
+ .route({
58
+ method: "GET",
59
+ path: "/system/terminals",
60
+ summary: "Open terminals",
61
+ description: "The terminal sessions this sandbox is holding, which is what a terminal panel rebuilds its tabs from after a reload. The live typing and output run over a separate socket; this is the list.",
62
+ })
63
+ .output(TerminalsListSchema),
64
+ killTerminal: oc
65
+ .route({
66
+ method: "DELETE",
67
+ path: "/system/terminals/{name}",
68
+ summary: "Close a terminal",
69
+ description: "Destroys one terminal session and whatever was running inside it.",
70
+ })
71
+ .input(TerminalNameParamSchema)
72
+ .output(OkSchema),
17
73
  terminalScrollback: oc
18
- .route({ method: "GET", path: "/system/terminals/{name}/scrollback" })
74
+ .route({
75
+ method: "GET",
76
+ path: "/system/terminals/{name}/scrollback",
77
+ summary: "A terminal's history as plain text",
78
+ description: "What has scrolled past in one terminal, as text you can select and copy. The live view is a picture of a screen on the far side of a socket, with nothing in the page to select, so scrolling back and copying is this call rather than a gesture.",
79
+ })
19
80
  .input(TerminalScrollbackQuerySchema)
20
81
  .output(TerminalScrollbackSchema),
21
- browsers: oc.route({ method: "GET", path: "/system/browsers" }).output(BrowsersListSchema),
22
- closeBrowser: oc.route({ method: "DELETE", path: "/system/browsers/{name}" }).input(BrowserNameParamSchema).output(OkSchema),
23
- subagents: oc.route({ method: "GET", path: "/system/subagents" }).output(SubagentsListSchema),
82
+ browsers: oc
83
+ .route({
84
+ method: "GET",
85
+ path: "/system/browsers",
86
+ summary: "Browsers the agent has open",
87
+ description: "Every browser a conversation currently has running and the pages inside each one. The picture of what they are showing comes over a separate socket; this is the roster.",
88
+ })
89
+ .output(BrowsersListSchema),
90
+ closeBrowser: oc
91
+ .route({
92
+ method: "DELETE",
93
+ path: "/system/browsers/{name}",
94
+ summary: "Shut a browser down",
95
+ description: "Closes one of the agent's browsers. Its next attempt to use that browser then fails as though it had crashed, which is the honest account of somebody pulling the plug.",
96
+ })
97
+ .input(BrowserNameParamSchema)
98
+ .output(OkSchema),
99
+ subagents: oc
100
+ .route({
101
+ method: "GET",
102
+ path: "/system/subagents",
103
+ summary: "Helpers the agents have started",
104
+ description: "Every helper agent this sandbox's conversations have delegated work to, whichever tool started it, with what each one is doing.",
105
+ })
106
+ .output(SubagentsListSchema),
24
107
  subagentTranscript: oc
25
- .route({ method: "GET", path: "/system/subagents/{id}/transcript" })
108
+ .route({
109
+ method: "GET",
110
+ path: "/system/subagents/{id}/transcript",
111
+ summary: "A helper agent's record",
112
+ description: "The full record of one delegated helper, in the same shape as any other conversation. It comes live from the parent turn while the helper works, and from stored history once it has finished.",
113
+ })
26
114
  .input(SubagentIdParamSchema)
27
115
  .output(SessionTranscriptSchema),
28
116
  manageMachineSandbox: oc
29
- .route({ method: "POST", path: "/system/computers/{id}/sandboxes/{slug}" })
117
+ .route({
118
+ method: "POST",
119
+ path: "/system/computers/{id}/sandboxes/{slug}",
120
+ summary: "Drive a sandbox on one of your own computers",
121
+ description: "Start, stop, restart, update, rebuild, roll back or remove a sandbox running on a machine you own, relayed over the connection that machine holds open. The answer is a stream because the slowest of these takes minutes, and it is the same stream whichever you ask for. The daemon adds no opinion: the machine enforces its own permissions and a refusal arrives as the last line, in the machine's words, naming the switch to flip.",
122
+ })
30
123
  .input(MachineSandboxFlowInputSchema)
31
124
  .output(eventIterator(MachineFlowLineSchema)),
32
125
  };
@@ -1 +1 @@
1
- {"version":3,"file":"system.contract.js","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EACH,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,qBAAqB,EACrB,6BAA6B,EAC7B,QAAQ,EACR,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,6BAA6B,EAC7B,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,GACrB,MAAM,eAAe,CAAC;AAOvB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC;IAInE,gBAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC;IAG/G,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAC1F,MAAM,EAAE,EAAE;SACL,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;SACzC,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EAAE,mCAAmC;QACzC,OAAO,EAAE,yBAAyB;QAClC,WAAW,EACP,gMAAgM;KACvM,CAAC;SACD,KAAK,CAAC,qBAAqB,CAAC;SAC5B,MAAM,CAAC,uBAAuB,CAAC;IAQpC,oBAAoB,EAAE,EAAE;SACnB,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,yCAAyC;QAC/C,OAAO,EAAE,8CAA8C;QACvD,WAAW,EACP,6aAA6a;KACpb,CAAC;SACD,KAAK,CAAC,6BAA6B,CAAC;SACpC,MAAM,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"translator.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/translator.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,kBAAkB;IAC3B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACR,OAAO;;;;;;;;;;;;;;;;IAIP,QAAQ;;;;;;;;;;;;IACR,UAAU;;;;;;;;;;;CAIb,CAAC"}
1
+ {"version":3,"file":"translator.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/translator.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,kBAAkB;IAC3B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASR,OAAO;;;;;;;;;;;;;;;;IAUP,QAAQ;;;;;;;;;;;;IAUR,UAAU;;;;;;;;;;;CASb,CAAC"}