Repository navigation
create-objectstack@18.0.0
Minor Changes
-
19805d8: The blank starter ships a test story:
pnpm testboots the scaffolded app's own stack withbootStackfrom@objectstack/verifyand asserts one business fact through its in-process handleClause-②: no
A project scaffolded with
npx create-objectstackused to start with notestscript and no way to assert its own behaviour, so the first test an author wrote was a hand-assembled kernel or a fakedctx. The blank template now carries:note.test.ts, one starter test. It boots the app the project declares (its objects, its plugins, the services it requires) on the real engine, in-process, with an in-memory database and no server, and asserts that a note without a title is refused with the engine's ownVALIDATION_FAILEDerror namingtitle, beside the same note with a title being saved. It addresses the object asNote.name, so it follows the namespace scaffolding writes.vitest.config.ts: a 60 s hook timeout for the boot, vitest's console capture switched off, so a log line the stack writes while a worker shuts down cannot fail a green run, andOS_REGISTRY_LOG: 'warn', which drops the engine's one-line-per-registered-item boot log.package.json: atestscript (vitest run), and@objectstack/verify(at the project's@objectstack/*range) andvitestas devDependencies. The vitest range is~4.0.0, the oneobjectstack init -t pluginandobjectstack create plugindeclare, and it is generated from that shared policy rather than written by hand, so the three scaffolders cannot drift apart.~4.0.0is the range that installs on npm 10, the npm Node 22 bundles;^4.0.0does not.tsconfig.jsonincludes every root*.ts("*.ts", asobjectstack initwrites it), sopnpm typecheckchecks the starter test and the vitest config.README.mdlistspnpm testbesidevalidate,lintandtypecheck.
The project's CI workflow is unchanged: its steps are the script set every scaffolder's project must declare, and
objectstack init -t appdeclares notestscript. -
5da2c0f: feat(create-objectstack): a scaffolded project installs its AI skills from the
@objectstack/skillspackage at its own@objectstack/specversion, never from the repository'smainbranchClause-②: no
- The project depends on the catalog. The blank template's
devDependenciesgain@objectstack/skills, at the same^<version>as every other@objectstack/*dependency, so a new project's dependency set changes: the skills are the ones written for the@objectstack/specit installs. - The install reads
node_modules. After<pm> install, the scaffolder runsnpx -y skills@1.7.2 experimental_sync --agent claude-code --copy -y, which copies the installed package's catalog into.claude/skills/as real files, once, beside askills-lock.jsonthat names the package as every skill's source. The GitHubnpx skills add objectstack-ai/objectstack/skills …command is gone from the run, its summary and theAGENTS.mdandREADME.mdit writes into the project. - The summary says what happened. It names the package version installed and prints the same command for re-installing after an upgrade of the
@objectstack/*packages, and for any other agent runtime. When the install leaves no catalog to read, or a skill did not come from the package, the run says so instead of reporting the skills installed. - The flags keep their meaning.
--skip-skillsskips the skills step.--skip-installinstalls no skills, because nothing is innode_modulesyet; the summary names<pm> installand then the sync command. - To move a project created earlier onto the package: add
@objectstack/skillstodevDependenciesat your@objectstack/specrange and run your package manager's install. Remove the skillsskills addinstalled —npx skills remove objectstack-data -yand so on for eachobjectstack-*skill, ornpx skills remove --allif you installed no others — because the sync skips a skill it did not install and leaves the old copy in place. Then runnpx skills@1.7.2 experimental_sync --agent claude-code --copy -y(name your own runtime after--agent).
- The project depends on the catalog. The blank template's
Patch Changes
-
5f98778: fix(create-objectstack): the scaffolded Dockerfile installs from the lockfile the project carries
Clause-②: no
Where pnpm is on PATH,
create-objectstackinstalls with pnpm and the project getspnpm-lock.yamland nopackage-lock.json. TheDockerfileit wrote copiedpackage*.jsonand rannpm ci, sodocker buildstopped withEUSAGEbeforeos buildran.- The build stage now copies
package.jsonand whichever ofpnpm-lock.yaml,pnpm-workspace.yamlandpackage-lock.jsonexist, then installs from the lockfile:corepack pnpm@10 install --frozen-lockfileforpnpm-lock.yaml,npm ciforpackage-lock.json. With neither, the build stops and says to install once and commit the lockfile. - pnpm is pinned to major 10, the major the template's
.github/workflows/ci.ymlinstalls with. An unpinned Corepack takes the registry's newest pnpm, which the Corepack bundled with Node 22 could not run when this was measured. - Unchanged:
os buildin the image, the runtime stage and its pinned image tag. - A project scaffolded before this release keeps its own
Dockerfile. To fix one, replace itsCOPY package*.json ./andRUN npm cilines with the build stage shown in the self-hosting guide.
- The build stage now copies
-
31cd210: A new project's
pnpm-workspace.yamlis now a short settings file: one comment line above each block instead of 57 to 66 lines of version history and measurements.npm create objectstack,objectstack initand a standaloneobjectstack createnow write the same 21-line file.Clause-②: no
- The settings are unchanged:
packages: [], the sameonlyBuiltDependenciesandallowBuildslists, and the samepeerDependencyRules.allowedVersionsentries, in the same order. A project installs exactly as before. - Each block keeps one line that says why it is there: which pnpm versions read each build-approval key, and that the peer rules only silence a warning that was measured harmless.
- The measurements behind each setting now live in the
@objectstack/clisource next to the values they explain, so they are kept up to date there instead of in every project. - Already-scaffolded projects are not touched. Their longer comments can be deleted or kept; the settings are identical.
- The settings are unchanged:
-
e4ad677: fix(create-objectstack): a project name that starts with the template's namespace scaffolds instead of being refused
Clause-②: no
A project whose namespace begins with the template's own namespace plus
_(for exampleblank-probe, namespaceblank_probe, under theblanktemplate) was refused with exit 1: "1 object name(s) still carry the template's 'blank_' prefix … This is a bug in the scaffolder". The rewrite was correct (blank_notebecameblank_probe_note), but the check that verifies it tested each name against the template prefix alone, andblank_probe_notestarts withblank_.- The check now reports a name as stale only when it carries the template's prefix and not the new namespace's prefix, so
blank-probescaffolds with objects namedblank_probe_*. - A name the rewrite really missed (
blank_noteunder namespaceblank_probe) is still refused, as before. - The same rule applies to every template namespace; no name is treated specially.
- No migration: a project that scaffolded before this release is unaffected, and a name that was refused before can be scaffolded again.
- The check now reports a name as stale only when it carries the template's prefix and not the new namespace's prefix, so
-
d795719: fix(create-objectstack): a blank scaffold installs on npm 10 again — its
package.jsonoverridesvitestto the range it already declaresClause-②: no
A project from
npm create objectstack(ornpx create-objectstack) could not be installed with npm 10, the npm that Node 22 bundles and the one the scaffolder falls back to when pnpm is absent.npm installexited 1 withCannot read properties of null (reading 'edgesOut'). The template's own dependencies were not the cause. Optionalvitestpeers deeper in the dependency tree led npm 10 to vitest 4.1.12, whose peer declarations contradict each other, and npm 10's resolver crashes on that. npm 11 installs the same project.The blank template now ships:
"overrides": { "vitest": "~4.0.0" }
This routes every
vitestin the npm dependency graph to the range the project declares indevDependencies. npm 11 already resolves the whole tree to that version, and with the override npm 10.9.x installs the identical tree. pnpm does not read npm'soverridesfield, so pnpm installs are unchanged.If you change
devDependencies.vitestin a scaffolded project, changeoverrides.vitestto the same value. npm refuses an override that differs from the direct dependency (EOVERRIDE: Override for vitest@… conflicts with direct dependency). An existing project that hits theedgesOutcrash on npm 10 can install with npm 11 or later. -
0b69564: Clause-②: no
When the dependency install fails (a network error, a registry outage, an engine mismatch, an npm crash), the
scaffolder's closing "Next steps" now listsnpm install(orpnpm install, whichever package manager the run
detected) beforenpm run devandnpm run validate, the same as it does under--skip-install. Before, a
failed install printed the same list as a successful one, so the next command it named ran against an empty
node_modules. A successful install still prints no install step. No flag, exit code, prompt or scaffolded file
changes.