@mozole/cli 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +52 -158
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +6 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt.d.ts +1 -0
- package/dist/commands/adopt.d.ts.map +1 -1
- package/dist/commands/adopt.js +191 -22
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +39 -16
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/new.d.ts.map +1 -1
- package/dist/commands/new.js +22 -11
- package/dist/commands/new.js.map +1 -1
- package/dist/commands/qa.d.ts.map +1 -1
- package/dist/commands/qa.js +18 -12
- package/dist/commands/qa.js.map +1 -1
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +6 -1
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +12 -8
- package/dist/commands/verify.js.map +1 -1
- package/dist/config/project.d.ts +3 -3
- package/dist/config/project.d.ts.map +1 -1
- package/dist/config/project.js +11 -12
- package/dist/config/project.js.map +1 -1
- package/dist/governor/fingerprint.d.ts.map +1 -1
- package/dist/governor/fingerprint.js +2 -0
- package/dist/governor/fingerprint.js.map +1 -1
- package/dist/governor/hook.d.ts +1 -0
- package/dist/governor/hook.d.ts.map +1 -1
- package/dist/governor/hook.js +18 -9
- package/dist/governor/hook.js.map +1 -1
- package/dist/qa/runner.js +1 -1
- package/dist/qa/runner.js.map +1 -1
- package/dist/scaffold/backend.d.ts.map +1 -1
- package/dist/scaffold/backend.js +57 -11
- package/dist/scaffold/backend.js.map +1 -1
- package/dist/scaffold/standalone.d.ts +6 -0
- package/dist/scaffold/standalone.d.ts.map +1 -0
- package/dist/scaffold/standalone.js +270 -0
- package/dist/scaffold/standalone.js.map +1 -0
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +75 -24
- package/dist/scaffold/templates.js.map +1 -1
- package/dist/scaffold/write.d.ts.map +1 -1
- package/dist/scaffold/write.js +19 -5
- package/dist/scaffold/write.js.map +1 -1
- package/dist/verify/runner.d.ts.map +1 -1
- package/dist/verify/runner.js +2 -4
- package/dist/verify/runner.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/docs/agent-audit.md +24 -0
- package/package.json +4 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
- Make default scaffolds independent of the CLI: no CCE, governor, telemetry, caches, MCP, hooks, or optimization dependency. Environment variables cannot enable integration mode.
|
|
6
|
+
- Keep useful basic AGENTS.md and CLAUDE.md guidance in plain projects. Require explicit integration flags for new/adopt; refresh managed agent blocks and hook definitions while preserving user content.
|
|
7
|
+
- Track CCE retrieval through PostToolUse MCP events and provide a valid reason from the visual QA workflow.
|
|
8
|
+
- Add recursive PHP syntax and minimum-version validation, strict API prefix matching, GET/HEAD handling, and 405/Allow responses.
|
|
9
|
+
- Add `build:deploy` to assemble frontend, PHP API, and .htaccess with rollback on failed replacement. Default PHP configuration to production/debug-off.
|
|
10
|
+
- Preserve failed creation logs before staging cleanup.
|
|
11
|
+
- Add standalone browser QA and integration coverage for plain, PHP, and optimized scaffolds; provision PHP in Windows/Linux CI.
|
|
12
|
+
|
|
13
|
+
Migration: default generated projects use standalone npm scripts rather than a project-local `mozole` executable. Use the globally installed CLI when desired, or pass `--cce-install` to generate the optional integration mode. Plain adoption preserves existing user integrations and requires the flag to update an already optimized project.
|
package/README.md
CHANGED
|
@@ -1,207 +1,99 @@
|
|
|
1
1
|
# Mozole CLI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Requirements and installation
|
|
6
|
-
|
|
7
|
-
- Node.js 22 or newer
|
|
8
|
-
- npm
|
|
9
|
-
- Windows or Linux (WSL is optional, not required)
|
|
10
|
-
- Git is recommended
|
|
11
|
-
- For CCE: Python 3.11+, a C/C++ build toolchain, and CMake; `mozole cce install` installs the required `uv` runtime and persistent `cce` tool
|
|
3
|
+
Mozole scaffolds React + Vite projects using React Router Framework Mode. It prerenders static HTML and optionally adds a native PHP API. Node.js 22+, npm, and Windows or Linux are supported. PHP projects require PHP 8.0+.
|
|
12
4
|
|
|
13
5
|
```sh
|
|
14
6
|
npm install --global @mozole/cli
|
|
15
|
-
mozole --version
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
The release pins its complete generated-project matrix in `src/version.ts`; generation never requests floating `latest` packages.
|
|
19
|
-
|
|
20
|
-
## Create a project
|
|
21
|
-
|
|
22
|
-
```sh
|
|
23
7
|
mozole new my-site
|
|
24
|
-
|
|
25
|
-
npm run dev
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
There is no questionnaire. Mozole creates a clean, lightweight scaffold project by default, installs dependencies, and atomically moves the completed project into place. CCE initialization and agent harnesses are opt-in via `--cce-install` (or `--install-cce`). Passing `--backend` provisions a native PHP backend (`api/index.php`, `api/config.php`, `.htaccess`) with Vite API proxying.
|
|
29
|
-
|
|
30
|
-
The generated app follows current React Router Framework Mode conventions:
|
|
31
|
-
|
|
32
|
-
```ts
|
|
33
|
-
// react-router.config.ts
|
|
34
|
-
export default {
|
|
35
|
-
ssr: false,
|
|
36
|
-
prerender: true,
|
|
37
|
-
} satisfies Config;
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
React Router documents this combination as static pre-rendering without a runtime SSR server. Every statically declared route in `app/routes.ts` gets real HTML at build time. The starter emits `/`, `/about`, and `/contact` under `build/client/`, alongside route data and assets. See the official [React Router pre-rendering guide](https://reactrouter.com/how-to/pre-rendering).
|
|
41
|
-
|
|
42
|
-
Deploy `build/client/` to Apache, LiteSpeed, nginx, a CDN, object storage, or shared hosting. Known routes do not need SPA fallback or a production Node process. Build output is disposable and ignored by Git.
|
|
43
|
-
|
|
44
|
-
## Commands
|
|
45
|
-
|
|
46
|
-
```text
|
|
47
|
-
mozole new <name> [--backend] [--cce-install]
|
|
48
|
-
mozole adopt <path>
|
|
49
|
-
mozole cce install
|
|
50
|
-
mozole doctor
|
|
51
|
-
mozole verify [--force]
|
|
52
|
-
mozole qa [--interactive | --visual [--diff]] [--force]
|
|
53
|
-
mozole stats
|
|
54
|
-
mozole ui
|
|
55
|
-
mozole logs [name] [--raw]
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Adopt an existing project
|
|
59
|
-
|
|
60
|
-
```sh
|
|
61
|
-
mozole adopt ../existing-app
|
|
8
|
+
mozole new my-app --backend
|
|
62
9
|
```
|
|
63
10
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### Diagnose the environment
|
|
11
|
+
Creation installs pinned dependencies and Chromium, formats the project, and moves the completed staging directory into place. Failed setup preserves available subprocess logs in a sibling `.mozole-<name>-failure-*` directory before removing staging. Existing target directories are preserved.
|
|
67
12
|
|
|
68
|
-
|
|
69
|
-
mozole doctor
|
|
70
|
-
```
|
|
13
|
+
## Default project
|
|
71
14
|
|
|
72
|
-
|
|
15
|
+
The default project has **no CCE, token governor, telemetry, verification cache, MCP registration, or optimization hooks**. It does not depend on `@mozole/cli`, including transitively through its generated package lock. Verification and browser QA run through standalone project scripts. `MOZOLE_INSTALL_CCE` does not enable integrations.
|
|
73
16
|
|
|
74
|
-
|
|
17
|
+
Basic `AGENTS.md` describes actual commands, source layout, and verification policy. `CLAUDE.md` imports it using `@AGENTS.md`. Neither file imposes CCE retrieval or token policies. No `.agents/`, `.codex/hooks.json`, or `.claude/settings.json` is generated by default.
|
|
75
18
|
|
|
76
19
|
```sh
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
This command installs the official `uv` package through the native system package manager (WinGet on Windows; pacman, apt, dnf, or zypper on Linux), then uses `uv tool install` to persist the pinned `cce` executable for the current user. It does not create a project Python virtual environment. The CCE tool and its compatible MCP runtime are pinned together; Mozole resolves the resulting executable directly for agent MCP configuration, even before a newly opened shell has refreshed `PATH`.
|
|
81
|
-
|
|
82
|
-
### Deterministic verification
|
|
83
|
-
|
|
84
|
-
```sh
|
|
85
|
-
mozole verify
|
|
86
|
-
# generated-project alias
|
|
20
|
+
cd my-site
|
|
21
|
+
npm run dev
|
|
87
22
|
npm run verify
|
|
23
|
+
npm run qa
|
|
24
|
+
npm run qa:interactive
|
|
25
|
+
npm run qa:visual
|
|
88
26
|
```
|
|
89
27
|
|
|
90
|
-
|
|
28
|
+
`verify` runs lint, strict TypeScript, tests, and production build every time. PHP projects also run PHP version and recursive syntax checks first. `qa` starts a loopback development server on an available port, checks the configured routes at three viewports, and closes its browser and server. Normal QA never captures screenshots. `qa:visual` explicitly captures screenshots under `.mozole/qa/`. Reinstall Chromium with `npx playwright install chromium` if necessary.
|
|
91
29
|
|
|
92
|
-
|
|
30
|
+
React Router uses `ssr: false` and `prerender: true`. The starter builds real HTML for `/`, `/about`, and `/contact` into `build/client/`, plus `__spa-fallback.html`. Production requires no Node server. See [React Router prerendering](https://reactrouter.com/how-to/pre-rendering).
|
|
93
31
|
|
|
94
|
-
|
|
32
|
+
## PHP backend
|
|
95
33
|
|
|
96
34
|
```sh
|
|
97
|
-
mozole
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
35
|
+
mozole new my-app --backend
|
|
36
|
+
cd my-app
|
|
37
|
+
npm run dev
|
|
38
|
+
# In a separate terminal:
|
|
39
|
+
npm run dev:api
|
|
101
40
|
```
|
|
102
41
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Normal QA and verification contain no screenshot path. Screenshot capture exists only inside the `visual` branch, uses stable `<viewport>-<route>.png` names, and is tested as opt-in.
|
|
106
|
-
|
|
107
|
-
Successful normal, interactive, and visual QA evidence is cached separately. Runtime source, routes, server settings, dependencies, and viewport changes invalidate QA; a README-only edit does not. An unchanged repeat returns `QA CURRENT` without launching a server or Chromium. Visual reuse also verifies every screenshot's content hash and existence. `mozole qa --force` and `mozole qa --visual --force` always collect fresh evidence.
|
|
108
|
-
|
|
109
|
-
Viewports, routes, server command/arguments, readiness path, telemetry, and verifier extensions are explicit in `.mozole/project.json`.
|
|
110
|
-
|
|
111
|
-
## CCE, Codex, and Claude Code
|
|
112
|
-
|
|
113
|
-
Mozole integrates Elara Labs' local [Code Context Engine](https://github.com/elara-labs/code-context-engine), currently pinned to `0.4.25`. If `cce` is installed, Mozole runs:
|
|
42
|
+
Vite proxies `/api/` calls to PHP on `127.0.0.1:8000`. The PHP front controller serves `GET` and `HEAD` for `/api/health` and `/api/info`. Unknown endpoints return JSON 404; unsupported methods on known endpoints return JSON 405 with `Allow: GET, HEAD`.
|
|
114
43
|
|
|
115
44
|
```sh
|
|
116
|
-
|
|
45
|
+
npm run check:php
|
|
46
|
+
npm run build:deploy
|
|
117
47
|
```
|
|
118
48
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
When adopting a project with CCE enabled, Mozole requires a runnable CCE runtime before it writes the managed MCP entry or reports success. If neither `cce` nor `uvx` is available, run `mozole cce install` once and repeat adoption. The adopted MCP entry uses the resolved executable, including the persistent `cce` path when a newly opened shell has not refreshed `PATH` yet; a pinned `uvx` fallback remains supported for existing installations.
|
|
49
|
+
`check:php` checks PHP 8.0+ and runs `php -l` on every PHP source file under `api/`. `build:deploy` validates PHP, builds the frontend, and assembles `deploy/` with static output, `api/`, and `.htaccess`. Existing deployment output is replaced with rollback on failed replacement. Upload the **contents** of `deploy/`, including hidden `.htaccess`, to an Apache/LiteSpeed document root with PHP and rewrite support. The supplied configuration assumes domain-root hosting. Nginx needs explicit PHP-FPM configuration; see generated `docs/backend-php.md`.
|
|
122
50
|
|
|
123
|
-
|
|
51
|
+
Environment values come from the process environment using `getenv`; there is no implicit `.env` loader. Production and debug-off are the defaults. Database support is an optional PDO helper; configure `DB_DSN`, `DB_USER`, and `DB_PASS` through your host.
|
|
124
52
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
## Terminal UI
|
|
53
|
+
## Explicit integrations
|
|
128
54
|
|
|
129
55
|
```sh
|
|
130
|
-
mozole
|
|
56
|
+
mozole cce install
|
|
57
|
+
mozole new agent-site --cce-install
|
|
58
|
+
# --install-cce is an alias; --backend can be combined with either flag.
|
|
59
|
+
mozole adopt existing-site --cce-install
|
|
131
60
|
```
|
|
132
61
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
## Google Antigravity
|
|
136
|
-
|
|
137
|
-
`mozole new` provisions Antigravity without requiring the IDE or CLI to be installed. `mozole adopt` adds the same files conservatively:
|
|
62
|
+
Only explicit `--cce-install`/`--install-cce` enables the CCE runtime integration, Codex/Claude hooks, Antigravity workspace files, token governor, telemetry, and verification/QA evidence reuse. The project then depends on the matching CLI version. `--scaffold` on `new` overrides integration flags.
|
|
138
63
|
|
|
139
|
-
|
|
140
|
-
.agents/
|
|
141
|
-
├── mcp_config.json
|
|
142
|
-
├── rules/mozole.md
|
|
143
|
-
└── workflows/
|
|
144
|
-
├── mozole-verify.md
|
|
145
|
-
├── mozole-qa.md
|
|
146
|
-
├── mozole-qa-interactive.md
|
|
147
|
-
└── mozole-qa-visual.md
|
|
148
|
-
```
|
|
64
|
+
CCE initialization uses the pinned release in `src/version.ts`. `mozole cce install` installs its runtime; creation reports when an unavailable runtime needs attention. Adoption with integration flags requires a runnable CCE runtime before installing managed integrations. Existing user instructions and unrelated hook/MCP entries are preserved. Managed instruction blocks and hook definitions are refreshed idempotently.
|
|
149
65
|
|
|
150
|
-
|
|
66
|
+
Optimized `AGENTS.md` provides the shared CCE-first contract; `CLAUDE.md` imports it and Antigravity rules reference it. Instructions are guidance, not execution proof. Codex discovers `AGENTS.md` by directory scope, with `AGENTS.override.md` taking precedence. Project hooks need host review/trust before execution. See [AGENTS.md discovery](https://learn.chatgpt.com/docs/agent-configuration/agents-md) and [Codex hooks](https://learn.chatgpt.com/docs/hooks).
|
|
151
67
|
|
|
152
|
-
|
|
68
|
+
Read and command policies run on `PreToolUse`. CCE retrieval tracking runs on `PostToolUse`, including MCP tool names, and ignores explicit tool-error responses. The Antigravity visual workflow provides a reason accepted by the visual QA gate. Host-specific agent sessions are not automatically launched by the CLI test suite.
|
|
153
69
|
|
|
154
|
-
|
|
70
|
+
Optimized verification/QA reuses matching successful evidence. Use `--force` for a fresh run. Routine QA is screenshot-free; visual QA uses explicit `--visual` and, after successful routine QA, `--reason` or `--force`. Enabled governors enforce read/command policies and can deny calls; they are not advisory-only. Local telemetry reports measured output compression and tool activity, not model billing savings.
|
|
155
71
|
|
|
156
|
-
|
|
72
|
+
## Adopt an existing project
|
|
157
73
|
|
|
158
74
|
```sh
|
|
159
|
-
mozole
|
|
160
|
-
agy # start Antigravity CLI when installed
|
|
161
|
-
# inside Antigravity
|
|
162
|
-
/mcp # inspect mozole-cce connectivity
|
|
163
|
-
cce status # inspect the shared local index
|
|
164
|
-
mozole adopt . # repair/update Mozole-owned workspace files
|
|
75
|
+
mozole adopt ../existing-app
|
|
165
76
|
```
|
|
166
77
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
## Token governor
|
|
170
|
-
|
|
171
|
-
The generated harness adds a local, advisory governor around CCE and Mozole's concise runners for Codex, Claude Code, and Antigravity:
|
|
78
|
+
Plain adoption adds standalone verification/QA, basic agent guidance, and missing test tools to a React project using Vite or React Router. Application source and existing user integrations are preserved. It never enables optimization tooling. An already optimized project requires `--cce-install` for managed integration updates rather than silently removing previously enabled integrations. Changed package metadata is backed up under `.mozole/backups/`; managed files are restored on failure.
|
|
172
79
|
|
|
173
|
-
|
|
174
|
-
- `.codex/hooks.json` and `.claude/settings.json` use documented `PreToolUse` command hooks to warn once about identical unchanged reads or commands. They return context only and never deny or rewrite a tool call.
|
|
175
|
-
- Codex requires review and trust for project hooks; inspect them with `/hooks`. See the official [Codex hooks reference](https://developers.openai.com/codex/hooks).
|
|
176
|
-
- Claude Code loads shared project hooks from `.claude/settings.json`. See the official [Claude Code hooks reference](https://code.claude.com/docs/en/hooks).
|
|
80
|
+
## CLI commands
|
|
177
81
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
mozole
|
|
184
|
-
mozole logs
|
|
185
|
-
mozole
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
## Efficiency telemetry
|
|
189
|
-
|
|
190
|
-
```sh
|
|
82
|
+
```text
|
|
83
|
+
mozole new <name> [--backend] [--cce-install] [--verbose]
|
|
84
|
+
mozole adopt <path> [--cce-install] [--verbose]
|
|
85
|
+
mozole doctor
|
|
86
|
+
mozole verify [--force]
|
|
87
|
+
mozole qa [--interactive | --visual [--diff]] [--force]
|
|
88
|
+
mozole logs [name] [--raw]
|
|
89
|
+
mozole cce install
|
|
191
90
|
mozole stats
|
|
91
|
+
mozole ui
|
|
192
92
|
```
|
|
193
93
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
## PHP compatibility
|
|
94
|
+
`doctor` checks runtime, project tooling, and optional PHP syntax. CCE probes are omitted for plain projects. `mozole verify` and `mozole qa` can also operate on plain project metadata without reading or writing optimization state. `stats` reports that statistics are disabled in plain projects. Standalone project QA supports normal, interactive, and visual modes; pixel diffing remains in the optional CLI QA runner.
|
|
197
95
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
## Windows and Linux
|
|
201
|
-
|
|
202
|
-
All filesystem work uses Node path/fs APIs. Child processes receive structured argument arrays with `shell: false`; Windows uses `.cmd` executable resolution and `taskkill /T`, while POSIX systems use process groups. Paths are never interpolated into shell commands. CI runs lint, strict typecheck, unit/integration tests, compilation, a real project generation, static-route assertions, and screenshot-free browser QA on native Windows and Ubuntu runners.
|
|
203
|
-
|
|
204
|
-
## Development and release
|
|
96
|
+
## Development
|
|
205
97
|
|
|
206
98
|
```sh
|
|
207
99
|
npm ci
|
|
@@ -211,4 +103,6 @@ npm run test:smoke
|
|
|
211
103
|
npm pack --dry-run
|
|
212
104
|
```
|
|
213
105
|
|
|
214
|
-
The
|
|
106
|
+
The CI matrix runs on native Windows and Ubuntu with PHP. It covers real PHP routing, method handling, syntax failures, deployment replacement and rollback, default scaffold isolation, agent-file wiring, conservative adoption, and generated frontend/PHP/optimized projects. The optimized smoke scenario skips CCE initialization; live CCE installation is covered separately with runtime fixtures.
|
|
107
|
+
|
|
108
|
+
Subprocesses use argument arrays and `shell: false`. Persisted configuration, state, and telemetry use temporary files and atomic replacement. Dependency versions are pinned centrally in `src/version.ts`.
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAeA,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAOT;AAqCD,wBAAsB,IAAI,CACxB,IAAI,WAAwB,EAC5B,GAAG,SAAgB,GAClB,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAeA,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAOT;AAqCD,wBAAsB,IAAI,CACxB,IAAI,WAAwB,EAC5B,GAAG,SAAgB,GAClB,OAAO,CAAC,MAAM,CAAC,CAiJjB"}
|
package/dist/cli.js
CHANGED
|
@@ -26,7 +26,7 @@ const help = `mozole ${CLI_VERSION}
|
|
|
26
26
|
|
|
27
27
|
Usage:
|
|
28
28
|
mozole new <name> [--backend] [--cce-install] [--verbose]
|
|
29
|
-
mozole adopt <path> [--verbose]
|
|
29
|
+
mozole adopt <path> [--cce-install] [--verbose]
|
|
30
30
|
mozole cce install [--verbose]
|
|
31
31
|
mozole doctor [--verbose]
|
|
32
32
|
mozole verify [--force] [--verbose]
|
|
@@ -73,12 +73,15 @@ export async function main(args = process.argv.slice(2), cwd = process.cwd()) {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
if (command === "adopt") {
|
|
76
|
-
const { positional, unknown, verbose } = parseCliArgs([value, ...rest]);
|
|
76
|
+
const { positional, unknown, verbose, flags } = parseCliArgs([value, ...rest], ["--cce-install", "--install-cce"]);
|
|
77
77
|
if (unknown.length || positional.length > 1) {
|
|
78
78
|
console.error(`Unknown option: ${unknown[0] ?? positional[1]}`);
|
|
79
79
|
return 2;
|
|
80
80
|
}
|
|
81
|
-
return adoptCommand(positional[0], cwd, console, {
|
|
81
|
+
return adoptCommand(positional[0], cwd, console, {
|
|
82
|
+
verbose,
|
|
83
|
+
cceInstall: flags.includes("--cce-install") || flags.includes("--install-cce"),
|
|
84
|
+
});
|
|
82
85
|
}
|
|
83
86
|
if (command === "cce") {
|
|
84
87
|
const { positional, unknown, verbose } = parseCliArgs([value, ...rest]);
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO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AAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnD,OAAO,CAAC,QAAQ,GAAG,MAAM,IAAI,EAAE,CAAC"}
|
package/dist/commands/adopt.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { Output } from "../output.js";
|
|
|
2
2
|
import { type ProgressState } from "../progress.js";
|
|
3
3
|
export declare function detectRoutes(source: string): string[];
|
|
4
4
|
export declare function adoptCommand(input: string | undefined, cwd: string, output?: Output, options?: {
|
|
5
|
+
cceInstall?: boolean | undefined;
|
|
5
6
|
verbose?: boolean | undefined;
|
|
6
7
|
onProgress?: ((state: ProgressState) => void) | undefined;
|
|
7
8
|
}): Promise<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adopt.d.ts","sourceRoot":"","sources":["../../src/commands/adopt.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"adopt.d.ts","sourceRoot":"","sources":["../../src/commands/adopt.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,gBAAgB,CAAC;AAyFlE,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAKrD;AA+KD,wBAAsB,YAAY,CAChC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,GAAG,EAAE,MAAM,EACX,MAAM,GAAE,MAAgB,EACxB,OAAO,GAAE;IACP,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACtD,GACL,OAAO,CAAC,MAAM,CAAC,CA6TjB"}
|