retired-sources.mjs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Retired host implementation, declared once and enforced by two different checks.
  2. //
  3. // The two checks have different domains and must not be collapsed into one list:
  4. // `check:source` inspects the files that exist in this repository, while
  5. // `check:standalone` inspects the input graph of the produced bundle. A path
  6. // therefore belongs to exactly one of the two sets below.
  7. // Must not exist as public source at all. Enforced by `check:source`.
  8. export const retiredSourceRoots = [
  9. "packages/agent-modules/team/",
  10. "packages/agent-modules/permission/src/confirmation-gateway-client.ts",
  11. "packages/tui/src/auth/identity.ts",
  12. "packages/local-runtime/src/messages/queue-serialization.ts",
  13. "packages/local-runtime/src/workspace-indexing/",
  14. "packages/local-runtime-v2/src/service/workspace/indexing.ts",
  15. "packages/local-runtime-v2/src/application/conversation/workspace-snapshot-gate.ts",
  16. "packages/agent-tools/src/desktop/local-workspace-semantic-search.ts",
  17. "packages/thrift-gen/",
  18. "packages/thrift-gen-client/",
  19. "packages/local-runtime/src/http/",
  20. "packages/local-runtime-v2/src/http/",
  21. "packages/protocol/src/generated/",
  22. "packages/local-runtime-v2/src/service/session-handoff/",
  23. ];
  24. // May exist as public source, but must never be reachable from the standalone
  25. // build. Enforced by `check:standalone`.
  26. export const nonBundledSources = [
  27. "packages/local-runtime/src/services/cu/native.ts",
  28. ];
  29. // Anything retired from the source tree must also stay out of the build graph, so
  30. // the boundary check enforces both sets. Declaring the union here keeps a path
  31. // that later becomes publishable from silently losing its bundle restriction.
  32. export const retiredBuildInputs = [
  33. ...retiredSourceRoots,
  34. ...nonBundledSources,
  35. ];