@intentic/sandbox-contract 1.432.0 → 1.433.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 (232) hide show
  1. package/README.md +15 -0
  2. package/dist/contracts/agent.contract.d.ts +252 -72
  3. package/dist/contracts/agent.contract.d.ts.map +1 -1
  4. package/dist/contracts/agents.contract.d.ts +67 -0
  5. package/dist/contracts/agents.contract.d.ts.map +1 -1
  6. package/dist/contracts/approvals.contract.d.ts +35 -0
  7. package/dist/contracts/approvals.contract.d.ts.map +1 -1
  8. package/dist/contracts/approvals.contract.js +13 -3
  9. package/dist/contracts/approvals.contract.js.map +1 -1
  10. package/dist/contracts/automations.contract.d.ts +1 -0
  11. package/dist/contracts/automations.contract.d.ts.map +1 -1
  12. package/dist/contracts/capabilities.contract.d.ts +3 -0
  13. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  14. package/dist/contracts/extensions.contract.d.ts +4 -0
  15. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  16. package/dist/contracts/needs.contract.d.ts +198 -0
  17. package/dist/contracts/needs.contract.d.ts.map +1 -1
  18. package/dist/contracts/runner.contract.d.ts +156 -36
  19. package/dist/contracts/runner.contract.d.ts.map +1 -1
  20. package/dist/contracts/seal.contract.d.ts +5 -0
  21. package/dist/contracts/seal.contract.d.ts.map +1 -1
  22. package/dist/contracts/sessions.contract.d.ts +22 -0
  23. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  24. package/dist/contracts/settings.contract.d.ts +16 -0
  25. package/dist/contracts/settings.contract.d.ts.map +1 -1
  26. package/dist/contracts/stack-grants.contract.d.ts +22 -0
  27. package/dist/contracts/stack-grants.contract.d.ts.map +1 -1
  28. package/dist/contracts/system.contract.d.ts +7 -4
  29. package/dist/contracts/system.contract.d.ts.map +1 -1
  30. package/dist/events/agent-events.d.ts +88 -0
  31. package/dist/events/agent-events.d.ts.map +1 -1
  32. package/dist/events/agent-transcript.d.ts +22 -0
  33. package/dist/events/agent-transcript.d.ts.map +1 -1
  34. package/dist/events/system-events.d.ts +4 -0
  35. package/dist/events/system-events.d.ts.map +1 -1
  36. package/dist/events/transcript.d.ts +110 -0
  37. package/dist/events/transcript.d.ts.map +1 -1
  38. package/dist/ids/conversation-ids.d.ts.map +1 -1
  39. package/dist/ids/conversation-ids.js.map +1 -1
  40. package/dist/protocol/raw/extension-protocol.d.ts +116 -0
  41. package/dist/protocol/raw/extension-protocol.d.ts.map +1 -1
  42. package/dist/protocol/raw/extension-protocol.js +17 -1
  43. package/dist/protocol/raw/extension-protocol.js.map +1 -1
  44. package/dist/protocol/raw/raw-json-routes.d.ts +2974 -0
  45. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  46. package/dist/protocol/raw/raw-json-routes.js +39 -0
  47. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  48. package/dist/protocol/raw/raw-routes.d.ts +179 -0
  49. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  50. package/dist/protocol/raw/raw-routes.js +41 -0
  51. package/dist/protocol/raw/raw-routes.js.map +1 -1
  52. package/dist/protocol/s2s/address.d.ts +53 -0
  53. package/dist/protocol/s2s/address.d.ts.map +1 -0
  54. package/dist/protocol/s2s/address.js +111 -0
  55. package/dist/protocol/s2s/address.js.map +1 -0
  56. package/dist/protocol/s2s/attestation.d.ts +41 -0
  57. package/dist/protocol/s2s/attestation.d.ts.map +1 -0
  58. package/dist/protocol/s2s/attestation.js +96 -0
  59. package/dist/protocol/s2s/attestation.js.map +1 -0
  60. package/dist/protocol/s2s/canonical.d.ts +10 -0
  61. package/dist/protocol/s2s/canonical.d.ts.map +1 -0
  62. package/dist/protocol/s2s/canonical.js +94 -0
  63. package/dist/protocol/s2s/canonical.js.map +1 -0
  64. package/dist/protocol/s2s/envelope.d.ts +40 -0
  65. package/dist/protocol/s2s/envelope.d.ts.map +1 -0
  66. package/dist/protocol/s2s/envelope.js +116 -0
  67. package/dist/protocol/s2s/envelope.js.map +1 -0
  68. package/dist/protocol/s2s/extension-sign.d.ts +21 -0
  69. package/dist/protocol/s2s/extension-sign.d.ts.map +1 -0
  70. package/dist/protocol/s2s/extension-sign.js +41 -0
  71. package/dist/protocol/s2s/extension-sign.js.map +1 -0
  72. package/dist/protocol/s2s/identity-doc.d.ts +50 -0
  73. package/dist/protocol/s2s/identity-doc.d.ts.map +1 -0
  74. package/dist/protocol/s2s/identity-doc.js +89 -0
  75. package/dist/protocol/s2s/identity-doc.js.map +1 -0
  76. package/dist/protocol/s2s/index.d.ts +12 -0
  77. package/dist/protocol/s2s/index.d.ts.map +1 -0
  78. package/dist/protocol/s2s/index.js +12 -0
  79. package/dist/protocol/s2s/index.js.map +1 -0
  80. package/dist/protocol/s2s/kem.d.ts +15 -0
  81. package/dist/protocol/s2s/kem.d.ts.map +1 -0
  82. package/dist/protocol/s2s/kem.js +34 -0
  83. package/dist/protocol/s2s/kem.js.map +1 -0
  84. package/dist/protocol/s2s/keys.d.ts +34 -0
  85. package/dist/protocol/s2s/keys.d.ts.map +1 -0
  86. package/dist/protocol/s2s/keys.js +81 -0
  87. package/dist/protocol/s2s/keys.js.map +1 -0
  88. package/dist/protocol/s2s/passkey-cosign.d.ts +44 -0
  89. package/dist/protocol/s2s/passkey-cosign.d.ts.map +1 -0
  90. package/dist/protocol/s2s/passkey-cosign.js +139 -0
  91. package/dist/protocol/s2s/passkey-cosign.js.map +1 -0
  92. package/dist/protocol/s2s/session.d.ts +61 -0
  93. package/dist/protocol/s2s/session.d.ts.map +1 -0
  94. package/dist/protocol/s2s/session.js +98 -0
  95. package/dist/protocol/s2s/session.js.map +1 -0
  96. package/dist/protocol/s2s/sign.d.ts +12 -0
  97. package/dist/protocol/s2s/sign.d.ts.map +1 -0
  98. package/dist/protocol/s2s/sign.js +33 -0
  99. package/dist/protocol/s2s/sign.js.map +1 -0
  100. package/dist/schemas/agents-list.d.ts +2 -0
  101. package/dist/schemas/agents-list.d.ts.map +1 -1
  102. package/dist/schemas/agents.d.ts +4 -0
  103. package/dist/schemas/agents.d.ts.map +1 -1
  104. package/dist/schemas/approvals.d.ts +100 -0
  105. package/dist/schemas/approvals.d.ts.map +1 -1
  106. package/dist/schemas/approvals.js +21 -0
  107. package/dist/schemas/approvals.js.map +1 -1
  108. package/dist/schemas/automations.d.ts +2 -0
  109. package/dist/schemas/automations.d.ts.map +1 -1
  110. package/dist/schemas/automations.js +1 -1
  111. package/dist/schemas/automations.js.map +1 -1
  112. package/dist/schemas/capabilities.d.ts +1 -0
  113. package/dist/schemas/capabilities.d.ts.map +1 -1
  114. package/dist/schemas/command-admission.d.ts +6 -0
  115. package/dist/schemas/command-admission.d.ts.map +1 -1
  116. package/dist/schemas/command-admission.js +2 -1
  117. package/dist/schemas/command-admission.js.map +1 -1
  118. package/dist/schemas/contact-need.d.ts +50 -0
  119. package/dist/schemas/contact-need.d.ts.map +1 -0
  120. package/dist/schemas/contact-need.js +19 -0
  121. package/dist/schemas/contact-need.js.map +1 -0
  122. package/dist/schemas/contacts-settings.d.ts +5 -0
  123. package/dist/schemas/contacts-settings.d.ts.map +1 -0
  124. package/dist/schemas/contacts-settings.js +11 -0
  125. package/dist/schemas/contacts-settings.js.map +1 -0
  126. package/dist/schemas/extension-updates.d.ts +8 -0
  127. package/dist/schemas/extension-updates.d.ts.map +1 -1
  128. package/dist/schemas/issues.d.ts +2 -0
  129. package/dist/schemas/issues.d.ts.map +1 -1
  130. package/dist/schemas/issues.js +1 -0
  131. package/dist/schemas/issues.js.map +1 -1
  132. package/dist/schemas/links.d.ts +8 -0
  133. package/dist/schemas/links.d.ts.map +1 -1
  134. package/dist/schemas/links.js +4 -0
  135. package/dist/schemas/links.js.map +1 -1
  136. package/dist/schemas/need-kinds.d.ts +2 -1
  137. package/dist/schemas/need-kinds.d.ts.map +1 -1
  138. package/dist/schemas/need-kinds.js +2 -2
  139. package/dist/schemas/need-kinds.js.map +1 -1
  140. package/dist/schemas/needs.d.ts +156 -13
  141. package/dist/schemas/needs.d.ts.map +1 -1
  142. package/dist/schemas/needs.js +5 -12
  143. package/dist/schemas/needs.js.map +1 -1
  144. package/dist/schemas/redirect-need.d.ts +15 -0
  145. package/dist/schemas/redirect-need.d.ts.map +1 -0
  146. package/dist/schemas/redirect-need.js +14 -0
  147. package/dist/schemas/redirect-need.js.map +1 -0
  148. package/dist/schemas/s2s-identity.d.ts +521 -0
  149. package/dist/schemas/s2s-identity.d.ts.map +1 -0
  150. package/dist/schemas/s2s-identity.js +208 -0
  151. package/dist/schemas/s2s-identity.js.map +1 -0
  152. package/dist/schemas/s2s-views.d.ts +2127 -0
  153. package/dist/schemas/s2s-views.d.ts.map +1 -0
  154. package/dist/schemas/s2s-views.js +217 -0
  155. package/dist/schemas/s2s-views.js.map +1 -0
  156. package/dist/schemas/s2s-wire.d.ts +1616 -0
  157. package/dist/schemas/s2s-wire.d.ts.map +1 -0
  158. package/dist/schemas/s2s-wire.js +276 -0
  159. package/dist/schemas/s2s-wire.js.map +1 -0
  160. package/dist/schemas/s2s.d.ts +5 -0
  161. package/dist/schemas/s2s.d.ts.map +1 -0
  162. package/dist/schemas/s2s.js +5 -0
  163. package/dist/schemas/s2s.js.map +1 -0
  164. package/dist/schemas/settings.d.ts +16 -0
  165. package/dist/schemas/settings.d.ts.map +1 -1
  166. package/dist/schemas/settings.js +2 -0
  167. package/dist/schemas/settings.js.map +1 -1
  168. package/dist/schemas/terminal.d.ts +2 -0
  169. package/dist/schemas/terminal.d.ts.map +1 -1
  170. package/dist/schemas/terminal.js +4 -0
  171. package/dist/schemas/terminal.js.map +1 -1
  172. package/dist/schemas/vpn.d.ts +4 -0
  173. package/dist/schemas/vpn.d.ts.map +1 -1
  174. package/dist/schemas/vpn.js +9 -0
  175. package/dist/schemas/vpn.js.map +1 -1
  176. package/dist/state/auth-state.d.ts.map +1 -1
  177. package/dist/state/auth-state.js +6 -0
  178. package/dist/state/auth-state.js.map +1 -1
  179. package/dist/state/definition.d.ts +18 -0
  180. package/dist/state/definition.d.ts.map +1 -1
  181. package/package.json +20 -5
  182. package/src/contracts/approvals.contract.ts +24 -3
  183. package/src/ids/conversation-ids.test.ts +22 -3
  184. package/src/ids/conversation-ids.ts +5 -7
  185. package/src/protocol/ingress-contract.fixture.json +6 -1
  186. package/src/protocol/raw/extension-protocol.ts +45 -1
  187. package/src/protocol/raw/raw-json-routes.ts +85 -0
  188. package/src/protocol/raw/raw-routes.ts +66 -3
  189. package/src/protocol/s2s/address.test.ts +157 -0
  190. package/src/protocol/s2s/address.ts +193 -0
  191. package/src/protocol/s2s/attestation.test.ts +262 -0
  192. package/src/protocol/s2s/attestation.ts +173 -0
  193. package/src/protocol/s2s/canonical.test.ts +70 -0
  194. package/src/protocol/s2s/canonical.ts +119 -0
  195. package/src/protocol/s2s/envelope.test.ts +162 -0
  196. package/src/protocol/s2s/envelope.ts +194 -0
  197. package/src/protocol/s2s/extension-sign.test.ts +117 -0
  198. package/src/protocol/s2s/extension-sign.ts +76 -0
  199. package/src/protocol/s2s/identity-doc.test.ts +187 -0
  200. package/src/protocol/s2s/identity-doc.ts +169 -0
  201. package/src/protocol/s2s/index.ts +15 -0
  202. package/src/protocol/s2s/kem.ts +62 -0
  203. package/src/protocol/s2s/keys.test.ts +76 -0
  204. package/src/protocol/s2s/keys.ts +155 -0
  205. package/src/protocol/s2s/passkey-cosign.test.ts +98 -0
  206. package/src/protocol/s2s/passkey-cosign.testing.ts +86 -0
  207. package/src/protocol/s2s/passkey-cosign.ts +192 -0
  208. package/src/protocol/s2s/s2s.testing.ts +22 -0
  209. package/src/protocol/s2s/session.test.ts +133 -0
  210. package/src/protocol/s2s/session.ts +179 -0
  211. package/src/protocol/s2s/sign.test.ts +66 -0
  212. package/src/protocol/s2s/sign.ts +53 -0
  213. package/src/schemas/approvals.ts +41 -0
  214. package/src/schemas/automations.ts +4 -3
  215. package/src/schemas/command-admission.ts +4 -1
  216. package/src/schemas/contact-need.ts +26 -0
  217. package/src/schemas/contacts-settings.ts +16 -0
  218. package/src/schemas/issues.ts +1 -0
  219. package/src/schemas/links.ts +4 -0
  220. package/src/schemas/need-kinds.ts +2 -2
  221. package/src/schemas/needs.ts +5 -18
  222. package/src/schemas/redirect-need.ts +19 -0
  223. package/src/schemas/s2s-identity.ts +329 -0
  224. package/src/schemas/s2s-views.ts +326 -0
  225. package/src/schemas/s2s-wire.ts +401 -0
  226. package/src/schemas/s2s.test.ts +175 -0
  227. package/src/schemas/s2s.ts +9 -0
  228. package/src/schemas/settings.ts +2 -0
  229. package/src/schemas/terminal.ts +6 -0
  230. package/src/schemas/version-seam.test.ts +9 -0
  231. package/src/schemas/vpn.ts +13 -0
  232. package/src/state/auth-state.ts +10 -0
