@intentic/sandbox-contract 1.432.0 → 1.434.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.
- package/README.md +15 -0
- package/dist/contracts/agent.contract.d.ts +252 -72
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +67 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/approvals.contract.d.ts +35 -0
- package/dist/contracts/approvals.contract.d.ts.map +1 -1
- package/dist/contracts/approvals.contract.js +13 -3
- package/dist/contracts/approvals.contract.js.map +1 -1
- package/dist/contracts/automations.contract.d.ts +1 -0
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +3 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +4 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.d.ts +198 -0
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +156 -36
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/seal.contract.d.ts +5 -0
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +22 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +16 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/stack-grants.contract.d.ts +22 -0
- package/dist/contracts/stack-grants.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +7 -4
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +88 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-transcript.d.ts +22 -0
- package/dist/events/agent-transcript.d.ts.map +1 -1
- package/dist/events/system-events.d.ts +4 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +110 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/ids/conversation-ids.d.ts.map +1 -1
- package/dist/ids/conversation-ids.js.map +1 -1
- package/dist/protocol/raw/extension-protocol.d.ts +116 -0
- package/dist/protocol/raw/extension-protocol.d.ts.map +1 -1
- package/dist/protocol/raw/extension-protocol.js +17 -1
- package/dist/protocol/raw/extension-protocol.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +2974 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +39 -0
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +179 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +41 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/protocol/s2s/address.d.ts +53 -0
- package/dist/protocol/s2s/address.d.ts.map +1 -0
- package/dist/protocol/s2s/address.js +111 -0
- package/dist/protocol/s2s/address.js.map +1 -0
- package/dist/protocol/s2s/attestation.d.ts +41 -0
- package/dist/protocol/s2s/attestation.d.ts.map +1 -0
- package/dist/protocol/s2s/attestation.js +96 -0
- package/dist/protocol/s2s/attestation.js.map +1 -0
- package/dist/protocol/s2s/canonical.d.ts +10 -0
- package/dist/protocol/s2s/canonical.d.ts.map +1 -0
- package/dist/protocol/s2s/canonical.js +94 -0
- package/dist/protocol/s2s/canonical.js.map +1 -0
- package/dist/protocol/s2s/envelope.d.ts +40 -0
- package/dist/protocol/s2s/envelope.d.ts.map +1 -0
- package/dist/protocol/s2s/envelope.js +116 -0
- package/dist/protocol/s2s/envelope.js.map +1 -0
- package/dist/protocol/s2s/extension-sign.d.ts +21 -0
- package/dist/protocol/s2s/extension-sign.d.ts.map +1 -0
- package/dist/protocol/s2s/extension-sign.js +41 -0
- package/dist/protocol/s2s/extension-sign.js.map +1 -0
- package/dist/protocol/s2s/identity-doc.d.ts +50 -0
- package/dist/protocol/s2s/identity-doc.d.ts.map +1 -0
- package/dist/protocol/s2s/identity-doc.js +89 -0
- package/dist/protocol/s2s/identity-doc.js.map +1 -0
- package/dist/protocol/s2s/index.d.ts +12 -0
- package/dist/protocol/s2s/index.d.ts.map +1 -0
- package/dist/protocol/s2s/index.js +12 -0
- package/dist/protocol/s2s/index.js.map +1 -0
- package/dist/protocol/s2s/kem.d.ts +15 -0
- package/dist/protocol/s2s/kem.d.ts.map +1 -0
- package/dist/protocol/s2s/kem.js +34 -0
- package/dist/protocol/s2s/kem.js.map +1 -0
- package/dist/protocol/s2s/keys.d.ts +34 -0
- package/dist/protocol/s2s/keys.d.ts.map +1 -0
- package/dist/protocol/s2s/keys.js +81 -0
- package/dist/protocol/s2s/keys.js.map +1 -0
- package/dist/protocol/s2s/passkey-cosign.d.ts +44 -0
- package/dist/protocol/s2s/passkey-cosign.d.ts.map +1 -0
- package/dist/protocol/s2s/passkey-cosign.js +139 -0
- package/dist/protocol/s2s/passkey-cosign.js.map +1 -0
- package/dist/protocol/s2s/session.d.ts +61 -0
- package/dist/protocol/s2s/session.d.ts.map +1 -0
- package/dist/protocol/s2s/session.js +98 -0
- package/dist/protocol/s2s/session.js.map +1 -0
- package/dist/protocol/s2s/sign.d.ts +12 -0
- package/dist/protocol/s2s/sign.d.ts.map +1 -0
- package/dist/protocol/s2s/sign.js +33 -0
- package/dist/protocol/s2s/sign.js.map +1 -0
- package/dist/schemas/agents-list.d.ts +2 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +4 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/approvals.d.ts +100 -0
- package/dist/schemas/approvals.d.ts.map +1 -1
- package/dist/schemas/approvals.js +21 -0
- package/dist/schemas/approvals.js.map +1 -1
- package/dist/schemas/automations.d.ts +2 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +1 -1
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +1 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/command-admission.d.ts +6 -0
- package/dist/schemas/command-admission.d.ts.map +1 -1
- package/dist/schemas/command-admission.js +2 -1
- package/dist/schemas/command-admission.js.map +1 -1
- package/dist/schemas/contact-need.d.ts +50 -0
- package/dist/schemas/contact-need.d.ts.map +1 -0
- package/dist/schemas/contact-need.js +19 -0
- package/dist/schemas/contact-need.js.map +1 -0
- package/dist/schemas/contacts-settings.d.ts +5 -0
- package/dist/schemas/contacts-settings.d.ts.map +1 -0
- package/dist/schemas/contacts-settings.js +11 -0
- package/dist/schemas/contacts-settings.js.map +1 -0
- package/dist/schemas/extension-updates.d.ts +8 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -1
- package/dist/schemas/issues.d.ts +2 -0
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +1 -0
- package/dist/schemas/issues.js.map +1 -1
- package/dist/schemas/links.d.ts +8 -0
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/links.js +4 -0
- package/dist/schemas/links.js.map +1 -1
- package/dist/schemas/need-kinds.d.ts +2 -1
- package/dist/schemas/need-kinds.d.ts.map +1 -1
- package/dist/schemas/need-kinds.js +2 -2
- package/dist/schemas/need-kinds.js.map +1 -1
- package/dist/schemas/needs.d.ts +156 -13
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +5 -12
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/redirect-need.d.ts +15 -0
- package/dist/schemas/redirect-need.d.ts.map +1 -0
- package/dist/schemas/redirect-need.js +14 -0
- package/dist/schemas/redirect-need.js.map +1 -0
- package/dist/schemas/s2s-identity.d.ts +521 -0
- package/dist/schemas/s2s-identity.d.ts.map +1 -0
- package/dist/schemas/s2s-identity.js +208 -0
- package/dist/schemas/s2s-identity.js.map +1 -0
- package/dist/schemas/s2s-views.d.ts +2127 -0
- package/dist/schemas/s2s-views.d.ts.map +1 -0
- package/dist/schemas/s2s-views.js +217 -0
- package/dist/schemas/s2s-views.js.map +1 -0
- package/dist/schemas/s2s-wire.d.ts +1616 -0
- package/dist/schemas/s2s-wire.d.ts.map +1 -0
- package/dist/schemas/s2s-wire.js +276 -0
- package/dist/schemas/s2s-wire.js.map +1 -0
- package/dist/schemas/s2s.d.ts +5 -0
- package/dist/schemas/s2s.d.ts.map +1 -0
- package/dist/schemas/s2s.js +5 -0
- package/dist/schemas/s2s.js.map +1 -0
- package/dist/schemas/settings.d.ts +16 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +2 -0
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/terminal.d.ts +2 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +4 -0
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/schemas/vpn.d.ts +4 -0
- package/dist/schemas/vpn.d.ts.map +1 -1
- package/dist/schemas/vpn.js +9 -0
- package/dist/schemas/vpn.js.map +1 -1
- package/dist/state/auth-state.d.ts.map +1 -1
- package/dist/state/auth-state.js +7 -0
- package/dist/state/auth-state.js.map +1 -1
- package/dist/state/definition.d.ts +18 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/package.json +20 -5
- package/src/contracts/approvals.contract.ts +24 -3
- package/src/ids/conversation-ids.test.ts +22 -3
- package/src/ids/conversation-ids.ts +5 -7
- package/src/protocol/ingress-contract.fixture.json +6 -1
- package/src/protocol/raw/extension-protocol.ts +45 -1
- package/src/protocol/raw/raw-json-routes.ts +85 -0
- package/src/protocol/raw/raw-routes.ts +66 -3
- package/src/protocol/s2s/address.test.ts +157 -0
- package/src/protocol/s2s/address.ts +193 -0
- package/src/protocol/s2s/attestation.test.ts +262 -0
- package/src/protocol/s2s/attestation.ts +173 -0
- package/src/protocol/s2s/canonical.test.ts +70 -0
- package/src/protocol/s2s/canonical.ts +119 -0
- package/src/protocol/s2s/envelope.test.ts +162 -0
- package/src/protocol/s2s/envelope.ts +194 -0
- package/src/protocol/s2s/extension-sign.test.ts +117 -0
- package/src/protocol/s2s/extension-sign.ts +76 -0
- package/src/protocol/s2s/identity-doc.test.ts +187 -0
- package/src/protocol/s2s/identity-doc.ts +169 -0
- package/src/protocol/s2s/index.ts +15 -0
- package/src/protocol/s2s/kem.ts +62 -0
- package/src/protocol/s2s/keys.test.ts +76 -0
- package/src/protocol/s2s/keys.ts +155 -0
- package/src/protocol/s2s/passkey-cosign.test.ts +98 -0
- package/src/protocol/s2s/passkey-cosign.testing.ts +86 -0
- package/src/protocol/s2s/passkey-cosign.ts +192 -0
- package/src/protocol/s2s/s2s.testing.ts +22 -0
- package/src/protocol/s2s/session.test.ts +133 -0
- package/src/protocol/s2s/session.ts +179 -0
- package/src/protocol/s2s/sign.test.ts +66 -0
- package/src/protocol/s2s/sign.ts +53 -0
- package/src/schemas/approvals.ts +41 -0
- package/src/schemas/automations.ts +4 -3
- package/src/schemas/command-admission.ts +4 -1
- package/src/schemas/contact-need.ts +26 -0
- package/src/schemas/contacts-settings.ts +16 -0
- package/src/schemas/issues.ts +1 -0
- package/src/schemas/links.ts +4 -0
- package/src/schemas/need-kinds.ts +2 -2
- package/src/schemas/needs.ts +5 -18
- package/src/schemas/redirect-need.ts +19 -0
- package/src/schemas/s2s-identity.ts +329 -0
- package/src/schemas/s2s-views.ts +326 -0
- package/src/schemas/s2s-wire.ts +401 -0
- package/src/schemas/s2s.test.ts +175 -0
- package/src/schemas/s2s.ts +9 -0
- package/src/schemas/settings.ts +2 -0
- package/src/schemas/terminal.ts +6 -0
- package/src/schemas/version-seam.test.ts +9 -0
- package/src/schemas/vpn.ts +13 -0
- package/src/state/auth-state.ts +13 -0
package/dist/schemas/vpn.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export declare const FortinetVpnConfigSchema: z.ZodObject<{
|
|
|
27
27
|
on: "on";
|
|
28
28
|
}>>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
+
export declare const IPSEC_MTU_MIN = 576;
|
|
31
|
+
export declare const IPSEC_MTU_MAX = 1500;
|
|
30
32
|
export declare const IpsecVpnConfigSchema: z.ZodObject<{
|
|
31
33
|
provider: z.ZodLiteral<"ipsec">;
|
|
32
34
|
server: z.ZodString;
|
|
@@ -57,6 +59,7 @@ export declare const IpsecVpnConfigSchema: z.ZodObject<{
|
|
|
57
59
|
on: "on";
|
|
58
60
|
}>>;
|
|
59
61
|
routedNetworks: z.ZodDefault<z.ZodString>;
|
|
62
|
+
mtu: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
60
63
|
autoConnect: z.ZodDefault<z.ZodEnum<{
|
|
61
64
|
off: "off";
|
|
62
65
|
on: "on";
|
|
@@ -111,6 +114,7 @@ export declare const VpnConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
111
114
|
on: "on";
|
|
112
115
|
}>>;
|
|
113
116
|
routedNetworks: z.ZodDefault<z.ZodString>;
|
|
117
|
+
mtu: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
114
118
|
autoConnect: z.ZodDefault<z.ZodEnum<{
|
|
115
119
|
off: "off";
|
|
116
120
|
on: "on";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpn.d.ts","sourceRoot":"","sources":["../../src/schemas/vpn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iBAAiB;;;;EAA6C,CAAC;AAC5E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAI5D,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,OAA2D,CAAC;AAKpH,eAAO,MAAM,wBAAwB;;;;;;;iBAKnC,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAYlC,CAAC;
|
|
1
|
+
{"version":3,"file":"vpn.d.ts","sourceRoot":"","sources":["../../src/sch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;;;;;;;;;;;;;;;;;;;;;;;;iBAIxB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;iBAOhC,CAAC;AACH,eAAO,MAAM,gBAAgB;;iBAAyD,CAAC;AAGvF,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;iBA+BtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBAElC,CAAC"}
|
package/dist/schemas/vpn.js
CHANGED
|
@@ -20,6 +20,9 @@ export const FortinetVpnConfigSchema = z.object({
|
|
|
20
20
|
realm: z.string().min(1).optional(),
|
|
21
21
|
autoConnect,
|
|
22
22
|
});
|
|
23
|
+
export const IPSEC_MTU_MIN = 576;
|
|
24
|
+
export const IPSEC_MTU_MAX = 1500;
|
|
25
|
+
const IPSEC_MTU_RANGE = `The tunnel MTU is a packet size between ${IPSEC_MTU_MIN} and ${IPSEC_MTU_MAX} bytes, like 1300.`;
|
|
23
26
|
export const IpsecVpnConfigSchema = z.object({
|
|
24
27
|
provider: z.literal("ipsec"),
|
|
25
28
|
server: z.string().min(1),
|
|
@@ -41,6 +44,12 @@ export const IpsecVpnConfigSchema = z.object({
|
|
|
41
44
|
.every((entry) => z.cidrv4().safeParse(entry).success || z.cidrv6().safeParse(entry).success), {
|
|
42
45
|
message: "Routed networks is a comma-separated list of CIDRs, like 10.0.0.0/8,192.168.0.0/16. A single host needs its prefix too (192.168.0.168/32). Leave it at 0.0.0.0/0 to send everything through the gateway.",
|
|
43
46
|
}),
|
|
47
|
+
mtu: z.coerce
|
|
48
|
+
.number()
|
|
49
|
+
.int()
|
|
50
|
+
.min(IPSEC_MTU_MIN, { message: IPSEC_MTU_RANGE })
|
|
51
|
+
.max(IPSEC_MTU_MAX, { message: IPSEC_MTU_RANGE })
|
|
52
|
+
.optional(),
|
|
44
53
|
autoConnect,
|
|
45
54
|
});
|
|
46
55
|
export const VpnConfigSchema = z.discriminatedUnion("provider", [WireguardVpnConfigSchema, FortinetVpnConfigSchema, IpsecVpnConfigSchema]);
|
package/dist/schemas/vpn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpn.js","sourceRoot":"","sources":["../../src/schemas/vpn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;AAE5E,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAGxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAW,EAAE,CAAC,6BAA6B,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;AACpH,MAAM,wBAAwB,GAAG,CAA8B,KAAQ,EAAE,KAAa,EAAK,EAAE,CACzF,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE;IACrD,OAAO,EAAE,4LAA4L,KAAK,yCAAyC;CACtP,CAAiB,CAAC;AACvB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAEhC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,WAAW;CACd,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,OAAO,CAA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E,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC7E,OAAO,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,qIAAqI,CACxI;IAEL,KAAK,EAAE,CAAC;SACH,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,CACL,iKAAiK,CACpK;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,QAAQ,CAAC,qEAAqE,CAAC;CACpI,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,
|
|
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,EAsGhD,CAAC"}
|
package/dist/state/auth-state.js
CHANGED
|
@@ -10,6 +10,7 @@ export const AUTH_STATE_FILES = [
|
|
|
10
10
|
{ path: "capability-secrets.json", portability: "secret" },
|
|
11
11
|
{ path: "extension-secrets.json", portability: "secret" },
|
|
12
12
|
{ path: "route-secrets.json", portability: "secret" },
|
|
13
|
+
{ path: "s2s-secrets.json", portability: "secret" },
|
|
13
14
|
{ path: "privacy-vault.json", portability: "secret" },
|
|
14
15
|
{ path: "privacy-images/", portability: "secret" },
|
|
15
16
|
{ path: "privacy-leaks.json", portability: "secret" },
|
|
@@ -28,6 +29,11 @@ export const AUTH_STATE_FILES = [
|
|
|
28
29
|
{ path: "keyring-sync-mailbox.json", portability: "identity" },
|
|
29
30
|
{ path: "keyring-needs.json", portability: "identity" },
|
|
30
31
|
{ path: "connection-hub.json", portability: "identity" },
|
|
32
|
+
{
|
|
33
|
+
path: "sandbox-identity.json",
|
|
34
|
+
portability: "identity",
|
|
35
|
+
note: "Contacts see a new key: recover the old identity with its recovery key, or ask them to trust the new one.",
|
|
36
|
+
},
|
|
31
37
|
{ path: "broker-session.key", portability: "identity" },
|
|
32
38
|
{ path: "privacy-gateway.key", portability: "identity" },
|
|
33
39
|
{ path: "org-policy.json", portability: "identity" },
|
|
@@ -38,6 +44,7 @@ export const AUTH_STATE_FILES = [
|
|
|
38
44
|
{ path: "gemini/models.json", portability: "derived" },
|
|
39
45
|
{ path: "endpoints/", portability: "derived" },
|
|
40
46
|
{ path: "translator-refused-models.json", portability: "derived" },
|
|
47
|
+
{ path: "translator-verification.json", portability: "derived" },
|
|
41
48
|
{ path: "keyring-released.json", portability: "derived" },
|
|
42
49
|
{ path: "opencode-shell/", portability: "derived" },
|
|
43
50
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-state.js","sourceRoot":"","sources":["../../src/state/auth-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAkBhD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,SAAS,gBAAsD,CAAC;AAGzG,MAAM,CAAC,MAAM,gBAAgB,GAAyB;IAIlD,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,OAAO,EAAE;IAEvD,EAAE,IAAI,EAAE,mBAAmB,EAAE,WAAW,EAAE,OAAO,EAAE;IAEnD,EAAE,IAAI,EAAE,qBAAqB,EAAE,W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AoB,EAAE,WAAW,EAAE,UAAU,EAAE;IAGvD,EAAE,IAAI,EAAE,qBAAqB,EAAE,WAAW,EAAE,UAAU,EAAE;IAGxD;QACI,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,2GAA2G;KACpH;IAED,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,UAAU,EAAE;IACvD,EAAE,IAAI,EAAE,qBAAqB,EAAE,WAAW,EAAE,UAAU,EAAE;IAExD,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE;IAKpD,EAAE,IAAI,EAAE,mBAAmB,EAAE,WAAW,EAAE,SAAS,EAAE;IACrD,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,SAAS,EAAE;IACtD,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,SAAS,EAAE;IACtD,EAAE,IAAI,EAAE,mBAAmB,EAAE,WAAW,EAAE,SAAS,EAAE;IACrD,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,SAAS,EAAE;IAEtD,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE;IAG9C,EAAE,IAAI,EAAE,gCAAgC,EAAE,WAAW,EAAE,SAAS,EAAE;IAGlE,EAAE,IAAI,EAAE,8BAA8B,EAAE,WAAW,EAAE,SAAS,EAAE;IAEhE,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,SAAS,EAAE;IAEzD,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE;CACtD,CAAC"}
|
|
@@ -155,6 +155,7 @@ export declare const SandboxDefinitionSchema: z.ZodObject<{
|
|
|
155
155
|
on: "on";
|
|
156
156
|
}>>;
|
|
157
157
|
routedNetworks: z.ZodDefault<z.ZodString>;
|
|
158
|
+
mtu: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
158
159
|
autoConnect: z.ZodDefault<z.ZodEnum<{
|
|
159
160
|
off: "off";
|
|
160
161
|
on: "on";
|
|
@@ -598,10 +599,14 @@ export declare const SandboxDefinitionSchema: z.ZodObject<{
|
|
|
598
599
|
listener: "allow" | "deny" | "hold";
|
|
599
600
|
webchat: "allow" | "deny" | "hold";
|
|
600
601
|
issues: "allow" | "deny" | "hold";
|
|
602
|
+
contact: "allow" | "deny" | "hold";
|
|
601
603
|
workspace: "allow" | "deny" | "hold";
|
|
602
604
|
workflow: "allow" | "deny";
|
|
603
605
|
};
|
|
604
606
|
actionRules: Record<string, "allow" | "deny" | "hold">;
|
|
607
|
+
contacts: {
|
|
608
|
+
agentMayAccept: boolean;
|
|
609
|
+
};
|
|
605
610
|
commandJudge: "off" | "on" | "watch";
|
|
606
611
|
projectInstalls: "ask" | "automatic" | "never";
|
|
607
612
|
subagentsAtOnce: number;
|
|
@@ -767,10 +772,14 @@ export declare const SandboxDefinitionSchema: z.ZodObject<{
|
|
|
767
772
|
listener: "allow" | "deny" | "hold";
|
|
768
773
|
webchat: "allow" | "deny" | "hold";
|
|
769
774
|
issues: "allow" | "deny" | "hold";
|
|
775
|
+
contact: "allow" | "deny" | "hold";
|
|
770
776
|
workspace: "allow" | "deny" | "hold";
|
|
771
777
|
workflow: "allow" | "deny";
|
|
772
778
|
};
|
|
773
779
|
actionRules: Record<string, "allow" | "deny" | "hold">;
|
|
780
|
+
contacts: {
|
|
781
|
+
agentMayAccept: boolean;
|
|
782
|
+
};
|
|
774
783
|
commandJudge: "off" | "on" | "watch";
|
|
775
784
|
projectInstalls: "ask" | "automatic" | "never";
|
|
776
785
|
subagentsAtOnce: number;
|
|
@@ -968,6 +977,7 @@ export declare const BundleManifestSchema: z.ZodObject<{
|
|
|
968
977
|
on: "on";
|
|
969
978
|
}>>;
|
|
970
979
|
routedNetworks: z.ZodDefault<z.ZodString>;
|
|
980
|
+
mtu: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
971
981
|
autoConnect: z.ZodDefault<z.ZodEnum<{
|
|
972
982
|
off: "off";
|
|
973
983
|
on: "on";
|
|
@@ -1411,10 +1421,14 @@ export declare const BundleManifestSchema: z.ZodObject<{
|
|
|
1411
1421
|
listener: "allow" | "deny" | "hold";
|
|
1412
1422
|
webchat: "allow" | "deny" | "hold";
|
|
1413
1423
|
issues: "allow" | "deny" | "hold";
|
|
1424
|
+
contact: "allow" | "deny" | "hold";
|
|
1414
1425
|
workspace: "allow" | "deny" | "hold";
|
|
1415
1426
|
workflow: "allow" | "deny";
|
|
1416
1427
|
};
|
|
1417
1428
|
actionRules: Record<string, "allow" | "deny" | "hold">;
|
|
1429
|
+
contacts: {
|
|
1430
|
+
agentMayAccept: boolean;
|
|
1431
|
+
};
|
|
1418
1432
|
commandJudge: "off" | "on" | "watch";
|
|
1419
1433
|
projectInstalls: "ask" | "automatic" | "never";
|
|
1420
1434
|
subagentsAtOnce: number;
|
|
@@ -1580,10 +1594,14 @@ export declare const BundleManifestSchema: z.ZodObject<{
|
|
|
1580
1594
|
listener: "allow" | "deny" | "hold";
|
|
1581
1595
|
webchat: "allow" | "deny" | "hold";
|
|
1582
1596
|
issues: "allow" | "deny" | "hold";
|
|
1597
|
+
contact: "allow" | "deny" | "hold";
|
|
1583
1598
|
workspace: "allow" | "deny" | "hold";
|
|
1584
1599
|
workflow: "allow" | "deny";
|
|
1585
1600
|
};
|
|
1586
1601
|
actionRules: Record<string, "allow" | "deny" | "hold">;
|
|
1602
|
+
contacts: {
|
|
1603
|
+
agentMayAccept: boolean;
|
|
1604
|
+
};
|
|
1587
1605
|
commandJudge: "off" | "on" | "watch";
|
|
1588
1606
|
projectInstalls: "ask" | "automatic" | "never";
|
|
1589
1607
|
subagentsAtOnce: number;
|
|
@@ -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,MAA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KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/sandbox-contract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.434.0",
|
|
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",
|
|
@@ -140,6 +140,17 @@
|
|
|
140
140
|
"default": "./dist/protocol/peer-mcp-server.js"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
+
"./s2s": {
|
|
144
|
+
"types": "./dist/protocol/s2s/index.d.ts",
|
|
145
|
+
"import": {
|
|
146
|
+
"@intentic/src": "./src/protocol/s2s/index.ts",
|
|
147
|
+
"default": "./dist/protocol/s2s/index.js"
|
|
148
|
+
},
|
|
149
|
+
"require": {
|
|
150
|
+
"@intentic/src": "./src/protocol/s2s/index.ts",
|
|
151
|
+
"default": "./dist/protocol/s2s/index.js"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
143
154
|
"./tunnel-ids": {
|
|
144
155
|
"types": "./dist/ids/tunnel-ids.d.ts",
|
|
145
156
|
"import": {
|
|
@@ -395,10 +406,14 @@
|
|
|
395
406
|
}
|
|
396
407
|
},
|
|
397
408
|
"dependencies": {
|
|
398
|
-
"@intentic/base": "1.
|
|
399
|
-
"@intentic/constants": "1.
|
|
400
|
-
"@intentic/extension-manifest": "1.
|
|
401
|
-
"@intentic/registry": "1.
|
|
409
|
+
"@intentic/base": "1.434.0",
|
|
410
|
+
"@intentic/constants": "1.434.0",
|
|
411
|
+
"@intentic/extension-manifest": "1.434.0",
|
|
412
|
+
"@intentic/registry": "1.434.0",
|
|
413
|
+
"@noble/ciphers": "2.4.0",
|
|
414
|
+
"@noble/curves": "2.2.0",
|
|
415
|
+
"@noble/hashes": "2.4.0",
|
|
416
|
+
"@noble/post-quantum": "0.6.1",
|
|
402
417
|
"@orpc/contract": "1.16.1",
|
|
403
418
|
"zod": "4.6.7"
|
|
404
419
|
},
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ApprovalIdParamSchema,
|
|
4
|
+
ApprovalPasskeyOptionsSchema,
|
|
5
|
+
ApprovalsListSchema,
|
|
6
|
+
ApprovalUpsertSchema,
|
|
7
|
+
HookDigestParamSchema,
|
|
8
|
+
HookRequestsSchema,
|
|
9
|
+
} from "../schemas/approvals.js";
|
|
3
10
|
import { OkSchema } from "../schemas/shared.js";
|
|
4
11
|
|
|
5
12
|
// The sandbox's approvals queue (things the agent prepared and may not do until the owner says yes). The agent
|
|
@@ -21,10 +28,24 @@ export const approvalsContract = {
|
|
|
21
28
|
method: "POST",
|
|
22
29
|
path: "/approvals",
|
|
23
30
|
summary: "Approve, edit or retry one",
|
|
24
|
-
description:
|
|
31
|
+
description:
|
|
32
|
+
"All three are the same act with a different field changed, so they share one call. Send the item back as you want it. Approving an action with your passkey adds `passkey`, the assertion over the challenge `passkeyOptions` gave; an item whose `cosign` is `required` is approved only that way.",
|
|
25
33
|
})
|
|
26
|
-
.input(
|
|
34
|
+
.input(ApprovalUpsertSchema)
|
|
27
35
|
.output(OkSchema),
|
|
36
|
+
// (2026-11-28) The passkey ceremony's options for co-signing one action's yes: its challenge binds this sandbox, the
|
|
37
|
+
// item and its performer's digest, so the signature says a person approved exactly that.
|
|
38
|
+
passkeyOptions: procedure
|
|
39
|
+
.route({
|
|
40
|
+
method: "POST",
|
|
41
|
+
path: "/approvals/{id}/passkey",
|
|
42
|
+
summary: "Start approving one with your passkey",
|
|
43
|
+
description:
|
|
44
|
+
"The passkey request for approving this action: its challenge is the digest of exactly what will be done, and only your own passkeys on this sandbox may answer it. Send the answer back with the item when approving it.",
|
|
45
|
+
})
|
|
46
|
+
.meta({ panel: false, control: "never" })
|
|
47
|
+
.input(ApprovalIdParamSchema)
|
|
48
|
+
.output(ApprovalPasskeyOptionsSchema),
|
|
28
49
|
remove: procedure
|
|
29
50
|
.route({
|
|
30
51
|
method: "DELETE",
|
|
@@ -137,9 +137,28 @@ test("a drawn id under a subagent or link prefix still looks drawn, in either ge
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
test("
|
|
141
|
-
const
|
|
142
|
-
|
|
140
|
+
test("the word and each tail draw can change the generated id", () => {
|
|
141
|
+
const nextWord = Math.floor(2 ** 32 / CONVERSATION_WORDS.length);
|
|
142
|
+
const nextSymbol = Math.floor(2 ** 32 / TAIL_ALPHABET.length);
|
|
143
|
+
const draws = [
|
|
144
|
+
[0, 0, 0, 0, 0],
|
|
145
|
+
[nextWord, 0, 0, 0, 0],
|
|
146
|
+
[0, nextSymbol, 0, 0, 0],
|
|
147
|
+
[0, 0, nextSymbol, 0, 0],
|
|
148
|
+
[0, 0, 0, nextSymbol, 0],
|
|
149
|
+
[0, 0, 0, 0, nextSymbol],
|
|
150
|
+
];
|
|
151
|
+
const { remaining } = mockRandomValues(draws.flat());
|
|
152
|
+
|
|
153
|
+
expect(draws.map(newConversationId)).toEqual([
|
|
154
|
+
`${CONVERSATION_WORDS[0]}-2222`,
|
|
155
|
+
`${CONVERSATION_WORDS[1]}-2222`,
|
|
156
|
+
`${CONVERSATION_WORDS[0]}-3222`,
|
|
157
|
+
`${CONVERSATION_WORDS[0]}-2322`,
|
|
158
|
+
`${CONVERSATION_WORDS[0]}-2232`,
|
|
159
|
+
`${CONVERSATION_WORDS[0]}-2223`,
|
|
160
|
+
]);
|
|
161
|
+
expect(remaining).toEqual([]);
|
|
143
162
|
});
|
|
144
163
|
|
|
145
164
|
test("a CI fix id is the same string every time it is derived", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// A conversation's id is the most public string this app produces: the git branch, the worktree directory, the URL, and
|
|
2
|
-
// the card title. `word-tail`
|
|
3
|
-
//
|
|
2
|
+
// the card title. The `word-tail` form is short and must satisfy ConversationIdSchema. Sandbox-started conversations
|
|
3
|
+
// can use their own prefixed, derived ids.
|
|
4
4
|
|
|
5
5
|
import { CONVERSATION_WORDS } from "./conversation-words.js";
|
|
6
6
|
|
|
@@ -17,13 +17,12 @@ export const CONVERSATION_TITLE_MAX = 80;
|
|
|
17
17
|
export const clipTitle = (title: string): string =>
|
|
18
18
|
title.length <= CONVERSATION_TITLE_MAX ? title : `${title.slice(0, CONVERSATION_TITLE_MAX - 1).trimEnd()}…`;
|
|
19
19
|
|
|
20
|
-
// One word and a tail: `otter-k7mq`, about ten characters
|
|
21
|
-
// what a person reads and says; the tail is what keeps it unique.
|
|
20
|
+
// One word and a tail: `otter-k7mq`, about ten characters. The word is easy to say, and the tail makes collisions rare.
|
|
22
21
|
//
|
|
23
22
|
// The tail is lowercase on purpose. The id is also the branch and the worktree directory, and both reach Windows and
|
|
24
23
|
// macOS filesystems that fold case, where `otter-K7mq` and `otter-k7mq` would be one folder. So the tail's alphabet is
|
|
25
24
|
// base36 with the characters people misread dropped (0/o, 1/l/i): 31 symbols, four of them 923,521 values per word,
|
|
26
|
-
// and with the word list about 2^29 ids in all
|
|
25
|
+
// and with the word list about 2^29 ids in all.
|
|
27
26
|
export const TAIL_ALPHABET = "23456789abcdefghjkmnpqrstuvwxyz";
|
|
28
27
|
const TAIL_LENGTH = 4;
|
|
29
28
|
|
|
@@ -41,8 +40,7 @@ const randomBelow = (upperBound: number): number => {
|
|
|
41
40
|
}
|
|
42
41
|
};
|
|
43
42
|
|
|
44
|
-
// Draws uniformly via the platform CSPRNG
|
|
45
|
-
// get the same name.
|
|
43
|
+
// Draws uniformly via the platform CSPRNG so separate tabs can draw independently.
|
|
46
44
|
const pick = <T>(values: readonly T[]): T => values[randomBelow(values.length)]!;
|
|
47
45
|
|
|
48
46
|
// One TAIL_ALPHABET character per draw, all of which the id guard accepts.
|
|
@@ -64,7 +64,9 @@
|
|
|
64
64
|
"POST /system/runners/git/{repo}/git-upload-pack",
|
|
65
65
|
"POST /system/runners/git/{repo}/git-receive-pack",
|
|
66
66
|
"POST /account/drop",
|
|
67
|
-
"GET /account/inbox/{id}/files"
|
|
67
|
+
"GET /account/inbox/{id}/files",
|
|
68
|
+
"POST /s2s/inbox",
|
|
69
|
+
"GET /s2s/messages/{id}/files/{name}"
|
|
68
70
|
],
|
|
69
71
|
"lanes": [
|
|
70
72
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/workspace/media?path=a.mp4", "lane": "bulk" },
|
|
@@ -86,6 +88,9 @@
|
|
|
86
88
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "get", "path": "/workspace/raw?path=a", "lane": "bulk" },
|
|
87
89
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/account/drop?wake=home-abc", "lane": "bulk" },
|
|
88
90
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/account/inbox/drop-abc/files", "lane": "bulk" },
|
|
91
|
+
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/s2s/inbox?wake=s3cret", "lane": "bulk" },
|
|
92
|
+
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/s2s/messages/0190a5b2-0000-7000-8000-000000000000/files/plan.md", "lane": "bulk" },
|
|
93
|
+
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/s2s/session", "lane": "interactive" },
|
|
89
94
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/workspace/thumb?path=a.png", "lane": "interactive" },
|
|
90
95
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/workspace/upload-diff", "lane": "interactive" },
|
|
91
96
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/agents", "lane": "interactive" },
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EXTENSION_DECLARED_EVENTS,
|
|
3
|
+
EXTENSION_EXEC_CLASSES,
|
|
4
|
+
EXTENSION_FIRE_HANDLER,
|
|
5
|
+
EXTENSION_IDENTITY_VERBS,
|
|
6
|
+
EXTENSION_TURN_POWERS,
|
|
7
|
+
} from "@intentic/extension-manifest/permissions";
|
|
2
8
|
import { z } from "zod";
|
|
3
9
|
import { MemberTierSchema } from "../../schemas/shared.js";
|
|
4
10
|
import type { WebhookSignatureScheme } from "../../schemas/automations.js";
|
|
5
11
|
import { CiFeedEventSchema } from "../../schemas/ci.js";
|
|
12
|
+
import { HybridSigSchema, S2sFingerprintSchema, SandboxIdentitySchema } from "../../schemas/s2s-identity.js";
|
|
6
13
|
import { rawRouteUrl } from "./raw-routes.js";
|
|
7
14
|
|
|
8
15
|
// The wire between the daemon and an extension's own code, its backend in the shared host and its declared processes
|
|
@@ -432,6 +439,41 @@ export const extensionJobsUrl = (): string => rawRouteUrl("POST /extension/jobs"
|
|
|
432
439
|
export const extensionJobUrl = (id: string): string => rawRouteUrl("POST /extension/jobs/{id}", { id });
|
|
433
440
|
export const extensionActivityUrl = (): string => rawRouteUrl("POST /extension/activity");
|
|
434
441
|
|
|
442
|
+
/* (2026-11-28) THIS SANDBOX'S IDENTITY, as an extension's own code meets it (`api.identity` in @intentic/extension-api,
|
|
443
|
+
* docs/architecture/messages.md "Identity"). GET /extension/identity answers the sandbox's public identity document, as
|
|
444
|
+
* GET /s2s/identity serves it to anyone; every extension token reaches it undeclared. POST /extension/identity/sign has
|
|
445
|
+
* the daemon sign a record as this sandbox, refused (403) unless the manifest declares `sign` in `permissions.identity`:
|
|
446
|
+
* the extension never holds the key. The signature is hybrid, over the payload's canonical JSON, under the domain
|
|
447
|
+
* `ext:<publisher.name>/<purpose>` (protocol/s2s/extension-sign.ts), so anyone holding the document verifies it with
|
|
448
|
+
* `verifyExtensionPayload` and no extension's signature verifies as one of the core's. */
|
|
449
|
+
|
|
450
|
+
export const ExtensionIdentityVerbSchema = z.enum(EXTENSION_IDENTITY_VERBS);
|
|
451
|
+
|
|
452
|
+
// The ask: what the record is for and the record. The purpose is checked again by the door against
|
|
453
|
+
// EXTENSION_SIGN_PURPOSE (a lowercase word of up to 64 characters, dots and dashes inside: 400), and the payload's
|
|
454
|
+
// canonical JSON against EXTENSION_SIGN_PAYLOAD_MAX_BYTES (256 KiB: 413).
|
|
455
|
+
export const ExtensionIdentitySignSchema = z.object({
|
|
456
|
+
purpose: z.string().min(1).max(64).describe("What the record is for: a lowercase word of up to 64 characters, dots and dashes inside (`log.entry`)."),
|
|
457
|
+
payload: z.json().describe("The record, any JSON value, signed as its canonical JSON (keys sorted, no whitespace)."),
|
|
458
|
+
});
|
|
459
|
+
export type ExtensionIdentitySign = z.infer<typeof ExtensionIdentitySignSchema>;
|
|
460
|
+
|
|
461
|
+
// The answer: the domain signed under, the signature, and the document whose keys it verifies with, so the caller can
|
|
462
|
+
// publish all three together. `fingerprint` is the document's, the key set that signed.
|
|
463
|
+
export const ExtensionIdentitySignedSchema = z.object({
|
|
464
|
+
domain: z.string().describe("`ext:<publisher.name>/<purpose>`: the extension the daemon read off the token, and the purpose asked."),
|
|
465
|
+
sig: HybridSigSchema,
|
|
466
|
+
fingerprint: S2sFingerprintSchema,
|
|
467
|
+
document: SandboxIdentitySchema,
|
|
468
|
+
});
|
|
469
|
+
export type ExtensionIdentitySigned = z.infer<typeof ExtensionIdentitySignedSchema>;
|
|
470
|
+
|
|
471
|
+
// How many signatures one extension is answered in a minute; past it the door answers 429 with `Retry-After`.
|
|
472
|
+
export const EXTENSION_SIGN_PER_MINUTE = 600;
|
|
473
|
+
|
|
474
|
+
export const extensionIdentityUrl = (): string => rawRouteUrl("GET /extension/identity");
|
|
475
|
+
export const extensionIdentitySignUrl = (): string => rawRouteUrl("POST /extension/identity/sign");
|
|
476
|
+
|
|
435
477
|
/* (2026-11-27) HOSTED SLEEP, as an extension's own code meets it (`api.sleep` in @intentic/extension-api). A sandbox the
|
|
436
478
|
* platform hosts stops when nobody uses it, and is woken again by a request at one of its wake doors (api-contract's
|
|
437
479
|
* wake-schemas.ts): an enabled webhook automation's fire URL, or an extension's public route declaring `wakes: true`,
|
|
@@ -523,4 +565,6 @@ export const ExtensionDeclaredReachSchema = z.object({
|
|
|
523
565
|
fires: z.array(z.string()),
|
|
524
566
|
// (2026-11-26) Absent from a daemon before it: nothing declared.
|
|
525
567
|
turn: z.array(ExtensionTurnPowerSchema).default([]),
|
|
568
|
+
// (2026-11-28) Absent from a daemon before it: nothing declared.
|
|
569
|
+
identity: z.array(ExtensionIdentityVerbSchema).default([]),
|
|
526
570
|
});
|
|
@@ -98,6 +98,47 @@ import {
|
|
|
98
98
|
AccountSendSchema,
|
|
99
99
|
IssueAcceptedSchema,
|
|
100
100
|
} from "../../schemas/issues.js";
|
|
101
|
+
import {
|
|
102
|
+
S2sAttestationAcceptSchema,
|
|
103
|
+
S2sAttestationAskSchema,
|
|
104
|
+
S2sAttestationIssueSchema,
|
|
105
|
+
S2sAttestationsSchema,
|
|
106
|
+
S2sCallSealedSchema,
|
|
107
|
+
S2sContactAcceptInputSchema,
|
|
108
|
+
S2sContactAddSchema,
|
|
109
|
+
S2sContactBootstrapAnswerSchema,
|
|
110
|
+
S2sContactBootstrapRequestSchema,
|
|
111
|
+
S2sContactChangeSchema,
|
|
112
|
+
S2sContactSchema,
|
|
113
|
+
S2sContactsListSchema,
|
|
114
|
+
S2sContactTaskDecisionSchema,
|
|
115
|
+
S2sContactTaskSchema,
|
|
116
|
+
S2sContactTasksSchema,
|
|
117
|
+
S2sDomainInputSchema,
|
|
118
|
+
S2sEnvelopeSchema,
|
|
119
|
+
S2sInboxAcceptedSchema,
|
|
120
|
+
S2sLinkUpgradeAnswerSchema,
|
|
121
|
+
S2sLinkUpgradeRequestSchema,
|
|
122
|
+
S2sMeSchema,
|
|
123
|
+
S2sMessageSendOutcomeSchema,
|
|
124
|
+
S2sMessageSendSchema,
|
|
125
|
+
S2sOutboxSchema,
|
|
126
|
+
S2sPairedSchema,
|
|
127
|
+
S2sPairingAnswerSchema,
|
|
128
|
+
S2sPairingRequestSchema,
|
|
129
|
+
S2sPairingUpgradeAnswerSchema,
|
|
130
|
+
S2sPairingUpgradeRequestSchema,
|
|
131
|
+
S2sRecoverInputSchema,
|
|
132
|
+
S2sRecoveryMintedSchema,
|
|
133
|
+
S2sSessionAnswerSchema,
|
|
134
|
+
S2sSessionOpenSchema,
|
|
135
|
+
S2sTakenSchema,
|
|
136
|
+
S2sTakeSchema,
|
|
137
|
+
S2sThreadSchema,
|
|
138
|
+
S2sThreadsListSchema,
|
|
139
|
+
S2sTrustKeySchema,
|
|
140
|
+
SandboxIdentitySchema,
|
|
141
|
+
} from "../../schemas/s2s.js";
|
|
101
142
|
import { UploadManifestSchema, UploadSkipSchema } from "../../schemas/workspace/workspace-upload.js";
|
|
102
143
|
import {
|
|
103
144
|
ArrivalAbandonedSchema,
|
|
@@ -260,6 +301,50 @@ export const RAW_JSON_ROUTES = {
|
|
|
260
301
|
"POST /link/operate/exec/{id}/stop": { output: LinkExecStatusSchema },
|
|
261
302
|
"POST /link/operate/read": { input: LinkReadSchema, output: LinkReadAnswerSchema },
|
|
262
303
|
"POST /link/operate/write": { input: LinkWriteSchema, output: LinkWriteAnswerSchema },
|
|
304
|
+
// Sandbox-to-sandbox (schemas/s2s.ts): the doors another daemon calls; a call's input and answer are sealed, its
|
|
305
|
+
// method's own shapes inside (S2S_CALLS). A message's file (`GET /s2s/messages/{id}/files/{name}`) answers its bytes.
|
|
306
|
+
"GET /s2s/identity": { output: SandboxIdentitySchema },
|
|
307
|
+
"POST /s2s/inbox": { input: S2sEnvelopeSchema, output: S2sInboxAcceptedSchema },
|
|
308
|
+
"POST /s2s/session": { input: S2sSessionOpenSchema, output: S2sSessionAnswerSchema },
|
|
309
|
+
"POST /s2s/call/{method}": { input: S2sCallSealedSchema, output: S2sCallSealedSchema },
|
|
310
|
+
"POST /link/upgrade": { input: S2sLinkUpgradeRequestSchema, output: S2sLinkUpgradeAnswerSchema },
|
|
311
|
+
"POST /account/pairings/upgrade": { input: S2sPairingUpgradeRequestSchema, output: S2sPairingUpgradeAnswerSchema },
|
|
312
|
+
"POST /account/contact-bootstrap": { input: S2sContactBootstrapRequestSchema, output: S2sContactBootstrapAnswerSchema },
|
|
313
|
+
// The Messages tab's Identity section: every write answers the identity after it, but the recovery key, said once.
|
|
314
|
+
"GET /s2s/me": { output: S2sMeSchema },
|
|
315
|
+
"POST /s2s/me/domains": { input: S2sDomainInputSchema, output: S2sMeSchema },
|
|
316
|
+
"DELETE /s2s/me/domains/{domain}": { output: S2sMeSchema },
|
|
317
|
+
"POST /s2s/me/domains/{domain}/check": { output: S2sMeSchema },
|
|
318
|
+
"POST /s2s/me/rotate": { output: S2sMeSchema },
|
|
319
|
+
"POST /s2s/me/recovery": { output: S2sRecoveryMintedSchema },
|
|
320
|
+
"POST /s2s/me/recover": { input: S2sRecoverInputSchema, output: S2sMeSchema },
|
|
321
|
+
// Attestations: the list after each change; asking and issuing answer as a message's send does.
|
|
322
|
+
"GET /s2s/me/attestations": { output: S2sAttestationsSchema },
|
|
323
|
+
"POST /s2s/me/attestations": { input: S2sAttestationAcceptSchema, output: S2sAttestationsSchema },
|
|
324
|
+
"DELETE /s2s/me/attestations/{id}": { output: S2sAttestationsSchema },
|
|
325
|
+
"POST /s2s/me/attestations/ask": { input: S2sAttestationAskSchema, output: S2sMessageSendOutcomeSchema },
|
|
326
|
+
"POST /s2s/attestations/issue": { input: S2sAttestationIssueSchema, output: S2sMessageSendOutcomeSchema },
|
|
327
|
+
// Contacts: every write answers the contact after it.
|
|
328
|
+
"GET /s2s/contacts": { output: S2sContactsListSchema },
|
|
329
|
+
"POST /s2s/contacts/paired": { input: S2sPairedSchema, output: S2sContactSchema },
|
|
330
|
+
"POST /s2s/contacts": { input: S2sContactAddSchema, output: S2sContactSchema },
|
|
331
|
+
"POST /s2s/contacts/{id}": { input: S2sContactChangeSchema, output: S2sContactSchema },
|
|
332
|
+
"DELETE /s2s/contacts/{id}": { output: OkSchema },
|
|
333
|
+
"POST /s2s/contacts/{id}/accept": { input: S2sContactAcceptInputSchema, output: S2sContactSchema },
|
|
334
|
+
"POST /s2s/contacts/{id}/block": { output: S2sContactSchema },
|
|
335
|
+
"POST /s2s/contacts/{id}/trust-key": { input: S2sTrustKeySchema, output: S2sContactSchema },
|
|
336
|
+
"GET /s2s/tasks": { output: S2sContactTasksSchema },
|
|
337
|
+
"POST /s2s/contacts/{id}/tasks/{request}": { input: S2sContactTaskDecisionSchema, output: S2sContactTaskSchema },
|
|
338
|
+
"GET /s2s/contacts/{id}/tasks/{request}/watch": { output: LinkTaskStatusSchema },
|
|
339
|
+
"GET /s2s/outbox": { output: S2sOutboxSchema },
|
|
340
|
+
"POST /s2s/pairings": { input: S2sPairingRequestSchema, output: S2sPairingAnswerSchema },
|
|
341
|
+
// The inbox.
|
|
342
|
+
"GET /s2s/threads": { output: S2sThreadsListSchema },
|
|
343
|
+
"GET /s2s/threads/{id}": { output: S2sThreadSchema },
|
|
344
|
+
"DELETE /s2s/threads/{id}": { output: OkSchema },
|
|
345
|
+
"POST /s2s/threads/{id}/read": { output: OkSchema },
|
|
346
|
+
"POST /s2s/messages": { input: S2sMessageSendSchema, output: S2sMessageSendOutcomeSchema },
|
|
347
|
+
"POST /s2s/messages/{id}/take": { input: S2sTakeSchema, output: S2sTakenSchema },
|
|
263
348
|
"POST /diagnostics": { input: DiagnosticsAskSchema, output: DiagnosticsAnswerSchema },
|
|
264
349
|
"GET /fleet/{handle}/bundle": { output: ConversationBundleSchema },
|
|
265
350
|
"GET /system/control/tokens": { output: ControlTokensListSchema },
|