@intentic/sandbox-contract 1.408.1 → 1.410.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 (211) hide show
  1. package/dist/contracts/accounts.contract.d.ts +0 -16
  2. package/dist/contracts/accounts.contract.d.ts.map +1 -1
  3. package/dist/contracts/agent.contract.d.ts +54 -0
  4. package/dist/contracts/agent.contract.d.ts.map +1 -1
  5. package/dist/contracts/agents.contract.d.ts +12 -0
  6. package/dist/contracts/agents.contract.d.ts.map +1 -1
  7. package/dist/contracts/automations.contract.d.ts.map +1 -1
  8. package/dist/contracts/automations.contract.js +1 -0
  9. package/dist/contracts/automations.contract.js.map +1 -1
  10. package/dist/contracts/capabilities.contract.d.ts +504 -8
  11. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  12. package/dist/contracts/capabilities.contract.js +74 -1
  13. package/dist/contracts/capabilities.contract.js.map +1 -1
  14. package/dist/contracts/device.contract.d.ts +23 -0
  15. package/dist/contracts/device.contract.d.ts.map +1 -1
  16. package/dist/contracts/extensions.contract.d.ts +350 -4
  17. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  18. package/dist/contracts/hub.contract.d.ts +121 -0
  19. package/dist/contracts/hub.contract.d.ts.map +1 -0
  20. package/dist/contracts/hub.contract.js +32 -0
  21. package/dist/contracts/hub.contract.js.map +1 -0
  22. package/dist/contracts/needs.contract.d.ts +9 -0
  23. package/dist/contracts/needs.contract.d.ts.map +1 -1
  24. package/dist/contracts/runner.contract.d.ts +288 -250
  25. package/dist/contracts/runner.contract.d.ts.map +1 -1
  26. package/dist/contracts/secrets.contract.d.ts +1 -73
  27. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  28. package/dist/contracts/secrets.contract.js +4 -20
  29. package/dist/contracts/secrets.contract.js.map +1 -1
  30. package/dist/contracts/sessions.contract.d.ts +6 -0
  31. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  32. package/dist/contracts/system.contract.d.ts +27 -0
  33. package/dist/contracts/system.contract.d.ts.map +1 -1
  34. package/dist/events/agent-events.d.ts +26 -0
  35. package/dist/events/agent-events.d.ts.map +1 -1
  36. package/dist/events/agent-events.js +3 -0
  37. package/dist/events/agent-events.js.map +1 -1
  38. package/dist/events/agent-transcript.d.ts +6 -0
  39. package/dist/events/agent-transcript.d.ts.map +1 -1
  40. package/dist/events/prompt-origins.d.ts +54 -0
  41. package/dist/events/prompt-origins.d.ts.map +1 -0
  42. package/dist/events/prompt-origins.js +44 -0
  43. package/dist/events/prompt-origins.js.map +1 -0
  44. package/dist/events/transcript.d.ts +31 -45
  45. package/dist/events/transcript.d.ts.map +1 -1
  46. package/dist/events/transcript.js +3 -27
  47. package/dist/events/transcript.js.map +1 -1
  48. package/dist/index.d.ts +2 -2
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +2 -2
  51. package/dist/index.js.map +1 -1
  52. package/dist/netd/generated/wire.d.ts +4 -0
  53. package/dist/netd/generated/wire.d.ts.map +1 -1
  54. package/dist/oauth/google-workspace.d.ts +4 -0
  55. package/dist/oauth/google-workspace.d.ts.map +1 -0
  56. package/dist/oauth/google-workspace.js +6 -0
  57. package/dist/oauth/google-workspace.js.map +1 -0
  58. package/dist/policy/failure-codes.d.ts +4 -0
  59. package/dist/policy/failure-codes.d.ts.map +1 -1
  60. package/dist/policy/failure-codes.js +1 -0
  61. package/dist/policy/failure-codes.js.map +1 -1
  62. package/dist/policy/git/git-connections.d.ts +15 -0
  63. package/dist/policy/git/git-connections.d.ts.map +1 -0
  64. package/dist/policy/git/git-connections.js +34 -0
  65. package/dist/policy/git/git-connections.js.map +1 -0
  66. package/dist/policy/org-locks.d.ts +1 -1
  67. package/dist/policy/org-locks.d.ts.map +1 -1
  68. package/dist/policy/org-locks.js +1 -0
  69. package/dist/policy/org-locks.js.map +1 -1
  70. package/dist/protocol/doors/runner-wake.d.ts +46 -0
  71. package/dist/protocol/doors/runner-wake.d.ts.map +1 -0
  72. package/dist/protocol/doors/runner-wake.js +21 -0
  73. package/dist/protocol/doors/runner-wake.js.map +1 -0
  74. package/dist/protocol/raw/raw-json-routes.d.ts +135 -145
  75. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  76. package/dist/protocol/raw/raw-json-routes.js +7 -7
  77. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  78. package/dist/protocol/raw/raw-routes.d.ts +19 -4
  79. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  80. package/dist/protocol/raw/raw-routes.js +8 -4
  81. package/dist/protocol/raw/raw-routes.js.map +1 -1
  82. package/dist/schemas/capabilities.d.ts +8 -24
  83. package/dist/schemas/capabilities.d.ts.map +1 -1
  84. package/dist/schemas/capabilities.js +12 -43
  85. package/dist/schemas/capabilities.js.map +1 -1
  86. package/dist/schemas/certificate-request.d.ts +38 -0
  87. package/dist/schemas/certificate-request.d.ts.map +1 -0
  88. package/dist/schemas/certificate-request.js +18 -0
  89. package/dist/schemas/certificate-request.js.map +1 -0
  90. package/dist/schemas/connection-hub.d.ts +347 -0
  91. package/dist/schemas/connection-hub.d.ts.map +1 -0
  92. package/dist/schemas/connection-hub.js +118 -0
  93. package/dist/schemas/connection-hub.js.map +1 -0
  94. package/dist/schemas/device-move.d.ts +46 -0
  95. package/dist/schemas/device-move.d.ts.map +1 -0
  96. package/dist/schemas/device-move.js +34 -0
  97. package/dist/schemas/device-move.js.map +1 -0
  98. package/dist/schemas/device-sign-in.d.ts +25 -0
  99. package/dist/schemas/device-sign-in.d.ts.map +1 -0
  100. package/dist/schemas/device-sign-in.js +24 -0
  101. package/dist/schemas/device-sign-in.js.map +1 -0
  102. package/dist/schemas/devices.d.ts +50 -0
  103. package/dist/schemas/devices.d.ts.map +1 -1
  104. package/dist/schemas/devices.js +6 -0
  105. package/dist/schemas/devices.js.map +1 -1
  106. package/dist/schemas/diagnostics.d.ts +22 -1
  107. package/dist/schemas/diagnostics.d.ts.map +1 -1
  108. package/dist/schemas/diagnostics.js +13 -1
  109. package/dist/schemas/diagnostics.js.map +1 -1
  110. package/dist/schemas/extension-updates.d.ts +700 -8
  111. package/dist/schemas/extension-updates.d.ts.map +1 -1
  112. package/dist/schemas/git/remote-refs.d.ts +1 -0
  113. package/dist/schemas/git/remote-refs.d.ts.map +1 -1
  114. package/dist/schemas/git/remote-refs.js +5 -0
  115. package/dist/schemas/git/remote-refs.js.map +1 -1
  116. package/dist/schemas/git-installs.d.ts +20 -0
  117. package/dist/schemas/git-installs.d.ts.map +1 -0
  118. package/dist/schemas/git-installs.js +46 -0
  119. package/dist/schemas/git-installs.js.map +1 -0
  120. package/dist/schemas/hosts.d.ts +2 -0
  121. package/dist/schemas/hosts.d.ts.map +1 -1
  122. package/dist/schemas/hosts.js +2 -0
  123. package/dist/schemas/hosts.js.map +1 -1
  124. package/dist/schemas/links.d.ts +89 -21
  125. package/dist/schemas/links.d.ts.map +1 -1
  126. package/dist/schemas/links.js +73 -9
  127. package/dist/schemas/links.js.map +1 -1
  128. package/dist/schemas/mcp-sign-in.d.ts +46 -0
  129. package/dist/schemas/mcp-sign-in.d.ts.map +1 -0
  130. package/dist/schemas/mcp-sign-in.js +54 -0
  131. package/dist/schemas/mcp-sign-in.js.map +1 -0
  132. package/dist/schemas/needs.d.ts +8 -0
  133. package/dist/schemas/needs.d.ts.map +1 -1
  134. package/dist/schemas/needs.js +5 -1
  135. package/dist/schemas/needs.js.map +1 -1
  136. package/dist/schemas/providers/provider-oauth.d.ts +0 -16
  137. package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
  138. package/dist/schemas/providers/provider-oauth.js +0 -4
  139. package/dist/schemas/providers/provider-oauth.js.map +1 -1
  140. package/dist/schemas/sandbox-passwords.d.ts +0 -142
  141. package/dist/schemas/sandbox-passwords.d.ts.map +1 -1
  142. package/dist/schemas/sandbox-passwords.js +1 -33
  143. package/dist/schemas/sandbox-passwords.js.map +1 -1
  144. package/dist/schemas/system.d.ts +4 -0
  145. package/dist/schemas/system.d.ts.map +1 -1
  146. package/dist/schemas/system.js +4 -0
  147. package/dist/schemas/system.js.map +1 -1
  148. package/dist/state/auth-state.d.ts.map +1 -1
  149. package/dist/state/auth-state.js +1 -0
  150. package/dist/state/auth-state.js.map +1 -1
  151. package/dist/state/definition.d.ts +6 -8
  152. package/dist/state/definition.d.ts.map +1 -1
  153. package/dist/text/mentions.d.ts +5 -0
  154. package/dist/text/mentions.d.ts.map +1 -1
  155. package/dist/text/mentions.js +15 -3
  156. package/dist/text/mentions.js.map +1 -1
  157. package/dist/text/transcript-fold.d.ts.map +1 -1
  158. package/dist/text/transcript-fold.js +4 -8
  159. package/dist/text/transcript-fold.js.map +1 -1
  160. package/package.json +5 -5
  161. package/src/contracts/automations.contract.ts +3 -0
  162. package/src/contracts/capabilities.contract.ts +98 -0
  163. package/src/contracts/hub.contract.ts +39 -0
  164. package/src/contracts/secrets.contract.ts +5 -21
  165. package/src/events/agent-events.ts +5 -0
  166. package/src/events/prompt-origins.ts +65 -0
  167. package/src/events/transcript.ts +4 -40
  168. package/src/index.ts +3 -3
  169. package/src/netd/generated/netd-wire.json +24 -0
  170. package/src/netd/generated/wire.ts +8 -2
  171. package/src/oauth/google-workspace.ts +16 -0
  172. package/src/policy/failure-codes.ts +1 -0
  173. package/src/policy/git/git-connections.test.ts +46 -0
  174. package/src/policy/git/git-connections.ts +68 -0
  175. package/src/policy/org-locks.ts +1 -0
  176. package/src/policy/tests/failure-codes.test.ts +3 -1
  177. package/src/protocol/doors/runner-wake.ts +36 -0
  178. package/src/protocol/raw/raw-json-routes.ts +13 -10
  179. package/src/protocol/raw/raw-routes.ts +15 -7
  180. package/src/schemas/capabilities.ts +16 -64
  181. package/src/schemas/certificate-request.ts +28 -0
  182. package/src/schemas/connection-hub.test.ts +28 -0
  183. package/src/schemas/connection-hub.ts +191 -0
  184. package/src/schemas/device-move.ts +54 -0
  185. package/src/schemas/device-sign-in.ts +37 -0
  186. package/src/schemas/devices.ts +11 -0
  187. package/src/schemas/diagnostics.ts +19 -2
  188. package/src/schemas/git/remote-refs.ts +7 -0
  189. package/src/schemas/git-installs.ts +72 -0
  190. package/src/schemas/hosts.ts +4 -0
  191. package/src/schemas/links.ts +108 -14
  192. package/src/schemas/mcp-sign-in.ts +72 -0
  193. package/src/schemas/needs.ts +8 -1
  194. package/src/schemas/providers/provider-oauth.ts +0 -6
  195. package/src/schemas/sandbox-passwords.ts +5 -46
  196. package/src/schemas/system.ts +6 -0
  197. package/src/state/auth-state.ts +3 -0
  198. package/src/text/mentions.test.ts +16 -1
  199. package/src/text/mentions.ts +18 -4
  200. package/src/text/transcript-fold.test.ts +8 -0
  201. package/src/text/transcript-fold.ts +4 -8
  202. package/dist/contracts/sharing.contract.d.ts +0 -58
  203. package/dist/contracts/sharing.contract.d.ts.map +0 -1
  204. package/dist/contracts/sharing.contract.js +0 -41
  205. package/dist/contracts/sharing.contract.js.map +0 -1
  206. package/dist/schemas/providers/account-sharing.d.ts +0 -277
  207. package/dist/schemas/providers/account-sharing.d.ts.map +0 -1
  208. package/dist/schemas/providers/account-sharing.js +0 -68
  209. package/dist/schemas/providers/account-sharing.js.map +0 -1
  210. package/src/contracts/sharing.contract.ts +0 -54
  211. package/src/schemas/providers/account-sharing.ts +0 -123
