@prisma/composer 0.36.0-dev.2 → 0.36.0-dev.3

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.
Files changed (56) hide show
  1. package/dist/{app-config-CWm3wlNA-BVGreP8x.d.mts → app-config-8nfo_ECP-DngN6Z3i.d.mts} +4 -4
  2. package/dist/{app-config-CWm3wlNA-BVGreP8x.d.mts.map → app-config-8nfo_ECP-DngN6Z3i.d.mts.map} +1 -1
  3. package/dist/config-cJwLd_Uj.d.mts +1 -0
  4. package/dist/config.d.mts +2 -2
  5. package/dist/control.d.mts +6 -6
  6. package/dist/control.mjs +3 -3
  7. package/dist/deploy-cJwLd_Uj.d.mts +1 -0
  8. package/dist/deploy.d.mts +2 -2
  9. package/dist/deploy.mjs +1 -1
  10. package/dist/deploy.mjs.map +1 -1
  11. package/dist/{deployment-summary-p88NV5m5-C2gLUQ8l.d.mts → deployment-summary-p88NV5m5-BZ4RWg1k.d.mts} +3 -3
  12. package/dist/{deployment-summary-p88NV5m5-C2gLUQ8l.d.mts.map → deployment-summary-p88NV5m5-BZ4RWg1k.d.mts.map} +1 -1
  13. package/dist/{dev-current-BNoPkDRU-CtQMfn60.mjs → dev-current-BNoPkDRU-qQ5hObmB.mjs} +4 -4
  14. package/dist/{dev-current-BNoPkDRU-CtQMfn60.mjs.map → dev-current-BNoPkDRU-qQ5hObmB.mjs.map} +1 -1
  15. package/dist/{dist-CZ_yEZ7F.mjs → dist-CQVqb52E.mjs} +2 -3
  16. package/dist/{dist-CZ_yEZ7F.mjs.map → dist-CQVqb52E.mjs.map} +1 -1
  17. package/dist/{execute-deploy-destroy-BIqwt1RF-CP2mVGW_.mjs → execute-deploy-destroy-BIqwt1RF-B83XdRmn.mjs} +3 -3
  18. package/dist/{execute-deploy-destroy-BIqwt1RF-CP2mVGW_.mjs.map → execute-deploy-destroy-BIqwt1RF-B83XdRmn.mjs.map} +1 -1
  19. package/dist/{execute-dev-DIEyloWn-C0jgWe-M.mjs → execute-dev-DIEyloWn-L5AXbxEF.mjs} +3 -3
  20. package/dist/{execute-dev-DIEyloWn-C0jgWe-M.mjs.map → execute-dev-DIEyloWn-L5AXbxEF.mjs.map} +1 -1
  21. package/dist/{execute-dev-current-CeKI-tiC-DVTy30tU.mjs → execute-dev-current-CeKI-tiC-BMAsygzx.mjs} +3 -3
  22. package/dist/{execute-dev-current-CeKI-tiC-DVTy30tU.mjs.map → execute-dev-current-CeKI-tiC-BMAsygzx.mjs.map} +1 -1
  23. package/dist/{execute-log-DA5AAQAA-ByUrxpMJ.mjs → execute-log-DA5AAQAA-CBNrz-1p.mjs} +3 -3
  24. package/dist/{execute-log-DA5AAQAA-ByUrxpMJ.mjs.map → execute-log-DA5AAQAA-CBNrz-1p.mjs.map} +1 -1
  25. package/dist/{graph-BzTSXnoQ-BvGVq0bm.d.mts → graph-Dahnws6W-yKmoqSdc.d.mts} +3 -3
  26. package/dist/graph-Dahnws6W-yKmoqSdc.d.mts.map +1 -0
  27. package/dist/{graph-MGOZJdDt-CyI8-9r7.mjs → graph-KEuXGBfJ-BfR6EMoN.mjs} +228 -19
  28. package/dist/graph-KEuXGBfJ-BfR6EMoN.mjs.map +1 -0
  29. package/dist/{graph-types-DfsG9Rkg-D_ARjMo7.d.mts → graph-types-Bn3tSF4x-BuHwUsq4.d.mts} +70 -32
  30. package/dist/graph-types-Bn3tSF4x-BuHwUsq4.d.mts.map +1 -0
  31. package/dist/http.d.mts +2 -2
  32. package/dist/http.mjs +2 -2
  33. package/dist/{index-D89ftK2z.d.mts → index-Ba2dpziF.d.mts} +3 -3
  34. package/dist/{index-D89ftK2z.d.mts.map → index-Ba2dpziF.d.mts.map} +1 -1
  35. package/dist/index.d.mts +4 -4
  36. package/dist/index.mjs +2 -2
  37. package/dist/local-target.d.mts +1 -1
  38. package/dist/{nextjs-DLyeRR7M-BeiYsLuZ.d.mts → nextjs-DLyeRR7M-CNdHQRgH.d.mts} +3 -3
  39. package/dist/{nextjs-DLyeRR7M-BeiYsLuZ.d.mts.map → nextjs-DLyeRR7M-CNdHQRgH.d.mts.map} +1 -1
  40. package/dist/nextjs-control.d.mts +4 -4
  41. package/dist/nextjs.d.mts +1 -1
  42. package/dist/node-control.d.mts +3 -3
  43. package/dist/node.d.mts +2 -2
  44. package/dist/report.d.mts +3 -3
  45. package/dist/service-rpc.d.mts +2 -2
  46. package/dist/service-rpc.mjs +2 -2
  47. package/dist/testing.d.mts +1 -1
  48. package/dist/{validate-environment-CEhUSEg2-DmAtiQhe.mjs → validate-environment-CEhUSEg2-D3vECWQz.mjs} +3 -3
  49. package/dist/{validate-environment-CEhUSEg2-DmAtiQhe.mjs.map → validate-environment-CEhUSEg2-D3vECWQz.mjs.map} +1 -1
  50. package/package.json +11 -11
  51. package/skills/prisma-composer-core-concepts/SKILL.md +11 -4
  52. package/dist/config-BSdGEsYV.d.mts +0 -1
  53. package/dist/deploy-BSdGEsYV.d.mts +0 -1
  54. package/dist/graph-BzTSXnoQ-BvGVq0bm.d.mts.map +0 -1
  55. package/dist/graph-MGOZJdDt-CyI8-9r7.mjs.map +0 -1
  56. package/dist/graph-types-DfsG9Rkg-D_ARjMo7.d.mts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-KEuXGBfJ-BfR6EMoN.mjs","names":[],"sources":["../../../0-framework/1-core/core/dist/graph-KEuXGBfJ.mjs"],"sourcesContent":["import { SecretBox, isSecretString } from \"@internal/foundation/secret\";\nimport { CliStructuredError, InternalError } from \"@internal/foundation/errors\";\nimport { blindCast } from \"@internal/foundation/casts\";\n//#region src/graph-types.ts\n/** The reserved name of a resource's single anonymous output port. Rejected as a user-declared port name (node.ts). */\nconst RESOURCE_OUT_PORT = \"$out\";\n/**\n* Thrown by Load when the graph is malformed. Structured at origin\n* (base-type rule 6): one type-level code covers every raise site until a\n* finer per-site taxonomy is carved out. The `name` stays\n* `CliStructuredError` — structural recognition depends on it.\n*/\nvar LoadError = class extends CliStructuredError {\n\tconstructor(message, options) {\n\t\tsuper(\"COMPOSE.GRAPH_INVALID\", message, options);\n\t}\n};\n//#endregion\n//#region src/contract.ts\n/** The declared style of an untrusted contract value, or `undefined` when it declares none. */\nfunction contractStyleOf(contract) {\n\tif (typeof contract !== \"object\" || contract === null || !(\"style\" in contract)) return void 0;\n\treturn contract.style === \"request-response\" || contract.style === \"stream\" ? contract.style : void 0;\n}\n//#endregion\n//#region src/value.ts\nconst VALUE = blindCast(Symbol.for(\"prisma:value\"));\nconst VALUE_ORIGIN = blindCast(Symbol.for(\"prisma:value-origin\"));\n/**\n* A value computed from other values. `fn` receives the dependencies' real\n* values as one tuple, in order, and returns plain data. Load runs it after\n* every module body, with `provision` disabled (ADR-0062). `fn` must be a pure\n* function of its dependencies: a deploy runs it in two processes.\n*/\nfunction resolve(dependencies, fn) {\n\tif (!Array.isArray(dependencies)) throw new Error(\"resolve() requires a tuple of values as its first argument.\");\n\tdependencies.forEach((dependency, index) => {\n\t\tif (!isValue(dependency)) throw new Error(`resolve() dependency at index ${index} is not a value — list environment.name or another resolve() result.`);\n\t});\n\tif (typeof fn !== \"function\") throw new Error(\"resolve() requires a function as its second argument.\");\n\tconst frozenDependencies = Object.freeze([...dependencies]);\n\tconst compute = blindCast(fn);\n\treturn Object.freeze({\n\t\t[VALUE]: true,\n\t\t[VALUE_ORIGIN]: Object.freeze({\n\t\t\tkind: \"computed\",\n\t\t\tdependencies: frozenDependencies,\n\t\t\tcompute\n\t\t})\n\t});\n}\n/** True if `value` is a `Value` (checks the brand only, never a prototype). */\nfunction isValue(value) {\n\treturn typeof value === \"object\" && value !== null && blindCast(value)[VALUE] === true;\n}\n/** True for an object whose prototype is `Object.prototype` or `null`: the only objects Load walks into. */\nfunction isPlainObject(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn prototype === Object.prototype || prototype === null;\n}\n/** Where Load gets `value`'s real value. Internal to core. */\nfunction originOf(value) {\n\treturn value[VALUE_ORIGIN];\n}\n/** The one `environment` object every module body receives. */\nconst environmentFacts = Object.freeze({ name: Object.freeze({\n\t[VALUE]: true,\n\t[VALUE_ORIGIN]: Object.freeze({\n\t\tkind: \"environment\",\n\t\tfact: \"name\"\n\t})\n}) });\n//#endregion\n//#region src/node.ts\n/**\n* Core model: node types and the factories that construct them, plain frozen\n* data objects. A node's `extension` + `type` form its deploy-time registry key (ADR-0017).\n*/\nconst NODE = Symbol.for(\"prisma:node\");\nconst SECRET_NEED = blindCast(Symbol.for(\"prisma:secret-need\"));\nconst SECRET_SOURCE = blindCast(Symbol.for(\"prisma:secret-source\"));\n/** Declares a secret NEED. Nameless — the platform name is bound at the root via `envSecret`. */\nfunction secret() {\n\treturn Object.freeze({\n\t\t[SECRET_NEED]: true,\n\t\tkind: \"secret\"\n\t});\n}\n/** Builds an opaque secret source from a target-defined payload — the SPI a deploy target's own source constructor (e.g. `envSecret`) calls. Core forwards the source and never inspects the payload. */\nfunction secretSource(payload) {\n\treturn Object.freeze({\n\t\t[SECRET_SOURCE]: true,\n\t\tpayload\n\t});\n}\n/** True if `value` is a secret source (an `envSecret` result or a forwarded ctx.secrets ref). */\nfunction isSecretSource(value) {\n\treturn typeof value === \"object\" && value !== null && blindCast(value)[SECRET_SOURCE] === true;\n}\nconst PROVISION_NEED = blindCast(Symbol.for(\"prisma:provision-need\"));\n/** Builds an opaque provisioning need — the declaring package's own brand plus whatever payload its provisioner reads back. */\nfunction provisionNeed(brand, payload) {\n\treturn blindCast(Object.freeze({\n\t\t[PROVISION_NEED]: true,\n\t\tbrand,\n\t\tpayload\n\t}));\n}\n/** True if `value` is a provisioning need (a `provisionNeed()` result). */\nfunction isProvisionNeed(value) {\n\treturn typeof value === \"object\" && value !== null && blindCast(value)[PROVISION_NEED] === true;\n}\nconst PARAM_SOURCE = blindCast(Symbol.for(\"prisma:param-source\"));\nconst PARAM_NEED = blindCast(Symbol.for(\"prisma:param-need\"));\n/** Builds an opaque param source from a target-defined payload — the SPI a deploy target's own source constructor (e.g. `envParam`) calls. Core forwards the source and never inspects the payload. */\nfunction paramSource(payload) {\n\treturn Object.freeze({\n\t\t[PARAM_SOURCE]: true,\n\t\tpayload\n\t});\n}\n/** True if `value` is a param source (an `envParam` result or a forwarded ctx.params ref). */\nfunction isParamSource(value) {\n\treturn typeof value === \"object\" && value !== null && blindCast(value)[PARAM_SOURCE] === true;\n}\n/** Declares a module param-forwarding NEED. Nameless — bound to a `ParamSource` by an enclosing scope and forwarded into a child's real param. */\nfunction paramNeed() {\n\treturn Object.freeze({\n\t\t[PARAM_NEED]: true,\n\t\tkind: \"param\"\n\t});\n}\nfunction requireType(type, factory) {\n\tif (typeof type !== \"string\" || type.length === 0) throw new Error(`${factory}() requires a non-empty node type.`);\n}\nfunction requireName(name, factory) {\n\tif (typeof name !== \"string\" || name.length === 0) throw new Error(`${factory}() requires a non-empty name.`);\n}\nfunction requireExtension(extension, factory) {\n\tif (typeof extension !== \"string\" || extension.length === 0) throw new Error(`${factory}() requires a non-empty extension (the authoring extension's package name).`);\n}\n/**\n* Core's grammar for every name that becomes a config-key segment —\n* addresses, input/param/secret names: ASCII letters and digits only.\n* Conservative by design so any target medium — POSIX env-var keys\n* included — can uppercase and \"_\"-join segments without escaping.\n*/\nfunction isConfigKeySegment(name) {\n\treturn /^[A-Za-z0-9]+$/.test(name);\n}\nfunction requireConfigKeySegmentName(name, kind, factory) {\n\tif (!isConfigKeySegment(name)) throw new Error(`${factory}() ${kind} name \"${name}\" must contain only ASCII letters and digits ([A-Za-z0-9]) — declared names derive deterministic config keys, uppercased and joined with \"_\" (an input \"db\"'s param \"url\" becomes config key \"DB_URL\"), so an underscore inside a name collides with that separator and any other character has no place in a config key. \"${name}\" would put \"${name.toUpperCase()}\" inside the derived key.`);\n}\n/**\n* `$out` names a resource's single anonymous output on the wire (the\n* application topology's reserved port name), so no declared port — a dep\n* slot or an expose entry — may claim it. Input names are already confined\n* to [A-Za-z0-9] by the config-key rule; expose and module-dep names are\n* not, so the reservation is checked wherever a port name is declared.\n*/\nfunction requireNotReservedPortNames(names, factory) {\n\tfor (const name of names) if (name === \"$out\") throw new Error(`${factory}() declares a port named \"$out\" — that name is reserved for a resource's anonymous output; choose another name.`);\n}\nfunction requireConfigKeySegmentNames(names, kind, factory) {\n\tfor (const name of names) requireConfigKeySegmentName(name, kind, factory);\n}\nfunction freezeParams(params) {\n\tconst frozen = {};\n\tfor (const [name, param] of Object.entries(params)) frozen[name] = Object.freeze({ ...param });\n\treturn Object.freeze(frozen);\n}\n/** A frozen shallow copy that keeps the caller's declared type. */\nfunction frozenShallowCopy(obj) {\n\treturn blindCast(Object.freeze({ ...obj }));\n}\n/**\n* Seals a node instance after its constructor has assigned all fields — the\n* last statement of a concrete node class's constructor. A free function, not\n* a base-class method, so an instance stays structurally a plain frozen node.\n*/\nfunction freezeNode(node) {\n\tObject.freeze(node);\n\treturn node;\n}\n/** The slots, wiring and configuration a resource may carry, checked once for `resource()` and `ResourceNodeBase`. */\nfunction requireResourceWiring(def) {\n\tconst inputs = def.inputs ?? {};\n\tconst deps = def.deps ?? {};\n\trequireConfigKeySegmentNames(Object.keys(inputs), \"input\", \"resource\");\n\tfor (const [input, slot] of Object.entries(inputs)) {\n\t\tconst declared = slot;\n\t\tif (!isNode(declared) || declared.kind !== \"dependency\") throw new Error(`resource() dependency \"${input}\" is not a branded dependency end (construct it with the dependency() factory).`);\n\t}\n\tfor (const input of Object.keys(inputs)) if (deps[input] === void 0) throw new Error(`resource() declares dependency \"${input}\" but its deps leave it unwired. A resource is wired when it is constructed.`);\n\tfor (const [input, producer] of Object.entries(deps)) {\n\t\tif (!Object.hasOwn(inputs, input)) throw new Error(`resource() deps name \"${input}\", which is not a declared input.`);\n\t\tif (isValue(producer)) throw new Error(`resource() deps wire \"${input}\" to a value. A value can configure a node, never decide its edges (ADR-0062).`);\n\t}\n\tif (def.props !== void 0 && !isPlainObject(def.props)) throw new Error(\"resource() props must be a plain object.\");\n}\n/** A resource's routing `type`: its contract's `kind`, or the `type` named by a resource that offers nothing. */\nfunction resourceType(def) {\n\tconst provides = def.provides;\n\tif (provides === void 0) {\n\t\tif (typeof def.type !== \"string\" || def.type.length === 0) throw new Error(\"resource() requires provides, the contract it offers, or type, for a resource that offers nothing.\");\n\t\treturn def.type;\n\t}\n\tif (def.type !== void 0) throw new Error(\"resource() takes either provides or type, not both — type is the contract's kind when a contract is provided.\");\n\tif (typeof provides !== \"object\" || provides === null || !(\"kind\" in provides) || typeof provides.kind !== \"string\" || provides.kind.length === 0 || !(\"satisfies\" in provides) || typeof provides.satisfies !== \"function\") throw new Error(\"resource() requires `provides` — the Contract this resource offers (a non-empty `kind` plus its `satisfies()`).\");\n\treturn provides.kind;\n}\n/**\n* Everything `resource()` establishes, minus the freeze — an extension\n* whose resource node carries extra fields extends this, assigns them, and\n* calls `freezeNode(this)` as its constructor's last statement.\n* A class built on this base must not use #private fields: Load copies a node whose props hold a value, and a copy carries own properties only.\n*/\nvar ResourceNodeBase = class {\n\t[NODE] = true;\n\tkind = \"resource\";\n\tname;\n\textension;\n\ttype;\n\tprovides;\n\tinputs;\n\tdeps;\n\tprops;\n\tconstructor(def) {\n\t\trequireName(def.name, \"resource\");\n\t\trequireExtension(def.extension, \"resource\");\n\t\tthis.type = resourceType(def);\n\t\trequireResourceWiring(def);\n\t\tthis.name = def.name;\n\t\tthis.extension = def.extension;\n\t\tthis.provides = blindCast(def.provides);\n\t\tthis.inputs = blindCast(frozenShallowCopy(def.inputs ?? {}));\n\t\tthis.deps = blindCast(frozenShallowCopy(def.deps ?? {}));\n\t\tthis.props = blindCast(frozenShallowCopy(def.props ?? {}));\n\t}\n};\n/** The core leaf: exactly the base, frozen. */\nvar FrozenResourceNode = class extends ResourceNodeBase {\n\tconstructor(def) {\n\t\tsuper(def);\n\t\tfreezeNode(this);\n\t}\n};\n/**\n* Constructs a branded, frozen Resource node — an identity plus the Contract\n* it provides; the routing `type` is the contract's `kind`. A resource that\n* offers nothing omits `provides` and names its `type`. Pure — nothing is\n* provisioned until a module provisions it.\n*/\nfunction resource(def) {\n\treturn new FrozenResourceNode(def);\n}\n/**\n* Constructs a branded, frozen Service node — declarations only (inputs,\n* params, the input schema, build adapter, and the ports it exposes). Pure;\n* carries no runtime behavior.\n*/\nfunction service(def) {\n\trequireName(def.name, \"service\");\n\trequireExtension(def.extension, \"service\");\n\trequireType(def.type, \"service\");\n\trequireConfigKeySegmentNames(Object.keys(def.inputs), \"input\", \"service\");\n\trequireConfigKeySegmentNames(Object.keys(def.params), \"param\", \"service\");\n\tif (def.expose !== void 0) requireNotReservedPortNames(Object.keys(def.expose), \"service\");\n\tif (def.input !== void 0 && typeof def.input[\"~standard\"]?.validate !== \"function\") throw new Error(\"service() `input` must be a Standard Schema (an object with a \\\"~standard\\\".validate function) — see https://standardschema.dev (ADR-0042).\");\n\treturn Object.freeze({\n\t\t[NODE]: true,\n\t\tkind: \"service\",\n\t\tname: def.name,\n\t\textension: def.extension,\n\t\ttype: def.type,\n\t\tinputs: frozenShallowCopy(def.inputs),\n\t\tparams: freezeParams(def.params),\n\t\tinputSchema: blindCast(def.input),\n\t\tbuild: Object.freeze({ ...def.build }),\n\t\texpose: def.expose !== void 0 ? frozenShallowCopy(def.expose) : void 0\n\t});\n}\n/**\n* Constructs a branded, frozen DependencyEnd. `required` (if given) is the\n* contract Load compares a wired ref against via `satisfies()`; an unnamed\n* end's diagnostic `name` falls back to its `type`.\n*/\nfunction dependency(def) {\n\trequireType(def.type, \"dependency\");\n\trequireConfigKeySegmentNames(Object.keys(def.connection.params), \"param\", \"dependency\");\n\tconst connection = Object.freeze({\n\t\tparams: freezeParams(def.connection.params),\n\t\thydrate: def.connection.hydrate\n\t});\n\treturn Object.freeze({\n\t\t[NODE]: true,\n\t\tkind: \"dependency\",\n\t\tname: def.name !== void 0 && def.name.length > 0 ? def.name : def.type,\n\t\ttype: def.type,\n\t\tconnection,\n\t\trequired: def.required\n\t});\n}\n/**\n* Constructs a branded, frozen Module node. Construction is INERT — the body is\n* wiring, not user code, and runs only when the module is Loaded.\n*/\nfunction module(name, boundaryOrBody, maybeBody) {\n\trequireName(name, \"module\");\n\tconst closedRoot = typeof boundaryOrBody === \"function\";\n\tconst boundary = closedRoot ? {} : boundaryOrBody;\n\trequireNotReservedPortNames(Object.keys(boundary.deps ?? {}), \"module\");\n\trequireNotReservedPortNames(Object.keys(boundary.expose ?? {}), \"module\");\n\tif (boundary.input !== void 0 && typeof boundary.input[\"~standard\"]?.validate !== \"function\") throw new Error(\"module() `input` must be a Standard Schema (an object with a \\\"~standard\\\".validate function) — see https://standardschema.dev (ADR-0061).\");\n\tconst deps = frozenShallowCopy(boundary.deps ?? {});\n\tconst secretSlots = frozenShallowCopy(boundary.secrets ?? {});\n\tconst paramSlots = frozenShallowCopy(boundary.params ?? {});\n\tconst expose = frozenShallowCopy(boundary.expose ?? {});\n\tconst body = closedRoot ? (ctx) => {\n\t\tboundaryOrBody({\n\t\t\t...ctx,\n\t\t\tinput: void 0\n\t\t});\n\t\treturn {};\n\t} : maybeBody;\n\treturn Object.freeze({\n\t\t[NODE]: true,\n\t\tkind: \"module\",\n\t\tname,\n\t\tdeps,\n\t\tsecretSlots,\n\t\tparamSlots,\n\t\tinputSchema: boundary.input,\n\t\texpose,\n\t\tbody\n\t});\n}\n/**\n* True if `value` was constructed by this module's factories. Checks the\n* brand only, never a prototype — a graph may mix nodes from a different\n* installed copy of core (dual-package hazard).\n*/\nfunction isNode(value) {\n\treturn typeof value === \"object\" && value !== null && value[NODE] === true;\n}\n/** A node's dependency slots. A resource node built by another installed copy of core may have no `inputs`; that means none. */\nfunction slotsOf(node) {\n\treturn node.kind === \"resource\" ? node.inputs ?? {} : node.inputs;\n}\n//#endregion\n//#region src/toposort.ts\n/**\n* Stable topological sort: every edge's `from` precedes its `to` in the\n* result. Ties (nodes with no ordering constraint between them) keep their\n* relative order from `nodes` — so a graph already authored producer-first\n* comes out byte-identical to its pre-sort layout; only a graph that\n* genuinely needs reordering (e.g. a module wired via a forged ref pointing at a\n* not-yet-provisioned producer) actually moves. A Kahn's-algorithm variant\n* that always picks the ready node with the smallest original index. Edges\n* whose endpoint falls outside `nodes` (e.g. a service-root's input edges\n* targeting the root, which is appended separately) are ignored. Cycles\n* cannot reach here: `assertDependencyDag` already rejects them for\n* dependency edges, and input edges never cycle.\n*/\nfunction topoSort(nodes, edges) {\n\tconst byId = new Map(nodes.map((n) => [n.id, n]));\n\tconst indexOf = new Map(nodes.map((n, i) => [n.id, i]));\n\tconst indegree = new Map(nodes.map((n) => [n.id, 0]));\n\tconst successors = /* @__PURE__ */ new Map();\n\tfor (const edge of edges) {\n\t\tif (!byId.has(edge.from) || !byId.has(edge.to)) continue;\n\t\tconst targets = successors.get(edge.from) ?? [];\n\t\ttargets.push(edge.to);\n\t\tsuccessors.set(edge.from, targets);\n\t\tindegree.set(edge.to, (indegree.get(edge.to) ?? 0) + 1);\n\t}\n\tconst ready = new Set(nodes.filter((n) => indegree.get(n.id) === 0).map((n) => n.id));\n\tconst order = [];\n\twhile (ready.size > 0) {\n\t\tlet next;\n\t\tlet bestIndex = Number.POSITIVE_INFINITY;\n\t\tfor (const id of ready) {\n\t\t\tconst index = indexOf.get(id) ?? Number.POSITIVE_INFINITY;\n\t\t\tif (index < bestIndex) {\n\t\t\t\tbestIndex = index;\n\t\t\t\tnext = id;\n\t\t\t}\n\t\t}\n\t\tif (next === void 0) break;\n\t\tready.delete(next);\n\t\torder.push(next);\n\t\tfor (const target of successors.get(next) ?? []) {\n\t\t\tconst remaining = (indegree.get(target) ?? 0) - 1;\n\t\t\tindegree.set(target, remaining);\n\t\t\tif (remaining === 0) ready.add(target);\n\t\t}\n\t}\n\tif (order.length !== nodes.length) throw new InternalError(`topological sort processed ${order.length} of ${nodes.length} nodes — the graph contains a cycle that slipped past the DAG validation.`);\n\treturn order.map((id) => byId.get(id)).filter((n) => n !== void 0);\n}\n//#endregion\n//#region src/load-service.ts\n/**\n* The declared boundary ports of a module, service or resource node at `id`:\n* dep slots as `in` ports (contractKind = the slot's `type`), exposed\n* contracts as `out` ports (contractKind = the contract's `kind`, style = its\n* declared style). A resource's one `$out` port is recorded at its provision\n* site instead (load-module.ts).\n*/\nfunction boundaryPortsOf(id, node) {\n\tconst ports = [];\n\tconst slots = node.kind === \"module\" ? node.deps : slotsOf(node);\n\tfor (const [name, slot] of Object.entries(slots)) {\n\t\tconst type = typeof slot === \"object\" && slot !== null && \"type\" in slot && typeof slot.type === \"string\" ? slot.type : void 0;\n\t\tports.push({\n\t\t\tnode: id,\n\t\t\tdirection: \"in\",\n\t\t\tname,\n\t\t\tcontractKind: type,\n\t\t\tstyle: void 0\n\t\t});\n\t}\n\tconst expose = node.kind === \"resource\" ? {} : node.expose ?? {};\n\tfor (const [name, contract] of Object.entries(expose)) {\n\t\tconst kind = typeof contract === \"object\" && contract !== null && \"kind\" in contract && typeof contract.kind === \"string\" ? contract.kind : void 0;\n\t\tports.push({\n\t\t\tnode: id,\n\t\t\tdirection: \"out\",\n\t\t\tname,\n\t\t\tcontractKind: kind,\n\t\t\tstyle: contractStyleOf(contract)\n\t\t});\n\t}\n\treturn ports;\n}\n/** A resource node built by another installed copy of core may have no `inputs`; it has no slots. */\nfunction slotNodesAndEdges(node, nodeId) {\n\tconst inputs = slotsOf(node);\n\tif (typeof inputs !== \"object\" || inputs === null) throw new LoadError(`Node \"${nodeId}\" has no inputs map.`);\n\tconst nodes = [];\n\tconst edges = [];\n\tfor (const [input, value] of Object.entries(inputs)) {\n\t\tconst kind = isNode(value) ? value.kind : void 0;\n\t\tif (kind === \"resource\") throw new LoadError(`Dependency \"${input}\" of \"${nodeId}\" is a resource node — a resource is provisioned by the composing module, never created for a service that mentions it. Declare the input as a dependency (the pack's dependency factory) and wire the module-provisioned resource's ref into it.`);\n\t\tif (kind !== \"dependency\") throw new LoadError(`Dependency \"${input}\" of \"${nodeId}\" is not a branded dependency end (construct it with the dependency() factory).`);\n\t\tif (value.type.length === 0) throw new LoadError(`Dependency \"${input}\" of \"${nodeId}\" has an empty node type.`);\n\t\tconst id = `${nodeId}.${input}`;\n\t\tnodes.push({\n\t\t\tid,\n\t\t\tparent: nodeId,\n\t\t\tnode: value\n\t\t});\n\t\tedges.push({\n\t\t\tfrom: id,\n\t\t\tto: nodeId,\n\t\t\tinput,\n\t\t\tkind: \"input\"\n\t\t});\n\t}\n\treturn {\n\t\tnodes,\n\t\tedges\n\t};\n}\nfunction loadService(root, rootId) {\n\tfor (const [input, value] of Object.entries(root.inputs)) if (isNode(value) && value.kind === \"dependency\") throw new LoadError(`Service \"${rootId}\" has an unwired dependency \"${input}\" — this service is composed by a module; deploy the module instead of loading \"${rootId}\" directly.`);\n\tif (root.inputSchema !== void 0) throw new LoadError(`Service \"${rootId}\" declares an input schema but is being loaded directly — a lone service has no enclosing scope to bind its input. Compose it inside a module whose provision() call binds \\`input: { … }\\` (ADR-0042).`);\n\tconst rootGraphNode = {\n\t\tid: rootId,\n\t\tparent: void 0,\n\t\tnode: root\n\t};\n\tconst { nodes, edges } = slotNodesAndEdges(root, rootId);\n\treturn {\n\t\troot: rootGraphNode,\n\t\tnodes: [...topoSort(nodes, edges), rootGraphNode],\n\t\tedges,\n\t\tports: boundaryPortsOf(rootId, root),\n\t\tauthoredEdges: [],\n\t\tinputBindings: [],\n\t\tparams: []\n\t};\n}\n//#endregion\n//#region src/module-input.ts\nconst INSPECT = Symbol.for(\"nodejs.util.inspect.custom\");\n/** `input` or `input.a.b`: how an error names an input field. */\nfunction inputFieldLabel(origin) {\n\treturn origin.path.length === 0 ? \"input\" : `input.${origin.path.join(\".\")}`;\n}\nfunction misuse(origin, what) {\n\tconst field = inputFieldLabel(origin);\n\treturn new LoadError(`${field} of module \"${origin.module}\" is a value, not its real value, and ${what}. A module body can only pass an input field on: into a provision() binding or as a resolve() dependency. To compute with it, list it: resolve([${field}], ([v]) => …).`);\n}\nfunction primitiveMisuse(hint) {\n\tswitch (hint) {\n\t\tcase \"string\": return \"it was turned into text (a template literal or String())\";\n\t\tcase \"number\": return \"it was turned into a number (arithmetic, or a comparison such as <)\";\n\t\tdefault: return \"it was combined with + or compared with ==\";\n\t}\n}\n/**\n* Builds the `input` a module body receives. Every property access returns a\n* value recording its key path, and the same path always returns the same\n* object, so Load's identity-keyed maps see one value per field. Any way of\n* reading the real value throws a LoadError naming the field.\n*/\nfunction buildModuleInput(moduleAddress) {\n\tconst byPath = /* @__PURE__ */ new Map();\n\tconst valueAt = (path) => {\n\t\tconst key = JSON.stringify(path);\n\t\tconst existing = byPath.get(key);\n\t\tif (existing !== void 0) return existing;\n\t\tconst origin = Object.freeze({\n\t\t\tkind: \"input\",\n\t\t\tmodule: moduleAddress,\n\t\t\tpath: Object.freeze([...path])\n\t\t});\n\t\tconst thrower = (what) => () => {\n\t\t\tthrow misuse(origin, what);\n\t\t};\n\t\tconst handler = {\n\t\t\tget(_target, property) {\n\t\t\t\tif (property === VALUE) return true;\n\t\t\t\tif (property === VALUE_ORIGIN) return origin;\n\t\t\t\tif (property === Symbol.toPrimitive) return (hint) => {\n\t\t\t\t\tthrow misuse(origin, primitiveMisuse(hint));\n\t\t\t\t};\n\t\t\t\tif (property === \"toString\") return thrower(\"its toString() was called\");\n\t\t\t\tif (property === \"valueOf\") return thrower(\"its valueOf() was called\");\n\t\t\t\tif (property === \"toJSON\") return thrower(\"it was serialized with JSON.stringify\");\n\t\t\t\tif (property === Symbol.iterator || property === Symbol.asyncIterator) return thrower(\"it was iterated (array spread, for…of or array destructuring)\");\n\t\t\t\tif (typeof property === \"symbol\") return void 0;\n\t\t\t\treturn valueAt([...path, property]);\n\t\t\t},\n\t\t\thas(_target, property) {\n\t\t\t\tif (property === VALUE || property === VALUE_ORIGIN) return true;\n\t\t\t\tif (typeof property === \"symbol\") return false;\n\t\t\t\tthrow misuse(origin, `it was checked with the in operator (\"${property}\" in …)`);\n\t\t\t},\n\t\t\townKeys() {\n\t\t\t\tthrow misuse(origin, \"its keys were listed (Object.keys, object spread, for…in or Object.entries)\");\n\t\t\t},\n\t\t\tgetOwnPropertyDescriptor() {\n\t\t\t\tthrow misuse(origin, \"its properties were inspected\");\n\t\t\t},\n\t\t\tset(_target, property) {\n\t\t\t\tthrow misuse(origin, `its field \"${String(property)}\" was assigned to`);\n\t\t\t},\n\t\t\tdefineProperty(_target, property) {\n\t\t\t\tthrow misuse(origin, `its field \"${String(property)}\" was assigned to`);\n\t\t\t},\n\t\t\tdeleteProperty() {\n\t\t\t\tthrow misuse(origin, \"a property was deleted from it\");\n\t\t\t},\n\t\t\tsetPrototypeOf() {\n\t\t\t\tthrow misuse(origin, \"its prototype was changed\");\n\t\t\t},\n\t\t\tpreventExtensions() {\n\t\t\t\tthrow misuse(origin, \"it was frozen or sealed\");\n\t\t\t}\n\t\t};\n\t\tconst target = Object.create(null);\n\t\tObject.defineProperty(target, INSPECT, {\n\t\t\tvalue: () => `[${inputFieldLabel(origin)} of module \"${origin.module}\"]`,\n\t\t\tconfigurable: true\n\t\t});\n\t\tconst proxy = new Proxy(target, handler);\n\t\tbyPath.set(key, proxy);\n\t\treturn proxy;\n\t};\n\treturn blindCast(valueAt([]));\n}\n//#endregion\n//#region src/resolve-values.ts\nconst SENTINEL_SOURCE = Symbol(\"prisma:module-input-sentinel\");\nfunction joinPath(path, key) {\n\treturn path === \"\" ? String(key) : `${path}.${key}`;\n}\nfunction describeSite(site) {\n\tswitch (site.kind) {\n\t\tcase \"serviceInput\": return site.path === \"\" ? `the input binding of service \"${site.address}\"` : `input key \"${site.path}\" of service \"${site.address}\"`;\n\t\tcase \"moduleInput\": return site.path === \"\" ? `the input binding of module \"${site.address}\"` : `input key \"${site.path}\" of module \"${site.address}\"`;\n\t\tcase \"param\": return `param \"${site.path}\" of service \"${site.address}\"`;\n\t\tcase \"props\": return site.path === \"\" ? `the props of resource \"${site.address}\"` : `prop \"${site.path}\" of resource \"${site.address}\"`;\n\t}\n}\nfunction collect(value, site, found, seen) {\n\tif (isValue(value)) {\n\t\tfound.push({\n\t\t\tvalue,\n\t\t\tsite\n\t\t});\n\t\treturn;\n\t}\n\tif (isSecretSource(value) || isParamSource(value)) return;\n\tif (!Array.isArray(value) && !isPlainObject(value)) return;\n\tif (seen.has(value)) return;\n\tseen.add(value);\n\tconst entries = Array.isArray(value) ? value.map((member, index) => [index, member]) : Object.entries(value);\n\tfor (const [key, member] of entries) {\n\t\tconst path = site.kind === \"param\" ? site.path : joinPath(site.path, key);\n\t\tcollect(member, {\n\t\t\t...site,\n\t\t\tpath\n\t\t}, found, seen);\n\t}\n}\nfunction describeNotPlain(value) {\n\tswitch (typeof value) {\n\t\tcase \"function\": return \"a function\";\n\t\tcase \"symbol\": return \"a symbol\";\n\t\tcase \"bigint\": return \"a bigint\";\n\t\tcase \"number\": return Number.isFinite(value) ? void 0 : \"a non-finite number\";\n\t\tcase \"object\": return value === null || Array.isArray(value) || isPlainObject(value) ? void 0 : \"an object that is not plain data\";\n\t\tdefault: return;\n\t}\n}\nfunction isThenable(value) {\n\tif (isValue(value)) return false;\n\treturn typeof value === \"object\" && value !== null && \"then\" in value && typeof value.then === \"function\";\n}\nfunction checkResult(result, fnLabel) {\n\tif (isThenable(result)) throw new LoadError(`${fnLabel} returned a Promise. resolve() runs synchronously at Load.`);\n\tconst seen = /* @__PURE__ */ new WeakSet();\n\tconst walk = (value, path) => {\n\t\tconst atPath = path === \"\" ? \"\" : ` at \"${path}\"`;\n\t\tif (value === void 0) throw new LoadError(`${fnLabel} returned undefined${atPath}. Return a result for every environment; Composer never picks a default.`);\n\t\tif (isValue(value)) throw new LoadError(`${fnLabel} returned a value${atPath}, not a real value. List that value as a dependency; fn receives its real value.`);\n\t\tif (isSecretSource(value) || isParamSource(value)) throw new LoadError(`${fnLabel} returned a secret or param source${atPath}. Bind envSecret() or envParam() directly; resolve() returns plain data.`);\n\t\tconst notPlain = describeNotPlain(value);\n\t\tif (notPlain !== void 0) throw new LoadError(`${fnLabel} returned ${notPlain}${atPath}. resolve() returns plain data: strings, finite numbers, booleans, null, arrays and plain objects.`);\n\t\tif (typeof value !== \"object\" || value === null || seen.has(value)) return;\n\t\tseen.add(value);\n\t\tconst entries = Array.isArray(value) ? value.map((member, index) => [index, member]) : Object.entries(value);\n\t\tfor (const [key, member] of entries) walk(member, joinPath(path, key));\n\t};\n\twalk(result, \"\");\n}\nfunction substitute(value, results, inProgress) {\n\tif (isValue(value)) return results.get(value);\n\tif (isSecretSource(value) || isParamSource(value)) return value;\n\tif (Array.isArray(value)) {\n\t\tif (inProgress.has(value)) return value;\n\t\tinProgress.add(value);\n\t\tconst rebuilt = value.map((member) => substitute(member, results, inProgress));\n\t\tinProgress.delete(value);\n\t\treturn rebuilt.every((member, index) => member === value[index]) ? value : rebuilt;\n\t}\n\tif (isPlainObject(value)) {\n\t\tif (inProgress.has(value)) return value;\n\t\tinProgress.add(value);\n\t\tconst rebuilt = {};\n\t\tlet changed = false;\n\t\tfor (const [key, member] of Object.entries(value)) {\n\t\t\tconst real = substitute(member, results, inProgress);\n\t\t\tif (real === void 0 && isValue(member)) {\n\t\t\t\tchanged = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\trebuilt[key] = real;\n\t\t\tif (real !== member) changed = true;\n\t\t}\n\t\tinProgress.delete(value);\n\t\treturn changed ? rebuilt : value;\n\t}\n\treturn value;\n}\nfunction describeData(value) {\n\tif (Array.isArray(value)) return \"an array\";\n\tif (isSecretSource(value)) return \"a secret\";\n\tif (typeof value === \"object\") return \"an object that is not plain data\";\n\treturn `a ${typeof value}`;\n}\n/** The data at `origin`'s path inside a validated input; `undefined` where a key or a parent is absent. */\nfunction readPath(data, origin) {\n\tlet current = data;\n\tfor (const [index, key] of origin.path.entries()) {\n\t\tif (current === void 0 || current === null) return void 0;\n\t\tif (!isPlainObject(current) || isSecretSource(current)) {\n\t\t\tconst parent = inputFieldLabel({\n\t\t\t\t...origin,\n\t\t\t\tpath: origin.path.slice(0, index)\n\t\t\t});\n\t\t\tthrow new LoadError(`${inputFieldLabel(origin)} of module \"${origin.module}\" does not exist: ${parent} is ${describeData(current)}, not a plain object, so it has no fields. To compute with it, list it: resolve([${parent}], ([v]) => …).`);\n\t\t}\n\t\tif (!Object.hasOwn(current, key)) return void 0;\n\t\tcurrent = current[key];\n\t}\n\treturn current;\n}\nfunction validateModuleInput(entry, resolved) {\n\tconst address = entry.moduleAddress;\n\tconst withSentinels = (value, path) => {\n\t\tif (isSecretSource(value)) {\n\t\t\tconst sentinel = new SecretBox(\"\");\n\t\t\tObject.defineProperty(sentinel, SENTINEL_SOURCE, { value });\n\t\t\treturn sentinel;\n\t\t}\n\t\tif (isParamSource(value)) throw new LoadError(`${describeSite({\n\t\t\taddress,\n\t\t\tkind: \"moduleInput\",\n\t\t\tpath\n\t\t})} is bound to a param source, such as envParam(). A module's input does not take a param source yet; bind it on the service's input inside the module, or forward it through the module's params slot.`);\n\t\tif (isSecretString(value)) throw new LoadError(`${describeSite({\n\t\t\taddress,\n\t\t\tkind: \"moduleInput\",\n\t\t\tpath\n\t\t})} is bound to a SecretString. A secret's value never appears in the code; bind envSecret('NAME'), or pass on an input field typed secretString().`);\n\t\tif (Array.isArray(value)) return value.map((member, index) => withSentinels(member, joinPath(path, index)));\n\t\tif (isPlainObject(value)) return Object.fromEntries(Object.entries(value).map(([key, member]) => [key, withSentinels(member, joinPath(path, key))]));\n\t\treturn value;\n\t};\n\tconst result = entry.schema[\"~standard\"].validate(withSentinels(resolved, \"\"));\n\tif (result instanceof Promise) throw new LoadError(`The input schema of module \"${address}\" returned a Promise from validate(). A module's input is validated synchronously at Load; use a schema with no asynchronous checks.`);\n\tif (result.issues !== void 0) throw new LoadError(`The input binding of module \"${address}\" does not match the module's input schema: ${result.issues.map((issue) => issue.message).join(\"; \")}`);\n\tconst restore = (value, path) => {\n\t\tif (isSecretString(value)) {\n\t\t\tconst source = blindCast(value)[SENTINEL_SOURCE];\n\t\t\tif (isSecretSource(source)) return source;\n\t\t\tconst atPath = path === \"\" ? \"\" : ` at \"${path}\"`;\n\t\t\tthrow new LoadError(`The input schema of module \"${address}\" produced a SecretString${atPath} that its binding did not supply. A module's schema may check a secret field, never create one.`);\n\t\t}\n\t\tif (Array.isArray(value)) return value.map((member, index) => restore(member, joinPath(path, index)));\n\t\tif (isPlainObject(value)) return Object.fromEntries(Object.entries(value).map(([key, member]) => [key, restore(member, joinPath(path, key))]));\n\t\treturn value;\n\t};\n\treturn restore(result.value, \"\");\n}\n/**\n* Resolves every value the graph binds, dependency-first, once each, and\n* returns each binding with its values replaced by their real values.\n*/\nfunction resolveValues(input) {\n\tconst { environment } = input;\n\tconst found = [];\n\tfor (const { serviceAddress, binding } of input.inputBindings) collect(binding, {\n\t\taddress: serviceAddress,\n\t\tkind: \"serviceInput\",\n\t\tpath: \"\"\n\t}, found, /* @__PURE__ */ new WeakSet());\n\tfor (const { serviceAddress, slot, binding } of input.params) collect(binding, {\n\t\taddress: serviceAddress,\n\t\tkind: \"param\",\n\t\tpath: slot\n\t}, found, /* @__PURE__ */ new WeakSet());\n\tfor (const [address, resource] of input.resources) {\n\t\tconst site = {\n\t\t\taddress,\n\t\t\tkind: \"props\",\n\t\t\tpath: \"\"\n\t\t};\n\t\tcollect(resource.props, site, found, /* @__PURE__ */ new WeakSet());\n\t}\n\tconst moduleInputByAddress = new Map(input.moduleInputs.map((entry) => [entry.moduleAddress, entry]));\n\tconst validatedInputs = /* @__PURE__ */ new Map();\n\tconst validating = /* @__PURE__ */ new Set();\n\tconst results = /* @__PURE__ */ new Map();\n\tconst visiting = [];\n\tconst fnLabelFor = (site) => visiting.length === 1 ? `The resolve() function for ${describeSite(site)}` : `A resolve() function that ${describeSite(site)} depends on`;\n\tconst resolveOne = (value, site) => {\n\t\tif (results.has(value)) return results.get(value);\n\t\tif (visiting.includes(value)) throw new LoadError(`${describeSite(site)} depends on itself: a computed value's dependencies lead back to it. Remove the cycle.`);\n\t\tvisiting.push(value);\n\t\tconst origin = originOf(value);\n\t\tlet result;\n\t\tswitch (origin.kind) {\n\t\t\tcase \"environment\":\n\t\t\t\tif (environment === void 0) throw new LoadError(`${describeSite(site)} depends on environment.name, but Load was given no environment. Pass { environment: { name } } to Load; the deploy and dev commands do.`);\n\t\t\t\tresult = environment[origin.fact];\n\t\t\t\tbreak;\n\t\t\tcase \"computed\": {\n\t\t\t\tconst args = origin.dependencies.map((dependency) => resolveOne(dependency, site));\n\t\t\t\ttry {\n\t\t\t\t\tresult = origin.compute(args);\n\t\t\t\t} catch (thrown) {\n\t\t\t\t\tif (thrown instanceof LoadError) throw thrown;\n\t\t\t\t\tconst message = thrown instanceof Error ? thrown.message : String(thrown);\n\t\t\t\t\tthrow new LoadError(`${fnLabelFor(site)} threw: ${message}`, { cause: thrown });\n\t\t\t\t}\n\t\t\t\tcheckResult(result, fnLabelFor(site));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"input\": {\n\t\t\t\tconst entry = moduleInputByAddress.get(origin.module);\n\t\t\t\tif (entry === void 0) throw new LoadError(`${describeSite(site)} depends on ${inputFieldLabel(origin)} of module \"${origin.module}\", which this Load does not provision. An input field can be passed on only inside the body of the module that received it.`);\n\t\t\t\tresult = readPath(validatedInputOf(entry), origin);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tvisiting.pop();\n\t\tresults.set(value, result);\n\t\treturn result;\n\t};\n\tconst validatedInputOf = (entry) => {\n\t\tif (validatedInputs.has(entry.moduleAddress)) return validatedInputs.get(entry.moduleAddress);\n\t\tif (validating.has(entry.moduleAddress)) throw new LoadError(`The input binding of module \"${entry.moduleAddress}\" depends on that module's own input. Remove the cycle.`);\n\t\tvalidating.add(entry.moduleAddress);\n\t\tconst site = {\n\t\t\taddress: entry.moduleAddress,\n\t\t\tkind: \"moduleInput\",\n\t\t\tpath: \"\"\n\t\t};\n\t\tconst values = [];\n\t\tcollect(entry.binding, site, values, /* @__PURE__ */ new WeakSet());\n\t\tfor (const { value, site: valueSite } of values) resolveOne(value, valueSite);\n\t\tconst validated = validateModuleInput(entry, substitute(entry.binding, results, /* @__PURE__ */ new WeakSet()));\n\t\tvalidating.delete(entry.moduleAddress);\n\t\tvalidatedInputs.set(entry.moduleAddress, validated);\n\t\treturn validated;\n\t};\n\tfor (const entry of input.moduleInputs) validatedInputOf(entry);\n\tfor (const { value, site } of found) resolveOne(value, site);\n\tconst authoredProps = new Map([...input.resources].map(([address, resource]) => [address, resource.props]));\n\tif (found.length === 0) return {\n\t\tinputBindings: input.inputBindings,\n\t\tparams: input.params,\n\t\tresourceProps: authoredProps\n\t};\n\tconst inProgress = /* @__PURE__ */ new WeakSet();\n\tconst resourceProps = /* @__PURE__ */ new Map();\n\tfor (const [address, props] of authoredProps) {\n\t\tconst substituted = substitute(props, results, inProgress);\n\t\tresourceProps.set(address, substituted === props ? props : blindCast(substituted));\n\t}\n\treturn {\n\t\tresourceProps,\n\t\tinputBindings: input.inputBindings.map((entry) => {\n\t\t\tconst binding = substitute(entry.binding, results, inProgress);\n\t\t\treturn binding === entry.binding ? entry : {\n\t\t\t\tserviceAddress: entry.serviceAddress,\n\t\t\t\tbinding: blindCast(binding)\n\t\t\t};\n\t\t}),\n\t\tparams: input.params.flatMap((entry) => {\n\t\t\tconst binding = substitute(entry.binding, results, inProgress);\n\t\t\tif (binding === void 0 && isValue(entry.binding)) return [];\n\t\t\treturn [binding === entry.binding ? entry : {\n\t\t\t\t...entry,\n\t\t\t\tbinding\n\t\t\t}];\n\t\t})\n\t};\n}\n//#endregion\n//#region src/load-module.ts\n/**\n* Brands a ref-port with the AUTHORED endpoint it stands for — which port of\n* which node the author wired, before any forwarding chain resolves. Read\n* only by `authoredSourceOf`; `__providerId` keeps carrying the resolved\n* producer for the flat (post-dereference) edges.\n*/\nconst AUTHORED_PORT = Symbol(\"prisma:authored-port\");\n/** The authored out-port brand carried by `ref`, if any. */\nfunction authoredPortOf(ref) {\n\tif (typeof ref !== \"object\" || ref === null) return void 0;\n\tconst brand = blindCast(ref)[AUTHORED_PORT];\n\tif (typeof brand !== \"object\" || brand === null) return void 0;\n\tconst { node, name } = blindCast(brand);\n\treturn typeof node === \"string\" && typeof name === \"string\" ? {\n\t\tnode,\n\t\tname\n\t} : void 0;\n}\n/**\n* Builds the ref a provision() call hands back: the id (so a producer with no\n* exposed ports — or an untyped slot — can still be wired wholesale) plus one\n* ref-port per exposed contract, each the contract's own runtime value (so\n* its `satisfies()` still works) tagged with the provider's id.\n*/\nfunction refFor(id, service) {\n\tconst ports = {};\n\tfor (const [port, contract] of Object.entries(service.expose ?? {})) ports[port] = {\n\t\t...contract,\n\t\t__providerId: id,\n\t\t[AUTHORED_PORT]: {\n\t\t\tnode: id,\n\t\t\tname: port\n\t\t}\n\t};\n\treturn blindCast({\n\t\tid,\n\t\t...ports\n\t});\n}\n/**\n* The resource variant of refFor: a resource has at most one port — the\n* contract it provides — flattened onto the ref itself, tagged with the\n* provider id. `id` and the authored brand are written last so a hostile\n* contract value cannot clobber them. A resource that exposes nothing gets\n* only its id.\n*/\nfunction refForResource(id, resource) {\n\tconst provides = resource.provides;\n\tif (provides === void 0) return { id };\n\treturn blindCast({\n\t\t...provides,\n\t\t__providerId: id,\n\t\tid,\n\t\t[AUTHORED_PORT]: {\n\t\t\tnode: id,\n\t\t\tname: RESOURCE_OUT_PORT\n\t\t}\n\t});\n}\n/** A wired value's producer id: a ref-port's `__providerId`, or a bare ref's `id`. */\nfunction producerIdOf(ref) {\n\tif (typeof ref !== \"object\" || ref === null) return void 0;\n\tif (\"__providerId\" in ref && typeof ref.__providerId === \"string\") return ref.__providerId;\n\tif (\"id\" in ref && typeof ref.id === \"string\") return ref.id;\n}\n/**\n* Brands each `ctx.deps` entry with the input key it stands for (see\n* flatten): diagnostic only — usage attribution relies on the per-key object\n* identity the branding copy creates, never on reading this back.\n*/\nconst MODULE_INPUT_KEY = Symbol(\"prisma:module-input-key\");\n/** Same per-key identity trick as MODULE_INPUT_KEY, for the parallel `ctx.secrets` forwarding channel. */\nconst MODULE_SECRET_KEY = Symbol(\"prisma:module-secret-key\");\n/** Same per-key identity trick as MODULE_INPUT_KEY, for the parallel `ctx.params` forwarding channel. */\nconst MODULE_PARAM_KEY = Symbol(\"prisma:module-param-key\");\n/** Whether `ref` carries a callable `satisfies` that accepts `required` truthily. */\nfunction satisfiesRequired(ref, required) {\n\treturn typeof ref === \"object\" && ref !== null && \"satisfies\" in ref && typeof ref.satisfies === \"function\" && ref.satisfies(required);\n}\n/**\n* Checks one recorded `wiring` object against the Deps it was wired against:\n* every named input exists and is a dependency slot, every referenced\n* producer is a real (by-now-provisioned) address, and a wired ref whose\n* slot declares a required contract must satisfy() it — no producer-kind\n* branching, the contract alone determines validity, whether the producer is\n* a service port or a resource. Shared by both provisioned kinds so a\n* module-as-child gets exactly the checks a service gets, and run once per\n* entry against the one `byId` shared by the whole recursive flatten, so a\n* forwarded ref resolves through to its real producer address regardless of\n* which ancestor scope provisioned it.\n*/\nfunction validateWiring(pending, byId) {\n\tconst { deps, wiring, targetId, targetKind, enclosingModuleName } = pending;\n\tfor (const [input, ref] of Object.entries(wiring)) {\n\t\tconst declared = blindCast(deps[input]);\n\t\tif (declared === void 0 || !isNode(declared) || declared.kind !== \"dependency\") throw new LoadError(`The deps for \"${targetId}\" name \"${input}\", which is not a dependency slot of that ${targetKind}.`);\n\t\tconst producerId = producerIdOf(ref);\n\t\tconst producer = producerId !== void 0 ? byId.get(producerId) : void 0;\n\t\tif (producerId === void 0 || producer === void 0) throw new LoadError(`The deps for \"${targetId}.${input}\" reference \"${String(producerId)}\", which is not provisioned in module \"${enclosingModuleName}\".`);\n\t\tconst required = declared.required;\n\t\tif (required !== void 0 && !satisfiesRequired(ref, required)) throw new LoadError(`The deps for \"${targetId}.${input}\" do not satisfy the slot's required contract.`);\n\t}\n\tfor (const [input, rawValue] of Object.entries(deps)) {\n\t\tconst value = blindCast(rawValue);\n\t\tif (!isNode(value) || wiring[input] !== void 0) continue;\n\t\tif (value.kind === \"dependency\") throw new LoadError(`Dependency \"${input}\" of provisioned ${targetKind} \"${targetId}\" is not wired to a producer (module \"${enclosingModuleName}\").`);\n\t}\n}\n/**\n* Flattens a value into itself plus every nested object/array member value —\n* identity fodder for the ctx.secrets/ctx.params usage marking, which must\n* see a forwarded source wherever it sits inside an input binding (ADR-0042).\n* A value or a secret/param source is an opaque leaf: it is pushed (a\n* forwarded ref IS such a source, so identity-matching still needs it) but\n* never descended into, so a ref buried in an unrelated source's payload is\n* not falsely seen as used. `seen` guards object cycles so a self-referential binding cannot\n* recurse forever.\n*/\nfunction deepValues(value, out, seen = /* @__PURE__ */ new WeakSet()) {\n\tout.push(value);\n\tif (typeof value !== \"object\" || value === null) return;\n\tif (isValue(value) || isSecretSource(value) || isParamSource(value)) return;\n\tif (seen.has(value)) return;\n\tseen.add(value);\n\tconst members = Array.isArray(value) ? value : Object.values(value);\n\tfor (const member of members) deepValues(member, out, seen);\n}\n/** The (unvalidated) edges a `wiring` object implies — one dependency edge per entry; `validateWiring` does the real checking. */\nfunction wiringEdges(wiring, targetId) {\n\treturn Object.entries(wiring).map(([input, ref]) => ({\n\t\tfrom: producerIdOf(ref) ?? \"\",\n\t\tto: targetId,\n\t\tinput,\n\t\tkind: \"dependency\"\n\t}));\n}\n/**\n* Checks the secrets wired into one provisioned child MODULE: every declared\n* forwarding slot is bound to a real secret source (an `envSecret` or a\n* forwarded ctx.secrets ref), and no wired key names a slot the module\n* doesn't declare — the secret analog of `validateWiring`'s per-input checks,\n* but resolved inline (a source carries its own name, so no whole-graph pass\n* is needed).\n*/\nfunction validateSecretBinding(child, id, address, secretWiring, enclosingModuleName) {\n\tconst { kind } = child;\n\tfor (const slot of Object.keys(child.secretSlots)) {\n\t\tconst bound = secretWiring[slot];\n\t\tif (bound === void 0) throw new LoadError(`Secret slot \"${slot}\" of provisioned ${kind} \"${id}\" is not bound (module \"${enclosingModuleName}\") — bind it with envSecret('NAME') or forward ctx.secrets.`);\n\t\tif (isValue(bound)) throw new LoadError(`The secrets for \"${address}\" bind \"${slot}\" to a value. A value is not a secret source; bind envSecret('NAME') or a forwarded ctx.secrets ref.`);\n\t\tif (!isSecretSource(bound)) throw new LoadError(`Secret slot \"${slot}\" of \"${id}\" (module \"${enclosingModuleName}\") was wired with a non-secret value — use envSecret('NAME') or a forwarded ctx.secrets ref.`);\n\t}\n\tfor (const slot of Object.keys(secretWiring)) if (!Object.hasOwn(child.secretSlots, slot)) throw new LoadError(`The secrets for \"${id}\" name \"${slot}\", which is not a secret slot of that ${kind} (module \"${enclosingModuleName}\").`);\n}\n/**\n* Checks the params wired into a provisioned SERVICE: unlike a secret slot, a\n* declared param is never required to be bound here — it may fall back to its\n* own `default` (checked later, at `buildConfig`) — so this only rejects a\n* wired key that names something other than a real declared param.\n*/\nfunction validateServiceParamBinding(child, id, paramWiring, enclosingModuleName) {\n\tfor (const slot of Object.keys(paramWiring)) if (!Object.hasOwn(child.params, slot)) throw new LoadError(`The params for \"${id}\" name \"${slot}\", which is not a param of that service (module \"${enclosingModuleName}\").`);\n}\n/**\n* Checks the params wired into a provisioned MODULE: every declared\n* param-forwarding slot must be bound to a real `ParamSource` — a slot has no\n* schema of its own, so (unlike a service param) it cannot fall back to a\n* literal or a default; the param analog of `validateSecretBinding`.\n*/\nfunction validateParamNeedBinding(child, id, address, paramWiring, enclosingModuleName) {\n\tfor (const slot of Object.keys(child.paramSlots)) {\n\t\tconst bound = paramWiring[slot];\n\t\tif (bound === void 0) throw new LoadError(`Param slot \"${slot}\" of provisioned module \"${id}\" is not bound (module \"${enclosingModuleName}\") — bind it with a param source (e.g. envParam('NAME')) or forward ctx.params.`);\n\t\tif (isValue(bound)) throw new LoadError(`The params for \"${address}\" bind \"${slot}\" to a value. A module param slot takes a param source; bind envParam('NAME') or a forwarded ctx.params ref.`);\n\t\tif (!isParamSource(bound)) throw new LoadError(`Param slot \"${slot}\" of \"${id}\" (module \"${enclosingModuleName}\") was wired with a non-source value — a module param-forwarding slot carries no schema to validate a literal against; use envParam('NAME') or a forwarded ctx.params ref.`);\n\t}\n\tfor (const slot of Object.keys(paramWiring)) if (!Object.hasOwn(child.paramSlots, slot)) throw new LoadError(`The params for \"${id}\" name \"${slot}\", which is not a param slot of that module (module \"${enclosingModuleName}\").`);\n}\n/**\n* Recursively flattens one module's body into the shared graph state and\n* returns its resolved ModuleOutputs (one ref-port per expose key) for the\n* caller (the enclosing provision() call, or Load itself for the root) to\n* use. `wiring` supplies a\n* resolved producer ref-port for each of this module's OWN declared deps (empty\n* for the root, which may not declare any — see the root non-empty-deps\n* check in loadModule). `nodes`, `edges`, `pending`, and `byId` are shared\n* across the ENTIRE recursive flatten, not per scope — a nested module may\n* forward in a producer provisioned by an ancestor scope, and it is the\n* shared `byId` (keyed by full address) that lets that resolve.\n*\n* `selfId` is this module's own full address — for the root, the deployed app\n* name (ADR-0057). Every child's address is `selfId` plus its provision id, so\n* every address starts with the app name. It also anchors the authored view:\n* children carry it as their `parent`, and this module's own boundary ports\n* (and the authored edges touching them) are recorded against it.\n*/\nfunction flatten(moduleNode, selfId, wiring, secretWiring, paramWiring, nodes, edges, pending, inputBindings, paramBindings, moduleInputs, byId, ports, authoredEdges, loading) {\n\tports.push(...boundaryPortsOf(selfId, moduleNode));\n\tconst localIds = /* @__PURE__ */ new Set();\n\tconst used = /* @__PURE__ */ new Set();\n\tconst usedSecrets = /* @__PURE__ */ new Set();\n\tconst usedParams = /* @__PURE__ */ new Set();\n\tconst ctxInputs = {};\n\tfor (const key of Object.keys(moduleNode.deps)) {\n\t\tconst wired = wiring[key];\n\t\tctxInputs[key] = typeof wired === \"object\" && wired !== null ? {\n\t\t\t...wired,\n\t\t\t[MODULE_INPUT_KEY]: key\n\t\t} : wired;\n\t}\n\tconst markUsed = (values) => {\n\t\tfor (const value of values) for (const key of Object.keys(ctxInputs)) if (value === ctxInputs[key]) used.add(key);\n\t};\n\tconst authoredSourceOf = (value) => {\n\t\tfor (const key of Object.keys(ctxInputs)) if (value === ctxInputs[key]) return {\n\t\t\tnode: selfId,\n\t\t\tdirection: \"in\",\n\t\t\tname: key\n\t\t};\n\t\tconst brand = authoredPortOf(value);\n\t\treturn brand === void 0 ? void 0 : {\n\t\t\tnode: brand.node,\n\t\t\tdirection: \"out\",\n\t\t\tname: brand.name\n\t\t};\n\t};\n\t/** Records the authored edge each wiring entry declares: source port → the target's own `in` port. */\n\tconst recordAuthoredWiring = (targetId, targetWiring) => {\n\t\tfor (const [input, ref] of Object.entries(targetWiring)) {\n\t\t\tconst from = authoredSourceOf(ref);\n\t\t\tif (from !== void 0) authoredEdges.push({\n\t\t\t\tfrom,\n\t\t\t\tto: {\n\t\t\t\t\tnode: targetId,\n\t\t\t\t\tdirection: \"in\",\n\t\t\t\t\tname: input\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\tconst ctxSecrets = {};\n\tfor (const key of Object.keys(moduleNode.secretSlots)) {\n\t\tconst bound = secretWiring[key];\n\t\tctxSecrets[key] = typeof bound === \"object\" && bound !== null ? {\n\t\t\t...bound,\n\t\t\t[MODULE_SECRET_KEY]: key\n\t\t} : bound;\n\t}\n\tconst markSecretsUsed = (values) => {\n\t\tfor (const value of values) for (const key of Object.keys(ctxSecrets)) if (value === ctxSecrets[key]) usedSecrets.add(key);\n\t};\n\tconst ctxParams = {};\n\tfor (const key of Object.keys(moduleNode.paramSlots)) {\n\t\tconst bound = paramWiring[key];\n\t\tctxParams[key] = typeof bound === \"object\" && bound !== null ? {\n\t\t\t...bound,\n\t\t\t[MODULE_PARAM_KEY]: key\n\t\t} : bound;\n\t}\n\tconst markParamsUsed = (values) => {\n\t\tfor (const value of values) for (const key of Object.keys(ctxParams)) if (value === ctxParams[key]) usedParams.add(key);\n\t};\n\tconst provision = (child, opts) => {\n\t\tif (loading.sealed) throw new LoadError(`provision() was called after module \"${moduleNode.name}\" was loaded, from inside a resolve() function. resolve() computes values, never structure: the graph is the same whatever inputs Composer is given (ADR-0062). Provision the node in the module body and pass the value into it.`);\n\t\tconst id = opts?.id ?? child.name;\n\t\tconst provisionWiring = opts?.deps;\n\t\tconst provisionSecrets = opts?.secrets;\n\t\tconst provisionInput = opts?.input;\n\t\tconst provisionParams = opts?.params;\n\t\tif (isValue(id)) throw new LoadError(`provision() received a value as its id (module \"${moduleNode.name}\"). A value can configure a node, never decide its address: the graph is the same whatever inputs Composer is given (ADR-0062).`);\n\t\tif (typeof id !== \"string\" || id.length === 0) throw new LoadError(`provision() requires a non-empty id (module \"${moduleNode.name}\").`);\n\t\tif (!isConfigKeySegment(id)) throw new LoadError(`provision() id \"${id}\" (module \"${moduleNode.name}\") must contain only ASCII letters and digits ([A-Za-z0-9]) — the id becomes an address segment, and addresses derive deterministic config keys (segments uppercased and joined with \"_\"). \"${id}\" would put \"${id.toUpperCase()}\" inside the derived key. (\"_\" collides with the key separator and \".\" with the address separator.)`);\n\t\tif (localIds.has(id)) throw new LoadError(`Duplicate provision id \"${id}\" in module \"${moduleNode.name}\".`);\n\t\tconst untrusted = child;\n\t\tif (!isNode(untrusted) || untrusted.kind !== \"service\" && untrusted.kind !== \"resource\" && untrusted.kind !== \"module\") throw new LoadError(`provision(\"${id}\") expects a branded service, resource, or module node (construct it with the service()/resource()/module() factories or a pack's own).`);\n\t\tlocalIds.add(id);\n\t\tconst fullAddress = `${selfId}.${id}`;\n\t\tif (child.kind === \"resource\") {\n\t\t\tif (provisionWiring !== void 0) throw new LoadError(`provision(\"${id}\") received deps for a resource — a resource's slots are wired when it is constructed, not at provision().`);\n\t\t\tif (provisionSecrets !== void 0) throw new LoadError(`provision(\"${id}\") received secrets for a resource — a resource has no secret slots to satisfy.`);\n\t\t\tif (provisionInput !== void 0) throw new LoadError(`provision(\"${id}\") received an input binding for a resource — a resource declares no input schema.`);\n\t\t\tif (provisionParams !== void 0) throw new LoadError(`provision(\"${id}\") received params for a resource — a resource has no params to satisfy.`);\n\t\t\tif (child.type.length === 0) throw new LoadError(`provision(\"${id}\") received a resource with an empty node type.`);\n\t\t\tconst localWiring = { ...child.deps };\n\t\t\tmarkUsed(Object.values(localWiring));\n\t\t\tbyId.set(fullAddress, child);\n\t\t\tconst slots = slotNodesAndEdges(child, fullAddress);\n\t\t\tnodes.push(...slots.nodes, {\n\t\t\t\tid: fullAddress,\n\t\t\t\tparent: selfId,\n\t\t\t\tnode: child\n\t\t\t});\n\t\t\tedges.push(...slots.edges, ...wiringEdges(localWiring, fullAddress));\n\t\t\tports.push(...boundaryPortsOf(fullAddress, child));\n\t\t\tconst provides = child.provides;\n\t\t\tif (provides !== void 0) ports.push({\n\t\t\t\tnode: fullAddress,\n\t\t\t\tdirection: \"out\",\n\t\t\t\tname: RESOURCE_OUT_PORT,\n\t\t\t\tcontractKind: provides.kind,\n\t\t\t\tstyle: contractStyleOf(provides)\n\t\t\t});\n\t\t\trecordAuthoredWiring(fullAddress, localWiring);\n\t\t\tpending.push({\n\t\t\t\tdeps: child.inputs ?? {},\n\t\t\t\twiring: localWiring,\n\t\t\t\ttargetId: fullAddress,\n\t\t\t\ttargetKind: \"resource\",\n\t\t\t\tenclosingModuleName: moduleNode.name\n\t\t\t});\n\t\t\treturn refForResource(fullAddress, child);\n\t\t}\n\t\tfor (const [input, ref] of Object.entries(provisionWiring ?? {})) if (isValue(ref)) throw new LoadError(`The deps for \"${fullAddress}.${input}\" are bound to a value. A value can configure a node, never decide its edges: the graph is the same whatever inputs Composer is given (ADR-0062).`);\n\t\tconst localWiring = { ...provisionWiring ?? {} };\n\t\tmarkUsed(Object.values(localWiring));\n\t\tconst localSecrets = { ...provisionSecrets ?? {} };\n\t\tmarkSecretsUsed(Object.values(localSecrets));\n\t\tconst localParams = { ...provisionParams ?? {} };\n\t\tmarkParamsUsed(Object.values(localParams));\n\t\tif (child.kind === \"service\") {\n\t\t\tif (provisionSecrets !== void 0) throw new LoadError(`provision(\"${id}\") received secrets for a service — a service takes its secrets as envSecret(...) leaves of its \\`input\\` binding (ADR-0042), not a secrets map.`);\n\t\t\tif (child.inputSchema !== void 0 && provisionInput === void 0) throw new LoadError(`Input of provisioned service \"${id}\" is not bound (module \"${moduleNode.name}\") — the service declares an input schema; bind it with \\`input: { … }\\` on its provision() call.`);\n\t\t\tif (child.inputSchema === void 0 && provisionInput !== void 0) throw new LoadError(`provision(\"${id}\") received an input binding, but the service declares no input schema (module \"${moduleNode.name}\").`);\n\t\t\tif (provisionInput !== void 0) {\n\t\t\t\tconst leaves = [];\n\t\t\t\tdeepValues(provisionInput, leaves);\n\t\t\t\tmarkSecretsUsed(leaves);\n\t\t\t\tmarkParamsUsed(leaves);\n\t\t\t\tinputBindings.push({\n\t\t\t\t\tserviceAddress: fullAddress,\n\t\t\t\t\tbinding: blindCast(provisionInput)\n\t\t\t\t});\n\t\t\t}\n\t\t\tvalidateServiceParamBinding(child, id, localParams, moduleNode.name);\n\t\t\tfor (const [slot, binding] of Object.entries(localParams)) paramBindings.push({\n\t\t\t\tserviceAddress: fullAddress,\n\t\t\t\tslot,\n\t\t\t\tbinding\n\t\t\t});\n\t\t\tconst inputs = slotNodesAndEdges(child, fullAddress);\n\t\t\tnodes.push(...inputs.nodes, {\n\t\t\t\tid: fullAddress,\n\t\t\t\tparent: selfId,\n\t\t\t\tnode: child\n\t\t\t});\n\t\t\tedges.push(...inputs.edges, ...wiringEdges(localWiring, fullAddress));\n\t\t\tports.push(...boundaryPortsOf(fullAddress, child));\n\t\t\trecordAuthoredWiring(fullAddress, localWiring);\n\t\t\tpending.push({\n\t\t\t\tdeps: child.inputs,\n\t\t\t\twiring: localWiring,\n\t\t\t\ttargetId: fullAddress,\n\t\t\t\ttargetKind: \"service\",\n\t\t\t\tenclosingModuleName: moduleNode.name\n\t\t\t});\n\t\t\tbyId.set(fullAddress, child);\n\t\t\treturn refFor(fullAddress, child);\n\t\t}\n\t\tconst childInputSchema = child.inputSchema;\n\t\tif (childInputSchema === void 0 && provisionInput !== void 0) throw new LoadError(`provision(\"${id}\") received an input binding, but the module declares no input schema (module \"${moduleNode.name}\").`);\n\t\tif (childInputSchema !== void 0 && provisionInput === void 0) throw new LoadError(`Input of provisioned module \"${id}\" is not bound (module \"${moduleNode.name}\") — the module declares an input schema; bind it with \\`input: { … }\\` on its provision() call.`);\n\t\tif (childInputSchema !== void 0) {\n\t\t\tconst leaves = [];\n\t\t\tdeepValues(provisionInput, leaves);\n\t\t\tmarkSecretsUsed(leaves);\n\t\t\tmarkParamsUsed(leaves);\n\t\t\tmoduleInputs.push({\n\t\t\t\tmoduleAddress: fullAddress,\n\t\t\t\tschema: childInputSchema,\n\t\t\t\tbinding: provisionInput\n\t\t\t});\n\t\t}\n\t\tvalidateSecretBinding(child, id, fullAddress, localSecrets, moduleNode.name);\n\t\tvalidateParamNeedBinding(child, id, fullAddress, localParams, moduleNode.name);\n\t\tedges.push(...wiringEdges(localWiring, fullAddress));\n\t\trecordAuthoredWiring(fullAddress, localWiring);\n\t\tpending.push({\n\t\t\tdeps: child.deps,\n\t\t\twiring: localWiring,\n\t\t\ttargetId: fullAddress,\n\t\t\ttargetKind: \"module\",\n\t\t\tenclosingModuleName: moduleNode.name\n\t\t});\n\t\tconst childOutputs = flatten(child, fullAddress, localWiring, localSecrets, localParams, nodes, edges, pending, inputBindings, paramBindings, moduleInputs, byId, ports, authoredEdges, loading);\n\t\tnodes.push({\n\t\t\tid: fullAddress,\n\t\t\tparent: selfId,\n\t\t\tnode: child\n\t\t});\n\t\tbyId.set(fullAddress, child);\n\t\tconst brandedOutputs = {};\n\t\tfor (const [key, value] of Object.entries(childOutputs)) brandedOutputs[key] = typeof value === \"object\" && value !== null ? {\n\t\t\t...value,\n\t\t\t[AUTHORED_PORT]: {\n\t\t\t\tnode: fullAddress,\n\t\t\t\tname: key\n\t\t\t}\n\t\t} : value;\n\t\treturn blindCast({\n\t\t\tid: fullAddress,\n\t\t\t...brandedOutputs\n\t\t});\n\t};\n\tconst ctx = blindCast({\n\t\tdeps: ctxInputs,\n\t\tsecrets: ctxSecrets,\n\t\tparams: ctxParams,\n\t\tinput: moduleNode.inputSchema === void 0 ? void 0 : buildModuleInput(selfId),\n\t\tenvironment: environmentFacts,\n\t\tprovision: blindCast(provision)\n\t});\n\tconst outputs = blindCast(moduleNode.body(ctx) ?? {});\n\tmarkUsed(Object.values(outputs));\n\tfor (const key of Object.keys(moduleNode.deps)) if (!used.has(key)) throw new LoadError(`Module \"${moduleNode.name}\" declares dependency \"${key}\" but never forwards it into a provision nor returns it as an exposed interface.`);\n\tfor (const key of Object.keys(moduleNode.secretSlots)) if (!usedSecrets.has(key)) throw new LoadError(`Module \"${moduleNode.name}\" declares secret \"${key}\" but never forwards it into a provision.`);\n\tfor (const key of Object.keys(moduleNode.paramSlots)) if (!usedParams.has(key)) throw new LoadError(`Module \"${moduleNode.name}\" declares param \"${key}\" but never forwards it into a provision.`);\n\tfor (const [key, contract] of Object.entries(moduleNode.expose)) {\n\t\tconst port = outputs[key];\n\t\tif (port === void 0) throw new LoadError(`Module \"${moduleNode.name}\" declares expose \"${key}\" but its body did not return a port for it.`);\n\t\tif (isValue(port)) throw new LoadError(`Module \"${moduleNode.name}\" returned a value for expose \"${key}\". A value can configure a node, never decide its edges: return a port of a node the body provisions.`);\n\t\tif (!satisfiesRequired(port, contract)) throw new LoadError(`Module \"${moduleNode.name}\"'s returned port for expose \"${key}\" does not satisfy its declared contract.`);\n\t\tconst from = authoredSourceOf(port);\n\t\tif (from !== void 0) authoredEdges.push({\n\t\t\tfrom,\n\t\t\tto: {\n\t\t\t\tnode: selfId,\n\t\t\t\tdirection: \"out\",\n\t\t\t\tname: key\n\t\t\t}\n\t\t});\n\t}\n\treturn outputs;\n}\nfunction loadModule(root, opts) {\n\tconst rootId = opts?.id ?? root.name;\n\tconst rootDepKeys = Object.keys(root.deps);\n\tif (rootDepKeys.length > 0) {\n\t\tconst names = rootDepKeys.map((k) => `\"${k}\"`).join(\", \");\n\t\tthrow new LoadError(`Module \"${root.name}\" declares ${rootDepKeys.length > 1 ? \"dependencies\" : \"dependency\"} ${names} but is being deployed as the root — a root has no enclosing scope to wire them; compose \"${root.name}\" from another module that provisions and wires it instead.`);\n\t}\n\tconst rootSecretKeys = Object.keys(root.secretSlots);\n\tif (rootSecretKeys.length > 0) {\n\t\tconst names = rootSecretKeys.map((k) => `\"${k}\"`).join(\", \");\n\t\tthrow new LoadError(`Module \"${root.name}\" declares secret${rootSecretKeys.length > 1 ? \"s\" : \"\"} ${names} but is being deployed as the root — a root has no enclosing scope to bind them; the root binds secrets with envSecret('NAME'), it does not declare secret slots of its own.`);\n\t}\n\tconst rootParamKeys = Object.keys(root.paramSlots);\n\tif (rootParamKeys.length > 0) {\n\t\tconst names = rootParamKeys.map((k) => `\"${k}\"`).join(\", \");\n\t\tthrow new LoadError(`Module \"${root.name}\" declares param${rootParamKeys.length > 1 ? \"s\" : \"\"} ${names} but is being deployed as the root — a root has no enclosing scope to bind them; the root binds params directly on each provision() call, it does not declare param-forwarding slots of its own.`);\n\t}\n\tif (root.inputSchema !== void 0) throw new LoadError(`Module \"${root.name}\" declares input but is being deployed as the root. Composer cannot fill a root's input yet; provision \"${root.name}\" from another module and bind its input there.`);\n\tconst nodes = [];\n\tconst edges = [];\n\tconst pending = [];\n\tconst inputBindings = [];\n\tconst paramBindings = [];\n\tconst moduleInputs = [];\n\tconst byId = /* @__PURE__ */ new Map();\n\tconst ports = [];\n\tconst authoredEdges = [];\n\tconst loading = { sealed: false };\n\ttry {\n\t\tflatten(root, rootId, {}, {}, {}, nodes, edges, pending, inputBindings, paramBindings, moduleInputs, byId, ports, authoredEdges, loading);\n\t\tfor (const entry of pending) validateWiring(entry, byId);\n\t\tassertDependencyDag(edges);\n\t} finally {\n\t\tloading.sealed = true;\n\t}\n\tconst resources = /* @__PURE__ */ new Map();\n\tfor (const [address, node] of byId) if (node.kind === \"resource\") resources.set(address, node);\n\tconst resolved = resolveValues({\n\t\tenvironment: opts?.environment,\n\t\tinputBindings,\n\t\tparams: paramBindings,\n\t\tmoduleInputs,\n\t\tresources\n\t});\n\tconst resolvedNodes = nodes.map((entry) => {\n\t\tconst props = resolved.resourceProps.get(entry.id);\n\t\tif (entry.node.kind !== \"resource\" || props === void 0 || props === entry.node.props) return entry;\n\t\treturn {\n\t\t\t...entry,\n\t\t\tnode: withResolvedProps(entry.node, props)\n\t\t};\n\t});\n\tconst rootGraphNode = {\n\t\tid: rootId,\n\t\tparent: void 0,\n\t\tnode: root\n\t};\n\treturn {\n\t\troot: rootGraphNode,\n\t\tnodes: [...topoSort(resolvedNodes, edges), rootGraphNode],\n\t\tedges,\n\t\tports,\n\t\tauthoredEdges,\n\t\tinputBindings: resolved.inputBindings,\n\t\tparams: resolved.params\n\t};\n}\n/**\n* A frozen copy of `node` holding `props`, keeping its prototype (a class built\n* on `ResourceNodeBase` keeps its methods) and its own properties, the brand included.\n*/\nfunction withResolvedProps(node, props) {\n\treturn Object.freeze(Object.create(Object.getPrototypeOf(node), {\n\t\t...Object.getOwnPropertyDescriptors(node),\n\t\tprops: {\n\t\t\tvalue: Object.freeze(props),\n\t\t\tenumerable: true,\n\t\t\twritable: false,\n\t\t\tconfigurable: false\n\t\t}\n\t}));\n}\n/**\n* The dependency edges must form a DAG — a cycle means neither producer can\n* deploy first. A resource with dependency slots can take part in a cycle too.\n*/\nfunction assertDependencyDag(edges) {\n\tconst adjacency = /* @__PURE__ */ new Map();\n\tfor (const edge of edges) {\n\t\tif (edge.kind !== \"dependency\") continue;\n\t\tconst targets = adjacency.get(edge.from) ?? [];\n\t\ttargets.push(edge.to);\n\t\tadjacency.set(edge.from, targets);\n\t}\n\tconst visiting = /* @__PURE__ */ new Set();\n\tconst done = /* @__PURE__ */ new Set();\n\tconst stack = [];\n\tconst visit = (id) => {\n\t\tif (done.has(id)) return;\n\t\tif (visiting.has(id)) throw new LoadError(`Dependency cycle: ${[...stack.slice(stack.indexOf(id)), id].join(\" → \")} — no deploy order exists.`);\n\t\tvisiting.add(id);\n\t\tstack.push(id);\n\t\tfor (const next of adjacency.get(id) ?? []) visit(next);\n\t\tstack.pop();\n\t\tvisiting.delete(id);\n\t\tdone.add(id);\n\t};\n\tfor (const id of adjacency.keys()) visit(id);\n}\n//#endregion\n//#region src/graph.ts\nconst APP_NAME = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;\n/**\n* Throws unless `name` can be an app name: the root's address and the first segment of every\n* other address (ADR-0057). A `.` would split it, and it becomes part of every `COMPOSER_` key.\n*/\nfunction assertAppName(name) {\n\tif (!APP_NAME.test(name)) throw new LoadError(`The app name \"${name}\" is not valid. An app name (the root module's name, or --name) must start with a letter or digit and contain only letters, digits, \"-\" and \"_\".`);\n}\n/**\n* Builds the in-memory graph from a root node. A service root walks its own\n* `inputs`; a module root executes its body (wiring, not user code — the\n* designed exception to imports-run-nothing) and recursively flattens every\n* module it provisions into one graph of hierarchical addresses. A malformed\n* graph is a `LoadError` that names its fix; the individual validation rules\n* live with `loadService` / `loadModule` and are covered by name in the Load\n* tests. Executes nothing of the user's own code beyond module bodies and `resolve()`\n* functions.\n*/\nfunction Load(root, opts) {\n\tif (!isNode(root)) throw new LoadError(\"Load expects a branded service or module node (construct it with the service()/module() factories).\");\n\tif (root.kind === \"module\") {\n\t\tassertAppName(opts?.id ?? root.name);\n\t\treturn loadModule(root, opts);\n\t}\n\tif (root.kind === \"service\") return loadService(root, opts?.id ?? \"root\");\n\tthrow new LoadError(\"Load expects a service or module root (received another node kind).\");\n}\n//#endregion\nexport { RESOURCE_OUT_PORT as S, service as _, freezeNode as a, resolve as b, isProvisionNeed as c, paramNeed as d, paramSource as f, secretSource as g, secret as h, dependency as i, isSecretSource as l, resource as m, assertAppName as n, isNode as o, provisionNeed as p, ResourceNodeBase as r, isParamSource as s, Load as t, module as u, slotsOf as v, LoadError as x, isValue as y };\n\n//# sourceMappingURL=graph-KEuXGBfJ.mjs.map"],"mappings":";;;;;;AAKA,MAAM,oBAAoB;;;;;;;AAO1B,IAAI,YAAY,cAAc,mBAAmB;CAChD,YAAY,SAAS,SAAS;EAC7B,MAAM,yBAAyB,SAAS,OAAO;CAChD;AACD;;AAIA,SAAS,gBAAgB,UAAU;CAClC,IAAI,OAAO,aAAa,YAAY,aAAa,QAAQ,EAAE,WAAW,WAAW,OAAO,KAAK;CAC7F,OAAO,SAAS,UAAU,sBAAsB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MAAM,KAAK,IAAI;EACnC,OAAO,WAAW,MAAM,IAAI;CAC7B;CACA,IAAI,KAAK,SAAS,WAAW,OAAO,YAAY,MAAM,MAAM,MAAM,MAAM;CACxE,MAAM,IAAI,UAAU,qEAAqE;AAC1F"}
