Repository navigation
experimental theme: follow-up fixes from the next edge-case round - #11738
Conversation
…made now writes, through one path: imports, expressions, spreads, computed keys and pair halves by their built values, typography by the values the build was given and the families and sizes it writes; the source only names the file and line, and the facts a build erases)
…ts settings; the app copy loads every built family's installed font package; a build counts the font stylesheet beside its source; a blank --out is refused
…take the theme's own value around them, a gradient layer's color is that mode's background color, keywords take no mode, the corners dial reaches parts with their own radius, how lists margins among spacing)
… with examples it answers, and a question it cannot answer points there
…ery browser run has one temp folder, one bound and its real cause; an unwritable theme folder is a write failure; one list of previews for add, see, refresh and remove; a theme outside the project folder is kept; refusals offer what works)
…y as a boolean, the theme typed after the setting, dial words in any case, corners in rem, a thing and value in one word), and every suggested set, undo, new and compile is followed through one vetter before it is offered
…nd prohibitions each through one shared reader, and the measured check holds typed values, every variant of a kept part, see-through fills over the page and token steps on a part
…urces (the value typed under exact readings, documented tables, saved values, a setting's fallback or step, a typo's correction by the shared typo reader), and every offered line is checked as set checks it
…its own word, and a typed value waives the way only for what it writes
… the value the build writes, and an own-token reason ends with one period
…ne and then the same set, in any letters; how reads a thin or thick border as a width and steps only for thinner or thicker; tests follow the case rule and rem corners
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 6c6debd |
PR Analysis Report🔎 Preview ·
|
…rocess and the font stylesheet's first-read postcss load
|
/approve-spec 33e5c73 |
There was a problem hiding this comment.
Changes requested: three defects need fixing first.
- The stable
astryx theme buildnow refuses a blank--outand leaves fonts loaded by a*.fonts.cssbeside the source out of its "not loaded" note. The only release note for these is an[experimental]Changeset aboutexperimental theme compile, and the release policy's experimental exception (AST-017 FR22) never covers stable CLI commands. Add a patch[fix]Changeset that namestheme buildand both changes, or split them into their own pull request. fontsLoadedBeside(clients/cli/commands/theme.mjs:158) counts every*.fonts.cssin the source's folder, so a stray stylesheet hides the "Fonts named but not loaded" note.theme addimports only<slug>.fonts.css, so read only that file.- The new family-plus-weight check (
api/theme-edit/_check.mjs:2096-2145) refuses real family names that end in a weight word:Arial Black,Archivo BlackandSegoe UI Semibold, all accepted before this change. It also offers a different face (font Arial). Refuse only a numeric weight such asInter 600, or check the whole name against installed font packages and system families first.
Non-blocking: three tests in theme-hunt100.test.mjs would pass without the fix they name. One passes on the base, one checks its note only inside an if, and one swallows the add error.
The direction of the editor changes is covered by the engineering owner's approval for this exact commit. CI's test jobs have not finished on this head; the first run was stopped because the CI queue was full.
Claims and files checked
Claims (description):
- Repair values come only from declared sources, and every offered line is checked as
setchecks it: verified (allowedLine,carryTypedandworkingLines; the hunt98 tests). - Names, flags and saved entries are read as meant (
--only, theme order, dial case, rem corners, thing and value in one word): verified (hunt103 tests). - Every suggested
set,undo,newandcompileline goes through one vetter: verified (followLineis used by all four paths). - The own-token check judges the evaluated build and names the file and line: verified (hunt101 tests).
compilerefuses a source the editor cannot keep: verified (hunt102).- App-copy fonts follow the families the build writes: verified (hunt102).
- A stable build reads
*.fonts.css: verified, but it reads every such file in the folder (blocking finding). - A blank
--outis refused: verified, and the stabletheme buildrefuses it too (blocking finding on the release note). - One-mode background, variant and state colours; the corners dial on pinned radii; keywords with
--moderefused: verified (parts48 tests). how --helplists the asks it understands, and an unanswered question points there: verified (how-families tests).- Shared readers for mode phrases, bounds and shadow strength, including 8-digit hex: verified (hunt99 tests).
- Prohibitions become exceptions that hold for every variant and state: verified (hunt99 tests).
- The measured check covers typed values, see-through fills and token steps: verified (hunt99 tests;
paintedin_how-commands.mjs). - The picture sweep deletes only recorded pictures: verified by reading
editorRecorded; its test also passes on the base. - Playwright runs as its own process with one temp folder and a time bound: verified (hunt100).
- Unwritable folders give
ERR_WRITE_FAILED: verified forshow(hunt100). - One preview finder serves every command, and a workspace's theme is kept: verified (hunt100).
- The named suites pass and the static checks are clean: partly verified; the 26 changed test files pass, and the full suites were not rerun here.
Claims (Changesets):
- compile-source-shape-fonts: the compile refusal, the app-copy fonts and compile's font note are verified. "A theme build counts the stylesheet beside its source" is true but broader and stable (blocking). "A blank
--outis refused" also reaches the stable build (blocking). - how-asks-list: verified.
- how-dial-by-effect: verified ("more washed out colors" answers
vibrancy less). - how-shared-readers: verified (hunt99).
- hunt100: verified; the picture-copy item is verified by reading the code.
- hunt101: verified.
- hunt98: verified, except that the
Inter 600split also refuses real families such asArial Black(blocking). - integration-fixes: the install line for an uninstalled base is verified (hunt41); thin and thick border widths are verified by reading the code.
- names-flags: verified (hunt103).
- own-token-message: verified.
- parts48: verified.
Files:
.changeset/experimental-theme-compile-source-shape-fonts.md: finding 1.packages/cli/clients/cli/commands/theme.mjs: findings 1 and 2.packages/cli/api/theme/build/build.mjs: finding 1.packages/cli/api/theme-edit/_check.mjs: finding 3.packages/cli/api/theme-edit/theme-hunt100.test.mjs: non-blocking test note.- Clear:
- the other 10
.changeset/experimental-theme-*.mdfiles; - in
packages/cli/api/theme-edit/:_adapter.mjs,_color.mjs,_edit.mjs,_how-commands.mjs,_how-question.mjs,_how.mjs,_normal.mjs,_playwright-picture.mjs,_preview-app.mjs,_preview.mjs,_settings.mjs,_tables.mjs,_vet.mjs,themeEditHow.doc.mjs,themeEditNew.doc.mjs,themeEditPreviewRemove.doc.mjs,theme-edit.test.mjs,theme-editor-refusals.behavior.test.mjs,theme-how-families.test.mjs,theme-how.test.mjs,theme-hunt.test.mjs,theme-hunt101.test.mjs,theme-hunt102.test.mjs,theme-hunt103.test.mjs,theme-hunt16.test.mjs,theme-hunt21.test.mjs,theme-hunt26.test.mjs,theme-hunt4.test.mjs,theme-hunt41.test.mjs,theme-hunt5.test.mjs,theme-hunt56.test.mjs,theme-hunt75.test.mjs,theme-hunt83.test.mjs,theme-hunt87.test.mjs,theme-hunt92.test.mjs,theme-hunt96.test.mjs,theme-hunt98.test.mjs,theme-hunt99.test.mjs,theme-palette.test.mjs,theme-parts48.test.mjs; packages/cli/api/theme/build/font-warning.mjs;- in
packages/cli/clients/cli/commands/:experimental-theme-editor-how.doc.mjs,experimental-theme-editor-new.doc.mjs,experimental-theme-editor-set.doc.mjs,experimental-theme-editor-show.doc.mjs,experimental-theme-editor-undo.doc.mjs,experimental-theme-preview-remove.doc.mjs,experimental/theme.mjs; packages/cli/clients/cli/lib/json-shim.mjs;packages/cli/foundation/doc-compiler/doc-loads.test.mjs;packages/cli/foundation/fonts/font-stylesheet.mjs.
- the other 10
…stylesheet beside the source, which is the theme's own <slug>.fonts.css only
… of the name unless only the name without it is a known family; a weight number never is
…id stamped PNG copy, the default-page note asserted unconditionally in a preview of its own, add into a renamed preview with its result checked)
|
/approve-spec 78e48da |
There was a problem hiding this comment.
Changes requested: one release-note gap remains. The three defects from the last review are fixed.
- Adding Segoe UI Light, Semilight, Semibold and Black to the system font list (
packages/cli/api/theme/build/font-warning.mjs:63-67) also changes the stableastryx theme build"not loaded" notice andastryx doctor's font check, but only the[experimental]editor Changeset describes it, and the release policy's experimental exception (AST-017 FR22) never covers stable CLI commands, so add a sentence to the[fix]Changeset fortheme buildsaying both commands now treat those four families as system fonts.
The direction of the changes is covered by the engineering owner's approval for this exact commit. CI's test jobs have not finished on this head.
Claims and files checked
Claims (description):
- Repair values come only from declared sources, and every offered line is checked the way
setchecks it: verified (allowedLine,followLine; the hunt98 tests). - Names, flags and saved entries are read as meant: verified (hunt103 tests); a family with a weight word is now kept whole when it is a known family (
_check.mjs:2141-2150, hunt98 test). - Every suggested
set,undo,newandcompileline goes through one vetter: verified (followLine). - The own-token check judges the evaluated build and names the file and line: verified (hunt101 tests).
compilerefuses a source the editor cannot keep, and app-copy fonts follow the families the build writes: verified (hunt102 tests).- A stable build reads the font stylesheet beside the source: verified; it reads only the theme's own
<slug>.fonts.css(theme.mjs:158, hunt102 test). - A blank
--outis refused: verified (build.mjs:3899), now with a[fix]release note for the stable command. - One-mode background, variant and state colors, the corners dial on pinned radii, and keywords with
--mode: verified (parts48 tests). how --helplists the asks it understands, and an unanswered question points there: verified (how-families tests).- Shared readers, prohibitions as exceptions, and the measured check: verified (hunt99 tests).
- The picture sweep deletes only recorded pictures: verified (
editorRecorded; the hunt100 test now stamps a valid picture copy). - Playwright runs as its own process with one temp folder and a time bound; unwritable folders give
ERR_WRITE_FAILED; one preview finder; a workspace theme is kept: verified (hunt100 tests). - The named suites pass and the static checks are clean: not verified here; the test jobs had not finished on this head.
Claims (Changesets):
- family-weight-words: the weight-word rule is verified; the Segoe UI system families also change stable
theme buildanddoctor(blocking finding). - theme-build-blank-out-local-fonts: verified, but it does not yet name the Segoe UI change.
- compile-source-shape-fonts, how-asks-list, how-dial-by-effect, how-shared-readers, hunt98, hunt100, hunt101, integration-fixes, names-flags, own-token-message, parts48: verified.
Files:
packages/cli/api/theme/build/font-warning.mjs,packages/cli/api/theme-edit/_tables.mjs,.changeset/experimental-theme-family-weight-words.md,.changeset/theme-build-blank-out-local-fonts.md: the blocking finding.- Clear, changed since the last review:
.changeset/experimental-theme-compile-source-shape-fonts.md,packages/cli/api/theme-edit/_check.mjs,packages/cli/clients/cli/commands/theme.mjs,theme-hunt98.test.mjs,theme-hunt100.test.mjs,theme-hunt102.test.mjs. - Clear, unchanged since the last review and rechecked against the changes above: the other 58 files (the remaining 10 Changesets, the editor modules and tests in
packages/cli/api/theme-edit/,api/theme/build/build.mjs, the command docs,experimental/theme.mjs,json-shim.mjs,doc-loads.test.mjsandfoundation/fonts/font-stylesheet.mjs).
…read as system fonts by theme build and doctor
|
/approve-spec cbe3eba |
There was a problem hiding this comment.
Changes requested: one release-note correction. The Segoe UI release-note gap from the last review is fixed.
- Miss:
.changeset/experimental-theme-how-shared-readers.mdlists "8-digit hex shadow colors scale and measure" as part of this change, but the base already scales and measures them the same way (how "softer shadows"over#2d241b0Dgives#2d241b08on both, and the 8-digit test intheme-hunt99.test.mjspasses against the base), so please drop that clause and the "(8-digit hex included)" in the description.
The direction of the changes is covered by the engineering owner's approval for this exact commit. Two new test cases pass without their fix and could be tightened: the phone-note case in theme-hunt101.test.mjs needs a base theme to reproduce the note, and the long-input case in theme-hunt98.test.mjs needs a long value that holds a setting name.
Claims and files checked
Claims (description):
- Repair values come only from declared sources and anything else points to
how: verified (allowedLinein_normal.mjs,carryTypedin_edit.mjs; hunt98 tests). - Every offered line is checked the way
setchecks it: verified (followLinein_vet.mjs,vetSuggestions,workingLines). - Names, flags and saved entries are read as meant (
only, theme typed after the setting, dial words in any case, rem corners, thing and value in one word): verified (hunt103 tests). - Suggested
set,undo,newandcompilelines go through one vetter: verified (followChangeLine,followNewLine,editorFollowCompileall usefollowLine). - The own-token check judges the evaluated build and names file and line: verified (
ownTokenProblems,evaluatedTheme; hunt101 tests). compilerefuses a source the editor cannot keep: verified (themeSourceRefusal; hunt102 test).- App-copy fonts follow the families the build writes: verified (
copyFontsCss; hunt102 test). - A stable build reads the font stylesheet beside the source: verified; it reads only the theme's own
<slug>.fonts.css(commands/theme.mjs). - A blank
--outis refused: verified (build.mjs; hunt102 test, stable and experimental). - One-mode colors in backgrounds, variants and states, the corners dial on pinned radii, and keywords with
--mode: verified (compileTheme,checkOne; parts48 tests). how --helplists the asks it understands and a refusal points there: verified (how-families tests).- One reader each for mode phrases, bounds and shadow strength: verified (
noMode,boundOf,shadowWay); "8-digit hex included": false, the base already handled it (blocking finding). - Prohibitions become exceptions, and exceptions hold for every variant and state: verified (
draftAnswer; hunt99 tests). - The measured check covers typed values, see-through fills over the page and token steps on a part: verified (
measureFit,painted). - The picture sweep deletes only recorded pictures: verified (
editorRecorded; hunt100 test). - Playwright runs as its own process with one temp folder and a time bound: verified (
_playwright-picture.mjs,runBrowser; hunt100 tests). - Unwritable folders give
ERR_WRITE_FAILED, one preview finder serves every command, a workspace theme is kept: verified (themeEditShow,themePreviews,themeElsewhere; hunt100 tests). - New
theme-huntfiles each with a topdescribethat says what it checks: true for all buttheme-hunt98.test.mjs, whose topdescribeis justhunt98(non-blocking). - The named suites pass and the static checks are clean: the eight new files pass here (257 tests); typecheck, lint and two of the five node test shards passed in CI at this head, and the other shards were still running.
Claims (Changesets):
- how-shared-readers: false for the 8-digit hex clause (blocking finding); the other clauses verified.
- theme-build-blank-out-local-fonts: verified, including the Segoe UI sentence for
theme buildanddoctor. - compile-source-shape-fonts, family-weight-words, how-asks-list, how-dial-by-effect, hunt98, hunt100, hunt101, integration-fixes, names-flags, own-token-message, parts48: verified.
Files:
.changeset/experimental-theme-how-shared-readers.md,theme-hunt99.test.mjs: the blocking finding.theme-hunt101.test.mjs,theme-hunt98.test.mjs: one case each passes without its fix, andtheme-hunt98.test.mjs's topdescribenames no check (non-blocking).- Clear: the other 12 Changesets;
_adapter.mjs,_check.mjs,_color.mjs,_edit.mjs,_how-commands.mjs,_how-question.mjs,_how.mjs,_normal.mjs,_playwright-picture.mjs,_preview-app.mjs,_preview.mjs,_settings.mjs,_tables.mjs,_vet.mjs;themeEditHow.doc.mjs,themeEditNew.doc.mjs,themeEditPreviewRemove.doc.mjs;theme/build/build.mjs,theme/build/font-warning.mjs; the sixexperimental-theme-*.doc.mjscommand docs;experimental/theme.mjs,commands/theme.mjs,lib/json-shim.mjs;foundation/fonts/font-stylesheet.mjs,doc-loads.test.mjs;theme-hunt100,theme-hunt102,theme-hunt103,theme-parts48,theme-how-familiestests; and the 17 updated test files (theme-edit,theme-editor-refusals.behavior,theme-how,theme-hunt,theme-hunt4/5/16/21/26/41/56/75/83/87/92/96,theme-palette).
…, which the base already scales
…e phone rule sets the type again, and first shows the note for a tokens-map family
…so it fails without the length guard
|
/approve-spec 77c7aa9 |
There was a problem hiding this comment.
Changes requested: two sentences in the pull request description do not match the code. The last round's release-note correction is in, and this round's two tests now fail without their fix.
- Miss: the description says "a stable build reads
*.fonts.css", buttheme buildreads only the theme's own<slug>.fonts.css(packages/cli/clients/cli/commands/theme.mjs:156-162), andtheme-hunt102.test.mjschecks that a strayother.fonts.cssis ignored, so please describe it that way. - Miss: the description says each new
theme-hunt<N>file has a topdescribethat says what it checks, butpackages/cli/api/theme-edit/theme-hunt98.test.mjs:217isdescribe('hunt98', …), so please rename it to what it checks or reword the sentence.
The last review raised both only as non-blocking notes; nothing else blocks.
Claims and files checked
Changeset entries:
- Compile refuses a source that no longer carries its settings, the app copy's fonts follow the built families, a build counts the theme's own font stylesheet, and a blank
--outis refused: verified (_adapter.mjscompile check,_preview.mjscopyFontsCss,theme-hunt102.test.mjs). - A weight word ending a family name stays part of the name unless only the shorter name is known, and the Segoe UI weights are system fonts: verified (
_check.mjs:2127,_tables.mjs, the hunt98 weight test). how --helplists the asks it understands, and an unanswered question points there first: verified (experimental-theme-editor-how.doc.mjs,_how.mjs,theme-how-families.test.mjs).howjudges a dial step by its effect, and a typed value waives the direction only for what it writes: verified (_how-commands.mjsmeasured check).howreads mode phrases, bounds, shadow strength and prohibitions through shared readers: verified (_how-question.mjs; "weaker shadows" gets no command on the base and softer shadows on the head).- Preview: only recorded pictures are deleted, browsers run bounded in their own temp folder, unwritable folders fail clearly, renamed and workspace previews are found, and refusals offer what works: verified (
_settings.mjs,_preview.mjs,_preview-app.mjs,theme-hunt100.test.mjs). - The own-token check judges built values, and typography families get no phone note: verified (
_edit.mjs; the phone-note test fails on the base). - Every repair value passes one gate of declared sources, with the listed cases: verified (
_normal.mjs:881,theme-hunt98.test.mjs; the long-input case fails on the base). - A base theme that is not installed names its install line, and thin or thick borders name a width: verified (
_edit.mjs,_how-question.mjs). - Names, flags and saved entries are read as meant (
only, theme order, vibrancy undo,newflags,--base,showoptions, reserved names, rem corners, dial words, one-word thing and value, the single theme, the compile line): verified (_settings.mjs,_edit.mjs,experimental/theme.mjs,json-shim.mjs,theme-hunt103.test.mjs). - An own-token reason ends with one period: verified (
_edit.mjsown-token refusal). - One-mode colours in a variant or state, gradient colour layers, keywords without a mode, the corners dial on pinned radii, the override note and margins in
how: verified (_settings.mjs,_check.mjs,_tables.mjs,theme-parts48.test.mjs). - Stable
theme buildrefuses a blank--out, its font note leaves out the theme's own<slug>.fonts.cssfamilies, and it anddoctortreat four Segoe UI weights as system fonts: verified (build.mjs:3891,theme.mjs:156-162,font-warning.mjs:63-67).
Description claims:
- Repair values come only from declared sources, and every offered line is checked as
setchecks it: verified. - Names, flags and saved entries are read as meant, and suggested lines go through one follow-through: verified (
_vet.mjs:159). - The own-token check judges the evaluated build and names file and line: verified.
- Compile refuses an unkeepable source, app-copy fonts follow the build, and a blank
--outis refused: verified. - "A stable build reads
*.fonts.css": false; it reads only<slug>.fonts.css(theme.mjs:156-162). - One-mode backgrounds, variant and state colours, the corners dial on pinned radii, and keywords with
--mode: verified. how --helplists the asks, and shared readers, prohibitions, exceptions and the measured check work as described: verified.- The picture sweep, the bounded Playwright process, the write failure, the shared preview finder and the workspace theme: verified.
- Each new
theme-hunt<N>file has a topdescribethat says what it checks: false fortheme-hunt98.test.mjs:217. - The suites pass and tsc and prettier are clean: typecheck, lint and test-node shards 1 to 3 pass at this head; shards 4 and 5 were still running.
Files (68):
- Changesets (13):
experimental-theme-compile-source-shape-fonts.md,experimental-theme-family-weight-words.md,experimental-theme-how-asks-list.md,experimental-theme-how-dial-by-effect.md,experimental-theme-how-shared-readers.md,experimental-theme-hunt100.md,experimental-theme-hunt101.md,experimental-theme-hunt98.md,experimental-theme-integration-fixes.md,experimental-theme-names-flags.md,experimental-theme-own-token-message.md,experimental-theme-parts48.md,theme-build-blank-out-local-fonts.md: clear. - Source (20):
api/theme-edit/_adapter.mjs,api/theme-edit/_check.mjs,api/theme-edit/_color.mjs,api/theme-edit/_edit.mjs,api/theme-edit/_how-commands.mjs,api/theme-edit/_how-question.mjs,api/theme-edit/_how.mjs,api/theme-edit/_normal.mjs,api/theme-edit/_playwright-picture.mjs,api/theme-edit/_preview-app.mjs,api/theme-edit/_preview.mjs,api/theme-edit/_settings.mjs,api/theme-edit/_tables.mjs,api/theme-edit/_vet.mjs,api/theme/build/build.mjs,api/theme/build/font-warning.mjs,clients/cli/commands/experimental/theme.mjs,clients/cli/commands/theme.mjs,clients/cli/lib/json-shim.mjs,foundation/fonts/font-stylesheet.mjs: clear. - Docs (9):
themeEditHow.doc.mjs,themeEditNew.doc.mjs,themeEditPreviewRemove.doc.mjs,experimental-theme-editor-how.doc.mjs,experimental-theme-editor-new.doc.mjs,experimental-theme-editor-set.doc.mjs,experimental-theme-editor-show.doc.mjs,experimental-theme-editor-undo.doc.mjs,experimental-theme-preview-remove.doc.mjs: clear. - Tests (26):
theme-edit.test.mjs,theme-editor-refusals.behavior.test.mjs,theme-how-families.test.mjs,theme-how.test.mjs,theme-hunt.test.mjs,theme-hunt100.test.mjs,theme-hunt101.test.mjs,theme-hunt102.test.mjs,theme-hunt103.test.mjs,theme-hunt16.test.mjs,theme-hunt21.test.mjs,theme-hunt26.test.mjs,theme-hunt4.test.mjs,theme-hunt41.test.mjs,theme-hunt5.test.mjs,theme-hunt56.test.mjs,theme-hunt75.test.mjs,theme-hunt83.test.mjs,theme-hunt87.test.mjs,theme-hunt92.test.mjs,theme-hunt96.test.mjs,theme-hunt99.test.mjs,theme-palette.test.mjs,theme-parts48.test.mjs,doc-loads.test.mjs: clear;theme-hunt98.test.mjs: its topdescribedoes not match the description (finding above).
|
/approve-spec d6b1227 |
There was a problem hiding this comment.
Approved pending CI: CI's test jobs have not finished on this head yet.
The two description points from the last review are fixed: the description now says theme build counts only the theme's own <slug>.fonts.css, and the top describe of theme-hunt98.test.mjs says what it checks. Nothing else blocks; the stable theme build and doctor corrections ship under their own [fix] Changeset, and the editor changes stay under [experimental].
Claims and files checked
Changeset entries:
- Compile refuses a source that no longer carries its settings, the app copy's fonts follow the built families, a build counts the theme's own font stylesheet, and a blank
--outis refused: verified (_adapter.mjscompile check,_preview.mjscopyFontsCss,theme-hunt102.test.mjs). - A weight word ending a family name stays part of the name unless only the shorter name is known, a weight number never is, and the Segoe UI weights are system fonts: verified (
_check.mjs:2127-2150,_tables.mjs, thetheme-hunt98weight test). how --helplists the kinds of ask it understands, and an unanswered question points there first: verified (experimental-theme-editor-how.doc.mjs,_how.mjs,theme-how-families.test.mjs).howjudges a dial step by its effect, and a typed value waives the direction only for what it writes: verified (_how-commands.mjsmeasured check,theme-hunt26andtheme-hunt99tests).howreads mode phrases, bounds, shadow strength and prohibitions through shared readers, with the listed cases: verified (_how-question.mjsboundOf,shadowWay,noMode;theme-hunt99.test.mjs).- Preview: only recorded pictures are deleted, each browser runs bounded in its own temp folder and keeps its real cause, unwritable folders fail clearly, renamed and workspace previews are found, and refusals offer what works: verified (
_settings.mjseditorRecorded,_preview.mjsrunBrowser,_preview-app.mjs,theme-hunt100.test.mjs). - The own-token check judges built values and names the file and line, typography is checked as built, and a typography family gets no phone note: verified (
_edit.mjsown-token check,theme-hunt101.test.mjs). - Every repair value passes one gate of declared sources, with the listed cases: verified (
_normal.mjs:881,theme-hunt98.test.mjs). - A base theme that is not installed names its install line, and a thin or thick border names a width while thinner or thicker steps from the width now: verified (
_edit.mjsbase check,_how-question.mjsborder width). - Names, flags and saved entries are read as meant (
only, theme order, vibrancy undo,newflags,--base,showoptions, reserved names, rem corners, dial words, one-word thing and value, the single theme, the compile line from a subfolder): verified (_settings.mjs,_edit.mjs,experimental/theme.mjs,json-shim.mjs,theme-hunt103.test.mjs). - An own-token reason ends with one period: verified (
_edit.mjsown-token refusal). - One-mode colours in a variant or state, gradient colour layers, keywords without a mode, the corners dial on pinned radii, the override note and margins in
how: verified (_settings.mjs,_check.mjs,_tables.mjs,theme-parts48.test.mjs). - Stable
theme buildrefuses a blank--out, its font note leaves out the theme's own<slug>.fonts.cssfamilies, and it anddoctortreat four Segoe UI weights as system fonts: verified (build.mjs:3891,theme.mjs:156-162,font-warning.mjs:63-67).
Description claims:
- Repair values come only from declared sources, and every offered line is checked as
setchecks it: verified (_normal.mjs:881,theme-hunt98.test.mjs). - Names, flags and saved entries are read as meant, and suggested lines go through one vetter: verified (
_vet.mjs:159,theme-hunt103.test.mjs). - The own-token check judges the evaluated build and names file and line: verified (
theme-hunt101.test.mjs). - Compile refuses a source the editor cannot keep, app-copy fonts follow the build, a stable build counts only the theme's own
<slug>.fonts.css, and a blank--outis refused: verified (theme-hunt102.test.mjs). - One-mode backgrounds, variant and state colours, the corners dial on pinned radii, and keywords with
--mode: verified (theme-parts48.test.mjs). how --helplists the asks, and the shared readers, prohibitions, exceptions and measured check work as described: verified (theme-how-families.test.mjs,theme-hunt99.test.mjs).- The picture sweep, the bounded Playwright process, the write failure, the shared preview finder and the workspace theme: verified (
theme-hunt100.test.mjs). - Each new
theme-hunt<N>file has a topdescribethat says what it checks: verified (theme-hunt98.test.mjs:217and the others). - The suites pass and the repository checks, Changesets, tsc and Prettier are clean: the changed suites, the CLI typecheck, Prettier and the Changeset check pass at this head and the Lint workflow passed; the full test shards wait on CI.
Files (68):
- Changesets (13):
experimental-theme-compile-source-shape-fonts.md,experimental-theme-family-weight-words.md,experimental-theme-how-asks-list.md,experimental-theme-how-dial-by-effect.md,experimental-theme-how-shared-readers.md,experimental-theme-hunt100.md,experimental-theme-hunt101.md,experimental-theme-hunt98.md,experimental-theme-integration-fixes.md,experimental-theme-names-flags.md,experimental-theme-own-token-message.md,experimental-theme-parts48.md,theme-build-blank-out-local-fonts.md: clear. - Source (20):
api/theme-edit/_adapter.mjs,_check.mjs,_color.mjs,_edit.mjs,_how-commands.mjs,_how-question.mjs,_how.mjs,_normal.mjs,_playwright-picture.mjs,_preview-app.mjs,_preview.mjs,_settings.mjs,_tables.mjs,_vet.mjs;api/theme/build/build.mjs,font-warning.mjs;clients/cli/commands/experimental/theme.mjs,clients/cli/commands/theme.mjs,clients/cli/lib/json-shim.mjs;foundation/fonts/font-stylesheet.mjs: clear. - Tests (26):
theme-edit.test.mjs,theme-editor-refusals.behavior.test.mjs,theme-how-families.test.mjs,theme-how.test.mjs,theme-hunt.test.mjs,theme-hunt4,5,16,21,26,41,56,75,83,87,92,96,98,99,100,101,102,103(.test.mjs),theme-palette.test.mjs,theme-parts48.test.mjs,foundation/doc-compiler/doc-loads.test.mjs: clear. - Command and API docs (9):
experimental-theme-editor-how.doc.mjs,-new,-set,-show,-undo,experimental-theme-preview-remove.doc.mjs,themeEditHow.doc.mjs,themeEditNew.doc.mjs,themeEditPreviewRemove.doc.mjs: clear.
Summary
Follow-up fixes for
astryx experimental theme, from the next round of edge-case testing across every command, subcommand and option. Each fix is at its cause, with tests.Reading what was typed
how. Every offered line is checked the waysetchecks it.--onlyas a boolean, the theme typed after the setting, dial words in any case, corners in rem, and a thing and value in one word. Every suggestedset,undo,newandcompileline goes through one vetter before it is offered.Own tokens and compile
compilerefuses a source whose shape the editor cannot keep. App-copy fonts follow the families the build writes; a stabletheme buildcounts fonts loaded by the theme's own<slug>.fonts.cssbeside the source (no other stylesheet); a blank--outis refused.Parts and modes
--modeare refused.how
how --helplists the kinds of asks it understands, and a refusal points there.Preview
ERR_WRITE_FAILED. One preview finder serves every command, and a workspace's theme is kept.Tests
New
theme-hunt<N>files, each with a topdescribethat says what it checks, plus the updated expectations each fix names. The theme-edit, theme, doctor and command suites pass. Structure, changesets, tsc and prettier are clean.@josephfarina