Repository navigation
chore(deps): upgrade MetaObjects to 1.3.0 - #54
Merged
Merged
Conversation
Bump every @metaobjectsdev package (cli, codegen-ts, render, runtime-ts, sdk, metadata) from 1.2.0 to 1.3.0 and regenerate with the 1.3.0 CLI, following the 1.3.0 "Upgrading from 1.2.0" notes: - Port the owned composition-loaders generator off the removed ts-poet printer, formatTs and renderFindByIdFn onto TsWriter, writeDbType and writeFindByIdFn. lineage-mappers drops the removed formatTs. - Drop the now-unused ts-poet devDependency. - The hash manifest is now one file per package under .metaobjects/.gen-state/.hashes/; .gitignore un-ignores that directory instead of .hashes.json and keeps the new fingerprint file ignored. - TypeScript generation runs no formatter, so the generated tree changes layout once; the prompt render helpers now pass the payload field tree so an unknown template variable raises at render time. - Refresh the agent context (meta init --docs-only --refresh-docs), which retires .metaobjects/CLAUDE.md; update the version and manifest path in CLAUDE.md and README.md. npm run check (drift gate, verify:db, tsc, 233 tests) and build:web pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
"do a big burst to get everyone running on 1.3.0 for metaobjects" - upgrade Wizards of Odd from MetaObjects 1.2.0 to 1.3.0 (the @metaobjectsdev sdk, runtime-ts, render and metadata packages). MetaObjects 1.3.0 is released on npm; its release notes and migration steps are at https://github.com/metaobjectsdev/metaobjects/releases/tag/v1.3.0 and in the CHANGELOG [1.3.0] section.
What Changed
@metaobjectsdev/{cli,codegen-ts,render,runtime-ts,sdk,metadata}from 1.2.0 to 1.3.0 inpackage.jsonandpackage-lock.json. Drop the now-unneededts-poetdevDependency. Update the version mentions inCLAUDE.mdandREADME.md.codegen/generators/composition-loaders.tsnow writes throughTsWriter,writeDbTypeandwriteFindByIdFnin place of thecode/imptemplates,dbTypeBlockandrenderFindByIdFn.src/codegen/lineage-mappers-generator.tsno longer callsformatTs. Regenerate everything undersrc/db/generated/andsrc/render/generated/prompts.ts.meta init --refresh-docs: the.claude/skills/metaobjects-*skills and references (new requirements, semantic-modelling, adopting-existing-models, typescript-providers and upgrading pages),.metaobjects/AGENTS.mdand.agent-context.json..metaobjects/CLAUDE.mdmoves to themetaobjects-codegenskill'sreferences/principles.md. The codegen manifest.metaobjects/.gen-state/.hashes.jsonbecomes per-package files under.hashes/, and.gitignoreis updated to match.Risk Assessment
✅ Low: The change is a mechanical upgrade from MetaObjects 1.2.0 to 1.3.0 that matches the stated intent: every @metaobjectsdev package is pinned to 1.3.0 in package.json and package-lock.json, and the two owned generators are ported cleanly off the removed formatTs, ts-poet and renderFindByIdFn APIs. The generated diffs are layout-only except for two upstream changes, and neither affects runtime behaviour here: (1) the prompt renderers now pass a
verifyfield tree, and the snapshot tests cover it; (2) the primary-key columns are dropped from the Council and CouncilTurn update schemas, and no hand-written code uses those schemas. The manifest move to .hashes/ and the .gitignore change are consistent: the 38 tracked generated src files are all in the manifest, and the fingerprint file stays ignored.Testing
Under 1.3.0,
npm ci, the drift gate, regeneration (no diff), and the fullnpm run checkall pass. Thewrangler devWorker was driven live with a dummy Anthropic key. Council POST streamed council, error, verdict and done SSE frames and persisted the turn to local D1. The persisted council then rendered through the share JSON and SSR HTML routes, and the guards returned 429, 400 and 404 as expected. The LLM call itself was not exercised, because there is no real Anthropic key. The error path proves the generated tool-call and prompt plumbing loads and the frame encoders work. No visual artifacts were captured because the change has no UI changes. The Worker and scratch state were removed, and build output in public/ was reverted.npm cimeta verify --templates --codegen --prompts) is green andmeta genreproduces committed generated codewrangler dev, dummy Anthropic key, Turnstile bypass secret) serves POST /api/council as SSE and persists the councilnpm run check(drift, verify, verify:db, tsc -b, vitest)Evidence: drift gate log
Evidence: full npm run check log
Evidence: live council SSE transcript
Evidence: persisted share JSON
Evidence: SSR share page HTML
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm cimeta verify --templates --codegen --prompts) is green andmeta genreproduces committed generated codewrangler dev, dummy Anthropic key, Turnstile bypass secret) serves POST /api/council as SSE and persists the councilnpm run check(drift, verify, verify:db, tsc -b, vitest)npm ci(all @metaobjectsdev/* packages resolve to 1.3.0)npm run demo:drift(meta verify --templates --codegen --prompts): exit 0npm run gen:dbthengit status: clean, so regeneration under 1.3.0 matches the committed outputnpm run check(drift, verify:portraits, verify:db local D1 migrate and meta verify, tsc -b, vitest run): exit 0, 37 files and 233 tests passednpm run build:web, thenwrangler devon a scratch-persisted local D1/KV with a dummy Anthropic key and the Turnstile bypass secretLivePOST /api/council,GET /c/:slug.json,GET /c/:slug, bad-input and 404 cases against that Worker✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.