heximon 0.1.1 → 0.2.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/README.md CHANGED
@@ -69,7 +69,7 @@ const main = defineCommand({
69
69
  | Command | What it does |
70
70
  | :-- | :-- |
71
71
  | `heximon create` | Scaffolds a new app from a starter template. Also reachable as `pnpm create heximon`. |
72
- | `heximon check` | Compiles the app, reports every diagnostic, and refreshes the editor's type hints. `--emit` also writes the generated wiring to `.heximon/`; `--verify-baseline` names every durable record the committed `heximon.upgrade.json` has not acknowledged. |
72
+ | `heximon check` | Compiles the app, reports every diagnostic, and refreshes the editor's type hints. `--emit` also writes the generated app wiring to `.heximon/`; `--verify-baseline` names every durable record the committed `heximon.upgrade.json` has not acknowledged. |
73
73
  | `heximon routes` | Prints one table for every path the app answers — routes, SSE streams, and WebSocket upgrades — read from the compiler, with no boot required. |
74
74
  | `heximon graph` | Prints the resolved module dependency graph: modules, providers, and dependencies. |
75
75
  | `heximon doctor` | Reports a package installed twice, an untraced deploy target, and a stale published module. |
@@ -127,7 +127,9 @@ the fix instructions plus a non-zero exit code.
127
127
  provider on its own. `heximon check` reports that error with the line that is wrong.
128
128
  - **`heximon check` writes no wiring unless you ask.** Pass `--emit`, or set `debug: true` in
129
129
  `heximon.config.ts`, and the generated files land in `.heximon/` — prettified in place, and the command
130
- prints where.
130
+ prints where. This applies to an app. In a published module package, `--emit` and `debug: true` write
131
+ nothing, and the pretty output prints a notice (`--format json` omits the notice and `emittedTo`). `vp pack` regenerates the `create<Module>` factory in
132
+ `.heximon/library/`.
131
133
  - **`heximon skills add` records only what it installed.** A source it could not fetch stays out of
132
134
  `heximon.skills`, so `heximon skills sync` never retries a URL that never worked.
133
135
  - **Adding a durable record is silent until you look for it.** A new queue channel, saga slot, workflow, or
package/dist/bin.mjs CHANGED
@@ -431,7 +431,7 @@ var UpgradeBaseline = class UpgradeBaseline {
431
431
  *
432
432
  * Two opt-in passes ride the same compile. `--emit` (and the sidecar's own `debug: true`) writes the generated
433
433
  * wiring to `.heximon/` and reformats it in place, so what the compiler produced can be read; a bare run writes
434
- * only the verdict mirror. `--verify-baseline` makes every durable concept ALSO report the records the
434
+ * only the verdict mirror. Both apply to the app leg only: a library run writes no wiring and says so. `--verify-baseline` makes every durable concept ALSO report the records the
435
435
  * committed `heximon.upgrade.json` never acknowledged — the direction the diff does not walk, since adding a
436
436
  * record is safe to deploy. It writes nothing, and is refused alongside `--update`, which acknowledges exactly
437
437
  * what it exists to show.
@@ -487,7 +487,7 @@ const checkCommand = defineCommand({
487
487
  },
488
488
  emit: {
489
489
  type: "boolean",
490
- description: "Write the generated wiring to `.heximon/` and prettify it, for inspection. The sidecar's `debug: true` turns this on for every run.",
490
+ description: "Write the generated app wiring to `.heximon/` and prettify it, for inspection. A library compile writes nothing: run `vp pack` to regenerate its factory. The sidecar's `debug: true` turns this on for every app-mode run.",
491
491
  default: false
492
492
  }
493
493
  },
@@ -563,6 +563,7 @@ const checkCommand = defineCommand({
563
563
  } else {
564
564
  if (checked.emittedTo !== void 0) log.info(`Wrote the generated wiring to ${checked.emittedTo}`);
565
565
  if (checked.prunedVerdicts !== void 0) log.info(`Removed the stale DI verdict mirror ${checked.prunedVerdicts} — it was written by an app-mode compile of this package, and a library compile emits none to replace it.`);
566
+ if (mode === CompileMode.Library && (args.emit === true || session.config?.debug === true)) log.warn(`${args.emit === true ? "`--emit`" : "`debug: true`"} writes app wiring only. A library's generated factory is written by \`vp pack\`.`);
566
567
  if (mode === CompileMode.Library && verifyBaseline) log.warn(`${UpgradeBaselineFile.fileName} is an app-level artifact — a library's durable surface is verified by each app that composes it, so there is nothing here to verify.`);
567
568
  if (mode === CompileMode.Library && args.update === true) log.warn(`${UpgradeBaselineFile.fileName} is an app-level artifact — a library's durable surface is baselined by each app that composes it, so there is nothing here to update.`);
568
569
  else if (rebaselined !== void 0) log.success(rebaselined.changed ? `Updated ${UpgradeBaselineFile.fileName} — commit it to acknowledge the durable-surface changes.` : `${UpgradeBaselineFile.fileName} already up to date.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heximon",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "The Heximon CLI: create, develop, build, migrate, and deploy Heximon apps.",
5
5
  "keywords": [
6
6
  "cli",
@@ -38,12 +38,12 @@
38
38
  "dependencies": {
39
39
  "@bomb.sh/tab": "^0.0.22",
40
40
  "@clack/prompts": "^1.8.0",
41
- "@heximon/compiler": "0.1.1",
42
- "@heximon/cqrs": "0.1.1",
43
- "@heximon/deploy": "0.1.1",
44
- "@heximon/http": "0.1.1",
45
- "@heximon/node": "0.1.1",
46
- "@heximon/testing": "0.1.1",
41
+ "@heximon/compiler": "0.2.0",
42
+ "@heximon/cqrs": "0.2.0",
43
+ "@heximon/deploy": "0.2.0",
44
+ "@heximon/http": "0.2.0",
45
+ "@heximon/node": "0.2.0",
46
+ "@heximon/testing": "0.2.0",
47
47
  "citty": "^0.2.2",
48
48
  "giget": "^3.3.1",
49
49
  "pathe": "^2.0.3"