You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e20864f
Browse filesBrowse the repository at this point in the historyBrowse files
docs(create-objectstack): say what the wired starter ships, and walk a chain that composes
The starter's tree, config and agent guide, the package README, the Your
First Project page and the CLI page described an objects-only starter.
They now name the seven wired barrels, `exportsOf` and the `triggers`
requirement. The CLI page's first-app walkthrough generated an action bound
to an object nobody declared; on the wired starter that is refused, so the
walkthrough now binds the flow and the action to the object it creates.
Claude-Session: https://claude.ai/code/session_01UYBdGBzWSrAMzpW8ah3GbP
Co-authored-by: Claude <noreply@anthropic.com>
fix(create-objectstack): the blank starter wires every directory `os generate` writes into
6
+
7
+
`npm create objectstack` scaffolded an `objectstack.config.ts` that imported `./src/objects` alone. `os g view`, `action`, `flow`, `dashboard`, `app` and `skill` each wrote a file and a barrel `index.ts` that nothing imported, and `os validate` then exited 0 printing `Logic: 0 Flows`: the generated metadata was never loaded.
8
+
9
+
**What a new blank project now ships** is the wiring `os init` writes:
10
+
11
+
-`objectstack.config.ts` imports every directory `os generate` writes into (`src/objects`, `src/views`, `src/actions`, `src/flows`, `src/dashboards`, `src/apps`, `src/skills`) and hands each barrel's exports to `defineStack` under its key (`objects`, `views`, …). A file `os g` writes there is part of the stack with no edit to the config. The keys read the barrels through a small `exportsOf` helper declared in the config, because `Object.values` on an empty barrel does not type-check against `defineStack`'s collection types.
12
+
- An `index.ts` containing only `export {};` in each of those directories except `src/objects`, which keeps the sample object.
13
+
-`requires: ['automation', 'triggers']`. `automation` was already there for the three connector plugins. `triggers` fires a flow that starts on a record change, the kind `os g flow` writes, and without it the config stops loading as soon as it holds one. A project with no flow boots as before.
14
+
15
+
**Projects scaffolded by an earlier release** keep their config. `os g` says when a file it wrote is not wired, and prints the lines to add.
0 commit comments