Skip to content

feat(cli): bases step two — theme commands call the base's themes adapter (prototype) - #11596

Closed
josephfarina wants to merge 1 commit into
mainfrom
bases-step2-themes
Closed

josephfarina wants to merge 1 commit into
mainfrom
bases-step2-themes

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

HOLD: prototype paused by the maintainer until at least 2026-11-19; not for merge until he approves it.

Prototype — draft, not for merge. Based on main, after the first step merged. Wires the themes capability end to end as the proof for bases step two; other capabilities stay unserved.

What a native base author writes

astryx.integration.mjs:

export default {
  base: {
    adapters: {
      // A plain path serves every themes step:
      //   themes: './adapters/themes.mjs',
      // The object form serves only the listed steps; help reads it without loading the module.
      themes: {module: './adapters/themes.mjs', steps: ['targets', 'compile', 'appModule']},
    },
  },
};

adapters/themes.mjs (types from @astryxdesign/cli/authoring: ThemesAdapter, Step, StepResult, …):

/** @type {import('@astryxdesign/cli/authoring').ThemesAdapter['targets']} */
export function targets() {
  return {ok: true, value: {targets: [
    {key: 'button', component: 'Button', props: ['variant:primary'], states: ['pressed']},
  ]}};
}

/** @type {import('@astryxdesign/cli/authoring').ThemesAdapter['compile']} */
export function compile({theme, name}) {
  const tokens = theme.value.tokens ?? {};
  if (tokens['radius-md']?.startsWith('calc(')) {
    return {ok: false, failure: {code: 'invalid-input', message: `radius-md "${tokens['radius-md']}" has no native value.`, at: {file: theme.file}}};
  }
  return {
    ok: true,
    value: {
      name,
      tokenCount: Object.keys(tokens).length,
      componentCount: 0,
      // Exactly one role "module" file, named <name>.js|.mjs|.ts|.tsx.
      files: [{name: `${name}.ts`, role: 'module', contents: `export const ${theme.exportName} = ${JSON.stringify({name, light: tokens})} as const;\n`}],
    },
    notices: ['components are web-only; not compiled'],
  };
}

/** @type {import('@astryxdesign/cli/authoring').ThemesAdapter['appModule']} */
export function appModule({themes, defaultSlug}) {
  const imports = themes.map((t, i) => `import {${t.exportName} as _t${i}} from '${t.module}';`).join('\n');
  const entries = themes.map((t, i) => `${JSON.stringify(t.slug)}: _t${i}`).join(', ');
  return {ok: true, value: {source: `${imports}\nexport const themes = {${entries}} as const;\nexport const defaultThemeSlug = ${JSON.stringify(defaultSlug)};\n`}};
}

An adapter never writes, prints, or exits. It returns {ok: true, value, warnings?, notices?} or {ok: false, failure: {code, message, at?, fix?}}.

What each command does with it

  • theme targets [filter]: calls targets. The CLI still does the filter, the exact-component match, and the near-miss suggestions. className is '' when the base gives none.
  • theme build <file>: the CLI loads the source with no Core interception and calls compile({theme: {file, exportName, value}, name, iconsSpecifier?}). It writes every returned file beside the source, or into the --out folder, inside the project, as one atomic write. --check compares the returned contents with what is on disk and writes nothing; exit 1 when stale. The JSON receipt is theme.build.base (for --check, theme.build.check). --family, --watch, and --out with several files fail with ERR_THEME_INVALID.
  • theme add | use | remove: same record logic as Core. A local theme's module is <slug>.{js,mjs,ts,tsx} beside the source; its stylesheet is null unless <slug>.css exists. The CLI calls appModule({themes, defaultSlug}) with specifiers relative to the generated module (TS extension dropped). Then it writes src/astryx-themes.ts as the CLI's own @generated header and @astryx-theme-record, followed by the returned source, so every base keeps a readable record. The first-add wiring snippet (Core's <Theme>) is not printed on another base.
  • Failures: a typed failure maps invalid-input → ERR_THEME_INVALID, not-found → the command's not-found code, conflict → ERR_FILE_EXISTS, unsupported → ERR_BASE_CAPABILITY. The message is the base's message plus (file:line), and fix becomes a suggestion. A throw, a non-StepResult, or a value that breaks the contract → new ERR_BASE_ADAPTER, naming the base, step, and module. Nothing is written in either case.
  • Refusal: a step the object form lists but the module does not export refuses with the new reason not-exported: astryx theme build needs the themes.compile step; the active base @acme/native-ui lists it but ./adapters/themes.mjs does not export it. A function the module exports for a step it does not list is never called.

On a Core run nothing changes: every Core call site takes its old path, and the generated module text is the same.

Tests

packages/cli/clients/cli/bases.test.mjs, new block theme commands call the native base's themes adapter. A fixture native base with a real themes adapter and two local theme sources:

  • theme targets: the adapter's targets, the CLI filter, and ERR_UNKNOWN_COMPONENT on a miss.
  • theme build: the written file is byte-equal to what compile returned. --check passes, then fails after a hand edit and writes nothing. Text output shows the [ok] and [note] lines.
  • A typed invalid-input failure becomes ERR_THEME_INVALID with the base's message, and nothing is written.
  • theme add / add / use / remove: the exact module text (CLI header + appModule source), the record after each step, and no Core snippet in the text output.
  • ERR_BASE_ADAPTER for a throwing compile and for an appModule that returns {source: 42}. Nothing is written.
  • Object form steps: ['targets', 'compile'] with a module that exports only targets: help shows targets and build but hides add, build refuses with not-exported plus module, add refuses with not-declared, and the manifest lists the served steps.
  • experimental theme editor show|how, preview add, and the bare editor group refuse with not-declared and write nothing on a themes base; help hides editor, and the manifest marks it unavailable while compile is available.
  • Changed step-one tests: a plain-path adapter now shows its commands in help without loading the module, and a run loads it (failed-to-load when it throws on import). In the unit check, a listed-but-missing step is not-exported.

Gates (run on this head)

  • pnpm sync:api-types ✓ · pnpm typecheck:json-api ✓ · pnpm typecheck:authoring ✓ · pnpm readme:check ✓ (README regenerated for the new code)
  • pnpm typecheck:strict ✓
  • pnpm test: 13822 passed. Five failed, all known on this box: use-locale/use-collator (ICU), plus packed-self-audit, stored-docs, and importpath, which time out under load and pass when run alone. bases.test passes 40/40.
  • node .github/scripts/cli-api-types-verify.mjs ✓ · root pnpm check:knowledge ✓ · node scripts/check-changesets.mjs ✓ · eslint on changed files ✓

Not done (prototype limits)

  • Only themes.targets, themes.compile, and themes.appModule are called, and a base serves each one only to the commands that call it (STEP_CALLERS: theme targets|build|add|use|remove and their experimental theme twins). Every other command that needs a step stays hidden and refused, including experimental theme editor * and experimental theme preview add, which declare themes steps but call no adapter. Recorded as an FR6 gap.
  • Package themes on a non-Core base still need Core's module + stylesheet exports. Only local themes are wired.
  • doctor integration validate does not check base yet (FR3 gap kept).

Writing rubric results

AST-114 edits only: R1 present tense, describes the system and no project steps ✓ · R2 no research in the record ✓ · R3 no change citations ✓ · R4 no new decisions ✓ · R5 no PR or issue references ✓ · R6 no new open questions ✓ · R7 the remaining gaps use <FR> gap: lines, no status ✓

@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 17, 2026 9:54pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 13, 2026
@astracat-bot

astracat-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 17, 2026, 10:07 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the rule that a base serves a step only to the commands that call it, and the not-exported reason) and adds new @astryxdesign/cli surface, while its non-Core theme path departs from current spec:AST-050 FR2, FR5 and FR8 without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) and by naming the record that amends spec:AST-050 for non-Core bases.

