@intentic/sandbox-contract 1.409.0 → 1.410.1

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 (103) 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 +5 -0
  4. package/dist/contracts/agent.contract.d.ts.map +1 -1
  5. package/dist/contracts/capabilities.contract.d.ts +0 -12
  6. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  7. package/dist/contracts/hub.contract.d.ts +121 -0
  8. package/dist/contracts/hub.contract.d.ts.map +1 -0
  9. package/dist/contracts/hub.contract.js +32 -0
  10. package/dist/contracts/hub.contract.js.map +1 -0
  11. package/dist/contracts/secrets.contract.d.ts +1 -73
  12. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  13. package/dist/contracts/secrets.contract.js +4 -20
  14. package/dist/contracts/secrets.contract.js.map +1 -1
  15. package/dist/events/sandbox-notice.d.ts +1 -0
  16. package/dist/events/sandbox-notice.d.ts.map +1 -1
  17. package/dist/events/sandbox-notice.js +1 -1
  18. package/dist/events/sandbox-notice.js.map +1 -1
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +2 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/protocol/doors/runner-wake.d.ts +46 -0
  24. package/dist/protocol/doors/runner-wake.d.ts.map +1 -0
  25. package/dist/protocol/doors/runner-wake.js +21 -0
  26. package/dist/protocol/doors/runner-wake.js.map +1 -0
  27. package/dist/protocol/raw/raw-json-routes.d.ts +14 -145
  28. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  29. package/dist/protocol/raw/raw-json-routes.js +1 -6
  30. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  31. package/dist/protocol/raw/raw-routes.d.ts +4 -16
  32. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  33. package/dist/protocol/raw/raw-routes.js +1 -4
  34. package/dist/protocol/raw/raw-routes.js.map +1 -1
  35. package/dist/schemas/agent.d.ts +3 -0
  36. package/dist/schemas/agent.d.ts.map +1 -1
  37. package/dist/schemas/agent.js +4 -0
  38. package/dist/schemas/agent.js.map +1 -1
  39. package/dist/schemas/capabilities.d.ts +0 -8
  40. package/dist/schemas/capabilities.d.ts.map +1 -1
  41. package/dist/schemas/capabilities.js +0 -4
  42. package/dist/schemas/capabilities.js.map +1 -1
  43. package/dist/schemas/connection-hub.d.ts +347 -0
  44. package/dist/schemas/connection-hub.d.ts.map +1 -0
  45. package/dist/schemas/connection-hub.js +118 -0
  46. package/dist/schemas/connection-hub.js.map +1 -0
  47. package/dist/schemas/diagnostics.d.ts +22 -1
  48. package/dist/schemas/diagnostics.d.ts.map +1 -1
  49. package/dist/schemas/diagnostics.js +13 -1
  50. package/dist/schemas/diagnostics.js.map +1 -1
  51. package/dist/schemas/links.d.ts +0 -21
  52. package/dist/schemas/links.d.ts.map +1 -1
  53. package/dist/schemas/links.js +1 -9
  54. package/dist/schemas/links.js.map +1 -1
  55. package/dist/schemas/providers/plan-limits.d.ts +5 -0
  56. package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
  57. package/dist/schemas/providers/plan-limits.js +4 -0
  58. package/dist/schemas/providers/plan-limits.js.map +1 -1
  59. package/dist/schemas/providers/provider-oauth.d.ts +0 -16
  60. package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
  61. package/dist/schemas/providers/provider-oauth.js +0 -4
  62. package/dist/schemas/providers/provider-oauth.js.map +1 -1
  63. package/dist/schemas/sandbox-passwords.d.ts +0 -142
  64. package/dist/schemas/sandbox-passwords.d.ts.map +1 -1
  65. package/dist/schemas/sandbox-passwords.js +1 -33
  66. package/dist/schemas/sandbox-passwords.js.map +1 -1
  67. package/dist/state/auth-state.d.ts.map +1 -1
  68. package/dist/state/auth-state.js +1 -0
  69. package/dist/state/auth-state.js.map +1 -1
  70. package/dist/state/definition.d.ts +0 -8
  71. package/dist/state/definition.d.ts.map +1 -1
  72. package/dist/text/notice-rows.d.ts.map +1 -1
  73. package/dist/text/notice-rows.js +1 -0
  74. package/dist/text/notice-rows.js.map +1 -1
  75. package/package.json +5 -5
  76. package/src/contracts/hub.contract.ts +39 -0
  77. package/src/contracts/secrets.contract.ts +5 -21
  78. package/src/events/sandbox-notice.ts +5 -4
  79. package/src/index.ts +3 -3
  80. package/src/protocol/doors/runner-wake.ts +36 -0
  81. package/src/protocol/raw/raw-json-routes.ts +0 -10
  82. package/src/protocol/raw/raw-routes.ts +2 -7
  83. package/src/schemas/agent.ts +8 -0
  84. package/src/schemas/capabilities.ts +0 -6
  85. package/src/schemas/connection-hub.test.ts +28 -0
  86. package/src/schemas/connection-hub.ts +191 -0
  87. package/src/schemas/diagnostics.ts +19 -2
  88. package/src/schemas/links.ts +4 -15
  89. package/src/schemas/providers/plan-limits.ts +6 -0
  90. package/src/schemas/providers/provider-oauth.ts +0 -6
  91. package/src/schemas/sandbox-passwords.ts +5 -46
  92. package/src/state/auth-state.ts +3 -0
  93. package/src/text/notice-rows.ts +2 -0
  94. package/dist/contracts/sharing.contract.d.ts +0 -58
  95. package/dist/contracts/sharing.contract.d.ts.map +0 -1
  96. package/dist/contracts/sharing.contract.js +0 -41
  97. package/dist/contracts/sharing.contract.js.map +0 -1
  98. package/dist/schemas/providers/account-sharing.d.ts +0 -277
  99. package/dist/schemas/providers/account-sharing.d.ts.map +0 -1
  100. package/dist/schemas/providers/account-sharing.js +0 -68
  101. package/dist/schemas/providers/account-sharing.js.map +0 -1
  102. package/src/contracts/sharing.contract.ts +0 -54
  103. package/src/schemas/providers/account-sharing.ts +0 -123
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox-passwords.js","sourceRoot":"","sources":["../../src/schemas/sandbox-passwords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EA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AK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IACrF,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../../src/state/auth-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAiBxD,eAAO,MAAM,sBAAsB,2BAAqE,CAAC;AAGzG,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EAyEhD,CAAC"}
1
+ {"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../../src/state/auth-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAiBxD,eAAO,MAAM,sBAAsB,2BAAqE,CAAC;AAGzG,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EA4EhD,CAAC"}
@@ -24,6 +24,7 @@ export const AUTH_STATE_FILES = [
24
24
  { path: "keyring-copies.json", portability: "identity" },
25
25
  { path: "keyring-sync-mailbox.json", portability: "identity" },
26
26
  { path: "keyring-needs.json", portability: "identity" },
27
+ { path: "connection-hub.json", portability: "identity" },
27
28
  { path: "broker-session.key", portability: "identity" },
28
29
  { path: "privacy-gateway.key", portability: "identity" },
29
30
  { path: "org-policy.json", portability: "identity" },
@@ -1 +1 @@
1
- {"version":3,"file":"auth-state.js","sourceRoot":"","sources":["../../src/state/auth-state.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AAS,EAAE;IAEzD,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE;CACtD,CAAC"}
@@ -430,10 +430,6 @@ export declare const SandboxDefinitionSchema: z.ZodObject<{
430
430
  token: z.ZodString;
431
431
  name: z.ZodOptional<z.ZodString>;
432
432
  sandboxId: z.ZodOptional<z.ZodString>;
433
- purpose: z.ZodOptional<z.ZodEnum<{
434
- accounts: "accounts";
435
- tasks: "tasks";
436
- }>>;
437
433
  }, z.core.$strip>;
438
434
  }, z.core.$strip>], "kind">>>;
