heximon 0.26.0 → 0.28.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/dist/index.d.mts CHANGED
@@ -21,6 +21,11 @@ declare const CliDiagnosticCode: {
21
21
  readonly ReexecFailed: "cli.reexec-failed";
22
22
  /** The arguments do not fit the command: a missing positional, an unknown subcommand. stderr has the usage. */
23
23
  readonly UsageError: "cli.usage-error";
24
+ /**
25
+ * The Nitro preset of a Nitro or Nuxt host names a strategy whose platform package does not load, so the command
26
+ * cannot compile for the deploy target of the build.
27
+ */
28
+ readonly HostStrategyUnavailable: "cli.host-strategy-unavailable";
24
29
  };
25
30
  /** One of the {@link CliDiagnosticCode} values. */
26
31
  type CliDiagnosticCode = (typeof CliDiagnosticCode)[keyof typeof CliDiagnosticCode];
@@ -107,6 +112,11 @@ declare const CheckDiagnosticCode: {
107
112
  * version that the command does not read, cannot be read, or is older than a Nuxt config file of the app.
108
113
  */
109
114
  readonly NuxtTargetUnavailable: "check.nuxt-target-unavailable";
115
+ /**
116
+ * An info: a Nitro or Nuxt host compiled for the Node default, because the command could not apply its Nitro
117
+ * preset and the sidecar declares no `platform`.
118
+ */
119
+ readonly HostTargetDefault: "check.host-target-default";
110
120
  };
111
121
  /** One of the {@link CheckDiagnosticCode} values. */
112
122
  type CheckDiagnosticCode = (typeof CheckDiagnosticCode)[keyof typeof CheckDiagnosticCode];
@@ -412,6 +422,41 @@ interface CheckStartupNote {
412
422
  /** One sentence. */
413
423
  readonly message: string;
414
424
  }
425
+ /** Why `heximon check --startup` has no size for the chunk of a hostless app. */
426
+ declare const CheckHostlessSizeUnavailable: {
427
+ /** The build record does not name the generated files of its chunks. */
428
+ readonly NoChunkRecord: "no-chunk-record";
429
+ /** No chunk of the build holds the boot file of the app. The build is older than the compile. */
430
+ readonly NoChunk: "no-chunk";
431
+ /** The size walk of the server entry does not reach the chunk. */
432
+ readonly NotReached: "not-reached";
433
+ };
434
+ /** One of the {@link CheckHostlessSizeUnavailable} values. */
435
+ type CheckHostlessSizeUnavailable = (typeof CheckHostlessSizeUnavailable)[keyof typeof CheckHostlessSizeUnavailable];
436
+ /**
437
+ * A hostless app of the compile: an extra app that boots only some modules, such as the app of a Durable Object
438
+ * that `cloudflare.durableObjectGraphs` lists. `heximon.startup.json` records its modules.
439
+ */
440
+ interface CheckStartupHostlessApp {
441
+ readonly app: string;
442
+ /** What boots the app, for example "the Durable Object `StorageRoomDO`". */
443
+ readonly subject: string;
444
+ /** The identity of each module and composed package of the app, sorted. */
445
+ readonly modules: readonly string[];
446
+ /**
447
+ * The static closure of the chunk that holds the app's boot file, with build output: the chunk, relative to
448
+ * the output directory, and every file that it loads through static imports. A note only: it fails nothing.
449
+ * `inStartClosure` is `true` when the chunk is also in the static start closure of the server entry: the
450
+ * code then loads with the start, and the closure can hold code of the main app's start.
451
+ */
452
+ readonly size?: {
453
+ readonly chunk: string;
454
+ readonly start: ServerCodeSize;
455
+ readonly inStartClosure?: true;
456
+ };
457
+ /** Why the app has no {@link size}, with build output. */
458
+ readonly sizeUnavailable?: CheckHostlessSizeUnavailable;
459
+ }
415
460
  /** The `heximon check --json` document. */