package/README.md CHANGED
@@ -29,10 +29,25 @@ flowchart LR
29
29
  by a user's machine, the browser extension, the phone app and a runner over the socket each one opens, with the
30
30
  daemon as the client. The phone's is carried as plain JSON-RPC (`src/protocol/doors/phone-protocol.ts`), since its far end is
31
31
  a Kotlin app; `golden/phone-wire.json` holds example frames that both ends test against.
32
+ - The sandbox-to-sandbox protocol (`docs/architecture/messages.md`) lives here whole, since two
33
+ daemons and the editor must agree on every byte of it: its wire and editor shapes in `src/schemas/s2s.ts`, and its
34
+ primitives in `src/protocol/s2s/`, imported as `@intentic/sandbox-contract/s2s`: canonical JSON, hybrid Ed25519 and
35
+ ML-DSA-65 signatures, X25519 and ML-KEM-768 key agreement, the identity document and its rotation table, addresses
36
+ and their TXT records, the envelope, and call sessions; and (2026-11-28) an extension's sign domains
37
+ (`ext:<publisher.name>/<purpose>`, `signExtensionPayload` and `verifyExtensionPayload`) and the passkey co-signature
38
+ on an approval (`PasskeyCosignSchema`, `cosignChallenge`, `verifyPasskeyCosign`, which verifies with WebCrypto and is
39
+ imported alone by `schemas/approvals.ts`, so no curve code loads with the schema). They are plain JavaScript on the
40
+ `@noble` libraries, so Node, Bun and a browser run the same code; Bun has no ML-KEM in `node:crypto`.
32
41
  - The daemon names the routes it implements on the `/events` hello frame, and the browser diffs that list against its
