Commit c715854
committed
feat(create-objectstack): default scaffold ships the three generic connector executors (#3056)
Closes the last authoring gap in the ADR-0097 promise that integrations are
expressible **and executable** as pure metadata. `npm create objectstack` now
generates an `objectstack.config.ts` whose `plugins:` wires the `rest`,
`openapi`, and `mcp` connector executors (zero-arg = contribute the provider
factory only), so an author (human or AI) can add a declarative `connectors:`
entry naming `provider: 'rest' | 'openapi' | 'mcp'` and have it materialize into
a live, dispatchable connector at boot — no host-code edit.
Why `requires: ['automation']` is added alongside the plugins: the connector
plugins declare a hard `dependencies = ['com.objectstack.service-automation']`,
and the automation service is what actually materializes declarative
`connectors:` entries (ADR-0097). Without it, the kernel throws
`Dependency 'com.objectstack.service-automation' not found` at boot — a broken
scaffold. Verified end-to-end against the published registry: connectors-only
crashes boot; connectors + `requires: ['automation']` boots healthy and a
declarative `provider: 'rest'` instance materializes (a declarative connector
whose factory is absent fails boot loudly). Automation ships transitively via
`@objectstack/cli`, so no new runtime dependency is needed.
Scope note: the showcase demo half (in-repo stdio MCP fixture, DevToolsMcpConnector,
CI-pinned dogfood) already landed in #3062; this is the template-preset half that
was blocked on the 15.1.0 publish (now 15.1.1 is `latest`, and the template's
`^15.0.0` pins resolve to it).
Changes:
- templates/blank/objectstack.config.ts — `requires: ['automation']` + `plugins:`
with the three zero-arg executors; brand connectors stay marketplace/opt-in;
stdio-MCP opt-in (#3055) documented inline.
- templates/blank/package.json — add `@objectstack/connector-{rest,openapi,mcp}`
at `^15.0.0` (in lockstep via scripts/sync-template-versions.mjs).
- templates/blank/README.md — "Connectors (default providers)" section.
- docs/getting-started/your-first-project.mdx — config snippet + packages table
match the new scaffold output.
- docs/automation/flows.mdx — restore the "scaffolded apps ship the three
executors" statement.
- changeset (create-objectstack, minor).
Refs #3056, #3062 (showcase half), #3055 / #3059 (stdio gate), ADR-0097.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GjAgyTXaxSMVDWtGYxAXL71 parent 89467f5 commit c715854
6 files changed
Lines changed: 101 additions & 3 deletions
File tree
- .changeset
- content/docs
- automation
- getting-started
- packages/create-objectstack/src/templates/blank
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
114 | 126 | | |
115 | 127 | | |
116 | 128 | | |
117 | 129 | | |
118 | 130 | | |
119 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
120 | 136 | | |
121 | 137 | | |
122 | 138 | | |
| |||
151 | 167 | | |
152 | 168 | | |
153 | 169 | | |
| 170 | + | |
154 | 171 | | |
155 | 172 | | |
156 | 173 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
29 | 55 | | |
30 | 56 | | |
31 | 57 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| |||
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
18 | 42 | | |
19 | 43 | | |
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
0 commit comments