@@ -1,3 +1,4 @@
1
+ import { n as SecretString } from "./secret-CHOw4LBU-C8yXoC9N.mjs";
1
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
2
3
  //#region ../../0-framework/0-foundation/foundation/dist/errors.d.mts
3
4
  //#region src/structured-error.d.ts
@@ -77,7 +78,7 @@ declare class CliStructuredError extends Error implements StructuredError {
77
78
  static is(error: unknown): error is CliStructuredError;
78
79
  }
79
80
  //#endregion
80
- //#region ../../0-framework/1-core/core/dist/graph-types-DfsG9Rkg.d.mts
81
+ //#region ../../0-framework/1-core/core/dist/graph-types-Bn3tSF4x.d.mts
81
82
  //#region src/contract.d.ts
82
83
  /**
83
84
  * A Contract is the declared interface of a service-to-service dependency: a
@@ -213,11 +214,17 @@ type ValueOrigin<T> = {
213
214
  readonly kind: 'computed';
214
215
  readonly dependencies: readonly Value<unknown>[];
215
216
  readonly compute: (values: readonly unknown[]) => T;
217
+ } | {
218
+ readonly kind: 'input';
219
+ /** The address of the module whose input this field is. */
220
+ readonly module: string;
221
+ /** The key path inside that module's input; `[]` is the whole input. */
222
+ readonly path: readonly string[];
216
223
  };