416
461
  interface CheckJsonDocument extends CliJsonDocument {
417
462
  /** Which compile ran: `app`, or `library` for a published module package. */
@@ -438,6 +483,8 @@ interface CheckJsonDocument extends CliJsonDocument {
438
483
  readonly startupEntries?: CheckStartupEntriesResult;
439
484
  /** The facts that the plugins state about the start of each app, present only with `--startup` in an app. */
440
485
  readonly startupNotes?: readonly CheckStartupNote[];
486
+ /** The hostless apps of the compile, present only with `--startup` in an app that has one. */
487
+ readonly startupHostlessApps?: readonly CheckStartupHostlessApp[];
441
488
  }
442
489
  //#endregion
443
490
  //#region src/prompter.d.ts
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as SkillSources, b as ClackPrompter, c as ProjectScaffolder, d as RegistryAccessStatus, g as CliEntry, h as CliEnvironment, i as createCommand, l as TemplateDownloadError, o as SkillInstaller, r as CreateDefaults, s as ProjectDirectoryOccupiedError, t as skillsCommand, u as RegistryAccess, x as PromptCancelledError } from "./skills-command-Czsv_c74.mjs";
1
+ import { a as SkillSources, b as ClackPrompter, c as ProjectScaffolder, d as RegistryAccessStatus, g as CliEntry, h as CliEnvironment, i as createCommand, l as TemplateDownloadError, o as SkillInstaller, r as CreateDefaults, s as ProjectDirectoryOccupiedError, t as skillsCommand, u as RegistryAccess, x as PromptCancelledError } from "./skills-command-BiuBtTbZ.mjs";
2
2
  export { ClackPrompter, CliEntry, CliEnvironment, CreateDefaults, ProjectDirectoryOccupiedError, ProjectScaffolder, PromptCancelledError, RegistryAccess, RegistryAccessStatus, SkillInstaller, SkillSources, TemplateDownloadError, createCommand, skillsCommand };
@@ -126,7 +126,12 @@ const CliDiagnosticCode = {
126
126
  /** The command could not start the child process that runs the app's TypeScript source. */
127
127
  ReexecFailed: "cli.reexec-failed",
128
128
  /** The arguments do not fit the command: a missing positional, an unknown subcommand. stderr has the usage. */
129
- UsageError: "cli.usage-error"
129
+ UsageError: "cli.usage-error",
130
+ /**
131
+ * The Nitro preset of a Nitro or Nuxt host names a strategy whose platform package does not load, so the command
132
+ * cannot compile for the deploy target of the build.
133
+ */
134
+ HostStrategyUnavailable: "cli.host-strategy-unavailable"
130
135
  };
131
136
  //#endregion
132
137
  //#region src/stdout-redirect.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heximon",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "description": "The Heximon CLI: create, develop, build, migrate, and deploy Heximon apps.",
5
5
  "keywords": [
6
6
  "cli",
@@ -38,27 +38,28 @@
38
38
  "dependencies": {
39
39
  "@bomb.sh/tab": "^0.0.22",
40
40
  "@clack/prompts": "^1.8.1",
41
- "@heximon/compiler": "0.26.0",
42
- "@heximon/cqrs": "0.26.0",
43
- "@heximon/deploy": "0.26.0",
44
- "@heximon/http": "0.26.0",
45
- "@heximon/node": "0.26.0",
46
- "@heximon/runtime": "0.26.0",
47
- "@heximon/testing": "0.26.0",
41
+ "@heximon/compiler": "0.28.0",
42
+ "@heximon/cqrs": "0.28.0",
43
+ "@heximon/deploy": "0.28.0",
44
+ "@heximon/http": "0.28.0",
45
+ "@heximon/node": "0.28.0",
46
+ "@heximon/runtime": "0.28.0",
47
+ "@heximon/testing": "0.28.0",
48
48
  "citty": "^0.2.2",
49
49
  "giget": "^3.3.1",
50
50
  "pathe": "^2.0.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@heximon/build": "0.26.0",
54
- "@heximon/cloudflare": "0.26.0",
55
- "@heximon/durable": "0.26.0",
56
- "@heximon/integration": "0.26.0",
57
- "@heximon/library": "0.26.0",
58
- "@heximon/nitro": "0.26.0",
59
- "@heximon/queue": "0.26.0",
60
- "@heximon/schedule": "0.26.0",
61
- "@heximon/schema": "0.26.0",
53
+ "@heximon/build": "0.28.0",
54
+ "@heximon/cloudflare": "0.28.0",
55
+ "@heximon/durable": "0.28.0",
56
+ "@heximon/integration": "0.28.0",
57
+ "@heximon/library": "0.28.0",
58
+ "@heximon/nitro": "0.28.0",
59
+ "@heximon/otel": "0.28.0",
60
+ "@heximon/queue": "0.28.0",
61
+ "@heximon/schedule": "0.28.0",
62
+ "@heximon/schema": "0.28.0",
62
63
  "@heximon/test-support": "0.0.1",
63
64
  "@types/node": "^24.19.0",
64
65
  "@typescript/native-preview": "^7.0.0-dev.20260707.2",