Blocking findings to fix, independent of that decision:

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:135-143 checks the path lexically instead of with assertWithin on real paths as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build re-implements Core's output confinement and --check comparison instead of calling confineOutput and staleBuildOutputs, so a CRLF checkout of a correct build fails --check as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which the lint workflow runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs read and write files outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so themeBuild and themeAdd called through @astryxdesign/cli/api on a non-Core base still compile with Core and write Core's module body around the base's built module (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners because resolveRecordedTheme still looks for <slug>.js, and the fix it names is the build and add that were just run (spec:AST-050 FR11).
  • The generated TypeScript module on a base no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the response type and the README promise on that code.
  • The new changeset says a plain path "still" serves every step, and the unchanged cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.

Smaller notes are inline.

Claims and files checked
  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (new bases tests; same commands run on a fixture project).
  • Claim: the CLI does every write and writes nothing on a failure: verified (base.mjs applyWrites, _adapter.mjs writeThemeApp; tests for a throwing compile and a malformed appModule).
  • Claim: builds write inside the project as one atomic write: false for a symlinked folder (finding 1).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified in text and JSON, but CRLF is reported stale (finding 2).
  • Claim: {module, steps} serves only the listed steps and an unlisted export is never called: verified (resolve.mjs baseOf; listed-steps test).
  • Claim: a plain path "still" serves every step: false wording; on the base branch a plain path served no step (finding 8).
  • Claim: the authoring entry publishes the step contracts: verified for the three themes steps.
  • Claim: a throw or malformed value fails with ERR_BASE_ADAPTER naming base, step and module: verified (tests).
  • Claim: a listed step the module does not export refuses with not-exported: verified (test), also for a plain path.
  • Claim: typed failures map to the command's codes with the message, location and fix: verified (call-step.mjs), but unsupported lacks requirement (finding 7).
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified (theme.mjs); --family-key alone is accepted (inline note).
  • Claim: a local theme's module is <slug>.{js,mjs,ts,tsx} and its stylesheet is null unless <slug>.css exists: verified (theme-imports.mjs).
  • Claim: add, use and remove write the CLI header and record followed by the adapter's source, with no Core wiring snippet: verified.
  • Claim: nothing changes on a Core run: verified (theme, discovery, config, doctor-theme and bases suites pass).
  • Claim: the listed gates pass: bases tests (40), README, knowledge, changeset, API-type and lint checks re-run and pass; check:cli-structure, not listed, fails (finding 3); strict typecheck not reproduced.
  • Files: api/theme/base/base.mjs findings 1, 2, 6; api/base/call-step.mjs findings 3, 7; commands/theme.mjs finding 4; api/theme/_adapter.mjs finding 5; foundation/discovery/theme-imports.mjs finding 4; .changeset/cli-bases-themes.md finding 8; docs/specs/AST-114-bases/spec.md owner decision plus an inline formatting note; foundation/bases/requirements.mjs inline note.
  • Files clear: README.md, api/doctor/theme-checks.mjs, api/integration/pack-check.mjs, api/theme/add/add.mjs, api/theme/build/build.mjs, api/theme/remove/remove.mjs, api/theme/targets/targets.mjs, api/theme/theme.type.mjs, api/theme/use/use.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs, foundation/response/error-codes.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

