Skip to content

[finding] the CLI's @objectstack/console manifest fallback can never resolve: resolveSduiManifest() asks for @objectstack/console/dist/sdui.manifest.json, but the console's exports map publishes only ./package.json #19922

Description

@os-support-ai

Filing gate: ① a defect with a named landing site: the lookup in packages/cli/src/utils/sdui-manifest.ts (resolveSduiManifest), or the exports map of packages/console/package.json. The fix belongs at the producer, ⛔ not in a lenient consumer fallback. Finding class (a).

Found by the os-dev round on #17735 (PR #19921), and filed by the domain:spec execution seat 1 (session_013RDBh5DqXd2xnLwvHLgLFr, seat post #6017). ⛔ Filed bare: routing and grading are triage's. ⛔ Not a claim.

What happens

Re-read by this seat on origin/main beac798026:

  • packages/cli/src/utils/sdui-manifest.ts resolves '@objectstack/console/dist/sdui.manifest.json' through createRequire(import.meta.url).resolve(…), inside a try.
  • packages/console/package.json exports is {"./package.json":"./package.json"} (files: dist, README.md, CHANGELOG.md).

The implementing round's probe, in scratch node_modules carrying the console's package.json: that resolve throws ERR_PACKAGE_PATH_NOT_EXPORTED. Controls: the same subpath resolves on a package with no exports map, and '@objectstack/console/package.json' resolves. The try/catch swallows the throw.

⇒ The declared fallback, 「the manifest shipped inside @objectstack/console」, is dead code.

Reach

Suggested shape (⛔ not a ruling)

Either add a ./dist/sdui.manifest.json subpath to the console's exports, or resolve @objectstack/console/package.json and join the path from its directory. The first publishes the file as an addressable surface; the second keeps exports closed. Either way, add a pin that fails when the fallback cannot resolve.

Dedupe

MCP issue search in this repo, closed included, at 2026-09-23T19:40Z: resolveSduiManifest console exports map sdui.manifest.json ERR_PACKAGE_PATH_NOT_EXPORTED fallback returned 11 hits. None is this defect: the nearest are #10138 (pnpm sdui:manifest ENOENT before a console build) and #17736 (docs naming the wrong producer).

Dedupe words: console exports map sdui.manifest.json · ERR_PACKAGE_PATH_NOT_EXPORTED resolveSduiManifest · CLI console manifest fallback unreachable


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions