|
| 1 | +--- |
| 2 | +'@objectstack/spec': major |
| 3 | +--- |
| 4 | + |
| 5 | +The `trigger-registry.zod.ts` Connector cluster is removed (#4499) |
| 6 | + |
| 7 | +`@objectstack/spec/automation` no longer exports the third declaration of the |
| 8 | +connector vocabulary: `ConnectorSchema`, `ConnectorInstanceSchema`, |
| 9 | +`ConnectorOperationSchema`, `ConnectorTriggerSchema`, `ConnectorCategorySchema`, |
| 10 | +`AuthenticationSchema` / `AuthenticationTypeSchema` / `AuthFieldSchema` / |
| 11 | +`OAuth2ConfigSchema`, `OperationTypeSchema` / `OperationParameterSchema`, their |
| 12 | +inferred types, and the `Connector.apiKey()` / `Connector.oauth2()` factory |
| 13 | +helpers — 630 lines, all of `automation/trigger-registry.zod.ts`. |
| 14 | + |
| 15 | +Despite the filename, the file contained no trigger registry. Every export was |
| 16 | +connector vocabulary, self-contained and read by nothing: |
| 17 | + |
| 18 | +- the automation engine registers and validates connectors against |
| 19 | + `ConnectorSchema` from `integration/connector.zod.ts` (ADR-0097) — it never |
| 20 | + imported this one; |
| 21 | +- the stack `connectors:` collection parses `DeclarativeConnectorEntrySchema`; |
| 22 | +- outside the spec package, the only references anywhere in the monorepo were |
| 23 | + the two documentation generators that published it. |
| 24 | + |
| 25 | +This closes the connector triple-declaration: `integration/connector.zod.ts` |
| 26 | +is the one live contract (ADR-0097), the six per-provider "templates" fell in |
| 27 | +#4480, and this cluster is the last copy (Prime Directive #12 — one |
| 28 | +capability, one contract). |
| 29 | + |
| 30 | +**Migration.** If you imported any of these names from |
| 31 | +`@objectstack/spec/automation`, there is nothing to migrate *to* on that |
| 32 | +module: nothing ever consumed what you built against them. Declare real |
| 33 | +connector instances with `defineConnector` / the stack `connectors:` collection |
| 34 | +(`DeclarativeConnectorEntrySchema`), or materialize them from a provider |
| 35 | +document via connector-openapi / connector-mcp. Note the name collision when |
| 36 | +migrating types: the live `integration/connector.zod.ts` also exports a |
| 37 | +`ConnectorTriggerSchema` and a `Connector` type with *different shapes* — a |
| 38 | +find-and-replace of the import path is not a migration. |
| 39 | + |
| 40 | +The removal also deletes the "When to use Integration Connector vs. Trigger |
| 41 | +Registry?" comparison from `integration/connector.zod.ts`'s header, which |
| 42 | +steered "lightweight" cases to the dead file with the platform's authority — |
| 43 | +the same defect class as the `capabilities.readOnly` prescription #4487 |
| 44 | +corrected. No D2 conversion: none of this was storable stack metadata, so |
| 45 | +there is no source for `os migrate meta` to rewrite. |
0 commit comments