Comment on lines +135 to +143
const root = findPackageRoot(cwd) ?? cwd;
const outDir = options.out ? path.resolve(cwd, options.out) : path.dirname(source);
const rel = path.relative(root, outDir);
if (rel.startsWith('..') || path.isAbsolute(rel)) {
throw new AstryxError(
`--out ${options.out} is outside the project. Name a folder inside it.`,
undefined,
ERROR_CODES.ERR_PATH_TRAVERSAL,
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is lexical, and applyWrites refuses only a symlinked file, not a symlinked folder. With --out linked, where linked is a symlink inside the project to a folder outside it, the build exits 0 and writes matcha.ts outside the project (architecture:cli-surface INV10: output paths pass assertWithin, which canonicalises symlinks). Core's confineOutput in build/build.mjs already does this. Calling it also fixes the message: with no --out, a source outside the project currently fails with --out undefined is outside the project.

// A file that cannot be read is missing.
}
if (current == null) stale.push({path: write.shown, reason: 'missing'});
else if (current !== write.contents) stale.push({path: write.shown, reason: 'outdated'});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This verbatim comparison re-implements Core's staleBuildOutputs / normalizeThemeBuildForCompare without the CRLF handling. A CRLF checkout of a correct build is reported outdated and exits 1, against spec:AST-050 FR8 ("treat CRLF and LF line endings as the same text"). Calling the shared helper keeps one path.

Comment on lines +246 to +252
check: value => {
if (typeof value.source !== 'string') return 'source is not a string.';
for (const name of ['themes', 'defaultThemeSlug']) {
if (!new RegExp(`\\bexport\\s+(?:const|let|var)\\s+${name}\\b`, 'u').test(value.source)) {
return `source does not export ${name}.`;
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a TypeScript project, spec:AST-050 FR2 lists ThemeSlug among the generated module's public exports, and this check accepts a source without it. App code that imports ThemeSlug stops compiling when the project moves to a base. Require it here, or append export type ThemeSlug = keyof typeof themes; after the adapter's source.

Comment on lines +143 to +145
: failure.code === 'conflict'
? ERROR_CODES.ERR_FILE_EXISTS
: ERROR_CODES.ERR_BASE_CAPABILITY;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A typed unsupported failure becomes ERR_BASE_CAPABILITY with only error and code. The response type (foundation/response/base.d.ts) and the README say requirement is present on that code, so a consumer that reads requirement.missing gets undefined. Give unsupported its own code, or build a requirement for it.

* @position api/base — the one place a command reaches a base's code
*/

import * as fs from 'node:fs';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnpm check:cli-structure (run by check:repo in the lint workflow) fails here and on api/theme/base/base.mjs:14: both modules import node:fs outside the subject's adapter (INV21), and api/base/ has no FunctionDoc, typedefs or test (INV20). The check passes on the base branch.

'@astryxdesign/cli': patch
---

[feat] On a base other than Core, `theme targets`, `theme build`, and `theme add`, `use`, and `remove` call the base's `themes` adapter: `targets` returns the theming targets, `compile` returns the built files, and `appModule` returns the generated module's source. The CLI does every write. A base may list the steps an adapter serves with `adapters: {themes: {module, steps}}`; a plain path still serves every step. `@astryxdesign/cli/authoring` publishes the step contracts. A step that throws or returns a malformed result fails with the new `ERR_BASE_ADAPTER`, and a listed step the module does not export refuses with `reason: "not-exported"`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a plain path still serves every step": on the base branch a plain path serves no step (baseOf returns steps: []). The unchanged .changeset/cli-bases.md also still says "Commands do not call base adapters yet, so a base other than Core serves no platform step", and both notes ship in the same release. Suggest dropping "still" and amending cli-bases.md.

module:

Error: astryx theme build needs the themes.compile step; the active base @acme/native-ui lists it but ./adapters/themes.mjs does not export it.
A

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: this one-space A after the indented example ends the FR8 list item, so "A typed name … MUST fail this way" renders outside FR8. Indent it to two spaces and join it with the next line.

const noun = requirement.missing.length === 1 ? 'step' : 'steps';
if (requirement.reason === 'not-exported') {
const it = requirement.missing.length === 1 ? 'it' : 'them';
return `${part} needs the ${steps} ${noun}; the active base ${requirement.base.name} lists ${it} but ${requirement.module} does not export ${it}.`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: with a plain-path adapter, this line says the base "lists" the step, but the base listed nothing; it declared a path that serves every step. Wording such as "serves it through ./adapters/themes.mjs, which does not export it" fits both forms.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the rule that a base serves a step only to the commands that call it, and the not-exported reason) and adds new @astryxdesign/cli surface, while its non-Core theme path departs from current spec:AST-050 FR2, FR5 and FR8 without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) and by naming the record that amends spec:AST-050 for non-Core bases.

Blocking findings to fix, independent of that decision:

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:135-144 checks the path lexically instead of with assertWithin on real paths as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build re-implements Core's output confinement and --check comparison instead of calling confineOutput and staleBuildOutputs, so a CRLF checkout of a correct build fails --check as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which the lint workflow runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs read and write files outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so themeBuild and themeAdd called through @astryxdesign/cli/api on a non-Core base still compile with Core and write Core's module body around the base's built module (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners because resolveRecordedTheme still looks for <slug>.js, and the fix it names is the build and add that were just run (spec:AST-050 FR11).
  • The generated TypeScript module on a base no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the response type and the README promise on that code.
  • The new changeset says a plain path "still" serves every step, and the unchanged cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses with ERR_THEME_INVALID or ERR_FILE_EXISTS (api/theme/base/base.mjs:191-197, spec:AST-050 FR8).

The earlier inline comments still apply; new smaller notes are inline.

Claims and files checked
  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: the CLI does every write and writes nothing on a failure: verified for failures (tests for a throwing compile, a typed failure and a malformed appModule); successful writes can replace the source (finding 9).
  • Claim: builds write inside the project as one atomic write: false for a symlinked folder (finding 1).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified in text and JSON, but CRLF is reported stale (finding 2).
  • Claim: {module, steps} serves only the listed steps and an unlisted export is never called: verified (listed-steps test).
  • Claim: a plain path "still" serves every step: false wording; on the base branch a plain path served no step (finding 8).
  • Claim: the authoring entry publishes the step contracts: verified for the three themes steps; authoring and JSON API typechecks pass.
  • Claim: a throw or malformed value fails with ERR_BASE_ADAPTER naming base, step and module: verified (tests).
  • Claim: a listed step the module does not export refuses with not-exported: verified (test), also for a plain path.
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (finding 7).
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified; --family-key alone is accepted (non-blocking).
  • Claim: a local theme's module is <slug>.{js,mjs,ts,tsx} and its stylesheet is null unless <slug>.css exists: verified.
  • Claim: add, use and remove write the CLI header and record followed by the adapter's source, with no Core wiring snippet: verified.
  • Claim: nothing changes on a Core run: verified (the seven published themes build identical outputs; theme, discovery, config, doctor-theme and bases suites pass).
  • Claim: the listed gates pass: bases tests, README, knowledge, changeset, API-type and authoring checks re-run and pass; check:cli-structure, not listed, fails (finding 3); the strict typecheck stops only on two templates that import an unbuilt theme package.
  • Files with findings: api/theme/base/base.mjs (1, 2, 6, 9), api/base/call-step.mjs (3, 7), commands/theme.mjs (4), api/theme/_adapter.mjs (5), foundation/discovery/theme-imports.mjs (4), .changeset/cli-bases-themes.md (8), docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note).
  • Files clear: README.md, api/doctor/theme-checks.mjs, api/integration/pack-check.mjs, api/theme/add/add.mjs, api/theme/build/build.mjs, api/theme/remove/remove.mjs, api/theme/targets/targets.mjs, api/theme/theme.type.mjs, api/theme/use/use.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs, foundation/response/error-codes.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

writes.map(write => ({
path: write.path,
contents: write.contents,
createOnly: false,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Miss from the earlier review: createOnly: false with no check of what each path holds. A theme source named for its theme (src/themes/ocean/ocean.ts, name: 'ocean') is replaced by the built module, exit 0, and with --out lib an unrelated lib/matcha.ts is overwritten too. Core's build refuses the source with ERR_THEME_INVALID and other existing files with ERR_FILE_EXISTS (theme-build.doc.mjs), and spec:AST-050 FR8 lets a build replace only its own earlier outputs. Refuse an output path equal to the source, and refuse to replace a file the CLI cannot show it wrote.

? declared
: path.basename(source).replace(/\.[^.]+$/u, '');
const root = findPackageRoot(cwd) ?? cwd;
const outDir = options.out ? path.resolve(cwd, options.out) : path.dirname(source);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: on a base --out names a folder, but help still shows Core's text ("Output CSS file path"). --out dist/theme.css, the form the theme packages use, creates a folder dist/theme.css/ holding matcha.ts. Refuse a path ending in a file extension, or say in the option's text that a base takes a folder.

async read(file) {
const resolved = path.resolve(projectDir ?? cwd, String(file));
const inside = roots.some(root => {
const rel = path.relative(root, resolved);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: read is described as confined to the project and the base package, but this check is lexical, so a symlink inside the project reads a file outside both. Compare real paths (fs.realpathSync) or say the confinement is lexical.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the rule that a base serves a step only to the commands that call it, and the not-exported reason) and adds new @astryxdesign/cli surface, while its non-Core theme path departs from current spec:AST-050 FR2, FR5 and FR8 without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) and by naming the record that amends spec:AST-050 for non-Core bases.

Blocking findings to fix, independent of that decision; each still reproduces on this head, and the earlier inline comments, the non-blocking ones included, still apply:

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build re-implements Core's output confinement and --check comparison instead of calling confineOutput and staleBuildOutputs, so a CRLF checkout of a correct build fails --check as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which the lint workflow runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs read and write files outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so themeBuild and themeAdd called through @astryxdesign/cli/api on a non-Core base still compile with Core and write Core's module body around the base's built module (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners because resolveRecordedTheme still looks for <slug>.js, and the fix it names is the build and add that were just run (spec:AST-050 FR11).
  • The generated TypeScript module on a base no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the unchanged cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses with ERR_THEME_INVALID or ERR_FILE_EXISTS (api/theme/base/base.mjs:191-197, spec:AST-050 FR8).
Claims and files checked
  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: builds write every returned file inside the project as one atomic write: false for a symlinked folder (finding 1), and the write can replace the source (finding 9).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified in text and JSON, but CRLF is reported stale (finding 2).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified; --family-key alone is accepted (non-blocking).
  • Claim: a local theme's module is <slug>.{js,mjs,ts,tsx} and its stylesheet is null unless <slug>.css exists: verified.
  • Claim: add, use and remove write the CLI header and record followed by the adapter's source, with relative specifiers and no Core wiring snippet: verified.
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (finding 7).
  • Claim: a throw or malformed value fails with ERR_BASE_ADAPTER naming base, step and module, and writes nothing: verified (tests).
  • Claim: a listed step the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified (the seven published themes build identical outputs; the CLI suites match the base branch).
  • Claim: the listed gates pass: the bases tests and the CLI theme, config, discovery and doctor suites, README, knowledge, changeset, API-type and authoring checks and eslint re-run and pass (the full test suite was not re-run); check:cli-structure, not listed, fails (finding 3); the strict typecheck stops only on two templates that import an unbuilt theme package.
  • Changeset claim: the theme commands call the adapter, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified; "a plain path still serves every step": false (finding 8).
  • Files with findings: api/theme/base/base.mjs (1, 2, 6, 9), api/base/call-step.mjs (3, 7), commands/theme.mjs (4), api/theme/_adapter.mjs (5), foundation/discovery/theme-imports.mjs (4), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (4, undocumented options), .changeset/cli-bases-themes.md (8), docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note).
  • Files clear: README.md, api/doctor/theme-checks.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs, foundation/response/error-codes.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the rule that a base serves a step only to the commands that call it, and the not-exported reason) and adds new @astryxdesign/cli surface, while its non-Core theme path departs from current spec:AST-050 FR2, FR5 and FR8 without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) and by naming the record that amends spec:AST-050 for non-Core bases.

Blocking findings to fix, independent of that decision; each still reproduces on this head, and the earlier inline comments, the non-blocking ones included, still apply:

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build re-implements Core's output confinement and --check comparison instead of calling confineOutput and staleBuildOutputs, so a CRLF checkout of a correct build fails --check as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which the lint workflow runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs read and write files outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so themeBuild and themeAdd called through @astryxdesign/cli/api on a non-Core base still compile with Core and write Core's module body around the base's built module (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners because resolveRecordedTheme still looks for <slug>.js, and the fix it names is the build and add that were just run (spec:AST-050 FR11).
  • The generated TypeScript module on a base no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the unchanged cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses with ERR_THEME_INVALID or ERR_FILE_EXISTS (api/theme/base/base.mjs:191-197, spec:AST-050 FR8).
Claims and files checked
  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the export, its name and the theme name to compile: verified (base build code and test).
  • Claim: builds write every returned file inside the project as one atomic write: false for a symlinked folder (finding 1), and the write can replace the source (finding 9).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified in text and JSON, but CRLF is reported stale (finding 2).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified; --family-key alone is accepted (non-blocking).
  • Claim: a local theme's module is <slug>.{js,mjs,ts,tsx} and its stylesheet is null unless <slug>.css exists: verified.
  • Claim: add, use and remove write the CLI header and record followed by the adapter's source, with relative specifiers and no Core wiring snippet: verified.
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (finding 7).
  • Claim: a throw or malformed value fails with ERR_BASE_ADAPTER naming base, step and module, and writes nothing: verified (tests).
  • Claim: a listed step the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified (the seven published themes build identical outputs; the CLI theme, config, discovery, doctor and bases suites pass).
  • Claim: the listed gates pass: the bases tests (41, not 40), README, knowledge, changeset, API-type and authoring checks re-run and pass; the strict typecheck, eslint and the full test suite were not re-run; check:cli-structure, not listed, fails (finding 3).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Changeset claim: the theme commands call the adapter, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified; "a plain path still serves every step": false (finding 8).
  • Files with findings: api/theme/base/base.mjs (1, 2, 6, 9), api/base/call-step.mjs (3, 7), commands/theme.mjs (4), api/theme/_adapter.mjs (5), foundation/discovery/theme-imports.mjs (4), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (4, undocumented options), .changeset/cli-bases-themes.md (8), docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note).
  • Files clear: README.md, api/doctor/theme-checks.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs, foundation/response/error-codes.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the rule that a base serves a step only to the commands that call it, and the not-exported reason) and adds new @astryxdesign/cli surface, while its non-Core theme path departs from current spec:AST-050 FR2, FR5 and FR8 without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) and by naming the record that amends spec:AST-050 for non-Core bases.

