heximon 0.3.0 → 0.4.0-next.20261006234607
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/bin.mjs +14 -4
- package/package.json +7 -7
package/dist/bin.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { basename, dirname, join, relative, resolve } from "pathe";
|
|
|
9
9
|
import tab from "@bomb.sh/tab/citty";
|
|
10
10
|
import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
11
11
|
import { CompileMode, DiagnosticCode, DiagnosticRenderMode, DiagnosticRenderer, DiagnosticSeverity, RuntimeSingletons, TerminalStyle, UpgradeBaselineFile } from "@heximon/compiler";
|
|
12
|
-
import { ConfigLoader, LibraryEmitter, ProjectCompiler } from "@heximon/compiler/project";
|
|
12
|
+
import { ConfigLoader, LibraryEmitter, ProjectCompiler, RuntimeConfigLoader } from "@heximon/compiler/project";
|
|
13
13
|
import { NodeCompileSeam } from "@heximon/node/compiler";
|
|
14
14
|
import { TransactionCensus, TransactionCensusPolicy } from "@heximon/cqrs/compiler";
|
|
15
15
|
import { BoundaryProvenanceAuditor, BoundaryProvenanceStatus, CredentialSelection, DatabaseConfigDetector, DeployDiagnosticSeverity, DeployLedger, DeployManifestStore, DeployRunner, DeployStrategyUnavailableError, DeployTargetResolver, DeployableServiceReader, DotenvCascade, DrizzleKitRunner, EnvFileReader, EnvFileUnreadableError, HostManagedDeployUnsupportedError, ImportScanner, MigrationInspector, MigrationTargetComposer, PackageCopyAuditor, PeerClosureAuditor, PlatformTracingAuditor, PlatformTracingStatus, WorkspaceConsumerLocator } from "@heximon/deploy";
|
|
@@ -123,10 +123,13 @@ var ProjectCompileSession = class ProjectCompileSession {
|
|
|
123
123
|
/** The compiler plugins the sidecar declares, merged with the platform strategy's own. */
|
|
124
124
|
plugins;
|
|
125
125
|
strategy;
|
|
126
|
+
/** The runtime config file the app compile checks and bakes in, or `undefined` when there is none. */
|
|
127
|
+
runtimeConfig;
|
|
126
128
|
constructor(options) {
|
|
127
129
|
this.rootDir = options.rootDir;
|
|
128
130
|
this.compiler = options.compiler;
|
|
129
131
|
this.config = options.config;
|
|
132
|
+
this.runtimeConfig = options.runtimeConfig;
|
|
130
133
|
this.sourceDirectories = options.sourceDirectories;
|
|
131
134
|
this.plugins = options.plugins;
|
|
132
135
|
this.strategy = options.strategy;
|
|
@@ -145,6 +148,7 @@ var ProjectCompileSession = class ProjectCompileSession {
|
|
|
145
148
|
rootDir: options.rootDir,
|
|
146
149
|
compiler: new ProjectCompiler(),
|
|
147
150
|
config,
|
|
151
|
+
runtimeConfig: await RuntimeConfigLoader.load(options.rootDir, config, options.environment),
|
|
148
152
|
sourceDirectories: options.sourceDirectories,
|
|
149
153
|
plugins: NodeCompileSeam.mergePlugins(config?.plugins ?? [], strategy),
|
|
150
154
|
strategy
|
|
@@ -166,6 +170,7 @@ var ProjectCompileSession = class ProjectCompileSession {
|
|
|
166
170
|
strategy: this.strategy,
|
|
167
171
|
...this.sourceDirectories === void 0 ? {} : { sourceDirectories: this.sourceDirectories },
|
|
168
172
|
...this.config === void 0 ? {} : { config: this.config },
|
|
173
|
+
...this.runtimeConfig === void 0 ? {} : { runtimeConfig: this.runtimeConfig },
|
|
169
174
|
...this.config?.root === void 0 ? {} : { apps: { main: this.config.root } },
|
|
170
175
|
...typeVerdicts ? { typeVerdicts: true } : {},
|
|
171
176
|
...options.verifyBaseline === true ? { verifyBaseline: true } : {}
|
|
@@ -2313,7 +2318,10 @@ var RoutesCommand = class RoutesCommand {
|
|
|
2313
2318
|
process.exitCode = 1;
|
|
2314
2319
|
return;
|
|
2315
2320
|
}
|
|
2316
|
-
RoutesCommand.report(census.routes, census.unresolved, asJson, jsonOutput, {
|
|
2321
|
+
RoutesCommand.report(census.routes, census.unresolved, asJson, jsonOutput, {
|
|
2322
|
+
libraryMode: mode === CompileMode.Library,
|
|
2323
|
+
...census.scopeEnforcement === void 0 ? {} : { scopeEnforcement: census.scopeEnforcement }
|
|
2324
|
+
});
|
|
2317
2325
|
}
|
|
2318
2326
|
/**
|
|
2319
2327
|
* The boot fallback: compile and boot the app in-process (like the test harness), then read its live route
|
|
@@ -2387,13 +2395,15 @@ var RoutesCommand = class RoutesCommand {
|
|
|
2387
2395
|
*
|
|
2388
2396
|
* @param options - `libraryMode` adds the one fact a package's own table cannot show: the published root's
|
|
2389
2397
|
* default mount is a manifest fact a consuming host applies or replaces, so it is not folded into these
|
|
2390
|
-
* paths.
|
|
2398
|
+
* paths. `scopeEnforcement` is the census section of the same name, passed through to the JSON payload
|
|
2399
|
+
* so a CI job reads the scope-enforcer verdict from the same artifact.
|
|
2391
2400
|
*/
|
|
2392
2401
|
static report(routes, unresolved, asJson, jsonOutput, options = {}) {
|
|
2393
2402
|
const written = jsonOutput.emit({
|
|
2394
2403
|
ok: true,
|
|
2395
2404
|
routes,
|
|
2396
|
-
unresolved
|
|
2405
|
+
unresolved,
|
|
2406
|
+
...options.scopeEnforcement === void 0 ? {} : { scopeEnforcement: options.scopeEnforcement }
|
|
2397
2407
|
});
|
|
2398
2408
|
if (!written) process.exitCode = 1;
|
|
2399
2409
|
if (asJson) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heximon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-next.20261006234607",
|
|
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.1",
|
|
41
|
-
"@heximon/compiler": "0.
|
|
42
|
-
"@heximon/cqrs": "0.
|
|
43
|
-
"@heximon/deploy": "0.
|
|
44
|
-
"@heximon/http": "0.
|
|
45
|
-
"@heximon/node": "0.
|
|
46
|
-
"@heximon/testing": "0.
|
|
41
|
+
"@heximon/compiler": "0.4.0-next.20261006234607",
|
|
42
|
+
"@heximon/cqrs": "0.4.0-next.20261006234607",
|
|
43
|
+
"@heximon/deploy": "0.4.0-next.20261006234607",
|
|
44
|
+
"@heximon/http": "0.4.0-next.20261006234607",
|
|
45
|
+
"@heximon/node": "0.4.0-next.20261006234607",
|
|
46
|
+
"@heximon/testing": "0.4.0-next.20261006234607",
|
|
47
47
|
"citty": "^0.2.2",
|
|
48
48
|
"giget": "^3.3.1",
|
|
49
49
|
"pathe": "^2.0.3"
|