33
42
  own build, so a route an older daemon lacks shows as a missing feature instead of a 404. The desktop app's folder
34
43
  sidecar sends the same frame with `surface: "folder"` and only the few routes it serves, which the browser offers
35
44
  and never reads as out of date.
45
+ - (2026-11-28) Attestations: one sandbox's signed word about another, carried in the other's identity document
46
+ (`S2sAttestationSchema`, the identity document's `attestations`). `signAttestation` makes a `sandbox-vouch` under a
47
+ key set for the sign domain `attestation`; `verifyAttestation(attestation, document, { now, trustedIssuers })` checks
48
+ it against the subject's document (one key rotation keeps it) and says `trusted` only for an issuer the reader lists,
49
+ since no issuer is trusted by default. A type this build does not read, `eudi-pid` among them, parses and is kept whole
50
+ but never verifies.
36
51
  - Every file the daemon keeps says whether it travels in an environment bundle (`carry`, `secret`, `identity` or
37
52
  `derived`, `src/state/state-portability.ts`). The contract holds the tables for the two roots other programs read:
38
53
  `WORKSPACE_STATE_FILES`, and `AUTH_STATE_FILES` for the auth root of provider logins, secret vaults and trust files.
@@ -572,6 +572,18 @@ export declare const agentContract: {
572
572
  }[];
573
573
  dueAt?: number | undefined;
574
574
  utcOffsetMinutes?: number | undefined;
575
+ } | {
576
+ kind: "claim";
577
+ project: string;
578
+ heldBy?: string | undefined;
579
+ } | {
580
+ kind: "route";
581
+ target: string;
582
+ targetName: string;
583
+ person: string;
584
+ scopes: ("drop" | "read" | "report" | "task")[];
585
+ address?: string | undefined;
586
+ from?: string | undefined;
575
587
  } | {
576
588
  kind: "wsl-memory";
577
589
  device: string;
@@ -595,18 +607,6 @@ export declare const agentContract: {
595
607
  }[] | undefined;
596
608
  text: string;
597
609
  };