Blocking findings to fix, independent of that decision; each still reproduces on this head, and the earlier inline comments, the non-blocking ones included, still apply:

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build re-implements Core's output confinement and --check comparison instead of calling confineOutput and staleBuildOutputs, so a CRLF checkout of a correct build fails --check as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which the lint workflow runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs read and write files outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so themeBuild and themeAdd called through @astryxdesign/cli/api on a non-Core base still compile with Core and write Core's module body around the base's built module (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners because resolveRecordedTheme still looks for <slug>.js, and the fix it names is the build and add that were just run (spec:AST-050 FR11).
  • The generated TypeScript module on a base no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the unchanged cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses with ERR_THEME_INVALID or ERR_FILE_EXISTS (api/theme/base/base.mjs:191-197, spec:AST-050 FR8).
Claims and files checked
  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the export, its name and the theme name to compile: verified (base build code and test).
  • Claim: builds write every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (last finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified in text and JSON, but CRLF is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified; --family-key alone is accepted (non-blocking).
  • Claim: a local theme's module is <slug>.{js,mjs,ts,tsx} and its stylesheet is null unless <slug>.css exists: verified.
  • Claim: add, use and remove write the CLI header and record followed by the adapter's source, with relative specifiers and no Core wiring snippet: verified.
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or malformed value fails with ERR_BASE_ADAPTER naming base, step and module, and writes nothing: verified (tests).
  • Claim: a listed step the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified (the seven published themes build identical outputs; the CLI theme, config, discovery, doctor and bases suites give the same results before and after).
  • Claim: the listed gates pass: the bases tests (41, not 40), README, knowledge, changeset, API-type, authoring, strict-typecheck and eslint checks re-run and pass on the changed files; the full test suite was not re-run; check:cli-structure, not listed, fails (third finding).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Changeset claim: the theme commands call the adapter, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified; "a plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, foundation/discovery/theme-imports.mjs, api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note).
  • Files clear: README.md, api/doctor/theme-checks.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs, foundation/response/error-codes.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the rule that a base serves a step only to the commands that call it, and the not-exported reason) and adds new @astryxdesign/cli surface, while its non-Core theme path departs from current spec:AST-050 FR2, FR5 and FR8 without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) and by naming the record that amends spec:AST-050 for non-Core bases.

Blocking findings to fix, independent of that decision; each still reproduces on this head, and the earlier inline comments, the non-blocking ones included, still apply:

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build re-implements Core's output confinement and --check comparison instead of calling confineOutput and staleBuildOutputs, so a CRLF checkout of a correct build fails --check as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which the lint workflow runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs read and write files outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so themeBuild and themeAdd called through @astryxdesign/cli/api on a non-Core base still compile with Core and write Core's module body around the base's built module (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners because resolveRecordedTheme still looks for <slug>.js, and the fix it names is the build and add that were just run (spec:AST-050 FR11).
  • The generated TypeScript module on a base no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the base branch's cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses with ERR_THEME_INVALID or ERR_FILE_EXISTS (api/theme/base/base.mjs:191-197, spec:AST-050 FR8).
