@codemation/cli 0.0.15 → 0.0.16
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/README.md +4 -4
- package/dist/{CliBin-BkY_gChN.js → CliBin-C31h2o8w.js} +224 -216
- package/dist/bin.js +1 -1
- package/dist/index.d.ts +203 -258
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/CliProgramFactory.ts +22 -41
- package/src/Program.ts +12 -0
- package/src/commands/BuildCommand.ts +4 -11
- package/src/commands/DevCommand.ts +77 -45
- package/src/commands/DevPluginCommand.ts +19 -0
- package/src/commands/ServeWebCommand.ts +8 -34
- package/src/commands/devCommandLifecycle.types.ts +3 -2
- package/src/consumer/ConsumerOutputBuilder.ts +19 -0
- package/src/consumer/ConsumerOutputBuilderFactory.ts +16 -0
- package/src/dev/Builder.ts +2 -2
- package/src/dev/DevApiRuntimeFactory.ts +1 -0
- package/src/dev/DevApiRuntimeHost.ts +37 -6
- package/src/dev/DevApiRuntimeTypes.ts +1 -0
- package/src/dev/DevCliBannerRenderer.ts +21 -2
- package/src/dev/DevNextHostEnvironmentBuilder.ts +8 -41
- package/src/dev/DevRebuildQueue.ts +2 -2
- package/src/dev/DevSessionServices.ts +2 -2
- package/src/dev/DevSourceChangeClassifier.ts +12 -12
- package/src/dev/{DevAuthSettingsLoader.ts → NextHostEdgeSeedLoader.ts} +13 -9
- package/src/dev/PluginDevConfigFactory.ts +64 -0
- package/src/build/ConsumerBuildArtifactsPublisher.ts +0 -77
- package/src/consumer/Loader.ts +0 -8
- package/src/dev/DevConsumerPublishBootstrap.ts +0 -30
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ The CLI **orchestrates** other packages. It does not embed the full Next UI or e
|
|
|
62
62
|
|
|
63
63
|
- **Vertical flow**: the binary loads `CliProgramFactory`, builds `CliProgram`, then Commander dispatches to a **command class** (`commands/*`).
|
|
64
64
|
- **Horizontal row**: shared **libraries** the CLI imports for discovery, logging, and path logic; **next-host** is where `serve web` runs the production Next server; the CLI now also owns the stable dev proxy and disposable in-process API runtime used by `codemation dev`. `serve worker` stays inside the CLI/host container flow instead of delegating to a separate worker package.
|
|
65
|
-
- **Consumer tree**: `ConsumerOutputBuilder`
|
|
65
|
+
- **Consumer tree**: `ConsumerOutputBuilder` is now a production-oriented emission step for `codemation build`; dev and `serve web` load consumer config directly instead of going through published manifests.
|
|
66
66
|
|
|
67
67
|
For **default consumer dev** vs **framework UI watch mode** (`codemation dev` vs `codemation dev --watch-framework`), see [`docs/development-modes.md`](../../docs/development-modes.md) at the repo root.
|
|
68
68
|
|
|
@@ -84,8 +84,8 @@ For **default consumer dev** vs **framework UI watch mode** (`codemation dev` vs
|
|
|
84
84
|
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
85
85
|
| `codemation dev` (default) | Dev session: ports, lock, packaged UI proxy, stable CLI-owned dev endpoint, watch consumer sources, and hot-swap a disposable in-process API runtime on change. |
|
|
86
86
|
| `codemation dev --watch-framework` | Framework-author dev session: same runtime/proxy flow, but runs **`next dev`** for `@codemation/next-host` UI HMR. |
|
|
87
|
-
| `codemation build` | Emit consumer output under `.codemation/output/build
|
|
88
|
-
| `codemation serve web` |
|
|
87
|
+
| `codemation build` | Emit consumer output under `.codemation/output/build` for production-oriented packaging flows. |
|
|
88
|
+
| `codemation serve web` | Start **`next start`** from `@codemation/next-host`; the host loads consumer config directly and fetches runtime bootstrap contracts instead of consuming a published manifest. |
|
|
89
89
|
| `codemation serve worker` | Load `AppConfig`, build the app container in-process, and start the configured queue-backed worker runtime. |
|
|
90
90
|
| `codemation user create` | Create/update a DB user when auth is local (uses consumer config / `DATABASE_URL`). Dispatches `UpsertLocalBootstrapUserCommand` via the host `CommandBus` (password minimum 8 characters, same as invite acceptance). |
|
|
91
91
|
| `codemation user list` | List users via `ListUserAccountsQuery` and the host `QueryBus` (same auth/DB requirements as `user create`). |
|
|
@@ -100,7 +100,7 @@ Use `codemation --help` and `codemation <command> --help` for flags (`--consumer
|
|
|
100
100
|
|
|
101
101
|
1. **`ConsumerOutputBuilder.ensureBuilt()`** discovers config and workflows, transpiles with TypeScript, stages under `.codemation/output/staging/<version>-<uuid>/`, then **renames** to `.codemation/output/build/` (atomic promote).
|
|
102
102
|
2. **Watch** (dev): debounced chokidar rebuilds; incremental builds copy forward from the last promoted `build/` when possible.
|
|
103
|
-
3. **
|
|
103
|
+
3. **Consume**: the Next host no longer depends on published `current.json` manifests for dev or `serve web`; it loads consumer config directly and exposes bootstrap contracts from the prepared runtime.
|
|
104
104
|
|
|
105
105
|
---
|
|
106
106
|
|