598
- } | {
599
- kind: "claim";
600
- project: string;
601
- heldBy?: string | undefined;
602
- } | {
603
- kind: "route";
604
- target: string;
605
- targetName: string;
606
- person: string;
607
- scopes: ("drop" | "read" | "report" | "task")[];
608
- address?: string | undefined;
609
- from?: string | undefined;
610
610
  } | {
611
611
  kind: "redirect";
612
612
  target: string;
@@ -625,6 +625,25 @@ export declare const agentContract: {
625
625
  deviceName?: string | undefined;
626
626
  secrets: string[];
627
627
  ungranted: string[];
628
+ } | {
629
+ kind: "contact";
630
+ address: string;
631
+ action: "accept" | "add";
632
+ contactId?: string | undefined;
633
+ grants: {
634
+ message?: boolean | undefined;
635
+ report?: boolean | undefined;
636
+ task?: {
637
+ actsAs?: string | undefined;
638
+ runAs?: string | undefined;
639
+ approve?: boolean | undefined;
640
+ turnsPerHour?: number | undefined;
641
+ } | undefined;
642
+ records?: boolean | undefined;
643
+ operate?: boolean | undefined;
644
+ wake?: boolean | undefined;
645
+ };
646
+ note?: string | undefined;
628
647
  };
629
648
  title: string;
630
649
  why?: string | undefined;
@@ -1176,6 +1195,18 @@ export declare const agentContract: {
1176
1195
  }[];
1177
1196
  dueAt?: number | undefined;
1178
1197
  utcOffsetMinutes?: number | undefined;
1198
+ } | {
1199
+ kind: "claim";
1200
+ project: string;
1201
+ heldBy?: string | undefined;
1202
+ } | {
1203
+ kind: "route";
1204
+ target: string;
1205
+ targetName: string;
1206
+ person: string;
1207
+ scopes: ("drop" | "read" | "report" | "task")[];
1208
+ address?: string | undefined;
1209
+ from?: string | undefined;
1179
1210
  } | {
1180
1211
  kind: "wsl-memory";
1181
1212
  device: string;
@@ -1199,18 +1230,6 @@ export declare const agentContract: {
1199
1230
  }[] | undefined;
1200
1231
  text: string;
1201
1232
  };