@@ -0,0 +1,72 @@
1
+ // The two capability kinds installed from a git repository, a Claude Code plugin and an intentic extension: their
2
+ // config arms of CapabilitySchema (capabilities.ts), with the repository, the version and the credential each reads it
3
+ // with.
4
+ import { z } from "zod";
5
+ import { entryId } from "./internal.js";
6
+
7
+ // (2026-11-11) A plugin's or extension's GitHub or GitLab card, named so a second card for the same host never changes
8
+ // which account an install reads with; absent, policy/git/git-connections.ts picks one.
9
+ const gitConnection = entryId
10
+ .optional()
11
+ .describe(
12
+ "The GitHub or GitLab connection, by its id, whose token reads a private repository on its host. Used when no token is given; left out, the first such connection by id is used, and none means the repository is read without a credential.",
13
+ );
14
+ // A Claude Code plugin from a git repo; the daemon only owns the checkout, the Agent SDK's plugin loader reads its
15
+ // internals. `path` is a subdirectory for a plugin inside a larger checkout; `token` is https auth for a private repo.
16
+ export const PluginConfigSchema = z.object({
17
+ url: z.url().describe("The repository to take the plugin from."),
18
+ // Branch / tag / commit sha to install from; absent = the default branch's HEAD. Either way `commit` pins it.
19
+ ref: z
20
+ .string()
21
+ .min(1)
22
+ .optional()
23
+ .describe(
24
+ "A branch, tag or commit to install from. Leave it out for the default branch. The install pins the commit it names at that moment.",
25
+ ),
26
+ path: z
27
+ .string()
28
+ .min(1)
29
+ .refine((value) => !value.split("/").includes(".."), { message: "path must stay inside the checkout" })
30
+ .optional()
31
+ .describe("Where inside the repository the plugin lives, for one that sits in a larger checkout."),
32
+ token: z.string().min(1).optional().describe("A credential for a private repository. Stored, never echoed back."),
33
+ gitConnection,
34
+ // Set by the sandbox at install, never by the form: re-applying a stored entry (a rotated token, a migration)
35
+ // checks this out again, and only adding the plugin anew moves it.
36
+ commit: z
37
+ .string()
38
+ .regex(/^[0-9a-f]{40}$/, "commit must be a full 40-character commit sha")
39
+ .optional()
40
+ .describe(
41
+ "The exact commit installed, in full, resolved from the branch, tag or commit when the plugin was added. Its hooks run inside the agent's session, so it stays at this commit until it is added again.",
42
+ ),
43
+ });
44
+ export type PluginConfig = z.infer<typeof PluginConfigSchema>;
45
+ // An intentic extension from a git repo (UI bundle + agent contributions + processes). Unlike `plugin`, `ref` must be a
46
+ // full commit sha, since extension code runs trusted in the owner's browser and every update is a deliberate re-add at
47
+ // a new sha.
48
+ export const ExtensionConfigSchema = z.object({
49
+ url: z.url().describe("The repository to take the extension from."),
50
+ ref: z
51
+ .string()
52
+ .regex(/^[0-9a-f]{40}$/, "ref must be a full 40-character commit sha")
53
+ .describe(
54
+ "The exact commit to install, in full. Required rather than optional because extension code runs with your browser's trust: the owner approves precisely the code that runs, and an update is a deliberate re-install at a new commit.",
55
+ ),
56
+ path: z
57
+ .string()
58
+ .min(1)
59
+ .refine((value) => !value.split("/").includes(".."), { message: "path must stay inside the checkout" })
60
+ .optional()
61
+ .describe("Where inside the repository the extension lives, for one that sits in a larger checkout."),
62
+ token: z.string().min(1).optional().describe("A credential for a private repository. Stored, never echoed back."),
63
+ gitConnection,
64
+ // What update checks and advisories are read against; absent falls back to the official registry.
65
+ registry: z
66
+ .url()
67
+ .optional()
68
+ .describe(
69
+ "Which registry this install came from, which is what update checks and security advisories are read against. Absent falls back to the official one.",
70
+ ),
71
+ });
72
+ export type ExtensionConfig = z.infer<typeof ExtensionConfigSchema>;
@@ -189,6 +189,9 @@ export const DeviceFeatureSchema = z.enum([
189
189
  // (2026-11-10) `dialLoopback` with a `host`: the agent dials a host on its own network, not only its loopback
190
190
  // (`devices reach <device> <host>:<port>`, a network disk reached through a computer).
191
191
  "reach-network",
192
+ // (2026-11-11) The `move-prepare`, `move-out` and `move-in` ops: an agent that has them driving an ic that says
193
+ // `sandbox-move` (`ic sandbox move-out` / `move-in`), so a sandbox can be carried to another of the owner's computers.
194
+ "sandbox-move",
192
195
  ]);
