Skip to content

Commit 7547a70

Browse files
dmealingclaude
andcommitted
chore(examples): regenerate advanced-modeling for the corrected descriptor JSDoc
The committed `src/generated/**` still carried the old "optional htmlType/placeholder/helpText" comment, so `meta verify --codegen` failed the drift gate that exists to catch exactly this. Four files rewritten; only the JSDoc block differs. Worth recording how long this took to see, because the same trap is waiting for the next person: invoking the CLI as a script — `bun packages/cli/src/index.ts gen` — is a NO-OP. It exits 0, prints nothing, writes nothing, and does the same under `--dry-run`. Three separate probes of mine "passed" that way while the example stayed stale, and the only signal that anything was wrong was the in-process `run()` the test calls. Use the built binary (`node packages/cli/dist/bin/meta.js`), which prints a real summary and did the work first time. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UcDcQmAVYzYjkVGVj23mt4
1 parent 53cd936 commit 7547a70

5 files changed

Lines changed: 40 additions & 8 deletions

File tree

examples/advanced-modeling/.metaobjects/.gen-state/.hashes.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
"src/generated/Author.form.tsx": "a9e4b95c2f151e425775b53ad6df424813e1d5d849a4451b99fb03ebc63917b1",
33
"src/generated/Author.queries.ts": "aa0914107e1882029e0d6e4a45a503c50aefb8d0fdeb202109ebf165128d1ca7",
44
"src/generated/Author.routes.ts": "d636abcc8a7e0ce95c3e8bc5486cb89f654f1ce89353846d11eb5dc7a8d55a6c",
5-
"src/generated/Author.ts": "381ed20740df1ccaa66c5679933c3cd3e04a37f01987e95bbcb5f1ae9f2a6fe5",
5+
"src/generated/Author.ts": "e7341187a6e4dc2fd37fbcc59643266b5281def517a218444f1370c295cd7e7b",
66
"src/generated/InstructorProfile.ts": "8e73cd2dff0d4269e70802b4a95b64f711d2e313cc02b9e5904a4df19e06a128",
77
"src/generated/Lesson.form.tsx": "40fd6ff06b8a79873fef8ee23d28592a08be67ad792e55fc75997cf968aca34e",
88
"src/generated/Lesson.queries.ts": "7c917715d5f9593e37d48e6873d118e544c58e5f9eb951c24fecd6dad2ab77f9",
99
"src/generated/Lesson.routes.ts": "22fcfea8e0d7592e2cc40e654b1891420f0cc2b425e84a881845997192c2560f",
10-
"src/generated/Lesson.ts": "29367e55a55f7cd73da935c446617aa6f7b0c740c147e93b5f0e790cf63b83b2",
10+
"src/generated/Lesson.ts": "7da860554b81743db9a2acafd4ec8b79257f3a9de7f483cc7d52b546d6189ad4",
1111
"src/generated/Program.form.tsx": "e3c03e5497b7b8d65758a71c0d43e4a0a73c3edcfa3eb25ebd69af3a1efe3c84",
1212
"src/generated/Program.queries.ts": "b9d6f55d56d933b6b081cacb7e144f08828b1c1b92c6eaa7126b0e02f9f65d34",
1313
"src/generated/Program.routes.ts": "b4b01ad507bac678d17c634ae5b89cb5f4ff7bc8596960278cb69cdd621b733a",
14-
"src/generated/Program.ts": "ae2cfc07b67f49f43b1316b1de728635720206ae0aec0ebf1fc898e28ed51c90",
14+
"src/generated/Program.ts": "b04b7601747f5d57370b9a37cb2d68295a0ec7132b63751ca807ee7d5caf46a1",
1515
"src/generated/ProgramDescriptionOutput.output.ts": "f13b7b2108bf8507b6aeb1e819edd06eb2d689ed259dc04784d19d62bee9dfd2",
1616
"src/generated/ProgramDescriptionOutput.render.ts": "f9e939a98693e7da14b978e78d2a4291702e9e5563d73ba22ea1677f9707899b",
1717
"src/generated/ProgramDescriptionPayload.form.tsx": "a9dff101453450117aff3029b2c5259e7d0866667aaab722ba890beaaa20f95d",
@@ -22,7 +22,7 @@
2222
"src/generated/Purchase.form.tsx": "7ddb107c14a991df1b414830ee19ccbdc7f7bc4b29e648628b5bc13c34326921",
2323
"src/generated/Purchase.queries.ts": "53ad59b680f8530dba3f2309c30fda79f6157c09fcb5774b4db34db96a5364d8",
2424
"src/generated/Purchase.routes.ts": "2f3551c366c3e7d60010555c73e07d818718398d8f56244edf2066b5c99702fa",
25-
"src/generated/Purchase.ts": "36fa2fc77b9464775a44208b51df300f8c1e9652e50f8880f49096659e4f7af1",
25+
"src/generated/Purchase.ts": "8d9467a276f01656859e2898f7784bfa663643bd25f1625a1465cee7ca7e8fa8",
2626
"src/generated/SyllabusSection.ts": "43336e7d774bf0405a17b7fdba556f98dba922b09b358d59e3cc6d3900fe2080",
2727
"src/generated/index.ts": "0f7e35f89de3edcb69227aec7341fdf400f8627799fe562d52d4f8cb8ce8451f",
2828
"src/generated/prompts.ts": "16f0650d11b95b23bec0a8547f26bdac399fa73a330868f18e43c845b0cdf8ab"