1202
- } | {
1203
- kind: "claim";
1204
- project: string;
1205
- heldBy?: string | undefined;
1206
- } | {
1207
- kind: "route";
1208
- target: string;
1209
- targetName: string;
1210
- person: string;
1211
- scopes: ("drop" | "read" | "report" | "task")[];
1212
- address?: string | undefined;
1213
- from?: string | undefined;
1214
1233
  } | {
1215
1234
  kind: "redirect";
1216
1235
  target: string;
@@ -1229,6 +1248,25 @@ export declare const agentContract: {
1229
1248
  deviceName?: string | undefined;
1230
1249
  secrets: string[];
1231
1250
  ungranted: string[];
1251
+ } | {
1252
+ kind: "contact";
1253
+ address: string;
1254
+ action: "accept" | "add";
1255
+ contactId?: string | undefined;
1256
+ grants: {
1257
+ message?: boolean | undefined;
1258
+ report?: boolean | undefined;
1259
+ task?: {
1260
+ actsAs?: string | undefined;
1261
+ runAs?: string | undefined;
1262
+ approve?: boolean | undefined;
1263
+ turnsPerHour?: number | undefined;
1264
+ } | undefined;
1265
+ records?: boolean | undefined;
1266
+ operate?: boolean | undefined;
1267
+ wake?: boolean | undefined;
1268
+ };
1269
+ note?: string | undefined;
1232
1270
  };
1233
1271
  title: string;
1234
1272
  why?: string | undefined;
@@ -1779,6 +1817,18 @@ export declare const agentContract: {
1779
1817
  }[];
1780
1818
  dueAt?: number | undefined;
1781
1819
  utcOffsetMinutes?: number | undefined;
1820
+ } | {
1821
+ kind: "claim";
1822
+ project: string;
1823
+ heldBy?: string | undefined;
1824
+ } | {
1825
+ kind: "route";
1826
+ target: string;
1827
+ targetName: string;
1828
+ person: string;
1829
+ scopes: ("drop" | "read" | "report" | "task")[];
1830
+ address?: string | undefined;
1831
+ from?: string | undefined;
1782
1832
  } | {
1783
1833
  kind: "wsl-memory";
1784
1834
  device: string;
@@ -1802,18 +1852,6 @@ export declare const agentContract: {
1802
1852
  }[] | undefined;
1803
1853
  text: string;
1804
1854
  };