193
196
  export type DeviceFeature = z.infer<typeof DeviceFeatureSchema>;
194
197
  export const DEVICE_FEATURE_RESHAPE_LATER: DeviceFeature = "reshape-later";
@@ -203,6 +206,7 @@ export const DEVICE_FEATURE_SLEEP: DeviceFeature = "sleep";
203
206
  export const DEVICE_FEATURE_EGRESS: DeviceFeature = "egress";
204
207
  export const DEVICE_FEATURE_REACHABLE_WAYS_BACK: DeviceFeature = "reachable-ways-back";
205
208
  export const DEVICE_FEATURE_REACH_NETWORK: DeviceFeature = "reach-network";
209
+ export const DEVICE_FEATURE_SANDBOX_MOVE: DeviceFeature = "sandbox-move";
206
210
  // What `ic features --json` answers (_sandbox/ic/src/features.rs, golden/ic-features.json): the optional ops that ic
207
211
  // implements, as strings, since a newer ic's word means nothing to an older agent.
208
212
  export const IcFeaturesAnswerSchema = z.object({ features: z.array(z.string()) });
@@ -1,13 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { AskQuestionSchema } from "../events/requests.js";
3
3
  import { entryId } from "./internal.js";
4
- import { SharedAccountRefSchema } from "./providers/account-sharing.js";
5
4
 
6
5
  // LINKED SANDBOXES: one of the owner's sandboxes handing tasks to another. The sandbox that hands work over holds a
7
6
  // `link` capability card (schemas/capabilities.ts LinkConfigSchema); the one that takes it holds an inbound link, minted
8
7
  // by its owner, whose token is that card's credential. Everything the taking side does with a task is decided there, by
