Files
nexu-io-open-design/scripts
yinjialu e94acc2702 add cross-app import boundary check to pnpm guard (#4069)
* feat(guard): enforce the cross-app import boundary in pnpm guard

Adds a cross-app import check that scans apps/* sources for imports
reaching into another app (relative paths, @open-design/<app> package
specifiers, or apps/-rooted paths) and fails pnpm guard with the
offending file:line. The web/daemon integration boundary (HTTP APIs +
packages/contracts) was previously enforced only by human review.

The deliberate packaged -> desktop ./main export is allowlisted with a
documented reason; further exceptions must be added the same way.

* fix(guard): harden cross-app import scanning

Generated-By: looper 0.9.6 (runner=fixer, agent=codex)

* fix(guard): fail on unreadable app manifests

Generated-By: looper 0.9.6 (runner=fixer, agent=codex)

* fix(guard): reject unnamed app manifests

Generated-By: looper 0.9.6 (runner=fixer, agent=codex)

* fix(guard): catch require.resolve app imports

Generated-By: looper 0.9.6 (runner=fixer, agent=codex)

* fix(guard): detect createRequire app imports

Generated-By: looper 0.9.6 (runner=fixer, agent=codex)

* fix(guard): catch CommonJS node module createRequire

Generated-By: looper 0.9.6 (runner=fixer, agent=codex)
2026-06-10 11:40:31 +00:00
..
2026-05-14 19:15:16 +08:00