@solid-stack/builder 2.2.0 → 3.0.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 +40 -592
- package/dist/bin.js +1715 -1946
- package/dist/bin.js.map +1 -1
- package/dist/commands/mesh/command.d.ts.map +1 -1
- package/dist/commands/mesh/commands/down/handler.d.ts.map +1 -1
- package/dist/commands/mesh/commands/up/command.d.ts.map +1 -1
- package/dist/commands/mesh/commands/up/handler.d.ts.map +1 -1
- package/dist/commands/prune/command.d.ts.map +1 -1
- package/dist/commands/prune/handler.d.ts +3 -1
- package/dist/commands/prune/handler.d.ts.map +1 -1
- package/dist/commands/service/command.d.ts.map +1 -1
- package/dist/commands/service/commands/down/handler.d.ts.map +1 -1
- package/dist/commands/service/commands/up/command.d.ts.map +1 -1
- package/dist/commands/service/commands/up/handler.d.ts.map +1 -1
- package/dist/core/buildSchema.d.ts +217 -952
- package/dist/core/buildSchema.d.ts.map +1 -1
- package/dist/core/checkers/checkDockerfileContract.d.ts +1 -0
- package/dist/core/checkers/checkDockerfileContract.d.ts.map +1 -1
- package/dist/core/checkers/checkInfra.d.ts +7 -1
- package/dist/core/checkers/checkInfra.d.ts.map +1 -1
- package/dist/core/checkers/getDeclaredYamlFiles.d.ts +1 -1
- package/dist/core/checkers/getDeclaredYamlFiles.d.ts.map +1 -1
- package/dist/core/compileApplicationEnv.d.ts +7 -2
- package/dist/core/compileApplicationEnv.d.ts.map +1 -1
- package/dist/core/compileEnvironment.d.ts +1 -0
- package/dist/core/compileEnvironment.d.ts.map +1 -1
- package/dist/core/composeCleanup.d.ts.map +1 -1
- package/dist/core/composition/compileGraphComposition.d.ts +16 -0
- package/dist/core/composition/compileGraphComposition.d.ts.map +1 -0
- package/dist/core/composition/compileServiceComposition.d.ts +2 -13
- package/dist/core/composition/compileServiceComposition.d.ts.map +1 -1
- package/dist/core/composition/compileTester.d.ts +24 -0
- package/dist/core/composition/compileTester.d.ts.map +1 -0
- package/dist/core/composition/composeDependsOn.d.ts +8 -4
- package/dist/core/composition/composeDependsOn.d.ts.map +1 -1
- package/dist/core/composition/composeHealthcheck.d.ts.map +1 -1
- package/dist/core/composition/dotenv.d.ts +3 -0
- package/dist/core/composition/dotenv.d.ts.map +1 -0
- package/dist/core/composition/generatedNames.d.ts.map +1 -1
- package/dist/core/composition/inspectRequiredHealth.d.ts +11 -0
- package/dist/core/composition/inspectRequiredHealth.d.ts.map +1 -0
- package/dist/core/composition/mergeMainOverride.d.ts +3 -0
- package/dist/core/composition/mergeMainOverride.d.ts.map +1 -0
- package/dist/core/composition/types.d.ts +21 -39
- package/dist/core/composition/types.d.ts.map +1 -1
- package/dist/core/composition/validateMaterializedComposeBuildInputs.d.ts.map +1 -1
- package/dist/core/composition/validateMaterializedComposeFiles.d.ts.map +1 -1
- package/dist/core/composition/validateOverrideCompose.d.ts +4 -4
- package/dist/core/composition/validateOverrideCompose.d.ts.map +1 -1
- package/dist/core/composition/validateServiceCompose.d.ts +12 -0
- package/dist/core/composition/validateServiceCompose.d.ts.map +1 -0
- package/dist/core/config/constants.d.ts +2 -4
- package/dist/core/config/constants.d.ts.map +1 -1
- package/dist/core/config/endpointProperties.d.ts +2 -2
- package/dist/core/config/endpointProperties.d.ts.map +1 -1
- package/dist/core/config/executionProfile.d.ts +11 -0
- package/dist/core/config/executionProfile.d.ts.map +1 -0
- package/dist/core/config/hostPorts.d.ts +7 -1
- package/dist/core/config/hostPorts.d.ts.map +1 -1
- package/dist/core/config/publication.d.ts +11 -0
- package/dist/core/config/publication.d.ts.map +1 -0
- package/dist/core/config/references.d.ts +15 -15
- package/dist/core/config/references.d.ts.map +1 -1
- package/dist/core/config/resolveBuildStage.d.ts.map +1 -1
- package/dist/core/config/resolveMeshStage.d.ts +1 -1
- package/dist/core/config/resolveMeshStage.d.ts.map +1 -1
- package/dist/core/config/serviceGraph.d.ts +10 -0
- package/dist/core/config/serviceGraph.d.ts.map +1 -0
- package/dist/core/config/stageMerge.d.ts +2 -3
- package/dist/core/config/stageMerge.d.ts.map +1 -1
- package/dist/core/config/types.d.ts +104 -27
- package/dist/core/config/types.d.ts.map +1 -1
- package/dist/core/mesh/applyMeshExtends.d.ts +3 -0
- package/dist/core/mesh/applyMeshExtends.d.ts.map +1 -0
- package/dist/core/mesh/checkers/checkMesh.d.ts +2 -0
- package/dist/core/mesh/checkers/checkMesh.d.ts.map +1 -1
- package/dist/core/mesh/checkers/checkMeshServices.d.ts +2 -1
- package/dist/core/mesh/checkers/checkMeshServices.d.ts.map +1 -1
- package/dist/core/mesh/checkers/checkMeshTester.d.ts +1 -3
- package/dist/core/mesh/checkers/checkMeshTester.d.ts.map +1 -1
- package/dist/core/mesh/compileMeshComposition.d.ts +6 -0
- package/dist/core/mesh/compileMeshComposition.d.ts.map +1 -0
- package/dist/core/mesh/compileMeshEnvironment.d.ts +3 -2
- package/dist/core/mesh/compileMeshEnvironment.d.ts.map +1 -1
- package/dist/core/mesh/loadMeshSources.d.ts +4 -0
- package/dist/core/mesh/loadMeshSources.d.ts.map +1 -0
- package/dist/core/mesh/meshSchema.d.ts +41 -225
- package/dist/core/mesh/meshSchema.d.ts.map +1 -1
- package/dist/core/mesh/runners/runMeshDev.d.ts +1 -1
- package/dist/core/mesh/runners/runMeshDev.d.ts.map +1 -1
- package/dist/core/mesh/runners/runMeshProd.d.ts +1 -1
- package/dist/core/mesh/runners/runMeshProd.d.ts.map +1 -1
- package/dist/core/mesh/runners/runMeshServiceTests.d.ts +2 -1
- package/dist/core/mesh/runners/runMeshServiceTests.d.ts.map +1 -1
- package/dist/core/mesh/runners/runMeshTest.d.ts +7 -1
- package/dist/core/mesh/runners/runMeshTest.d.ts.map +1 -1
- package/dist/core/mesh/runners/runMeshTestE2e.d.ts +2 -1
- package/dist/core/mesh/runners/runMeshTestE2e.d.ts.map +1 -1
- package/dist/core/mesh/types.d.ts +18 -24
- package/dist/core/mesh/types.d.ts.map +1 -1
- package/dist/core/runCompose.d.ts +4 -0
- package/dist/core/runCompose.d.ts.map +1 -1
- package/dist/core/runners/runDev.d.ts.map +1 -1
- package/dist/core/runners/runFiniteTester.d.ts +12 -2
- package/dist/core/runners/runFiniteTester.d.ts.map +1 -1
- package/dist/core/runners/runLongLived.d.ts +15 -0
- package/dist/core/runners/runLongLived.d.ts.map +1 -0
- package/dist/core/runners/runProd.d.ts.map +1 -1
- package/dist/core/runners/runTest.d.ts +7 -1
- package/dist/core/runners/runTest.d.ts.map +1 -1
- package/dist/core/runners/runTestE2e.d.ts +9 -1
- package/dist/core/runners/runTestE2e.d.ts.map +1 -1
- package/dist/core/runners/runTestUnit.d.ts +9 -1
- package/dist/core/runners/runTestUnit.d.ts.map +1 -1
- package/dist/index.js +1718 -1947
- package/dist/index.js.map +1 -1
- package/dist/templates/docker/docker-compose.base.yml +1 -1
- package/dist/templates/docker/docker-compose.dev.yml +1 -4
- package/dist/templates/docker/docker-compose.e2e.yml +1 -6
- package/dist/templates/docker/docker-compose.prod.yml +1 -1
- package/dist/templates/docker/docker-compose.test.yml +1 -1
- package/dist/templates/policy/dockerfile/dockerfile.rego +3 -6
- package/dist/types/index.d.ts +51 -32
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/runState.d.ts +9 -1
- package/dist/utils/runState.d.ts.map +1 -1
- package/package.json +11 -6
- package/schemas/build-schema.json +868 -507
- package/schemas/mesh-schema.json +947 -384
- package/templates/docker/docker-compose.base.yml +1 -1
- package/templates/docker/docker-compose.dev.yml +1 -4
- package/templates/docker/docker-compose.e2e.yml +1 -6
- package/templates/docker/docker-compose.prod.yml +1 -1
- package/templates/docker/docker-compose.test.yml +1 -1
- package/templates/policy/dockerfile/dockerfile.rego +3 -6
- package/dist/core/composition/dependencyLifecycle.d.ts +0 -4
- package/dist/core/composition/dependencyLifecycle.d.ts.map +0 -1
- package/dist/core/composition/mergeAppOverride.d.ts +0 -3
- package/dist/core/composition/mergeAppOverride.d.ts.map +0 -1
- package/dist/core/composition/selectAppEnvironmentEntries.d.ts +0 -3
- package/dist/core/composition/selectAppEnvironmentEntries.d.ts.map +0 -1
- package/dist/core/composition/serviceEndpoints.d.ts +0 -5
- package/dist/core/composition/serviceEndpoints.d.ts.map +0 -1
- package/dist/core/composition/validateDependencyCompose.d.ts +0 -8
- package/dist/core/composition/validateDependencyCompose.d.ts.map +0 -1
- package/dist/core/mesh/v2/compileMeshComposition.d.ts +0 -6
- package/dist/core/mesh/v2/compileMeshComposition.d.ts.map +0 -1
- package/dist/core/mesh/v2/compileMeshTester.d.ts +0 -15
- package/dist/core/mesh/v2/compileMeshTester.d.ts.map +0 -1
- package/dist/core/mesh/v2/lifecycle.d.ts +0 -10
- package/dist/core/mesh/v2/lifecycle.d.ts.map +0 -1
- package/dist/core/mesh/v2/loadMeshServices.d.ts +0 -5
- package/dist/core/mesh/v2/loadMeshServices.d.ts.map +0 -1
- package/dist/core/mesh/v2/meshReferences.d.ts +0 -17
- package/dist/core/mesh/v2/meshReferences.d.ts.map +0 -1
- package/dist/core/mesh/v2/publication.d.ts +0 -3
- package/dist/core/mesh/v2/publication.d.ts.map +0 -1
- package/dist/core/mesh/v2/resolveMeshAppEnvironment.d.ts +0 -4
- package/dist/core/mesh/v2/resolveMeshAppEnvironment.d.ts.map +0 -1
- package/dist/core/mesh/v2/substitution.d.ts +0 -5
- package/dist/core/mesh/v2/substitution.d.ts.map +0 -1
- package/dist/core/mesh/v2/types.d.ts +0 -40
- package/dist/core/mesh/v2/types.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildSchema.d.ts","sourceRoot":"","sources":["../../src/core/buildSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"buildSchema.d.ts","sourceRoot":"","sources":["../../src/core/buildSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAAgK,CAAC;AAChM,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;EAA4D,CAAC;AAC/F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyL,CAAC;AACxN,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAAmF,CAAC;AACpH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyV,CAAC;AAC5X,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkN,CAAC;AACjP,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAAyC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwO,CAAC;AAC3Q,eAAO,MAAM,mBAAmB,wGAO9B,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;EAMJ,CAAC;AAC1B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiP,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { BuildJson } from "../../types/index.js";
|
|
2
|
+
export declare function assertMainDockerfileContract(projectDir: string, activeStage: "dev" | "test" | "prod"): void;
|
|
2
3
|
export declare function checkDockerfileContract(build: BuildJson, projectDir: string): void;
|
|
3
4
|
//# sourceMappingURL=checkDockerfileContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkDockerfileContract.d.ts","sourceRoot":"","sources":["../../../src/core/checkers/checkDockerfileContract.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"checkDockerfileContract.d.ts","sourceRoot":"","sources":["../../../src/core/checkers/checkDockerfileContract.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAStD,wBAAgB,4BAA4B,CAAC,UAAU,EAAC,MAAM,EAAC,WAAW,EAAC,KAAK,GAAC,MAAM,GAAC,MAAM,GAAE,IAAI,CAyBnG;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAOlF"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { checkDockerfile } from "./checkDockerfile.js";
|
|
2
|
+
import { checkDockerfileContract } from "./checkDockerfileContract.js";
|
|
3
|
+
export interface InfraCheckAdapters {
|
|
4
|
+
dockerfile?: typeof checkDockerfile;
|
|
5
|
+
dockerfileContract?: typeof checkDockerfileContract;
|
|
6
|
+
}
|
|
7
|
+
export declare function checkInfra(projectDir?: string, adapters?: InfraCheckAdapters): void;
|
|
2
8
|
//# sourceMappingURL=checkInfra.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkInfra.d.ts","sourceRoot":"","sources":["../../../src/core/checkers/checkInfra.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkInfra.d.ts","sourceRoot":"","sources":["../../../src/core/checkers/checkInfra.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,MAAM,WAAW,kBAAkB;IAAG,UAAU,CAAC,EAAC,OAAO,eAAe,CAAC;IAAC,kBAAkB,CAAC,EAAC,OAAO,uBAAuB,CAAA;CAAE;AAC9H,wBAAgB,UAAU,CAAC,UAAU,GAAE,MAAsB,EAAC,QAAQ,GAAC,kBAAqB,GAAG,IAAI,CASlG"}
|
|
@@ -4,7 +4,7 @@ export interface DeclaredYamlFile {
|
|
|
4
4
|
absolutePath: string;
|
|
5
5
|
source: string;
|
|
6
6
|
stage?: "dev" | "prod" | "test" | "e2e";
|
|
7
|
-
kind: "
|
|
7
|
+
kind: "service-compose" | "override-compose" | "tester-compose";
|
|
8
8
|
}
|
|
9
9
|
export declare function getDeclaredYamlFiles(build: BuildJson, projectDir: string): DeclaredYamlFile[];
|
|
10
10
|
//# sourceMappingURL=getDeclaredYamlFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDeclaredYamlFiles.d.ts","sourceRoot":"","sources":["../../../src/core/checkers/getDeclaredYamlFiles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"getDeclaredYamlFiles.d.ts","sourceRoot":"","sources":["../../../src/core/checkers/getDeclaredYamlFiles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAA4F,MAAM,sBAAsB,CAAC;AAChJ,MAAM,WAAW,gBAAgB;IAAG,YAAY,EAAC,MAAM,CAAC;IAAC,YAAY,EAAC,MAAM,CAAC;IAAC,MAAM,EAAC,MAAM,CAAC;IAAC,KAAK,CAAC,EAAC,KAAK,GAAC,MAAM,GAAC,MAAM,GAAC,KAAK,CAAC;IAAC,IAAI,EAAC,iBAAiB,GAAC,kBAAkB,GAAC,gBAAgB,CAAA;CAAE;AAC3L,wBAAgB,oBAAoB,CAAC,KAAK,EAAC,SAAS,EAAC,UAAU,EAAC,MAAM,GAAE,gBAAgB,EAAE,CAczF"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { Environment } from "../types/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import type { CompileEnvironmentOptions } from "./compileEnvironment.js";
|
|
3
|
+
export type ResolveComposeConfig = (yaml: string, projectDir: string) => {
|
|
4
|
+
services: Record<string, {
|
|
5
|
+
environment?: Record<string, string | null>;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
3
8
|
/** Resolve the same compiled configuration that service runners send to Compose. */
|
|
4
|
-
export declare function compileApplicationEnv(stage: Environment, projectDir: string, options?: CompileEnvironmentOptions): Record<string, string>;
|
|
9
|
+
export declare function compileApplicationEnv(stage: Environment, projectDir: string, options?: CompileEnvironmentOptions, resolver?: ResolveComposeConfig): Record<string, string>;
|
|
5
10
|
/** Compose dotenv quoting preserves literal dollars, whitespace and multiline values. */
|
|
6
11
|
export declare function serializeApplicationEnv(environment: Record<string, string>): string;
|
|
7
12
|
//# sourceMappingURL=compileApplicationEnv.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileApplicationEnv.d.ts","sourceRoot":"","sources":["../../src/core/compileApplicationEnv.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compileApplicationEnv.d.ts","sourceRoot":"","sources":["../../src/core/compileApplicationEnv.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAIzE,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,KAAG;IAAC,QAAQ,EAAC,MAAM,CAAC,MAAM,EAAC;QAAC,WAAW,CAAC,EAAC,MAAM,CAAC,MAAM,EAAC,MAAM,GAAC,IAAI,CAAC,CAAA;KAAC,CAAC,CAAA;CAAC,CAAC;AAOxI,oFAAoF;AACpF,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,WAAW,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,yBAA8B,EACvC,QAAQ,GAAE,oBAA2C,GACpD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkBxB;AAED,yFAAyF;AACzF,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAgBnF"}
|
|
@@ -2,6 +2,7 @@ import type { Environment } from "../types/index.js";
|
|
|
2
2
|
export interface CompileEnvironmentOptions {
|
|
3
3
|
silenceWarnings?: boolean | undefined;
|
|
4
4
|
full?: boolean | undefined;
|
|
5
|
+
validationMode?: boolean | undefined;
|
|
5
6
|
}
|
|
6
7
|
export declare const compileEnvironment: (stage: Environment, projectDir?: string, options?: CompileEnvironmentOptions) => string;
|
|
7
8
|
//# sourceMappingURL=compileEnvironment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileEnvironment.d.ts","sourceRoot":"","sources":["../../src/core/compileEnvironment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,yBAAyB;IAAG,eAAe,CAAC,EAAC,OAAO,GAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"compileEnvironment.d.ts","sourceRoot":"","sources":["../../src/core/compileEnvironment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,yBAAyB;IAAG,eAAe,CAAC,EAAC,OAAO,GAAC,SAAS,CAAC;IAAC,IAAI,CAAC,EAAC,OAAO,GAAC,SAAS,CAAC;IAAC,cAAc,CAAC,EAAC,OAAO,GAAC,SAAS,CAAA;CAAE;AAC7I,eAAO,MAAM,kBAAkB,UAAQ,WAAW,eAAY,MAAM,YAAuB,yBAAyB,KAAK,MAA8E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeCleanup.d.ts","sourceRoot":"","sources":["../../src/core/composeCleanup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAgBvD,eAAO,MAAM,cAAc,MAAO,YAAY,GAAG,IAAI,KAAG,OAEvD,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI,CAK/D;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAEzD;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,GACxC,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"composeCleanup.d.ts","sourceRoot":"","sources":["../../src/core/composeCleanup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAgBvD,eAAO,MAAM,cAAc,MAAO,YAAY,GAAG,IAAI,KAAG,OAEvD,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI,CAK/D;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAEzD;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,GACxC,MAAM,IAAI,CAcZ;AAuGD,wBAAgB,2BAA2B,IAAI,IAAI,CAOlD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Environment } from "../../types/index.js";
|
|
2
|
+
import type { EffectiveBuildConfig, EffectiveMeshConfig } from "../config/types.js";
|
|
3
|
+
import type { CompiledComposition } from "./types.js";
|
|
4
|
+
export interface GraphCompileInput {
|
|
5
|
+
stage: Environment;
|
|
6
|
+
composition: "service" | "mesh";
|
|
7
|
+
projectDir: string;
|
|
8
|
+
name: string;
|
|
9
|
+
instances: Map<string, EffectiveBuildConfig>;
|
|
10
|
+
mesh?: EffectiveMeshConfig;
|
|
11
|
+
full?: boolean;
|
|
12
|
+
validationMode?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const BUILDER_OWNER_LABEL = "dev.solidstack.builder.owned";
|
|
15
|
+
export declare function compileGraphComposition(input: GraphCompileInput): CompiledComposition;
|
|
16
|
+
//# sourceMappingURL=compileGraphComposition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compileGraphComposition.d.ts","sourceRoot":"","sources":["../../../src/core/composition/compileGraphComposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,sBAAsB,CAAC;AAUvE,OAAO,KAAK,EAAE,oBAAoB,EAAkB,mBAAmB,EAA+C,MAAM,oBAAoB,CAAC;AAWjJ,OAAO,KAAK,EAAE,mBAAmB,EAA4E,MAAM,YAAY,CAAC;AAQhI,MAAM,WAAW,iBAAiB;IAAG,KAAK,EAAE,WAAW,CAAC;IAAC,WAAW,EAAE,SAAS,GAAC,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAC,oBAAoB,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE;AAC7O,eAAO,MAAM,mBAAmB,iCAA+B,CAAC;AA6ChE,wBAAgB,uBAAuB,CAAC,KAAK,EAAC,iBAAiB,GAAE,mBAAmB,CA8EnF"}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import { GeneratedComposeNameAllocator } from "./generatedNames.js";
|
|
2
1
|
import type { Environment } from "../../types/index.js";
|
|
3
|
-
import type {
|
|
2
|
+
import type { CompiledComposition } from "./types.js";
|
|
4
3
|
export interface CompileServiceCompositionOptions {
|
|
5
|
-
nameAllocator?: GeneratedComposeNameAllocator | undefined;
|
|
6
4
|
full?: boolean | undefined;
|
|
7
5
|
silenceWarnings?: boolean | undefined;
|
|
8
|
-
externalAppEnv?: Record<string, string> | undefined;
|
|
9
|
-
namespacePrefix?: string | undefined;
|
|
10
|
-
meshMode?: boolean | undefined;
|
|
11
|
-
publishFilter?: Set<string> | undefined;
|
|
12
|
-
suppressDependencies?: Set<string> | undefined;
|
|
13
|
-
deferReferenceResolution?: boolean | undefined;
|
|
14
|
-
projectNameOverride?: string | undefined;
|
|
15
|
-
appServiceName?: string | undefined;
|
|
16
|
-
composeOutputDir?: string | undefined;
|
|
17
6
|
validationMode?: boolean | undefined;
|
|
18
7
|
}
|
|
19
|
-
export declare function compileServiceComposition(stage: Environment, projectDir: string, options?: CompileServiceCompositionOptions):
|
|
8
|
+
export declare function compileServiceComposition(stage: Environment, projectDir: string, options?: CompileServiceCompositionOptions): CompiledComposition;
|
|
20
9
|
//# sourceMappingURL=compileServiceComposition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileServiceComposition.d.ts","sourceRoot":"","sources":["../../../src/core/composition/compileServiceComposition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compileServiceComposition.d.ts","sourceRoot":"","sources":["../../../src/core/composition/compileServiceComposition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,MAAM,WAAW,gCAAgC;IAAG,IAAI,CAAC,EAAC,OAAO,GAAC,SAAS,CAAC;IAAC,eAAe,CAAC,EAAC,OAAO,GAAC,SAAS,CAAC;IAAC,cAAc,CAAC,EAAC,OAAO,GAAC,SAAS,CAAA;CAAE;AACpJ,wBAAgB,yBAAyB,CAAC,KAAK,EAAC,WAAW,EAAC,UAAU,EAAC,MAAM,EAAC,OAAO,GAAC,gCAAmC,GAAE,mBAAmB,CAG7I"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TesterService } from "../../types/index.js";
|
|
2
|
+
import type { EffectiveGraph, NodeId, Origin, ResolvedEndpoint } from "../config/types.js";
|
|
3
|
+
import { GeneratedComposeNameAllocator } from "./generatedNames.js";
|
|
4
|
+
import type { ComposeDocument } from "./types.js";
|
|
5
|
+
export interface TesterCompileInput {
|
|
6
|
+
tester: TesterService;
|
|
7
|
+
origin: Origin;
|
|
8
|
+
serviceOrigin?: Origin;
|
|
9
|
+
envOrigins?: Map<string, Origin>;
|
|
10
|
+
graph: EffectiveGraph;
|
|
11
|
+
endpoints: Map<NodeId, Record<string, ResolvedEndpoint>>;
|
|
12
|
+
stage: string;
|
|
13
|
+
composition: "service" | "mesh";
|
|
14
|
+
projectDir: string;
|
|
15
|
+
allocator: GeneratedComposeNameAllocator;
|
|
16
|
+
validationOnly: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface TesterCompileResult {
|
|
19
|
+
document: ComposeDocument;
|
|
20
|
+
runner: string;
|
|
21
|
+
serviceNames: string[];
|
|
22
|
+
}
|
|
23
|
+
export declare function compileTester(input: TesterCompileInput): TesterCompileResult;
|
|
24
|
+
//# sourceMappingURL=compileTester.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compileTester.d.ts","sourceRoot":"","sources":["../../../src/core/composition/compileTester.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAK3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAGpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAMlD,MAAM,WAAW,kBAAkB;IAAG,MAAM,EAAC,aAAa,CAAC;IAAC,MAAM,EAAC,MAAM,CAAC;IAAC,aAAa,CAAC,EAAC,MAAM,CAAC;IAAC,UAAU,CAAC,EAAC,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,CAAC;IAAC,KAAK,EAAC,cAAc,CAAC;IAAC,SAAS,EAAC,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,MAAM,EAAC,gBAAgB,CAAC,CAAC,CAAC;IAAC,KAAK,EAAC,MAAM,CAAC;IAAC,WAAW,EAAC,SAAS,GAAC,MAAM,CAAC;IAAC,UAAU,EAAC,MAAM,CAAC;IAAC,SAAS,EAAC,6BAA6B,CAAC;IAAC,cAAc,EAAC,OAAO,CAAA;CAAE;AAC/U,MAAM,WAAW,mBAAmB;IAAG,QAAQ,EAAC,eAAe,CAAC;IAAC,MAAM,EAAC,MAAM,CAAC;IAAC,YAAY,EAAC,MAAM,EAAE,CAAA;CAAE;AACvG,wBAAgB,aAAa,CAAC,KAAK,EAAC,kBAAkB,GAAE,mBAAmB,CAoC1E"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export declare function normalizeComposeDependsOn(value: unknown): Record<string,
|
|
4
|
-
|
|
1
|
+
import type { ComposeService } from "./types.js";
|
|
2
|
+
export type ComposeCondition = "service_started" | "service_healthy" | "service_completed_successfully";
|
|
3
|
+
export declare function normalizeComposeDependsOn(value: unknown): Record<string, {
|
|
4
|
+
condition: ComposeCondition;
|
|
5
|
+
restart?: boolean;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function addComposeCondition(service: ComposeService, target: string, condition: ComposeCondition): void;
|
|
5
9
|
//# sourceMappingURL=composeDependsOn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeDependsOn.d.ts","sourceRoot":"","sources":["../../../src/core/composition/composeDependsOn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"composeDependsOn.d.ts","sourceRoot":"","sources":["../../../src/core/composition/composeDependsOn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,gCAAgC,CAAC;AACxG,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,gBAAgB,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAGhJ;AACD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAE9G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeHealthcheck.d.ts","sourceRoot":"","sources":["../../../src/core/composition/composeHealthcheck.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"composeHealthcheck.d.ts","sourceRoot":"","sources":["../../../src/core/composition/composeHealthcheck.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAUxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dotenv.d.ts","sourceRoot":"","sources":["../../../src/core/composition/dotenv.ts"],"names":[],"mappings":"AACA,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,IAAI,EAAC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAC,MAAM,CAAC,CAoBlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatedNames.d.ts","sourceRoot":"","sources":["../../../src/core/composition/generatedNames.ts"],"names":[],"mappings":"AAEA,iFAAiF;AACjF,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAc;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAEvD,YAAY,YAAY,GAAE,QAAQ,CAAC,MAAM,CAAM,EAE9C;IAED,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"generatedNames.d.ts","sourceRoot":"","sources":["../../../src/core/composition/generatedNames.ts"],"names":[],"mappings":"AAEA,iFAAiF;AACjF,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAc;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAEvD,YAAY,YAAY,GAAE,QAAQ,CAAC,MAAM,CAAM,EAE9C;IAED,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAyB/C;IAED,YAAY,IAAI,IAAI,CAInB;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DeferredHealthCheck } from "./types.js";
|
|
2
|
+
export interface ImageInspectResult {
|
|
3
|
+
Config?: {
|
|
4
|
+
Healthcheck?: unknown;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export type InspectImage = (image: string, projectDir: string) => ImageInspectResult;
|
|
8
|
+
export declare function inspectImage(image: string, projectDir: string): ImageInspectResult;
|
|
9
|
+
/** Resolve health inherited from an image after build/pull, before any container is created. */
|
|
10
|
+
export declare function inspectRequiredHealth(checks: readonly DeferredHealthCheck[], projectDir: string, inspect?: InspectImage, stage?: string, composition?: "service" | "mesh"): void;
|
|
11
|
+
//# sourceMappingURL=inspectRequiredHealth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspectRequiredHealth.d.ts","sourceRoot":"","sources":["../../../src/core/composition/inspectRequiredHealth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD,MAAM,WAAW,kBAAkB;IAAG,MAAM,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,KAAG,kBAAkB,CAAC;AAEhF,wBAAgB,YAAY,CAAC,KAAK,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,GAAE,kBAAkB,CAK9E;AAED,gGAAgG;AAChG,wBAAgB,qBAAqB,CAAC,MAAM,EAAC,SAAS,mBAAmB,EAAE,EAAC,UAAU,EAAC,MAAM,EAAC,OAAO,GAAC,YAAyB,EAAC,KAAK,SAAO,EAAC,WAAW,GAAC,SAAS,GAAC,MAAgB,GAAE,IAAI,CAOxL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeMainOverride.d.ts","sourceRoot":"","sources":["../../../src/core/composition/mergeMainOverride.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAwBjD,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,cAAc,GACtB,cAAc,CAEhB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { EffectiveBuildConfig, ResolvedEndpoint } from "../config/types.js";
|
|
1
|
+
import type { EffectiveGraph, NodeId, ResolvedEndpoint } from "../config/types.js";
|
|
3
2
|
export type ComposeEnvironmentValue = string | null;
|
|
4
3
|
export type ComposeEnvironmentMap = Record<string, ComposeEnvironmentValue>;
|
|
5
4
|
export interface ComposeService {
|
|
@@ -32,50 +31,33 @@ export interface ComposeDocument {
|
|
|
32
31
|
secrets?: Record<string, unknown>;
|
|
33
32
|
[key: string]: unknown;
|
|
34
33
|
}
|
|
35
|
-
export interface
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
export interface MaterializedModule {
|
|
35
|
+
nodeId: NodeId;
|
|
36
|
+
sourceFile: string;
|
|
37
|
+
document: ComposeDocument;
|
|
39
38
|
serviceNameMap: Map<string, string>;
|
|
39
|
+
representative: string;
|
|
40
|
+
serviceNames: string[];
|
|
40
41
|
endpointOwnerMap: Map<string, string>;
|
|
41
|
-
endpointOwners: Set<string>;
|
|
42
|
-
serviceNames: Set<string>;
|
|
43
|
-
endpoints: Record<string, ResolvedEndpoint>;
|
|
44
|
-
}
|
|
45
|
-
export interface ServiceExecutionProfile {
|
|
46
|
-
configStage: Environment;
|
|
47
|
-
envStage: Environment;
|
|
48
|
-
appTarget: "dev" | "test" | "prod";
|
|
49
|
-
execMode: "dev" | "test" | "prod";
|
|
50
|
-
infraMode: "isolated" | "integrated";
|
|
51
|
-
attachTester: boolean;
|
|
52
|
-
testerTarget?: "test-e2e";
|
|
53
42
|
}
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
configPath: string;
|
|
58
|
-
values: Record<string, string>;
|
|
59
|
-
} | {
|
|
60
|
-
kind: "override-compose";
|
|
61
|
-
stage: Environment;
|
|
43
|
+
export interface DeferredHealthCheck {
|
|
44
|
+
serviceName: string;
|
|
45
|
+
image: string;
|
|
62
46
|
sourceFile: string;
|
|
63
47
|
configPath: string;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
export interface CompiledServiceComposition {
|
|
48
|
+
}
|
|
49
|
+
export interface CompiledComposition {
|
|
67
50
|
compose: ComposeDocument;
|
|
68
|
-
effectiveBuild: EffectiveBuildConfig;
|
|
69
|
-
endpoints: {
|
|
70
|
-
app: Record<string, ResolvedEndpoint>;
|
|
71
|
-
dependencies: Record<string, Record<string, ResolvedEndpoint>>;
|
|
72
|
-
};
|
|
73
51
|
projectName: string;
|
|
52
|
+
graph: EffectiveGraph;
|
|
53
|
+
mainServiceNames: Map<NodeId, string>;
|
|
54
|
+
modules: Map<NodeId, MaterializedModule>;
|
|
55
|
+
endpoints: Map<NodeId, Record<string, ResolvedEndpoint>>;
|
|
56
|
+
runtimeServiceNames: string[];
|
|
57
|
+
testerServiceNames: string[];
|
|
74
58
|
testerServiceName?: string;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
externalAppEnvironment?: Record<string, string>;
|
|
78
|
-
dependencyServiceNames?: Record<string, string[]>;
|
|
79
|
-
dependencyEnvironments?: Record<string, Record<string, string>>;
|
|
59
|
+
allocations: Map<string, number>;
|
|
60
|
+
deferredHealthChecks: DeferredHealthCheck[];
|
|
80
61
|
}
|
|
62
|
+
export type CompiledServiceComposition = CompiledComposition;
|
|
81
63
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/composition/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/composition/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACnF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,IAAI,CAAC;AACpD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,WAAW,cAAc;IAAG,CAAC,GAAG,EAAC,MAAM,GAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAC,OAAO,CAAC;IAAC,KAAK,CAAC,EAAC,MAAM,CAAC;IAAC,OAAO,CAAC,EAAC,OAAO,CAAC;IAAC,UAAU,CAAC,EAAC,OAAO,CAAC;IAAC,WAAW,CAAC,EAAC,qBAAqB,GAAC,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAC,OAAO,CAAC;IAAC,KAAK,CAAC,EAAC,OAAO,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAC,OAAO,CAAC;IAAC,UAAU,CAAC,EAAC,OAAO,CAAC;IAAC,WAAW,CAAC,EAAC,OAAO,CAAC;IAAC,OAAO,CAAC,EAAC,OAAO,EAAE,CAAC;IAAC,OAAO,CAAC,EAAC,OAAO,CAAC;IAAC,OAAO,CAAC,EAAC,OAAO,CAAC;IAAC,KAAK,CAAC,EAAC,OAAO,EAAE,CAAC;IAAC,YAAY,CAAC,EAAC,OAAO,EAAE,CAAC;IAAC,YAAY,CAAC,EAAC,MAAM,CAAC;IAAC,UAAU,CAAC,EAAC,OAAO,CAAC;IAAC,cAAc,CAAC,EAAC,MAAM,CAAA;CAAE;AACpb,MAAM,WAAW,eAAe;IAAG,IAAI,CAAC,EAAC,MAAM,CAAC;IAAC,QAAQ,EAAC,MAAM,CAAC,MAAM,EAAC,cAAc,CAAC,CAAC;IAAC,OAAO,CAAC,EAAC,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAC,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;IAAC,OAAO,CAAC,EAAC,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;IAAC,OAAO,CAAC,EAAC,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,OAAO,CAAA;CAAE;AACpP,MAAM,WAAW,kBAAkB;IAAG,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,eAAe,CAAC;IAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,CAAA;CAAE;AAC/N,MAAM,WAAW,mBAAmB;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE;AACnH,MAAM,WAAW,mBAAmB;IAAG,OAAO,EAAE,eAAe,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,cAAc,CAAC;IAAC,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,CAAC;IAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAC,kBAAkB,CAAC,CAAC;IAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,MAAM,EAAC,gBAAgB,CAAC,CAAC,CAAC;IAAC,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAAC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,CAAC;IAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAAA;CAAE;AAC3Z,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateMaterializedComposeBuildInputs.d.ts","sourceRoot":"","sources":["../../../src/core/composition/validateMaterializedComposeBuildInputs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validateMaterializedComposeBuildInputs.d.ts","sourceRoot":"","sources":["../../../src/core/composition/validateMaterializedComposeBuildInputs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,mFAAmF;AACnF,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,eAAe,EACzB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,SAAS,GAAG,MAAM,GAC9B,IAAI,CAsDN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateMaterializedComposeFiles.d.ts","sourceRoot":"","sources":["../../../src/core/composition/validateMaterializedComposeFiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAClC;AAED,gFAAgF;AAChF,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,eAAe,EACzB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,8BAAmC,GAC3C,IAAI,
|
|
1
|
+
{"version":3,"file":"validateMaterializedComposeFiles.d.ts","sourceRoot":"","sources":["../../../src/core/composition/validateMaterializedComposeFiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAClC;AAED,gFAAgF;AAChF,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,eAAe,EACzB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,8BAAmC,GAC3C,IAAI,CA2BN"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GeneratedComposeNameAllocator } from "./generatedNames.js";
|
|
2
2
|
import type { ComposeDocument, ComposeService } from "./types.js";
|
|
3
|
-
export interface
|
|
4
|
-
|
|
3
|
+
export interface PreparedMainOverride {
|
|
4
|
+
main: ComposeService;
|
|
5
5
|
resources: Pick<ComposeDocument, "volumes" | "networks" | "configs" | "secrets">;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface MainOverrideValidationContext {
|
|
8
8
|
allocator?: GeneratedComposeNameAllocator;
|
|
9
9
|
resourceNamespace?: string;
|
|
10
10
|
file: string;
|
|
@@ -14,5 +14,5 @@ export interface AppOverrideValidationContext {
|
|
|
14
14
|
/** Output directory against which both contexts are interpreted. */
|
|
15
15
|
buildContextBaseDir: string;
|
|
16
16
|
}
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function validateAndPrepareMainOverride(document: ComposeDocument, context: MainOverrideValidationContext): PreparedMainOverride;
|
|
18
18
|
//# sourceMappingURL=validateOverrideCompose.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateOverrideCompose.d.ts","sourceRoot":"","sources":["../../../src/core/composition/validateOverrideCompose.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAQpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAClE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"validateOverrideCompose.d.ts","sourceRoot":"","sources":["../../../src/core/composition/validateOverrideCompose.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAQpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAClE,MAAM,WAAW,oBAAoB;IAAE,IAAI,EAAC,cAAc,CAAC;IAAA,SAAS,EAAC,IAAI,CAAC,eAAe,EAAC,SAAS,GAAC,UAAU,GAAC,SAAS,GAAC,SAAS,CAAC,CAAC;CAAC;AACrI,MAAM,WAAW,6BAA6B;IAC5C,SAAS,CAAC,EAAE,6BAA6B,CAAC;IAC1C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oEAAoE;IACpE,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAUD,wBAAgB,8BAA8B,CAAC,QAAQ,EAAC,eAAe,EAAC,OAAO,EAAC,6BAA6B,GAAE,oBAAoB,CA+ElI"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EffectiveOrdinary, Origin } from "../config/types.js";
|
|
2
|
+
import type { ComposeDocument } from "./types.js";
|
|
3
|
+
export declare function validateServiceCompose(name: string, declaration: EffectiveOrdinary, document: ComposeDocument, context: {
|
|
4
|
+
composePath: string;
|
|
5
|
+
stage: string;
|
|
6
|
+
composition: "service" | "mesh";
|
|
7
|
+
healthRequired: boolean;
|
|
8
|
+
prerequisite: boolean;
|
|
9
|
+
declarationOrigin?: Origin;
|
|
10
|
+
deferHealth?: (representative: string) => void;
|
|
11
|
+
}): string;
|
|
12
|
+
//# sourceMappingURL=validateServiceCompose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateServiceCompose.d.ts","sourceRoot":"","sources":["../../../src/core/composition/validateServiceCompose.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAKpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,wBAAgB,sBAAsB,CAAC,IAAI,EAAC,MAAM,EAAE,WAAW,EAAC,iBAAiB,EAAE,QAAQ,EAAC,eAAe,EAAE,OAAO,EAAC;IAAC,WAAW,EAAC,MAAM,CAAC;IAAA,KAAK,EAAC,MAAM,CAAC;IAAA,WAAW,EAAC,SAAS,GAAC,MAAM,CAAC;IAAA,cAAc,EAAC,OAAO,CAAC;IAAA,YAAY,EAAC,OAAO,CAAC;IAAA,iBAAiB,CAAC,EAAC,MAAM,CAAC;IAAA,WAAW,CAAC,EAAC,CAAC,cAAc,EAAC,MAAM,KAAG,IAAI,CAAA;CAAC,GAAE,MAAM,CAiC3S"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
export declare const BUILDER_IDENTIFIER_PATTERN: RegExp;
|
|
2
2
|
export declare const ENDPOINT_SCHEME_PATTERN: RegExp;
|
|
3
|
-
export declare const DEPENDENCY_REFERENCE_PATTERN: RegExp;
|
|
4
3
|
export declare const ENDPOINT_PROPERTIES: readonly ["network_host", "network_port", "network_address", "network_url", "public_host", "public_port", "public_address", "public_url"];
|
|
5
4
|
export declare const PUBLIC_ENDPOINT_PROPERTIES: Set<string>;
|
|
6
5
|
export declare const NETWORK_ENDPOINT_PROPERTIES: Set<string>;
|
|
7
6
|
export declare const URL_ENDPOINT_PROPERTIES: Set<string>;
|
|
8
|
-
export declare const RESERVED_MESH_SERVICE_NAMES: Set<string>;
|
|
9
7
|
export declare const PUBLIC_HOST = "127.0.0.1";
|
|
10
|
-
export declare const AUTO_PORT_CACHE_VERSION =
|
|
11
|
-
export declare const AUTO_PORT_CACHE_RELATIVE_PATH = ".builder/ports-
|
|
8
|
+
export declare const AUTO_PORT_CACHE_VERSION = 3;
|
|
9
|
+
export declare const AUTO_PORT_CACHE_RELATIVE_PATH = ".builder/ports-v3.json";
|
|
12
10
|
export declare const AUTO_PORT_SCAN_START = 20000;
|
|
13
11
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/config/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,QAAsB,CAAC;AAC9D,eAAO,MAAM,uBAAuB,QAA8B,CAAC;AACnE,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/config/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,QAAsB,CAAC;AAC9D,eAAO,MAAM,uBAAuB,QAA8B,CAAC;AACnE,eAAO,MAAM,mBAAmB,YAAI,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,CAAU,CAAC;AAC7K,eAAO,MAAM,0BAA0B,aAA0E,CAAC;AAClH,eAAO,MAAM,2BAA2B,aAA8E,CAAC;AACvH,eAAO,MAAM,uBAAuB,aAAyC,CAAC;AAC9E,eAAO,MAAM,WAAW,cAAc,CAAC;AACvC,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,6BAA6B,2BAA2B,CAAC;AACtE,eAAO,MAAM,oBAAoB,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MainEndpoint } from "../../types/index.js";
|
|
2
2
|
import type { EndpointProperty, ResolvedEndpoint } from "./types.js";
|
|
3
3
|
export interface EndpointPropertyContext {
|
|
4
4
|
sourceFile: string;
|
|
@@ -15,5 +15,5 @@ export declare function assertPrimaryEndpointInvariant(endpoints: Record<string,
|
|
|
15
15
|
configPath: string;
|
|
16
16
|
stage: string;
|
|
17
17
|
}): void;
|
|
18
|
-
export declare function getPrimaryEndpoint<T extends
|
|
18
|
+
export declare function getPrimaryEndpoint<T extends MainEndpoint>(endpoints: Record<string, T>): [name: string, endpoint: T] | undefined;
|
|
19
19
|
//# sourceMappingURL=endpointProperties.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpointProperties.d.ts","sourceRoot":"","sources":["../../../src/core/config/endpointProperties.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"endpointProperties.d.ts","sourceRoot":"","sources":["../../../src/core/config/endpointProperties.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACrE,MAAM,WAAW,uBAAuB;IAAG,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAAE;AAC/J,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,uBAAuB,GAAG,MAAM,CAKxI;AACD,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,OAAO,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAEzK;AACD,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,SAAS,CAAwF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Environment, ExecutionMode, InfraMode } from "../../types/index.js";
|
|
2
|
+
export interface ExecutionProfile {
|
|
3
|
+
configStage: Environment;
|
|
4
|
+
envStage: Environment;
|
|
5
|
+
mainTarget: ExecutionMode;
|
|
6
|
+
execMode: ExecutionMode;
|
|
7
|
+
infraMode: InfraMode;
|
|
8
|
+
attachTester: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function executionProfile(stage: Environment, composition: "service" | "mesh", full?: boolean): ExecutionProfile;
|
|
11
|
+
//# sourceMappingURL=executionProfile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executionProfile.d.ts","sourceRoot":"","sources":["../../../src/core/config/executionProfile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAClF,MAAM,WAAW,gBAAgB;IAAG,WAAW,EAAE,WAAW,CAAC;IAAC,QAAQ,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,aAAa,CAAC;IAAC,SAAS,EAAE,SAAS,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE;AACtL,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,GAAC,MAAM,EAAE,IAAI,UAAQ,GAAG,gBAAgB,CAKlH"}
|
|
@@ -10,5 +10,11 @@ export interface HostPortDiagnosticContext {
|
|
|
10
10
|
sourceFile: string;
|
|
11
11
|
composition: "service" | "mesh";
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export interface HostPortAdapters {
|
|
14
|
+
probe?: (port: number) => boolean;
|
|
15
|
+
candidatePorts?: readonly number[];
|
|
16
|
+
}
|
|
17
|
+
export declare function allocateHostPorts(projectDir: string, stage: string, intentsInDeterministicOrder: readonly PortIntent[], validationMode?: boolean, context?: HostPortDiagnosticContext, adapters?: HostPortAdapters): Map<string, number>;
|
|
18
|
+
export declare function persistHostPortAllocations(projectDir: string, allocations: ReadonlyMap<string, number>): void;
|
|
19
|
+
export declare function removeHostPortAllocations(projectDir: string, keys: readonly string[]): void;
|
|
14
20
|
//# sourceMappingURL=hostPorts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostPorts.d.ts","sourceRoot":"","sources":["../../../src/core/config/hostPorts.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,UAAU;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAAE;AAChF,MAAM,WAAW,aAAa;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;CAAE;AACrE,MAAM,WAAW,yBAAyB;IAAG,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC;CAAE;
|
|
1
|
+
{"version":3,"file":"hostPorts.d.ts","sourceRoot":"","sources":["../../../src/core/config/hostPorts.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,UAAU;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAAE;AAChF,MAAM,WAAW,aAAa;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;CAAE;AACrE,MAAM,WAAW,yBAAyB;IAAG,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC;CAAE;AACnG,MAAM,WAAW,gBAAgB;IAAG,KAAK,CAAC,EAAE,CAAC,IAAI,EAAC,MAAM,KAAG,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAAE;AAKzG,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,2BAA2B,EAAE,SAAS,UAAU,EAAE,EAAE,cAAc,UAAQ,EAAE,OAAO,CAAC,EAAE,yBAAyB,EAAE,QAAQ,GAAC,gBAAmB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAsBvO;AACD,wBAAgB,0BAA0B,CAAC,UAAU,EAAC,MAAM,EAAC,WAAW,EAAC,WAAW,CAAC,MAAM,EAAC,MAAM,CAAC,GAAE,IAAI,CASxG;AACD,wBAAgB,yBAAyB,CAAC,UAAU,EAAC,MAAM,EAAC,IAAI,EAAC,SAAS,MAAM,EAAE,GAAE,IAAI,CAWvF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PublicPort } from "../../types/index.js";
|
|
2
|
+
import type { EffectiveGraph, NodeId, Origin } from "./types.js";
|
|
3
|
+
export interface PublicationIntent {
|
|
4
|
+
nodeId: NodeId;
|
|
5
|
+
endpoint: string;
|
|
6
|
+
requestedPort: PublicPort;
|
|
7
|
+
origin: Origin;
|
|
8
|
+
logicalPath: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function resolvePublicationIntent(graph: EffectiveGraph, stage: string, composition: "service" | "mesh", publish?: Map<string, string[]>, meshSourceFile?: string, publishOrigins?: Map<string, Origin>): PublicationIntent[];
|
|
11
|
+
//# sourceMappingURL=publication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publication.d.ts","sourceRoot":"","sources":["../../../src/core/config/publication.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEjE,MAAM,WAAW,iBAAiB;IAAG,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE;AACvI,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,GAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,EAAC,MAAM,EAAE,CAAC,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,GAAG,iBAAiB,EAAE,CAiC/N"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { EndpointProperty } from "./types.js";
|
|
2
|
-
export type ReferenceScope = "build" | "mesh";
|
|
3
|
-
export interface ReferenceDiagnosticContext {
|
|
4
|
-
sourceFile: string;
|
|
5
|
-
configPath: string;
|
|
6
|
-
stage: string;
|
|
7
|
-
composition: "service" | "mesh";
|
|
8
|
-
}
|
|
1
|
+
import type { EffectiveGraph, EndpointProperty, NodeId, Origin, ResolvedEndpoint } from "./types.js";
|
|
9
2
|
export interface ParsedBuilderReference {
|
|
10
3
|
raw: string;
|
|
11
|
-
|
|
12
|
-
meshService?: string;
|
|
13
|
-
target: "app" | "dependency";
|
|
14
|
-
dependency?: string;
|
|
4
|
+
target: NodeId;
|
|
15
5
|
endpoint: string;
|
|
16
6
|
property: EndpointProperty;
|
|
7
|
+
origin: Origin;
|
|
8
|
+
}
|
|
9
|
+
export interface ReferenceContext {
|
|
10
|
+
graph: EffectiveGraph;
|
|
11
|
+
endpoints: Map<NodeId, Record<string, ResolvedEndpoint>>;
|
|
12
|
+
consumer?: NodeId;
|
|
13
|
+
origin: Origin;
|
|
14
|
+
stage: string;
|
|
15
|
+
composition: "service" | "mesh";
|
|
17
16
|
}
|
|
18
|
-
export declare function
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
17
|
+
export declare function parseBuilderReference(raw: string, context: ReferenceContext): ParsedBuilderReference;
|
|
18
|
+
export declare function resolveBuilderReference(ref: ParsedBuilderReference, context: ReferenceContext): string;
|
|
19
|
+
export declare function interpolateBuilderReferences(value: string, context: ReferenceContext): string;
|
|
20
|
+
export declare function collectBuilderReferences(value: string, context: ReferenceContext): ParsedBuilderReference[];
|
|
21
21
|
//# sourceMappingURL=references.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../../src/core/config/references.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../../src/core/config/references.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAErG,MAAM,WAAW,sBAAsB;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AACrI,MAAM,WAAW,gBAAgB;IAAG,KAAK,EAAE,cAAc,CAAC;IAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,MAAM,EAAC,gBAAgB,CAAC,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,SAAS,GAAC,MAAM,CAAA;CAAE;AAKpM,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,sBAAsB,CASpG;AACD,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,sBAAsB,EAAE,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAMtG;AACD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAK7F;AACD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,sBAAsB,EAAE,CAG3G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBuildStage.d.ts","sourceRoot":"","sources":["../../../src/core/config/resolveBuildStage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveBuildStage.d.ts","sourceRoot":"","sources":["../../../src/core/config/resolveBuildStage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAA+C,MAAM,sBAAsB,CAAC;AAGhH,OAAO,KAAK,EAAE,oBAAoB,EAA4B,MAAM,YAAY,CAAC;AAIjF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,GAAG,oBAAoB,CA2DhH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EffectiveMeshConfig } from "./types.js";
|
|
2
1
|
import type { MeshConfig, MeshConfigStage } from "../mesh/types.js";
|
|
2
|
+
import type { EffectiveMeshConfig } from "./types.js";
|
|
3
3
|
export declare function resolveMeshStage(mesh: MeshConfig, stage: MeshConfigStage, sourceFile: string): EffectiveMeshConfig;
|
|
4
4
|
//# sourceMappingURL=resolveMeshStage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveMeshStage.d.ts","sourceRoot":"","sources":["../../../src/core/config/resolveMeshStage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveMeshStage.d.ts","sourceRoot":"","sources":["../../../src/core/config/resolveMeshStage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAwC,MAAM,kBAAkB,CAAC;AAI1G,OAAO,KAAK,EAAE,mBAAmB,EAA+B,MAAM,YAAY,CAAC;AAEnF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,GAAG,mBAAmB,CA6BlH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DeclaredGraph, Edge, EffectiveComposition, EffectiveGraph, NodeId } from "./types.js";
|
|
2
|
+
export interface GraphProfile {
|
|
3
|
+
infraMode: "isolated" | "integrated";
|
|
4
|
+
stage: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function buildDeclaredGraph(input: EffectiveComposition): DeclaredGraph;
|
|
7
|
+
export declare function computeClosure(start: NodeId, adjacency: ReadonlyMap<NodeId, readonly Edge[]>): Set<NodeId>;
|
|
8
|
+
export declare function selectReachableGraph(declared: DeclaredGraph, profile: GraphProfile): EffectiveGraph;
|
|
9
|
+
export declare function validateGraphLifecycle(graph: EffectiveGraph, stage?: string): void;
|
|
10
|
+
//# sourceMappingURL=serviceGraph.d.ts.map
|