@prisma/composer 0.38.0-dev.2 → 0.38.0-dev.4
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-DFe3eq6b-Cmr7ggPt.d.mts → app-config-UeKFBma7-CohaMmWp.d.mts} +68 -15
- package/dist/app-config-UeKFBma7-CohaMmWp.d.mts.map +1 -0
- package/dist/config-BeZEgGCg.d.mts +1 -0
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +2 -3
- package/dist/control.d.mts +13 -7
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +3 -3
- package/dist/control.mjs.map +1 -1
- package/dist/{deploy-DergV8De.mjs → deploy-3EXLVrtG.mjs} +14 -8
- package/dist/deploy-3EXLVrtG.mjs.map +1 -0
- package/dist/deploy-Xi4_JrtE.d.mts +2 -0
- package/dist/deploy.d.mts +4 -4
- package/dist/deploy.mjs +3 -3
- package/dist/{deployment-summary-BETZp_5k-C_KvpHWJ.mjs → deployment-summary-D74WrJX7-DQ3LDUuO.mjs} +3 -3
- package/dist/{deployment-summary-BETZp_5k-C_KvpHWJ.mjs.map → deployment-summary-D74WrJX7-DQ3LDUuO.mjs.map} +1 -1
- package/dist/{deployment-summary-p88NV5m5-GNA6qu4b.d.mts → deployment-summary-p88NV5m5-SgniM8TX.d.mts} +3 -3
- package/dist/{deployment-summary-p88NV5m5-GNA6qu4b.d.mts.map → deployment-summary-p88NV5m5-SgniM8TX.d.mts.map} +1 -1
- package/dist/{dev-current-ByDVi5EO-Dct7Q7mq.mjs → dev-current-wD5YDLjA-CzyFYXni.mjs} +5 -5
- package/dist/{dev-current-ByDVi5EO-Dct7Q7mq.mjs.map → dev-current-wD5YDLjA-CzyFYXni.mjs.map} +1 -1
- package/dist/{dist-NyTyCEnG.mjs → dist-ynqBR6y8.mjs} +2 -2
- package/dist/dist-ynqBR6y8.mjs.map +1 -0
- package/dist/{execute-deploy-destroy--N_UkK1g-nxZ3N_Jh.mjs → execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs} +25 -15
- package/dist/execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs.map +1 -0
- package/dist/{execute-dev-Crd7rFYA-DcPJ_3wI.mjs → execute-dev-BIyOI3Ys-BbDOLlV4.mjs} +16 -10
- package/dist/{execute-dev-Crd7rFYA-DcPJ_3wI.mjs.map → execute-dev-BIyOI3Ys-BbDOLlV4.mjs.map} +1 -1
- package/dist/{execute-dev-current-Cj8M-VXO-B2Gdq4dR.mjs → execute-dev-current-CKOzjWuO-BPecs6Lf.mjs} +4 -4
- package/dist/{execute-dev-current-Cj8M-VXO-B2Gdq4dR.mjs.map → execute-dev-current-CKOzjWuO-BPecs6Lf.mjs.map} +1 -1
- package/dist/{execute-log-T_FgN53M-CJsJdGqo.mjs → execute-log-BDdHor71-B2p8Zae2.mjs} +4 -4
- package/dist/{execute-log-T_FgN53M-CJsJdGqo.mjs.map → execute-log-BDdHor71-B2p8Zae2.mjs.map} +1 -1
- package/dist/{graph-CBt9CRBT-yMupsISb.mjs → graph-BzPLUUsB-D7EnB1F5.mjs} +9 -3
- package/dist/graph-BzPLUUsB-D7EnB1F5.mjs.map +1 -0
- package/dist/{graph-D1zpgcLm-YlrEdzUB.d.mts → graph-C7mdtisq-RnKiwVsx.d.mts} +3 -3
- package/dist/graph-C7mdtisq-RnKiwVsx.d.mts.map +1 -0
- package/dist/{graph-types-BiFZrE06-D6vaGxXz.d.mts → graph-types-s5V7pGj2-BxSqB1ZH.d.mts} +9 -3
- package/dist/{graph-types-BiFZrE06-D6vaGxXz.d.mts.map → graph-types-s5V7pGj2-BxSqB1ZH.d.mts.map} +1 -1
- package/dist/http.d.mts +2 -2
- package/dist/http.mjs +2 -2
- package/dist/{index-CMklpG87.d.mts → index-DyuwxTtd.d.mts} +3 -3
- package/dist/{index-CMklpG87.d.mts.map → index-DyuwxTtd.d.mts.map} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/internal-app-configuration-file.d.mts +5 -5
- package/dist/local-target.d.mts +1 -1
- package/dist/{nextjs-DLyeRR7M-RqgYxqhI.d.mts → nextjs-DLyeRR7M-0lw_cBIr.d.mts} +3 -3
- package/dist/{nextjs-DLyeRR7M-RqgYxqhI.d.mts.map → nextjs-DLyeRR7M-0lw_cBIr.d.mts.map} +1 -1
- package/dist/nextjs-control.d.mts +4 -4
- package/dist/nextjs.d.mts +1 -1
- package/dist/node-control.d.mts +3 -3
- package/dist/node.d.mts +2 -2
- package/dist/preflight-transport-DmmtoFPH-CnDWufmu.mjs +127 -0
- package/dist/preflight-transport-DmmtoFPH-CnDWufmu.mjs.map +1 -0
- package/dist/{redaction-Bf8FvTFH-1DLg1LoF.d.mts → redaction-Bf8FvTFH-D_HvoMrf.d.mts} +7 -7
- package/dist/{redaction-Bf8FvTFH-1DLg1LoF.d.mts.map → redaction-Bf8FvTFH-D_HvoMrf.d.mts.map} +1 -1
- package/dist/{redaction-HnbkSFrK-BXRZ3B33.mjs → redaction-DXung4ip-bBoNomi3.mjs} +32 -5
- package/dist/redaction-DXung4ip-bBoNomi3.mjs.map +1 -0
- package/dist/report.d.mts +3 -3
- package/dist/report.mjs +11 -1
- package/dist/report.mjs.map +1 -1
- package/dist/{run-alchemy-OS_ix5g0-DCvUYZ7T.mjs → run-alchemy-CRLAyOtt-CBUV28We.mjs} +3 -3
- package/dist/{run-alchemy-OS_ix5g0-DCvUYZ7T.mjs.map → run-alchemy-CRLAyOtt-CBUV28We.mjs.map} +1 -1
- package/dist/service-rpc.d.mts +2 -2
- package/dist/service-rpc.mjs +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/{validate-environment-CpQLC3CA-COmDdusV.mjs → validate-environment-D1BTCkTs-BQprjyNP.mjs} +15 -6
- package/dist/validate-environment-D1BTCkTs-BQprjyNP.mjs.map +1 -0
- package/package.json +11 -11
- package/skills/prisma-composer-core-concepts/SKILL.md +7 -16
- package/dist/app-config-DFe3eq6b-Cmr7ggPt.d.mts.map +0 -1
- package/dist/config-BFuriECI.mjs +0 -39
- package/dist/config-BFuriECI.mjs.map +0 -1
- package/dist/config-Db5eI7CK.d.mts +0 -1
- package/dist/container-transport-HcvNOGZL-twPi2TIv.mjs +0 -49
- package/dist/container-transport-HcvNOGZL-twPi2TIv.mjs.map +0 -1
- package/dist/deploy-DergV8De.mjs.map +0 -1
- package/dist/deploy-Ds3eG6H7.d.mts +0 -2
- package/dist/dist-NyTyCEnG.mjs.map +0 -1
- package/dist/execute-deploy-destroy--N_UkK1g-nxZ3N_Jh.mjs.map +0 -1
- package/dist/graph-CBt9CRBT-yMupsISb.mjs.map +0 -1
- package/dist/graph-D1zpgcLm-YlrEdzUB.d.mts.map +0 -1
- package/dist/redaction-HnbkSFrK-BXRZ3B33.mjs.map +0 -1
- package/dist/validate-environment-CpQLC3CA-COmDdusV.mjs.map +0 -1
package/dist/http.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as Contract, m as DependencyEnd } from "./graph-types-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { d as Contract, m as DependencyEnd } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
|
|
2
|
+
import "./index-DyuwxTtd.mjs";
|
|
3
3
|
//#region ../../0-framework/2-authoring/http/dist/index.d.mts
|
|
4
4
|
//#region src/raw-http.d.ts
|
|
5
5
|
/** What a `rawHttp()` dependency hydrates to: the provider's URL and a fetch that resolves `path` against it, refuses any path that leaves the provider's origin, and returns redirects instead of following them unless `init.redirect` says otherwise. */
|
package/dist/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as string } from "./dist-
|
|
1
|
+
import { c as dependency } from "./graph-BzPLUUsB-D7EnB1F5.mjs";
|
|
2
|
+
import { l as string } from "./dist-ynqBR6y8.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 { C as HydratedDeps, h as Deps, s as Config, st as ServiceNode } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
|
|
2
|
+
import "./graph-C7mdtisq-RnKiwVsx.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-DyuwxTtd.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DyuwxTtd.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
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
|
|
3
|
-
import { n as assertAppName, t as Load } from "./graph-
|
|
4
|
-
import { n as hydrateSync, t as hydrate } from "./index-
|
|
5
|
-
export { type AppConfigurationRead, type AppRootContext, type AppRootNode, 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, appRoot, 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 };
|
|
2
|
+
import { $ as ResourceProps, A as LoadOptions, At as secretSourceManifest, B as ParamBindings, C as HydratedDeps, Ct as param, D as InputRef, Dt as resolve, E as InputBindingUse, Et as provisionNeed, F as ModuleNode, G as PortEndpoint, H as ParamSourceOptions, I as ModuleOutputs, J as RESOURCE_OUT_PORT, K as ProvisionNeed, L as NODE, M as ModuleContext, Mt as slotsOf, N as ModuleInput, Nt as string, O as InputValueOf, Ot as resource, P as ModuleInputField, Q as ResourceNodeBase, R as NodeId, S as Hydrated, St as number, T as InputBindingOf, Tt as paramSource, U as Params, V as ParamSource, W as PlainData, X as RefPort, Y as RealValuesOf, Z as ResourceNode, _ as EnvironmentFacts, _t as isParamSource, a as BoundaryPort, at as SecretSourceOptions, b as GraphCheckError, bt as isValue, c as ConfigDeclaration, ct as SourceOptions, d as Contract, dt as appRoot, et as ResourcePropsMember, f as ContractStyle, ft as configOf, g as Edge, gt as isNode, h as Deps, ht as inputManifest, i as AuthoredEdge, it as SecretSource, j as ModuleBuilder, jt as service, k as LoadError, kt as secretSource, l as ConfigParam, lt as Value, m as DependencyEnd, mt as freezeNode, n as AppRootContext, nt as RunnableServiceNode, o as BuildAdapter, ot as SecretSourceUse, p as DepBindings, pt as dependency, q as ProvisionedRef, r as AppRootNode, rt as RuntimeValue, s as Config, st as ServiceNode, t as AppConfigurationRead, tt as RootInputField, u as Connection, ut as Values, v as Expose, vt as isProvisionNeed, w as InputBinding, wt as paramManifest, x as GraphNode, xt as module, y as Graph, yt as isSecretSource, z as ParamBinding } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
|
|
3
|
+
import { n as assertAppName, t as Load } from "./graph-C7mdtisq-RnKiwVsx.mjs";
|
|
4
|
+
import { n as hydrateSync, t as hydrate } from "./index-DyuwxTtd.mjs";
|
|
5
|
+
export { type AppConfigurationRead, type AppRootContext, type AppRootNode, 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, GraphCheckError, 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, appRoot, 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
1
|
import { a as isPlainPointer, n as SecretBox, o as isSecretPointer, r as isSecretString } from "./describe-kind-Cpm_euxo-CkhlGJUL.mjs";
|
|
2
|
-
import { C as
|
|
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-
|
|
4
|
-
export { Load, LoadError, RESOURCE_OUT_PORT, ResourceNodeBase, SecretBox, appRoot, 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 };
|
|
2
|
+
import { C as service, _ as paramSource, a as ResourceNodeBase, b as resource, c as dependency, d as isParamSource, f as isProvisionNeed, h as module, i as RESOURCE_OUT_PORT, l as freezeNode, m as isValue, n as Load, o as appRoot, p as isSecretSource, r as LoadError, s as assertAppName, t as GraphCheckError, u as isNode, v as provisionNeed, w as slotsOf, x as secretSource, y as resolve } from "./graph-BzPLUUsB-D7EnB1F5.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-ynqBR6y8.mjs";
|
|
4
|
+
export { GraphCheckError, Load, LoadError, RESOURCE_OUT_PORT, ResourceNodeBase, SecretBox, appRoot, 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 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as AppConfigurationRead } from "./graph-types-
|
|
2
|
-
import { L as NamedSecrets } from "./app-config-
|
|
3
|
-
import "./config-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./redaction-Bf8FvTFH-
|
|
1
|
+
import { t as AppConfigurationRead } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
|
|
2
|
+
import { L as NamedSecrets } from "./app-config-UeKFBma7-CohaMmWp.mjs";
|
|
3
|
+
import "./config-BeZEgGCg.mjs";
|
|
4
|
+
import "./index-DyuwxTtd.mjs";
|
|
5
|
+
import "./redaction-Bf8FvTFH-D_HvoMrf.mjs";
|
|
6
6
|
//#region ../../0-framework/3-tooling/cli/dist/app-configuration-file-ptkFLQ7p.d.mts
|
|
7
7
|
//#region src/app-configuration-file.d.ts
|
|
8
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. */
|
package/dist/local-target.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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, h as DEV_ENVIRONMENT_NAME_FILE, k as LocalTargetEmulatorsInput, m as DEV_DIR, p as ContainerInstance, pt as devEnvironmentDir, q as PrismaAppConfig, t as AlchemyStateLayer, w as LocalTargetAttachInput, x as LocalNodeCondition } from "./app-config-UeKFBma7-CohaMmWp.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as BuildAdapter } from "./graph-types-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { o as BuildAdapter } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
|
|
2
|
+
import "./index-DyuwxTtd.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-0lw_cBIr.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextjs-DLyeRR7M-
|
|
1
|
+
{"version":3,"file":"nextjs-DLyeRR7M-0lw_cBIr.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 { b as ExtensionDescriptor, o as AssembleInput, s as Bundle, tt as ServeInput, y as DevServer } from "./app-config-UeKFBma7-CohaMmWp.mjs";
|
|
2
|
+
import "./config-BeZEgGCg.mjs";
|
|
3
|
+
import "./deploy-Xi4_JrtE.mjs";
|
|
4
|
+
import { t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-0lw_cBIr.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.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-0lw_cBIr.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 { b as ExtensionDescriptor, o as AssembleInput, s as Bundle, tt as ServeInput, y as DevServer } from "./app-config-UeKFBma7-CohaMmWp.mjs";
|
|
2
|
+
import "./config-BeZEgGCg.mjs";
|
|
3
|
+
import "./deploy-Xi4_JrtE.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.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as BuildAdapter } from "./graph-types-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { o as BuildAdapter } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
|
|
2
|
+
import "./index-DyuwxTtd.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,127 @@
|
|
|
1
|
+
//#region ../../0-framework/1-core/core/dist/preflight-transport-DmmtoFPH.mjs
|
|
2
|
+
/** '@prisma/composer-prisma-cloud' → 'PRISMA_COMPOSER_PRISMA_CLOUD': uppercased, every non-alphanumeric run replaced by one underscore. */
|
|
3
|
+
function envVarSafeExtensionId(extensionId) {
|
|
4
|
+
return extensionId.toUpperCase().replace(/[^A-Z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
5
|
+
}
|
|
6
|
+
/** '@prisma/composer-prisma-cloud' → 'PRISMA_COMPOSER_CONTAINER_PRISMA_COMPOSER_PRISMA_CLOUD' */
|
|
7
|
+
function containerEnvVarName(extensionId) {
|
|
8
|
+
return `PRISMA_COMPOSER_CONTAINER_${envVarSafeExtensionId(extensionId)}`;
|
|
9
|
+
}
|
|
10
|
+
function collisionError(a, b, varName) {
|
|
11
|
+
return /* @__PURE__ */ new Error(`Extension ids "${a}" and "${b}" both map to the container transport variable "${varName}" — rename one of the extensions.`);
|
|
12
|
+
}
|
|
13
|
+
function emptySerializeError(extensionId) {
|
|
14
|
+
return /* @__PURE__ */ new Error(`Extension "${extensionId}"'s container instance serialized to an empty string — ContainerInstance.serialize() must return a non-empty string.`);
|
|
15
|
+
}
|
|
16
|
+
/** The env entries the CLI sets on the alchemy process: `{ [containerEnvVarName(id)]: instance.serialize() }` for every resolved instance. */
|
|
17
|
+
function containerEnv(instances) {
|
|
18
|
+
const env = {};
|
|
19
|
+
const ownerByVarName = /* @__PURE__ */ new Map();
|
|
20
|
+
for (const [extensionId, instance] of instances) {
|
|
21
|
+
const varName = containerEnvVarName(extensionId);
|
|
22
|
+
const owner = ownerByVarName.get(varName);
|
|
23
|
+
if (owner !== void 0) throw collisionError(owner, extensionId, varName);
|
|
24
|
+
ownerByVarName.set(varName, extensionId);
|
|
25
|
+
const serialized = instance.serialize();
|
|
26
|
+
if (serialized.length === 0) throw emptySerializeError(extensionId);
|
|
27
|
+
env[varName] = serialized;
|
|
28
|
+
}
|
|
29
|
+
return env;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The alchemy-process side: for each extension with a container descriptor
|
|
33
|
+
* whose var is present in `env`, call its deserialize. Absent var → no entry.
|
|
34
|
+
*/
|
|
35
|
+
function deserializeContainers(extensions, env) {
|
|
36
|
+
const instances = /* @__PURE__ */ new Map();
|
|
37
|
+
for (const extension of extensions) {
|
|
38
|
+
const descriptor = extension.container;
|
|
39
|
+
if (descriptor === void 0) continue;
|
|
40
|
+
const serialized = env[containerEnvVarName(extension.id)];
|
|
41
|
+
if (serialized === void 0) continue;
|
|
42
|
+
instances.set(extension.id, descriptor.deserialize(serialized));
|
|
43
|
+
}
|
|
44
|
+
return instances;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Carries an extension's preflight payload from the CLI process to the
|
|
48
|
+
* alchemy child (which re-imports the config from scratch) — one env var per
|
|
49
|
+
* extension, same channel as containers (container-transport.ts), filled by
|
|
50
|
+
* whichever preflight the run executed: the deploy preflight or the local
|
|
51
|
+
* target's dev preflight. The framework never reads the contents, so an
|
|
52
|
+
* extension that implements both must tell its own payload kinds apart.
|
|
53
|
+
* Payloads carry metadata only, never secret values: the child's environment
|
|
54
|
+
* is not a secret store.
|
|
55
|
+
*/
|
|
56
|
+
/** '@prisma/composer-prisma-cloud' → 'PRISMA_COMPOSER_PREFLIGHT_PRISMA_COMPOSER_PRISMA_CLOUD' */
|
|
57
|
+
function preflightEnvVarName(extensionId) {
|
|
58
|
+
return `PRISMA_COMPOSER_PREFLIGHT_${envVarSafeExtensionId(extensionId)}`;
|
|
59
|
+
}
|
|
60
|
+
/** The env entries the CLI sets on the alchemy process: `{ [preflightEnvVarName(id)]: payload }` for every extension whose preflight returned one. */
|
|
61
|
+
function preflightEnv(payloads) {
|
|
62
|
+
const env = {};
|
|
63
|
+
const ownerByVarName = /* @__PURE__ */ new Map();
|
|
64
|
+
for (const [extensionId, payload] of payloads) {
|
|
65
|
+
if (payload.length === 0) continue;
|
|
66
|
+
const varName = preflightEnvVarName(extensionId);
|
|
67
|
+
if (varName === "PRISMA_COMPOSER_PREFLIGHT_FINDINGS") throw new Error(`Extension id "${extensionId}" uses the environment variable "${varName}", which Composer reserves. Rename the extension.`);
|
|
68
|
+
const owner = ownerByVarName.get(varName);
|
|
69
|
+
if (owner !== void 0) throw new Error(`Extension ids "${owner}" and "${extensionId}" both use the environment variable "${varName}". Rename one of the extensions.`);
|
|
70
|
+
ownerByVarName.set(varName, extensionId);
|
|
71
|
+
env[varName] = payload;
|
|
72
|
+
}
|
|
73
|
+
return env;
|
|
74
|
+
}
|
|
75
|
+
/** The alchemy-process side: the payload this extension's own preflight wrote, or `undefined` when it wrote none (or when nothing ran a preflight at all). */
|
|
76
|
+
function readPreflightPayload(extensionId, env) {
|
|
77
|
+
const payload = env[preflightEnvVarName(extensionId)];
|
|
78
|
+
return payload === void 0 || payload.length === 0 ? void 0 : payload;
|
|
79
|
+
}
|
|
80
|
+
/** One reader as the deploy prints it, for example `read by service "shop.email", field "apiKey"`. */
|
|
81
|
+
function platformVariableReaderText(reader) {
|
|
82
|
+
switch (reader.kind) {
|
|
83
|
+
case "field": return `read by service "${reader.service}", field "${reader.path === "" ? "(root)" : reader.path}"`;
|
|
84
|
+
case "param": return `read by service "${reader.service}", per-key param "${reader.param}"`;
|
|
85
|
+
case "unread": return `named by ${reader.nodeKind} "${reader.node}", read by no service`;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
89
|
+
const isStringArray = (value) => Array.isArray(value) && value.every((member) => typeof member === "string");
|
|
90
|
+
function isPlatformVariableReader(value) {
|
|
91
|
+
if (!isRecord(value)) return false;
|
|
92
|
+
switch (value["kind"]) {
|
|
93
|
+
case "field": return typeof value["service"] === "string" && typeof value["path"] === "string";
|
|
94
|
+
case "param": return typeof value["service"] === "string" && typeof value["param"] === "string";
|
|
95
|
+
case "unread": return typeof value["node"] === "string" && (value["nodeKind"] === "module" || value["nodeKind"] === "resource");
|
|
96
|
+
default: return false;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function isUnsetPlatformVariable(value) {
|
|
100
|
+
return isRecord(value) && typeof value["name"] === "string" && Array.isArray(value["readers"]) && value["readers"].every(isPlatformVariableReader) && isStringArray(value["commands"]);
|
|
101
|
+
}
|
|
102
|
+
function isPreflightFindings(value) {
|
|
103
|
+
return isRecord(value) && Array.isArray(value["unset"]) && value["unset"].every(isUnsetPlatformVariable);
|
|
104
|
+
}
|
|
105
|
+
/** The variable that carries every extension's deploy preflight findings from the first process to the second. No extension's preflight variable may take this name. */
|
|
106
|
+
const PREFLIGHT_FINDINGS_ENV_VAR = "PRISMA_COMPOSER_PREFLIGHT_FINDINGS";
|
|
107
|
+
/** The env entry the CLI sets on the second process. It is always set, and empty when nothing was found, so a stale value in the shell never reads as this run's. */
|
|
108
|
+
function preflightFindingsEnv(findings) {
|
|
109
|
+
return { [PREFLIGHT_FINDINGS_ENV_VAR]: findings.unset.length === 0 ? "" : JSON.stringify(findings) };
|
|
110
|
+
}
|
|
111
|
+
/** The second process's side: the findings the CLI carried, or none. Throws on a value that does not decode: that is a framework bug. */
|
|
112
|
+
function readPreflightFindings(env) {
|
|
113
|
+
const text = env[PREFLIGHT_FINDINGS_ENV_VAR];
|
|
114
|
+
if (text === void 0 || text.length === 0) return { unset: [] };
|
|
115
|
+
let parsed;
|
|
116
|
+
try {
|
|
117
|
+
parsed = JSON.parse(text);
|
|
118
|
+
} catch {
|
|
119
|
+
parsed = void 0;
|
|
120
|
+
}
|
|
121
|
+
if (!isPreflightFindings(parsed)) throw new Error(`The deploy check's findings could not be read in the second process (${PREFLIGHT_FINDINGS_ENV_VAR}). This is a Composer bug; deploying again will not fix it.`);
|
|
122
|
+
return parsed;
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { platformVariableReaderText as a, preflightFindingsEnv as c, deserializeContainers as i, readPreflightFindings as l, containerEnv as n, preflightEnv as o, containerEnvVarName as r, preflightEnvVarName as s, PREFLIGHT_FINDINGS_ENV_VAR as t, readPreflightPayload as u };
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=preflight-transport-DmmtoFPH-CnDWufmu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preflight-transport-DmmtoFPH-CnDWufmu.mjs","names":[],"sources":["../../../0-framework/1-core/core/dist/preflight-transport-DmmtoFPH.mjs"],"sourcesContent":["//#region src/container-transport.ts\n/** '@prisma/composer-prisma-cloud' → 'PRISMA_COMPOSER_PRISMA_CLOUD': uppercased, every non-alphanumeric run replaced by one underscore. */\nfunction envVarSafeExtensionId(extensionId) {\n\treturn extensionId.toUpperCase().replace(/[^A-Z0-9]+/g, \"_\").replace(/^_+|_+$/g, \"\");\n}\n/** '@prisma/composer-prisma-cloud' → 'PRISMA_COMPOSER_CONTAINER_PRISMA_COMPOSER_PRISMA_CLOUD' */\nfunction containerEnvVarName(extensionId) {\n\treturn `PRISMA_COMPOSER_CONTAINER_${envVarSafeExtensionId(extensionId)}`;\n}\nfunction collisionError(a, b, varName) {\n\treturn /* @__PURE__ */ new Error(`Extension ids \"${a}\" and \"${b}\" both map to the container transport variable \"${varName}\" — rename one of the extensions.`);\n}\nfunction emptySerializeError(extensionId) {\n\treturn /* @__PURE__ */ new Error(`Extension \"${extensionId}\"'s container instance serialized to an empty string — ContainerInstance.serialize() must return a non-empty string.`);\n}\n/** The env entries the CLI sets on the alchemy process: `{ [containerEnvVarName(id)]: instance.serialize() }` for every resolved instance. */\nfunction containerEnv(instances) {\n\tconst env = {};\n\tconst ownerByVarName = /* @__PURE__ */ new Map();\n\tfor (const [extensionId, instance] of instances) {\n\t\tconst varName = containerEnvVarName(extensionId);\n\t\tconst owner = ownerByVarName.get(varName);\n\t\tif (owner !== void 0) throw collisionError(owner, extensionId, varName);\n\t\townerByVarName.set(varName, extensionId);\n\t\tconst serialized = instance.serialize();\n\t\tif (serialized.length === 0) throw emptySerializeError(extensionId);\n\t\tenv[varName] = serialized;\n\t}\n\treturn env;\n}\n/**\n* The alchemy-process side: for each extension with a container descriptor\n* whose var is present in `env`, call its deserialize. Absent var → no entry.\n*/\nfunction deserializeContainers(extensions, env) {\n\tconst instances = /* @__PURE__ */ new Map();\n\tfor (const extension of extensions) {\n\t\tconst descriptor = extension.container;\n\t\tif (descriptor === void 0) continue;\n\t\tconst serialized = env[containerEnvVarName(extension.id)];\n\t\tif (serialized === void 0) continue;\n\t\tinstances.set(extension.id, descriptor.deserialize(serialized));\n\t}\n\treturn instances;\n}\n//#endregion\n//#region src/preflight-transport.ts\n/**\n* Carries an extension's preflight payload from the CLI process to the\n* alchemy child (which re-imports the config from scratch) — one env var per\n* extension, same channel as containers (container-transport.ts), filled by\n* whichever preflight the run executed: the deploy preflight or the local\n* target's dev preflight. The framework never reads the contents, so an\n* extension that implements both must tell its own payload kinds apart.\n* Payloads carry metadata only, never secret values: the child's environment\n* is not a secret store.\n*/\n/** '@prisma/composer-prisma-cloud' → 'PRISMA_COMPOSER_PREFLIGHT_PRISMA_COMPOSER_PRISMA_CLOUD' */\nfunction preflightEnvVarName(extensionId) {\n\treturn `PRISMA_COMPOSER_PREFLIGHT_${envVarSafeExtensionId(extensionId)}`;\n}\n/** The env entries the CLI sets on the alchemy process: `{ [preflightEnvVarName(id)]: payload }` for every extension whose preflight returned one. */\nfunction preflightEnv(payloads) {\n\tconst env = {};\n\tconst ownerByVarName = /* @__PURE__ */ new Map();\n\tfor (const [extensionId, payload] of payloads) {\n\t\tif (payload.length === 0) continue;\n\t\tconst varName = preflightEnvVarName(extensionId);\n\t\tif (varName === \"PRISMA_COMPOSER_PREFLIGHT_FINDINGS\") throw new Error(`Extension id \"${extensionId}\" uses the environment variable \"${varName}\", which Composer reserves. Rename the extension.`);\n\t\tconst owner = ownerByVarName.get(varName);\n\t\tif (owner !== void 0) throw new Error(`Extension ids \"${owner}\" and \"${extensionId}\" both use the environment variable \"${varName}\". Rename one of the extensions.`);\n\t\townerByVarName.set(varName, extensionId);\n\t\tenv[varName] = payload;\n\t}\n\treturn env;\n}\n/** The alchemy-process side: the payload this extension's own preflight wrote, or `undefined` when it wrote none (or when nothing ran a preflight at all). */\nfunction readPreflightPayload(extensionId, env) {\n\tconst payload = env[preflightEnvVarName(extensionId)];\n\treturn payload === void 0 || payload.length === 0 ? void 0 : payload;\n}\n/** One reader as the deploy prints it, for example `read by service \"shop.email\", field \"apiKey\"`. */\nfunction platformVariableReaderText(reader) {\n\tswitch (reader.kind) {\n\t\tcase \"field\": return `read by service \"${reader.service}\", field \"${reader.path === \"\" ? \"(root)\" : reader.path}\"`;\n\t\tcase \"param\": return `read by service \"${reader.service}\", per-key param \"${reader.param}\"`;\n\t\tcase \"unread\": return `named by ${reader.nodeKind} \"${reader.node}\", read by no service`;\n\t}\n}\nconst isRecord = (value) => typeof value === \"object\" && value !== null && !Array.isArray(value);\nconst isStringArray = (value) => Array.isArray(value) && value.every((member) => typeof member === \"string\");\nfunction isPlatformVariableReader(value) {\n\tif (!isRecord(value)) return false;\n\tswitch (value[\"kind\"]) {\n\t\tcase \"field\": return typeof value[\"service\"] === \"string\" && typeof value[\"path\"] === \"string\";\n\t\tcase \"param\": return typeof value[\"service\"] === \"string\" && typeof value[\"param\"] === \"string\";\n\t\tcase \"unread\": return typeof value[\"node\"] === \"string\" && (value[\"nodeKind\"] === \"module\" || value[\"nodeKind\"] === \"resource\");\n\t\tdefault: return false;\n\t}\n}\nfunction isUnsetPlatformVariable(value) {\n\treturn isRecord(value) && typeof value[\"name\"] === \"string\" && Array.isArray(value[\"readers\"]) && value[\"readers\"].every(isPlatformVariableReader) && isStringArray(value[\"commands\"]);\n}\nfunction isPreflightFindings(value) {\n\treturn isRecord(value) && Array.isArray(value[\"unset\"]) && value[\"unset\"].every(isUnsetPlatformVariable);\n}\n/** The variable that carries every extension's deploy preflight findings from the first process to the second. No extension's preflight variable may take this name. */\nconst PREFLIGHT_FINDINGS_ENV_VAR = \"PRISMA_COMPOSER_PREFLIGHT_FINDINGS\";\n/** The env entry the CLI sets on the second process. It is always set, and empty when nothing was found, so a stale value in the shell never reads as this run's. */\nfunction preflightFindingsEnv(findings) {\n\treturn { [PREFLIGHT_FINDINGS_ENV_VAR]: findings.unset.length === 0 ? \"\" : JSON.stringify(findings) };\n}\n/** The second process's side: the findings the CLI carried, or none. Throws on a value that does not decode: that is a framework bug. */\nfunction readPreflightFindings(env) {\n\tconst text = env[PREFLIGHT_FINDINGS_ENV_VAR];\n\tif (text === void 0 || text.length === 0) return { unset: [] };\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(text);\n\t} catch {\n\t\tparsed = void 0;\n\t}\n\tif (!isPreflightFindings(parsed)) throw new Error(`The deploy check's findings could not be read in the second process (${PREFLIGHT_FINDINGS_ENV_VAR}). This is a Composer bug; deploying again will not fix it.`);\n\treturn parsed;\n}\n//#endregion\nexport { preflightFindingsEnv as a, containerEnv as c, preflightEnvVarName as i, containerEnvVarName as l, platformVariableReaderText as n, readPreflightFindings as o, preflightEnv as r, readPreflightPayload as s, PREFLIGHT_FINDINGS_ENV_VAR as t, deserializeContainers as u };\n\n//# sourceMappingURL=preflight-transport-DmmtoFPH.mjs.map"],"mappings":";;AAEA,SAAS,sBAAsB,aAAa;CAC3C,OAAO,YAAY,YAAY,CAAC,CAAC,QAAQ,eAAe,GAAG,CAAC,CAAC,QAAQ,YAAY,EAAE;AACpF;;AAEA,SAAS,oBAAoB,aAAa;CACzC,OAAO,6BAA6B,sBAAsB,WAAW;AACtE;AACA,SAAS,eAAe,GAAG,GAAG,SAAS;CACtC,uBAAuB,IAAI,MAAM,kBAAkB,EAAE,SAAS,EAAE,kDAAkD,QAAQ,kCAAkC;AAC7J;AACA,SAAS,oBAAoB,aAAa;CACzC,uBAAuB,IAAI,MAAM,cAAc,YAAY,qHAAqH;AACjL;;AAEA,S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AM,QAAQ,CAAC,MAAM,uBAAuB;AACxG;;AAEA,MAAM,6BAA6B;;AAEnC,SAAS,qBAAqB,UAAU;CACvC,OAAO,GAAG,6BAA6B,SAAS,MAAM,WAAW,IAAI,KAAK,KAAK,UAAU,QAAQ,EAAE;AACpG;;AAEA,SAAS,sBAAsB,KAAK;CACnC,MAAM,OAAO,IAAI;CACjB,IAAI,SAAS,KAAK,KAAK,KAAK,WAAW,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE;CAC7D,IAAI;CACJ,IAAI;EACH,SAAS,KAAK,MAAM,IAAI;CACzB,QAAQ;EACP,SAAS,KAAK;CACf;CACA,IAAI,CAAC,oBAAoB,MAAM,GAAG,MAAM,IAAI,MAAM,wEAAwE,2BAA2B,4DAA4D;CACjN,OAAO;AACR"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./config-
|
|
4
|
-
import "./deploy-
|
|
5
|
-
import "./deployment-summary-p88NV5m5-
|
|
6
|
-
import "./index-
|
|
1
|
+
import { Pt as CliStructuredError } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
|
|
2
|
+
import { q as PrismaAppConfig } from "./app-config-UeKFBma7-CohaMmWp.mjs";
|
|
3
|
+
import "./config-BeZEgGCg.mjs";
|
|
4
|
+
import "./deploy-Xi4_JrtE.mjs";
|
|
5
|
+
import "./deployment-summary-p88NV5m5-SgniM8TX.mjs";
|
|
6
|
+
import "./index-DyuwxTtd.mjs";
|
|
7
7
|
//#region ../../0-framework/0-foundation/foundation/dist/result.d.mts
|
|
8
8
|
//#region src/result.d.ts
|
|
9
9
|
/**
|
|
@@ -180,4 +180,4 @@ interface DevSession {
|
|
|
180
180
|
declare function dev(input: DevInput): Promise<Result<DevSession, CliStructuredError>>;
|
|
181
181
|
//#endregion
|
|
182
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-
|
|
183
|
+
//# sourceMappingURL=redaction-Bf8FvTFH-D_HvoMrf.d.mts.map
|
package/dist/{redaction-Bf8FvTFH-1DLg1LoF.d.mts.map → redaction-Bf8FvTFH-D_HvoMrf.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redaction-Bf8FvTFH-
|
|
1
|
+
{"version":3,"file":"redaction-Bf8FvTFH-D_HvoMrf.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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
|
|
2
|
-
//#region ../../0-framework/3-tooling/cli/dist/redaction-
|
|
2
|
+
//#region ../../0-framework/3-tooling/cli/dist/redaction-DXung4ip.mjs
|
|
3
3
|
const REDACTED = "[redacted]";
|
|
4
4
|
/** Env var names whose values are credentials: the service token, preflight payloads, and the usual secret spellings. */
|
|
5
5
|
const SECRET_ENV_NAME = /TOKEN|SECRET|PASSWORD|PASSWD|PRIVATE|CREDENTIAL|AUTH|API_?KEY|ACCESS_?KEY|_KEY$|DATABASE_URL|_DSN$|^PRISMA_COMPOSER_PREFLIGHT_/i;
|
|
@@ -59,9 +59,9 @@ var SecretMatcher = class {
|
|
|
59
59
|
function redactValues(text, values) {
|
|
60
60
|
return new SecretMatcher(values).redact(text);
|
|
61
61
|
}
|
|
62
|
-
/** `text` with bearer and basic tokens, JWTs, the password in a URL, and `token=…`-style pairs replaced by `[redacted]`. */
|
|
62
|
+
/** `text` with bearer and basic tokens, JWTs, the password in a URL, and `token=…`-style pairs replaced by `[redacted]`. The `<value>` placeholder in a printed command is kept. */
|
|
63
63
|
function redactShapes(text) {
|
|
64
|
-
return text.replace(/\b(Bearer|Basic)\s+[\w.~+/=-]+/gi, `$1 ${REDACTED}`).replace(/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, REDACTED).replace(/(\b[a-z][\w+.-]*:\/\/[^\s:/@]*:)[^\s/@]+@/gi, `$1${REDACTED}@`).replace(/\b((?:[\w-]*[_-])?(?:token|secret|password|passwd|api[_-]?key|access[_-]?key|private[_-]?key)["']?\s*[:=]\s*["']?)[^\s"',;&]+/gi, `$1${REDACTED}`);
|
|
64
|
+
return text.replace(/\b(Bearer|Basic)\s+[\w.~+/=-]+/gi, `$1 ${REDACTED}`).replace(/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, REDACTED).replace(/(\b[a-z][\w+.-]*:\/\/[^\s:/@]*:)[^\s/@]+@/gi, `$1${REDACTED}@`).replace(/\b((?:[\w-]*[_-])?(?:token|secret|password|passwd|api[_-]?key|access[_-]?key|private[_-]?key)["']?\s*[:=]\s*["']?)(?!<value>(?:[\s"',;&]|$))[^\s"',;&]+/gi, `$1${REDACTED}`);
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* `text` with the credential-looking values of `env` and the credential shapes replaced by
|
|
@@ -136,6 +136,33 @@ function valuesUnderSecretsKeys(configuration, secrets, secretsKeys) {
|
|
|
136
136
|
value
|
|
137
137
|
}] : []));
|
|
138
138
|
}
|
|
139
|
+
function redactReader(reader, redaction) {
|
|
140
|
+
switch (reader.kind) {
|
|
141
|
+
case "field": return {
|
|
142
|
+
kind: "field",
|
|
143
|
+
service: redaction.redact(reader.service),
|
|
144
|
+
path: redaction.redact(reader.path)
|
|
145
|
+
};
|
|
146
|
+
case "param": return {
|
|
147
|
+
kind: "param",
|
|
148
|
+
service: redaction.redact(reader.service),
|
|
149
|
+
param: redaction.redact(reader.param)
|
|
150
|
+
};
|
|
151
|
+
case "unread": return {
|
|
152
|
+
kind: "unread",
|
|
153
|
+
node: redaction.redact(reader.node),
|
|
154
|
+
nodeKind: reader.nodeKind
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/** `variable` with every text in it redacted: its name, each reader's names and each command. */
|
|
159
|
+
function redactUnsetPlatformVariable(variable, redaction) {
|
|
160
|
+
return {
|
|
161
|
+
name: redaction.redact(variable.name),
|
|
162
|
+
readers: variable.readers.map((reader) => redactReader(reader, redaction)),
|
|
163
|
+
commands: variable.commands.map((command) => redaction.redact(command))
|
|
164
|
+
};
|
|
165
|
+
}
|
|
139
166
|
function redactData(value, redaction) {
|
|
140
167
|
if (typeof value === "string") return redaction.redact(value);
|
|
141
168
|
if (Array.isArray(value)) return value.map((member) => redactData(member, redaction));
|
|
@@ -290,6 +317,6 @@ var StreamRedactor = class {
|
|
|
290
317
|
}
|
|
291
318
|
};
|
|
292
319
|
//#endregion
|
|
293
|
-
export { redactDevEvent as a, redactThrown as c, redactCredentialLooking as i,
|
|
320
|
+
export { redactDevEvent as a, redactThrown as c, redactCredentialLooking as i, redactUnsetPlatformVariable as l, StreamRedactor as n, redactError as o, credentialLookingValues as r, redactSummary as s, SecretRedaction as t, valuesUnderSecretsKeys as u };
|
|
294
321
|
|
|
295
|
-
//# sourceMappingURL=redaction-
|
|
322
|
+
//# sourceMappingURL=redaction-DXung4ip-bBoNomi3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redaction-DXung4ip-bBoNomi3.mjs","names":["#names"],"sources":["../../../0-framework/3-tooling/cli/dist/redaction-DXung4ip.mjs"],"sourcesContent":["import { CliStructuredError } from \"@internal/foundation/errors\";\n//#region src/redaction.ts\nconst REDACTED = \"[redacted]\";\n/** Env var names whose values are credentials: the service token, preflight payloads, and the usual secret spellings. */\nconst SECRET_ENV_NAME = /TOKEN|SECRET|PASSWORD|PASSWD|PRIVATE|CREDENTIAL|AUTH|API_?KEY|ACCESS_?KEY|_KEY$|DATABASE_URL|_DSN$|^PRISMA_COMPOSER_PREFLIGHT_/i;\n/**\n* The credential-looking values in `variables`: text of eight characters or more under a name\n* that looks like a credential's. The length limit keeps a one-letter placeholder from blanking\n* every matching letter.\n*/\nfunction credentialLookingValues(variables) {\n\treturn Object.entries(variables).flatMap(([name, value]) => SECRET_ENV_NAME.test(name) && typeof value === \"string\" && value.length >= 8 ? [value] : []);\n}\n/**\n* Finds every secret in a text: one regular expression for all of them, built once. A match\n* is the span of the longest secret that starts at a position, and spans that overlap are\n* merged, so two overlapping secrets are hidden whole.\n*/\nvar SecretMatcher = class {\n\tstarts;\n\tprefixes = /* @__PURE__ */ new Set();\n\tlongestPrefix;\n\tconstructor(values) {\n\t\tconst sorted = [...new Set(values)].filter((value) => value.length > 0).sort((a, b) => b.length - a.length);\n\t\tthis.starts = sorted.length === 0 ? void 0 : new RegExp(`(?=(${sorted.map((value) => value.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")).join(\"|\")}))`, \"g\");\n\t\tfor (const value of sorted) for (let length = 1; length < value.length; length++) this.prefixes.add(value.slice(0, length));\n\t\tthis.longestPrefix = Math.max(0, (sorted[0]?.length ?? 0) - 1);\n\t}\n\t/** The merged spans of every secret in `text`, in order, as `[start, end)`. */\n\tspans(text) {\n\t\tconst spans = [];\n\t\tif (this.starts === void 0) return spans;\n\t\tfor (const match of text.matchAll(this.starts)) {\n\t\t\tconst start = match.index;\n\t\t\tconst end = start + (match[1]?.length ?? 0);\n\t\t\tconst last = spans.at(-1);\n\t\t\tif (last !== void 0 && start < last[1]) last[1] = Math.max(last[1], end);\n\t\t\telse spans.push([start, end]);\n\t\t}\n\t\treturn spans;\n\t}\n\t/** The length of the longest end of `text` that is the start, not the whole, of a secret. */\n\tstartOfSecretAtEnd(text) {\n\t\tfor (let length = Math.min(this.longestPrefix, text.length); length > 0; length--) if (this.prefixes.has(text.slice(text.length - length))) return length;\n\t\treturn 0;\n\t}\n\t/** `text` with each span replaced by `[redacted]`. */\n\tredact(text) {\n\t\tlet out = \"\";\n\t\tlet from = 0;\n\t\tfor (const [start, end] of this.spans(text)) {\n\t\t\tout += text.slice(from, start) + REDACTED;\n\t\t\tfrom = end;\n\t\t}\n\t\treturn from === 0 ? text : out + text.slice(from);\n\t}\n};\n/** `text` with each value in `values` replaced by `[redacted]`, at any length; an empty one is skipped. Overlapping values are hidden whole. */\nfunction redactValues(text, values) {\n\treturn new SecretMatcher(values).redact(text);\n}\n/** `text` with bearer and basic tokens, JWTs, the password in a URL, and `token=…`-style pairs replaced by `[redacted]`. The `<value>` placeholder in a printed command is kept. */\nfunction redactShapes(text) {\n\treturn text.replace(/\\b(Bearer|Basic)\\s+[\\w.~+/=-]+/gi, `$1 ${REDACTED}`).replace(/\\beyJ[\\w-]+\\.[\\w-]+\\.[\\w-]*/g, REDACTED).replace(/(\\b[a-z][\\w+.-]*:\\/\\/[^\\s:/@]*:)[^\\s/@]+@/gi, `$1${REDACTED}@`).replace(/\\b((?:[\\w-]*[_-])?(?:token|secret|password|passwd|api[_-]?key|access[_-]?key|private[_-]?key)[\"']?\\s*[:=]\\s*[\"']?)(?!<value>(?:[\\s\"',;&]|$))[^\\s\"',;&]+/gi, `$1${REDACTED}`);\n}\n/**\n* `text` with the credential-looking values of `env` and the credential shapes replaced by\n* `[redacted]`. For a process that has no `SecretRedaction`; `SecretRedaction.redact` hides\n* the known secrets too.\n*/\nfunction redactCredentialLooking(text, env) {\n\treturn redactShapes(redactValues(text, credentialLookingValues(env)));\n}\n/**\n* The known secrets of one command: the values under the secrets keys the graph names, in the app\n* secrets and the app configuration (ADR-0062). The app configuration file must not hold any of them.\n*/\nvar KnownSecrets = class {\n\t#names = /* @__PURE__ */ new Map();\n\tconstructor(secrets = []) {\n\t\tthis.add(secrets);\n\t}\n\t/** Adds each secret whose value is not empty. A value already known keeps its first name. */\n\tadd(secrets) {\n\t\tfor (const { name, value } of secrets) if (value.length > 0 && !this.#names.has(value)) this.#names.set(value, name);\n\t}\n\tvalues() {\n\t\treturn new Set(this.#names.keys());\n\t}\n\t/**\n\t* The name of a known secret `text` holds, or undefined. A secret of\n\t* `MIN_SECRET_LENGTH_INSIDE_A_VALUE` characters or more is found anywhere in `text`; a shorter\n\t* one only when it is all of `text`.\n\t*/\n\tnameIn(text) {\n\t\tfor (const [value, name] of this.#names) if (value.length >= 8 ? text.includes(value) : text === value) return name;\n\t}\n};\n/**\n* What one command hides from everything it prints, returns or reports (ADR-0062): its known\n* secrets, and the credential-looking values, which only look like secrets by the name of the\n* variable they are under. It starts with the credential-looking values of the process\n* environment.\n*/\nvar SecretRedaction = class {\n\tknownSecrets = new KnownSecrets();\n\tcredentialLooking = /* @__PURE__ */ new Set();\n\tmatcher;\n\tconstructor(env) {\n\t\tthis.addCredentialLookingValues(credentialLookingValues(env));\n\t}\n\taddKnownSecrets(secrets) {\n\t\tthis.knownSecrets.add(secrets);\n\t}\n\taddCredentialLookingValues(values) {\n\t\tfor (const value of values) if (value.length > 0) this.credentialLooking.add(value);\n\t}\n\t/** The known secrets and the credential-looking values, longest first. */\n\tallValues() {\n\t\treturn [.../* @__PURE__ */ new Set([...this.knownSecrets.values(), ...this.credentialLooking])].sort((a, b) => b.length - a.length);\n\t}\n\t/** `text` with every known secret and credential-looking value replaced by `[redacted]` at any length, then bearer tokens, JWTs, URL passwords and `token=…` pairs. */\n\tredact(text) {\n\t\tconst size = this.knownSecrets.values().size + this.credentialLooking.size;\n\t\tif (this.matcher?.size !== size) this.matcher = {\n\t\t\tsize,\n\t\t\tmatcher: new SecretMatcher(this.allValues())\n\t\t};\n\t\treturn redactShapes(this.matcher.matcher.redact(text));\n\t}\n};\n/** The text under each name in `secretsKeys`, in the app configuration and in the app secrets, at any length. */\nfunction valuesUnderSecretsKeys(configuration, secrets, secretsKeys) {\n\treturn secretsKeys.flatMap((name) => [configuration[name], secrets[name]].flatMap((value) => typeof value === \"string\" ? [{\n\t\tname,\n\t\tvalue\n\t}] : []));\n}\nfunction redactReader(reader, redaction) {\n\tswitch (reader.kind) {\n\t\tcase \"field\": return {\n\t\t\tkind: \"field\",\n\t\t\tservice: redaction.redact(reader.service),\n\t\t\tpath: redaction.redact(reader.path)\n\t\t};\n\t\tcase \"param\": return {\n\t\t\tkind: \"param\",\n\t\t\tservice: redaction.redact(reader.service),\n\t\t\tparam: redaction.redact(reader.param)\n\t\t};\n\t\tcase \"unread\": return {\n\t\t\tkind: \"unread\",\n\t\t\tnode: redaction.redact(reader.node),\n\t\t\tnodeKind: reader.nodeKind\n\t\t};\n\t}\n}\n/** `variable` with every text in it redacted: its name, each reader's names and each command. */\nfunction redactUnsetPlatformVariable(variable, redaction) {\n\treturn {\n\t\tname: redaction.redact(variable.name),\n\t\treaders: variable.readers.map((reader) => redactReader(reader, redaction)),\n\t\tcommands: variable.commands.map((command) => redaction.redact(command))\n\t};\n}\nfunction redactData(value, redaction) {\n\tif (typeof value === \"string\") return redaction.redact(value);\n\tif (Array.isArray(value)) return value.map((member) => redactData(member, redaction));\n\tif (typeof value === \"object\" && value !== null && Object.getPrototypeOf(value) === Object.prototype) return Object.fromEntries(Object.entries(value).map(([key, member]) => [key, redactData(member, redaction)]));\n\treturn value;\n}\n/**\n* `error` with every value `redaction` hides removed from its summary, `why`, `fix` and every string in\n* its `meta`. The code, severity, `where` and docs link are kept. The cause is dropped, because\n* it holds the same text unredacted and a renderer may print it.\n*/\nfunction redactError(error, redaction) {\n\treturn new CliStructuredError(error.code, redaction.redact(error.message), {\n\t\tseverity: error.severity,\n\t\t...error.why === void 0 ? {} : { why: redaction.redact(error.why) },\n\t\t...error.fix === void 0 ? {} : { fix: redaction.redact(error.fix) },\n\t\t...error.where === void 0 ? {} : { where: error.where },\n\t\t...error.meta === void 0 ? {} : { meta: Object.fromEntries(Object.entries(error.meta).map(([key, value]) => [key, redactData(value, redaction)])) },\n\t\t...error.docsUrl === void 0 ? {} : { docsUrl: error.docsUrl }\n\t});\n}\nfunction setOwn(error, name, value) {\n\tObject.defineProperty(error, name, {\n\t\tvalue,\n\t\twritable: true,\n\t\tconfigurable: true\n\t});\n}\nconst UNPRINTABLE = \"A value was thrown that cannot be turned into text.\";\nfunction safeString(value) {\n\ttry {\n\t\treturn String(value);\n\t} catch {\n\t\ttry {\n\t\t\treturn Object.prototype.toString.call(value);\n\t\t} catch {\n\t\t\treturn UNPRINTABLE;\n\t\t}\n\t}\n}\n/**\n* The error to rethrow in place of a thrown defect, with every secret removed from its message\n* and stack, and from those of each error in its `cause` chain and in an `AggregateError`'s\n* `errors`. A cause that is text or plain data becomes a redacted copy. Each error is redacted\n* in place where it can be. One whose properties cannot change, such as a frozen error, is\n* replaced by a new error with the redacted message, stack and cause. A thrown value that is not\n* an `Error` becomes an `Error` whose message is its redacted text. Never throws: when reading\n* the error fails, the result is a new `Error` holding the redacted text of what was thrown.\n*/\nfunction redactThrown(thrown, redaction) {\n\ttry {\n\t\treturn thrown instanceof Error ? redactErrorChain(thrown, redaction, /* @__PURE__ */ new Map()) : new Error(redaction.redact(safeString(thrown)));\n\t} catch {\n\t\treturn new Error(redaction.redact(safeString(thrown)));\n\t}\n}\nfunction redactErrorChain(error, redaction, seen) {\n\tconst done = seen.get(error);\n\tif (done !== void 0) return done;\n\tseen.set(error, error);\n\tconst message = redaction.redact(typeof error.message === \"string\" ? error.message : safeString(error.message));\n\tconst stack = typeof error.stack === \"string\" ? redaction.redact(error.stack) : void 0;\n\tconst cause = error.cause instanceof Error ? redactErrorChain(error.cause, redaction, seen) : redactData(error.cause, redaction);\n\tconst members = error instanceof AggregateError ? error.errors.map((member) => member instanceof Error ? redactErrorChain(member, redaction, seen) : redactData(member, redaction)) : void 0;\n\ttry {\n\t\tsetOwn(error, \"message\", message);\n\t\tif (stack !== void 0) setOwn(error, \"stack\", stack);\n\t\tif (error.cause !== void 0) setOwn(error, \"cause\", cause);\n\t\tif (members !== void 0) setOwn(error, \"errors\", members);\n\t\treturn error;\n\t} catch {\n\t\tconst options = cause === void 0 ? void 0 : { cause };\n\t\tconst copy = members === void 0 ? new Error(message, options) : new AggregateError(members, message, options);\n\t\tcopy.name = error.name;\n\t\tsetOwn(copy, \"stack\", stack ?? `${error.name}: ${message}`);\n\t\tseen.set(error, copy);\n\t\treturn copy;\n\t}\n}\n/** `event` with every value `redaction` hides removed from the text it carries: a message, or a dev server's output line. */\nfunction redactDevEvent(event, redaction) {\n\tswitch (event.kind) {\n\t\tcase \"target-warning\":\n\t\tcase \"rebuild-failed\":\n\t\tcase \"watch-error\":\n\t\tcase \"stop-error\": return {\n\t\t\t...event,\n\t\t\tmessage: redaction.redact(event.message)\n\t\t};\n\t\tcase \"dev-server-output\": return {\n\t\t\t...event,\n\t\t\tline: redaction.redact(event.line)\n\t\t};\n\t\tdefault: return event;\n\t}\n}\n/** `summary` with every value `redaction` hides removed from each entity's id, url and details. */\nfunction redactSummary(summary, redaction) {\n\tif (summary === void 0) return void 0;\n\treturn {\n\t\tapp: summary.app,\n\t\tnodes: summary.nodes.map((node) => ({\n\t\t\taddress: node.address,\n\t\t\tentities: node.entities.map((entity) => ({\n\t\t\t\t...entity,\n\t\t\t\tid: redaction.redact(entity.id),\n\t\t\t\t...entity.url === void 0 ? {} : { url: redaction.redact(entity.url) },\n\t\t\t\t...entity.details === void 0 ? {} : { details: Object.fromEntries(Object.entries(entity.details).map(([key, value]) => [key, redaction.redact(value)])) }\n\t\t\t}))\n\t\t}))\n\t};\n}\nfunction isHighSurrogate(code) {\n\treturn code >= 55296 && code <= 56319;\n}\n/**\n* Redacts a stream of text chunk by chunk: every value in `values` becomes `[redacted]`, and\n* overlapping values are hidden whole. It holds back only the end of the text that could still\n* be part of a value: the longest end that could start one, or a match that a later value could\n* extend. So a value split across two chunks is still replaced, and text that cannot start one,\n* such as a prompt, is returned at once. It never splits a surrogate pair. `push` returns the\n* text that is ready; `end` returns the rest.\n*/\nvar StreamRedactor = class {\n\theld = \"\";\n\tmatcher;\n\tconstructor(values) {\n\t\tthis.matcher = new SecretMatcher(values);\n\t}\n\tpush(chunk) {\n\t\tconst text = this.held + chunk;\n\t\tconst cut = text.length - this.matcher.startOfSecretAtEnd(text);\n\t\tlet out = \"\";\n\t\tlet from = 0;\n\t\tlet ready = cut;\n\t\tfor (const [start, end] of this.matcher.spans(text)) {\n\t\t\tif (end > cut) {\n\t\t\t\tready = Math.min(cut, start);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tout += text.slice(from, start) + REDACTED;\n\t\t\tfrom = end;\n\t\t}\n\t\tif (ready > from && ready < text.length && isHighSurrogate(text.charCodeAt(ready - 1))) ready -= 1;\n\t\tthis.held = text.slice(ready);\n\t\treturn out + text.slice(from, ready);\n\t}\n\tend() {\n\t\tconst text = this.held;\n\t\tthis.held = \"\";\n\t\treturn this.matcher.redact(text);\n\t}\n};\n//#endregion\nexport { redactCredentialLooking as a, redactSummary as c, valuesUnderSecretsKeys as d, credentialLookingValues as i, redactThrown as l, SecretRedaction as n, redactDevEvent as o, StreamRedactor as r, redactError as s, KnownSecrets as t, redactUnsetPlatformVariable as u };\n\n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|
|
3
|
-
import { r as captureEngineFailure } from "./deployment-summary-p88NV5m5-
|
|
1
|
+
import { v as DeploymentResult } from "./app-config-UeKFBma7-CohaMmWp.mjs";
|
|
2
|
+
import "./deploy-Xi4_JrtE.mjs";
|
|
3
|
+
import { r as captureEngineFailure } from "./deployment-summary-p88NV5m5-SgniM8TX.mjs";
|
|
4
4
|
//#region ../../0-framework/3-tooling/cli/dist/report.d.mts
|
|
5
5
|
//#region src/render-deployment.d.ts
|
|
6
6
|
/**
|
package/dist/report.mjs
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as platformVariableReaderText } from "./preflight-transport-DmmtoFPH-CnDWufmu.mjs";
|
|
2
|
+
import { n as captureEngineFailure, o as writeDeploymentSummaryFile } from "./deployment-summary-D74WrJX7-DQ3LDUuO.mjs";
|
|
3
|
+
//#region ../../0-framework/3-tooling/cli/dist/unset-platform-variables-B0aMhHaR.mjs
|
|
4
|
+
const variableLines = (variable) => [variable.readers.length === 0 ? ` - ${variable.name}` : ` - ${variable.name} (${variable.readers.map(platformVariableReaderText).join("; ")})`, ...variable.commands.map((command) => ` ${command}`)];
|
|
5
|
+
function unsetPlatformVariablesText(unset) {
|
|
6
|
+
if (unset.length === 0) return void 0;
|
|
7
|
+
return ["Platform variables with no value:", ...unset.flatMap(variableLines)].join("\n");
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
2
10
|
//#region ../../0-framework/3-tooling/cli/dist/report.mjs
|
|
3
11
|
/** Gap between the deepest tree label and the entity column. */
|
|
4
12
|
const LABEL_GAP = 3;
|
|
@@ -69,6 +77,8 @@ function renderDeployment(result) {
|
|
|
69
77
|
}
|
|
70
78
|
});
|
|
71
79
|
}
|
|
80
|
+
const unset = unsetPlatformVariablesText(result.findings.unset);
|
|
81
|
+
if (unset !== void 0) lines.push("", unset);
|
|
72
82
|
return lines.join("\n");
|
|
73
83
|
}
|
|
74
84
|
/**
|
package/dist/report.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/report.mjs"],"sourcesContent":["import { n as captureEngineFailure, o as writeDeploymentSummaryFile } from \"./deployment-summary-
|
|
1
|
+
{"version":3,"file":"report.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/unset-platform-variables-B0aMhHaR.mjs","../../../0-framework/3-tooling/cli/dist/report.mjs"],"sourcesContent":["import { platformVariableReaderText } from \"@internal/core/config\";\n//#region src/unset-platform-variables.ts\nconst variableLines = (variable) => [variable.readers.length === 0 ? ` - ${variable.name}` : ` - ${variable.name} (${variable.readers.map(platformVariableReaderText).join(\"; \")})`, ...variable.commands.map((command) => ` ${command}`)];\nfunction unsetPlatformVariablesText(unset) {\n\tif (unset.length === 0) return void 0;\n\treturn [\"Platform variables with no value:\", ...unset.flatMap(variableLines)].join(\"\\n\");\n}\n//#endregion\nexport { unsetPlatformVariablesText as t };\n\n//# sourceMappingURL=unset-platform-variables-B0aMhHaR.mjs.map","import { n as captureEngineFailure, o as writeDeploymentSummaryFile } from \"./deployment-summary-D74WrJX7.mjs\";\nimport { t as unsetPlatformVariablesText } from \"./unset-platform-variables-B0aMhHaR.mjs\";\n//#region src/render-deployment.ts\n/** Gap between the deepest tree label and the entity column. */\nconst LABEL_GAP = 3;\nconst emptyNode = (segment) => ({\n\tsegment,\n\tchildren: /* @__PURE__ */ new Map()\n});\n/** Builds the address tree, splitting each dot-address into its segments. */\nfunction buildTree(nodes) {\n\tconst root = emptyNode(\"\");\n\tfor (const deployed of nodes) {\n\t\tlet node = root;\n\t\tfor (const segment of deployed.address.split(\".\")) {\n\t\t\tlet child = node.children.get(segment);\n\t\t\tif (child === void 0) {\n\t\t\t\tchild = emptyNode(segment);\n\t\t\t\tnode.children.set(segment, child);\n\t\t\t}\n\t\t\tnode = child;\n\t\t}\n\t\tnode.deployed = deployed;\n\t}\n\treturn root;\n}\n/** Flattens the tree to rows in address order, drawing the box guides. */\nfunction toRows(node, guides, rows) {\n\tconst children = Array.from(node.children.values());\n\tchildren.forEach((child, index) => {\n\t\tconst isLast = index === children.length - 1;\n\t\trows.push({\n\t\t\tlabel: `${guides}${isLast ? \"└─ \" : \"├─ \"}${child.segment}`,\n\t\t\tcontinuation: `${guides}${isLast ? \" \" : \"│ \"}`,\n\t\t\tdeployed: child.deployed\n\t\t});\n\t\ttoRows(child, `${guides}${isLast ? \" \" : \"│ \"}`, rows);\n\t});\n}\n/** `kind id` — the one line an entity gets. */\nconst entityLine = (entity) => `${entity.kind} ${entity.id}`;\n/** Pads `prefix` out to `width`, so every entity starts in the same column. */\nconst pad = (prefix, width) => prefix.padEnd(width, \" \");\n/**\n* Renders a deploy's result as the app's own topology. Pure — returns the\n* string; the caller prints.\n*/\nfunction renderDeployment(result) {\n\tconst rows = [];\n\tconst tree = buildTree(result.nodes);\n\ttoRows(tree.children.get(result.app) ?? tree, \"\", rows);\n\tconst column = Math.max(0, ...rows.map((row) => row.label.length)) + LABEL_GAP;\n\tconst lines = [result.app];\n\tfor (const row of rows) {\n\t\tif (row.deployed === void 0) {\n\t\t\tlines.push(row.label);\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.deployed.entities.length === 0) {\n\t\t\tlines.push(`${pad(row.label, column)}(no entities reported)`);\n\t\t\tcontinue;\n\t\t}\n\t\trow.deployed.entities.forEach((entity, index) => {\n\t\t\tconst prefix = index === 0 ? row.label : row.continuation;\n\t\t\tlines.push(`${pad(prefix, column)}${entityLine(entity)}`);\n\t\t\tif (entity.url !== void 0) lines.push(`${pad(row.continuation, column)}${entity.url}`);\n\t\t\tfor (const [key, value] of Object.entries(entity.details ?? {})) {\n\t\t\t\tif (value === \"\") continue;\n\t\t\t\tfor (const line of value.split(\"\\n\")) lines.push(`${pad(row.continuation, column)}${key} ${line}`);\n\t\t\t}\n\t\t});\n\t}\n\tconst unset = unsetPlatformVariablesText(result.findings.unset);\n\tif (unset !== void 0) lines.push(\"\", unset);\n\treturn lines.join(\"\\n\");\n}\n/**\n* The report hook the generated stack file wires into `LowerOptions`. Prints a\n* leading blank line so the summary separates from alchemy's own apply output,\n* then hands the result to the cross-process writer (deployment-summary.ts).\n*/\nfunction deploymentReport(result) {\n\tconsole.log(\"\");\n\tconsole.log(renderDeployment(result));\n\twriteDeploymentSummaryFile(result);\n}\n//#endregion\nexport { captureEngineFailure, deploymentReport, renderDeployment };\n\n//# sourceMappingURL=report.mjs.map"],"mappings":";;;AAEA,MAAM,iBAAiB,aAAa,CAAC,SAAS,QAAQ,WAAW,IAAI,OAAO,SAAS,SAAS,OAAO,SAAS,KAAK,KAAK,SAAS,QAAQ,IAAI,0BAA0B,CAAC,CAAC,KAAK,IAAI,EAAE,IAAI,GAAG,SAAS,SAAS,KAAK,YAAY,OAAO,SAAS,CAAC;AAC/O,SAAS,2BAA2B,OAAO;CAC1C,IAAI,MAAM,WAAW,GAAG,OAAO,KAAK;CACpC,OAAO,CAAC,qCAAqC,GAAG,MAAM,QAAQ,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI;AACxF;;;;ACFA,MAAM,YAAY;AAClB,MAAM,aAAa,aAAa;CAC/B;CACA,0BAA0B,IAAI,IAAI;AACnC;;AAEA,SAAS,UAAU,OAAO;CACzB,MAAM,OAAO,UAAU,EAAE;CACzB,KAAK,MAAM,YAAY,OAAO;EAC7B,IAAI,OAAO;EACX,KAAK,MAAM,WAAW,SAAS,QAAQ,MAAM,GAAG,GAAG;GAClD,IAAI,QAAQ,KAAK,SAAS,IAAI,OAAO;GACrC,IAAI,UAAU,KAAK,GAAG;IACrB,QAAQ,UAAU,OAAO;IACzB,KAAK,SAAS,IAAI,SAAS,KAAK;GACjC;GACA,OAAO;EACR;EACA,KAAK,WAAW;CACjB;CACA,OAAO;AACR;;AAEA,SAAS,OAAO,MAAM,QAAQ,MAAM;CACnC,MAAM,WAAW,MAAM,KAAK,KAAK,SAAS,OAAO,CAAC;CAClD,SAAS,SAAS,OAAO,UAAU;EAClC,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K,MAAM,QAAQ,MAAM,MAAM,IAAI,GAAG,MAAM,KAAK,GAAG,IAAI,IAAI,cAAc,MAAM,IAAI,IAAI,GAAG,MAAM;GAClG;EACD,CAAC;CACF;CACA,MAAM,QAAQ,2BAA2B,OAAO,SAAS,KAAK;CAC9D,IAAI,UAAU,KAAK,GAAG,MAAM,KAAK,IAAI,KAAK;CAC1C,OAAO,MAAM,KAAK,IAAI;AACvB;;;;;;AAMA,SAAS,iBAAiB,QAAQ;CACjC,QAAQ,IAAI,EAAE;CACd,QAAQ,IAAI,iBAAiB,MAAM,CAAC;CACpC,2BAA2B,MAAM;AAClC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
|
|
2
|
-
import { n as StreamRedactor } from "./redaction-
|
|
2
|
+
import { n as StreamRedactor } from "./redaction-DXung4ip-bBoNomi3.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import * as fs$1 from "node:fs";
|
|
6
6
|
import spawn from "cross-spawn";
|
|
7
|
-
//#region ../../0-framework/3-tooling/cli/dist/run-alchemy-
|
|
7
|
+
//#region ../../0-framework/3-tooling/cli/dist/run-alchemy-CRLAyOtt.mjs
|
|
8
8
|
/**
|
|
9
9
|
* Which Alchemy CLI runs a generated stack file: the `alchemy` that
|
|
10
10
|
* `@prisma/composer` depends on, found from the app the way the stack file's
|
|
@@ -233,4 +233,4 @@ function spawnCommandLine(line, redactedValues, outputs = process) {
|
|
|
233
233
|
//#endregion
|
|
234
234
|
export { reproduceCommand as n, spawnAlchemy as r, alchemyInvocation as t };
|
|
235
235
|
|
|
236
|
-
//# sourceMappingURL=run-alchemy-
|
|
236
|
+
//# sourceMappingURL=run-alchemy-CRLAyOtt-CBUV28We.mjs.map
|