439
435
  secrets: z.ZodPrefault<z.ZodArray<z.ZodString>>;
@@ -1221,10 +1217,6 @@ export declare const BundleManifestSchema: z.ZodObject<{
1221
1217
  token: z.ZodString;
1222
1218
  name: z.ZodOptional<z.ZodString>;
1223
1219
  sandboxId: z.ZodOptional<z.ZodString>;
1224
- purpose: z.ZodOptional<z.ZodEnum<{
1225
- accounts: "accounts";
1226
- tasks: "tasks";
1227
- }>>;
1228
1220
  }, z.core.$strip>;
1229
1221
  }, z.core.$strip>], "kind">>>;
1230
1222
  secrets: z.ZodPrefault<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/state/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,0BAA0B;;;;kBAOrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAI9E,eAAO,MAAM,yBAAyB;;;kBAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;kBAKtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAmBhF,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e,SAAU,YAAY,KAAG,aAInD,CAAC"}
@@ -23,6 +23,7 @@ export const startingRow = (event) => {
23
23
  };
24
24
  const MOVED_LINES = {
25
25
  refused: ({ from, to }) => `Ran on ${to}: the ${from} account's plan or organization does not allow it.`,
26
+ spent: ({ from, to }) => `Ran on ${to}: the records say ${from} has used up its allowance. To run on ${from} anyway, pick it in the composer.`,
26
27
  reach: ({ from, to }) => `Ran on ${to}: the people this conversation works for may not use the ${from} account.`,
27
28
  cold: ({ from, to }) => `Moved from ${from} to ${to}, which has more room left: the cache had expired, so moving cost nothing.`,
28
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"notice-rows.js","sourceRoot":"","sources":["../../src/text/notice-rows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAsB,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACnH,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAMhF,MAAM,cAAc,GAAoC,IAAI,GAAG,CAAwB,CAAC,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAGrK,MAAM,YAAY,GAAG,CAAC,MAAc,EAAU,EAAE,CAC5C,MAAM,KAAK,CAAC;IACR,CAAC,CAAC,oFAAoF;IACtF,CAAC,CAAC,+FAA+F,MAAM,CAAC,MAAM,CAAC,IAAI,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,sFAAsF,CAAC;AAGnP,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAiB,EAA0B,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAG7G,MAAM,CAAC,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AAE,SAAS,IAAI,oDAAoD;IAExG,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,UAAU,EAAE,qBAAqB,IAAI,yCAAyC,IAAI,mCAAmC;IAC9I,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,UAAU,EAAE,4DAA4D,IAAI,WAAW;IAChH,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,cAAc,IAAI,OAAO,EAAE,4EAA4E;CACzC,CAAC;AAG3F,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAkB,EAAiB,EAAE,CAAC,CAAC;IACnE,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CACjE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentic/sandbox-contract",
3
- "version": "1.409.0",
3
+ "version": "1.410.1",
4
4
  "description": "oRPC wire contract for the intentic sandbox daemon, shared by the daemon and its browser client",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -373,10 +373,10 @@
373
373
  }
374
374
  },