9
8
  // the terms on its own link: which persona the work wears, whether each task waits for its owner, how many turns an hour.
10
- // The handing side only asks, reads and stops.
9
+ // The handing side only asks, reads and stops, and operates this sandbox only while its terms say it may (`operate`).
11
10
 
12
11
  // What a link token looks like: issuer-prefixed like a control token (`ict_`), and never the same credential.
13
12
  export const LINK_TOKEN_PREFIX = "ilk_";
@@ -35,17 +34,16 @@ const turnsPerHourTerm = z
35
34
  .describe("How many turns the link may start in an hour, new tasks and follow-ups alike. Words said into a turn already running are not counted.");
36
35
  const tasksTerm = z
37
36
  .boolean()
38
- .describe("Whether the link may hand this sandbox tasks at all. An accounts link is minted without: it only borrows and copies the accounts below.");
37
+ .describe("Whether the link may hand this sandbox tasks at all. Without, it only reads records or operates, as those terms allow.");
39
38
  const recordsTerm = z
40
39
  .boolean()
41
40
  .describe(
42
41
  "Whether the asking sandbox may read this sandbox's records without starting a turn: its conversations (every one but a private one) and their transcripts, its daemon's log and diagnostics. Read-only, and each read is logged here. For looking into a problem from the other sandbox; off unless its owner turns it on.",
43
42
  );
44
- const accountsTerm = z
45
- .array(SharedAccountRefSchema)
46
- .max(64)
43
+ const operateTerm = z
44
+ .boolean()
47
45
  .describe(
48
- "The model accounts the asking sandbox may use (schemas/providers/account-sharing.ts): a static key it may copy, a sign-in it borrows turn by turn. Empty lends nothing.",
46
+ "Whether the asking sandbox may operate this one as its owner does from their own terminal: run commands, and read and write files, in this sandbox's main checkout. They run as root, or, while conversations here can be private, inside the same jail every person's shell gets (the history volume out of reach). Anything the owner's terminal can do, including reading this sandbox's secrets. Every call is logged here. Off unless its owner turns it on.",
49
47
  );
50
48
 