1805
- } | {
1806
- kind: "claim";
1807
- project: string;
1808
- heldBy?: string | undefined;
1809
- } | {
1810
- kind: "route";
1811
- target: string;
1812
- targetName: string;
1813
- person: string;
1814
- scopes: ("drop" | "read" | "report" | "task")[];
1815
- address?: string | undefined;
1816
- from?: string | undefined;
1817
1855
  } | {
1818
1856
  kind: "redirect";
1819
1857
  target: string;
@@ -1832,6 +1870,25 @@ export declare const agentContract: {
1832
1870
  deviceName?: string | undefined;
1833
1871
  secrets: string[];
1834
1872
  ungranted: string[];
1873
+ } | {
1874
+ kind: "contact";
1875
+ address: string;
1876
+ action: "accept" | "add";
1877
+ contactId?: string | undefined;
1878
+ grants: {
1879
+ message?: boolean | undefined;
1880
+ report?: boolean | undefined;
1881
+ task?: {
1882
+ actsAs?: string | undefined;
1883
+ runAs?: string | undefined;
1884
+ approve?: boolean | undefined;
1885
+ turnsPerHour?: number | undefined;
1886
+ } | undefined;
1887
+ records?: boolean | undefined;
1888
+ operate?: boolean | undefined;
1889
+ wake?: boolean | undefined;
1890
+ };
1891
+ note?: string | undefined;
1835
1892
  };
1836
1893
  title: string;
1837
1894
  why?: string | undefined;
@@ -2418,6 +2475,18 @@ export declare const agentContract: {
2418
2475
  }[];
2419
2476
  dueAt?: number | undefined;
2420
2477
  utcOffsetMinutes?: number | undefined;
2478
+ } | {
2479
+ kind: "claim";
2480
+ project: string;
2481
+ heldBy?: string | undefined;
2482
+ } | {
2483
+ kind: "route";
2484
+ target: string;
2485
+ targetName: string;
2486
+ person: string;
2487
+ scopes: ("drop" | "read" | "report" | "task")[];
2488
+ address?: string | undefined;
2489
+ from?: string | undefined;
2421
2490
  } | {
2422
2491
  kind: "wsl-memory";
2423
2492
  device: string;
@@ -2441,18 +2510,6 @@ export declare const agentContract: {
2441
2510
  }[] | undefined;
2442
2511
  text: string;
2443
2512
  };
2444
- } | {
2445
- kind: "claim";
2446
- project: string;
2447
- heldBy?: string | undefined;
2448
- } | {
2449
- kind: "route";
2450
- target: string;
2451
- targetName: string;
2452
- person: string;
2453
- scopes: ("drop" | "read" | "report" | "task")[];
2454
- address?: string | undefined;
2455
- from?: string | undefined;
2456
2513
  } | {
2457
2514
  kind: "redirect";
2458
2515
  target: string;
@@ -2471,6 +2528,25 @@ export declare const agentContract: {
2471
2528
  deviceName?: string | undefined;
2472
2529
  secrets: string[];
2473
2530
  ungranted: string[];
2531
+ } | {
2532
+ kind: "contact";
2533
+ address: string;
2534
+ action: "accept" | "add";
2535
+ contactId?: string | undefined;
2536
+ grants: {
2537
+ message: boolean;
2538
+ report: boolean;
2539
+ task?: {
2540
+ actsAs?: string | undefined;
2541
+ runAs?: string | undefined;
2542
+ approve: boolean;
2543
+ turnsPerHour: number;
2544
+ } | undefined;
2545
+ records: boolean;
2546
+ operate: boolean;
2547
+ wake: boolean;
2548
+ };
2549
+ note?: string | undefined;
2474
2550
  };
2475
2551
  title: string;
2476
2552
  why?: string | undefined;
@@ -3024,6 +3100,18 @@ export declare const agentContract: {
3024
3100
  }[];
3025
3101
  dueAt?: number | undefined;
3026
3102
  utcOffsetMinutes?: number | undefined;
3103
+ } | {
3104
+ kind: "claim";
3105
+ project: string;
3106
+ heldBy?: string | undefined;
3107
+ } | {
3108
+ kind: "route";
3109
+ target: string;
3110
+ targetName: string;
3111
+ person: string;
3112
+ scopes: ("drop" | "read" | "report" | "task")[];
3113
+ address?: string | undefined;
3114
+ from?: string | undefined;
3027
3115
  } | {
3028
3116
  kind: "wsl-memory";
3029
3117
  device: string;
@@ -3047,18 +3135,6 @@ export declare const agentContract: {
3047
3135
  }[] | undefined;
3048
3136
  text: string;
3049
3137
  };
