@intentic/extension-api 1.430.0 → 1.431.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/src/version.ts CHANGED
@@ -30,4 +30,15 @@
30
30
  // names where a 200 answer says it worked. Additive. The recorded surface grows the manifest schema.
31
31
  // 2.43.0 names the signed-in user's trust tier `api.sandbox.tier()`. `role()` answers the same and is deprecated until
32
32
  // 3.0.0: personas were renamed roles. Additive. The recorded surface grows `sandboxApi`.
33
- export const extensionApiVersion = "2.43.0";
33
+ // 2.44.0 versions the slice of @intentic/sandbox-contract an extension may read: `EXTENSION_WIRE`
34
+ // (@intentic/extension-api/wire) names the bare package and the subpaths an extension may import, and the lint and
35
+ // `intentic-kit-check` refuse any other. Additive. The recorded surface grows `wireExports`: each allowed subpath's export
36
+ // names and a digest of its zod schemas, so a schema an extension parses cannot change without a new entry.
37
+ // 2.45.0 records app-routes' `returnPath`, which validates a sign-in destination as a path on the editor's origin.
38
+ // 2.46.0 records the routed conversation prefix and account routing fields in the agent and subagent schemas.
39
+ // 2.47.0 records the listener protocol's reliable delivery: `id` on a /deliver body (a gateway posts one reply id once),
40
+ // `features` on a gateway's status (`DELIVER_ID_FEATURE`), and the dispatch key header (`LISTENER_DISPATCH_KEY_HEADER`)
41
+ // a gateway names a retried message by. Additive: each is optional, and an older side ignores it.
42
+ // 2.48.0 records the automations wire's webhook signature schemes (`WEBHOOK_SIGNATURE_SCHEMES`, `WebhookSignatureSchema`,
43
+ // `WebhookSignatureSchemeSchema`) and its `carried` run outcome, and the keyring wire's `isVaultKey`. Additive.
44
+ export const extensionApiVersion = "2.48.0";
package/src/wire.ts ADDED
@@ -0,0 +1,64 @@
1
+ // THE SLICE OF THE WIRE CONTRACT AN EXTENSION MAY READ. @intentic/sandbox-contract is versioned with the product release
2
+ // (1.3xx), so an extension that takes `^1.x` of it would meet a reshaped schema with nothing saying so. An extension may
3
+ // import the bare package and these subpaths only, and the extension API versions exactly them: surface.json records,
4
+ // per extensionApiVersion, each one's runtime export names and a digest of every zod schema it exports (`wireExports`),
5
+ // and surface-guard.test.ts fails when they move without a new entry.
6
+ //
7
+ // Held to it: the `_extensions/**` lint override in .oxlintrc.json (_tools/checks/lib/extension-deps.mjs keeps the two
8
+ // in step) and the kit's published `intentic-kit-check`, which reads the list off the newest surface record's
9
+ // `wireExports` so it runs in a standalone extension's typecheck with no build and no network.
10
+ //
11
+ // Taken on 2026-11-23 from what the in-repo `_extensions/*` and the standalone checkouts beside this repository import.
12
+ // A subpath joins with a minor of the extension API; one leaves only in a major.
13
+ export const EXTENSION_WIRE = [
14
+ "@intentic/sandbox-contract",
15
+ "@intentic/sandbox-contract/app-routes",
16
+ "@intentic/sandbox-contract/batch-runs",
17
+ "@intentic/sandbox-contract/capability-env",
18
+ "@intentic/sandbox-contract/chores",
19
+ "@intentic/sandbox-contract/ids/conversation-ids",
20
+ "@intentic/sandbox-contract/message-limits",
21
+ "@intentic/sandbox-contract/models/agent-catalog",
22
+ "@intentic/sandbox-contract/oauth/google-workspace",
23
+ "@intentic/sandbox-contract/policy/capability-env",
24
+ "@intentic/sandbox-contract/policy/command-run",
25
+ "@intentic/sandbox-contract/policy/keyring-origins",
26
+ "@intentic/sandbox-contract/policy/role-capability",
27
+ "@intentic/sandbox-contract/protocol/doors/listener-protocol",
28
+ "@intentic/sandbox-contract/schemas/access-profiles",
29
+ "@intentic/sandbox-contract/schemas/activity",
30
+ "@intentic/sandbox-contract/schemas/agent",
31
+ "@intentic/sandbox-contract/schemas/agents",
32
+ "@intentic/sandbox-contract/schemas/approvals",
33
+ "@intentic/sandbox-contract/schemas/automations",
34
+ "@intentic/sandbox-contract/schemas/ci",
35
+ "@intentic/sandbox-contract/schemas/git/git",
36
+ "@intentic/sandbox-contract/schemas/git/git-history",
37
+ "@intentic/sandbox-contract/schemas/history",
38
+ "@intentic/sandbox-contract/schemas/keyring",
39
+ "@intentic/sandbox-contract/schemas/ports",
40
+ "@intentic/sandbox-contract/schemas/public",
41
+ "@intentic/sandbox-contract/schemas/roles",
42
+ "@intentic/sandbox-contract/schemas/services",
43
+ "@intentic/sandbox-contract/schemas/share",
44
+ "@intentic/sandbox-contract/schemas/shared",
45
+ "@intentic/sandbox-contract/schemas/terminal",
46
+ "@intentic/sandbox-contract/schemas/workspace/workspace-graph",
47
+ "@intentic/sandbox-contract/schemas/workspace/workspace-repos",
48
+ "@intentic/sandbox-contract/session-names",
49
+ "@intentic/sandbox-contract/state/fix-attempt-plan",
50
+ "@intentic/sandbox-contract/state/fix-stance",
51
+ "@intentic/sandbox-contract/time",
52
+ "@intentic/sandbox-contract/workspace-state",
53
+ ] as const;
54
+
55
+ export type ExtensionWireSpecifier = (typeof EXTENSION_WIRE)[number];
56
+
57
+ /** Whether an import specifier names the wire contract at all, allowed or not. */
58
+ export const namesWireContract = (specifier: string): boolean =>
59
+ specifier === `@intentic/sandbox-contract` || specifier.startsWith(`@intentic/sandbox-contract/`);
60
+
61
+ const allowed: ReadonlySet<string> = new Set(EXTENSION_WIRE);
62
+
63
+ /** Whether an extension may import `specifier` from the wire contract. */
64
+ export const isExtensionWire = (specifier: string): boolean => allowed.has(specifier);