Claims and files checked
  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the export, its name and the theme name to compile: verified (base build code and test).
  • Claim: builds write every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (last finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified in text and JSON, but CRLF is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified; --family-key alone is accepted (non-blocking).
  • Claim: a local theme's module is <slug>.{js,mjs,ts,tsx} and its stylesheet is null unless <slug>.css exists: verified.
  • Claim: add, use and remove write the CLI header and record followed by the adapter's source, with relative specifiers and no Core wiring snippet: verified.
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or malformed value fails with ERR_BASE_ADAPTER naming base, step and module, and writes nothing: verified (tests).
  • Claim: a listed step the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified (the seven published themes build identical outputs; the CLI theme, config, discovery, doctor and bases suites pass before and after).
  • Claim: the listed gates pass: the bases tests (41, not 40), README, knowledge, changeset, API-type, authoring and eslint checks re-run and pass on the changed files; strict typecheck reports only two errors in page templates whose theme package was not built, none in a changed file; the full test suite was not re-run; check:cli-structure, not listed, fails (third finding).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Claim: package themes on a non-Core base still use Core's module and stylesheet exports, and integration validation does not check base: matches the code and the record's FR3 gap line.
  • Changeset claim: the theme commands call the adapter, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified; "a plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, foundation/discovery/theme-imports.mjs, api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note).
  • Files clear: README.md, api/doctor/theme-checks.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs, foundation/response/error-codes.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the rule that a base serves a step only to the commands that call it, and the not-exported reason) and adds new @astryxdesign/cli surface, while its non-Core theme path departs from current spec:AST-050 FR2, FR5 and FR8 (FR8 now also refuses a .d.ts or .css.map --out) without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) and by naming the record that amends spec:AST-050 for non-Core bases.

Blocking findings to fix, independent of that decision; the earlier inline comments, the non-blocking ones included, still apply at this head:

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build copies Core's --check comparison instead of calling staleBuildOutputs, so a CRLF checkout of a correct build fails --check as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which check:repo runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs import node:fs outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so themeBuild and themeAdd called through @astryxdesign/cli/api on a non-Core base still follow Core: the build goes to Core's compiler and the add refuses the base-built module as not built (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners for a .ts module and theme-module for a .js module, each naming a fix that does not clear it (spec:AST-050 FR11).
  • The generated TypeScript module on a base no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the base branch's cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses (api/theme/base/base.mjs:190-197, spec:AST-050 FR8).
  • Regression: theme remove of the only added theme on a non-Core base refuses with "has changes the CLI did not write", because removeLastTheme compares the module with Core's rendering and never receives the base's renderer (api/theme/_adapter.mjs:1482, spec:AST-050 FR4).
Claims and files checked

Review mode: full; reason: rebase

  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the file, export, value and theme name to compile: verified (base build code and test).
  • Claim: builds write every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (ninth finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified, but CRLF is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified in the base build handler; --family-key alone is accepted (non-blocking).
  • Claim: add, use and remove keep Core's record logic; a local module is <slug>.{js,mjs,ts,tsx} and the stylesheet is null unless <slug>.css exists: verified for add and use; removal of the only theme fails (tenth finding).
  • Claim: the CLI writes its header and record followed by the adapter's source, with relative specifiers: verified (bases test).
  • Claim: the first-add wiring snippet is not printed on another base: verified (first add on a fixture project).
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or malformed value fails with ERR_BASE_ADAPTER naming base, step and module, and writes nothing: verified for a single build and an add; a batch keeps the themes built before the failure (non-blocking).
  • Claim: a listed step the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified (the CLI theme, theme editor, doctor, config, discovery, bases, integration and CLI-client suites pass, 10,151 tests, none failing).
  • Claim: the listed gates pass: the bases tests pass (43 at this head, not 40), and the README, changeset, API-type and authoring checks and eslint on the changed files pass; the strict typecheck stops only on two page templates that need a built theme package; the full test suite, the knowledge check and the API-types verify script were not re-run; check:cli-structure, not listed, fails (third finding).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Claim: package themes on a non-Core base still use Core's module and stylesheet exports, and integration validation does not check base: matches the code and the record's FR3 gap line.
  • Claim: the record edits carry no project status and no new open questions: verified; the remaining gap lines name their requirement and the mismatch.
  • Changeset claim: the theme commands call the adapter, the CLI does every write, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified; "a plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, api/doctor/theme-checks.mjs (doctor finding), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note), foundation/response/error-codes.mjs (union note).
  • Files clear: README.md, foundation/discovery/theme-imports.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the rule that a base serves a step only to the commands that call it, and the not-exported reason) and adds new @astryxdesign/cli surface, while its non-Core theme path departs from current spec:AST-050 FR2, FR5 and FR8 without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) and by naming the record that amends spec:AST-050 for non-Core bases.