3050
- } | {
3051
- kind: "claim";
3052
- project: string;
3053
- heldBy?: string | undefined;
3054
- } | {
3055
- kind: "route";
3056
- target: string;
3057
- targetName: string;
3058
- person: string;
3059
- scopes: ("drop" | "read" | "report" | "task")[];
3060
- address?: string | undefined;
3061
- from?: string | undefined;
3062
3138
  } | {
3063
3139
  kind: "redirect";
3064
3140
  target: string;
@@ -3077,6 +3153,25 @@ export declare const agentContract: {
3077
3153
  deviceName?: string | undefined;
3078
3154
  secrets: string[];
3079
3155
  ungranted: string[];
3156
+ } | {
3157
+ kind: "contact";
3158
+ address: string;
3159
+ action: "accept" | "add";
3160
+ contactId?: string | undefined;
3161
+ grants: {
3162
+ message: boolean;
3163
+ report: boolean;
3164
+ task?: {
3165
+ actsAs?: string | undefined;
3166
+ runAs?: string | undefined;
3167
+ approve: boolean;
3168
+ turnsPerHour: number;
3169
+ } | undefined;
3170
+ records: boolean;
3171
+ operate: boolean;
3172
+ wake: boolean;
3173
+ };
3174
+ note?: string | undefined;
3080
3175
  };
3081
3176
  title: string;
3082
3177
  why?: string | undefined;
@@ -3629,6 +3724,18 @@ export declare const agentContract: {
3629
3724
  }[];
3630
3725
  dueAt?: number | undefined;
3631
3726
  utcOffsetMinutes?: number | undefined;
3727
+ } | {
3728
+ kind: "claim";
3729
+ project: string;
3730
+ heldBy?: string | undefined;
3731
+ } | {
3732
+ kind: "route";
3733
+ target: string;
3734
+ targetName: string;
3735
+ person: string;
3736
+ scopes: ("drop" | "read" | "report" | "task")[];
3737
+ address?: string | undefined;
3738
+ from?: string | undefined;
3632
3739
  } | {
3633
3740
  kind: "wsl-memory";
3634
3741
  device: string;
@@ -3652,18 +3759,6 @@ export declare const agentContract: {
3652
3759
  }[] | undefined;
3653
3760
  text: string;
3654
3761
  };
3655
- } | {
3656
- kind: "claim";
3657
- project: string;
3658
- heldBy?: string | undefined;
3659
- } | {
3660
- kind: "route";
3661
- target: string;
3662
- targetName: string;
3663
- person: string;
3664
- scopes: ("drop" | "read" | "report" | "task")[];
3665
- address?: string | undefined;
3666
- from?: string | undefined;
3667
3762
  } | {
3668
3763
  kind: "redirect";
3669
3764
  target: string;
@@ -3682,6 +3777,25 @@ export declare const agentContract: {
3682
3777
  deviceName?: string | undefined;
3683
3778
  secrets: string[];
3684
3779
  ungranted: string[];
3780
+ } | {
3781
+ kind: "contact";
3782
+ address: string;
3783
+ action: "accept" | "add";
3784
+ contactId?: string | undefined;
3785
+ grants: {
3786
+ message: boolean;
3787
+ report: boolean;
3788
+ task?: {
3789
+ actsAs?: string | undefined;
3790
+ runAs?: string | undefined;
3791
+ approve: boolean;
3792
+ turnsPerHour: number;
3793
+ } | undefined;
3794
+ records: boolean;
3795
+ operate: boolean;
3796
+ wake: boolean;
3797
+ };
3798
+ note?: string | undefined;
3685
3799
  };
3686
3800
  title: string;
3687
3801
  why?: string | undefined;
@@ -4500,6 +4614,28 @@ export declare const agentContract: {
4500
4614
  deviceName: import("zod").ZodOptional<import("zod").ZodString>;
4501
4615
  secrets: import("zod").ZodArray<import("zod").ZodString>;
4502
4616
  ungranted: import("zod").ZodArray<import("zod").ZodString>;
4617
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4618
+ kind: import("zod").ZodLiteral<"contact">;
4619
+ address: import("zod").ZodString;
4620
+ action: import("zod").ZodEnum<{
4621
+ accept: "accept";
4622
+ add: "add";
4623
+ }>;
4624
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
4625
+ grants: import("zod").ZodObject<{
4626
+ message: import("zod").ZodDefault<import("zod").ZodBoolean>;
4627
+ report: import("zod").ZodDefault<import("zod").ZodBoolean>;
4628
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
4629
+ actsAs: import("zod").ZodOptional<import("zod").ZodString>;
4630
+ runAs: import("zod").ZodOptional<import("zod").ZodString>;
4631
+ approve: import("zod").ZodDefault<import("zod").ZodBoolean>;
4632
+ turnsPerHour: import("zod").ZodDefault<import("zod").ZodNumber>;
4633
+ }, import("zod/v4/core").$strip>>;
4634
+ records: import("zod").ZodDefault<import("zod").ZodBoolean>;
4635
+ operate: import("zod").ZodDefault<import("zod").ZodBoolean>;
4636
+ wake: import("zod").ZodDefault<import("zod").ZodBoolean>;
4637
+ }, import("zod/v4/core").$strip>;
4638
+ note: import("zod").ZodOptional<import("zod").ZodString>;
4503
4639
  }, import("zod/v4/core").$strip>], "kind">;
