@mozole/cli 1.4.0 → 1.4.1
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 +10 -1
- package/README.md +5 -1
- package/dist/commands/adopt.d.ts +1 -1
- package/dist/commands/adopt.d.ts.map +1 -1
- package/dist/commands/adopt.js +312 -102
- package/dist/commands/adopt.js.map +1 -1
- package/dist/platform/process.d.ts.map +1 -1
- package/dist/platform/process.js +4 -0
- package/dist/platform/process.js.map +1 -1
- package/dist/scaffold/adoption.d.ts +17 -0
- package/dist/scaffold/adoption.d.ts.map +1 -0
- package/dist/scaffold/adoption.js +279 -0
- package/dist/scaffold/adoption.js.map +1 -0
- package/dist/scaffold/design.d.ts +4 -0
- package/dist/scaffold/design.d.ts.map +1 -0
- package/dist/scaffold/design.js +50 -0
- package/dist/scaffold/design.js.map +1 -0
- package/dist/scaffold/legacy.d.ts +4 -0
- package/dist/scaffold/legacy.d.ts.map +1 -0
- package/dist/scaffold/legacy.js +139 -0
- package/dist/scaffold/legacy.js.map +1 -0
- package/dist/scaffold/routes.d.ts +3 -0
- package/dist/scaffold/routes.d.ts.map +1 -0
- package/dist/scaffold/routes.js +37 -0
- package/dist/scaffold/routes.js.map +1 -0
- package/dist/scaffold/standalone.d.ts +2 -1
- package/dist/scaffold/standalone.d.ts.map +1 -1
- package/dist/scaffold/standalone.js +43 -19
- package/dist/scaffold/standalone.js.map +1 -1
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +9 -4
- package/dist/scaffold/templates.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/docs/agent-audit.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
- Make `adopt` reconcile legacy and previously optimized projects with the current canonical project system without requiring an integration flag.
|
|
6
|
+
- Archive Mozole-owned legacy state and managed files during migration, preserve unrelated user integrations and design exports, and restore managed changes if installation fails.
|
|
7
|
+
- Refresh managed instruction blocks, standalone verification/QA scripts, PHP templates, tooling pins and configured project verifiers idempotently.
|
|
8
|
+
- Keep CCE, governor, telemetry and token-optimization layers strictly opt-in through explicit integration flags.
|
|
9
|
+
|
|
3
10
|
## 1.4.0
|
|
4
11
|
|
|
12
|
+
- Add provider-neutral design handoff and shared AGENTS.md guardrails for spacing, typography, contrast, assets and responsive validation; preserve user exports under docs/design/.
|
|
13
|
+
|
|
5
14
|
- Make default scaffolds independent of the CLI: no CCE, governor, telemetry, caches, MCP, hooks, or optimization dependency. Environment variables cannot enable integration mode.
|
|
6
15
|
- 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
16
|
- Track CCE retrieval through PostToolUse MCP events and provide a valid reason from the visual QA workflow.
|
|
@@ -10,4 +19,4 @@
|
|
|
10
19
|
- Preserve failed creation logs before staging cleanup.
|
|
11
20
|
- Add standalone browser QA and integration coverage for plain, PHP, and optimized scaffolds; provision PHP in Windows/Linux CI.
|
|
12
21
|
|
|
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
|
|
22
|
+
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 migrates previously optimized projects to the current standalone system, archiving Mozole-owned integration remnants and preserving unrelated user integrations. Explicit flags select optimized adoption. Legacy PHP templates, managed scripts, instruction blocks and tooling pins are reconciled; customized backend files receive a review notice. Failed installation restores managed files and moved state.
|
package/README.md
CHANGED
|
@@ -29,6 +29,10 @@ npm run qa:visual
|
|
|
29
29
|
|
|
30
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).
|
|
31
31
|
|
|
32
|
+
## Design references and assets
|
|
33
|
+
|
|
34
|
+
Place exported `design.md`, images, icons, fonts and reference screens under `docs/design/`. Generated `AGENTS.md` treats these as design evidence, preserves their intent, and requires checks for spacing, loaded fonts, foreground/background contrast, responsive behavior and interaction states. It permits justified corrections instead of blindly copying tokens. `docs/design/README.md` explains the handoff; no provider-specific design is generated. Existing exports remain untouched during adoption. Routine QA stays screenshot-free; visual comparison remains opt-in.
|
|
35
|
+
|
|
32
36
|
## PHP backend
|
|
33
37
|
|
|
34
38
|
```sh
|
|
@@ -75,7 +79,7 @@ Optimized verification/QA reuses matching successful evidence. Use `--force` for
|
|
|
75
79
|
mozole adopt ../existing-app
|
|
76
80
|
```
|
|
77
81
|
|
|
78
|
-
|
|
82
|
+
Adoption reconciles a React/Vite or React Router project with the current project system. Without `--cce-install`, it removes Mozole-owned CCE integrations, optimization hooks and state, including from previously optimized projects, and installs standalone verification/QA. The flag explicitly selects the optimized system. User instructions, unrelated integrations, application source and design exports are preserved. Recognized unchanged legacy PHP templates are upgraded; customized backend files are retained with a review notice. Replaced files and obsolete state are archived under `.mozole/backups/adopt-*`; managed files are restored if installation fails. Tooling versions and npm dependencies are reconciled on every adoption. Custom verifier commands and configured QA servers remain in use. Repeating adoption does not duplicate managed instruction blocks.
|
|
79
83
|
|
|
80
84
|
## CLI commands
|
|
81
85
|
|
package/dist/commands/adopt.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Output } from "../output.js";
|
|
2
2
|
import { type ProgressState } from "../progress.js";
|
|
3
|
-
export
|
|
3
|
+
export { detectRoutes } from "../scaffold/routes.js";
|
|
4
4
|
export declare function adoptCommand(input: string | undefined, cwd: string, output?: Output, options?: {
|
|
5
5
|
cceInstall?: boolean | undefined;
|
|
6
6
|
verbose?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adopt.d.ts","sourceRoot":"","sources":["../../src/commands/adopt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adopt.d.ts","sourceRoot":"","sources":["../../src/commands/adopt.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,gBAAgB,CAAC;AAgGlE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AA+JrD,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,CA0XjB"}
|