@codemation/cli 0.0.15 → 0.0.18
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 -0
- package/LICENSE +37 -0
- package/README.md +4 -4
- package/dist/{CliBin-BkY_gChN.js → CliBin-BYHuUedo.js} +348 -186
- package/dist/bin.js +1 -1
- package/dist/index.d.ts +278 -298
- package/dist/index.js +1 -1
- package/package.json +5 -4
- package/src/CliProgramFactory.ts +31 -37
- package/src/Program.ts +12 -0
- package/src/build/ConsumerBuildArtifactsPublisher.ts +12 -7
- package/src/commands/BuildCommand.ts +9 -9
- package/src/commands/DevCommand.ts +113 -47
- 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 +28 -0
- package/src/consumer/ConsumerOutputBuilderFactory.ts +17 -0
- package/src/dev/Builder.ts +2 -2
- package/src/dev/CliDevProxyServer.ts +20 -0
- 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 +27 -36
- package/src/dev/DevRebuildQueue.ts +2 -2
- package/src/dev/DevSessionServices.ts +2 -2
- package/src/dev/DevSourceChangeClassifier.ts +12 -12
- package/src/dev/ListenPortConflictDescriber.ts +66 -5
- package/src/dev/{DevAuthSettingsLoader.ts → NextHostEdgeSeedLoader.ts} +13 -9
- package/src/dev/PluginDevConfigFactory.ts +64 -0
- package/src/consumer/Loader.ts +0 -8
- package/src/dev/DevConsumerPublishBootstrap.ts +0 -30
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# @codemation/cli
|
|
2
|
+
|
|
3
|
+
## 0.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f0c6878: Introduce Changesets, a single CI status check for branch protection, and the Codemation pre-stable license across published packages.
|
|
8
|
+
- Updated dependencies [f0c6878]
|
|
9
|
+
- @codemation/host@0.0.18
|
|
10
|
+
- @codemation/next-host@0.0.18
|
package/LICENSE
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Codemation Pre-Stable License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Made Relevant B.V. All rights reserved.
|
|
4
|
+
|
|
5
|
+
1. Definitions
|
|
6
|
+
|
|
7
|
+
"Software" means the Codemation source code, documentation, and artifacts in this repository and any published npm packages in the Codemation monorepo.
|
|
8
|
+
|
|
9
|
+
"Stable Version" means the first published release of the package `@codemation/core` on the public npm registry with version 1.0.0 or higher.
|
|
10
|
+
|
|
11
|
+
2. Permitted use (before Stable Version)
|
|
12
|
+
|
|
13
|
+
Until a Stable Version exists, you may use, copy, modify, and distribute the Software only for non-commercial purposes, including personal learning, research, evaluation, and internal use within your organization that does not charge third parties for access to the Software or a product or service whose primary value is the Software.
|
|
14
|
+
|
|
15
|
+
3. Restrictions (before Stable Version)
|
|
16
|
+
|
|
17
|
+
Until a Stable Version exists, you must not:
|
|
18
|
+
|
|
19
|
+
a) Sell, rent, lease, or sublicense the Software or a derivative work for a fee;
|
|
20
|
+
|
|
21
|
+
b) Offer the Software or a derivative work as part of a paid product or service (including hosting, support, or consulting) where the Software is a material part of the offering;
|
|
22
|
+
|
|
23
|
+
c) Use the Software or a derivative work primarily to generate revenue or commercial advantage for you or others.
|
|
24
|
+
|
|
25
|
+
These restrictions apply to all versions published before a Stable Version, even if a later Stable Version is released under different terms.
|
|
26
|
+
|
|
27
|
+
4. After Stable Version
|
|
28
|
+
|
|
29
|
+
The maintainers may publish a Stable Version under different license terms. If they do, those terms apply only to that Stable Version and subsequent releases they designate; they do not automatically apply to earlier pre-stable versions.
|
|
30
|
+
|
|
31
|
+
5. No warranty
|
|
32
|
+
|
|
33
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
34
|
+
|
|
35
|
+
6. Third-party components
|
|
36
|
+
|
|
37
|
+
The Software may include third-party components under their own licenses. Those licenses govern those components.
|
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
|
|