51
49
  export const LinkTermsSchema = z.object({
@@ -64,7 +62,7 @@ export const LinkTermsSchema = z.object({
64
62
  turnsPerHour: turnsPerHourTerm.default(LINK_TURNS_PER_HOUR_DEFAULT),
65
63
  tasks: tasksTerm.default(true),
66
64
  records: recordsTerm.default(false),
67
- accounts: accountsTerm.default([]),
65
+ operate: operateTerm.default(false),
68
66
  });
69
67
  export type LinkTerms = z.infer<typeof LinkTermsSchema>;
70
68
 
@@ -113,9 +111,8 @@ export const InboundLinkMintedSchema = z.object({ id: z.string(), token: z.strin
113
111
  export type InboundLinkMinted = z.infer<typeof InboundLinkMintedSchema>;
114
112
  // POST /system/links/{id}: new terms, whole fields replaced, the rest kept. `null` on the persona or the service takes it
115
113
  // off (2026-10-26): absence keeps a field, so before this neither could be cleared once set. Spelled field by field rather
116
- // than as LinkTermsSchema.partial(): zod still fills a partial's inner defaults, so a change naming only `accounts`
117
- // read as `approve: false, turnsPerHour: 20, tasks: true` and quietly turned an accounts link into one taking tasks
118
- // (2026-10-29).
114
+ // than as LinkTermsSchema.partial(): zod still fills a partial's inner defaults, so a change naming one field would read
115
+ // as `approve: false, turnsPerHour: 20, tasks: true` and quietly reset the rest (2026-10-29).
119
116
  export const InboundLinkTermsUpdateSchema = z.object({
120
117
  label: z.string().trim().min(1).max(60).optional(),
121
118
  actsAs: entryId.nullable().optional().describe("The persona every task wears; null takes it off."),
@@ -124,7 +121,7 @@ export const InboundLinkTermsUpdateSchema = z.object({
124
121
  turnsPerHour: turnsPerHourTerm.optional(),
125
122
  tasks: tasksTerm.optional(),
126
123
  records: recordsTerm.optional(),
127
- accounts: accountsTerm.optional(),
124
+ operate: operateTerm.optional(),
128
125
  });
129
126
  export type InboundLinkTermsUpdate = z.infer<typeof InboundLinkTermsUpdateSchema>;
130
127
  // POST /system/links/{id}/requests/{request}: the owner's answer to one waiting task.
@@ -141,11 +138,12 @@ export const LinkHelloSchema = z.object({
141
138
  approve: z.boolean(),
142
139
  turnsPerHour: z.number().int(),
143
140
  persona: z.string().optional().describe("The name of the persona its tasks wear, when they wear one."),
144
- // Absent from a sandbox older than accounts links, which takes tasks and lends nothing.
141
+ // Absent from a sandbox older than 2026-10-29, which takes tasks.
145
142
  tasks: z.boolean().optional(),
146
- accounts: z.number().int().nonnegative().optional().describe("How many accounts the link may use."),
147
143
  // Absent from a sandbox older than records over links, which shares none.
148
144
  records: z.boolean().optional().describe("Whether the link may read this sandbox's records (its conversations, logs and diagnostics)."),
145
+ // Absent from a sandbox older than operating over links, which allows none.
146
+ operate: z.boolean().optional().describe("Whether the link may run commands and read and write files here, as this sandbox's owner would in their own terminal."),
149
147
  }),
150
148
  maxHops: z.number().int(),
151
149
  });
@@ -223,3 +221,99 @@ export const LinkAnswerSchema = z.object({
223
221
  answers: z.record(z.string(), z.array(z.string())),
224
222
  });
225
223
  export type LinkAnswer = z.infer<typeof LinkAnswerSchema>;
224
+
225
+ /* OPERATING OVER A LINK (schemas `operate`): the asking sandbox acting here as this sandbox's owner does in their own
226
+ terminal, while the link's terms allow it. Every door runs in the main checkout, as root or inside the jail a person's
227
+ shell gets while conversations here can be private, and answers `jailed` so the asking agent knows which. */
228
+
229
+ // The longest a command may run, and what it is given when the asking side names nothing.
230
+ export const LINK_EXEC_TIMEOUT_S_MAX = 600;
231
+ export const LINK_EXEC_TIMEOUT_S_DEFAULT = 120;
232
+ // How long one call may be held for a command to end: under every edge's own patience, so a long command is followed by
233
+ // reading it again (GET /link/operate/exec/{id}) rather than by one request held for minutes.
234
+ export const LINK_OPERATE_WAIT_S_MAX = 25;
235
+ // The most a written file may hold, and the most a command's input may carry.
236
+ export const LINK_WRITE_MAX_BYTES = 2_000_000;
237
+
238
+ const OperateFromSchema = z
239
+ .object({
240
+ conversation: z.string().max(100).optional(),
241
+ title: z.string().max(200).optional(),
242
+ })
243
+ .optional()
244
+ .describe("The asking conversation, for this sandbox's log of what the link did.");
245
+
246
+ const operatePath = z.string().min(1).max(4_096).describe("Absolute, or relative to the workspace root.");
247
+
248
+ // POST /link/operate/exec: one command line, run by bash as a login shell.
249
+ export const LinkExecSchema = z.object({
250
+ command: z.string().min(1).max(60_000),
251
+ cwd: operatePath.optional().describe("Where it runs: absolute, or relative to the workspace root, which is the default."),
252
+ timeoutS: z.number().int().min(1).max(LINK_EXEC_TIMEOUT_S_MAX).default(LINK_EXEC_TIMEOUT_S_DEFAULT),
253
+ waitS: z
254
+ .number()
255
+ .int()
256
+ .min(0)
257
+ .max(LINK_OPERATE_WAIT_S_MAX)
258
+ .default(LINK_OPERATE_WAIT_S_MAX)
259
+ .describe("How long this call may be held for the command to end; past it the answer says `running`."),
260
+ from: OperateFromSchema,
261
+ });
262
+ export type LinkExec = z.infer<typeof LinkExecSchema>;
263
+
264
+ // running: still going. exited: ended on its own (exitCode, or signal when something killed it). timeout: ended at its
265
+ // deadline. stopped: the asking side stopped it. failed: it could not start, or this sandbox could not place it.
266
+ export const LinkExecStateSchema = z.enum(["running", "exited", "timeout", "stopped", "failed"]);
267
+ export type LinkExecState = z.infer<typeof LinkExecStateSchema>;
268
+
269
+ export const LinkExecStatusSchema = z.object({
270
+ id: z.string().describe("The command's id here, to read it again or stop it."),
271
+ state: LinkExecStateSchema,
272
+ exitCode: z.number().int().optional(),
273
+ signal: z.string().optional(),
274
+ stdout: z.string().describe("Its standard output so far, the end kept when it ran long."),
275
+ stderr: z.string(),
276
+ truncated: z.boolean().describe("Whether either stream ran past what is kept, its beginning dropped."),
277
+ error: z.string().optional().describe("Why it could not start, when it could not."),
278
+ cwd: z.string(),
279
+ jailed: z.boolean().describe("Whether it ran inside the jail a person's shell gets here (no history volume), rather than as root."),
280
+ startedAt: z.number(),
281
+ endedAt: z.number().optional(),
282
+ });
283
+ export type LinkExecStatus = z.infer<typeof LinkExecStatusSchema>;
284
+
285
+ // POST /link/operate/read: a file's lines, or a directory's listing.
286
+ export const LinkReadSchema = z.object({
287
+ path: operatePath,
288
+ offset: z.number().int().min(1).optional().describe("The line to start from, counting from 1."),
289
+ limit: z.number().int().min(1).max(20_000).optional().describe("How many lines (default 2000)."),
290
+ from: OperateFromSchema,
291
+ });
292
+ export type LinkRead = z.infer<typeof LinkReadSchema>;
293
+
294
+ export const LinkReadAnswerSchema = z.object({
295
+ path: z.string(),
296
+ kind: z.enum(["file", "directory"]),
297
+ content: z.string().describe("The lines asked for, or the directory's `ls -la`."),
298
+ bytes: z.number().int().nonnegative().optional().describe("The file's whole size."),
299
+ lines: z.number().int().nonnegative().optional().describe("How many lines the whole file has."),
300
+ binary: z.boolean().optional().describe("The file is not text; `content` is empty."),
301
+ truncated: z.boolean().describe("Whether the file goes on past the lines answered (read on with `offset`), or the answer was cut at its size."),
302
+ jailed: z.boolean(),
303
+ });
304
+ export type LinkReadAnswer = z.infer<typeof LinkReadAnswerSchema>;
305
+
306
+ // POST /link/operate/write: a file's whole new contents, its folders made as needed.
307
+ export const LinkWriteSchema = z.object({
308
+ path: operatePath,
309
+ content: z.string().max(LINK_WRITE_MAX_BYTES),
310
+ from: OperateFromSchema,
311
+ });
312
+ export type LinkWrite = z.infer<typeof LinkWriteSchema>;
313
+
314
+ export const LinkWriteAnswerSchema = z.object({
315
+ path: z.string(),
316
+ bytes: z.number().int().nonnegative(),
317
+ jailed: z.boolean(),
318
+ });
319
+ export type LinkWriteAnswer = z.infer<typeof LinkWriteAnswerSchema>;
@@ -0,0 +1,72 @@
1
+ import { z } from "zod";
2
+
3
+ // Signing in to a remote MCP server that authenticates with OAuth (the MCP authorization spec: protected-resource
4
+ // metadata, authorization-server discovery, client registration, then an authorization code with PKCE). The sandbox
5
+ // runs every leg but the person's approval: the browser opens the authorization server's page and lands back on the
6
+ // sandbox's own callback, and the tokens never reach the browser. What the form gets back is a stash marker
7
+ // (`stashedMarker`, schemas/capabilities.ts) for the connection's `token`, the same way a generated SSH key arrives.
8
+
9
+ // POST /capabilities/mcp-auth: what an MCP URL asks of a client, read before anything is saved.
10
+ export const McpAuthCheckInputSchema = z.object({
11
+ url: z.url().describe("The MCP server's address, as the form holds it."),
12
+ });
13
+ export const McpAuthCheckSchema = z.object({
14
+ auth: z
15
+ .enum(["open", "token", "oauth", "unreachable"])
16
+ .describe(
17
+ "`open`: it answered without a credential. `token`: it refused one and names no sign-in, so it takes a token pasted from its own settings. `oauth`: it names an authorization server to sign in with. `unreachable`: it did not answer as an MCP server.",
18
+ ),
19
+ server: z.string().optional().describe("What to call the place you sign in at: the server's own name for itself, or the authorization server's host."),
20
+ registers: z
21
+ .boolean()
22
+ .optional()
23
+ .describe("Whether the authorization server registers this sandbox as a client by itself. False: a client ID made in its own settings is needed."),
24
+ redirectUri: z
25
+ .string()
26
+ .optional()
27
+ .describe("Where the authorization server sends the browser back: the redirect address a client made by hand must allow."),
28
+ detail: z.string().optional().describe("What went wrong, for `unreachable`, in words a person can act on."),
29
+ });
30
+ export type McpAuthCheck = z.infer<typeof McpAuthCheckSchema>;
31
+
32
+ // POST /capabilities/mcp-sign-in: starts a sign-in; the browser opens `authorizeUrl` and waits on `flow`.
33
+ export const McpSignInInputSchema = z.object({
34
+ url: z.url().describe("The MCP server's address."),
35
+ clientId: z
36
+ .string()
37
+ .trim()
38
+ .min(1)
39
+ .max(512)
40
+ .optional()
41
+ .describe("A client ID made in the authorization server's own settings, for a server that registers no client by itself."),
42
+ keeping: z
43
+ .string()
44
+ .optional()
45
+ .describe("The connection being edited, whose registered client is reused when it signed in at the same authorization server."),
46
+ });
47
+ export const McpSignInStartSchema = z.object({
48
+ flow: z.string().describe("Stands for this sign-in, to wait on. Lapses after ten minutes."),
49
+ authorizeUrl: z.url().describe("The authorization server's page, for the person to approve in their browser."),
50
+ redirectUri: z.string().describe("Where the authorization server sends the browser back: this sandbox's own callback."),
51
+ server: z.string().describe("What to call the authorization server."),
52
+ });
53
+ export type McpSignInStart = z.infer<typeof McpSignInStartSchema>;
54
+
55
+ // POST /capabilities/mcp-sign-in/wait: answers as soon as the sign-in ends, or `waiting` after a while.
56
+ export const McpSignInWaitInputSchema = z.object({ flow: z.string().min(1).describe("The sign-in, as its start answered.") });
57
+ export const McpSignInWaitSchema = z.discriminatedUnion("state", [
58
+ z.object({ state: z.literal("waiting").describe("Nobody has come back from the authorization server yet. Ask again.") }),
59
+ z.object({
60
+ state: z.literal("done"),
61
+ token: z
62
+ .string()
63
+ .describe(
64
+ "Stands for the signed-in session, which never leaves the sandbox. Sent wrapped as a stash marker in the connection's `token`, it installs that session once, and it lapses after thirty minutes.",
65
+ ),
66
+ server: z.string().describe("Where the sign-in happened."),
67
+ account: z.string().optional().describe("Who signed in, when the authorization server said."),
68
+ scope: z.string().optional().describe("The access granted, as the authorization server's own scope words."),
69
+ }),
70
+ z.object({ state: z.literal("failed"), message: z.string().describe("Why it did not finish, in words a person can act on.") }),
71
+ ]);
72
+ export type McpSignInWait = z.infer<typeof McpSignInWaitSchema>;
@@ -65,7 +65,10 @@ export const SECRET_NAME = /^[A-Za-z_][A-Za-z0-9_]{0,127}$/;
65
65
  // `lastIndex` between callers: a site that replaces or spans every one derives its own /g copy from it. The terminal
66
66
  // filter (@intentic/output-cleaners, builtins only) keeps a copy, pinned to this one by the daemon's
67
67
  // src/secrets/terminal-masking-parity.test.ts.
68
- export const SECRET_REFERENCE = /\{\{secret:([A-Za-z0-9_./-]+)\}\}/;
68
+ // `{{secret:NAME|file}}` (the second capture) resolves to the path of a private file holding the value instead of the
69
+ // value itself: the way a multi-line value, or one with quotes, reaches a command without being spliced into its source.
70
+ // Group 1 is the name in both forms, so every reader that only needs the name reads both alike.
71
+ export const SECRET_REFERENCE = /\{\{secret:([A-Za-z0-9_./-]+)(?:\|(file))?\}\}/;
69
72
 
70
73
  export const SecretNeedSchema = z.object({
71
74
  kind: z.literal("secret"),
@@ -79,6 +82,10 @@ export const SecretNeedSchema = z.object({
79
82
  .describe("Where a person gets one, shown as a link on the card."),
80
83
  hint: z.string().max(120).optional().describe("What a valid one looks like, so a wrong paste is caught by eye."),
81
84
  replace: z.boolean().optional().describe("One is stored under this name and is being refused: the ask is for a new value in its place."),
85
+ multiline: z
86
+ .boolean()
87
+ .optional()
88
+ .describe("A value with lines (a key file, a whole .env): the card takes it in a box with lines and keeps it exactly as pasted."),
82
89
  });
83
90
  export type SecretNeed = z.infer<typeof SecretNeedSchema>;
84
91
 
@@ -44,12 +44,6 @@ export const OauthAccountSchema = z.object({
44
44
  usage: AccountUsageSchema.optional().describe(
45
45
  "How full its plan limits were when last measured, so a picker can show what is left before committing work to it. Absent until a reading exists, which reads as unknown rather than as nothing left.",
46
46
  ),
47
- borrowedFrom: z
48
- .object({ name: z.string(), sandboxId: z.string().optional() })
49
- .optional()
50
- .describe(
51
- "Another of the owner's sandboxes holds this sign-in and lends it here turn by turn (schemas/providers/account-sharing.ts). Absent means it is this sandbox's own.",
52
- ),
53
47
  });
54
48
  export type OauthAccount = z.infer<typeof OauthAccountSchema>;
55
49
  export const OauthAccountListSchema = z.object({
@@ -1,9 +1,10 @@
1
1
  import { z } from "zod";
2
- import { KeyringOriginSchema, KeyringRememberSchema, KeyringShareModeSchema } from "./keyring.js";
2
+ import { KeyringOriginSchema } from "./keyring.js";
3
3
 
4
4
  // THE SANDBOX'S SIDE OF PASSWORDS (2026-10-19): an agent asking for a credential by where it is to be used (`secrets
5
- // want`, `type_secret` aimed at a page or a window), and the hosted Passwords view's three reads. The vault and its
6
- // management stay on the owner's computers; what a sandbox learns of an entry is the pointer its keyring shared here.
5
+ // want`, `type_secret` aimed at a page or a window), and the wants still waiting, which the Secrets view lists. Passwords
6
+ // itself, the vault and its management, is on the owner's computers alone (2026-11-11): a sandbox deals in secrets, and
7
+ // what it learns of an entry is the pointer its keyring shared here, which the secret inventory lists like any other.
7
8
 
8
9
  /** `secrets want`: a credential by the place it is for, asked of the owner's keyrings. */
9
10
  export const SecretWantSchema = z
@@ -30,7 +31,7 @@ export const SecretWantResultSchema = z.discriminatedUnion("state", [
30
31
  ]);
31
32
  export type SecretWantResult = z.infer<typeof SecretWantResultSchema>;
32
33
 
33
- /** One need this sandbox raised, as its record and the hosted view's Requests keep it. */
34
+ /** One need this sandbox raised, as its record keeps it and the Secrets view lists it while it waits. */
34
35
  export const SandboxNeedSchema = z.object({
35
36
  id: z.string(),
36
37
  origin: KeyringOriginSchema,
@@ -44,45 +45,3 @@ export const SandboxNeedSchema = z.object({
44
45
  });
45
46
  export type SandboxNeed = z.infer<typeof SandboxNeedSchema>;
46
47
  export const SandboxNeedsSchema = z.object({ needs: z.array(SandboxNeedSchema) });
47
-
48
- /** One of the owner's computers as the hosted Passwords view shows its keyring. */
49
- export const SandboxPasswordsKeyringSchema = z.object({
50
- machine: z.string(),
51
- online: z.boolean(),
52
- setUp: z.boolean().describe("Answering, set up, and trusted by this sandbox: it can be asked."),
53
- locked: z.boolean().optional(),
54
- remember: KeyringRememberSchema.optional(),
55
- });
56
- export type SandboxPasswordsKeyring = z.infer<typeof SandboxPasswordsKeyringSchema>;
57
-
58
- /** One password this sandbox may use: a pointer one of the owner's keyrings shares here. Never a value. */
59
- export const SandboxPasswordSchema = z.object({
60
- name: z.string(),
61
- title: z.string(),
62
- kind: z.enum(["password", "text"]),
63
- origins: z.array(KeyringOriginSchema).describe("Where it works, from the entry's rules."),
64
- anyField: z.boolean(),
65
- machine: z.string().describe("The computer whose keyring keeps it."),
66
- mode: KeyringShareModeSchema.describe("How this sandbox may use it."),
67
- online: z.boolean(),
68
- updatedAt: z.number(),
69
- lastUsedAt: z.number().optional().describe("This sandbox's last use of it, from its own use ledger."),
70
- });
71
- export type SandboxPassword = z.infer<typeof SandboxPasswordSchema>;
72
-
73
- export const SandboxPasswordsSchema = z.object({
74
- sandbox: z.string().describe("This sandbox's own address, as the keyrings name it."),
75
- items: z.array(SandboxPasswordSchema),
76
- keyrings: z.array(SandboxPasswordsKeyringSchema),
77
- });
78
- export type SandboxPasswords = z.infer<typeof SandboxPasswordsSchema>;
79
-
80
- /** One use of a keyring-held password by this sandbox, from its use ledger. */
81
- export const SandboxPasswordUseSchema = z.object({
82
- at: z.number(),
83
- name: z.string(),
84
- lane: z.string(),
85
- detail: z.string().optional(),
86
- approvedBy: z.string().optional(),
87
- });
88
- export const SandboxPasswordsActivitySchema = z.object({ lines: z.array(SandboxPasswordUseSchema) });
@@ -141,6 +141,12 @@ export const InfoSchema = z.object({
141
141
  "Whether and when this sandbox takes a downloaded update by itself, and what it is waiting on. Absent where it cannot: a hosted sandbox, one built from a checkout, or one older than automatic updates.",
142
142
  ),
143
143
  // What answers now, for a page telling a swap it pressed from one still running; absent from a daemon older than it.
144
+ standby: z
145
+ .object({ host: z.string(), since: z.string() })
146
+ .optional()
147
+ .describe(
148
+ "Set while this copy is on standby (2026-11-11): the machine the platform holds to run the sandbox (`host`, its label and side) and since when this copy stood down (ISO). No turn starts here meanwhile. Absent on the active copy and from an older daemon.",
149
+ ),
144
150
  running: RunningSandboxSchema.optional().describe(
145
151
  "Which build answers and when its daemon started, so a page that asked for a rebuild, an update or a rollback can tell when the new container is the one answering. Absent from a sandbox older than this field.",
146
152
  ),
@@ -72,6 +72,9 @@ export const AUTH_STATE_FILES: readonly StateFile[] = [
72
72
  { path: "keyring-copies.json", portability: "identity" },
73
73
  { path: "keyring-sync-mailbox.json", portability: "identity" },
74
74
  { path: "keyring-needs.json", portability: "identity" },
75
+ // What this sandbox saved to the connections hub and what it made from hub entries shared here (hub/): entry names
76
+ // and the cards they became, no credential.
77
+ { path: "connection-hub.json", portability: "identity" },
75
78
  // The credential broker's signing key and the privacy gateway's token key, each minted on first use.
76
79
  { path: "broker-session.key", portability: "identity" },
77
80
  { path: "privacy-gateway.key", portability: "identity" },
@@ -1,5 +1,5 @@
1
1
  import { AgentTurnSchema } from "../schemas/agent.js";
2
- import { MENTION_LIMIT, mentionedPathTokens, mentionPaths } from "./mentions.js";
2
+ import { MENTION_LIMIT, mentionedPathTokens, mentionPaths, mentionRanges } from "./mentions.js";
3
3
 
4
4
  describe(`mentionPaths`, () => {
5
5
  it(`extracts path-looking tokens, deduped, with trailing punctuation stripped`, () => {
@@ -37,3 +37,18 @@ describe(`mentionedPathTokens`, () => {
37
37
  expect(mentionedPathTokens(`@intentic/iq-engine:test: failed\nsee @src/app.ts`)).toEqual([`intentic/iq-engine:test`, `src/app.ts`]);
38
38
  });
39
39
  });
40
+
41
+ describe(`mentionRanges`, () => {
42
+ it(`marks each sent mention where it stands, the @ included and trailing punctuation left out`, () => {
43
+ const text = `In @integra/bench/OPTIMIZATIONS.md, see @src/app.ts.`;
44
+ expect(mentionRanges(text).map(({ start, end, path }) => [text.slice(start, end), path])).toEqual([
45
+ [`@integra/bench/OPTIMIZATIONS.md`, `integra/bench/OPTIMIZATIONS.md`],
46
+ [`@src/app.ts`, `src/app.ts`],
47
+ ]);
48
+ });
49
+
50
+ it(`marks every occurrence of a repeated mention and nothing that is not sent`, () => {
51
+ const text = `@a.ts then @a.ts, thanks @radarsu, curl --data @/tmp/x.json`;
52
+ expect(mentionRanges(text).map(({ start }) => start)).toEqual([0, 11]);
53
+ });
54
+ });
@@ -33,7 +33,21 @@ const PACKAGE_SCRIPT = /^[^/]+\/[^/]+:[^/]+$/u;
33
33
  const OUTSIDE_WORKSPACE = /^(?:[/~]|[A-Za-z]:[\\/]|\.\.(?:[/\\]|$))/u;
34
34
  // How many a turn may carry; the tokenizer stops here rather than letting a pasted log's 21st token refuse the turn.
35
35
  export const MENTION_LIMIT = 20;
36
- export const mentionPaths = (text: string): string[] =>
37
- mentionedPathTokens(text)
38
- .filter((token) => !PACKAGE_SCRIPT.test(token) && !OUTSIDE_WORKSPACE.test(token))
39
- .slice(0, MENTION_LIMIT);
36
+ const isMention = (token: string): boolean => !PACKAGE_SCRIPT.test(token) && !OUTSIDE_WORKSPACE.test(token);
37
+ export const mentionPaths = (text: string): string[] => mentionedPathTokens(text).filter(isMention).slice(0, MENTION_LIMIT);
38
+
39
+ // Where each mention mentionPaths would send sits in the text, `@` included, so a composer can mark the very words that
40
+ // ride as files and no others. Past the limit nothing is marked, since nothing past it is sent.
41
+ export const mentionRanges = (text: string): { readonly start: number; readonly end: number; readonly path: string }[] => {
42
+ const sent = new Set(mentionPaths(text));
43
+ const ranges: { start: number; end: number; path: string }[] = [];
44
+ for (const match of text.matchAll(/(^|\s)@([^\s@]+)/g)) {
45
+ const [, lead = ``, token = ``] = match;
46
+ const path = withoutTrailingPunctuation(token);
47
+ if (sent.has(path)) {
48
+ const start = match.index + lead.length;
49
+ ranges.push({ start, end: start + 1 + path.length, path });
50
+ }
51
+ }
52
+ return ranges;
53
+ };
@@ -63,6 +63,14 @@ describe("foldTurn", () => {
63
63
  ]);
64
64
  });
65
65
 
66
+ // The composer's "Viewing" chip rides a steer as a pointer, so the row can say what "this" meant.
67
+ it("keeps the file a person was looking at on their steer's row", () => {
68
+ const events: AgentEvent[] = [{ kind: "steer", text: "fix this", sentAt: SENT_AT + 1, editorContext: { file: "src/app.ts", startLine: 3, endLine: 9 } }];
69
+ expect(foldOf("ship it", events).slice(1)).toEqual([
70
+ { role: "user", text: "fix this", sentAt: SENT_AT + 1, editorContext: { file: "src/app.ts", startLine: 3, endLine: 9 } },
71
+ ]);
72
+ });
73
+
66
74
  it("does not retire a bubble that has written no prose", () => {
67
75
  const events: AgentEvent[] = [
68
76
  { kind: "tool_call", id: "t1", name: "Read", category: "read", status: "completed" },
@@ -397,20 +397,16 @@ export class TranscriptFold {
397
397
  }
398
398
  // A steer also closes the bubble, or the next answer would print over it mid-call.
399
399
  const row: TranscriptRow = { role: "user", text: event.text, sentAt: event.sentAt };
400
- if (event.attachments !== undefined) {
401
- row.attachments = [...event.attachments];
402
- }
403
- if (event.messageId !== undefined) {
404
- row.messageId = event.messageId;
400
+ for (const key of ["attachments", "editorContext", "messageId", "errand"] as const) {
401
+ if (event[key] !== undefined) {
402
+ Object.assign(row, { [key]: structuredClone(event[key]) });
403
+ }
405
404
  }
406
405
  // The sandbox's own words say so on the row, so a reader never shows them as the owner's; an agent's words
407
406
  // come as their own card (agentWords), which names the agent.
408
407
  if (event.voice === "sandbox") {
409
408
  row.speaker = { kind: "sandbox" };
410
409
  }
411
- if (event.errand !== undefined) {
412
- row.errand = event.errand;
413
- }
414
410
  const patches = this.pushRow(row);
415
411
  // Anchors pair by position with the checkpoints only a person's steer reserves.
416
412
  if (event.voice === undefined) {
@@ -1,58 +0,0 @@
1
- export declare const sharingContract: {
2
- shareable: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
3
- sandbox: import("zod").ZodString;
4
- accounts: import("zod").ZodArray<import("zod").ZodObject<{
5
- provider: import("zod").ZodString;
6
- account: import("zod").ZodOptional<import("zod").ZodString>;
7
- label: import("zod").ZodString;
8
- email: import("zod").ZodOptional<import("zod").ZodString>;
9
- mode: import("zod").ZodEnum<{
10
- copy: "copy";
11
- lend: "lend";
12
- no: "no";
13
- }>;
14
- reason: import("zod").ZodOptional<import("zod").ZodString>;
15
- }, import("zod/v4/core").$strip>>;
16
- }, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
17
- borrow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
18
- card: import("zod").ZodString;
19
- items: import("zod").ZodArray<import("zod").ZodObject<{
20
- provider: import("zod").ZodString;
21
- account: import("zod").ZodOptional<import("zod").ZodString>;
22
- }, import("zod/v4/core").$strip>>;
23
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
24
- results: import("zod").ZodArray<import("zod").ZodObject<{
25
- provider: import("zod").ZodString;
26
- account: import("zod").ZodOptional<import("zod").ZodString>;
27
- outcome: import("zod").ZodEnum<{
28
- borrowed: "borrowed";
29
- copied: "copied";
30
- failed: "failed";
31
- }>;
32
- id: import("zod").ZodOptional<import("zod").ZodString>;
33
- message: import("zod").ZodOptional<import("zod").ZodString>;
34
- }, import("zod/v4/core").$strip>>;
35
- }, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
36
- borrowed: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
37
- accounts: import("zod").ZodArray<import("zod").ZodObject<{
38
- id: import("zod").ZodString;
39
- card: import("zod").ZodString;
40
- provider: import("zod").ZodString;
41
- remote: import("zod").ZodOptional<import("zod").ZodString>;
42
- label: import("zod").ZodString;
43
- email: import("zod").ZodOptional<import("zod").ZodString>;
44
- organization: import("zod").ZodOptional<import("zod").ZodString>;
45
- from: import("zod").ZodObject<{
46
- name: import("zod").ZodString;
47
- sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
48
- }, import("zod/v4/core").$strip>;
49
- borrowedAt: import("zod").ZodNumber;
50
- }, import("zod/v4/core").$strip>>;
51
- }, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
52
- stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
53
- id: import("zod").ZodString;
54
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
55
- ok: import("zod").ZodLiteral<true>;
56
- }, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
57
- };
58
- //# sourceMappingURL=sharing.contract.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharing.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sharing.contract.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;IACxB,SAAS;;;;;;;;;;;;;;;IAST,MAAM;;;;;;;;;;;;;;;;;;;IAUN,QAAQ;;;;;;;;;;;;;;;;IAQR,IAAI;;;;;CAUP,CAAC"}