Blocking findings to fix, independent of that decision; the earlier inline comments, the non-blocking ones included, still apply at this head:

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build copies Core's --check comparison instead of calling staleBuildOutputs, so a CRLF checkout of a correct build fails --check as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which check:repo runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs import node:fs outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so themeBuild and themeAdd called through @astryxdesign/cli/api on a non-Core base still follow Core: the build writes Core's CSS outputs and the add refuses the base-built module as not built (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners for a .ts module and theme-module for a .js module, each naming a fix that does not clear it (spec:AST-050 FR11).
  • The generated TypeScript module on a base no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the base branch's cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses (api/theme/base/base.mjs:190-197, spec:AST-050 FR8).
  • Regression: theme remove of the only added theme on a non-Core base refuses with "has changes the CLI did not write", because removeLastTheme compares the module with Core's rendering and never receives the base's renderer (api/theme/_adapter.mjs:1482, spec:AST-050 FR4).
Claims and files checked

Review mode: full; reason: rebase

  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the file, export, value and theme name to compile: verified (base build code and test).
  • Claim: builds write every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (ninth finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified, but CRLF is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified in the base build handler; --family-key alone is accepted (non-blocking).
  • Claim: add, use and remove keep Core's record logic; a local module is <slug>.{js,mjs,ts,tsx} and the stylesheet is null unless <slug>.css exists: verified for add and use; removal of the only theme fails (tenth finding).
  • Claim: the CLI writes its header and record followed by the adapter's source, with relative specifiers: verified (bases test; fixture run).
  • Claim: the first-add wiring snippet is not printed on another base: verified (first add on a fixture project).
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or malformed value fails with ERR_BASE_ADAPTER naming base, step and module, and writes nothing: verified for a single build and an add; a batch keeps the themes built before the failure (non-blocking).
  • Claim: a listed step the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified (the CLI theme, theme editor, doctor, config, discovery, bases, integration and CLI-client suites pass, 10,151 tests, none failing).
  • Claim: the listed gates pass: the bases tests pass (43 at this head, not 40), and the README, changeset, API-type and authoring checks and eslint on the changed files pass; the strict typecheck, the full test suite, the knowledge check and the API-types verify script were not re-run; check:cli-structure, not listed, fails (third finding).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Claim: package themes on a non-Core base still use Core's module and stylesheet exports, and integration validation does not check base: matches the code and the record's FR3 gap line.
  • Claim: the record edits carry no project status and no new open questions: verified; the remaining gap lines name their requirement and the mismatch.
  • Changeset claim: the theme commands call the adapter, the CLI does every write, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified; "a plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, api/doctor/theme-checks.mjs (doctor finding), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note), foundation/response/error-codes.mjs (union note).
  • Files clear: README.md, foundation/discovery/theme-imports.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the caller-only step rule and the not-exported reason), adds new @astryxdesign/cli surface, and departs from current spec:AST-050 FR2, FR5 and FR8 on non-Core bases without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request and naming the record that amends spec:AST-050 for non-Core bases; the author may do so as an engineering owner.

Blocking findings to fix, whatever that decision is (the earlier inline comments, the non-blocking ones included, still apply at this head):

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths, as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build copies Core's --check comparison instead of calling staleBuildOutputs, so --check reports a CRLF checkout of a correct build as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which check:repo runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs import node:fs outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so on a non-Core base themeBuild called through @astryxdesign/cli/api writes Core's CSS outputs, and themeAdd writes Core's module body instead of the base's appModule source (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners for a .ts module and theme-module for a .js module, and each check names a fix that does not clear it (spec:AST-050 FR11).
  • On a base, the generated TypeScript module no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the base branch's cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses (api/theme/base/base.mjs:190-197, spec:AST-050 FR8).
  • Regression: theme remove of the only added theme on a non-Core base refuses with "has changes the CLI did not write", because removeLastTheme compares the module with Core's rendering and never receives the base's renderer (api/theme/_adapter.mjs:1482, spec:AST-050 FR4).
Claims and files checked

Review mode: full; reason: rebase

  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the file, export, value and theme name to compile: verified (base build code and test).
  • Claim: a build writes every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (ninth finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified, but a CRLF copy is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified in the base build handler; --family-key alone is accepted (non-blocking).
  • Claim: add, use and remove keep Core's record logic, a local module is <slug>.{js,mjs,ts,tsx}, and the stylesheet is null unless <slug>.css exists: verified for add and use; removing the only theme fails (tenth finding).
  • Claim: the CLI writes its header and record, followed by the adapter's source with relative specifiers: verified (bases test; fixture run).
  • Claim: the first-add wiring snippet is not printed on another base: verified (first add on a fixture project).
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or a malformed value fails with ERR_BASE_ADAPTER, naming base, step and module, and writes nothing: verified for a single build and an add; a batch keeps the themes built before the failure (non-blocking).
  • Claim: a listed step that the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified for the CLI theme, theme editor, doctor, config, discovery, bases, integration and CLI-client suites (10,636 pass). The 14 theme-editor tests that fail in the review environment fail identically without this change.
  • Claim: the listed gates pass: the bases tests pass (43 at this head, not 40), and the README, changeset, API-type sync, json-api and authoring typechecks and the knowledge check pass. The strict typecheck reports only two template imports of an unbuilt theme package, outside this change. The full test suite and the API-types verify script were not re-run. check:cli-structure, which the description does not list, fails (third finding).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Claim: package themes on a non-Core base still use Core's module and stylesheet exports, and integration validation does not check base: matches the code and the record's FR3 gap line.
  • Claim: the record edits carry no project status and no new open questions: verified; the remaining gap lines name their requirement and the mismatch.
  • Changeset claim: the theme commands call the adapter, the CLI does every write, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified. "A plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, api/doctor/theme-checks.mjs (doctor finding), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note), foundation/response/error-codes.mjs (union note).
  • Files clear: README.md, foundation/discovery/theme-imports.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)


const stepCall = runStepCall();
if (stepCall) {
return buildOnBase(files, options, stepCall, json, words);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handler dispatches to buildOnBase here instead of calling the themeBuild its CommandDoc names (architecture:cli-surface INV22). On the same native-base project, themeBuild called through @astryxdesign/cli/api ignores the base and writes Core's matcha.css, .css.d.ts, .js and .d.ts. API themeAdd writes Core's module body (_astryxTheme0, ThemeSlug) instead of the base's appModule source, so the API and the CLI write different modules for one project. Moving the base dispatch into themeBuild, themeAdd, themeUse, themeRemove and themeTargets keeps one path.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the caller-only step rule and the not-exported reason), adds new @astryxdesign/cli surface, and departs from current spec:AST-050 FR2, FR5 and FR8 on non-Core bases without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request and naming the record that amends spec:AST-050 for non-Core bases; the author may do so as an engineering owner.

Blocking findings to fix, whatever that decision is (the earlier inline comments, the non-blocking ones included, still apply at this head):

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths, as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build copies Core's --check comparison instead of calling staleBuildOutputs, so --check reports a CRLF checkout of a correct build as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which check:repo runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs import node:fs outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so on a non-Core base themeBuild called through @astryxdesign/cli/api writes Core's CSS outputs, and themeAdd writes Core's module body instead of the base's appModule source (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners for a .ts module and theme-module for a .js module, and each check names a fix that does not clear it (spec:AST-050 FR11).
  • On a base, the generated TypeScript module no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the base branch's cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (ocean.ts with name: 'ocean') or an unrelated file in the --out folder is silently replaced, where Core's build refuses (api/theme/base/base.mjs:190-197, spec:AST-050 FR8).
  • Regression: theme remove of the only added theme on a non-Core base refuses with "has changes the CLI did not write", because removeLastTheme compares the module with Core's rendering and never receives the base's renderer (api/theme/_adapter.mjs:1482, spec:AST-050 FR4).
Claims and files checked

Review mode: full; reason: rebase

  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the file, export, value and theme name to compile: verified (base build code and test).
  • Claim: a build writes every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (ninth finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified, but a CRLF copy is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified in the base build handler; --family-key alone is accepted (non-blocking).
  • Claim: add, use and remove keep Core's record logic, a local module is <slug>.{js,mjs,ts,tsx}, and the stylesheet is null unless <slug>.css exists: verified for add and use; removing the only theme fails (tenth finding).
  • Claim: the CLI writes its header and record, followed by the adapter's source with relative specifiers: verified (bases test; fixture run).
  • Claim: the first-add wiring snippet is not printed on another base: verified (first add on a fixture project).
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or a malformed value fails with ERR_BASE_ADAPTER, naming base, step and module, and writes nothing: verified for a single build and an add; a batch keeps the themes built before the failure (non-blocking).
  • Claim: a listed step that the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified for the CLI theme, theme editor, doctor, config, discovery, bases, integration and CLI-client suites (10,912 tests pass).
  • Claim: the listed gates pass: the bases tests pass (43 at this head, not 40); the README, changeset, API-type sync, json-api and authoring typechecks, the published-types verify script and the knowledge check pass. The strict typecheck reports only two template imports of an unbuilt theme package, outside this change. The full test suite was not re-run. check:cli-structure, which the description does not list, fails (third finding).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Claim: package themes on a non-Core base still use Core's module and stylesheet exports, and integration validation does not check base: matches the code and the record's FR3 gap line.
  • Claim: the record edits carry no project status and no new open questions: verified; the remaining gap lines name their requirement and the mismatch.
  • Changeset claim: the theme commands call the adapter, the CLI does every write, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified. "A plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, api/doctor/theme-checks.mjs (doctor finding), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note), foundation/response/error-codes.mjs (union note).
  • Files clear: README.md, foundation/discovery/theme-imports.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the caller-only step rule and the not-exported reason), adds new @astryxdesign/cli surface, and departs from current spec:AST-050 FR2, FR5 and FR8 on non-Core bases without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request and naming the record that amends spec:AST-050 for non-Core bases; the author may do so as an engineering owner.

Blocking findings to fix, whatever that decision is (the earlier inline comments, the non-blocking ones included, still apply at this head):

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths, as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build copies Core's --check comparison instead of calling staleBuildOutputs, so --check reports a CRLF checkout of a correct build as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which check:repo runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs import node:fs outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so on a non-Core base themeBuild called through @astryxdesign/cli/api writes Core's CSS outputs, and themeAdd writes Core's module body instead of the base's appModule source (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners for a .ts module and theme-module for a .js module, and each check names a fix that does not clear it (spec:AST-050 FR11).
  • On a base, the generated TypeScript module no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that the README promises on that code.
  • The new changeset says a plain path "still" serves every step, and the base branch's cli-bases.md changeset still says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (matcha.ts with name: 'matcha') or an unrelated file in the --out folder is silently replaced, where Core's build refuses (api/theme/base/base.mjs:190-197, spec:AST-050 FR8).
  • Regression: theme remove of the only added theme on a non-Core base refuses with "has changes the CLI did not write", because removeLastTheme compares the module with Core's rendering and never receives the base's renderer (api/theme/_adapter.mjs:1482, spec:AST-050 FR4).
Claims and files checked

Review mode: full; reason: rebase

  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the file, export, value and theme name to compile: verified (base build code and test).
  • Claim: a build writes every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (ninth finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified, but a CRLF copy is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified in the base build handler; --family-key alone is accepted (non-blocking).
  • Claim: add, use and remove keep Core's record logic, a local module is <slug>.{js,mjs,ts,tsx}, and the stylesheet is null unless <slug>.css exists: verified for add and use; removing the only theme fails (tenth finding).
  • Claim: the CLI writes its header and record, followed by the adapter's source with relative specifiers: verified (bases test; fixture run).
  • Claim: the first-add wiring snippet is not printed on another base: verified (first add on a fixture project).
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or a malformed value fails with ERR_BASE_ADAPTER, naming base, step and module, and writes nothing: verified for a single build and an add; a batch keeps the themes built before the failure (non-blocking).
  • Claim: a listed step that the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified for the CLI theme, theme editor, doctor, config, discovery, bases, integration and CLI-client suites (10,898 tests pass; the 14 theme-editor tests that fail here fail the same way on the base branch).
  • Claim: the listed gates pass: the bases tests pass (43 at this head, not 40); the README check, changeset check, json-api and authoring typechecks and the knowledge check pass. The full test suite, the strict typecheck, the API-type sync, the published-types verify script and eslint were not re-run. check:cli-structure, which the description does not list, fails (third finding).
  • Claim: the changed step-one tests now show a plain-path adapter's commands in help without loading it, and a run loads it (failed-to-load when it throws on import): verified (bases test).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Claim: package themes on a non-Core base still use Core's module and stylesheet exports, and integration validation does not check base: matches the code and the record's FR3 gap line.
  • Claim: the record edits carry no project status and no new open questions: verified; the remaining gap lines name their requirement and the mismatch.
  • Changeset claim: the theme commands call the adapter, the CLI does every write, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified. "A plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, api/doctor/theme-checks.mjs (doctor finding), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note), foundation/response/error-codes.mjs (union note).
  • Files clear: README.md, foundation/discovery/theme-imports.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the caller-only step rule and the not-exported reason), adds new @astryxdesign/cli surface, and departs from current spec:AST-050 FR2, FR5 and FR8 on non-Core bases without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request and naming the record that amends spec:AST-050 for non-Core bases; the author may do so as an engineering owner.

Blocking findings to fix, whatever that decision is (the earlier inline comments, the non-blocking ones included, still apply at this head):

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths, as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build copies Core's --check comparison instead of calling staleBuildOutputs, so --check reports a CRLF checkout of a correct build as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which check:repo runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs import node:fs outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler, so on a non-Core base themeBuild called through @astryxdesign/cli/api writes Core's CSS outputs, and themeAdd writes Core's module body instead of the base's appModule source (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners for a .ts module and theme-module for a .js module, and each check names a fix that does not clear it (spec:AST-050 FR11).
  • On a base, the generated TypeScript module no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that architecture:cli-surface INV2 and the README promise on that code.
  • The new changeset says a plain path "still" serves every step, while main's unreleased cli-bases.md changeset says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (matcha.ts with name: 'matcha') or an unrelated file in the --out folder is silently replaced, where Core's build refuses (api/theme/base/base.mjs:190-197, spec:AST-050 FR8).
  • Regression: theme remove of the only added theme on a non-Core base refuses with "has changes the CLI did not write", because removeLastTheme compares the module with Core's rendering and never receives the base's renderer (api/theme/_adapter.mjs:1482, spec:AST-050 FR4).
Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the file, export, value and theme name to compile: verified (base build code and test).
  • Claim: a build writes every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (ninth finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified, but a CRLF copy is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified in the base build handler; --family-key alone is accepted (non-blocking).
  • Claim: add, use and remove keep Core's record logic, a local module is <slug>.{js,mjs,ts,tsx}, and the stylesheet is null unless <slug>.css exists: verified for add and use; removing the only theme fails (tenth finding).
  • Claim: the CLI writes its header and record, followed by the adapter's source with relative specifiers: verified (bases test; fixture run).
  • Claim: the first-add wiring snippet is not printed on another base: verified (first add on a fixture project).
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or a malformed value fails with ERR_BASE_ADAPTER, naming base, step and module, and writes nothing: verified for a single build and an add; a batch keeps the themes built before the failure (non-blocking).
  • Claim: a listed step that the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified (the seven published themes build to identical output on both trees; the CLI theme, doctor, config, discovery and bases suites pass).
  • Claim: the pull request is based on main after the first step merged: verified.
  • Claim: the listed gates pass: the bases tests pass (43 at this head, not 40); the README check, changeset check, json-api and authoring typechecks and the knowledge check pass. The full test suite, the strict typecheck, the API-type sync, the published-types verify script and eslint were not re-run. check:cli-structure, which the description does not list, fails (third finding).
  • Claim: the changed step-one tests now show a plain-path adapter's commands in help without loading it, and a run loads it (failed-to-load when it throws on import): verified (bases test).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Claim: package themes on a non-Core base still use Core's module and stylesheet exports, and integration validation does not check base: matches the code and the record's FR3 gap line.
  • Claim: the record edits carry no project status and no new open questions: verified; the remaining gap lines name their requirement and the mismatch.
  • Changeset claim: the theme commands call the adapter, the CLI does every write, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified. "A plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, api/doctor/theme-checks.mjs (doctor finding), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note), foundation/response/error-codes.mjs (union note).
  • Files clear: README.md, foundation/discovery/theme-imports.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

…pter

On a base other than Core, theme targets, theme build, and theme add/use/remove
call the base's themes adapter (targets, compile, appModule). The CLI does
every write. Adds the optional {module, steps} adapter form, published step
contract types, ERR_BASE_ADAPTER, and the not-exported refusal reason. A base
serves a step only to the commands that call it.
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner. This pull request writes new requirements into draft spec:AST-114 (the adapter entry and step contract, the caller-only step rule and the not-exported reason), adds new @astryxdesign/cli surface, and departs from current spec:AST-050 FR2, FR5 and FR8 on non-Core bases without amending that record. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request and naming the record that amends spec:AST-050 for non-Core bases; the author may do so as an engineering owner. Every finding below still reproduces at this head.

Blocking findings to fix, whatever that decision is (the earlier inline comments, the non-blocking ones included, still apply at this head):

  • theme build --out through a symlinked folder inside the project writes outside it, because api/theme/base/base.mjs:136-144 checks the path lexically instead of with assertWithin on real paths, as Core's confineOutput does (architecture:cli-surface INV10).
  • The base build copies Core's --check comparison instead of calling staleBuildOutputs, so --check reports a CRLF checkout of a correct build as outdated (spec:AST-050 FR8).
  • pnpm check:cli-structure, which check:repo runs, fails with five errors: api/base/ has no FunctionDoc, typedefs or test, and api/base/call-step.mjs and api/theme/base/base.mjs import node:fs outside the subject's adapter (INV20, INV21).
  • The base dispatch lives in the theme handler (clients/cli/commands/theme.mjs:1491-1494), so on a non-Core base themeBuild called through @astryxdesign/cli/api writes Core's CSS outputs, and themeAdd writes Core's module body instead of the base's appModule source (INV22).
  • After a successful theme build and theme add on a non-Core base, astryx doctor fails theme-owners for a .ts module and theme-module for a .js module, and each check names a fix that does not clear it (api/theme/_adapter.mjs:383, spec:AST-050 FR11).
  • On a base, the generated TypeScript module no longer exports ThemeSlug, which spec:AST-050 FR2 lists among the module's public exports, because the CLI checks only for themes and defaultThemeSlug.
  • A typed unsupported failure answers ERR_BASE_CAPABILITY without the requirement member that architecture:cli-surface INV2 and the README promise on that code.
  • The new changeset says a plain path "still" serves every step, while main's unreleased cli-bases.md changeset says commands do not call base adapters, so the release notes contradict the change and each other.
  • Miss: a base build writes every returned file over whatever is there, so a theme source named for its theme (matcha.ts with name: 'matcha') or an unrelated file in the --out folder is silently replaced, where spec:AST-050 FR8 says a build never replaces any file but its own outputs and Core's build refuses with ERR_FILE_EXISTS (api/theme/base/base.mjs:190-197).
  • Regression: theme remove of the only added theme on a non-Core base refuses with "has changes the CLI did not write", because removeLastTheme compares the module with Core's rendering and never receives the base's renderer (api/theme/_adapter.mjs:1482, spec:AST-050 FR4).
Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Claim: theme targets, build, add, use and remove call the base's themes adapter on a non-Core base: verified (bases tests; the same commands on a fixture project).
  • Claim: targets keeps the CLI's filter, exact match and near-miss suggestions, with an empty class when the base gives none: verified (bases test).
  • Claim: build loads the source with no Core interception and passes the file, export, value and theme name to compile: verified (base build code and test).
  • Claim: a build writes every returned file inside the project as one atomic write: false for a symlinked folder (first finding), and the write can replace the source (ninth finding).
  • Claim: --check compares the returned files, writes nothing and exits 1 when stale: verified, but a CRLF copy is reported stale (second finding).
  • Claim: the JSON receipts are theme.build.base and theme.build.check: verified.
  • Claim: --family, --watch and --out with several files fail with ERR_THEME_INVALID: verified in the base build handler; --family-key alone is accepted (non-blocking).
  • Claim: add, use and remove keep Core's record logic, a local module is <slug>.{js,mjs,ts,tsx}, and the stylesheet is null unless <slug>.css exists: verified for add and use; removing the only theme fails (tenth finding).
  • Claim: the CLI writes its header and record, followed by the adapter's source with relative specifiers: verified (bases test; fixture run).
  • Claim: the first-add wiring snippet is not printed on another base: verified (first add on a fixture project).
  • Claim: typed failures map to the command's codes with the message, location and fix: verified, but unsupported lacks requirement (seventh finding).
  • Claim: a throw or a malformed value fails with ERR_BASE_ADAPTER, naming base, step and module, and writes nothing: verified for a single build and an add; a batch keeps the themes built before the failure (non-blocking).
  • Claim: a listed step that the module does not export refuses with not-exported, and an unlisted export is never called: verified (tests).
  • Claim: nothing changes on a Core run: verified (the seven published themes build to identical output on both trees; the CLI theme, doctor, config, discovery, bases and pack-check suites pass).
  • Claim: the pull request is based on main after the first step merged: verified.
  • Claim: the listed gates pass: the bases tests pass (55 at this head, not 40); the API-type sync, json-api and authoring typechecks, strict typecheck, README check, published-types verify, knowledge check, changeset check and eslint on the changed files pass. The full test suite was not re-run. check:cli-structure, which the description does not list, fails (third finding).
  • Claim: the changed step-one tests now show a plain-path adapter's commands in help without loading it, and a run loads it (failed-to-load when it throws on import): verified (bases test).
  • Claim: the editor and preview commands stay refused on a non-Core base: verified (bases test).
  • Claim: package themes on a non-Core base still use Core's module and stylesheet exports, and integration validation does not check base: matches the code and the record's FR3 gap line.
  • Claim: the record edits carry no project status and no new open questions: verified; the remaining gap lines name their requirement and the mismatch.
  • Changeset claim: the theme commands call the adapter, the CLI does every write, the authoring entry publishes the step contracts, and the new error code and refusal reason exist: verified. "A plain path still serves every step": false (eighth finding).
  • Files with findings: api/theme/base/base.mjs, api/base/call-step.mjs, commands/theme.mjs, api/theme/_adapter.mjs, api/doctor/theme-checks.mjs (doctor finding), api/theme/add/add.mjs, use/use.mjs, remove/remove.mjs, targets/targets.mjs (undocumented options), .changeset/cli-bases-themes.md, docs/specs/AST-114-bases/spec.md (owner decision, formatting note), foundation/bases/requirements.mjs (wording note), foundation/response/error-codes.mjs (union note).
  • Files clear: README.md, foundation/discovery/theme-imports.mjs, api/integration/pack-check.mjs, api/theme/build/build.mjs, api/theme/theme.type.mjs, authoring/index.d.ts, authoring/integration/adapter.ts, authoring/integration/integration.doc.mjs, authoring/integration/schema.mjs, authoring/integration/type.ts, clients/cli/bases.test.mjs, clients/cli/lib/base-gate.mjs, clients/cli/lib/manifest.mjs, foundation/bases/resolve.mjs, foundation/bases/steps.mjs, foundation/config/theme-state.mjs, foundation/response/base.d.ts, foundation/response/error-codes.doc.mjs (their new public types wait on the owner decision).

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Closing for now: this prototype is paused by the maintainer until a design decision. The branch stays as it is, and the work comes back as a new pull request if the step design is chosen.

@github-actions
github-actions Bot deleted the bases-step2-themes branch November 19, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — b3809cfc Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant