Skip to content

Standardize package CLI folder layout - #13

Merged
artiphishle merged 23 commits into
mainfrom
agent/standardize-cli-layout
Jul 10, 2026
Merged

artiphishle merged 23 commits into
mainfrom
agent/standardize-cli-layout

Conversation

@artiphishle

@artiphishle artiphishle commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • add the Doctor rules package.cli.root-file.disallowed and package.cli.index.required
  • reject package-root src/cli.ts files
  • require src/cli/index.ts when a package exposes an Ankh provider or ./cli export
  • apply the policy consistently through both the standalone Doctor CLI and the Ankh runtime provider
  • move Doctor's standalone executable to src/cli/standalone.ts
  • keep the provider at src/cli/index.ts
  • update package metadata, public exports, generated usage docs, and regression tests

Companion migrations

The remaining real root-CLI violations are handled by:

Recommended merge order: merge those two companion PRs first, then merge this owning Doctor PR so #8 closes only after the organization is compliant.

No compatibility file, bridge, alias, or deprecated src/cli.ts entrypoint is retained.

Validation

Standard PR CI is green:

  • build
  • type-check
  • lint
  • format check
  • Knip
  • tests
  • generated docs
  • changeset status

Closes #8

@artiphishle artiphishle self-assigned this Jul 10, 2026
@artiphishle
artiphishle marked this pull request as ready for review July 10, 2026 20:48
@artiphishle
artiphishle merged commit ceee273 into main Jul 10, 2026
1 check passed
@artiphishle
artiphishle deleted the agent/standardize-cli-layout branch July 10, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize src/cli/ folder layout across Ankhorage packages and ban src/cli.ts

1 participant