4504
4640
  title: import("zod").ZodString;
4505
4641
  why: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5363,6 +5499,28 @@ export declare const agentContract: {
5363
5499
  deviceName: import("zod").ZodOptional<import("zod").ZodString>;
5364
5500
  secrets: import("zod").ZodArray<import("zod").ZodString>;
5365
5501
  ungranted: import("zod").ZodArray<import("zod").ZodString>;
5502
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
5503
+ kind: import("zod").ZodLiteral<"contact">;
5504
+ address: import("zod").ZodString;
5505
+ action: import("zod").ZodEnum<{
5506
+ accept: "accept";
5507
+ add: "add";
5508
+ }>;
5509
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
5510
+ grants: import("zod").ZodObject<{
5511
+ message: import("zod").ZodDefault<import("zod").ZodBoolean>;
5512
+ report: import("zod").ZodDefault<import("zod").ZodBoolean>;
5513
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
5514
+ actsAs: import("zod").ZodOptional<import("zod").ZodString>;
5515
+ runAs: import("zod").ZodOptional<import("zod").ZodString>;
5516
+ approve: import("zod").ZodDefault<import("zod").ZodBoolean>;
5517
+ turnsPerHour: import("zod").ZodDefault<import("zod").ZodNumber>;
5518
+ }, import("zod/v4/core").$strip>>;
5519
+ records: import("zod").ZodDefault<import("zod").ZodBoolean>;
5520
+ operate: import("zod").ZodDefault<import("zod").ZodBoolean>;
5521
+ wake: import("zod").ZodDefault<import("zod").ZodBoolean>;
5522
+ }, import("zod/v4/core").$strip>;
5523
+ note: import("zod").ZodOptional<import("zod").ZodString>;
5366
5524
  }, import("zod/v4/core").$strip>], "kind">;
5367
5525
  title: import("zod").ZodString;
5368
5526
  why: import("zod").ZodOptional<import("zod").ZodString>;
@@ -6225,6 +6383,28 @@ export declare const agentContract: {
6225
6383
  deviceName: import("zod").ZodOptional<import("zod").ZodString>;
6226
6384
  secrets: import("zod").ZodArray<import("zod").ZodString>;
6227
6385
  ungranted: import("zod").ZodArray<import("zod").ZodString>;
6386
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6387
+ kind: import("zod").ZodLiteral<"contact">;
6388
+ address: import("zod").ZodString;
6389
+ action: import("zod").ZodEnum<{
6390
+ accept: "accept";
6391
+ add: "add";
6392
+ }>;
6393
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
6394
+ grants: import("zod").ZodObject<{
6395
+ message: import("zod").ZodDefault<import("zod").ZodBoolean>;
6396
+ report: import("zod").ZodDefault<import("zod").ZodBoolean>;
6397
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
6398
+ actsAs: import("zod").ZodOptional<import("zod").ZodString>;
6399
+ runAs: import("zod").ZodOptional<import("zod").ZodString>;
6400
+ approve: import("zod").ZodDefault<import("zod").ZodBoolean>;
6401
+ turnsPerHour: import("zod").ZodDefault<import("zod").ZodNumber>;
6402
+ }, import("zod/v4/core").$strip>>;
6403
+ records: import("zod").ZodDefault<import("zod").ZodBoolean>;
6404
+ operate: import("zod").ZodDefault<import("zod").ZodBoolean>;
6405
+ wake: import("zod").ZodDefault<import("zod").ZodBoolean>;
6406
+ }, import("zod/v4/core").$strip>;
6407
+ note: import("zod").ZodOptional<import("zod").ZodString>;
6228
6408
  }, import("zod/v4/core").$strip>], "kind">;
6229
6409
  title: import("zod").ZodString;
6230
6410
  why: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"agent.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,aAAa;IACtB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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