217
224
  /**
218
225
  * An opaque stand-in a module body can pass wherever a `T` is accepted; its
219
226
  * real value is known by the end of Load (ADR-0062). `environment.name` is one;
220
- * `resolve()` returns one computed from others.
227
+ * each field of a module's `input` is one; `resolve()` returns one computed from others.
221
228
  */
222
229
  interface Value<T> {
223
230
  readonly [VALUE]: true;
@@ -226,7 +233,7 @@ interface Value<T> {
226
233
  }
227
234
  /** The tuple of real-value types a dependency tuple stands for: what `resolve()`'s `fn` receives. */
228
235
  type RealValuesOf<D extends readonly Value<unknown>[]> = { readonly [K in keyof D]: D[K] extends Value<infer T> ? T : never; };
229
- /** Plain data: what a `resolve()` function may return, and the only thing a value may stand for in a binding. */
236
+ /** Plain data: what a `resolve()` function may return. */
230
237
  type PlainData = string | number | boolean | null | readonly PlainData[] | {
231
238
  readonly [key: string]: PlainData;
232
239
  };
@@ -247,6 +254,21 @@ interface EnvironmentFacts {
247
254
  /** The real values of the environment facts: what Load is given for the environment being loaded. */
248
255
  type EnvironmentRealValues = { readonly [K in keyof EnvironmentFacts]: EnvironmentFacts[K] extends Value<infer T> ? T : never; };
249
256
  //#endregion
257
+ //#region src/module-input.d.ts
258
+ type PlainObject = {
259
+ readonly [key: string]: unknown;
260
+ };
261
+ /**
262
+ * What a module body holds for an input field whose real value has type `T`:
263
+ * a value, plus one `ModuleInputField` per key when `T` is a plain object.
264
+ */
265
+ type ModuleInputField<T> = Value<T> & FieldsOf<T>;
266
+ type FieldsOf<T> = [NonNullable<T>] extends [never] ? unknown : [NonNullable<T>] extends [readonly unknown[]] ? unknown : [NonNullable<T>] extends [PlainObject] ? Fields<NonNullable<T>, undefined extends T ? undefined : never> : unknown;
267
+ type Fields<O, Absent> = { readonly [K in keyof O & string]-?: ModuleInputField<FieldType<O, K> | Absent>; };
268
+ type FieldType<O, K extends keyof O> = Record<never, never> extends Pick<O, K> ? O[K] | undefined : O[K];
269
+ /** The `input` a module body receives for its input schema `S`: one value per field, typed from the schema's output (ADR-0061). */
270
+ type ModuleInput<S extends StandardSchemaV1> = ModuleInputField<StandardSchemaV1.InferOutput<S>>;
271
+ //#endregion
250
272
  //#region src/node.d.ts
251
273
  declare const NODE: unique symbol;
252
274
  declare const SECRET_NEED: unique symbol;
@@ -310,6 +332,10 @@ declare function paramNeed(): ParamNeed;
310
332
  type ParamBindings<P extends Params> = { readonly [K in keyof P]?: StandardSchemaV1.InferOutput<P[K]['schema']> | ParamSource | (StandardSchemaV1.InferOutput<P[K]['schema']> extends PlainData ? Value<StandardSchemaV1.InferOutput<P[K]['schema']>> : never); };
311
333
  /** What `provision(moduleChild, { params })` accepts per declared `ParamNeed`: a `ParamSource` only — a need carries no schema to validate a literal against. */
312
334
  type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: ParamSource; };
335
+ /** What a value in a service's input binding may stand for: plain data, a `SecretString` at any depth (a forwarded secret field), and `undefined` (an optional field the binding left out). */
336
+ type InputBindingData = string | number | boolean | null | undefined | SecretString | readonly InputBindingData[] | {
337
+ readonly [key: string]: InputBindingData;
338
+ };
313
339
  /**
314
340
  * What `provision(service, { input })` accepts (ADR-0042): a plain object
315
341
  * mirroring the service's input schema, whose leaves are literals,
@@ -318,9 +344,20 @@ type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: Par
318
344
  * Schema, so the binding's exact shape cannot be derived from it — deploy-time
319
345
  * validation of the resolved binding is the real check.
320
346
  */
321
- type InputBinding = string | number | boolean | null | ParamSource | SecretSource | Value<PlainData> | readonly InputBinding[] | {
347
+ type InputBinding = string | number | boolean | null | ParamSource | SecretSource | Value<InputBindingData> | readonly InputBinding[] | {
322
348
  readonly [key: string]: InputBinding;
323
349
  };
350
+ /**
351
+ * What `provision(module, { input })` accepts where the module's input schema
352
+ * expects `T` (its Standard Schema input type): the data, a value standing for
353
+ * it, or, for a `SecretString` field, a secret source. An optional key also
354
+ * takes a value that may stand for `undefined`.
355
+ */
356
+ type ModuleInputBinding<T> = Value<T> | (T extends SecretString ? SecretSource : T extends readonly (infer E)[] ? T | readonly ModuleInputBinding<E>[] : T extends {
357
+ readonly [key: string]: unknown;
358
+ } ? { readonly [K in keyof T]: ModuleInputBinding<T[K]> | (Record<never, never> extends Pick<T, K> ? Value<T[K] | undefined> : never); } : T);
359
+ /** A module input schema's Standard Schema input type. */
360
+ type ModuleInputOf<I extends StandardSchemaV1 | undefined> = StandardSchemaV1.InferInput<NonNullable<I>>;
324
361
  /** What `input()` returns: the schema's validated output type; `never` on a service that declares no input schema. */
325
362
  type InputValueOf<I> = I extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<I> : never;
326
363
  /** Opaque `Contract<any, any>` bound shared by every node/port type that doesn't care which contract. */
@@ -416,7 +453,7 @@ interface DependencyEnd<C = unknown, Req = unknown> {
416
453
  readonly required: Req | undefined;
417
454
  }
418
455
  /** A Module: the same Deps/Expose boundary a service has, around transparent wiring instead of a black-box body — its `body` runs at Load, not at authoring. */
419
- interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds> {
456
+ interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
420
457
  readonly [NODE]: true;
421
458
  readonly kind: 'module';
422
459
  /** Human-readable, given at authoring — logs/diagnostics only. */
@@ -426,20 +463,24 @@ interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends
426
463
  readonly secretSlots: S;
427
464
  /** Declared param-forwarding slots (authored as `params`) — forwarded to internals via `ctx.params`, the same rail secrets ride on. */
428
465
  readonly paramSlots: PN;
466
+ /** The module's whole incoming configuration as one Standard Schema (authored as `input`, ADR-0061), or `undefined` when it takes none. Load only calls its `~standard.validate`. */
467
+ readonly inputSchema: I;
429
468
  readonly expose: E;
430
- body(ctx: ModuleContext<D, S, PN>): ModuleOutputs<E> | void;
469
+ body(ctx: ModuleContext<D, S, PN, I>): ModuleOutputs<E> | void;
431
470
  }
432
471
  /**
433
472
  * What a module's body receives: its declared dependencies as forwardable wiring
434
473
  * values, plus `provision` to register the owned services/modules it wires them into.
435
474
  */
436
- interface ModuleContext<D extends Deps, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds> {
475
+ interface ModuleContext<D extends Deps, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
437
476
  /** The module's declared dependencies as wiring values — pass them into provision(). */
438
477
  readonly deps: { [K in keyof D]: InputRef<D[K]>; };
439
478
  /** The module's declared secret slots as forwardable sources — pass them into a child's `secrets` (ADR-0029). */
440
479
  readonly secrets: { readonly [K in keyof S]: SecretSource; };
441
480
  /** The module's declared param-forwarding slots as forwardable sources — pass them into a child's `params`. */
442
481
  readonly params: { readonly [K in keyof PN]: ParamSource; };
482
+ /** The module's input: one value per field, typed from its input schema's output (ADR-0061); `undefined` when it declares none. Pass a field into a provision() binding or list it as a resolve() dependency. */
483
+ readonly input: I extends StandardSchemaV1 ? ModuleInput<I> : undefined;
443
484
  /** The deploy-time facts of the environment, each a value (ADR-0062). List `environment.name` as a `resolve()` dependency. Never environment variables: user code never reads those. */
444
485
  readonly environment: EnvironmentFacts;
445
486
  /** Registers an owned child (service or module) under a stable id. */
@@ -504,27 +545,22 @@ type ServiceProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined
504
545
  params?: PB;
505
546
  }];
506
547
  /**
507
- * A child-MODULE provision's trailing options: `deps`/`secrets` required
508
- * exactly when the module declares the slots; a declared param-forwarding
509
- * slot may be bound to a `ParamSource`.
548
+ * A child-MODULE provision's trailing options: `deps`, `secrets` and `input`
549
+ * each required exactly when the module declares them; a declared
550
+ * param-forwarding slot may be bound to a `ParamSource`.
510
551
  */
511
- type ModuleProvisionArgs<D extends Deps, S extends Secrets, PB> = [keyof D] extends [never] ? [keyof S] extends [never] ? [opts?: {
512
- id?: string;
513
- params?: PB;
514
- }] : [opts: {
552
+ type ModuleProvisionOptions<D extends Deps, S extends Secrets, I extends StandardSchemaV1 | undefined, PB> = {
515
553
  id?: string;
516
- secrets: SecretBindings<S>;
517
554
  params?: PB;
518
- }] : [keyof S] extends [never] ? [opts: {
519
- id?: string;
520
- deps: DepBindings<D>;
521
- params?: PB;
522
- }] : [opts: {
523
- id?: string;
555
+ } & ([keyof D] extends [never] ? unknown : {
524
556
  deps: DepBindings<D>;
557
+ }) & ([keyof S] extends [never] ? unknown : {
525
558
  secrets: SecretBindings<S>;
526
- params?: PB;
527
- }];
559
+ }) & ([I] extends [StandardSchemaV1] ? {
560
+ input: ModuleInputBinding<ModuleInputOf<I>>;
561
+ } : unknown);
562
+ /** The options are optional exactly when nothing is required. */
563
+ type ModuleProvisionArgs<D extends Deps, S extends Secrets, I extends StandardSchemaV1 | undefined, PB> = [keyof D] extends [never] ? [keyof S] extends [never] ? [I] extends [StandardSchemaV1] ? [opts: ModuleProvisionOptions<D, S, I, PB>] : [opts?: ModuleProvisionOptions<D, S, I, PB>] : [opts: ModuleProvisionOptions<D, S, I, PB>] : [opts: ModuleProvisionOptions<D, S, I, PB>];
528
564
  interface ModuleBuilder {
529
565
  /** Provisions an owned resource; its id defaults to the node's `name`. */
530
566
  provision<C extends AnyContract | undefined>(resource: ResourceNode<C>, opts?: {
@@ -546,14 +582,15 @@ interface ModuleBuilder {
546
582
  input?: InputBinding;
547
583
  params?: ParamBindings<P>;
548
584
  }): ProvisionedRef<E>;
549
- /** Registers an owned child module; its id defaults to the node's `name`; `deps`/`secrets` are required iff it declares them; a declared param-forwarding slot may be bound to a `ParamSource`. */
550
- provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds>(child: ModuleNode<D, E, S, PN>, ...args: ModuleProvisionArgs<D, S, ParamNeedBindings<PN>>): ProvisionedRef<E>;
551
- /** The child-module call with `deps`/`secrets` spelled out — the same generic-wrapper escape as the service overload above. */
552
- provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds>(child: ModuleNode<D, E, S, PN>, opts: {
585
+ /** Registers an owned child module; its id defaults to the node's `name`; `deps`, `secrets` and `input` are required iff it declares them; a declared param-forwarding slot may be bound to a `ParamSource`. */
586
+ provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, S, PN, I>, ...args: ModuleProvisionArgs<D, S, I, ParamNeedBindings<PN>>): ProvisionedRef<E>;
587
+ /** The child-module call with `deps` spelled out — the same generic-wrapper escape as the service overload above. */
588
+ provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, S, PN, I>, opts: {
553
589
  id?: string;
554
590
  deps: DepBindings<D>;
555
591
  secrets?: SecretBindings<S>;
556
592
  params?: ParamNeedBindings<PN>;
593
+ input?: ModuleInputBinding<ModuleInputOf<I>>;
557
594
  }): ProvisionedRef<E>;
558
595
  }
559
596
  /** Dependency map: name → the slot the service declares. Only declarations are admitted, never a concrete ResourceNode. */
@@ -641,17 +678,18 @@ declare function dependency<P extends Params, C, Req = unknown>(def: {
641
678
  * closed-root shape — `module(name, body)` instead of `module(name, {}, () =>
642
679
  * ({}))`.
643
680
  */
644
- declare function module(name: string, body: (ctx: ModuleContext<Record<never, never>, Record<never, never>, Record<never, never>>) => void): ModuleNode<Record<never, never>, Record<never, never>, Record<never, never>, Record<never, never>>;
681
+ declare function module(name: string, body: (ctx: ModuleContext<Record<never, never>, Record<never, never>, Record<never, never>, undefined>) => void): ModuleNode<Record<never, never>, Record<never, never>, Record<never, never>, Record<never, never>, undefined>;
645
682
  /**
646
683
  * A module with a boundary: `deps` and/or `expose` declare what wires in and
647
684
  * out, the same way a service does. The body returns one port per `expose` key.
648
685
  */
649
- declare function module<D extends Deps = Record<never, never>, E extends Expose = Record<never, never>, S extends Secrets = Record<never, never>, PN extends ParamNeeds = Record<never, never>>(name: string, boundary: {
686
+ declare function module<D extends Deps = Record<never, never>, E extends Expose = Record<never, never>, S extends Secrets = Record<never, never>, PN extends ParamNeeds = Record<never, never>, I extends StandardSchemaV1 | undefined = undefined>(name: string, boundary: {
650
687
  deps?: D;
651
688
  secrets?: S;
652
689
  params?: PN;
690
+ input?: I;
653
691
  expose?: E;
654
- }, body: (ctx: ModuleContext<D, S, PN>) => ModuleOutputs<E> | void): ModuleNode<D, E, S, PN>;
692
+ }, body: (ctx: ModuleContext<D, S, PN, I>) => ModuleOutputs<E> | void): ModuleNode<D, E, S, PN, I>;
655
693
  /**
656
694
  * True if `value` was constructed by this module's factories. Checks the
657
695
  * brand only, never a prototype — a graph may mix nodes from a different
@@ -780,5 +818,5 @@ declare class LoadError extends CliStructuredError {
780
818
  });
781
819
  }
782
820
  //#endregion
783
- export { Secrets as $, NodeId as A, ProvisionNeed as B, LoadError as C, secretSource as Ct, ModuleNode as D, CliStructuredError as Dt, ModuleContext as E, string as Et, ParamNeeds as F, ResourceNode as G, RESOURCE_OUT_PORT as H, ParamSource as I, ResourcePropsMember as J, ResourceNodeBase as K, Params as L, ParamBindings as M, ParamNeed as N, ModuleOutputs as O, ParamNeedBindings as P, SecretSource as Q, PlainData as R, InputValueOf as S, secret as St, ModuleBuilder as T, slotsOf as Tt, RealValuesOf as U, ProvisionedRef as V, RefPort as W, SecretBindings as X, RunnableServiceNode as Y, SecretNeed as Z, GraphNode as _, paramNeed as _t, ConfigDeclaration as a, dependency as at, InputBinding as b, resolve as bt, Contract as c, isNode as ct, DependencyEnd as d, isSecretSource as dt, ServiceInputBinding as et, Deps as f, isValue as ft, Graph as g, paramManifest as gt, Expose as h, param as ht, Config as i, configOf as it, ParamBinding as j, NODE as k, ContractStyle as l, isParamSource as lt, EnvironmentFacts as m, number as mt, BoundaryPort as n, Value as nt, ConfigParam as o, freezeNode as ot, Edge as p, module as pt, ResourceProps as q, BuildAdapter as r, Values as rt, Connection as s, inputManifest as st, AuthoredEdge as t, ServiceNode as tt, DepBindings as u, isProvisionNeed as ut, Hydrated as v, paramSource as vt, LoadOptions as w, service as wt, InputRef as x, resource as xt, HydratedDeps as y, provisionNeed as yt, PortEndpoint as z };
784
- //# sourceMappingURL=graph-types-DfsG9Rkg-D_ARjMo7.d.mts.map
821
+ export { RunnableServiceNode as $, ModuleInputField as A, string as At, ParamSource as B, InputValueOf as C, provisionNeed as Ct, ModuleContext as D, secretSource as Dt, ModuleBuilder as E, secret as Et, ParamBinding as F, ProvisionedRef as G, PlainData as H, ParamBindings as I, RefPort as J, RESOURCE_OUT_PORT as K, ParamNeed as L, ModuleOutputs as M, NODE as N, ModuleInput as O, service as Ot, NodeId as P, ResourcePropsMember as Q, ParamNeedBindings as R, InputRef as S, paramSource as St, LoadOptions as T, resource as Tt, PortEndpoint as U, Params as V, ProvisionNeed as W, ResourceNodeBase as X, ResourceNode as Y, ResourceProps as Z, GraphNode as _, module as _t, ConfigDeclaration as a, ServiceNode as at, InputBinding as b, paramManifest as bt, Contract as c, configOf as ct, DependencyEnd as d, inputManifest as dt, SecretBindings as et, Deps as f, isNode as ft, Graph as g, isValue as gt, Expose as h, isSecretSource as ht, Config as i, ServiceInputBinding as it, ModuleNode as j, CliStructuredError as jt, ModuleInputBinding as k, slotsOf as kt, ContractStyle as l, dependency as lt, EnvironmentFacts as m, isProvisionNeed as mt, BoundaryPort as n, SecretSource as nt, ConfigParam as o, Value as ot, Edge as p, isParamSource as pt, RealValuesOf as q, BuildAdapter as r, Secrets as rt, Connection as s, Values as st, AuthoredEdge as t, SecretNeed as tt, DepBindings as u, freezeNode as ut, Hydrated as v, number as vt, LoadError as w, resolve as wt, InputBindingData as x, paramNeed as xt, HydratedDeps as y, param as yt, ParamNeeds as z };
822
+ //# sourceMappingURL=graph-types-Bn3tSF4x-BuHwUsq4.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-types-Bn3tSF4x-BuHwUsq4.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../0-framework/1-core/core/dist/graph-types-Bn3tSF4x.d.mts"],"mappings":";;;;UACU,wBAAwB;WACvB;WACA;WACA;WACA;aACE;aACA;;WAEF;WACA,OAAO;WACP;;;;;;;;UAwBD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;;;;;;;;;;;;cAoBG,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;EAKX,cAAc;;;;;SAKP,GAAG,i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;;;UAWR;WACC,MAAM;WACN,IAAI;;;;;;;;;UASL;WACC,MAAM;WACN,IAAI;WACJ;WACA;;;;;;;;UAQD;;WAEC,gBAAgB;;WAEhB,SAAS;;;;;;;;;;UAUV;;WAEC,gBAAgB;;WAEhB;;WAEA;;UAED;WACC,MAAM;;WAEN,gBAAgB;WAChB,gBAAgB;;WAEhB,gBAAgB;;WAEhB,wBAAwB;;WAExB,wBAAwB;;WAExB,iBAAiB;;;;;;;;cAQd,kBAAkB;EAC9B,YAAY,iBAAiB;aAClB"}
package/dist/http.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { c as Contract, d as DependencyEnd } from "./graph-types-DfsG9Rkg-D_ARjMo7.mjs";
2
- import "./index-D89ftK2z.mjs";
1
+ import { c as Contract, d as DependencyEnd } from "./graph-types-Bn3tSF4x-BuHwUsq4.mjs";
2
+ import "./index-Ba2dpziF.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 { o as dependency } from "./graph-MGOZJdDt-CyI8-9r7.mjs";
2
- import { c as string } from "./dist-CZ_yEZ7F.mjs";
1
+ import { o as dependency } from "./graph-KEuXGBfJ-BfR6EMoN.mjs";
2
+ import { c as string } from "./dist-CQVqb52E.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 { f as Deps, i as Config, tt as ServiceNode, y as HydratedDeps } from "./graph-types-DfsG9Rkg-D_ARjMo7.mjs";
2
- import "./graph-BzTSXnoQ-BvGVq0bm.mjs";
1
+ import { at as ServiceNode, f as Deps, i as Config, y as HydratedDeps } from "./graph-types-Bn3tSF4x-BuHwUsq4.mjs";
2
+ import "./graph-Dahnws6W-yKmoqSdc.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-D89ftK2z.d.mts.map
22
+ //# sourceMappingURL=index-Ba2dpziF.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-D89ftK2z.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/index.d.mts"],"mappings":";;;;;;;;;;;iBAWiB,QAAQ,MAAM,aAAa,QAAQ,SAAS,QAAQ,aAAa;;;;;;;iBAOjE,YAAY,MAAM,aAAa,QAAQ,SAAS,aAAa"}
1
+ {"version":3,"file":"index-Ba2dpziF.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/index.d.mts"],"mappings":";;;;;;;;;;;iBAWiB,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 { n as SecretString, r as isSecretString, t as SecretBox } from "./secret-CHOw4LBU-C8yXoC9N.mjs";
2
- import { $ as Secrets, A as NodeId, B as ProvisionNeed, C as LoadError, Ct as secretSource, D as ModuleNode, E as ModuleContext, Et as string, F as ParamNeeds, G as ResourceNode, H as RESOURCE_OUT_PORT, I as ParamSource, J as ResourcePropsMember, K as ResourceNodeBase, L as Params, M as ParamBindings, N as ParamNeed, O as ModuleOutputs, P as ParamNeedBindings, Q as SecretSource, R as PlainData, S as InputValueOf, St as secret, T as ModuleBuilder, Tt as slotsOf, U as RealValuesOf, V as ProvisionedRef, W as RefPort, X as SecretBindings, Y as RunnableServiceNode, Z as SecretNeed, _ as GraphNode, _t as paramNeed, a as ConfigDeclaration, at as dependency, b as InputBinding, bt as resolve, c as Contract, ct as isNode, d as DependencyEnd, dt as isSecretSource, et as ServiceInputBinding, f as Deps, ft as isValue, g as Graph, gt as paramManifest, h as Expose, ht as param, i as Config, it as configOf, j as ParamBinding, k as NODE, l as ContractStyle, lt as isParamSource, m as EnvironmentFacts, mt as number, n as BoundaryPort, nt as Value, o as ConfigParam, ot as freezeNode, p as Edge, pt as module, q as ResourceProps, r as BuildAdapter, rt as Values, s as Connection, st as inputManifest, t as AuthoredEdge, tt as ServiceNode, u as DepBindings, ut as isProvisionNeed, v as Hydrated, vt as paramSource, w as LoadOptions, wt as service, x as InputRef, xt as resource, y as HydratedDeps, yt as provisionNeed, z as PortEndpoint } from "./graph-types-DfsG9Rkg-D_ARjMo7.mjs";
3
- import { n as assertAppName, t as Load } from "./graph-BzTSXnoQ-BvGVq0bm.mjs";
4
- import { n as hydrateSync, t as hydrate } from "./index-D89ftK2z.mjs";
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 ParamNeed, type ParamNeedBindings, type ParamNeeds, type ParamSource, type Params, type PlainData, type PortEndpoint, type ProvisionNeed, type ProvisionedRef, RESOURCE_OUT_PORT, type RealValuesOf, type RefPort, type ResourceNode, ResourceNodeBase, type ResourceProps, type ResourcePropsMember, type RunnableServiceNode, type SecretBindings, SecretBox, type SecretNeed, type SecretSource, type SecretString, type Secrets, type ServiceInputBinding, type ServiceNode, type Value, type Values, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isProvisionNeed, isSecretSource, isSecretString, isValue, module, number, param, paramManifest, paramNeed, paramSource, provisionNeed, resolve, resource, secret, secretSource, service, slotsOf, string };
2
+ import { $ as RunnableServiceNode, A as ModuleInputField, At as string, B as ParamSource, C as InputValueOf, Ct as provisionNeed, D as ModuleContext, Dt as secretSource, E as ModuleBuilder, Et as secret, F as ParamBinding, G as ProvisionedRef, H as PlainData, I as ParamBindings, J as RefPort, K as RESOURCE_OUT_PORT, L as ParamNeed, M as ModuleOutputs, N as NODE, O as ModuleInput, Ot as service, P as NodeId, Q as ResourcePropsMember, R as ParamNeedBindings, S as InputRef, St as paramSource, T as LoadOptions, Tt as resource, U as PortEndpoint, V as Params, W as ProvisionNeed, X as ResourceNodeBase, Y as ResourceNode, Z as ResourceProps, _ as GraphNode, _t as module, a as ConfigDeclaration, at as ServiceNode, b as InputBinding, bt as paramManifest, c as Contract, ct as configOf, d as DependencyEnd, dt as inputManifest, et as SecretBindings, f as Deps, ft as isNode, g as Graph, gt as isValue, h as Expose, ht as isSecretSource, i as Config, it as ServiceInputBinding, j as ModuleNode, k as ModuleInputBinding, kt as slotsOf, l as ContractStyle, lt as dependency, m as EnvironmentFacts, mt as isProvisionNeed, n as BoundaryPort, nt as SecretSource, o as ConfigParam, ot as Value, p as Edge, pt as isParamSource, q as RealValuesOf, r as BuildAdapter, rt as Secrets, s as Connection, st as Values, t as AuthoredEdge, tt as SecretNeed, u as DepBindings, ut as freezeNode, v as Hydrated, vt as number, w as LoadError, wt as resolve, x as InputBindingData, xt as paramNeed, y as HydratedDeps, yt as param, z as ParamNeeds } from "./graph-types-Bn3tSF4x-BuHwUsq4.mjs";
3
+ import { n as assertAppName, t as Load } from "./graph-Dahnws6W-yKmoqSdc.mjs";
4
+ import { n as hydrateSync, t as hydrate } from "./index-Ba2dpziF.mjs";
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 InputBindingData, type InputRef, type InputValueOf, Load, LoadError, type LoadOptions, type ModuleBuilder, type ModuleContext, type ModuleInput, type ModuleInputBinding, type ModuleInputField, type ModuleNode, type ModuleOutputs, type NODE, type NodeId, type ParamBinding, type ParamBindings, type ParamNeed, type ParamNeedBindings, type ParamNeeds, type ParamSource, type Params, type PlainData, type PortEndpoint, type ProvisionNeed, type ProvisionedRef, RESOURCE_OUT_PORT, type RealValuesOf, type RefPort, type ResourceNode, ResourceNodeBase, type ResourceProps, type ResourcePropsMember, type RunnableServiceNode, type SecretBindings, SecretBox, type SecretNeed, type SecretSource, type SecretString, type Secrets, type ServiceInputBinding, type ServiceNode, type Value, type Values, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isProvisionNeed, isSecretSource, isSecretString, isValue, module, number, param, paramManifest, paramNeed, paramSource, provisionNeed, resolve, resource, secret, secretSource, service, slotsOf, string };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { S as slotsOf, _ as resolve, a as assertAppName, b as secretSource, c as isNode, d as isSecretSource, f as isValue, g as provisionNeed, h as paramSource, i as ResourceNodeBase, l as isParamSource, m as paramNeed, 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 secret } from "./graph-MGOZJdDt-CyI8-9r7.mjs";
2
1
  import { n as isSecretString, t as SecretBox } from "./secret-DoWGmN7m-DO5Brq1Y.mjs";
3
- import { a as number, c as string, i as inputManifest, n as hydrate, o as param, r as hydrateSync, s as paramManifest, t as configOf } from "./dist-CZ_yEZ7F.mjs";
2
+ import { S as slotsOf, _ as resolve, a as assertAppName, b as secretSource, c as isNode, d as isSecretSource, f as isValue, g as provisionNeed, h as paramSource, i as ResourceNodeBase, l as isParamSource, m as paramNeed, 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 secret } from "./graph-KEuXGBfJ-BfR6EMoN.mjs";
3
+ import { a as number, c as string, i as inputManifest, n as hydrate, o as param, r as hydrateSync, s as paramManifest, t as configOf } from "./dist-CQVqb52E.mjs";
4
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, paramNeed, paramSource, provisionNeed, resolve, resource, secret, secretSource, service, slotsOf, string };
@@ -1,4 +1,4 @@
1
- import { C as LocalTargetDescriptor, L as PrismaAppConfig, S as LocalTargetCurrentInput, T as LocalTargetProvidersInput, _ as LocalNodeLocation, b as LocalTargetAttachment, c as ContainerInstance, g as LocalNodeCondition, l as DEV_DIR, t as AlchemyStateLayer, tt as devEnvironmentDir, u as DEV_ENVIRONMENT_NAME_FILE, v as LocalNodeStopped, w as LocalTargetEmulatorsInput, x as LocalTargetCurrentApp, y as LocalTargetAttachInput } from "./app-config-CWm3wlNA-BVGreP8x.mjs";
1
+ import { C as LocalTargetDescriptor, L as PrismaAppConfig, S as LocalTargetCurrentInput, T as LocalTargetProvidersInput, _ as LocalNodeLocation, b as LocalTargetAttachment, c as ContainerInstance, g as LocalNodeCondition, l as DEV_DIR, t as AlchemyStateLayer, tt as devEnvironmentDir, u as DEV_ENVIRONMENT_NAME_FILE, v as LocalNodeStopped, w as LocalTargetEmulatorsInput, x as LocalTargetCurrentApp, y as LocalTargetAttachInput } from "./app-config-8nfo_ECP-DngN6Z3i.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 { r as BuildAdapter } from "./graph-types-DfsG9Rkg-D_ARjMo7.mjs";
2
- import "./index-D89ftK2z.mjs";
1
+ import { r as BuildAdapter } from "./graph-types-Bn3tSF4x-BuHwUsq4.mjs";
2
+ import "./index-Ba2dpziF.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-BeiYsLuZ.d.mts.map
16
+ //# sourceMappingURL=nextjs-DLyeRR7M-CNdHQRgH.d.mts.map