@prisma/composer 0.36.0 → 0.37.0-dev.1
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/{app-config-DNnd7Zu--BQ1vHaMK.d.mts → app-config-Bf_y5R7o-BEZAnKqM.d.mts} +46 -6
- package/dist/app-config-Bf_y5R7o-BEZAnKqM.d.mts.map +1 -0
- package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs +221 -0
- package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs.map +1 -0
- package/dist/arktype.d.mts +20 -6
- package/dist/arktype.d.mts.map +1 -1
- package/dist/arktype.mjs +45 -6
- package/dist/arktype.mjs.map +1 -1
- package/dist/config-CDkq5Ayl.d.mts +1 -0
- package/dist/config-adapters-DG-uhGfv-Bt1M9f8b.mjs +47 -0
- package/dist/config-adapters-DG-uhGfv-Bt1M9f8b.mjs.map +1 -0
- package/dist/config.d.mts +16 -3
- package/dist/config.d.mts.map +1 -0
- package/dist/config.mjs +2 -1
- package/dist/control.d.mts +6 -174
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +4 -4
- package/dist/control.mjs.map +1 -1
- package/dist/deploy-CmiYExQA.mjs +373 -0
- package/dist/deploy-CmiYExQA.mjs.map +1 -0
- package/dist/deploy-DQyaIoNe.d.mts +2 -0
- package/dist/deploy.d.mts +4 -3
- package/dist/deploy.mjs +3 -364
- package/dist/{deployment-summary-CDHdLtnO-DrE7GsHq.mjs → deployment-summary-BiBkPWlB-CyC2pudN.mjs} +10 -23
- package/dist/deployment-summary-BiBkPWlB-CyC2pudN.mjs.map +1 -0
- package/dist/{deployment-summary-p88NV5m5-SaPCCX2C.d.mts → deployment-summary-p88NV5m5-BJOosgmI.d.mts} +3 -3
- package/dist/{deployment-summary-p88NV5m5-SaPCCX2C.d.mts.map → deployment-summary-p88NV5m5-BJOosgmI.d.mts.map} +1 -1
- package/dist/{secret-DoWGmN7m-DO5Brq1Y.mjs → describe-kind-Cpm_euxo-CkhlGJUL.mjs} +29 -2
- package/dist/describe-kind-Cpm_euxo-CkhlGJUL.mjs.map +1 -0
- package/dist/{dev-current-Brb4qugP-CG0_96FZ.mjs → dev-current-D0Kn6Mf4-DDWYu-3j.mjs} +5 -5
- package/dist/{dev-current-Brb4qugP-CG0_96FZ.mjs.map → dev-current-D0Kn6Mf4-DDWYu-3j.mjs.map} +1 -1
- package/dist/{dev-environment-name-6eEr5PW8-CGk1ijP7.mjs → dev-environment-name-6eEr5PW8-BwusWVKi.mjs} +3 -3
- package/dist/{dev-environment-name-6eEr5PW8-CGk1ijP7.mjs.map → dev-environment-name-6eEr5PW8-BwusWVKi.mjs.map} +1 -1
- package/dist/{dist-DiYPSVUE.mjs → dist-BtzrklYG.mjs} +2 -2
- package/dist/{dist-DiYPSVUE.mjs.map → dist-BtzrklYG.mjs.map} +1 -1
- package/dist/{dist-CZ_yEZ7F.mjs → dist-C7SnNTD3.mjs} +11 -4
- package/dist/dist-C7SnNTD3.mjs.map +1 -0
- package/dist/errors-0e8IVwzi.mjs.map +1 -1
- package/dist/{execute-deploy-destroy-CNt-xpE7-CYaa3sYk.mjs → execute-deploy-destroy-Dh1CQ9X6-DY4c9egd.mjs} +60 -29
- package/dist/execute-deploy-destroy-Dh1CQ9X6-DY4c9egd.mjs.map +1 -0
- package/dist/{execute-dev-BUk-XWBJ-ZHX5A8cR.mjs → execute-dev-Bl-5Q-Av-DILne6iY.mjs} +99 -44
- package/dist/execute-dev-Bl-5Q-Av-DILne6iY.mjs.map +1 -0
- package/dist/{execute-dev-current-BdEqeKAB-BLUs2eQv.mjs → execute-dev-current-D3USgHJ4-CNQe5ADb.mjs} +6 -6
- package/dist/{execute-dev-current-BdEqeKAB-BLUs2eQv.mjs.map → execute-dev-current-D3USgHJ4-CNQe5ADb.mjs.map} +1 -1
- package/dist/{execute-log-aiHhujIh-C_aXmb6j.mjs → execute-log-Dm3DkQQP-BSjoy6Wd.mjs} +6 -6
- package/dist/{execute-log-aiHhujIh-C_aXmb6j.mjs.map → execute-log-Dm3DkQQP-BSjoy6Wd.mjs.map} +1 -1
- package/dist/{graph-MGOZJdDt-CyI8-9r7.mjs → graph-Bqr7PSGl-BM-M-TlO.mjs} +637 -199
- package/dist/graph-Bqr7PSGl-BM-M-TlO.mjs.map +1 -0
- package/dist/{graph-BzTSXnoQ-BvGVq0bm.d.mts → graph-DI1v3WKX-3g1lTRbh.d.mts} +8 -4
- package/dist/graph-DI1v3WKX-3g1lTRbh.d.mts.map +1 -0
- package/dist/{graph-types-DfsG9Rkg-D_ARjMo7.d.mts → graph-types-DRe9UUOp-C85Yr-sJ.d.mts} +253 -120
- package/dist/graph-types-DRe9UUOp-C85Yr-sJ.d.mts.map +1 -0
- package/dist/http.d.mts +2 -2
- package/dist/http.mjs +2 -2
- package/dist/{index-D89ftK2z.d.mts → index-DWQ6BSgm.d.mts} +3 -3
- package/dist/index-DWQ6BSgm.d.mts.map +1 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +4 -4
- package/dist/internal-app-configuration-file.d.mts +19 -0
- package/dist/internal-app-configuration-file.d.mts.map +1 -0
- package/dist/internal-app-configuration-file.mjs +2 -0
- package/dist/{local-target-DySKw61w.mjs → local-target-Dd8FJEb5.mjs} +5 -3
- package/dist/{local-target-DySKw61w.mjs.map → local-target-Dd8FJEb5.mjs.map} +1 -1
- package/dist/local-target.d.mts +2 -2
- package/dist/local-target.d.mts.map +1 -1
- package/dist/local-target.mjs +1 -1
- package/dist/{nextjs-DLyeRR7M-BeiYsLuZ.d.mts → nextjs-DLyeRR7M-RtoHcY1c.d.mts} +3 -3
- package/dist/{nextjs-DLyeRR7M-BeiYsLuZ.d.mts.map → nextjs-DLyeRR7M-RtoHcY1c.d.mts.map} +1 -1
- package/dist/nextjs-control.d.mts +4 -4
- package/dist/nextjs-control.mjs +2 -2
- package/dist/nextjs.d.mts +1 -1
- package/dist/node-control.d.mts +3 -3
- package/dist/node-control.mjs +2 -2
- package/dist/node.d.mts +2 -2
- package/dist/pointer-CyQZZugO-D7k3vibs.d.mts +42 -0
- package/dist/pointer-CyQZZugO-D7k3vibs.d.mts.map +1 -0
- package/dist/redaction-Bf8FvTFH-BTsKD9B5.d.mts +183 -0
- package/dist/redaction-Bf8FvTFH-BTsKD9B5.d.mts.map +1 -0
- package/dist/redaction-HnbkSFrK-BXRZ3B33.mjs +295 -0
- package/dist/redaction-HnbkSFrK-BXRZ3B33.mjs.map +1 -0
- package/dist/report.d.mts +3 -3
- package/dist/report.mjs +1 -1
- package/dist/report.mjs.map +1 -1
- package/dist/{run-alchemy-Dl_MWw4g-BZaLckHp.mjs → run-alchemy-OS_ix5g0-DCvUYZ7T.mjs} +30 -12
- package/dist/run-alchemy-OS_ix5g0-DCvUYZ7T.mjs.map +1 -0
- package/dist/{run-report-CmBz2-xc-S50d4g5V.mjs → run-report-CmBz2-xc-Cc8rV1CX.mjs} +2 -2
- package/dist/{run-report-CmBz2-xc-S50d4g5V.mjs.map → run-report-CmBz2-xc-Cc8rV1CX.mjs.map} +1 -1
- package/dist/service-rpc.d.mts +2 -2
- package/dist/service-rpc.mjs +2 -2
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.mts.map +1 -1
- package/dist/{validate-environment-CEhUSEg2-DmAtiQhe.mjs → validate-environment-D_dECxgO-B-gqpVEf.mjs} +113 -13
- package/dist/validate-environment-D_dECxgO-B-gqpVEf.mjs.map +1 -0
- package/dist/zod.d.mts +30 -0
- package/dist/zod.d.mts.map +1 -0
- package/dist/zod.mjs +39 -0
- package/dist/zod.mjs.map +1 -0
- package/package.json +31 -18
- package/skills/prisma-composer-core-concepts/SKILL.md +49 -23
- package/src/exports/config.ts +1 -0
- package/src/exports/internal-app-configuration-file.ts +1 -0
- package/src/exports/zod.ts +1 -0
- package/dist/app-config-DNnd7Zu--BQ1vHaMK.d.mts.map +0 -1
- package/dist/config-RKyUvtGC.d.mts +0 -1
- package/dist/deploy-RKyUvtGC.d.mts +0 -1
- package/dist/deploy.mjs.map +0 -1
- package/dist/deployment-summary-CDHdLtnO-DrE7GsHq.mjs.map +0 -1
- package/dist/dist-CZ_yEZ7F.mjs.map +0 -1
- package/dist/execute-deploy-destroy-CNt-xpE7-CYaa3sYk.mjs.map +0 -1
- package/dist/execute-dev-BUk-XWBJ-ZHX5A8cR.mjs.map +0 -1
- package/dist/graph-BzTSXnoQ-BvGVq0bm.d.mts.map +0 -1
- package/dist/graph-MGOZJdDt-CyI8-9r7.mjs.map +0 -1
- package/dist/graph-types-DfsG9Rkg-D_ARjMo7.d.mts.map +0 -1
- package/dist/index-D89ftK2z.d.mts.map +0 -1
- package/dist/run-alchemy-Dl_MWw4g-BZaLckHp.mjs.map +0 -1
- package/dist/secret-CHOw4LBU-C8yXoC9N.d.mts +0 -25
- package/dist/secret-CHOw4LBU-C8yXoC9N.d.mts.map +0 -1
- package/dist/secret-DoWGmN7m-DO5Brq1Y.mjs.map +0 -1
- package/dist/validate-environment-CEhUSEg2-DmAtiQhe.mjs.map +0 -1
package/dist/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as dependency } from "./graph-
|
|
2
|
-
import {
|
|
1
|
+
import { o as dependency } from "./graph-Bqr7PSGl-BM-M-TlO.mjs";
|
|
2
|
+
import { l as string } from "./dist-C7SnNTD3.mjs";
|
|
3
3
|
//#region ../../0-framework/2-authoring/http/dist/index.mjs
|
|
4
4
|
/**
|
|
5
5
|
* A port that answers HTTP. It promises nothing about routes, methods or
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./graph-
|
|
1
|
+
import { a as Config, b as HydratedDeps, it as ServiceNode, p as Deps } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
2
|
+
import "./graph-DI1v3WKX-3g1lTRbh.mjs";
|
|
3
3
|
//#region ../../0-framework/1-core/core/dist/index.d.mts
|
|
4
4
|
//#region src/hydrate.d.ts
|
|
5
5
|
/**
|
|
@@ -19,4 +19,4 @@ declare function hydrate(root: ServiceNode, config: Config): Promise<HydratedDep
|
|
|
19
19
|
declare function hydrateSync(root: ServiceNode, config: Config): HydratedDeps<Deps>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { hydrateSync as n, hydrate as t };
|
|
22
|
-
//# sourceMappingURL=index-
|
|
22
|
+
//# sourceMappingURL=index-DWQ6BSgm.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DWQ6BSgm.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/index.d.mts"],"mappings":";;;;;;;;;;;iBAYiB,QAAQ,MAAM,aAAa,QAAQ,SAAS,QAAQ,aAAa;;;;;;;iBAOjE,YAAY,MAAM,aAAa,QAAQ,SAAS,aAAa"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
3
|
-
import { n as assertAppName, t as Load } from "./graph-
|
|
4
|
-
import { n as hydrateSync, t as hydrate } from "./index-
|
|
5
|
-
export { type AuthoredEdge, type BoundaryPort, type BuildAdapter, type Config, type ConfigDeclaration, type ConfigParam, type Connection, type Contract, type ContractStyle, type DepBindings, type DependencyEnd, type Deps, type Edge, type EnvironmentFacts, type Expose, type Graph, type GraphNode, type Hydrated, type HydratedDeps, type InputBinding, type InputRef, type InputValueOf, Load, LoadError, type LoadOptions, type ModuleBuilder, type ModuleContext, type ModuleNode, type ModuleOutputs, type NODE, type NodeId, type ParamBinding, type ParamBindings, type
|
|
1
|
+
import { a as SecretString, i as SecretBox, n as isPlainPointer, o as isSecretString, r as isSecretPointer, t as Pointer } from "./pointer-CyQZZugO-D7k3vibs.mjs";
|
|
2
|
+
import { $ as RunnableServiceNode, A as ModuleInput, B as Params, C as InputBindingUse, Ct as resolve, D as LoadOptions, Dt as service, E as LoadError, Et as secretSourceManifest, F as NodeId, G as RESOURCE_OUT_PORT, H as PortEndpoint, I as ParamBinding, J as ResourceNode, K as RealValuesOf, L as ParamBindings, M as ModuleNode, N as ModuleOutputs, O as ModuleBuilder, Ot as slotsOf, P as NODE, Q as RootInputField, R as ParamSource, S as InputBindingOf, St as provisionNeed, T as InputValueOf, Tt as secretSource, U as ProvisionNeed, V as PlainData, W as ProvisionedRef, X as ResourceProps, Y as ResourceNodeBase, Z as ResourcePropsMember, _ as Graph, _t as module, a as Config, at as SourceOptions, b as HydratedDeps, bt as paramManifest, c as Connection, ct as configOf, d as DepBindings, dt as inputManifest, et as RuntimeValue, f as DependencyEnd, ft as isNode, g as Expose, gt as isValue, h as EnvironmentFacts, ht as isSecretSource, i as BuildAdapter, it as ServiceNode, j as ModuleInputField, k as ModuleContext, kt as string, l as Contract, lt as dependency, m as Edge, mt as isProvisionNeed, n as AuthoredEdge, nt as SecretSourceOptions, o as ConfigDeclaration, ot as Value, p as Deps, pt as isParamSource, q as RefPort, r as BoundaryPort, rt as SecretSourceUse, s as ConfigParam, st as Values, t as AppConfigurationRead, tt as SecretSource, u as ContractStyle, ut as freezeNode, v as GraphNode, vt as number, w as InputRef, wt as resource, x as InputBinding, xt as paramSource, y as Hydrated, yt as param, z as ParamSourceOptions } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
3
|
+
import { n as assertAppName, t as Load } from "./graph-DI1v3WKX-3g1lTRbh.mjs";
|
|
4
|
+
import { n as hydrateSync, t as hydrate } from "./index-DWQ6BSgm.mjs";
|
|
5
|
+
export { type AppConfigurationRead, type AuthoredEdge, type BoundaryPort, type BuildAdapter, type Config, type ConfigDeclaration, type ConfigParam, type Connection, type Contract, type ContractStyle, type DepBindings, type DependencyEnd, type Deps, type Edge, type EnvironmentFacts, type Expose, type Graph, type GraphNode, type Hydrated, type HydratedDeps, type InputBinding, type InputBindingOf, type InputBindingUse, type InputRef, type InputValueOf, Load, LoadError, type LoadOptions, type ModuleBuilder, type ModuleContext, type ModuleInput, type ModuleInputField, type ModuleNode, type ModuleOutputs, type NODE, type NodeId, type ParamBinding, type ParamBindings, type ParamSource, type ParamSourceOptions, type Params, type PlainData, type Pointer, type PortEndpoint, type ProvisionNeed, type ProvisionedRef, RESOURCE_OUT_PORT, type RealValuesOf, type RefPort, type ResourceNode, ResourceNodeBase, type ResourceProps, type ResourcePropsMember, type RootInputField, type RunnableServiceNode, type RuntimeValue, SecretBox, type SecretSource, type SecretSourceOptions, type SecretSourceUse, type SecretString, type ServiceNode, type SourceOptions, type Value, type Values, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isPlainPointer, isProvisionNeed, isSecretPointer, isSecretSource, isSecretString, isValue, module, number, param, paramManifest, paramSource, provisionNeed, resolve, resource, secretSource, secretSourceManifest, service, slotsOf, string };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
import { a as number, c as
|
|
4
|
-
export { Load, LoadError, RESOURCE_OUT_PORT, ResourceNodeBase, SecretBox, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isProvisionNeed, isSecretSource, isSecretString, isValue, module, number, param, paramManifest,
|
|
1
|
+
import { a as isPlainPointer, n as SecretBox, o as isSecretPointer, r as isSecretString } from "./describe-kind-Cpm_euxo-CkhlGJUL.mjs";
|
|
2
|
+
import { S as slotsOf, _ as resolve, a as assertAppName, c as isNode, d as isSecretSource, f as isValue, g as provisionNeed, h as paramSource, i as ResourceNodeBase, l as isParamSource, n as LoadError, o as dependency, p as module, r as RESOURCE_OUT_PORT, s as freezeNode, t as Load, u as isProvisionNeed, v as resource, x as service, y as secretSource } from "./graph-Bqr7PSGl-BM-M-TlO.mjs";
|
|
3
|
+
import { a as number, c as secretSourceManifest, i as inputManifest, l as string, n as hydrate, o as param, r as hydrateSync, s as paramManifest, t as configOf } from "./dist-C7SnNTD3.mjs";
|
|
4
|
+
export { Load, LoadError, RESOURCE_OUT_PORT, ResourceNodeBase, SecretBox, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isPlainPointer, isProvisionNeed, isSecretPointer, isSecretSource, isSecretString, isValue, module, number, param, paramManifest, paramSource, provisionNeed, resolve, resource, secretSource, secretSourceManifest, service, slotsOf, string };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as AppConfigurationRead } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
2
|
+
import { L as NamedSecrets } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
|
|
3
|
+
import "./config-CDkq5Ayl.mjs";
|
|
4
|
+
import "./index-DWQ6BSgm.mjs";
|
|
5
|
+
import "./redaction-Bf8FvTFH-BTsKD9B5.mjs";
|
|
6
|
+
//#region ../../0-framework/3-tooling/cli/dist/app-configuration-file-ptkFLQ7p.d.mts
|
|
7
|
+
//#region src/app-configuration-file.d.ts
|
|
8
|
+
/** What the app configuration file holds: what the first process's Load read from the app configuration, and the node addresses of the graph it built. */
|
|
9
|
+
interface AppConfigurationFile {
|
|
10
|
+
readonly appConfigurationRead: AppConfigurationRead;
|
|
11
|
+
readonly nodeAddresses: readonly string[];
|
|
12
|
+
}
|
|
13
|
+
/** Second process: the app configuration file the first process named in its environment. */
|
|
14
|
+
declare function readAppConfigurationFile(env: Readonly<Record<string, string | undefined>>): AppConfigurationFile;
|
|
15
|
+
/** Second process, under `prisma dev`: the named secrets the first process handed it. */
|
|
16
|
+
declare function namedSecretsFromEnvironment(env: Readonly<Record<string, string | undefined>>): NamedSecrets;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { namedSecretsFromEnvironment, readAppConfigurationFile };
|
|
19
|
+
//# sourceMappingURL=internal-app-configuration-file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-app-configuration-file.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/app-configuration-file-ptkFLQ7p.d.mts"],"mappings":";;;;;;;;UAKU;WACC,sBAAsB;WACtB;;;iBA8BM,yBAAyB,KAAK,SAAS,sCAAsC;;iBAE7E,4BAA4B,KAAK,SAAS,sCAAsC"}
|
|
@@ -35,10 +35,12 @@ async function resolveLocalTargets(config) {
|
|
|
35
35
|
* `localTarget` thunk). The generated dev stack module is this
|
|
36
36
|
* aggregator's one caller, passing the result as `LowerOptions.providers`.
|
|
37
37
|
*/
|
|
38
|
-
function localTargetProviders(resolved, containers, devDir) {
|
|
38
|
+
function localTargetProviders(resolved, containers, devDir, configurationKeyText, namedSecrets) {
|
|
39
39
|
const [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({
|
|
40
40
|
container: containers.get(id),
|
|
41
|
-
devDir
|
|
41
|
+
devDir,
|
|
42
|
+
configurationKeyText,
|
|
43
|
+
namedSecrets
|
|
42
44
|
}));
|
|
43
45
|
return first === void 0 ? Layer.empty : Layer.mergeAll(first, ...rest);
|
|
44
46
|
}
|
|
@@ -49,4 +51,4 @@ function devState() {
|
|
|
49
51
|
//#endregion
|
|
50
52
|
export { localTargetProviders as n, resolveLocalTargets as r, devState as t };
|
|
51
53
|
|
|
52
|
-
//# sourceMappingURL=local-target-
|
|
54
|
+
//# sourceMappingURL=local-target-Dd8FJEb5.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-target-
|
|
1
|
+
{"version":3,"file":"local-target-Dd8FJEb5.mjs","names":[],"sources":["../../../0-framework/1-core/core/dist/local-target.mjs"],"sourcesContent":["import { a as isBuildOnlyExtension, i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, t as DEV_DIR } from \"./app-config-CErnR6NK.mjs\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport * as Layer from \"effect/Layer\";\nimport { localState } from \"alchemy/State/LocalState\";\n//#region src/control/local-target.ts\n/** The local-target stack's own provider aggregation (ADR-0041; naming, operator 2026-07-23 — the seam is `localTarget`, \"dev\" names the user-facing feature only) — the local-target counterpart of `deploy.ts`'s `mergedProviders`, kept in its own module so `lower()` learns nothing about it (deploy.ts's REVISED — operator review of #162). */\nfunction noLocalTargetSupportError(id) {\n\treturn new CliStructuredError(\"DEV.TARGET_UNSUPPORTED\", `extension \"${id}\" has no dev support — it declares no \\`localTarget\\` descriptor (ADR-0041).`);\n}\n/**\n* Resolves every non-build-only configured extension's lazy `localTarget`\n* thunk, once (ADR-0041's lazy local-target reference — operator directive:\n* the production control entry carries only the thunk, never the\n* descriptor, so resolving it is this module's job, not something a deploy\n* path ever does). A build-only extension (`isBuildOnlyExtension`) owns no\n* resources or services and is skipped entirely — never even checked for a\n* `localTarget` thunk. Every other configured extension must be\n* local-target-capable, or the dev command cannot bring the app up at all,\n* so a missing thunk throws naming the extension. The generated dev stack\n* module calls this once and threads the resolved map through every\n* subsequent hook, including `localTargetProviders`.\n*/\nasync function resolveLocalTargets(config) {\n\tconst entries = await Promise.all(config.extensions.flatMap((extension) => {\n\t\tif (isBuildOnlyExtension(extension)) return [];\n\t\tif (extension.localTarget === void 0) throw noLocalTargetSupportError(extension.id);\n\t\treturn [extension.localTarget().then((descriptor) => [extension.id, descriptor])];\n\t}));\n\treturn new Map(entries);\n}\n/**\n* All configured extensions' local-target providers merged, config array\n* order (ADR-0041), from the ALREADY-RESOLVED descriptor map\n* (`resolveLocalTargets`'s product — this function itself never touches a\n* `localTarget` thunk). The generated dev stack module is this\n* aggregator's one caller, passing the result as `LowerOptions.providers`.\n*/\nfunction localTargetProviders(resolved, containers, devDir, configurationKeyText, namedSecrets) {\n\tconst [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({\n\t\tcontainer: containers.get(id),\n\t\tdevDir,\n\t\tconfigurationKeyText,\n\t\tnamedSecrets\n\t}));\n\treturn first === void 0 ? Layer.empty : Layer.mergeAll(first, ...rest);\n}\n/** The state store `prisma dev` converges against: Alchemy's file store in the app's working directory. */\nfunction devState() {\n\treturn localState();\n}\n//#endregion\nexport { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets };\n\n//# sourceMappingURL=local-target.mjs.map"],"mappings":";;;;;;AAMA,SAAS,0BAA0B,IAAI;CACtC,OAAO,IAAI,mBAAmB,0BAA0B,cAAc,GAAG,6EAA6E;AACvJ;;;;;;;;;;;;;;AAcA,eAAe,oBAAoB,QAAQ;CAC1C,MAAM,UAAU,MAAM,QAAQ,IAAI,OAAO,WAAW,SAAS,cAAc;EAC1E,IAAI,qBAAqB,SAAS,GAAG,OAAO,CAAC;EAC7C,IAAI,UAAU,gBAAgB,KAAK,GAAG,MAAM,0BAA0B,UAAU,EAAE;EAClF,OAAO,CAAC,UAAU,YAAY,CAAC,CAAC,MAAM,eAAe,CAAC,UAAU,IAAI,UAAU,CAAC,CAAC;CACjF,CAAC,CAAC;CACF,OAAO,IAAI,IAAI,OAAO;AACvB;;;;;;;;AAQA,SAAS,qBAAqB,UAAU,YAAY,QAAQ,sBAAsB,cAAc;CAC/F,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC,GAAG,SAAS,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,gBAAgB,WAAW,UAAU;EAC/F,WAAW,WAAW,IAAI,EAAE;EAC5B;EACA;EACA;CACD,CAAC,CAAC;CACF,OAAO,UAAU,KAAK,IAAI,MAAM,QAAQ,MAAM,SAAS,OAAO,GAAG,IAAI;AACtE;;AAEA,SAAS,WAAW;CACnB,OAAO,WAAW;AACnB"}
|
package/dist/local-target.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as LocalTargetProvidersInput, C as LocalNodeStopped, D as LocalTargetCurrentInput, E as LocalTargetCurrentApp, L as NamedSecrets, O as LocalTargetDescriptor, S as LocalNodeLocation, T as LocalTargetAttachment, U as PrismaAppConfig, h as DEV_ENVIRONMENT_NAME_FILE, k as LocalTargetEmulatorsInput, m as DEV_DIR, p as ContainerInstance, st as devEnvironmentDir, t as AlchemyStateLayer, w as LocalTargetAttachInput, x as LocalNodeCondition } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
//#region ../../0-framework/1-core/core/dist/local-target.d.mts
|
|
4
4
|
//#region src/control/local-target.d.ts
|
|
@@ -23,7 +23,7 @@ declare function resolveLocalTargets(config: PrismaAppConfig): Promise<ReadonlyM
|
|
|
23
23
|
* `localTarget` thunk). The generated dev stack module is this
|
|
24
24
|
* aggregator's one caller, passing the result as `LowerOptions.providers`.
|
|
25
25
|
*/
|
|
26
|
-
declare function localTargetProviders(resolved: ReadonlyMap<string, LocalTargetDescriptor>, containers: ReadonlyMap<string, ContainerInstance>, devDir: string): Layer.Layer<never>;
|
|
26
|
+
declare function localTargetProviders(resolved: ReadonlyMap<string, LocalTargetDescriptor>, containers: ReadonlyMap<string, ContainerInstance>, devDir: string, configurationKeyText: Readonly<Record<string, string>>, namedSecrets: NamedSecrets): Layer.Layer<never>;
|
|
27
27
|
/** The state store `prisma dev` converges against: Alchemy's file store in the app's working directory. */
|
|
28
28
|
declare function devState(): AlchemyStateLayer;
|
|
29
29
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-target.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/local-target.d.mts"],"mappings":";;;;;;;;;;;;;;;;;iBAgBiB,oBAAoB,QAAQ,kBAAkB,QAAQ,oBAAoB;;;;;;;;iBAQ1E,qBAAqB,UAAU,oBAAoB,wBAAwB,YAAY,oBAAoB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"local-target.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/local-target.d.mts"],"mappings":";;;;;;;;;;;;;;;;;iBAgBiB,oBAAoB,QAAQ,kBAAkB,QAAQ,oBAAoB;;;;;;;;iBAQ1E,qBAAqB,UAAU,oBAAoB,wBAAwB,YAAY,oBAAoB,oBAAoB,gBAAgB,sBAAsB,SAAS,yBAAyB,cAAc,eAAe,MAAM;;iBAE1O,YAAY"}
|
package/dist/local-target.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, t as DEV_DIR } from "./app-config-CErnR6NK-D9NgSBH4.mjs";
|
|
2
|
-
import { n as localTargetProviders, r as resolveLocalTargets, t as devState } from "./local-target-
|
|
2
|
+
import { n as localTargetProviders, r as resolveLocalTargets, t as devState } from "./local-target-Dd8FJEb5.mjs";
|
|
3
3
|
export { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { i as BuildAdapter } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
2
|
+
import "./index-DWQ6BSgm.mjs";
|
|
3
3
|
//#region ../../0-framework/2-authoring/nextjs/dist/nextjs-DLyeRR7M.d.mts
|
|
4
4
|
//#region src/nextjs.d.ts
|
|
5
5
|
/** The nextjs build adapter's descriptor — `appDir` is this kind's own extra path input (the Next app root), beyond the shared `{ extension, type, module, entry }`. `entry` is a placeholder; the assembler locates `server.js` in the standalone tree. */
|
|
@@ -13,4 +13,4 @@ declare const nextjsBuild: (opts: {
|
|
|
13
13
|
}) => NextjsBuildAdapter;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { nextjsBuild as n, NextjsBuildAdapter as t };
|
|
16
|
-
//# sourceMappingURL=nextjs-DLyeRR7M-
|
|
16
|
+
//# sourceMappingURL=nextjs-DLyeRR7M-RtoHcY1c.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextjs-DLyeRR7M-
|
|
1
|
+
{"version":3,"file":"nextjs-DLyeRR7M-RtoHcY1c.d.mts","names":[],"sources":["../../../0-framework/2-authoring/nextjs/dist/nextjs-DLyeRR7M.d.mts"],"mappings":";;;;;UAGU,2BAA2B;WAC1B;WACA;;cAEG,cAAc;EAC1B;EACA;MACI"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./deploy-
|
|
4
|
-
import { t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-
|
|
1
|
+
import { Z as ServeInput, b as ExtensionDescriptor, o as AssembleInput, s as Bundle, y as DevServer } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
|
|
2
|
+
import "./config-CDkq5Ayl.mjs";
|
|
3
|
+
import "./deploy-DQyaIoNe.mjs";
|
|
4
|
+
import { t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-RtoHcY1c.mjs";
|
|
5
5
|
//#region ../../0-framework/2-authoring/nextjs/dist/control.d.mts
|
|
6
6
|
//#region src/control/build.d.ts
|
|
7
7
|
/** The built standalone server.js for a nextjs build — `appDir`'s standalone root plus the app subpath Next recorded. Single-sourced so `assemble()` (deploy) and the integration-test seam can't drift. */
|
package/dist/nextjs-control.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as repairWindowsDirectorySymlinks, i as isWithin, n as copyTreeVerbatim, r as createBundleLink, t as assertBundleSymlinksStayInside } from "./dist-
|
|
1
|
+
import { a as repairWindowsDirectorySymlinks, i as isWithin, n as copyTreeVerbatim, r as createBundleLink, t as assertBundleSymlinksStayInside } from "./dist-BtzrklYG.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import * as fs$1 from "node:fs";
|
|
4
3
|
import * as path$1 from "node:path";
|
|
4
|
+
import * as fs$1 from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { build } from "esbuild";
|
|
7
7
|
//#region ../../0-framework/2-authoring/nextjs/dist/control.mjs
|
package/dist/nextjs.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as nextjsBuild, t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-
|
|
1
|
+
import { n as nextjsBuild, t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-RtoHcY1c.mjs";
|
|
2
2
|
export { type NextjsBuildAdapter, nextjsBuild as default };
|
package/dist/node-control.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./deploy-
|
|
1
|
+
import { Z as ServeInput, b as ExtensionDescriptor, o as AssembleInput, s as Bundle, y as DevServer } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
|
|
2
|
+
import "./config-CDkq5Ayl.mjs";
|
|
3
|
+
import "./deploy-DQyaIoNe.mjs";
|
|
4
4
|
//#region ../../0-framework/2-authoring/node/dist/control.d.mts
|
|
5
5
|
//#region src/control/build.d.ts
|
|
6
6
|
declare function assemble(input: AssembleInput): Promise<Bundle>;
|
package/dist/node-control.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as isWithin, n as copyTreeVerbatim, r as createBundleLink, t as assertBundleSymlinksStayInside } from "./dist-
|
|
1
|
+
import { i as isWithin, n as copyTreeVerbatim, r as createBundleLink, t as assertBundleSymlinksStayInside } from "./dist-BtzrklYG.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import * as fs$1 from "node:fs";
|
|
4
3
|
import * as path$1 from "node:path";
|
|
4
|
+
import * as fs$1 from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { build } from "esbuild";
|
|
7
7
|
//#region \0rolldown/runtime.js
|
package/dist/node.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { i as BuildAdapter } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
2
|
+
import "./index-DWQ6BSgm.mjs";
|
|
3
3
|
//#region ../../0-framework/2-authoring/node/dist/index.d.mts
|
|
4
4
|
//#region src/node.d.ts
|
|
5
5
|
/** The node build adapter's descriptor. `dir` is the directory form's own extra path input (the built tree to copy verbatim), beyond the shared `{ extension, type, module, entry }`; absent, `entry` is the whole built runnable. */
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region ../../0-framework/0-foundation/foundation/dist/secret-CHOw4LBU.d.mts
|
|
2
|
+
//#region src/secret.d.ts
|
|
3
|
+
declare const SECRET_BOX: unique symbol;
|
|
4
|
+
declare class SecretBox<T> {
|
|
5
|
+
#private;
|
|
6
|
+
readonly [SECRET_BOX] = true;
|
|
7
|
+
constructor(value: T);
|
|
8
|
+
/** The sole explicit door to the wrapped value. */
|
|
9
|
+
expose(): T;
|
|
10
|
+
toString(): string;
|
|
11
|
+
toJSON(): string;
|
|
12
|
+
valueOf(): string;
|
|
13
|
+
[Symbol.toPrimitive](): string;
|
|
14
|
+
}
|
|
15
|
+
/** The common case: a secret string. */
|
|
16
|
+
type SecretString = SecretBox<string>;
|
|
17
|
+
/**
|
|
18
|
+
* True for a redacting secret box — what a schema's secret leaf checks
|
|
19
|
+
* (ADR-0042). Reads the brand rather than `instanceof`, so a box from a
|
|
20
|
+
* duplicated module copy in a bundle counts and a look-alike does not.
|
|
21
|
+
*/
|
|
22
|
+
declare function isSecretString(value: unknown): value is SecretString;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region ../../0-framework/0-foundation/foundation/dist/pointer-CyQZZugO.d.mts
|
|
25
|
+
//#region src/pointer.d.ts
|
|
26
|
+
declare const POINTER: unique symbol;
|
|
27
|
+
declare const POINTER_TYPE: unique symbol;
|
|
28
|
+
/** Whether the variable a pointer names holds a secret. */
|
|
29
|
+
type PointerKind = 'secret' | 'plain';
|
|
30
|
+
interface PointerWithKind<T, K extends PointerKind> {
|
|
31
|
+
readonly [POINTER]: K;
|
|
32
|
+
readonly [POINTER_TYPE]?: T;
|
|
33
|
+
}
|
|
34
|
+
/** The real value at deploy of a value known only at boot: it names the platform variable that holds the text of a `T`. Its kind is `'secret'` when `T` is a `SecretString` and `'plain'` otherwise. */
|
|
35
|
+
type Pointer<T> = PointerWithKind<T, unknown extends T ? PointerKind : T extends SecretString ? 'secret' : 'plain'>;
|
|
36
|
+
/** True for a plain pointer: a value known only at boot whose variable holds plain text. */
|
|
37
|
+
declare function isPlainPointer(value: unknown): value is Pointer<string>;
|
|
38
|
+
/** True for a secret pointer: a value known only at boot whose variable holds a secret. */
|
|
39
|
+
declare function isSecretPointer(value: unknown): value is Pointer<SecretString>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { SecretString as a, SecretBox as i, isPlainPointer as n, isSecretString as o, isSecretPointer as r, Pointer as t };
|
|
42
|
+
//# sourceMappingURL=pointer-CyQZZugO-D7k3vibs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer-CyQZZugO-D7k3vibs.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/secret-CHOw4LBU.d.mts","../../../0-framework/0-foundation/foundation/dist/pointer-CyQZZugO.d.mts"],"mappings":";;cACc;cACA,UAAU;;YAEZ;EACV,YAAY,OAAO;;EAEnB,UAAU;EACV;EACA;EACA;GACC,OAAO;;;KAGL,eAAe;;;;;;iBAMH,eAAe,iBAAiB,SAAS;;;;cClB5C;cACA;;KAET;UACK,gBAAgB,GAAG,UAAU;YAC3B,UAAU;YACV,gBAAgB;;;KAGvB,QAAQ,KAAK,gBAAgB,mBAAmB,IAAI,cAAc,UAAU;;iBAEhE,eAAe,iBAAiB,SAAS;;iBAEzC,gBAAgB,iBAAiB,SAAS,QAAQ"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { At as CliStructuredError } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
2
|
+
import { U as PrismaAppConfig } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
|
|
3
|
+
import "./config-CDkq5Ayl.mjs";
|
|
4
|
+
import "./deploy-DQyaIoNe.mjs";
|
|
5
|
+
import "./deployment-summary-p88NV5m5-BJOosgmI.mjs";
|
|
6
|
+
import "./index-DWQ6BSgm.mjs";
|
|
7
|
+
//#region ../../0-framework/0-foundation/foundation/dist/result.d.mts
|
|
8
|
+
//#region src/result.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Represents a successful result containing a value.
|
|
11
|
+
*/
|
|
12
|
+
interface Ok<T> {
|
|
13
|
+
readonly ok: true;
|
|
14
|
+
readonly value: T;
|
|
15
|
+
assertOk(): T;
|
|
16
|
+
assertNotOk(): never;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Represents an unsuccessful result containing failure details.
|
|
20
|
+
*/
|
|
21
|
+
interface NotOk<F> {
|
|
22
|
+
readonly ok: false;
|
|
23
|
+
readonly failure: F;
|
|
24
|
+
assertOk(): never;
|
|
25
|
+
assertNotOk(): F;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A discriminated union representing either success (Ok) or failure (NotOk).
|
|
29
|
+
*
|
|
30
|
+
* @typeParam T - The success value type
|
|
31
|
+
* @typeParam F - The failure details type
|
|
32
|
+
*/
|
|
33
|
+
type Result<T, F> = Ok<T> | NotOk<F>;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../../0-framework/3-tooling/cli/dist/dev-Df-kx6UV.d.mts
|
|
36
|
+
//#region src/composer-config.d.ts
|
|
37
|
+
/** Composer's configuration and the `prisma.config.ts` that declares it. */
|
|
38
|
+
interface ComposerConfigSource {
|
|
39
|
+
/** The `composer` section: the `composer` property of that file's default export. */
|
|
40
|
+
readonly value: PrismaAppConfig;
|
|
41
|
+
/** The declaring `prisma.config.ts`. The deploy's generated stack file imports it. A relative path resolves against the operation's `cwd`. */
|
|
42
|
+
readonly file: string;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/operations/shared.d.ts
|
|
46
|
+
/** A running service's dotted address plus its local URL — what `dev` reports
|
|
47
|
+
* as the front door and `log` reports as the tailable services. */
|
|
48
|
+
interface ServiceEndpoint {
|
|
49
|
+
readonly address: string;
|
|
50
|
+
readonly url: string;
|
|
51
|
+
/** The dev server the service runs in place of its artifact, as its build adapter displays it (`next dev`) — absent for a service that runs its artifact (ADR-0056). */
|
|
52
|
+
readonly devServer?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Where a failed execution left its artifacts — details of the CURRENT
|
|
56
|
+
* execution mechanism (a spawned deploy-engine child driving a generated
|
|
57
|
+
* stack file), for hosts that want to print a reproduce hint. The mechanism
|
|
58
|
+
* is not part of the surface's contract, so these fields may change or
|
|
59
|
+
* disappear if the mechanism does; branch on `code`/`message`/`cause` for
|
|
60
|
+
* anything durable.
|
|
61
|
+
*/
|
|
62
|
+
interface ExecutionDiagnostics {
|
|
63
|
+
/** The child's exit status; undefined means the spawn itself threw, or the
|
|
64
|
+
* child was killed by a signal (`signal` then names it). */
|
|
65
|
+
readonly exitCode: number | undefined;
|
|
66
|
+
/** The signal that killed the child, when one did. A signal-killed converge
|
|
67
|
+
* is an abort the user asked for, not a failure of the deploy — a host
|
|
68
|
+
* should report it as an interruption and print no reproduce hint. */
|
|
69
|
+
readonly signal?: string | undefined;
|
|
70
|
+
readonly stackFilePath: string;
|
|
71
|
+
readonly reproduceCommand: string;
|
|
72
|
+
readonly cwd: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Reads the execution diagnostics an engine-failure error carries in
|
|
76
|
+
* `meta.diagnostics`; undefined for every other failure.
|
|
77
|
+
*/
|
|
78
|
+
declare function executionDiagnostics(f: CliStructuredError): ExecutionDiagnostics | undefined;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/operations/dev.d.ts
|
|
81
|
+
type DevEvent =
|
|
82
|
+
/** Initial front door + after each successful re-converge. */
|
|
83
|
+
{
|
|
84
|
+
readonly kind: 'ready';
|
|
85
|
+
readonly endpoints: readonly ServiceEndpoint[];
|
|
86
|
+
} | {
|
|
87
|
+
readonly kind: 'unwatchable';
|
|
88
|
+
readonly address: string;
|
|
89
|
+
} |
|
|
90
|
+
/** A target's preflight warned about the graph; the session still starts. */
|
|
91
|
+
{
|
|
92
|
+
readonly kind: 'target-warning';
|
|
93
|
+
readonly message: string;
|
|
94
|
+
} | {
|
|
95
|
+
readonly kind: 'rebuild-failed';
|
|
96
|
+
readonly message: string;
|
|
97
|
+
} |
|
|
98
|
+
/** The file watcher itself errored (EMFILE, a vanished directory); the session keeps running. */
|
|
99
|
+
{
|
|
100
|
+
readonly kind: 'watch-error';
|
|
101
|
+
readonly message: string;
|
|
102
|
+
} |
|
|
103
|
+
/** `prisma.config.ts` changed. The session keeps the config it started with and stops rebuilding until it is restarted. */
|
|
104
|
+
{
|
|
105
|
+
readonly kind: 'config-changed';
|
|
106
|
+
readonly file: string;
|
|
107
|
+
} |
|
|
108
|
+
/** What the `config` or `secrets` adapters return changed since the session started. The session keeps the values it started with and stops rebuilding until it is restarted. */
|
|
109
|
+
{
|
|
110
|
+
readonly kind: 'values-changed';
|
|
111
|
+
} |
|
|
112
|
+
/** The app keeps running, still watching. */
|
|
113
|
+
{
|
|
114
|
+
readonly kind: 'converge-failed';
|
|
115
|
+
readonly stackFilePath: string;
|
|
116
|
+
readonly reproduceCommand: string;
|
|
117
|
+
readonly cwd: string;
|
|
118
|
+
} |
|
|
119
|
+
/** Once per service that runs its build adapter's dev server, before the first converge (ADR-0056). `cwd` is absolute. */
|
|
120
|
+
{
|
|
121
|
+
readonly kind: 'dev-server';
|
|
122
|
+
readonly address: string;
|
|
123
|
+
readonly command: string;
|
|
124
|
+
readonly cwd: string;
|
|
125
|
+
} |
|
|
126
|
+
/** A reconverge changed a dev server's environment, so the emulator restarted it. */
|
|
127
|
+
{
|
|
128
|
+
readonly kind: 'dev-server-restarted';
|
|
129
|
+
readonly address: string;
|
|
130
|
+
readonly command: string;
|
|
131
|
+
} |
|
|
132
|
+
/** One line a dev server wrote, while the session runs. */
|
|
133
|
+
{
|
|
134
|
+
readonly kind: 'dev-server-output';
|
|
135
|
+
readonly address: string;
|
|
136
|
+
readonly line: string;
|
|
137
|
+
} | {
|
|
138
|
+
readonly kind: 'stopping';
|
|
139
|
+
} |
|
|
140
|
+
/** One service refused to stop during stop(); teardown continues and `stopped` still follows. */
|
|
141
|
+
{
|
|
142
|
+
readonly kind: 'stop-error';
|
|
143
|
+
readonly message: string;
|
|
144
|
+
} | {
|
|
145
|
+
readonly kind: 'stopped';
|
|
146
|
+
};
|
|
147
|
+
interface DevInput {
|
|
148
|
+
/**
|
|
149
|
+
* Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
|
|
150
|
+
*/
|
|
151
|
+
readonly config: ComposerConfigSource;
|
|
152
|
+
/** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; without either the operation fails with `CONFIG.ENTRY_MISSING`. */
|
|
153
|
+
readonly entry?: string | undefined;
|
|
154
|
+
readonly name?: string | undefined;
|
|
155
|
+
/** The environment to run as: a complete local copy of the app with its own services, databases and buckets. Defaults to `dev`. */
|
|
156
|
+
readonly environment?: string | undefined;
|
|
157
|
+
/** Deletes the environment's local copy of the app, and its data, before starting. Other environments are untouched. */
|
|
158
|
+
readonly fresh?: boolean | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* Return once every service answers and leave the app running, with no
|
|
161
|
+
* watch loop: the session is already closed and stopping it stops nothing.
|
|
162
|
+
* `devStop` stops the app later.
|
|
163
|
+
*/
|
|
164
|
+
readonly detach?: boolean | undefined;
|
|
165
|
+
readonly cwd?: string | undefined;
|
|
166
|
+
readonly onEvent?: ((event: DevEvent) => void) | undefined;
|
|
167
|
+
}
|
|
168
|
+
/** A running dev session. The operation NEVER touches process signal handlers —
|
|
169
|
+
* the host owns signals (and must evict alchemy's import-time SIGINT/SIGTERM
|
|
170
|
+
* listeners before installing its own; see run-dev.ts). */
|
|
171
|
+
interface DevSession {
|
|
172
|
+
/** The initial front door, already merged across attachments. */
|
|
173
|
+
readonly endpoints: readonly ServiceEndpoint[];
|
|
174
|
+
/** Stop the watch loop and the app's services (emulators and data stay up).
|
|
175
|
+
* Idempotent; emits 'stopping'/'stopped'; resolves `closed`. A no-op for a detached session. */
|
|
176
|
+
stop(): Promise<void>;
|
|
177
|
+
/** Settles when the session has fully stopped (via stop()); already settled for a detached session. */
|
|
178
|
+
readonly closed: Promise<void>;
|
|
179
|
+
}
|
|
180
|
+
declare function dev(input: DevInput): Promise<Result<DevSession, CliStructuredError>>;
|
|
181
|
+
//#endregion
|
|
182
|
+
export { ExecutionDiagnostics as a, executionDiagnostics as c, Result as d, DevSession as i, NotOk as l, DevEvent as n, ServiceEndpoint as o, DevInput as r, dev as s, ComposerConfigSource as t, Ok as u };
|
|
183
|
+
//# sourceMappingURL=redaction-Bf8FvTFH-BTsKD9B5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redaction-Bf8FvTFH-BTsKD9B5.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/3-tooling/cli/dist/dev-Df-kx6UV.d.mts"],"mappings":";;;;;;;;;;;UAIU,GAAG;WACF;WACA,OAAO;EAChB,YAAY;EACZ;;;;;UAKQ,MAAM;WACL;WACA,SAAS;EAClB;EACA,eAAe;;;;;;;;KAQZ,OAAO,GAAG,KAAK,GAAG,KAAK,MAAM;;;;;UCjBxB;;WAEC,OAAO;;WAEP;;;;;;UAgFD;WACC;WACA;;WAEA;;;;;;;;;;UA0CD;;;WAGC;;;;WAIA;WACA;WACA;WACA;;;;;;iBAMM,qBAAqB,GAAG,qBAAqB;;;KAGzD;;;WAGM;WACA,oBAAoB;;WAEpB;WACA;;;;WAIA;WACA;;WAEA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;;;WAIA;;;;WAIA;WACA;WACA;WACA;;;;WAIA;WACA;WACA;WACA;;;;WAIA;WACA;WACA;;;;WAIA;WACA;WACA;;WAEA;;;;WAIA;WACA;;WAEA;;UAED;;;;WAIC,QAAQ;;WAER;WACA;;WAEA;;WAEA;;;;;;WAMA;WACA;WACA,YAAY,OAAO;;;;;UAKpB;;WAEC,oBAAoB;;;EAG7B,QAAQ;;WAEC,QAAQ;;iBAEF,IAAI,OAAO,WAAW,QAAQ,OAAO,YAAY"}
|