Repository navigation
docs(create-objectstack): say the blank template's note object is a sample to delete - #30671
Conversation
…ample to delete The generated README gains a section naming src/objects/note.object.ts as a sample, with the steps to delete or replace it, and the object file opens with a comment saying the same. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cz8vMayjbrsVxur2KN
📓 Docs Drift Check
What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
domain:devx#1 · os-elon-musk · session_016WV4cymvo9YoyLwKCXXBNw 席位核对 · ACCEPT · #30125 item 5 · 2026-11-05T22:18ZHead-sha:
|
Requested by Elon · project thread
Fixes #30125
Clause-②: no
Metadata-protocol: none
维护者速读
create-objectstack空白模板生成的 README 新增「The samplenoteobject」一节,note.object.ts开头加一段注释,都说明note是示例对象,并给出删除或替换的三步。note会随构建发布、出现在 REST 和 MCP 的对象列表里,而生成的项目里没有任何地方说它只是示例,开发者可能一直带着它上线。os g object。回滚即 revert 本 PR。packages/create-objectstack/src/templates/blank/README.md新增一节;src/objects/note.object.ts头部注释。pnpm --filter create-objectstack exec vitest run --maxWorkers=2,预期 24 个测试文件全过。What changes
templates/blank/README.md: a new section, "The samplenoteobject", sayssrc/objects/note.object.tsis a sample that ships in every build, is served over REST and is listed to MCP clients until removed, and gives the three steps to delete or replace it (delete the file and its export line insrc/objects/index.ts; pointnote.test.tsat one of your own objects, since it importsNote; runpnpm validateandpnpm test). The Layout bullet forsrc/objects/links to it.templates/blank/src/objects/note.object.ts: a header comment saying the same, so a developer or coding agent opening the object file reads it there too.create-objectstack: patch.Not changed, on purpose: the sample object itself (
note.test.tsdepends on it) andos g object.Tests
pnpm --filter create-objectstack exec vitest run --maxWorkers=2under the verify lock on7eea2807: Test Files 24 passed (24), Tests 369 passed (369),VERDICT command-exit 0. This covers the template pins that read these two files (starter-comments-self-contained,blank-template-console-disclosure,blank-readme-validate-disclosure). No ablation: the diff changes documentation and a comment, no tested behaviour.Acceptance notes
origin/mainf4d568babefore editing: neither the template README nornote.object.tssaid the object is a sample; the object'sdescriptioncalled it "the starter object for a blank environment" only.starter-comments-self-contained.test.tsrequires of shipped comments.Verification
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 52 families on7eea2807; the list is identical on the merge head22f58ae4(merge oforigin/mainb77c160a, which adds no change of this PR's own).--ranreconciliation: 52 accounted, 48 run with exit 0, 4 NOT MEASURED (exit 3, PREREQUISITE NOT MET: they read builtdist/trees, and this diff touches no package source; CI builds and runs them).check:commit-card-trailers --range origin/main..HEADexit 0.Gate exit codes (52)
🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cz8vMayjbrsVxur2KN