375
375
  "dependencies": {
376
- "@intentic/base": "1.409.0",
377
- "@intentic/constants": "1.409.0",
378
- "@intentic/extension-manifest": "1.409.0",
379
- "@intentic/registry": "1.409.0",
376
+ "@intentic/base": "1.410.1",
377
+ "@intentic/constants": "1.410.1",
378
+ "@intentic/extension-manifest": "1.410.1",
379
+ "@intentic/registry": "1.410.1",
380
380
  "@orpc/contract": "1.16.1",
381
381
  "zod": "4.6.7"
382
382
  },
@@ -0,0 +1,39 @@
1
+ import { procedure } from "../protocol/route-meta.js";
2
+ import { HubSavedSchema, HubSaveSchema, HubStateSchema, HubTakenSchema, HubTakeSchema } from "../schemas/connection-hub.js";
3
+
4
+ // The connections hub (schemas/connection-hub.ts): the keyring on one of the owner's computers holding the connections
5
+ // they want in more than one sandbox. Saving puts a credential in motion and taking asks the computer for one, so these
6
+ // are the operating tier's and no token's; the computer still asks its person before either happens.
7
+ const hubRoute = procedure.meta({ floor: "maintainer", control: "never", panel: false });
8
+
9
+ export const hubContract = {
10
+ state: hubRoute
11
+ .route({
12
+ method: "GET",
13
+ path: "/hub",
14
+ summary: "Connections on your computer, and which held here can go there",
15
+ description:
16
+ "The owner's computers whose keyring can hold connections; every card and model account held here, whether it can go to the hub and why not, which were saved there from here and which were made here from it; and any entry shared here that could not be made into a connection. No credential is in the answer.",
17
+ })
18
+ .output(HubStateSchema),
19
+ save: hubRoute
20
+ .route({
21
+ method: "POST",
22
+ path: "/hub/save",
23
+ summary: "Save a connection to your computer",
24
+ description:
25
+ "Sends one card or static model account to the named computer's keyring, sealed to it, to keep as a hub entry shared back here. The person at the computer says yes first; a locked keyring holds it until the next unlock. Saving the same connection again replaces that entry, so every sandbox using it gets the new value.",
26
+ })
27
+ .input(HubSaveSchema)
28
+ .output(HubSavedSchema),
29
+ take: hubRoute
30
+ .route({
31
+ method: "POST",
32
+ path: "/hub/take",
33
+ summary: "Use a connection saved on your computer",
34
+ description:
35
+ "Asks the owner's computers for a saved connection of this kind. The keyring offers the person what matches and shares the one they pick here; it is then made into a card or account here and follows that entry from then on.",
36
+ })
37
+ .input(HubTakeSchema)
38
+ .output(HubTakenSchema),
39
+ };
@@ -26,7 +26,7 @@ import {
26
26
  SecretRevealSchema,
27
27
  SecretSetSchema,
28
28
  } from "../schemas/secrets.js";
