AGENTS.md@packages/craft-apps/src/bin · git:20261014.bf59830 · 2026-10-14 · sha256 0480b395db51ead3

AGENTS.md@packages/craft-apps/src/bin git:20261014.bf59830A

Immutable. This exact content never changes and is served at /api/v1/blob/0480b395db51ead3.

# DOX — packages/craft-apps/src/bin

Files in this directory. One row per source file.

| File | Purpose |
|------|---------|
| `craft.ts` | `pi-craft` CLI. Exports `main(argv, deps)` + `usage()`. Subcommands `apps`, `status`, `install <app…>|--all` (one report per app, exit 69 if any failed), `launcher status|install`, `verify`, `<app> ensure|path|exec|mcp` (via `runAppCommand`). Exit 0 / 1 usage or failed / 69 provisioning. `isEntry()` realpath guard. No shebang (esbuild banner adds it to `dist`). See change: add-craft-apps-core. |
| `photocraft.ts` | `pi-photocraft` compatibility alias. Exports `main(argv, deps)` + `USAGE`. `ensure`/`path`/`exec`/`mcp` through `runAppCommand` (prog `pi-photocraft`, register entry `["mcp"]` on the `pi-photocraft` launcher), plus `replace-region`. Same outputs/exit codes as the former package. See change: add-photocraft-plugin. |