examples/advanced-modeling/src/generated/Author.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,17 @@ export type AuthorPatch = z.input<typeof AuthorUpdateSchema>;
3939
*
4040
* Use these instead of magic strings so TS catches typos and refactors stay
4141
* coherent. Each non-dollar-prefixed key is a per-field object carrying
42-
* name, label, view, optional htmlType/placeholder/helpText, and the
42+
* name, label, view, an htmlType where the field's view maps to one, and the
4343
* RHF-shaped validation rules derived from the field's validator children.
4444
*
45+
* placeholder and helpText are NOT emitted — no provider registers an attribute
46+
* for them, so nothing here could derive one. (htmlType is emitted, but derived
47+
* from the view subtype; the @htmlType override was removed for the same reason.)
48+
* useEntityForm still honours placeholder if you add it: this file is generated,
49+
* hand edits inside it survive regeneration through the three-way merge, and the
50+
* consumers read this const rather than the metadata. That is the intended way
51+
* to set it.
52+
*
4553
* Typical usage with the metaobjects React form helper:
4654
*
4755
* import { useEntityForm } from '@metaobjectsdev/react';

examples/advanced-modeling/src/generated/Lesson.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,17 @@ export type LessonPatch = z.input<typeof LessonUpdateSchema>;
4343
*
4444
* Use these instead of magic strings so TS catches typos and refactors stay
4545
* coherent. Each non-dollar-prefixed key is a per-field object carrying
46-
* name, label, view, optional htmlType/placeholder/helpText, and the
46+
* name, label, view, an htmlType where the field's view maps to one, and the
4747
* RHF-shaped validation rules derived from the field's validator children.
4848
*
49+
* placeholder and helpText are NOT emitted — no provider registers an attribute
50+
* for them, so nothing here could derive one. (htmlType is emitted, but derived
51+
* from the view subtype; the @htmlType override was removed for the same reason.)
52+
* useEntityForm still honours placeholder if you add it: this file is generated,
53+
* hand edits inside it survive regeneration through the three-way merge, and the
54+
* consumers read this const rather than the metadata. That is the intended way
55+
* to set it.
56+
*
4957
* Typical usage with the metaobjects React form helper:
5058
*
5159
* import { useEntityForm } from '@metaobjectsdev/react';

examples/advanced-modeling/src/generated/Program.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,17 @@ export type ProgramPatch = z.input<typeof ProgramUpdateSchema>;
8181
*
8282
* Use these instead of magic strings so TS catches typos and refactors stay
8383
* coherent. Each non-dollar-prefixed key is a per-field object carrying
84-
* name, label, view, optional htmlType/placeholder/helpText, and the
84+
* name, label, view, an htmlType where the field's view maps to one, and the
8585
* RHF-shaped validation rules derived from the field's validator children.
8686
*
87+
* placeholder and helpText are NOT emitted — no provider registers an attribute
88+
* for them, so nothing here could derive one. (htmlType is emitted, but derived
89+
* from the view subtype; the @htmlType override was removed for the same reason.)
90+
* useEntityForm still honours placeholder if you add it: this file is generated,
91+
* hand edits inside it survive regeneration through the three-way merge, and the
92+
* consumers read this const rather than the metadata. That is the intended way
93+
* to set it.
94+
*
8795
* Typical usage with the metaobjects React form helper:
8896
*
8997
* import { useEntityForm } from '@metaobjectsdev/react';

examples/advanced-modeling/src/generated/Purchase.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,17 @@ export type PurchasePatch = z.input<typeof PurchaseUpdateSchema>;
6363
*
6464
* Use these instead of magic strings so TS catches typos and refactors stay
6565
* coherent. Each non-dollar-prefixed key is a per-field object carrying
66-
* name, label, view, optional htmlType/placeholder/helpText, and the
66+
* name, label, view, an htmlType where the field's view maps to one, and the
6767
* RHF-shaped validation rules derived from the field's validator children.
6868
*
69+
* placeholder and helpText are NOT emitted — no provider registers an attribute
70+
* for them, so nothing here could derive one. (htmlType is emitted, but derived
71+
* from the view subtype; the @htmlType override was removed for the same reason.)
72+
* useEntityForm still honours placeholder if you add it: this file is generated,
73+
* hand edits inside it survive regeneration through the three-way merge, and the
74+
* consumers read this const rather than the metadata. That is the intended way
75+
* to set it.
76+
*
6977
* Typical usage with the metaobjects React form helper:
7078
*
7179
* import { useEntityForm } from '@metaobjectsdev/react';

0 commit comments

Comments
 (0)