29
- import { SandboxNeedsSchema, SandboxPasswordsActivitySchema, SandboxPasswordsSchema, SecretWantResultSchema, SecretWantSchema } from "../schemas/sandbox-passwords.js";
29
+ import { SandboxNeedsSchema, SecretWantResultSchema, SecretWantSchema } from "../schemas/sandbox-passwords.js";
30
30
  import { OkSchema } from "../schemas/shared.js";
31
31
 
32
32
  // Credentials are the operating tier's, reads included: maintainer is the highest revokable grant, and no token's.
@@ -224,31 +224,15 @@ export const secretsContract = {
224
224
  .meta({ agent: true })
225
225
  .input(SecretWantSchema)
226
226
  .output(SecretWantResultSchema),
227
- passwords: secretRoute
227
+ // The want's other half: what this sandbox asked for that still waits, drawn in the Secrets view's "Needs attention".
228
+ wants: secretRoute
228
229
  .route({
229
230
  method: "GET",
230
- path: "/secrets/passwords",
231
- summary: "The passwords this sandbox may use",
232
- description:
233
- "Every entry the keyrings on the owner's computers share with this sandbox, where each works and how this sandbox may use it, and each computer's Passwords state. Names and places only, never values.",
234
- })
235
- .output(SandboxPasswordsSchema),
236
- passwordNeeds: secretRoute
237
- .route({
238
- method: "GET",
239
- path: "/secrets/passwords/needs",
231
+ path: "/secrets/wants",
240
232
  summary: "Credentials this sandbox asked for that wait for an answer",
241
- description: "The needs this sandbox raised (`secrets want`) that the owner has not answered yet, and on which computer each waits.",
233
+ description: "The credentials this sandbox asked the owner's computers for (`secrets want`) that nobody has answered yet, and on which computer each waits. Names and places only, never a value.",
242
234
  })
243
235
  .output(SandboxNeedsSchema),
244
- passwordActivity: secretRoute
245
- .route({
246
- method: "GET",
247
- path: "/secrets/passwords/activity",
248
- summary: "This sandbox's uses of the owner's passwords",
249
- description: "Each time this sandbox used a password one of the owner's keyrings keeps, newest first, from its own use ledger. Never a value.",
250
- })
251
- .output(SandboxPasswordsActivitySchema),
252
236
  // The credential gateway's say over one connection: how its credential reaches the agent, and what it may do there.
253
237
  policy: secretRoute
254
238
  .route({
@@ -151,12 +151,13 @@ export const SandboxNoticeSchema = z.discriminatedUnion("code", [
151
151
  }),
152
152
  }),
153
153
  // The conversation moved to another account of its provider before its turn ran (the daemon's turn-plan.ts), why:
154
- // the account could not serve it (`refused`: its plan or organization does not allow it), the people it works for may
155
- // not use it (`reach`), or its cache had expired and another account had clearly more room (`cold`). `from` and `to`
156
- // are the accounts' own names, never ids; `said` is the provider's own sentence a refusal came with.
154
+ // the account could not serve it (`refused`: its plan or organization does not allow it), the records call its
155
+ // allowance used up (`spent`, which a person's own pick of it overrides), the people it works for may not use it
156
+ // (`reach`), or its cache had expired and another account had clearly more room (`cold`). `from` and `to` are the
157
+ // accounts' own names, never ids; `said` is the provider's own sentence a refusal came with, or the records' reading.
157
158
  z.object({
158
159
  code: z.literal("accountMoved"),
159
- params: z.object({ why: z.enum(["refused", "reach", "cold"]), from: z.string(), to: z.string(), said: z.string().optional() }),
160
+ params: z.object({ why: z.enum(["refused", "spent", "reach", "cold"]), from: z.string(), to: z.string(), said: z.string().optional() }),
160
161
  }),
161
162
  // An agent's own dependency install starting: into its conversation's own copy (`ownCopy`) or the main tree; the
162
163
  // workspace root (`root`) and up to three project folders named (`projects`, each with its slash, already joined),
package/src/index.ts CHANGED
@@ -22,6 +22,7 @@ import { exitContract } from "./contracts/exit.contract.js";
22
22
  import { extensionsContract } from "./contracts/extensions.contract.js";
23
23
  import { gitContract } from "./contracts/git.contract.js";
24
24
  import { historyContract } from "./contracts/history.contract.js";
25
+ import { hubContract } from "./contracts/hub.contract.js";
25
26
  import { intenticContract } from "./contracts/intentic.contract.js";
26
27
  import { inventoryContract } from "./contracts/inventory.contract.js";
27
28
  import { issuesContract } from "./contracts/issues.contract.js";
@@ -47,7 +48,6 @@ import { sessionsContract } from "./contracts/sessions.contract.js";
47
48
  import { settingsContract } from "./contracts/settings.contract.js";
48
49
  import { sealContract } from "./contracts/seal.contract.js";
49
50
  import { shareContract } from "./contracts/share.contract.js";
50
- import { sharingContract } from "./contracts/sharing.contract.js";
51
51
  import { skillsContract } from "./contracts/skills.contract.js";
52
52
  import { systemContract } from "./contracts/system.contract.js";
53
53
  import { translatorContract } from "./contracts/translator.contract.js";
@@ -81,6 +81,7 @@ export const sandboxContract: {
81
81
  extensions: typeof extensionsContract;
82
82
  git: typeof gitContract;
83
83
  history: typeof historyContract;
84
+ hub: typeof hubContract;
84
85
  intentic: typeof intenticContract;
85
86
  inventory: typeof inventoryContract;
86
87
  issues: typeof issuesContract;
@@ -106,7 +107,6 @@ export const sandboxContract: {
106
107
  settings: typeof settingsContract;
107
108
  seal: typeof sealContract;
108
109
  share: typeof shareContract;
109
- sharing: typeof sharingContract;
110
110
  skills: typeof skillsContract;
111
111
  system: typeof systemContract;
112
112
  translator: typeof translatorContract;
@@ -134,6 +134,7 @@ export const sandboxContract: {
134
134
  extensions: extensionsContract,
135
135
  git: gitContract,
136
136
  history: historyContract,
137
+ hub: hubContract,
137
138
  intentic: intenticContract,
138
139
  inventory: inventoryContract,
139
140
  issues: issuesContract,
@@ -159,7 +160,6 @@ export const sandboxContract: {
159
160
  settings: settingsContract,
160
161
  seal: sealContract,
161
162
  share: shareContract,
162
- sharing: sharingContract,
163
163
  skills: skillsContract,
164
164
  system: systemContract,
165
165
  translator: translatorContract,
@@ -0,0 +1,36 @@
1
+ import { z } from "zod";
2
+ import { MessageReceiptSchema } from "../../schemas/agent.js";
3
+ import { TurnErrandSchema } from "../../schemas/speaker.js";
4
+
5
+ // The wake door: words the runner's own sandbox has for a conversation its parent dispatched there (a watch that fired,
6
+ // a background job that ended, a child's report), handed to the parent, which owns the conversation. The parent says
7
+ // them as it would its own wake, so the turn they start is dispatched from the parent like any other: the parent's card,
8
+ // board and record follow it, and its work comes back to land. Kept apart from runner-protocol.ts, which schemas/agent.ts
9
+ // imports and so cannot import the receipt from.
10
+ export const runnerWakeUrl = (parentUrl: string): string => `${parentUrl.replace(/\/$/, "")}/system/runners/wake`;
11
+
12
+ export const RunnerWakeRequestSchema = z.object({
13
+ conversationId: z.string().min(1),
14
+ prompt: z.string(),
15
+ // Nobody at a composer: the runner's sandbox, or an agent there (a child reporting).
16
+ voice: z.enum(["sandbox", "agent"]),
17
+ // The source of outside content in the prompt; whatever turn it reaches is tainted by it.
18
+ outside: z.string().optional(),
19
+ errand: TurnErrandSchema.optional(),
20
+ // What on the runner sent it (`automation:<id>`, a job), said on the row it opens.
21
+ source: z.string().optional(),
22
+ // The id its words wait under, so the same wake sent twice is delivered once.
23
+ messageId: z.string().optional(),
24
+ });
25
+ export type RunnerWakeRequest = z.infer<typeof RunnerWakeRequestSchema>;
26
+
27
+ // `forwarded: false`: the conversation is not one the parent dispatched to this runner, so the runner keeps the wake.
28
+ // Otherwise what the parent did with it: a receipt, or why it took nothing (`invalid`, `why`), as a local wake answers.
29
+ export const RunnerWakeAnswerSchema = z.union([
30
+ z.object({ forwarded: z.literal(false) }),
31
+ z.object({
32
+ forwarded: z.literal(true),
33
+ said: z.union([MessageReceiptSchema, z.object({ invalid: z.string() }), z.object({ why: z.string() })]),
34
+ }),
35
+ ]);
36
+ export type RunnerWakeAnswer = z.infer<typeof RunnerWakeAnswerSchema>;
@@ -88,14 +88,9 @@ import {
88
88
  } from "../../state/arrival.js";
89
89
  import { DefinitionDiffSchema, DefinitionExportSchema, WorkspacePublishResultSchema, WorkspacePublishSchema, WorkspaceRemoteSchema } from "../../state/definition.js";
90
90
  import {
91
- RunnerCredentialRefreshRequestSchema,
92
- RunnerCredentialRefreshSchema,
93
- RunnerCredentialRequestSchema,
94
- RunnerCredentialSchema,
95
91
  RunnerDefinitionAppliedSchema,
96
92
  RunnersListSchema,
97
93
  } from "../doors/runner-protocol.js";
98
- import { LinkAccountCopySchema, LinkAccountsSchema, SharedAccountRefSchema } from "../../schemas/providers/account-sharing.js";
99
94
  import type { RawRouteKey } from "./raw-routes.js";
100
95
 
101
96
  // What a raw route that answers plain JSON takes and answers, under its RAW_ROUTES key. `input` is the JSON body a write
@@ -211,11 +206,6 @@ export const RAW_JSON_ROUTES = {
211
206
  "POST /link/operate/write": { input: LinkWriteSchema, output: LinkWriteAnswerSchema },
212
207
  "POST /diagnostics": { input: DiagnosticsAskSchema, output: DiagnosticsAnswerSchema },
213
208
  "GET /fleet/{handle}/bundle": { output: ConversationBundleSchema },
214
- // An accounts link: what it may use, one static key's copy, and a lent sign-in's per-turn credential.
215
- "GET /link/accounts": { output: LinkAccountsSchema },
216
- "POST /link/accounts/copy": { input: SharedAccountRefSchema, output: LinkAccountCopySchema },
217
- "POST /link/credentials": { input: RunnerCredentialRequestSchema, output: RunnerCredentialSchema },
218
- "POST /link/credentials/refresh": { input: RunnerCredentialRefreshRequestSchema, output: RunnerCredentialRefreshSchema },
219
209
  "GET /system/control/tokens": { output: ControlTokensListSchema },
220
210
  "POST /system/control/tokens": { input: ControlTokenMintSchema, output: ControlTokenMintedSchema },
221
211
  "DELETE /system/control/tokens/{id}": { output: OkSchema },
@@ -270,6 +270,8 @@ export const RAW_ROUTES = {
270
270
  "POST /system/runners/git/{repo}/git-receive-pack": { auth: "door", control: "never", lane: "bulk" },
271
271
  "POST /system/runners/credentials": { auth: "door", control: "never" },
272
272
  "POST /system/runners/credentials/refresh": { auth: "door", control: "never" },
273
+ // A runner's wake for a conversation dispatched there (runner-wake.ts): said here, so its turn is the parent's.
274
+ "POST /system/runners/wake": { auth: "door", control: "never" },
273
275
  [`ALL ${runnerTranslatorPath}/*` as const]: { auth: "door", control: "never" },
274
276
  // The privacy shield's gateway: every shielded runtime's model requests, on the signed session its base URL carries
275
277
  // (privacy/gateway/session-token.ts), which names the provider and the only upstream it may forward to. Held open
@@ -314,13 +316,6 @@ export const RAW_ROUTES = {
314
316
  "POST /link/operate/exec/{id}/stop": { auth: "door", control: "never" },
315
317
  "POST /link/operate/read": { auth: "door", control: "never" },
316
318
  "POST /link/operate/write": { auth: "door", control: "never" },
317
- // An accounts link's doors (schemas/providers/account-sharing.ts): the accounts its terms name, a static key's copy,
318
- // and a lent sign-in's access token per turn, re-minted mid-turn. The refresh token never leaves; each door checks the
319
- // link token itself and answers only for what the terms name.
320
- "GET /link/accounts": { auth: "door", control: "never" },
321
- "POST /link/accounts/copy": { auth: "door", control: "never" },
322
- "POST /link/credentials": { auth: "door", control: "never" },
323
- "POST /link/credentials/refresh": { auth: "door", control: "never" },
324
319
  "POST /system/control/tokens": { control: "never" },
325
320
  "GET /system/control/tokens": { floor: "maintainer", control: "never" },
326
321
  "DELETE /system/control/tokens/{id}": { control: "never" },
@@ -139,6 +139,14 @@ const AgentTurnFieldsSchema = z.object({
139
139
  .describe(
140
140
  "Which of that provider's connected accounts pays for the turn. Leave it out to continue on the account the conversation runs on, or, for its first turn on this provider, to take whichever account can serve with the most room. To move a running conversation, use `switchAccount`.",
141
141
  ),
142
+ // A person's hand pick outranks the records: a usage reading or a refusal on file can be stale (a limit reset claimed,
143
+ // a plan upgraded), and an account moved off before anything was sent can never prove it (turn-facts.ts accountRouteOf).
144
+ accountPicked: z
145
+ .boolean()
146
+ .optional()
147
+ .describe(
148
+ "Set when a person picked `account` by hand for this turn: it runs there even where the sandbox's records call that account's allowance spent or its access refused, and the provider's own answer decides. Leave it out to let the sandbox move the turn off an account its records say cannot serve.",
149
+ ),
142
150
  // Distinct from `account` (who pays): whose name the turn posts as; absent means something different for each
143
151
  // mode.
144
152
  actsAs: entryId.optional().describe("Which persona the turn speaks as out in the world. Not the same as which account pays for it."),
@@ -354,12 +354,6 @@ export const LinkConfigSchema = z.object({
354
354
  token: z.string().min(1).describe("The link token that sandbox minted for this one. Stored, never echoed back."),
355
355
  name: z.string().max(100).optional().describe("What the other sandbox is called, as its owner named it."),
356
356
  sandboxId: z.string().max(100).optional().describe("The other sandbox's id on the owner's account."),
357
- purpose: z
358
- .enum(["tasks", "accounts"])
359
- .optional()
360
- .describe(
361
- "What the link is for: tasks to hand over (absent), or model accounts this sandbox borrows from that one (schemas/providers/account-sharing.ts), which mounts no delegate tool.",
362
- ),
363
357
  });
364
358
  export type LinkConfig = z.infer<typeof LinkConfigSchema>;
365
359
  export type McpConfig = z.infer<typeof McpConfigSchema>;
@@ -0,0 +1,28 @@
1
+ import { KEYRING_NAME_RE } from "./keyring.js";
2
+ import { ConnectionEnvelopeSchema, hubEntryName, hubHostOf, isHubEntryName, wantOfItem, withoutHubEntries } from "./connection-hub.js";
3
+
4
+ // A hub entry is found by its host and kept apart from the copies an agent spends, so these rules are what makes a saved
5
+ // connection reachable from another sandbox and unreachable as a raw value.
6
+
7
+ test("a connector's card is asked for by its connector alone; a tool server or endpoint by its kind", () => {
8
+ const github = { type: "card", id: "github", kind: "cli", connector: "github", config: { provider: "github", token: "t" } } as const;
9
+ expect(hubHostOf(wantOfItem(github))).toBe("github.cli.connections.invalid");
10
+ expect(hubHostOf({ type: "card", kind: "cli", connector: "cloudflare" })).not.toBe(hubHostOf(wantOfItem(github)));
11
+ expect(hubHostOf(wantOfItem({ type: "card", id: "notion", kind: "mcp", config: { url: "https://mcp.notion.com" } }))).toBe("mcp.connections.invalid");
12
+ expect(hubHostOf({ type: "account", provider: "cursor" })).toBe("cursor.account.connections.invalid");
13
+ });
14
+
15
+ test("an entry name is a keyring name that says what it holds, and only those are the hub's", () => {
16
+ const name = hubEntryName({ type: "card", id: "gh", kind: "cli", connector: "git-hub", config: {} }, "a1f3");
17
+ expect(name).toBe("CONNECTION_GIT_HUB_A1F3");
18
+ expect(KEYRING_NAME_RE.test(name)).toBe(true);
19
+ expect(isHubEntryName(name)).toBe(true);
20
+ expect(withoutHubEntries({ [name]: "{}", VPN_PASSWORD: "x" })).toEqual({ VPN_PASSWORD: "x" });
21
+ });
22
+
23
+ test("an envelope with a field this build does not know is refused rather than half read", () => {
24
+ const envelope = { intentic: "connection", v: 1, label: "Cursor", from: { sandbox: "dev", at: 1 }, item: { type: "account", provider: "cursor", account: { apiKey: "k" } } };
25
+ expect(ConnectionEnvelopeSchema.safeParse(envelope).success).toBe(true);
26
+ expect(ConnectionEnvelopeSchema.safeParse({ ...envelope, extra: true }).success).toBe(false);
27
+ expect(ConnectionEnvelopeSchema.safeParse({ ...envelope, item: { ...envelope.item, provider: "claude" } }).success).toBe(false);
28
+ });