@wildo-ai/platform-core-shared 1.1.6 → 1.1.7

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/esm/core/resources/resources-operations.custom.shared.definitions.d.ts.map +1 -1
  2. package/dist/esm/core/resources/resources-operations.custom.shared.definitions.js.map +1 -1
  3. package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.d.ts.map +1 -1
  4. package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.js.map +1 -1
  5. package/dist/esm/core/resources/resources-types.custom.shared.schemas.d.ts.map +1 -1
  6. package/dist/esm/core/resources/resources-types.custom.shared.schemas.js.map +1 -1
  7. package/dist/esm/index.d.ts.map +1 -1
  8. package/dist/esm/index.js.map +1 -1
  9. package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
  10. package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
  11. package/dist/esm/runtime/application-worker-env.contracts.d.ts.map +1 -1
  12. package/dist/esm/runtime/application-worker-env.contracts.js.map +1 -1
  13. package/dist/esm/runtime/http-server-env.contracts.d.ts.map +1 -1
  14. package/dist/esm/runtime/http-server-env.contracts.js.map +1 -1
  15. package/dist/esm/runtime/runtime-topology.contracts.d.ts.map +1 -1
  16. package/dist/esm/runtime/runtime-topology.contracts.js.map +1 -1
  17. package/dist/esm/security/authorizations/roles.custom.shared.definitions.d.ts.map +1 -1
  18. package/dist/esm/security/authorizations/roles.custom.shared.definitions.js.map +1 -1
  19. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -1
  20. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.js.map +1 -1
  21. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -1
  22. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js.map +1 -1
  23. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -1
  24. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.js.map +1 -1
  25. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -1
  26. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map +1 -1
  27. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.d.ts.map +1 -1
  28. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js.map +1 -1
  29. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts.map +1 -1
  30. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js.map +1 -1
  31. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.d.ts.map +1 -1
  32. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.js.map +1 -1
  33. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts.map +1 -1
  34. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.js.map +1 -1
  35. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts.map +1 -1
  36. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js.map +1 -1
  37. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.d.ts.map +1 -1
  38. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.js.map +1 -1
  39. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts.map +1 -1
  40. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js.map +1 -1
  41. package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts.map +1 -1
  42. package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js.map +1 -1
  43. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts.map +1 -1
  44. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js.map +1 -1
  45. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts.map +1 -1
  46. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js.map +1 -1
  47. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.d.ts.map +1 -1
  48. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.js.map +1 -1
  49. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -1
  50. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -1
  51. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -1
  52. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -1
  53. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -1
  54. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js.map +1 -1
  55. package/dist/tsconfig.build.tsbuildinfo +1 -1
  56. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"resources-operations.custom.shared.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/core/resources/resources-operations.custom.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8CAA8C,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAapF,eAAO,MAAM,8CAA8C,EAAE,8CAA8C,CAAC,yBAAyB,CAYpI,CAAC"}
1
+ {"version":3,"file":"resources-operations.custom.shared.definitions.d.ts","sourceRoot":"","sources":["../../../../src/core/resources/resources-operations.custom.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8CAA8C,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAapF,eAAO,MAAM,8CAA8C,EAAE,8CAA8C,CAAC,yBAAyB,CAYpI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resources-operations.custom.shared.definitions.js","sourceRoot":"","sources":["../../../../../src/core/resources/resources-operations.custom.shared.definitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEpF,yBAAyB;AACzB,OAAO,EAAE,6DAA6D,EAAE,MAAM,oFAAoF,CAAC;AACnK,OAAO,EAAE,oEAAoE,EAAE,MAAM,sGAAsG,CAAC;AAC5L,OAAO,EACL,iFAAiF,EACjF,gFAAgF,GACjF,MAAM,wGAAwG,CAAC;AAChH,OAAO,EACL,sEAAsE,GACvE,MAAM,8FAA8F,CAAC;AAEtG,MAAM,CAAC,MAAM,8CAA8C,GAA8E;IACvI,gFAAgF;IAChF,yBAAyB;IACzB,gFAAgF;IAChF,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,6DAA6D;IAC5G,CAAC,yBAAyB,CAAC,0BAA0B,CAAC,EAAE,oEAAoE;IAC5H,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,EACnE,iFAAiF;IACnF,CAAC,yBAAyB,CAAC,wCAAwC,CAAC,EAClE,gFAAgF;IAClF,CAAC,yBAAyB,CAAC,6BAA6B,CAAC,EACvD,sEAAsE;CACzE,CAAC","sourcesContent":["import { ResourceConfiguration_InitializationFactoryMap } from '@wildo-ai/saas-models';\nimport { CustomShared_ResourceType } from './resources-types.custom.shared.schemas';\n\n// Application Management\nimport { wildoApplications_ResourceConfiguration_InitializationFactory } from '../../wildo-applications/wildo-applications.custom.shared.resources-config.schemas';\nimport { wildoApplicationVersions_ResourceConfiguration_InitializationFactory } from '../../wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas';\nimport {\n wildoApplicationActorSystemExecutions_ResourceConfiguration_InitializationFactory,\n wildoApplicationFlowSystemExecutions_ResourceConfiguration_InitializationFactory,\n} from '../../wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas';\nimport {\n wildoApplicationActorTasks_ResourceConfiguration_InitializationFactory,\n} from '../../wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas';\n\nexport const customShared_ResourcesConfigurationsFactoryMap: ResourceConfiguration_InitializationFactoryMap<CustomShared_ResourceType> = {\n // ─────────────────────────────────────────────────────────────────────────────\n // Application Management\n // ─────────────────────────────────────────────────────────────────────────────\n [CustomShared_ResourceType.WILDO_APPLICATION]: wildoApplications_ResourceConfiguration_InitializationFactory,\n [CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS]: wildoApplicationVersions_ResourceConfiguration_InitializationFactory,\n [CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS]:\n wildoApplicationActorSystemExecutions_ResourceConfiguration_InitializationFactory,\n [CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS]:\n wildoApplicationFlowSystemExecutions_ResourceConfiguration_InitializationFactory,\n [CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS]:\n wildoApplicationActorTasks_ResourceConfiguration_InitializationFactory,\n};\n"]}
1
+ {"version":3,"file":"resources-operations.custom.shared.definitions.js","sourceRoot":"","sources":["../../../../src/core/resources/resources-operations.custom.shared.definitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEpF,yBAAyB;AACzB,OAAO,EAAE,6DAA6D,EAAE,MAAM,oFAAoF,CAAC;AACnK,OAAO,EAAE,oEAAoE,EAAE,MAAM,sGAAsG,CAAC;AAC5L,OAAO,EACL,iFAAiF,EACjF,gFAAgF,GACjF,MAAM,wGAAwG,CAAC;AAChH,OAAO,EACL,sEAAsE,GACvE,MAAM,8FAA8F,CAAC;AAEtG,MAAM,CAAC,MAAM,8CAA8C,GAA8E;IACvI,gFAAgF;IAChF,yBAAyB;IACzB,gFAAgF;IAChF,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,6DAA6D;IAC5G,CAAC,yBAAyB,CAAC,0BAA0B,CAAC,EAAE,oEAAoE;IAC5H,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,EACnE,iFAAiF;IACnF,CAAC,yBAAyB,CAAC,wCAAwC,CAAC,EAClE,gFAAgF;IAClF,CAAC,yBAAyB,CAAC,6BAA6B,CAAC,EACvD,sEAAsE;CACzE,CAAC","sourcesContent":["import { ResourceConfiguration_InitializationFactoryMap } from '@wildo-ai/saas-models';\nimport { CustomShared_ResourceType } from './resources-types.custom.shared.schemas';\n\n// Application Management\nimport { wildoApplications_ResourceConfiguration_InitializationFactory } from '../../wildo-applications/wildo-applications.custom.shared.resources-config.schemas';\nimport { wildoApplicationVersions_ResourceConfiguration_InitializationFactory } from '../../wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas';\nimport {\n wildoApplicationActorSystemExecutions_ResourceConfiguration_InitializationFactory,\n wildoApplicationFlowSystemExecutions_ResourceConfiguration_InitializationFactory,\n} from '../../wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas';\nimport {\n wildoApplicationActorTasks_ResourceConfiguration_InitializationFactory,\n} from '../../wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas';\n\nexport const customShared_ResourcesConfigurationsFactoryMap: ResourceConfiguration_InitializationFactoryMap<CustomShared_ResourceType> = {\n // ─────────────────────────────────────────────────────────────────────────────\n // Application Management\n // ─────────────────────────────────────────────────────────────────────────────\n [CustomShared_ResourceType.WILDO_APPLICATION]: wildoApplications_ResourceConfiguration_InitializationFactory,\n [CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS]: wildoApplicationVersions_ResourceConfiguration_InitializationFactory,\n [CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS]:\n wildoApplicationActorSystemExecutions_ResourceConfiguration_InitializationFactory,\n [CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS]:\n wildoApplicationFlowSystemExecutions_ResourceConfiguration_InitializationFactory,\n [CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS]:\n wildoApplicationActorTasks_ResourceConfiguration_InitializationFactory,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resources-relationships.custom.shared.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/core/resources/resources-relationships.custom.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,oBAAoB,EAA+G,MAAM,uBAAuB,CAAC;AAG3N;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,mCAAmC,EAAE,oBAAoB,EA4KrE,CAAC"}
1
+ {"version":3,"file":"resources-relationships.custom.shared.definitions.d.ts","sourceRoot":"","sources":["../../../../src/core/resources/resources-relationships.custom.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,oBAAoB,EAA+G,MAAM,uBAAuB,CAAC;AAG3N;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,mCAAmC,EAAE,oBAAoB,EA4KrE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resources-relationships.custom.shared.definitions.js","sourceRoot":"","sources":["../../../../../src/core/resources/resources-relationships.custom.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAwB,+BAA+B,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAC3N,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAA2B;IACzE,8EAA8E;IAC9E,yBAAyB;IACzB,GAAG;IACH,2EAA2E;IAC3E,qEAAqE;IACrE,oDAAoD;IACpD,8EAA8E;IAE9E,yCAAyC;IACzC,sDAAsD;IACtD,2BAA2B,CACzB,gBAAgB,CAAC,aAAa,EAAE,yBAAyB,CAAC,iBAAiB,EAC3E,+BAA+B,CAAC,GAAG,EAAE,+BAA+B,CAAC,IAAI,EACzE;QACE,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AAC,IAAI,EACpC;QACE,MAAM,EAAE,kBAAkB,CAAC,WAAW;QACtC,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,EAAE;KAClB,CACF;IAED,sDAAsD;IACtD,2BAA2B,CACzB,yBAAyB,CAAC,iBAAiB,EAC3C,yBAAyB,CAAC,6BAA6B,EACvD,+BAA+B,CAAC,GAAG,EACnC,+BAA+B,CAAC,IAAI,EACpC;QACE,MAAM,EAAE,kBAAkB,CAAC,WAAW;QACtC,aAAa,EAAE;YACb,kBAAkB,EAAE;gBAClB,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gBAChD,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACnD;SACF;QACD,eAAe,EAAE;YACf,SAAS,EAAE;gBACT,cAAc,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,oGAAoG;aACzI;SACF;KACF,CACF;IAED,oEAAoE;IACpE,2BAA2B,CACzB,yBAAyB,CAAC,yCAAyC,EACnE,yBAAyB,CAAC,6BAA6B,EACvD,+BAA+B,CAAC,GAAG,EACnC,+BAA+B,CAAC,IAAI,EACpC;QACE,MAAM,EAAE,kBAAkB,CAAC,SAAS;QACpC,eAAe,EAAE,wCAAwC;QACzD,yBAAyB,EAAE,iCAAiC,CAAC,QAAQ;QACrE,aAAa,EAAE,EAAE;KAClB,CACF;CACF,CAAC","sourcesContent":["import { createResourcesRelationship, RelationshipNature, ResourceRelationship, ResourceRelationshipCardinality, CoreResourceType, CoreResourceOperation, ResourceParentResourceRequirement } from \"@wildo-ai/saas-models\";\nimport { CustomShared_ResourceType } from \"./resources-types.custom.shared.schemas\";\n\n/**\n * ⚠️ APPLICATION-CHILD RETENTION (compliance decision, Paul — 2026-07-29).\n *\n * `wildoApplicationVersions`, `wildoApplicationActorSystemExecutions`,\n * `wildoApplicationFlowSystemExecutions` and `wildoApplicationActorTasks` are RETAINED AS AUDIT\n * MATERIAL when their `wildoApplication` is deleted — the deployment/execution history of an\n * application outlives the application record itself. Every `onParentDelete` below is therefore\n * DISABLED.\n *\n * This also FIXES A LATENT BUG rather than merely expressing a preference: these children declare no\n * core DELETE op (`wildoApplicationVersions` exposes READ/LIST/CREATE only), so the cascade would have\n * thrown `ErrorType.CONFIGURATION` inside the parent's delete transaction and ROLLED BACK the\n * application delete as soon as one child row existed. Surfaced by the startup\n * composition-cascade-deletability guard on a live apps-manager boot (2026-07-29) — it was invisible to\n * the engine's regression test, which only rebuilds the CORE registry.\n *\n * A COMPOSITION without `onParentDelete` is an explicitly supported combination: the children are left\n * behind by design choice. The nature stays COMPOSITION because these rows genuinely belong to their\n * application; only the dies-with-parent behaviour is declined.\n */\nexport const customShared_ResourcesRelationships: ResourceRelationship[] = [\n // ═══════════════════════════════════════════════════════════════════════════\n // APPLICATION MANAGEMENT\n // \n // WildoApplication is a resource (not a scope). It represents applications\n // created by users using the wildo-ai-application (the app factory).\n // Primary scope for all resources is Organizations.\n // ═══════════════════════════════════════════════════════════════════════════\n \n // Organizations → WildoApplication (1:N)\n // Primary scope: Applications belong to organizations\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS, CustomShared_ResourceType.WILDO_APPLICATION, \n ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY,\n { \n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {}\n }\n ),\n\n // Organizations → WildoApplicationVersions (1:N)\n // Primary scope: Versions belong to organizations\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS, CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS, \n ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY,\n { \n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {}\n }\n ),\n\n // WildoApplication → WildoApplicationVersions (1:N)\n // Parent relationship (NOT primary scope)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION, CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS, \n ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY,\n { \n nature: RelationshipNature.COMPOSITION,\n contextPolicy: {\n operationOverrides: {\n [CoreResourceOperation.LIST]: { enabled: false },\n [CoreResourceOperation.SEARCH]: { enabled: false },\n }\n },\n childOperations: {\n lifecycle: {\n onParentDelete: { enabled: false }, // RETAIN as audit material (compliance decision 2026-07-29) — see the note at the top of this file.\n }\n }\n }\n ),\n\n // Organizations → WildoApplicationActorSystemExecutions (1:N)\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {},\n }\n ),\n\n // WildoApplication → WildoApplicationActorSystemExecutions (1:N)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n contextPolicy: {\n operationOverrides: {\n [CoreResourceOperation.LIST]: { enabled: false },\n [CoreResourceOperation.SEARCH]: { enabled: false },\n },\n },\n childOperations: {\n lifecycle: {\n onParentDelete: { enabled: false }, // RETAIN as audit material (compliance decision 2026-07-29) — see the note at the top of this file.\n },\n },\n }\n ),\n\n // Organizations → WildoApplicationFlowSystemExecutions (1:N)\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS,\n CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {},\n }\n ),\n\n // WildoApplication → WildoApplicationFlowSystemExecutions (1:N)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION,\n CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n contextPolicy: {\n operationOverrides: {\n [CoreResourceOperation.LIST]: { enabled: false },\n [CoreResourceOperation.SEARCH]: { enabled: false },\n },\n },\n childOperations: {\n lifecycle: {\n onParentDelete: { enabled: false }, // RETAIN as audit material (compliance decision 2026-07-29) — see the note at the top of this file.\n },\n },\n }\n ),\n\n // Organizations → WildoApplicationActorTasks (1:N)\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {},\n }\n ),\n\n // WildoApplication → WildoApplicationActorTasks (1:N)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n contextPolicy: {\n operationOverrides: {\n [CoreResourceOperation.LIST]: { enabled: false },\n [CoreResourceOperation.SEARCH]: { enabled: false },\n },\n },\n childOperations: {\n lifecycle: {\n onParentDelete: { enabled: false }, // RETAIN as audit material (compliance decision 2026-07-29) — see the note at the top of this file.\n },\n },\n }\n ),\n\n // ActorSystemExecution → WildoApplicationActorTasks (1:N reference)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'wildoApplicationActorSystemExecutionId',\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n }\n ),\n];\n"]}
1
+ {"version":3,"file":"resources-relationships.custom.shared.definitions.js","sourceRoot":"","sources":["../../../../src/core/resources/resources-relationships.custom.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAwB,+BAA+B,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAC3N,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAA2B;IACzE,8EAA8E;IAC9E,yBAAyB;IACzB,GAAG;IACH,2EAA2E;IAC3E,qEAAqE;IACrE,oDAAoD;IACpD,8EAA8E;IAE9E,yCAAyC;IACzC,sDAAsD;IACtD,2BAA2B,CACzB,gBAAgB,CAAC,aAAa,EAAE,yBAAyB,CAAC,iBAAiB,EAC3E,+BAA+B,CAAC,GAAG,EAAE,+BAA+B,CAAC,IAAI,EACzE;QACE,MAAM,EAAE,kBAAkB,CAAC,WAAW;QACtC,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,EAAE;KAClB,CACF;IAED,iDAAiD;IACjD,kDAAkD;IAClD,2BAA2B,CACzB,gBAAgB,CAAC,aAAa,EAAE,yBAAyB,CAAC,0BAA0B,EACpF,+BAA+B,CAAC,GAAG,EAAE,+BAA+B,CAAC,IAAI,EACzE;QACE,MAAM,EAAE,kBAAkB,CAAC,WAAW;QACtC,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,EAAE;KAClB,CACF;IAED,oDAAoD;IACpD,0CAA0C;IAC1C,2BAA2B,CACzB,yBAAyB,CAAC,iBAAiB,EAAE,yBAAyB,CAAC,0BAA0B,EACjG,+BAA+B,CAAC,GAAG,E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KAAK,EAAE;aACnD;SACF;QACD,eAAe,EAAE;YACf,SAAS,EAAE;gBACT,cAAc,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,oGAAoG;aACzI;SACF;KACF,CACF;IAED,oEAAoE;IACpE,2BAA2B,CACzB,yBAAyB,CAAC,yCAAyC,EACnE,yBAAyB,CAAC,6BAA6B,EACvD,+BAA+B,CAAC,GAAG,EACnC,+BAA+B,CAAC,IAAI,EACpC;QACE,MAAM,EAAE,kBAAkB,CAAC,SAAS;QACpC,eAAe,EAAE,wCAAwC;QACzD,yBAAyB,EAAE,iCAAiC,CAAC,QAAQ;QACrE,aAAa,EAAE,EAAE;KAClB,CACF;CACF,CAAC","sourcesContent":["import { createResourcesRelationship, RelationshipNature, ResourceRelationship, ResourceRelationshipCardinality, CoreResourceType, CoreResourceOperation, ResourceParentResourceRequirement } from \"@wildo-ai/saas-models\";\nimport { CustomShared_ResourceType } from \"./resources-types.custom.shared.schemas\";\n\n/**\n * ⚠️ APPLICATION-CHILD RETENTION (compliance decision, Paul — 2026-07-29).\n *\n * `wildoApplicationVersions`, `wildoApplicationActorSystemExecutions`,\n * `wildoApplicationFlowSystemExecutions` and `wildoApplicationActorTasks` are RETAINED AS AUDIT\n * MATERIAL when their `wildoApplication` is deleted — the deployment/execution history of an\n * application outlives the application record itself. Every `onParentDelete` below is therefore\n * DISABLED.\n *\n * This also FIXES A LATENT BUG rather than merely expressing a preference: these children declare no\n * core DELETE op (`wildoApplicationVersions` exposes READ/LIST/CREATE only), so the cascade would have\n * thrown `ErrorType.CONFIGURATION` inside the parent's delete transaction and ROLLED BACK the\n * application delete as soon as one child row existed. Surfaced by the startup\n * composition-cascade-deletability guard on a live apps-manager boot (2026-07-29) — it was invisible to\n * the engine's regression test, which only rebuilds the CORE registry.\n *\n * A COMPOSITION without `onParentDelete` is an explicitly supported combination: the children are left\n * behind by design choice. The nature stays COMPOSITION because these rows genuinely belong to their\n * application; only the dies-with-parent behaviour is declined.\n */\nexport const customShared_ResourcesRelationships: ResourceRelationship[] = [\n // ═══════════════════════════════════════════════════════════════════════════\n // APPLICATION MANAGEMENT\n // \n // WildoApplication is a resource (not a scope). It represents applications\n // created by users using the wildo-ai-application (the app factory).\n // Primary scope for all resources is Organizations.\n // ═══════════════════════════════════════════════════════════════════════════\n \n // Organizations → WildoApplication (1:N)\n // Primary scope: Applications belong to organizations\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS, CustomShared_ResourceType.WILDO_APPLICATION, \n ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY,\n { \n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {}\n }\n ),\n\n // Organizations → WildoApplicationVersions (1:N)\n // Primary scope: Versions belong to organizations\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS, CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS, \n ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY,\n { \n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {}\n }\n ),\n\n // WildoApplication → WildoApplicationVersions (1:N)\n // Parent relationship (NOT primary scope)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION, CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS, \n ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY,\n { \n nature: RelationshipNature.COMPOSITION,\n contextPolicy: {\n operationOverrides: {\n [CoreResourceOperation.LIST]: { enabled: false },\n [CoreResourceOperation.SEARCH]: { enabled: false },\n }\n },\n childOperations: {\n lifecycle: {\n onParentDelete: { enabled: false }, // RETAIN as audit material (compliance decision 2026-07-29) — see the note at the top of this file.\n }\n }\n }\n ),\n\n // Organizations → WildoApplicationActorSystemExecutions (1:N)\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {},\n }\n ),\n\n // WildoApplication → WildoApplicationActorSystemExecutions (1:N)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n contextPolicy: {\n operationOverrides: {\n [CoreResourceOperation.LIST]: { enabled: false },\n [CoreResourceOperation.SEARCH]: { enabled: false },\n },\n },\n childOperations: {\n lifecycle: {\n onParentDelete: { enabled: false }, // RETAIN as audit material (compliance decision 2026-07-29) — see the note at the top of this file.\n },\n },\n }\n ),\n\n // Organizations → WildoApplicationFlowSystemExecutions (1:N)\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS,\n CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {},\n }\n ),\n\n // WildoApplication → WildoApplicationFlowSystemExecutions (1:N)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION,\n CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n contextPolicy: {\n operationOverrides: {\n [CoreResourceOperation.LIST]: { enabled: false },\n [CoreResourceOperation.SEARCH]: { enabled: false },\n },\n },\n childOperations: {\n lifecycle: {\n onParentDelete: { enabled: false }, // RETAIN as audit material (compliance decision 2026-07-29) — see the note at the top of this file.\n },\n },\n }\n ),\n\n // Organizations → WildoApplicationActorTasks (1:N)\n createResourcesRelationship(\n CoreResourceType.ORGANIZATIONS,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n contextPolicy: {},\n }\n ),\n\n // WildoApplication → WildoApplicationActorTasks (1:N)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n contextPolicy: {\n operationOverrides: {\n [CoreResourceOperation.LIST]: { enabled: false },\n [CoreResourceOperation.SEARCH]: { enabled: false },\n },\n },\n childOperations: {\n lifecycle: {\n onParentDelete: { enabled: false }, // RETAIN as audit material (compliance decision 2026-07-29) — see the note at the top of this file.\n },\n },\n }\n ),\n\n // ActorSystemExecution → WildoApplicationActorTasks (1:N reference)\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS,\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'wildoApplicationActorSystemExecutionId',\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n }\n ),\n];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resources-types.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/core/resources/resources-types.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oBAAY,yBAAyB;IAEnC,iBAAiB,qBAAqB;IACtC,0BAA0B,6BAA6B;IACvD,yCAAyC,0CAA0C;IACnF,wCAAwC,yCAAyC;IACjF,6BAA6B,+BAA+B;CAC7D;AAED,eAAO,MAAM,oCAAoC,EAAE;KAAG,GAAG,IAAI,yBAAyB,GAAG,MAAM;CAO9F,CAAC"}
1
+ {"version":3,"file":"resources-types.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/resources/resources-types.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oBAAY,yBAAyB;IAEnC,iBAAiB,qBAAqB;IACtC,0BAA0B,6BAA6B;IACvD,yCAAyC,0CAA0C;IACnF,wCAAwC,yCAAyC;IACjF,6BAA6B,+BAA+B;CAC7D;AAED,eAAO,MAAM,oCAAoC,EAAE;KAAG,GAAG,IAAI,yBAAyB,GAAG,MAAM;CAO9F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resources-types.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../../src/core/resources/resources-types.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,yBAAyB;IACzB,mEAAsC,CAAA;IACtC,oFAAuD,CAAA;IACvD,gHAAmF,CAAA;IACnF,8GAAiF,CAAA;IACjF,yFAA4D,CAAA;AAC9D,CAAC,EAPW,yBAAyB,KAAzB,yBAAyB,QAOpC;AAED,MAAM,CAAC,MAAM,oCAAoC,GAAmD;IAClG,yBAAyB;IACzB,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,oBAAoB;IACnE,CAAC,yBAAyB,CAAC,0BAA0B,CAAC,EAAE,2BAA2B;IACnF,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,EAAE,wCAAwC;IAC/G,CAAC,yBAAyB,CAAC,wCAAwC,CAAC,EAAE,uCAAuC;IAC7G,CAAC,yBAAyB,CAAC,6BAA6B,CAAC,EAAE,6BAA6B;CACzF,CAAC","sourcesContent":["/**\n * Shared platform resource types that still participate in the active\n * platform resource registry.\n *\n * Deprecated WAML meta-resources were intentionally removed from this enum:\n * they no longer have live resource configuration factories in the platform,\n * and the archived implementation remains in code archives for future reuse.\n */\nexport enum CustomShared_ResourceType {\n // Application management\n WILDO_APPLICATION = 'wildoApplication',\n WILDO_APPLICATION_VERSIONS = 'wildoApplicationVersions',\n WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS = 'wildoApplicationActorSystemExecutions',\n WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS = 'wildoApplicationFlowSystemExecutions',\n WILDO_APPLICATION_ACTOR_TASKS = 'wildoApplicationActorTasks',\n}\n\nexport const CustomShared_ResourceFieldIdentifier: { [key in CustomShared_ResourceType]: string } = {\n // Application management\n [CustomShared_ResourceType.WILDO_APPLICATION]: 'wildoApplicationId',\n [CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS]: 'wildoApplicationVersionId',\n [CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS]: 'wildoApplicationActorSystemExecutionId',\n [CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS]: 'wildoApplicationFlowSystemExecutionId',\n [CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS]: 'wildoApplicationActorTaskId',\n};\n"]}
1
+ {"version":3,"file":"resources-types.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/core/resources/resources-types.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,yBAAyB;IACzB,mEAAsC,CAAA;IACtC,oFAAuD,CAAA;IACvD,gHAAmF,CAAA;IACnF,8GAAiF,CAAA;IACjF,yFAA4D,CAAA;AAC9D,CAAC,EAPW,yBAAyB,KAAzB,yBAAyB,QAOpC;AAED,MAAM,CAAC,MAAM,oCAAoC,GAAmD;IAClG,yBAAyB;IACzB,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,oBAAoB;IACnE,CAAC,yBAAyB,CAAC,0BAA0B,CAAC,EAAE,2BAA2B;IACnF,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,EAAE,wCAAwC;IAC/G,CAAC,yBAAyB,CAAC,wCAAwC,CAAC,EAAE,uCAAuC;IAC7G,CAAC,yBAAyB,CAAC,6BAA6B,CAAC,EAAE,6BAA6B;CACzF,CAAC","sourcesContent":["/**\n * Shared platform resource types that still participate in the active\n * platform resource registry.\n *\n * Deprecated WAML meta-resources were intentionally removed from this enum:\n * they no longer have live resource configuration factories in the platform,\n * and the archived implementation remains in code archives for future reuse.\n */\nexport enum CustomShared_ResourceType {\n // Application management\n WILDO_APPLICATION = 'wildoApplication',\n WILDO_APPLICATION_VERSIONS = 'wildoApplicationVersions',\n WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS = 'wildoApplicationActorSystemExecutions',\n WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS = 'wildoApplicationFlowSystemExecutions',\n WILDO_APPLICATION_ACTOR_TASKS = 'wildoApplicationActorTasks',\n}\n\nexport const CustomShared_ResourceFieldIdentifier: { [key in CustomShared_ResourceType]: string } = {\n // Application management\n [CustomShared_ResourceType.WILDO_APPLICATION]: 'wildoApplicationId',\n [CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS]: 'wildoApplicationVersionId',\n [CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS]: 'wildoApplicationActorSystemExecutionId',\n [CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS]: 'wildoApplicationFlowSystemExecutionId',\n [CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS]: 'wildoApplicationActorTaskId',\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,wDAAwD,CAAC;AAWvE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,uDAAuD,CAAC;AACtE,cAAc,wEAAwE,CAAC;AACvF,cAAc,4DAA4D,CAAC;AAC3E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,8DAA8D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AE,iBAAiB,EAAO,CAAC;AAK9D,cAAc,+DAA+D,CAAC;AAC9E,cAAc,iFAAiF,CAAC;AAIhG,cAAc,mFAAmF,CAAC;AAClG,cAAc,yEAAyE,CAAC;AACxF,cAAc,oGAAoG,CAAC;AACnH,cAAc,0FAA0F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,EAAE,CAAC;AAEpB,mBAAmB;AACnB,cAAc,wDAAwD,CAAC;AAEvE;;;;;;;;GAQG;AACH,cAAc,6DAA6D,CAAC;AAC5E,cAAc,uDAAuD,CAAC;AACtE,cAAc,wEAAwE,CAAC;AACvF,cAAc,4DAA4D,CAAC;AAC3E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,8DAA8D,CAAC;AAC7E,cAAc,mEAAmE,CAAC;AAClF,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,0DAA0D,CAAC;AACzE,cAAc,oEAAoE,CAAC;AACnF,cAAc,iEAAiE,CAAC;AAEhF,kBAAkB;AAClB,cAAc,2DAA2D,CAAC;AAC1E,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AAIrD,MAAM,CAAC,MAAM,sBAAsB,GAAwB,EAAE,CAAC;AAG9D,0NAA0N;AAE1N,cAAc,+DAA+D,CAAC;AAC9E,cAAc,iFAAiF,CAAC;AAEhG,uIAAuI;AAEvI,cAAc,mFAAmF,CAAC;AAClG,cAAc,yEAAyE,CAAC;AACxF,cAAc,oGAAoG,CAAC;AACnH,cAAc,0FAA0F,CAAC","sourcesContent":["// Initialize Zod decorators early (lazy init will also happen on first use)\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators();\n\n// Custom resources\nexport * from './core/resources/resources-types.custom.shared.schemas';\n\n/*\n * The workbench's own vocabulary, kept SEPARATE from `customShared_*` on purpose.\n *\n * These resources are INTROSPECTION-backed — derived per read by the dev companion, never stored.\n * Adding them to `customShared_ResourcesConfigurationsFactoryMap` would hand them to that map's six\n * consumers, two of which must not have them: `platform-apps-manager` (whose INIT lifecycle applies\n * migrations, and there is nothing here to migrate) and the companion's i18n labelling planner,\n * which enumerates that map's keys and would generate labels for them.\n */\nexport * from './workbench/workbench-resources-types.custom.shared.schemas';\nexport * from './workbench/workbench-resources.custom.shared.schemas';\nexport * from './workbench/workbench-resources.custom.shared.resources-config.schemas';\nexport * from './workbench/workbench-creation-plane.custom.shared.schemas';\nexport * from './workbench/workbench-creation-plane.custom.shared.resources-config.schemas';\nexport * from './workbench/workbench-aspect-resources.custom.shared.schemas';\nexport * from './workbench/workbench-creation-conversation.custom.shared.schemas';\nexport * from './workbench/workbench-creation-console.custom.shared.schemas';\nexport * from './workbench/workbench-creation-dossier.custom.shared.schemas';\nexport * from './workbench/workbench-domain-model.custom.shared.schemas';\nexport * from './core/resources/resources-relationships.custom.shared.definitions';\nexport * from './core/resources/resources-operations.custom.shared.definitions';\n\n// Custom security\nexport * from './security/authorizations/roles.custom.shared.definitions';\nexport * from './runtime/application-backend-env.contracts';\nexport * from './runtime/application-worker-env.contracts';\nexport * from './runtime/http-server-env.contracts';\nexport * from './runtime/runtime-topology.contracts';\n\n// Custom billing — product catalog (placeholder until product definitions are configured)\nimport type { ProductDefinition } from '@wildo-ai/saas-models';\nexport const CUSTOM_PRODUCT_CATALOG: ProductDefinition[] = [];\n\n\n// ### [ WILDO_AI CODE PLACEHOLDER ] [ platform_internal_code_begin ] [ BEGIN ] - Do not edit this code block. It is used by the platform to manage the code - ##########################################################\n\nexport * from './wildo-applications/wildo-applications.custom.shared.schemas';\nexport * from './wildo-applications-versions/wildo-applications-versions.custom.shared.schemas';\n\n// ### [ WILDO_AI CODE PLACEHOLDER ] [ platform_internal_code_end ] [ END ] ##########################################################\n\nexport * from './wildo-application-executions/wildo-application-executions.custom.shared.schemas';\nexport * from './wildo-application-tasks/wildo-application-tasks.custom.shared.schemas';\nexport * from './wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas';\nexport * from './wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas';\n\n\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,EAAE,CAAC;AAEpB,mBAAmB;AACnB,cAAc,wDAAwD,CAAC;AAEvE;;;;;;;;GAQG;AACH,cAAc,6DAA6D,CAAC;AAC5E,cAAc,uDAAuD,CAAC;AACtE,cAAc,wEAAwE,CAAC;AACvF,cAAc,4DAA4D,CAAC;AAC3E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,8DAA8D,CAAC;AAC7E,cAAc,mEAAmE,CAAC;AAClF,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,0DAA0D,CAAC;AACzE,cAAc,oEAAoE,CAAC;AACnF,cAAc,iEAAiE,CAAC;AAEhF,kBAAkB;AAClB,cAAc,2DAA2D,CAAC;AAC1E,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AAIrD,MAAM,CAAC,MAAM,sBAAsB,GAAwB,EAAE,CAAC;AAG9D,0NAA0N;AAE1N,cAAc,+DAA+D,CAAC;AAC9E,cAAc,iFAAiF,CAAC;AAEhG,uIAAuI;AAEvI,cAAc,mFAAmF,CAAC;AAClG,cAAc,yEAAyE,CAAC;AACxF,cAAc,oGAAoG,CAAC;AACnH,cAAc,0FAA0F,CAAC","sourcesContent":["// Initialize Zod decorators early (lazy init will also happen on first use)\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators();\n\n// Custom resources\nexport * from './core/resources/resources-types.custom.shared.schemas';\n\n/*\n * The workbench's own vocabulary, kept SEPARATE from `customShared_*` on purpose.\n *\n * These resources are INTROSPECTION-backed — derived per read by the dev companion, never stored.\n * Adding them to `customShared_ResourcesConfigurationsFactoryMap` would hand them to that map's six\n * consumers, two of which must not have them: `platform-apps-manager` (whose INIT lifecycle applies\n * migrations, and there is nothing here to migrate) and the companion's i18n labelling planner,\n * which enumerates that map's keys and would generate labels for them.\n */\nexport * from './workbench/workbench-resources-types.custom.shared.schemas';\nexport * from './workbench/workbench-resources.custom.shared.schemas';\nexport * from './workbench/workbench-resources.custom.shared.resources-config.schemas';\nexport * from './workbench/workbench-creation-plane.custom.shared.schemas';\nexport * from './workbench/workbench-creation-plane.custom.shared.resources-config.schemas';\nexport * from './workbench/workbench-aspect-resources.custom.shared.schemas';\nexport * from './workbench/workbench-creation-conversation.custom.shared.schemas';\nexport * from './workbench/workbench-creation-console.custom.shared.schemas';\nexport * from './workbench/workbench-creation-dossier.custom.shared.schemas';\nexport * from './workbench/workbench-domain-model.custom.shared.schemas';\nexport * from './core/resources/resources-relationships.custom.shared.definitions';\nexport * from './core/resources/resources-operations.custom.shared.definitions';\n\n// Custom security\nexport * from './security/authorizations/roles.custom.shared.definitions';\nexport * from './runtime/application-backend-env.contracts';\nexport * from './runtime/application-worker-env.contracts';\nexport * from './runtime/http-server-env.contracts';\nexport * from './runtime/runtime-topology.contracts';\n\n// Custom billing — product catalog (placeholder until product definitions are configured)\nimport type { ProductDefinition } from '@wildo-ai/saas-models';\nexport const CUSTOM_PRODUCT_CATALOG: ProductDefinition[] = [];\n\n\n// ### [ WILDO_AI CODE PLACEHOLDER ] [ platform_internal_code_begin ] [ BEGIN ] - Do not edit this code block. It is used by the platform to manage the code - ##########################################################\n\nexport * from './wildo-applications/wildo-applications.custom.shared.schemas';\nexport * from './wildo-applications-versions/wildo-applications-versions.custom.shared.schemas';\n\n// ### [ WILDO_AI CODE PLACEHOLDER ] [ platform_internal_code_end ] [ END ] ##########################################################\n\nexport * from './wildo-application-executions/wildo-application-executions.custom.shared.schemas';\nexport * from './wildo-application-tasks/wildo-application-tasks.custom.shared.schemas';\nexport * from './wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas';\nexport * from './wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas';\n\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-backend-env.contracts.d.ts","sourceRoot":"","sources":["../../../../src/runtime/application-backend-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,oBAAY,iCAAiC;IAC3C,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,uBAAuB,4BAA4B;IACnD,oIAAoI;IACpI,wBAAwB,6BAA6B;IACrD,mCAAmC,wCAAwC;IAC3E,yBAAyB,8BAA8B;IACvD,eAAe,oBAAoB;CACpC;AAED,oBAAY,mCAAmC;IAC7C,qCAAqC,0CAA0C;IAC/E,4BAA4B,iCAAiC;CAC9D;AAED,oBAAY,+BAA+B;IACzC,6BAA6B,kCAAkC;IAC/D,8IAA8I;IAC9I,gCAAgC,qCAAqC;IACrE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,wBAAwB,6BAA6B;CACtD;AAED,oBAAY,4BAA4B;IACtC;;;;;;;;;;;;;OAaG;IACH,wBAAwB,6BAA6B;IACrD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,gBAAgB,qBAAqB;IACrC,yBAAyB,8BAA8B;IACvD;;;;;;;;;;;;OAYG;IACH,WAAW,gBAAgB;IAC3B;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C;;;;;;;OAOG;IACH,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C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B,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMhE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAElF;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAElF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhG;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD"}
1
+ {"version":3,"file":"application-backend-env.contracts.d.ts","sourceRoot":"","sources":["../../../src/runtime/application-backend-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,oBAAY,iCAAiC;IAC3C,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,uBAAuB,4BAA4B;IACnD,oIAAoI;IACpI,wBAAwB,6BAA6B;IACrD,mCAAmC,wCAAwC;IAC3E,yBAAyB,8BAA8B;IACvD,eAAe,oBAAoB;CACpC;AAED,oBAAY,mCAAmC;IAC7C,qCAAqC,0CAA0C;IAC/E,4BAA4B,iCAAiC;CAC9D;AAED,oBAAY,+BAA+B;IACzC,6BAA6B,kCAAkC;IAC/D,8IAA8I;IAC9I,gCAAgC,qCAAqC;IACrE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,wBAAwB,6BAA6B;CACtD;AAED,oBAAY,4BAA4B;IACtC;;;;;;;;;;;;;OAaG;IACH,wBAAwB,6BAA6B;IACrD;;;;;;;;;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;;GAGG;AACH,eAAO,MAAM,sCAAsC,aAKjD,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAClC,OAAO,gCAAgC,CAAC,MAAM,CAAC,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAC3D,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAElD;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAOpE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMhE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAElF;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAElF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhG;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD"}
@@ -1 +1 @@
1
- {"version":3,"file":"application-backend-env.contracts.js","sourceRoot":"","sources":["../../../../src/runtime/application-backend-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAN,IAAY,iCASX;AATD,WAAY,iCAAiC;IAC3C,sEAAiC,CAAA;IACjC,kEAA6B,CAAA;IAC7B,wFAAmD,CAAA;IACnD,oIAAoI;IACpI,0FAAqD,CAAA;IACrD,gHAA2E,CAA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AACzE,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,OAAO,oBAAoB,IAAI,EAAE,CAAC;AACpC,CAAC","sourcesContent":["/**\n * Shared environment contract for application backend processes.\n *\n * This is the canonical vocabulary for the app-backend `.env` surface emitted\n * by the CLI and parsed by backend runtimes. Keep the keys here purely\n * declarative: they describe names and ownership, not executor-specific\n * behavior.\n */\n\nexport enum ApplicationBackendBootstrapEnvKey {\n APPLICATION_ID = 'APPLICATION_ID',\n SERVICE_NAME = 'SERVICE_NAME',\n PLATFORM_ENVIRONMENT_ID = 'PLATFORM_ENVIRONMENT_ID',\n /** Deployment topology authority (`local` or `remote`), distinct from APPLICATION_ENV behavior mode and from the environment id. */\n DEPLOYMENT_LOCATION_TYPE = 'DEPLOYMENT_LOCATION_TYPE',\n PLATFORM_APPLICATION_PRIMARY_SECRET = 'PLATFORM_APPLICATION_PRIMARY_SECRET',\n PLATFORM_APPS_MANAGER_URL = 'PLATFORM_APPS_MANAGER_URL',\n APPLICATION_ENV = 'APPLICATION_ENV',\n}\n\nexport enum ApplicationBackendPlatformUrlEnvKey {\n PLATFORM_CRONTABS_BATCHES_MANAGER_URL = 'PLATFORM_CRONTABS_BATCHES_MANAGER_URL',\n PLATFORM_MODULE_REGISTRY_URL = 'PLATFORM_MODULE_REGISTRY_URL',\n}\n\nexport enum ApplicationBackendRuntimeEnvKey {\n APPLICATION_RUNTIME_ENDPOINTS = 'APPLICATION_RUNTIME_ENDPOINTS',\n /** Explicit app-owned filesystem handoff shared by a local backend and its companion. Absence means no filesystem transport is authorized. */\n APPLICATION_RUNTIME_SIGNALS_HOME = 'APPLICATION_RUNTIME_SIGNALS_HOME',\n /**\n * Secret gating the application's OPERATOR doors — the data-seeding admin surface and the\n * external-data admin surface, both root-mounted under `/internal/admin/...`.\n *\n * ## Why this key is declared here, and why the engine has its own copies\n *\n * The two consumers read `process.env` DIRECTLY, from\n * `data-seeding-admin.backend.contracts.ts` and `external-data-admin.backend.contracts.ts`, which\n * each declare the literal so that surface stays self-contained to `saas-backend-lib`. This is the\n * PRODUCER's copy: the CLI must know the name to emit it, and `saas-backend-lib` is not a\n * dependency of the CLI. Three copies of one string, cross-referenced, and pinned together by\n * `application-admin-secret-env-key.test.ts` — the same treatment the Node-version copies get,\n * for the same reason: no import can span these packages.\n *\n * ## Why it exists at all (#586)\n *\n * It did not, and neither door could be opened in any deployment the framework generates. The key\n * appeared in the two engine controllers that READ it and in shipped skill prose telling an\n * operator to author it in `secrets.json` — which nothing read. `providerEnv` could not carry it\n * either: `filterProviderEnvToScope` admits a key only when some scoped provider's secrets\n * contract declares its env-var name, and no provider declares this one, so it was dropped with a\n * warning. Measured 2026-09-10: zero writers, zero templates.\n */\n APPLICATION_ADMIN_SECRET = 'APPLICATION_ADMIN_SECRET',\n}\n\nexport enum ApplicationBackendDataEnvKey {\n /**\n * Which persistence adapter the application's resources use.\n *\n * DECLARED, not derived. Until this existed the config loader hard-coded MONGODB, so no\n * environment, secret or bootstrap value could select PostgreSQL — the adapter was reachable only\n * by a test that reached into the config object directly, which is why no application had ever\n * booted on it. Deriving it instead (\"PostgreSQL keys are present, so use PostgreSQL\") was\n * rejected: which store an application persists to is a deployment decision that must be legible\n * in one place, not an emergent property of which variables happen to be set.\n *\n * Absent means MONGODB, so every existing deployment is unaffected. That default is for processes\n * nothing configures; an APPLICATION backend never reaches it — the CLI writes the adapter resolved\n * from `applicationDatabase` for both engines (#1571: an absent `applicationDatabase` is PostgreSQL).\n */\n DATABASE_DEFAULT_ADAPTER = 'DATABASE_DEFAULT_ADAPTER',\n /**\n * The format NEW resource identifiers are minted in — `object-id` or `uuid`.\n *\n * DECLARED, and specifically NOT derived from {@link DATABASE_DEFAULT_ADAPTER}. The engine used to\n * derive it (MongoDB implied `OBJECT_ID`, PostgreSQL implied `UUID`), which made an application's\n * identity format a side effect of where its rows happen to live: moving a resource between\n * adapters silently changed the shape of every id it minted AND made every id it had already\n * minted fail `validateForResource`. Identity reaches URLs, exports, external references and\n * integrations, so it is an application-level decision that must outlive a storage decision.\n *\n * It needed an env key for the same reason the adapter did. The loader hard-coded\n * `ResourceIdFormat.OBJECT_ID`, so the value was legible nowhere and changeable by nobody: an\n * application could select PostgreSQL and still had no supported way to STATE its identity format,\n * which left the engine's \"declared, never derived\" rule true in the schema and unreachable in\n * practice.\n *\n * Absent means `OBJECT_ID` — what every existing application already mints — so no deployment\n * changes behaviour by adding this key to the contract.\n *\n * One deployment constraint travels with it: on PostgreSQL the `_id` COLUMN must be able to hold\n * the declared format. DDL rendered from the schema plan types it `text`, which is correct for\n * either member; a hand-written `_id uuid` column restricts the application to `UUID` and rejects\n * an `OBJECT_ID` outright.\n */\n RESOURCE_ID_FORMAT = 'RESOURCE_ID_FORMAT',\n MONGODB_HOST = 'MONGODB_HOST',\n MONGODB_DATABASE = 'MONGODB_DATABASE',\n MONGODB_PROTOCOL = 'MONGODB_PROTOCOL',\n MONGODB_DIRECT_CONNECTION = 'MONGODB_DIRECT_CONNECTION',\n /**\n * Whether the backend's MongoDB connection uses TLS (`'true'` / `'false'`), when the address it was given STATES\n * it (#2000). Absent means the protocol's default: on for `mongodb+srv`, off for `mongodb`.\n *\n * It exists because a `mongodb://` seed list for a server that requires TLS — an Atlas cluster with no SRV address,\n * whose `mongoURIWithOptions` carries `ssl=true` — was reduced to host, database and protocol, and the backend then\n * opened it without TLS, which Atlas refuses. Written by the CLI from an authored `externalEndpoints.mongodb`\n * connection URL, read by the backend config loader into `database.mongodb.options.tls`.\n *\n * spec-cite: MongoDB Manual, Connection String Options (https://www.mongodb.com/docs/manual/reference/connection-string-options/),\n * fetched 2026-09-29 — \"The `ssl` option is equivalent to the `tls` option\"; `tls` `true` is the \"Default for SRV\n * Connection Format\", `false` the \"Default for Standard Connection String Format\".\n */\n MONGODB_TLS = 'MONGODB_TLS',\n /**\n * The replica set a `mongodb://` seed list in `MONGODB_HOST` belongs to (#2000), from the authored connection URL's\n * `replicaSet` option. Absent for an SRV address, whose DNS record carries it.\n */\n MONGODB_REPLICA_SET = 'MONGODB_REPLICA_SET',\n /**\n * PostgreSQL TOPOLOGY only — host, port, database, ssl.\n *\n * CREDENTIALS are deliberately NOT here. They arrive through\n * `secrets.database.postgresql`, exactly as MongoDB's do: env carries where the database is,\n * secrets carry who may open it. Putting a password in an env contract would make it readable\n * from every process listing and every container inspect.\n */\n POSTGRESQL_HOST = 'POSTGRESQL_HOST',\n POSTGRESQL_PORT = 'POSTGRESQL_PORT',\n POSTGRESQL_DATABASE = 'POSTGRESQL_DATABASE',\n POSTGRESQL_SSL_MODE = 'POSTGRESQL_SSL_MODE',\n REDIS_HOST = 'REDIS_HOST',\n REDIS_PORT = 'REDIS_PORT',\n /**\n * Optional Redis logical database index (0–15). Emitted only when the\n * author sets `backingServices.redis.database` in `wildo.infra.<env>.config.ts`.\n * Consumers default to DB 0 when this var is missing.\n */\n REDIS_DATABASE = 'REDIS_DATABASE',\n /**\n * Canonical app-level Redis key namespace. Emitted only when the author\n * sets `dataServices.redis.keyPrefix` in `wildo.saas.config.ts` (Slice 3.6).\n * `RedisService` uses this as the `appPrefix` for all keys it writes — every\n * key becomes `${REDIS_KEY_PREFIX}org:${orgId}:${key}` or\n * `${REDIS_KEY_PREFIX}global:${key}`. When unset, the app-level prefix\n * stays empty (multi-tenant isolation falls back to the\n * `org:`/`global:` segment alone).\n *\n * REPLACE semantics: this supersedes the legacy\n * `secrets.database.redis.username`-derived prefix (Slice 3.6 audit\n * decision — single source of truth = `wildo.saas.config.dataServices`).\n */\n REDIS_KEY_PREFIX = 'REDIS_KEY_PREFIX',\n RABBITMQ_HOST = 'RABBITMQ_HOST',\n RABBITMQ_PORT = 'RABBITMQ_PORT',\n /**\n * Optional RabbitMQ virtual host. Emitted only when the author sets\n * `backingServices.rabbitmq.vhost` in `wildo.infra.<env>.config.ts`.\n * Consumers default to `/` (the RabbitMQ root vhost) when missing.\n *\n * Note (Slice 3.6 audit): the symmetric saas-side field\n * `dataServices.rabbitmq.vhost` was DELETED. Vhost is an\n * infra/topology concern with a single authoring seam (infra config).\n */\n RABBITMQ_VHOST = 'RABBITMQ_VHOST',\n STORAGE_PROVIDER = 'STORAGE_PROVIDER',\n /**\n * S3-compatible endpoint **hostname** (NOT a URL). The variable name\n * pre-dates the convention pin and is intentionally kept stable for\n * backward compatibility with deployed manifests, but the value is\n * always a bare host (`minio`, `s3.amazonaws.com`, `127.0.0.1`) — the\n * `STORAGE_PORT` and `STORAGE_USE_SSL` siblings are what compose the\n * full `https?://host:port` URL at the SDK initialization site.\n *\n * Slice 3.2 audit (L-4): authoring an explicit URL here (`http://...`)\n * silently breaks the `host:port` contract downstream because the SDK\n * concatenates the parts naively. If a future migration wants to flip\n * the contract to a URL, rename the env key (`STORAGE_URL`) rather\n * than overloading this one — the rename surfaces the breaking change\n * to operators.\n */\n STORAGE_ENDPOINT = 'STORAGE_ENDPOINT',\n STORAGE_PORT = 'STORAGE_PORT',\n STORAGE_USE_SSL = 'STORAGE_USE_SSL',\n STORAGE_BUCKET = 'STORAGE_BUCKET',\n /**\n * Optional app-level object-key namespace prefix prepended to every\n * application file path produced by `WildoManagedStorageProvider`\n * (Slice 3.6). Final key shape becomes\n * `${STORAGE_BUCKET_PREFIX}/applications/${applicationId}/files/${fileId}`\n * (extra segment above the existing `applicationId`-based namespace).\n *\n * Emitted only when the author sets `dataServices.s3.bucketPrefix` in\n * `wildo.saas.config.ts`. The actual MinIO bucket name (`STORAGE_BUCKET`)\n * remains infra-controlled and is unaffected by this prefix — N apps\n * can share one bucket while keeping their object trees disjoint.\n */\n STORAGE_BUCKET_PREFIX = 'STORAGE_BUCKET_PREFIX',\n // ⚠️ `STORAGE_ACCESS_KEY` / `STORAGE_SECRET_KEY` are deliberately ABSENT from\n // this contract, and must not be re-added.\n //\n // They carried the object store's ROOT credential — the same pair the MinIO\n // container itself is created with — into every application, minion and worker\n // environment. An application now obtains short-lived, prefix-confined session\n // credentials from apps-manager instead (`createStsStorageCredentialResolver`),\n // so there is no application-tier storage credential to name here.\n //\n // Re-adding them would not merely restore a variable: this enum is the DECLARED\n // app-backend env surface, so a key here is an invitation for a builder to fill\n // it. `assertNoStorageSecretInGeneratedEnv` fails the build if one ever does.\n // See `.claude/plans/object-storage-root-credential-distribution.md`.\n STORAGE_LOCAL_BASE_DIR = 'STORAGE_LOCAL_BASE_DIR',\n CLAMAV_HOST = 'CLAMAV_HOST',\n CLAMAV_PORT = 'CLAMAV_PORT',\n YARA_ENABLED = 'YARA_ENABLED',\n YARA_HOST = 'YARA_HOST',\n YARA_PORT = 'YARA_PORT',\n}\n\n/**\n * Keep the plural `*Keys` aliases so current consumers keep reading naturally,\n * while the actual source of truth is the scoped enum definition above.\n */\nexport const ApplicationBackendBootstrapEnvKeys = ApplicationBackendBootstrapEnvKey;\nexport const ApplicationBackendPlatformUrlEnvKeys = ApplicationBackendPlatformUrlEnvKey;\nexport const ApplicationBackendRuntimeEnvKeys = ApplicationBackendRuntimeEnvKey;\nexport const ApplicationBackendDataEnvKeys = ApplicationBackendDataEnvKey;\n\nexport const APPLICATION_BACKEND_BOOTSTRAP_ENV_KEY_LIST = [\n ApplicationBackendBootstrapEnvKey.APPLICATION_ID,\n ApplicationBackendBootstrapEnvKey.SERVICE_NAME,\n ApplicationBackendBootstrapEnvKey.PLATFORM_ENVIRONMENT_ID,\n ApplicationBackendBootstrapEnvKey.DEPLOYMENT_LOCATION_TYPE,\n ApplicationBackendBootstrapEnvKey.PLATFORM_APPLICATION_PRIMARY_SECRET,\n ApplicationBackendBootstrapEnvKey.PLATFORM_APPS_MANAGER_URL,\n ApplicationBackendBootstrapEnvKey.APPLICATION_ENV,\n] as const;\n\nexport const APPLICATION_BACKEND_PLATFORM_URL_ENV_KEY_LIST = [\n ApplicationBackendPlatformUrlEnvKey.PLATFORM_CRONTABS_BATCHES_MANAGER_URL,\n ApplicationBackendPlatformUrlEnvKey.PLATFORM_MODULE_REGISTRY_URL,\n] as const;\n\nexport const APPLICATION_BACKEND_RUNTIME_ENV_KEY_LIST = [\n ApplicationBackendRuntimeEnvKey.APPLICATION_RUNTIME_ENDPOINTS,\n ApplicationBackendRuntimeEnvKey.APPLICATION_RUNTIME_SIGNALS_HOME,\n] as const;\n\nexport const APPLICATION_BACKEND_DATA_ENV_KEY_LIST = [\n ApplicationBackendDataEnvKey.DATABASE_DEFAULT_ADAPTER,\n ApplicationBackendDataEnvKey.RESOURCE_ID_FORMAT,\n ApplicationBackendDataEnvKey.MONGODB_HOST,\n ApplicationBackendDataEnvKey.MONGODB_DATABASE,\n ApplicationBackendDataEnvKey.MONGODB_PROTOCOL,\n ApplicationBackendDataEnvKey.MONGODB_DIRECT_CONNECTION,\n ApplicationBackendDataEnvKey.MONGODB_TLS,\n ApplicationBackendDataEnvKey.MONGODB_REPLICA_SET,\n ApplicationBackendDataEnvKey.POSTGRESQL_HOST,\n ApplicationBackendDataEnvKey.POSTGRESQL_PORT,\n ApplicationBackendDataEnvKey.POSTGRESQL_DATABASE,\n ApplicationBackendDataEnvKey.POSTGRESQL_SSL_MODE,\n ApplicationBackendDataEnvKey.REDIS_HOST,\n ApplicationBackendDataEnvKey.REDIS_PORT,\n ApplicationBackendDataEnvKey.REDIS_DATABASE,\n ApplicationBackendDataEnvKey.REDIS_KEY_PREFIX,\n ApplicationBackendDataEnvKey.RABBITMQ_HOST,\n ApplicationBackendDataEnvKey.RABBITMQ_PORT,\n ApplicationBackendDataEnvKey.RABBITMQ_VHOST,\n ApplicationBackendDataEnvKey.STORAGE_PROVIDER,\n ApplicationBackendDataEnvKey.STORAGE_ENDPOINT,\n ApplicationBackendDataEnvKey.STORAGE_PORT,\n ApplicationBackendDataEnvKey.STORAGE_USE_SSL,\n ApplicationBackendDataEnvKey.STORAGE_BUCKET,\n ApplicationBackendDataEnvKey.STORAGE_BUCKET_PREFIX,\n ApplicationBackendDataEnvKey.STORAGE_LOCAL_BASE_DIR,\n ApplicationBackendDataEnvKey.CLAMAV_HOST,\n ApplicationBackendDataEnvKey.CLAMAV_PORT,\n ApplicationBackendDataEnvKey.YARA_ENABLED,\n ApplicationBackendDataEnvKey.YARA_HOST,\n ApplicationBackendDataEnvKey.YARA_PORT,\n] as const;\n\nexport const APPLICATION_BACKEND_ENV_KEY_LIST = [\n ...APPLICATION_BACKEND_BOOTSTRAP_ENV_KEY_LIST,\n ...APPLICATION_BACKEND_PLATFORM_URL_ENV_KEY_LIST,\n ...APPLICATION_BACKEND_RUNTIME_ENV_KEY_LIST,\n ...APPLICATION_BACKEND_DATA_ENV_KEY_LIST,\n] as const;\n\n/**\n * Keys that must always be treated as secrets when this app-backend env surface\n * is materialized into logs, CI artifacts, or deployment manifests.\n */\nexport const APPLICATION_BACKEND_SENSITIVE_ENV_KEYS = new Set<string>([\n ApplicationBackendBootstrapEnvKey.PLATFORM_APPLICATION_PRIMARY_SECRET,\n // The storage pair is gone rather than listed: an app-tier env no longer\n // carries an object-storage credential at all, so there is nothing here to\n // mark sensitive. See the note on the enum above.\n]);\n\nexport type ApplicationBackendEnvKey =\n typeof APPLICATION_BACKEND_ENV_KEY_LIST[number];\n\n/**\n * ────────────────────────────────────────────────────────────────────────\n * Backend → worker dispatch contract (G-8 / MW4)\n * ────────────────────────────────────────────────────────────────────────\n * A declared worker's HTTP base URL is injected into the app-backend env at\n * deploy time as `WILDO_WORKER_<NAME>_URL`. The `<NAME>` segment is DYNAMIC\n * (one per declared worker), so — unlike the static enums above — the key is a\n * HELPER, not a fixed member. Both the CLI EMIT side\n * (`PlatformEnvVarsBuilder.buildApplicationBackendEnv`) and the backend READ\n * side (`WorkerRemoteClientFactoryBackendService`) MUST derive the key + URL\n * through these single helpers so the two can never drift.\n */\nexport const WILDO_WORKER_URL_ENV_PREFIX = 'WILDO_WORKER_';\nexport const WILDO_WORKER_URL_ENV_SUFFIX = '_URL';\n\n/**\n * Normalize a worker identifier (the `wildo.saas.config.ts` bucket key —\n * camelCase or kebab-case, e.g. `myNodeWorker` / `my-node-worker`) into the\n * UPPER_SNAKE segment embedded inside `WILDO_WORKER_<NAME>_URL`. Both\n * `myNodeWorker` and `my-node-worker` normalize to `MY_NODE_WORKER`, so the env\n * key is stable regardless of the authoring style.\n */\nexport function normalizeWorkerEnvSegment(workerName: string): string {\n return workerName\n .replace(/([a-z0-9])([A-Z])/g, '$1_$2') // camelCase word boundary → underscore\n .replace(/[^A-Za-z0-9]+/g, '_') // kebab / space / other → underscore\n .replace(/_+/g, '_') // collapse repeats\n .replace(/^_|_$/g, '') // trim edges\n .toUpperCase();\n}\n\n/**\n * The `WILDO_WORKER_<NAME>_URL` env-var name for a declared worker. The single\n * source of truth for both emit (CLI) and read (backend factory).\n *\n * @example wildoWorkerUrlEnvKey('myNodeWorker') // 'WILDO_WORKER_MY_NODE_WORKER_URL'\n */\nexport function wildoWorkerUrlEnvKey(workerName: string): string {\n return `${WILDO_WORKER_URL_ENV_PREFIX}${normalizeWorkerEnvSegment(workerName)}${WILDO_WORKER_URL_ENV_SUFFIX}`;\n}\n\n/**\n * Normalize a service key (the `wildo.saas.config.ts` `minions`/`workers` bucket\n * key — authored camelCase or kebab, e.g. `marketingScrapper` / `my-rust-worker`)\n * into an RFC1123-valid DNS label segment: lowercase, `[a-z0-9-]` only, no\n * leading/trailing hyphen. `marketingScrapper` → `marketing-scrapper`,\n * `myNodeWorker` → `my-node-worker`.\n *\n * This is the DNS-NAME axis of a background runtime — the segment embedded in the\n * k8s object/Service name, the built container image ref, the compose service name,\n * and the worker dispatch URL host. It is DISTINCT from the IDENTITY axis (the raw\n * bucket key), which apps-manager keys on (`appConfig.workers[key]` /\n * `appConfig.minions[key]`) and which the worker stamps as `APP_OWNED_SERVICE_NAME`\n * / both runtimes carry as the `wildo.ai/owned-service-name` pod label — the\n * identity axis MUST stay raw and is NEVER passed through this helper. The\n * env-key axis (`WILDO_WORKER_<NAME>_URL`) has its own normalization,\n * {@link normalizeWorkerEnvSegment}, because an env-var name is UPPER_SNAKE, not a\n * DNS label.\n *\n * This helper does NOT truncate — a name too long for a DNS label (63 chars) is\n * REJECTED at authoring, not silently shortened (truncation risks colliding with\n * a sibling key). Returns `''` for all-symbol input. The authoring-time guard in\n * `define-saas-config.ts` fails fast on keys that normalize to empty, collide with\n * a sibling after normalization, or whose full `{slug}-{kind}-{name}` deploy name\n * exceeds 63 chars — so an empty / duplicate / over-long DNS name can never reach\n * the render.\n */\nexport function normalizeServiceKeyToDnsName(key: string): string {\n return key\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2') // camelCase word boundary → hyphen\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-') // any non-DNS char (kebab already ok) → hyphen\n .replace(/^-+|-+$/g, ''); // trim leading/trailing hyphens\n}\n\n/**\n * The k8s Service (and same-network compose service) name for a per-app worker:\n * `{appSlug}-worker-{dnsName}`, where `dnsName` is the bucket key normalized to an\n * RFC1123 label ({@link normalizeServiceKeyToDnsName}). Coherent-by-construction\n * with the CLI k8s render (`renderWorkerForTarget`), the compose render\n * (`deriveAppRuntimeServiceName`), the CI image build (`syncCicd`), and the worker\n * dispatch URL host ({@link buildWorkerInternalUrl}) — EVERY DNS-name site derives\n * the name through THIS helper (rather than inlining `{appSlug}-worker-{key}`), so\n * the backend calls the exact Service the render deploys and CI builds the exact\n * image ref the deploy pulls.\n *\n * `workerName` is the saas-config bucket key (NOT the per-folder `config.name`) —\n * passed raw; the normalization happens inside. The raw key remains the worker's\n * IDENTITY (apps-manager lookup + `APP_OWNED_SERVICE_NAME`), a separate axis that\n * is never derived from this function.\n */\nexport function buildWorkerServiceName(appSlug: string, workerName: string): string {\n return `${appSlug}-worker-${normalizeServiceKeyToDnsName(workerName)}`;\n}\n\n/**\n * The k8s Deployment (and same-network compose service) name for a per-app minion:\n * `{appSlug}-minion-{dnsName}`, where `dnsName` is the bucket key normalized to an\n * RFC1123 label ({@link normalizeServiceKeyToDnsName}). Symmetric with\n * {@link buildWorkerServiceName} — minions have no inbound Service / dispatch URL,\n * but the k8s render, the compose render, and the CI image build all need the\n * deploy name, and it must be RFC1123-valid for the same reasons. `minionName` is\n * the saas-config bucket key; the raw key stays the minion's IDENTITY (the\n * `wildo.ai/owned-service-name` pod label), never derived from here.\n */\nexport function buildMinionServiceName(appSlug: string, minionName: string): string {\n return `${appSlug}-minion-${normalizeServiceKeyToDnsName(minionName)}`;\n}\n\n/**\n * The in-cluster base URL the app-backend uses to reach a per-app worker\n * (`http://{appSlug}-worker-{workerName}:{port}`). The backend + its workers\n * deploy into the SAME namespace (per-app deploy), so the short Service name\n * resolves without a namespace qualifier. `port` is the worker's authored\n * `http.port` (schema default 8080).\n */\nexport function buildWorkerInternalUrl(appSlug: string, workerName: string, port: number): string {\n return `http://${buildWorkerServiceName(appSlug, workerName)}:${port}`;\n}\n\n/**\n * The base URL the app-backend uses to reach a per-app worker in LOCAL development.\n *\n * There is no k8s Service locally, so there is no name to resolve — the worker is a supervised\n * process listening on its authored `http.port` on the loopback interface, which is the same\n * convention every other local runtime address in this repository uses.\n *\n * ## Why this exists at all (#426)\n *\n * `buildApplicationWorkerDispatchUrls` used to return `undefined` for anything but REMOTE, on the\n * reasoning that \"local dev has no k8s Services, and worker dispatch is a k8s-deploy concern\". The\n * first half is still true and the second no longer is: local dev now STARTS the worker, so the\n * only thing missing was an address. Without one, `WorkerRemoteClientFactory.client()` fails closed\n * on the absent `WILDO_WORKER_<NAME>_URL` — which is why the whole backend-to-worker chain had\n * never been exercised by anyone, in a test or in the dev stack.\n *\n * Declared here, beside its in-cluster sibling and the env-key helper both sides derive, so the\n * emit side and the read side cannot drift apart for either deployment shape.\n */\nexport function buildWorkerLocalUrl(port: number): string {\n return `http://localhost:${port}`;\n}\n"]}
1
+ {"version":3,"file":"application-backend-env.contracts.js","sourceRoot":"","sources":["../../../src/runtime/application-backend-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAN,IAAY,iCASX;AATD,WAAY,iCAAiC;IAC3C,sEAAiC,CAAA;IACjC,kEAA6B,CAAA;IAC7B,wFA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,sBAAsB,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC;AACzE,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,OAAO,oBAAoB,IAAI,EAAE,CAAC;AACpC,CAAC","sourcesContent":["/**\n * Shared environment contract for application backend processes.\n *\n * This is the canonical vocabulary for the app-backend `.env` surface emitted\n * by the CLI and parsed by backend runtimes. Keep the keys here purely\n * declarative: they describe names and ownership, not executor-specific\n * behavior.\n */\n\nexport enum ApplicationBackendBootstrapEnvKey {\n APPLICATION_ID = 'APPLICATION_ID',\n SERVICE_NAME = 'SERVICE_NAME',\n PLATFORM_ENVIRONMENT_ID = 'PLATFORM_ENVIRONMENT_ID',\n /** Deployment topology authority (`local` or `remote`), distinct from APPLICATION_ENV behavior mode and from the environment id. */\n DEPLOYMENT_LOCATION_TYPE = 'DEPLOYMENT_LOCATION_TYPE',\n PLATFORM_APPLICATION_PRIMARY_SECRET = 'PLATFORM_APPLICATION_PRIMARY_SECRET',\n PLATFORM_APPS_MANAGER_URL = 'PLATFORM_APPS_MANAGER_URL',\n APPLICATION_ENV = 'APPLICATION_ENV',\n}\n\nexport enum ApplicationBackendPlatformUrlEnvKey {\n PLATFORM_CRONTABS_BATCHES_MANAGER_URL = 'PLATFORM_CRONTABS_BATCHES_MANAGER_URL',\n PLATFORM_MODULE_REGISTRY_URL = 'PLATFORM_MODULE_REGISTRY_URL',\n}\n\nexport enum ApplicationBackendRuntimeEnvKey {\n APPLICATION_RUNTIME_ENDPOINTS = 'APPLICATION_RUNTIME_ENDPOINTS',\n /** Explicit app-owned filesystem handoff shared by a local backend and its companion. Absence means no filesystem transport is authorized. */\n APPLICATION_RUNTIME_SIGNALS_HOME = 'APPLICATION_RUNTIME_SIGNALS_HOME',\n /**\n * Secret gating the application's OPERATOR doors — the data-seeding admin surface and the\n * external-data admin surface, both root-mounted under `/internal/admin/...`.\n *\n * ## Why this key is declared here, and why the engine has its own copies\n *\n * The two consumers read `process.env` DIRECTLY, from\n * `data-seeding-admin.backend.contracts.ts` and `external-data-admin.backend.contracts.ts`, which\n * each declare the literal so that surface stays self-contained to `saas-backend-lib`. This is the\n * PRODUCER's copy: the CLI must know the name to emit it, and `saas-backend-lib` is not a\n * dependency of the CLI. Three copies of one string, cross-referenced, and pinned together by\n * `application-admin-secret-env-key.test.ts` — the same treatment the Node-version copies get,\n * for the same reason: no import can span these packages.\n *\n * ## Why it exists at all (#586)\n *\n * It did not, and neither door could be opened in any deployment the framework generates. The key\n * appeared in the two engine controllers that READ it and in shipped skill prose telling an\n * operator to author it in `secrets.json` — which nothing read. `providerEnv` could not carry it\n * either: `filterProviderEnvToScope` admits a key only when some scoped provider's secrets\n * contract declares its env-var name, and no provider declares this one, so it was dropped with a\n * warning. Measured 2026-09-10: zero writers, zero templates.\n */\n APPLICATION_ADMIN_SECRET = 'APPLICATION_ADMIN_SECRET',\n}\n\nexport enum ApplicationBackendDataEnvKey {\n /**\n * Which persistence adapter the application's resources use.\n *\n * DECLARED, not derived. Until this existed the config loader hard-coded MONGODB, so no\n * environment, secret or bootstrap value could select PostgreSQL — the adapter was reachable only\n * by a test that reached into the config object directly, which is why no application had ever\n * booted on it. Deriving it instead (\"PostgreSQL keys are present, so use PostgreSQL\") was\n * rejected: which store an application persists to is a deployment decision that must be legible\n * in one place, not an emergent property of which variables happen to be set.\n *\n * Absent means MONGODB, so every existing deployment is unaffected. That default is for processes\n * nothing configures; an APPLICATION backend never reaches it — the CLI writes the adapter resolved\n * from `applicationDatabase` for both engines (#1571: an absent `applicationDatabase` is PostgreSQL).\n */\n DATABASE_DEFAULT_ADAPTER = 'DATABASE_DEFAULT_ADAPTER',\n /**\n * The format NEW resource identifiers are minted in — `object-id` or `uuid`.\n *\n * DECLARED, and specifically NOT derived from {@link DATABASE_DEFAULT_ADAPTER}. The engine used to\n * derive it (MongoDB implied `OBJECT_ID`, PostgreSQL implied `UUID`), which made an application's\n * identity format a side effect of where its rows happen to live: moving a resource between\n * adapters silently changed the shape of every id it minted AND made every id it had already\n * minted fail `validateForResource`. Identity reaches URLs, exports, external references and\n * integrations, so it is an application-level decision that must outlive a storage decision.\n *\n * It needed an env key for the same reason the adapter did. The loader hard-coded\n * `ResourceIdFormat.OBJECT_ID`, so the value was legible nowhere and changeable by nobody: an\n * application could select PostgreSQL and still had no supported way to STATE its identity format,\n * which left the engine's \"declared, never derived\" rule true in the schema and unreachable in\n * practice.\n *\n * Absent means `OBJECT_ID` — what every existing application already mints — so no deployment\n * changes behaviour by adding this key to the contract.\n *\n * One deployment constraint travels with it: on PostgreSQL the `_id` COLUMN must be able to hold\n * the declared format. DDL rendered from the schema plan types it `text`, which is correct for\n * either member; a hand-written `_id uuid` column restricts the application to `UUID` and rejects\n * an `OBJECT_ID` outright.\n */\n RESOURCE_ID_FORMAT = 'RESOURCE_ID_FORMAT',\n MONGODB_HOST = 'MONGODB_HOST',\n MONGODB_DATABASE = 'MONGODB_DATABASE',\n MONGODB_PROTOCOL = 'MONGODB_PROTOCOL',\n MONGODB_DIRECT_CONNECTION = 'MONGODB_DIRECT_CONNECTION',\n /**\n * Whether the backend's MongoDB connection uses TLS (`'true'` / `'false'`), when the address it was given STATES\n * it (#2000). Absent means the protocol's default: on for `mongodb+srv`, off for `mongodb`.\n *\n * It exists because a `mongodb://` seed list for a server that requires TLS — an Atlas cluster with no SRV address,\n * whose `mongoURIWithOptions` carries `ssl=true` — was reduced to host, database and protocol, and the backend then\n * opened it without TLS, which Atlas refuses. Written by the CLI from an authored `externalEndpoints.mongodb`\n * connection URL, read by the backend config loader into `database.mongodb.options.tls`.\n *\n * spec-cite: MongoDB Manual, Connection String Options (https://www.mongodb.com/docs/manual/reference/connection-string-options/),\n * fetched 2026-09-29 — \"The `ssl` option is equivalent to the `tls` option\"; `tls` `true` is the \"Default for SRV\n * Connection Format\", `false` the \"Default for Standard Connection String Format\".\n */\n MONGODB_TLS = 'MONGODB_TLS',\n /**\n * The replica set a `mongodb://` seed list in `MONGODB_HOST` belongs to (#2000), from the authored connection URL's\n * `replicaSet` option. Absent for an SRV address, whose DNS record carries it.\n */\n MONGODB_REPLICA_SET = 'MONGODB_REPLICA_SET',\n /**\n * PostgreSQL TOPOLOGY only — host, port, database, ssl.\n *\n * CREDENTIALS are deliberately NOT here. They arrive through\n * `secrets.database.postgresql`, exactly as MongoDB's do: env carries where the database is,\n * secrets carry who may open it. Putting a password in an env contract would make it readable\n * from every process listing and every container inspect.\n */\n POSTGRESQL_HOST = 'POSTGRESQL_HOST',\n POSTGRESQL_PORT = 'POSTGRESQL_PORT',\n POSTGRESQL_DATABASE = 'POSTGRESQL_DATABASE',\n POSTGRESQL_SSL_MODE = 'POSTGRESQL_SSL_MODE',\n REDIS_HOST = 'REDIS_HOST',\n REDIS_PORT = 'REDIS_PORT',\n /**\n * Optional Redis logical database index (0–15). Emitted only when the\n * author sets `backingServices.redis.database` in `wildo.infra.<env>.config.ts`.\n * Consumers default to DB 0 when this var is missing.\n */\n REDIS_DATABASE = 'REDIS_DATABASE',\n /**\n * Canonical app-level Redis key namespace. Emitted only when the author\n * sets `dataServices.redis.keyPrefix` in `wildo.saas.config.ts` (Slice 3.6).\n * `RedisService` uses this as the `appPrefix` for all keys it writes — every\n * key becomes `${REDIS_KEY_PREFIX}org:${orgId}:${key}` or\n * `${REDIS_KEY_PREFIX}global:${key}`. When unset, the app-level prefix\n * stays empty (multi-tenant isolation falls back to the\n * `org:`/`global:` segment alone).\n *\n * REPLACE semantics: this supersedes the legacy\n * `secrets.database.redis.username`-derived prefix (Slice 3.6 audit\n * decision — single source of truth = `wildo.saas.config.dataServices`).\n */\n REDIS_KEY_PREFIX = 'REDIS_KEY_PREFIX',\n RABBITMQ_HOST = 'RABBITMQ_HOST',\n RABBITMQ_PORT = 'RABBITMQ_PORT',\n /**\n * Optional RabbitMQ virtual host. Emitted only when the author sets\n * `backingServices.rabbitmq.vhost` in `wildo.infra.<env>.config.ts`.\n * Consumers default to `/` (the RabbitMQ root vhost) when missing.\n *\n * Note (Slice 3.6 audit): the symmetric saas-side field\n * `dataServices.rabbitmq.vhost` was DELETED. Vhost is an\n * infra/topology concern with a single authoring seam (infra config).\n */\n RABBITMQ_VHOST = 'RABBITMQ_VHOST',\n STORAGE_PROVIDER = 'STORAGE_PROVIDER',\n /**\n * S3-compatible endpoint **hostname** (NOT a URL). The variable name\n * pre-dates the convention pin and is intentionally kept stable for\n * backward compatibility with deployed manifests, but the value is\n * always a bare host (`minio`, `s3.amazonaws.com`, `127.0.0.1`) — the\n * `STORAGE_PORT` and `STORAGE_USE_SSL` siblings are what compose the\n * full `https?://host:port` URL at the SDK initialization site.\n *\n * Slice 3.2 audit (L-4): authoring an explicit URL here (`http://...`)\n * silently breaks the `host:port` contract downstream because the SDK\n * concatenates the parts naively. If a future migration wants to flip\n * the contract to a URL, rename the env key (`STORAGE_URL`) rather\n * than overloading this one — the rename surfaces the breaking change\n * to operators.\n */\n STORAGE_ENDPOINT = 'STORAGE_ENDPOINT',\n STORAGE_PORT = 'STORAGE_PORT',\n STORAGE_USE_SSL = 'STORAGE_USE_SSL',\n STORAGE_BUCKET = 'STORAGE_BUCKET',\n /**\n * Optional app-level object-key namespace prefix prepended to every\n * application file path produced by `WildoManagedStorageProvider`\n * (Slice 3.6). Final key shape becomes\n * `${STORAGE_BUCKET_PREFIX}/applications/${applicationId}/files/${fileId}`\n * (extra segment above the existing `applicationId`-based namespace).\n *\n * Emitted only when the author sets `dataServices.s3.bucketPrefix` in\n * `wildo.saas.config.ts`. The actual MinIO bucket name (`STORAGE_BUCKET`)\n * remains infra-controlled and is unaffected by this prefix — N apps\n * can share one bucket while keeping their object trees disjoint.\n */\n STORAGE_BUCKET_PREFIX = 'STORAGE_BUCKET_PREFIX',\n // ⚠️ `STORAGE_ACCESS_KEY` / `STORAGE_SECRET_KEY` are deliberately ABSENT from\n // this contract, and must not be re-added.\n //\n // They carried the object store's ROOT credential — the same pair the MinIO\n // container itself is created with — into every application, minion and worker\n // environment. An application now obtains short-lived, prefix-confined session\n // credentials from apps-manager instead (`createStsStorageCredentialResolver`),\n // so there is no application-tier storage credential to name here.\n //\n // Re-adding them would not merely restore a variable: this enum is the DECLARED\n // app-backend env surface, so a key here is an invitation for a builder to fill\n // it. `assertNoStorageSecretInGeneratedEnv` fails the build if one ever does.\n // See `.claude/plans/object-storage-root-credential-distribution.md`.\n STORAGE_LOCAL_BASE_DIR = 'STORAGE_LOCAL_BASE_DIR',\n CLAMAV_HOST = 'CLAMAV_HOST',\n CLAMAV_PORT = 'CLAMAV_PORT',\n YARA_ENABLED = 'YARA_ENABLED',\n YARA_HOST = 'YARA_HOST',\n YARA_PORT = 'YARA_PORT',\n}\n\n/**\n * Keep the plural `*Keys` aliases so current consumers keep reading naturally,\n * while the actual source of truth is the scoped enum definition above.\n */\nexport const ApplicationBackendBootstrapEnvKeys = ApplicationBackendBootstrapEnvKey;\nexport const ApplicationBackendPlatformUrlEnvKeys = ApplicationBackendPlatformUrlEnvKey;\nexport const ApplicationBackendRuntimeEnvKeys = ApplicationBackendRuntimeEnvKey;\nexport const ApplicationBackendDataEnvKeys = ApplicationBackendDataEnvKey;\n\nexport const APPLICATION_BACKEND_BOOTSTRAP_ENV_KEY_LIST = [\n ApplicationBackendBootstrapEnvKey.APPLICATION_ID,\n ApplicationBackendBootstrapEnvKey.SERVICE_NAME,\n ApplicationBackendBootstrapEnvKey.PLATFORM_ENVIRONMENT_ID,\n ApplicationBackendBootstrapEnvKey.DEPLOYMENT_LOCATION_TYPE,\n ApplicationBackendBootstrapEnvKey.PLATFORM_APPLICATION_PRIMARY_SECRET,\n ApplicationBackendBootstrapEnvKey.PLATFORM_APPS_MANAGER_URL,\n ApplicationBackendBootstrapEnvKey.APPLICATION_ENV,\n] as const;\n\nexport const APPLICATION_BACKEND_PLATFORM_URL_ENV_KEY_LIST = [\n ApplicationBackendPlatformUrlEnvKey.PLATFORM_CRONTABS_BATCHES_MANAGER_URL,\n ApplicationBackendPlatformUrlEnvKey.PLATFORM_MODULE_REGISTRY_URL,\n] as const;\n\nexport const APPLICATION_BACKEND_RUNTIME_ENV_KEY_LIST = [\n ApplicationBackendRuntimeEnvKey.APPLICATION_RUNTIME_ENDPOINTS,\n ApplicationBackendRuntimeEnvKey.APPLICATION_RUNTIME_SIGNALS_HOME,\n] as const;\n\nexport const APPLICATION_BACKEND_DATA_ENV_KEY_LIST = [\n ApplicationBackendDataEnvKey.DATABASE_DEFAULT_ADAPTER,\n ApplicationBackendDataEnvKey.RESOURCE_ID_FORMAT,\n ApplicationBackendDataEnvKey.MONGODB_HOST,\n ApplicationBackendDataEnvKey.MONGODB_DATABASE,\n ApplicationBackendDataEnvKey.MONGODB_PROTOCOL,\n ApplicationBackendDataEnvKey.MONGODB_DIRECT_CONNECTION,\n ApplicationBackendDataEnvKey.MONGODB_TLS,\n ApplicationBackendDataEnvKey.MONGODB_REPLICA_SET,\n ApplicationBackendDataEnvKey.POSTGRESQL_HOST,\n ApplicationBackendDataEnvKey.POSTGRESQL_PORT,\n ApplicationBackendDataEnvKey.POSTGRESQL_DATABASE,\n ApplicationBackendDataEnvKey.POSTGRESQL_SSL_MODE,\n ApplicationBackendDataEnvKey.REDIS_HOST,\n ApplicationBackendDataEnvKey.REDIS_PORT,\n ApplicationBackendDataEnvKey.REDIS_DATABASE,\n ApplicationBackendDataEnvKey.REDIS_KEY_PREFIX,\n ApplicationBackendDataEnvKey.RABBITMQ_HOST,\n ApplicationBackendDataEnvKey.RABBITMQ_PORT,\n ApplicationBackendDataEnvKey.RABBITMQ_VHOST,\n ApplicationBackendDataEnvKey.STORAGE_PROVIDER,\n ApplicationBackendDataEnvKey.STORAGE_ENDPOINT,\n ApplicationBackendDataEnvKey.STORAGE_PORT,\n ApplicationBackendDataEnvKey.STORAGE_USE_SSL,\n ApplicationBackendDataEnvKey.STORAGE_BUCKET,\n ApplicationBackendDataEnvKey.STORAGE_BUCKET_PREFIX,\n ApplicationBackendDataEnvKey.STORAGE_LOCAL_BASE_DIR,\n ApplicationBackendDataEnvKey.CLAMAV_HOST,\n ApplicationBackendDataEnvKey.CLAMAV_PORT,\n ApplicationBackendDataEnvKey.YARA_ENABLED,\n ApplicationBackendDataEnvKey.YARA_HOST,\n ApplicationBackendDataEnvKey.YARA_PORT,\n] as const;\n\nexport const APPLICATION_BACKEND_ENV_KEY_LIST = [\n ...APPLICATION_BACKEND_BOOTSTRAP_ENV_KEY_LIST,\n ...APPLICATION_BACKEND_PLATFORM_URL_ENV_KEY_LIST,\n ...APPLICATION_BACKEND_RUNTIME_ENV_KEY_LIST,\n ...APPLICATION_BACKEND_DATA_ENV_KEY_LIST,\n] as const;\n\n/**\n * Keys that must always be treated as secrets when this app-backend env surface\n * is materialized into logs, CI artifacts, or deployment manifests.\n */\nexport const APPLICATION_BACKEND_SENSITIVE_ENV_KEYS = new Set<string>([\n ApplicationBackendBootstrapEnvKey.PLATFORM_APPLICATION_PRIMARY_SECRET,\n // The storage pair is gone rather than listed: an app-tier env no longer\n // carries an object-storage credential at all, so there is nothing here to\n // mark sensitive. See the note on the enum above.\n]);\n\nexport type ApplicationBackendEnvKey =\n typeof APPLICATION_BACKEND_ENV_KEY_LIST[number];\n\n/**\n * ────────────────────────────────────────────────────────────────────────\n * Backend → worker dispatch contract (G-8 / MW4)\n * ────────────────────────────────────────────────────────────────────────\n * A declared worker's HTTP base URL is injected into the app-backend env at\n * deploy time as `WILDO_WORKER_<NAME>_URL`. The `<NAME>` segment is DYNAMIC\n * (one per declared worker), so — unlike the static enums above — the key is a\n * HELPER, not a fixed member. Both the CLI EMIT side\n * (`PlatformEnvVarsBuilder.buildApplicationBackendEnv`) and the backend READ\n * side (`WorkerRemoteClientFactoryBackendService`) MUST derive the key + URL\n * through these single helpers so the two can never drift.\n */\nexport const WILDO_WORKER_URL_ENV_PREFIX = 'WILDO_WORKER_';\nexport const WILDO_WORKER_URL_ENV_SUFFIX = '_URL';\n\n/**\n * Normalize a worker identifier (the `wildo.saas.config.ts` bucket key —\n * camelCase or kebab-case, e.g. `myNodeWorker` / `my-node-worker`) into the\n * UPPER_SNAKE segment embedded inside `WILDO_WORKER_<NAME>_URL`. Both\n * `myNodeWorker` and `my-node-worker` normalize to `MY_NODE_WORKER`, so the env\n * key is stable regardless of the authoring style.\n */\nexport function normalizeWorkerEnvSegment(workerName: string): string {\n return workerName\n .replace(/([a-z0-9])([A-Z])/g, '$1_$2') // camelCase word boundary → underscore\n .replace(/[^A-Za-z0-9]+/g, '_') // kebab / space / other → underscore\n .replace(/_+/g, '_') // collapse repeats\n .replace(/^_|_$/g, '') // trim edges\n .toUpperCase();\n}\n\n/**\n * The `WILDO_WORKER_<NAME>_URL` env-var name for a declared worker. The single\n * source of truth for both emit (CLI) and read (backend factory).\n *\n * @example wildoWorkerUrlEnvKey('myNodeWorker') // 'WILDO_WORKER_MY_NODE_WORKER_URL'\n */\nexport function wildoWorkerUrlEnvKey(workerName: string): string {\n return `${WILDO_WORKER_URL_ENV_PREFIX}${normalizeWorkerEnvSegment(workerName)}${WILDO_WORKER_URL_ENV_SUFFIX}`;\n}\n\n/**\n * Normalize a service key (the `wildo.saas.config.ts` `minions`/`workers` bucket\n * key — authored camelCase or kebab, e.g. `marketingScrapper` / `my-rust-worker`)\n * into an RFC1123-valid DNS label segment: lowercase, `[a-z0-9-]` only, no\n * leading/trailing hyphen. `marketingScrapper` → `marketing-scrapper`,\n * `myNodeWorker` → `my-node-worker`.\n *\n * This is the DNS-NAME axis of a background runtime — the segment embedded in the\n * k8s object/Service name, the built container image ref, the compose service name,\n * and the worker dispatch URL host. It is DISTINCT from the IDENTITY axis (the raw\n * bucket key), which apps-manager keys on (`appConfig.workers[key]` /\n * `appConfig.minions[key]`) and which the worker stamps as `APP_OWNED_SERVICE_NAME`\n * / both runtimes carry as the `wildo.ai/owned-service-name` pod label — the\n * identity axis MUST stay raw and is NEVER passed through this helper. The\n * env-key axis (`WILDO_WORKER_<NAME>_URL`) has its own normalization,\n * {@link normalizeWorkerEnvSegment}, because an env-var name is UPPER_SNAKE, not a\n * DNS label.\n *\n * This helper does NOT truncate — a name too long for a DNS label (63 chars) is\n * REJECTED at authoring, not silently shortened (truncation risks colliding with\n * a sibling key). Returns `''` for all-symbol input. The authoring-time guard in\n * `define-saas-config.ts` fails fast on keys that normalize to empty, collide with\n * a sibling after normalization, or whose full `{slug}-{kind}-{name}` deploy name\n * exceeds 63 chars — so an empty / duplicate / over-long DNS name can never reach\n * the render.\n */\nexport function normalizeServiceKeyToDnsName(key: string): string {\n return key\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2') // camelCase word boundary → hyphen\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-') // any non-DNS char (kebab already ok) → hyphen\n .replace(/^-+|-+$/g, ''); // trim leading/trailing hyphens\n}\n\n/**\n * The k8s Service (and same-network compose service) name for a per-app worker:\n * `{appSlug}-worker-{dnsName}`, where `dnsName` is the bucket key normalized to an\n * RFC1123 label ({@link normalizeServiceKeyToDnsName}). Coherent-by-construction\n * with the CLI k8s render (`renderWorkerForTarget`), the compose render\n * (`deriveAppRuntimeServiceName`), the CI image build (`syncCicd`), and the worker\n * dispatch URL host ({@link buildWorkerInternalUrl}) — EVERY DNS-name site derives\n * the name through THIS helper (rather than inlining `{appSlug}-worker-{key}`), so\n * the backend calls the exact Service the render deploys and CI builds the exact\n * image ref the deploy pulls.\n *\n * `workerName` is the saas-config bucket key (NOT the per-folder `config.name`) —\n * passed raw; the normalization happens inside. The raw key remains the worker's\n * IDENTITY (apps-manager lookup + `APP_OWNED_SERVICE_NAME`), a separate axis that\n * is never derived from this function.\n */\nexport function buildWorkerServiceName(appSlug: string, workerName: string): string {\n return `${appSlug}-worker-${normalizeServiceKeyToDnsName(workerName)}`;\n}\n\n/**\n * The k8s Deployment (and same-network compose service) name for a per-app minion:\n * `{appSlug}-minion-{dnsName}`, where `dnsName` is the bucket key normalized to an\n * RFC1123 label ({@link normalizeServiceKeyToDnsName}). Symmetric with\n * {@link buildWorkerServiceName} — minions have no inbound Service / dispatch URL,\n * but the k8s render, the compose render, and the CI image build all need the\n * deploy name, and it must be RFC1123-valid for the same reasons. `minionName` is\n * the saas-config bucket key; the raw key stays the minion's IDENTITY (the\n * `wildo.ai/owned-service-name` pod label), never derived from here.\n */\nexport function buildMinionServiceName(appSlug: string, minionName: string): string {\n return `${appSlug}-minion-${normalizeServiceKeyToDnsName(minionName)}`;\n}\n\n/**\n * The in-cluster base URL the app-backend uses to reach a per-app worker\n * (`http://{appSlug}-worker-{workerName}:{port}`). The backend + its workers\n * deploy into the SAME namespace (per-app deploy), so the short Service name\n * resolves without a namespace qualifier. `port` is the worker's authored\n * `http.port` (schema default 8080).\n */\nexport function buildWorkerInternalUrl(appSlug: string, workerName: string, port: number): string {\n return `http://${buildWorkerServiceName(appSlug, workerName)}:${port}`;\n}\n\n/**\n * The base URL the app-backend uses to reach a per-app worker in LOCAL development.\n *\n * There is no k8s Service locally, so there is no name to resolve — the worker is a supervised\n * process listening on its authored `http.port` on the loopback interface, which is the same\n * convention every other local runtime address in this repository uses.\n *\n * ## Why this exists at all (#426)\n *\n * `buildApplicationWorkerDispatchUrls` used to return `undefined` for anything but REMOTE, on the\n * reasoning that \"local dev has no k8s Services, and worker dispatch is a k8s-deploy concern\". The\n * first half is still true and the second no longer is: local dev now STARTS the worker, so the\n * only thing missing was an address. Without one, `WorkerRemoteClientFactory.client()` fails closed\n * on the absent `WILDO_WORKER_<NAME>_URL` — which is why the whole backend-to-worker chain had\n * never been exercised by anyone, in a test or in the dev stack.\n *\n * Declared here, beside its in-cluster sibling and the env-key helper both sides derive, so the\n * emit side and the read side cannot drift apart for either deployment shape.\n */\nexport function buildWorkerLocalUrl(port: number): string {\n return `http://localhost:${port}`;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-worker-env.contracts.d.ts","sourceRoot":"","sources":["../../../../src/runtime/application-worker-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,oBAAY,gCAAgC;IAC1C,cAAc,mBAAmB;IACjC,uFAAuF;IACvF,sBAAsB,2BAA2B;IACjD;;;OAGG;IACH,sBAAsB,2BAA2B;IACjD,wHAAwH;IACxH,YAAY,iBAAiB;IAC7B,uBAAuB,4BAA4B;IACnD,mCAAmC,wCAAwC;IAC3E,yBAAyB,8BAA8B;IACvD,eAAe,oBAAoB;CACpC;AAED,oBAAY,8BAA8B;IACxC,6BAA6B,kCAAkC;CAChE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,oBAAY,kCAAkC;IAC5C,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;CAC5C;AAED,eAAO,MAAM,iCAAiC,yCAAmC,CAAC;AAClF,eAAO,MAAM,+BAA+B,uCAAiC,CAAC;AAC9E,eAAO,MAAM,mCAAmC,2CAAqC,CAAC;AAEtF,eAAO,MAAM,yCAAyC,2cAS5C,CAAC;AAEX,eAAO,MAAM,uCAAuC,2CAE1C,CAAC;AAEX,eAAO,MAAM,4CAA4C,qOAK/C,CAAC;AAEX,eAAO,MAAM,+BAA+B,qsBAIlC,CAAC;AAEX,eAAO,MAAM,qCAAqC,aAEhD,CAAC;AAEH,MAAM,MAAM,uBAAuB,GACjC,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"application-worker-env.contracts.d.ts","sourceRoot":"","sources":["../../../src/runtime/application-worker-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,oBAAY,gCAAgC;IAC1C,cAAc,mBAAmB;IACjC,uFAAuF;IACvF,sBAAsB,2BAA2B;IACjD;;;OAGG;IACH,sBAAsB,2BAA2B;IACjD,wHAAwH;IACxH,YAAY,iBAAiB;IAC7B,uBAAuB,4BAA4B;IACnD,mCAAmC,wCAAwC;IAC3E,yBAAyB,8BAA8B;IACvD,eAAe,oBAAoB;CACpC;AAED,oBAAY,8BAA8B;IACxC,6BAA6B,kCAAkC;CAChE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,oBAAY,kCAAkC;IAC5C,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;CAC5C;AAED,eAAO,MAAM,iCAAiC,yCAAmC,CAAC;AAClF,eAAO,MAAM,+BAA+B,uCAAiC,CAAC;AAC9E,eAAO,MAAM,mCAAmC,2CAAqC,CAAC;AAEtF,eAAO,MAAM,yCAAyC,2cAS5C,CAAC;AAEX,eAAO,MAAM,uCAAuC,2CAE1C,CAAC;AAEX,eAAO,MAAM,4CAA4C,qOAK/C,CAAC;AAEX,eAAO,MAAM,+BAA+B,qsBAIlC,CAAC;AAEX,eAAO,MAAM,qCAAqC,aAEhD,CAAC;AAEH,MAAM,MAAM,uBAAuB,GACjC,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"application-worker-env.contracts.js","sourceRoot":"","sources":["../../../../src/runtime/application-worker-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAN,IAAY,gCAeX;AAfD,WAAY,gCAAgC;IAC1C,qEAAiC,CAAA;IACjC,uFAAuF;IACvF,qFAAiD,CAAA;IACjD;;;OAGG;IACH,qFAAiD,CAAA;IACjD,wHAAwH;IACxH,iEAA6B,CAAA;IAC7B,uFAAmD,CAAA;IACnD,+GAA2E,CAAA;IAC3E,2FAAuD,CAAA;IACvD,uEAAmC,CAAA;AACrC,CAAC,EAfW,gCAAgC,KAAhC,gCAAgC,QAe3C;AAED,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,iGAA+D,CAAA;AACjE,CAAC,EAFW,8BAA8B,KAA9B,8BAA8B,QAEzC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAN,IAAY,kCAKX;AALD,WAAY,kCAAkC;IAC5C,2EAAqC,CAAA;IACrC,+EAAyC,CAAA;IACzC,6EAAuC,CAAA;IACvC,iFAA2C,CAAA;AAC7C,CAAC,EALW,kCAAkC,KAAlC,kCAAkC,QAK7C;AAED,MAAM,CAAC,MAAM,iCAAiC,GAAG,gCAAgC,CAAC;AAClF,MAAM,CAAC,MAAM,+BAA+B,GAAG,8BAA8B,CAAC;AAC9E,MAAM,CAAC,MAAM,mCAAmC,GAAG,kCAAkC,CAAC;AAEtF,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,gCAAgC,CAAC,cAAc;IAC/C,gCAAgC,CAAC,sBAAsB;IACvD,gCAAgC,CAAC,sBAAsB;IACvD,gCAAgC,CAAC,YAAY;IAC7C,gCAAgC,CAAC,uBAAuB;IACxD,gCAAgC,CAAC,mCAAmC;IACpE,gCAAgC,CAAC,yBAAyB;IAC1D,gCAAgC,CAAC,eAAe;CACxC,CAAC;AAEX,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,8BAA8B,CAAC,6BAA6B;CACpD,CAAC;AAEX,MAAM,CAAC,MAAM,4CAA4C,GAAG;IAC1D,kCAAkC,CAAC,gBAAgB;IACnD,kCAAkC,CAAC,kBAAkB;IACrD,kCAAkC,CAAC,iBAAiB;IACpD,kCAAkC,CAAC,mBAAmB;CAC9C,CAAC;AAEX,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,GAAG,yCAAyC;IAC5C,GAAG,uCAAuC;IAC1C,GAAG,4CAA4C;CACvC,CAAC;AAEX,MAAM,CAAC,MAAM,qCAAqC,GAAG,IAAI,GAAG,CAAS;IACnE,gCAAgC,CAAC,mCAAmC;CACrE,CAAC,CAAC","sourcesContent":["/**\n * Shared environment contract for application worker processes.\n *\n * This surface is intentionally smaller than the backend contract:\n * workers are language-agnostic subprocesses, so they receive only the\n * bootstrap identity, worker identity, optional runtime topology hints,\n * and provider/config secrets that are safe to deliver via env.\n */\n\n/**\n * Bootstrap-identity env contract for application worker processes.\n *\n * The worker IDENTITY is carried by the canonical background-runtime pair\n * `APP_OWNED_SERVICE_KIND` + `APP_OWNED_SERVICE_NAME` — the SAME vocabulary the\n * `BackgroundRuntimeType` model (`@wildo-ai/saas-models`) declares apps-manager\n * injects, that the k8s worker AND minion Deployment templates stamp, and that\n * the reference Rust worker reads at boot. The worker forwards\n * `APP_OWNED_SERVICE_NAME` as the `/apps-to-manager/workers/{name}/bootstrap`\n * path segment, which apps-manager keys on `appConfig.workers[name]` — so\n * `APP_OWNED_SERVICE_NAME` is exactly the `wildo.saas.config.ts > workers`\n * bucket key. `APP_OWNED_SERVICE_KIND` is `BackgroundRuntimeType.WORKER` and\n * disambiguates worker vs minion, so both background-runtime kinds share ONE\n * identity contract across every deploy path (k8s manifest, docker-compose, and\n * the generated `.env`).\n *\n * `SERVICE_NAME` is the SEPARATE process/observability identity\n * (`wildo.worker.config.ts > name`, else the bucket key) — it also feeds\n * `OTEL_SERVICE_NAME`. It is NOT the routing identity above; do not conflate\n * the two.\n */\nexport enum ApplicationWorkerBootstrapEnvKey {\n APPLICATION_ID = 'APPLICATION_ID',\n /** `BackgroundRuntimeType.WORKER` — pins this app-owned runtime kind (vs a minion). */\n APP_OWNED_SERVICE_KIND = 'APP_OWNED_SERVICE_KIND',\n /**\n * The `wildo.saas.config.ts > workers` bucket key — forwarded to apps-manager\n * as the worker-bootstrap path segment (`appConfig.workers[name]` lookup).\n */\n APP_OWNED_SERVICE_NAME = 'APP_OWNED_SERVICE_NAME',\n /** Process/observability identity (`wildo.worker.config.ts > name`, else the bucket key); feeds `OTEL_SERVICE_NAME`. */\n SERVICE_NAME = 'SERVICE_NAME',\n PLATFORM_ENVIRONMENT_ID = 'PLATFORM_ENVIRONMENT_ID',\n PLATFORM_APPLICATION_PRIMARY_SECRET = 'PLATFORM_APPLICATION_PRIMARY_SECRET',\n PLATFORM_APPS_MANAGER_URL = 'PLATFORM_APPS_MANAGER_URL',\n APPLICATION_ENV = 'APPLICATION_ENV',\n}\n\nexport enum ApplicationWorkerRuntimeEnvKey {\n APPLICATION_RUNTIME_ENDPOINTS = 'APPLICATION_RUNTIME_ENDPOINTS',\n}\n\n/**\n * The worker's inbound HTTP-surface descriptor, projected from the authored\n * `wildo.worker.config.ts > http` block (`WorkerHttpSchema` in\n * `@wildo-ai/platform-config-lib`) into the worker process environment by\n * `wildo config sync`.\n *\n * Unlike {@link ApplicationWorkerBootstrapEnvKey} (required identity — the\n * worker fails closed when any key is missing), these keys are DEFAULTED: a\n * worker booted without them falls back to its language-runtime's built-in\n * defaults (`8080` / `/healthz` / `/readyz`), exactly as the Rust reference\n * worker does with `std::env::var(...).unwrap_or_else(...)`. The generator\n * always emits them from the authored config so the running port and probe\n * paths track `wildo.worker.config.ts` rather than a per-language hardcoded\n * default that only coincides with the authored value by luck.\n *\n * `WORKER_METRICS_PATH` mirrors the optional `WorkerHttpSchema.metricsPath` —\n * emitted only when the author opts a worker into a Prometheus scrape surface.\n */\nexport enum ApplicationWorkerHttpSurfaceEnvKey {\n WORKER_HTTP_PORT = 'WORKER_HTTP_PORT',\n WORKER_HEALTH_PATH = 'WORKER_HEALTH_PATH',\n WORKER_READY_PATH = 'WORKER_READY_PATH',\n WORKER_METRICS_PATH = 'WORKER_METRICS_PATH',\n}\n\nexport const ApplicationWorkerBootstrapEnvKeys = ApplicationWorkerBootstrapEnvKey;\nexport const ApplicationWorkerRuntimeEnvKeys = ApplicationWorkerRuntimeEnvKey;\nexport const ApplicationWorkerHttpSurfaceEnvKeys = ApplicationWorkerHttpSurfaceEnvKey;\n\nexport const APPLICATION_WORKER_BOOTSTRAP_ENV_KEY_LIST = [\n ApplicationWorkerBootstrapEnvKey.APPLICATION_ID,\n ApplicationWorkerBootstrapEnvKey.APP_OWNED_SERVICE_KIND,\n ApplicationWorkerBootstrapEnvKey.APP_OWNED_SERVICE_NAME,\n ApplicationWorkerBootstrapEnvKey.SERVICE_NAME,\n ApplicationWorkerBootstrapEnvKey.PLATFORM_ENVIRONMENT_ID,\n ApplicationWorkerBootstrapEnvKey.PLATFORM_APPLICATION_PRIMARY_SECRET,\n ApplicationWorkerBootstrapEnvKey.PLATFORM_APPS_MANAGER_URL,\n ApplicationWorkerBootstrapEnvKey.APPLICATION_ENV,\n] as const;\n\nexport const APPLICATION_WORKER_RUNTIME_ENV_KEY_LIST = [\n ApplicationWorkerRuntimeEnvKey.APPLICATION_RUNTIME_ENDPOINTS,\n] as const;\n\nexport const APPLICATION_WORKER_HTTP_SURFACE_ENV_KEY_LIST = [\n ApplicationWorkerHttpSurfaceEnvKey.WORKER_HTTP_PORT,\n ApplicationWorkerHttpSurfaceEnvKey.WORKER_HEALTH_PATH,\n ApplicationWorkerHttpSurfaceEnvKey.WORKER_READY_PATH,\n ApplicationWorkerHttpSurfaceEnvKey.WORKER_METRICS_PATH,\n] as const;\n\nexport const APPLICATION_WORKER_ENV_KEY_LIST = [\n ...APPLICATION_WORKER_BOOTSTRAP_ENV_KEY_LIST,\n ...APPLICATION_WORKER_RUNTIME_ENV_KEY_LIST,\n ...APPLICATION_WORKER_HTTP_SURFACE_ENV_KEY_LIST,\n] as const;\n\nexport const APPLICATION_WORKER_SENSITIVE_ENV_KEYS = new Set<string>([\n ApplicationWorkerBootstrapEnvKey.PLATFORM_APPLICATION_PRIMARY_SECRET,\n]);\n\nexport type ApplicationWorkerEnvKey =\n typeof APPLICATION_WORKER_ENV_KEY_LIST[number];\n"]}
1
+ {"version":3,"file":"application-worker-env.contracts.js","sourceRoot":"","sources":["../../../src/runtime/application-worker-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAN,IAAY,gCAeX;AAfD,WAAY,gCAAgC;IAC1C,qEAAiC,CAAA;IACjC,uFAAuF;IACvF,qFAAiD,CAAA;IACjD;;;OAGG;IACH,qFAAiD,CAAA;IACjD,wHA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AAyC;IAC5C,GAAG,uCAAuC;IAC1C,GAAG,4CAA4C;CACvC,CAAC;AAEX,MAAM,CAAC,MAAM,qCAAqC,GAAG,IAAI,GAAG,CAAS;IACnE,gCAAgC,CAAC,mCAAmC;CACrE,CAAC,CAAC","sourcesContent":["/**\n * Shared environment contract for application worker processes.\n *\n * This surface is intentionally smaller than the backend contract:\n * workers are language-agnostic subprocesses, so they receive only the\n * bootstrap identity, worker identity, optional runtime topology hints,\n * and provider/config secrets that are safe to deliver via env.\n */\n\n/**\n * Bootstrap-identity env contract for application worker processes.\n *\n * The worker IDENTITY is carried by the canonical background-runtime pair\n * `APP_OWNED_SERVICE_KIND` + `APP_OWNED_SERVICE_NAME` — the SAME vocabulary the\n * `BackgroundRuntimeType` model (`@wildo-ai/saas-models`) declares apps-manager\n * injects, that the k8s worker AND minion Deployment templates stamp, and that\n * the reference Rust worker reads at boot. The worker forwards\n * `APP_OWNED_SERVICE_NAME` as the `/apps-to-manager/workers/{name}/bootstrap`\n * path segment, which apps-manager keys on `appConfig.workers[name]` — so\n * `APP_OWNED_SERVICE_NAME` is exactly the `wildo.saas.config.ts > workers`\n * bucket key. `APP_OWNED_SERVICE_KIND` is `BackgroundRuntimeType.WORKER` and\n * disambiguates worker vs minion, so both background-runtime kinds share ONE\n * identity contract across every deploy path (k8s manifest, docker-compose, and\n * the generated `.env`).\n *\n * `SERVICE_NAME` is the SEPARATE process/observability identity\n * (`wildo.worker.config.ts > name`, else the bucket key) — it also feeds\n * `OTEL_SERVICE_NAME`. It is NOT the routing identity above; do not conflate\n * the two.\n */\nexport enum ApplicationWorkerBootstrapEnvKey {\n APPLICATION_ID = 'APPLICATION_ID',\n /** `BackgroundRuntimeType.WORKER` — pins this app-owned runtime kind (vs a minion). */\n APP_OWNED_SERVICE_KIND = 'APP_OWNED_SERVICE_KIND',\n /**\n * The `wildo.saas.config.ts > workers` bucket key — forwarded to apps-manager\n * as the worker-bootstrap path segment (`appConfig.workers[name]` lookup).\n */\n APP_OWNED_SERVICE_NAME = 'APP_OWNED_SERVICE_NAME',\n /** Process/observability identity (`wildo.worker.config.ts > name`, else the bucket key); feeds `OTEL_SERVICE_NAME`. */\n SERVICE_NAME = 'SERVICE_NAME',\n PLATFORM_ENVIRONMENT_ID = 'PLATFORM_ENVIRONMENT_ID',\n PLATFORM_APPLICATION_PRIMARY_SECRET = 'PLATFORM_APPLICATION_PRIMARY_SECRET',\n PLATFORM_APPS_MANAGER_URL = 'PLATFORM_APPS_MANAGER_URL',\n APPLICATION_ENV = 'APPLICATION_ENV',\n}\n\nexport enum ApplicationWorkerRuntimeEnvKey {\n APPLICATION_RUNTIME_ENDPOINTS = 'APPLICATION_RUNTIME_ENDPOINTS',\n}\n\n/**\n * The worker's inbound HTTP-surface descriptor, projected from the authored\n * `wildo.worker.config.ts > http` block (`WorkerHttpSchema` in\n * `@wildo-ai/platform-config-lib`) into the worker process environment by\n * `wildo config sync`.\n *\n * Unlike {@link ApplicationWorkerBootstrapEnvKey} (required identity — the\n * worker fails closed when any key is missing), these keys are DEFAULTED: a\n * worker booted without them falls back to its language-runtime's built-in\n * defaults (`8080` / `/healthz` / `/readyz`), exactly as the Rust reference\n * worker does with `std::env::var(...).unwrap_or_else(...)`. The generator\n * always emits them from the authored config so the running port and probe\n * paths track `wildo.worker.config.ts` rather than a per-language hardcoded\n * default that only coincides with the authored value by luck.\n *\n * `WORKER_METRICS_PATH` mirrors the optional `WorkerHttpSchema.metricsPath` —\n * emitted only when the author opts a worker into a Prometheus scrape surface.\n */\nexport enum ApplicationWorkerHttpSurfaceEnvKey {\n WORKER_HTTP_PORT = 'WORKER_HTTP_PORT',\n WORKER_HEALTH_PATH = 'WORKER_HEALTH_PATH',\n WORKER_READY_PATH = 'WORKER_READY_PATH',\n WORKER_METRICS_PATH = 'WORKER_METRICS_PATH',\n}\n\nexport const ApplicationWorkerBootstrapEnvKeys = ApplicationWorkerBootstrapEnvKey;\nexport const ApplicationWorkerRuntimeEnvKeys = ApplicationWorkerRuntimeEnvKey;\nexport const ApplicationWorkerHttpSurfaceEnvKeys = ApplicationWorkerHttpSurfaceEnvKey;\n\nexport const APPLICATION_WORKER_BOOTSTRAP_ENV_KEY_LIST = [\n ApplicationWorkerBootstrapEnvKey.APPLICATION_ID,\n ApplicationWorkerBootstrapEnvKey.APP_OWNED_SERVICE_KIND,\n ApplicationWorkerBootstrapEnvKey.APP_OWNED_SERVICE_NAME,\n ApplicationWorkerBootstrapEnvKey.SERVICE_NAME,\n ApplicationWorkerBootstrapEnvKey.PLATFORM_ENVIRONMENT_ID,\n ApplicationWorkerBootstrapEnvKey.PLATFORM_APPLICATION_PRIMARY_SECRET,\n ApplicationWorkerBootstrapEnvKey.PLATFORM_APPS_MANAGER_URL,\n ApplicationWorkerBootstrapEnvKey.APPLICATION_ENV,\n] as const;\n\nexport const APPLICATION_WORKER_RUNTIME_ENV_KEY_LIST = [\n ApplicationWorkerRuntimeEnvKey.APPLICATION_RUNTIME_ENDPOINTS,\n] as const;\n\nexport const APPLICATION_WORKER_HTTP_SURFACE_ENV_KEY_LIST = [\n ApplicationWorkerHttpSurfaceEnvKey.WORKER_HTTP_PORT,\n ApplicationWorkerHttpSurfaceEnvKey.WORKER_HEALTH_PATH,\n ApplicationWorkerHttpSurfaceEnvKey.WORKER_READY_PATH,\n ApplicationWorkerHttpSurfaceEnvKey.WORKER_METRICS_PATH,\n] as const;\n\nexport const APPLICATION_WORKER_ENV_KEY_LIST = [\n ...APPLICATION_WORKER_BOOTSTRAP_ENV_KEY_LIST,\n ...APPLICATION_WORKER_RUNTIME_ENV_KEY_LIST,\n ...APPLICATION_WORKER_HTTP_SURFACE_ENV_KEY_LIST,\n] as const;\n\nexport const APPLICATION_WORKER_SENSITIVE_ENV_KEYS = new Set<string>([\n ApplicationWorkerBootstrapEnvKey.PLATFORM_APPLICATION_PRIMARY_SECRET,\n]);\n\nexport type ApplicationWorkerEnvKey =\n typeof APPLICATION_WORKER_ENV_KEY_LIST[number];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"http-server-env.contracts.d.ts","sourceRoot":"","sources":["../../../../src/runtime/http-server-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,gBAAgB;IAC1B,+FAA+F;IAC/F,uBAAuB,4BAA4B;CACpD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAOvE"}
1
+ {"version":3,"file":"http-server-env.contracts.d.ts","sourceRoot":"","sources":["../../../src/runtime/http-server-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,gBAAgB;IAC1B,+FAA+F;IAC/F,uBAAuB,4BAA4B;CACpD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAOvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"http-server-env.contracts.js","sourceRoot":"","sources":["../../../../src/runtime/http-server-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+FAA+F;IAC/F,uEAAmD,CAAA;AACrD,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAExC;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAyB;IAC7D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,CAAC,CAAC;IACzD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,GAAG,gBAAgB,CAAC,uBAAuB,yCAAyC,KAAK,KAAK,CAAC,CAAC;IAClH,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC","sourcesContent":["/**\n * How many HTTP reverse proxies sit in front of a runtime's HTTP server — the deployment fact Express's\n * `trust proxy` needs, and the only thing that makes `req.ip` the CLIENT's address rather than the last\n * proxy's (#1788).\n *\n * Every per-client-IP control in the engine — the machine-credential failure lockout, the per-endpoint\n * rate limits, the global HTTP limiter, the audit trail's client address — keys on `req.ip`. Behind a\n * proxy with `trust proxy` unset, `req.ip` is the proxy for EVERY caller, so all of them share one\n * bucket: one client presenting bad keys locks every machine caller out.\n *\n * It is a property of the DEPLOYMENT, not of the application, so it arrives in the process environment,\n * rendered by the lane that put the proxy there — like `HOST` and `PORT` — and is read at the one HTTP\n * server every runtime shares (applications, the dev companion and the platform services alike).\n * Absent means zero: no proxy is trusted, which is the safe reading — a trusted hop that is not really\n * there would let a client choose its own address through `X-Forwarded-For`.\n */\nexport enum HttpServerEnvKey {\n /** Non-negative integer: the number of trusted reverse-proxy hops in front of this runtime. */\n HTTP_TRUSTED_PROXY_HOPS = 'HTTP_TRUSTED_PROXY_HOPS',\n}\n\n/**\n * The hops in front of a REMOTE runtime: both remote deployment lanes put exactly ONE HTTP reverse proxy\n * (Traefik) before the backend — as the cluster ingress in the Kubernetes lane, as the TLS-terminating\n * edge in the remote compose lane. A local runtime is reached directly and trusts none.\n *\n * One hop is only the client's address if Traefik itself SAW the client. A cloud load balancer in front\n * of it works at TCP level and adds no forwarded header, so it is not a hop — but kube-proxy source-NATs\n * a LoadBalancer Service by default, and Traefik would then see a node. The Kubernetes lane's Traefik\n * values set `externalTrafficPolicy: Local` for exactly this reason; the compose lane publishes Traefik's\n * ports directly, which keeps the source address (#1788 review).\n *\n * The limit, stated rather than implied: trusting a hop COUNT means a caller that reaches the backend\n * WITHOUT Traefik — another pod in the same cluster — can name its own address in `X-Forwarded-For`.\n * Every such caller is one of this application's own runtimes or the platform, not an internet client,\n * and trusting Traefik's own addresses instead would need the cluster's pod network, which no lane\n * knows. The controls this protects are the ones aimed at the internet.\n */\nexport const REMOTE_EDGE_PROXY_HOPS = 1;\n\n/**\n * Read {@link HttpServerEnvKey.HTTP_TRUSTED_PROXY_HOPS}: an absent or empty value is 0; anything that is\n * not a non-negative integer is REFUSED, because silently reading a typo as 0 would collapse every\n * client into one rate-limit bucket without a word, and reading it as anything else would trust hops\n * that are not there.\n */\nexport function parseTrustedProxyHops(value: string | undefined): number {\n if (value === undefined || value.trim() === '') return 0;\n const trimmed = value.trim();\n if (!/^\\d+$/.test(trimmed)) {\n throw new Error(`${HttpServerEnvKey.HTTP_TRUSTED_PROXY_HOPS} must be a non-negative integer (got \"${value}\").`);\n }\n return Number(trimmed);\n}\n"]}
1
+ {"version":3,"file":"http-server-env.contracts.js","sourceRoot":"","sources":["../../../src/runtime/http-server-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+FAA+F;IAC/F,uEAAmD,CAAA;AACrD,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAExC;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAyB;IAC7D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,CAAC,CAAC;IACzD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,GAAG,gBAAgB,CAAC,uBAAuB,yCAAyC,KAAK,KAAK,CAAC,CAAC;IAClH,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC","sourcesContent":["/**\n * How many HTTP reverse proxies sit in front of a runtime's HTTP server — the deployment fact Express's\n * `trust proxy` needs, and the only thing that makes `req.ip` the CLIENT's address rather than the last\n * proxy's (#1788).\n *\n * Every per-client-IP control in the engine — the machine-credential failure lockout, the per-endpoint\n * rate limits, the global HTTP limiter, the audit trail's client address — keys on `req.ip`. Behind a\n * proxy with `trust proxy` unset, `req.ip` is the proxy for EVERY caller, so all of them share one\n * bucket: one client presenting bad keys locks every machine caller out.\n *\n * It is a property of the DEPLOYMENT, not of the application, so it arrives in the process environment,\n * rendered by the lane that put the proxy there — like `HOST` and `PORT` — and is read at the one HTTP\n * server every runtime shares (applications, the dev companion and the platform services alike).\n * Absent means zero: no proxy is trusted, which is the safe reading — a trusted hop that is not really\n * there would let a client choose its own address through `X-Forwarded-For`.\n */\nexport enum HttpServerEnvKey {\n /** Non-negative integer: the number of trusted reverse-proxy hops in front of this runtime. */\n HTTP_TRUSTED_PROXY_HOPS = 'HTTP_TRUSTED_PROXY_HOPS',\n}\n\n/**\n * The hops in front of a REMOTE runtime: both remote deployment lanes put exactly ONE HTTP reverse proxy\n * (Traefik) before the backend — as the cluster ingress in the Kubernetes lane, as the TLS-terminating\n * edge in the remote compose lane. A local runtime is reached directly and trusts none.\n *\n * One hop is only the client's address if Traefik itself SAW the client. A cloud load balancer in front\n * of it works at TCP level and adds no forwarded header, so it is not a hop — but kube-proxy source-NATs\n * a LoadBalancer Service by default, and Traefik would then see a node. The Kubernetes lane's Traefik\n * values set `externalTrafficPolicy: Local` for exactly this reason; the compose lane publishes Traefik's\n * ports directly, which keeps the source address (#1788 review).\n *\n * The limit, stated rather than implied: trusting a hop COUNT means a caller that reaches the backend\n * WITHOUT Traefik — another pod in the same cluster — can name its own address in `X-Forwarded-For`.\n * Every such caller is one of this application's own runtimes or the platform, not an internet client,\n * and trusting Traefik's own addresses instead would need the cluster's pod network, which no lane\n * knows. The controls this protects are the ones aimed at the internet.\n */\nexport const REMOTE_EDGE_PROXY_HOPS = 1;\n\n/**\n * Read {@link HttpServerEnvKey.HTTP_TRUSTED_PROXY_HOPS}: an absent or empty value is 0; anything that is\n * not a non-negative integer is REFUSED, because silently reading a typo as 0 would collapse every\n * client into one rate-limit bucket without a word, and reading it as anything else would trust hops\n * that are not there.\n */\nexport function parseTrustedProxyHops(value: string | undefined): number {\n if (value === undefined || value.trim() === '') return 0;\n const trimmed = value.trim();\n if (!/^\\d+$/.test(trimmed)) {\n throw new Error(`${HttpServerEnvKey.HTTP_TRUSTED_PROXY_HOPS} must be a non-negative integer (got \"${value}\").`);\n }\n return Number(trimmed);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-topology.contracts.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-topology.contracts.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,oBAAY,uBAAuB;IACjC,qBAAqB,0BAA0B;IAC/C,iCAAiC,sCAAsC;IACvE,wBAAwB,6BAA6B;IACrD,qBAAqB,0BAA0B;IAC/C,QAAQ,aAAa;IACrB,aAAa,kBAAkB;CAChC;AAED;;;;;GAKG;AACH,oBAAY,0BAA0B;IACpC,qBAAqB,0BAAgD;IACrE,iCAAiC,sCAA4D;IAC7F,wBAAwB,6BAAmD;CAC5E;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,mBAAmB,CAAC;IACjC,sBAAsB,EAAE,mBAAmB,CAAC;IAC5C;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,6BAA6B,GACnC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CASrC;AAED,MAAM,WAAW,gCAAgC;IAC/C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,SAAS,CAAC;IACvE,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC1C,sBAAsB,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACzD,cAAc,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CAClD;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,gCAAgC,GACtC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAerC;AAED,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAC7C,MAAM,CAER;AAED,wBAAgB,2BAA2B,CACzC,0BAA0B,EAAE,MAAM,GACjC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAsBrC"}
1
+ {"version":3,"file":"runtime-topology.contracts.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-topology.contracts.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,oBAAY,uBAAuB;IACjC,qBAAqB,0BAA0B;IAC/C,iCAAiC,sCAAsC;IACvE,wBAAwB,6BAA6B;IACrD,qBAAqB,0BAA0B;IAC/C,QAAQ,aAAa;IACrB,aAAa,kBAAkB;CAChC;AAED;;;;;GAKG;AACH,oBAAY,0BAA0B;IACpC,qBAAqB,0BAAgD;IACrE,iCAAiC,sCAA4D;IAC7F,wBAAwB,6BAAmD;CAC5E;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,mBAAmB,CAAC;IACjC,sBAAsB,EAAE,mBAAmB,CAAC;IAC5C;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,6BAA6B,GACnC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CASrC;AAED,MAAM,WAAW,gCAAgC;IAC/C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,SAAS,CAAC;IACvE,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC1C,sBAAsB,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACzD,cAAc,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CAClD;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,gCAAgC,GACtC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAerC;AAED,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAC7C,MAAM,CAER;AAED,wBAAgB,2BAA2B,CACzC,0BAA0B,EAAE,MAAM,GACjC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAsBrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-topology.contracts.js","sourceRoot":"","sources":["../../../../src/runtime/runtime-topology.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAO/B;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,0EAA+C,CAAA;IAC/C,kGAAuE,CAAA;IACvE,gFAAqD,CAAA;IACrD,0EAA+C,CAAA;IAC/C,gDAAqB,CAAA;IACrB,0DAA+B,CAAA;AACjC,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,6EAAqE,CAAA;IACrE,qGAA6F,CAAA;IAC7F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AAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACnE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,MAAM,GAAwC,EAAE,CAAC;IACvD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAChE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,CAAC;QACjE,CAAC;QAED,MAAM,SAAS,GAAI,KAAiC,CAAC,SAAS,CAAC;QAC/D,MAAM,WAAW,GAAI,KAAiC,CAAC,WAAW,CAAC;QACnE,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACrE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,4CAA4C,CAAC,CAAC;QACxF,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IAC3C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import {\n BackendApiType,\n StaticFrontEndType,\n} from '@wildo-ai/saas-models';\n\nexport interface RuntimeEndpointUrls {\n publicUrl: string;\n internalUrl: string;\n}\n\n/**\n * Shared application/service identifiers for platform-owned runtimes.\n *\n * This enum must live in the shared contract layer because CLI/runtime topology\n * code needs these semantics without importing backend runtime packages.\n */\nexport enum PlatformApplicationType {\n PLATFORM_APPS_MANAGER = 'platform_apps_manager',\n PLATFORM_CRONTABS_BATCHES_MANAGER = 'platform_crontabs_batches_manager',\n PLATFORM_MODULE_REGISTRY = 'platform_module_registry',\n APP_LIFECYCLE_MANAGER = 'app_lifecycle_manager',\n APP_CICD = 'app_cicd',\n PLATFORM_CICD = 'platform_cicd',\n}\n\n/**\n * Shared runtime endpoint keys for platform services.\n *\n * These are the subset of `PlatformApplicationType` that expose runtime\n * endpoints directly.\n */\nexport enum PlatformRuntimeEndpointKey {\n PLATFORM_APPS_MANAGER = PlatformApplicationType.PLATFORM_APPS_MANAGER,\n PLATFORM_CRONTABS_BATCHES_MANAGER = PlatformApplicationType.PLATFORM_CRONTABS_BATCHES_MANAGER,\n PLATFORM_MODULE_REGISTRY = PlatformApplicationType.PLATFORM_MODULE_REGISTRY,\n}\n\nexport interface PlatformRuntimeEndpointsInput {\n appsManager: RuntimeEndpointUrls;\n crontabsBatchesManager: RuntimeEndpointUrls;\n /**\n * Module-registry endpoint (Phase 3 / KD-7). Optional during the\n * Phase 3 rollout: existing platform deployments that haven't\n * yet provisioned the registry pass `undefined` and the entry\n * is omitted from the resulting record. New deployments + every\n * Phase 4+ caller MUST set it.\n */\n moduleRegistry?: RuntimeEndpointUrls;\n}\n\nexport function buildPlatformRuntimeEndpoints(\n input: PlatformRuntimeEndpointsInput,\n): Record<string, RuntimeEndpointUrls> {\n const out: Record<string, RuntimeEndpointUrls> = {\n [PlatformRuntimeEndpointKey.PLATFORM_APPS_MANAGER]: input.appsManager,\n [PlatformRuntimeEndpointKey.PLATFORM_CRONTABS_BATCHES_MANAGER]: input.crontabsBatchesManager,\n };\n if (input.moduleRegistry) {\n out[PlatformRuntimeEndpointKey.PLATFORM_MODULE_REGISTRY] = input.moduleRegistry;\n }\n return out;\n}\n\nexport interface ApplicationRuntimeEndpointsInput {\n frontendApplications?: Record<string, RuntimeEndpointUrls> | undefined;\n website?: RuntimeEndpointUrls | undefined;\n technicalDocumentation?: RuntimeEndpointUrls | undefined;\n mainBackendApi?: RuntimeEndpointUrls | undefined;\n}\n\nexport function buildApplicationRuntimeEndpoints(\n input: ApplicationRuntimeEndpointsInput,\n): Record<string, RuntimeEndpointUrls> {\n const endPoints: Record<string, RuntimeEndpointUrls> = {\n ...(input.frontendApplications ?? {}),\n };\n if (input.website) {\n endPoints[StaticFrontEndType.WEBSITE] = input.website;\n }\n if (input.technicalDocumentation) {\n endPoints[StaticFrontEndType.TECHNICAL_DOCUMENTATION] = input.technicalDocumentation;\n }\n if (input.mainBackendApi) {\n endPoints[BackendApiType.MAIN_BACKEND_API] = input.mainBackendApi;\n }\n\n return endPoints;\n}\n\nexport function serializeRuntimeEndpointsRecord(\n endPoints: Record<string, RuntimeEndpointUrls>,\n): string {\n return JSON.stringify(endPoints);\n}\n\nexport function parseRuntimeEndpointsRecord(\n serializedRuntimeEndpoints: string,\n): Record<string, RuntimeEndpointUrls> {\n const parsed = JSON.parse(serializedRuntimeEndpoints) as unknown;\n if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {\n throw new Error('Runtime endpoints payload must be a JSON object');\n }\n\n const record: Record<string, RuntimeEndpointUrls> = {};\n for (const [key, value] of Object.entries(parsed)) {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n throw new Error(`Runtime endpoint \"${key}\" must be an object`);\n }\n\n const publicUrl = (value as Record<string, unknown>).publicUrl;\n const internalUrl = (value as Record<string, unknown>).internalUrl;\n if (typeof publicUrl !== 'string' || typeof internalUrl !== 'string') {\n throw new Error(`Runtime endpoint \"${key}\" must expose string publicUrl/internalUrl`);\n }\n\n record[key] = { publicUrl, internalUrl };\n }\n\n return record;\n}\n"]}
1
+ {"version":3,"file":"runtime-topology.contracts.js","sourceRoot":"","sources":["../../../src/runtime/runtime-topology.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAO/B;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,0EAA+C,CAAA;IAC/C,kGAAuE,CAAA;IACvE,gFAAqD,CAAA;IACrD,0EAA+C,CAAA;IAC/C,gDAAqB,CAAA;IACrB,0DAA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I,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,0BAAkC;IAElC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,0BAA0B,CAAY,CAAC;IACjE,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACnE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,MAAM,GAAwC,EAAE,CAAC;IACvD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAChE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,CAAC;QACjE,CAAC;QAED,MAAM,SAAS,GAAI,KAAiC,CAAC,SAAS,CAAC;QAC/D,MAAM,WAAW,GAAI,KAAiC,CAAC,WAAW,CAAC;QACnE,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACrE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,4CAA4C,CAAC,CAAC;QACxF,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IAC3C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import {\n BackendApiType,\n StaticFrontEndType,\n} from '@wildo-ai/saas-models';\n\nexport interface RuntimeEndpointUrls {\n publicUrl: string;\n internalUrl: string;\n}\n\n/**\n * Shared application/service identifiers for platform-owned runtimes.\n *\n * This enum must live in the shared contract layer because CLI/runtime topology\n * code needs these semantics without importing backend runtime packages.\n */\nexport enum PlatformApplicationType {\n PLATFORM_APPS_MANAGER = 'platform_apps_manager',\n PLATFORM_CRONTABS_BATCHES_MANAGER = 'platform_crontabs_batches_manager',\n PLATFORM_MODULE_REGISTRY = 'platform_module_registry',\n APP_LIFECYCLE_MANAGER = 'app_lifecycle_manager',\n APP_CICD = 'app_cicd',\n PLATFORM_CICD = 'platform_cicd',\n}\n\n/**\n * Shared runtime endpoint keys for platform services.\n *\n * These are the subset of `PlatformApplicationType` that expose runtime\n * endpoints directly.\n */\nexport enum PlatformRuntimeEndpointKey {\n PLATFORM_APPS_MANAGER = PlatformApplicationType.PLATFORM_APPS_MANAGER,\n PLATFORM_CRONTABS_BATCHES_MANAGER = PlatformApplicationType.PLATFORM_CRONTABS_BATCHES_MANAGER,\n PLATFORM_MODULE_REGISTRY = PlatformApplicationType.PLATFORM_MODULE_REGISTRY,\n}\n\nexport interface PlatformRuntimeEndpointsInput {\n appsManager: RuntimeEndpointUrls;\n crontabsBatchesManager: RuntimeEndpointUrls;\n /**\n * Module-registry endpoint (Phase 3 / KD-7). Optional during the\n * Phase 3 rollout: existing platform deployments that haven't\n * yet provisioned the registry pass `undefined` and the entry\n * is omitted from the resulting record. New deployments + every\n * Phase 4+ caller MUST set it.\n */\n moduleRegistry?: RuntimeEndpointUrls;\n}\n\nexport function buildPlatformRuntimeEndpoints(\n input: PlatformRuntimeEndpointsInput,\n): Record<string, RuntimeEndpointUrls> {\n const out: Record<string, RuntimeEndpointUrls> = {\n [PlatformRuntimeEndpointKey.PLATFORM_APPS_MANAGER]: input.appsManager,\n [PlatformRuntimeEndpointKey.PLATFORM_CRONTABS_BATCHES_MANAGER]: input.crontabsBatchesManager,\n };\n if (input.moduleRegistry) {\n out[PlatformRuntimeEndpointKey.PLATFORM_MODULE_REGISTRY] = input.moduleRegistry;\n }\n return out;\n}\n\nexport interface ApplicationRuntimeEndpointsInput {\n frontendApplications?: Record<string, RuntimeEndpointUrls> | undefined;\n website?: RuntimeEndpointUrls | undefined;\n technicalDocumentation?: RuntimeEndpointUrls | undefined;\n mainBackendApi?: RuntimeEndpointUrls | undefined;\n}\n\nexport function buildApplicationRuntimeEndpoints(\n input: ApplicationRuntimeEndpointsInput,\n): Record<string, RuntimeEndpointUrls> {\n const endPoints: Record<string, RuntimeEndpointUrls> = {\n ...(input.frontendApplications ?? {}),\n };\n if (input.website) {\n endPoints[StaticFrontEndType.WEBSITE] = input.website;\n }\n if (input.technicalDocumentation) {\n endPoints[StaticFrontEndType.TECHNICAL_DOCUMENTATION] = input.technicalDocumentation;\n }\n if (input.mainBackendApi) {\n endPoints[BackendApiType.MAIN_BACKEND_API] = input.mainBackendApi;\n }\n\n return endPoints;\n}\n\nexport function serializeRuntimeEndpointsRecord(\n endPoints: Record<string, RuntimeEndpointUrls>,\n): string {\n return JSON.stringify(endPoints);\n}\n\nexport function parseRuntimeEndpointsRecord(\n serializedRuntimeEndpoints: string,\n): Record<string, RuntimeEndpointUrls> {\n const parsed = JSON.parse(serializedRuntimeEndpoints) as unknown;\n if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {\n throw new Error('Runtime endpoints payload must be a JSON object');\n }\n\n const record: Record<string, RuntimeEndpointUrls> = {};\n for (const [key, value] of Object.entries(parsed)) {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n throw new Error(`Runtime endpoint \"${key}\" must be an object`);\n }\n\n const publicUrl = (value as Record<string, unknown>).publicUrl;\n const internalUrl = (value as Record<string, unknown>).internalUrl;\n if (typeof publicUrl !== 'string' || typeof internalUrl !== 'string') {\n throw new Error(`Runtime endpoint \"${key}\" must expose string publicUrl/internalUrl`);\n }\n\n record[key] = { publicUrl, internalUrl };\n }\n\n return record;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"roles.custom.shared.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/security/authorizations/roles.custom.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAwB,MAAM,uBAAuB,CAAC;AAEjF,eAAO,MAAM,0BAA0B,EAAE,kBAExC,CAAC"}
1
+ {"version":3,"file":"roles.custom.shared.definitions.d.ts","sourceRoot":"","sources":["../../../../src/security/authorizations/roles.custom.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAwB,MAAM,uBAAuB,CAAC;AAEjF,eAAO,MAAM,0BAA0B,EAAE,kBAExC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"roles.custom.shared.definitions.js","sourceRoot":"","sources":["../../../../../src/security/authorizations/roles.custom.shared.definitions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAuB,EAE7D,CAAC","sourcesContent":["import { RolesConfiguration, ResourcePrimaryScope } from \"@wildo-ai/saas-models\";\n\nexport const CUSTOM_ROLES_CONFIGURATION: RolesConfiguration = {\n \n};\n\n"]}
1
+ {"version":3,"file":"roles.custom.shared.definitions.js","sourceRoot":"","sources":["../../../../src/security/authorizations/roles.custom.shared.definitions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAuB,EAE7D,CAAC","sourcesContent":["import { RolesConfiguration, ResourcePrimaryScope } from \"@wildo-ai/saas-models\";\n\nexport const CUSTOM_ROLES_CONFIGURATION: RolesConfiguration = {\n \n};\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-executions.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAGrB,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AAY/B,KAAK,wCAAwC,GACzC,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,MAAM,CAAC;AA2CjC;;;;GAIG;AACH,eAAO,MAAM,iFAAiF,GAC3F,wBAAwB,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om.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAGrB,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AAY/B,KAAK,wCAAwC,GACzC,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,MAAM,CAAC;AA2CjC;;;;GAIG;AACH,eAAO,MAAM,iFAAiF,GAC3F,wBAAwB,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwB7C,CAAC;AAEL,eAAO,MAAM,gFAAgF,GAC1F,wBAAwB,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwB7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-executions.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAE5B,0CAA0C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,8CAA8C,EAC9C,6CAA6C,GAC9C,MAAM,sDAAsD,CAAC;AAE9D,MAAM,oCAAoC,GAAG,SAAS,CAAC;AAQvD,SAAS,kCAAkC;IACzC,OAAO;QACL,WAAW,EAAE,4BAA4B,CAAC,eAAwB;QAClE,SAAS,EAAE,IAAa;QACxB,KAAK,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;QAC7C,SAAS,EAAE,0BAA0B,CAAC,GAAY;KACnD,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAS,6BAA6B;IACpC,OAAO;QACL,WAAW,EAAE,4BAA4B,CAAC,QAAiB;QAC3D,SAAS,EAAE,IAAa;QACxB,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;QAClC,SAAS,EAAE,0BAA0B,CAAC,GAAY;KACnD,CAAC;AACJ,CAAC;A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C1B,qBAAqB,CAAC,IAAI;QAC1B,qBAAqB,CAAC,MAAM;KAC7B;IACD,eAAe,EAAE,oCAAoC;IACrD,uBAAuB,EAAE;QACvB,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,kCAAkC,EAAE,CAAC,EAAE;QACpF,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,6BAA6B,EAAE,CAAC,EAAE;QAC7E,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,6BAA6B,EAAE,CAAC,EAAE;QAC7E,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,kCAAkC,EAAE,CAAC,EAAE;KACrF;CACF,CAAC,CAAC","sourcesContent":["import {\n CORE_APP_ROLES,\n CORE_ORG_ROLES,\n CoreResourceOperation,\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n ResourceRelationship,\n createResourceConfiguration_Initialization,\n} from '@wildo-ai/saas-models';\nimport {\n CustomShared_ResourceFieldIdentifier,\n CustomShared_ResourceType,\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport {\n Wildo_Application_ActorSystem_Execution_Schema,\n Wildo_Application_FlowSystem_Execution_Schema,\n} from './wildo-application-executions.custom.shared.schemas';\n\nconst WildoApplicationExecution_Operations = undefined;\n\ntype WildoApplicationExecution_CoreOperations =\n | CoreResourceOperation.CREATE\n | CoreResourceOperation.READ\n | CoreResourceOperation.LIST\n | CoreResourceOperation.UPDATE;\n\nfunction createRepositoryOnlyDefaultVariant() {\n return {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/**\n * READ/LIST are API-callable since 2026-09-01; CREATE/UPDATE stay repository-only.\n *\n * The original decision (\"no public resource-controller surface\") was made when the ONLY consumer\n * was the companion's own repository-direct persistence. The application-creation workbench now\n * consumes these rows AS RESOURCES (plan `workbench-creation-board-resources.md`, Phase 1): the\n * creation board renders them through the engine's embedded resource surfaces instead of bespoke\n * companion routes. That requires exactly the read half of an API surface, so exactly the read half\n * is opened:\n *\n * - READ/LIST: `API_CALL`, gated `ORG_MEMBER` — the SAME read-posture as the parent\n * `wildoApplications` rows one resource over, resolved through organization membership. The first\n * draft reused the repository-only variants' `APP_ADMIN_SUPER_ADMIN`, and the measurement retired\n * it: a companion operator's app-tier roles are plain `APP_USER` (the seeded developer holds\n * `ORG_ADMIN` via MEMBERSHIP, not app-tier super-admin), so the admin gate 403'd the exact\n * operator this surface serves. Consistent with the audit-retention decision (2026-07-29): rows\n * kept as the organization's own audit material are rows its members may read.\n * - CREATE/UPDATE: unchanged `REPOSITORY_ONLY`. The companion remains the only writer, and the\n * generated write API the original decision refused stays refused.\n *\n * This config is shared with the platform tier (apps-manager registers the same map), so the read\n * routes appear there too, behind the same ORG_MEMBER gate — a deliberate consequence, not a leak.\n */\nfunction createOrgMemberReadApiVariant() {\n return {\n variantType: ResourceOperationVariantType.API_CALL as const,\n isDefault: true as const,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/**\n * These records are control-plane persistence written ONLY by the local companion. Writes stay\n * repository-first with no generated API; the READ HALF is an ORG_MEMBER-gated API surface since\n * 2026-09-01 — see `createOrgMemberReadApiVariant` above for the decision.\n */\nexport const wildoApplicationActorSystemExecutions_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplicationExecution_Operations,\n WildoApplicationExecution_CoreOperations,\n typeof Wildo_Application_ActorSystem_Execution_Schema\n >({\n mainSchema: Wildo_Application_ActorSystem_Execution_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS,\n resourceFieldIdentifier:\n CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n coreOperations: [\n CoreResourceOperation.CREATE,\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.UPDATE,\n ],\n customOperation: WildoApplicationExecution_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n [CoreResourceOperation.READ]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.UPDATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n },\n });\n\nexport const wildoApplicationFlowSystemExecutions_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplicationExecution_Operations,\n WildoApplicationExecution_CoreOperations,\n typeof Wildo_Application_FlowSystem_Execution_Schema\n >({\n mainSchema: Wildo_Application_FlowSystem_Execution_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS,\n resourceFieldIdentifier:\n CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n coreOperations: [\n CoreResourceOperation.CREATE,\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.UPDATE,\n ],\n customOperation: WildoApplicationExecution_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n [CoreResourceOperation.READ]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.UPDATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n },\n });\n"]}
1
+ {"version":3,"file":"wildo-application-executions.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../src/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAE5B,0CAA0C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,8CAA8C,EAC9C,6CAA6C,GAC9C,MAAM,sDAAsD,CAAC;AAE9D,MAAM,oCAAoC,GAAG,SAAS,CAAC;AAQvD,SAAS,kCAAkC;IACzC,OAAO;QACL,WAAW,EAAE,4BAA4B,CAAC,eAAwB;QAClE,SAAS,EAAE,IAAa;QACxB,KAAK,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;QAC7C,SAAS,EAAE,0BAA0B,CAAC,GAAY;KACnD,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAS,6BAA6B;IACpC,OAAO;QACL,WAAW,EAAE,4BAA4B,CAAC,QAAiB;QAC3D,SAAS,EAAE,IAAa;QACxB,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;QAClC,SAAS,EAAE,0BAA0B,CAAC,GAAY;KACnD,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,iFAAiF,GAC5F,CAAC,sBAA8C,EAAE,EAAE,CAAC,0CAA0C,CAI5F;IACA,UAAU,EAAE,8CAA8C;IAC1D,kBAAkB,EAAE,yBAAyB,CAAC,yCAAyC;IACvF,uBAAuB,EACrB,oCAAoC,CAAC,yBAAyB,CAAC,yCAAyC,CAAC;IAC3G,qBAAqB,EAAE,sBAAsB;IAC7C,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE;QACd,qBAAqB,CA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,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,6BAA6B,EAAE,CAAC,EAAE;QAC7E,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,kCAAkC,EAAE,CAAC,EAAE;KACrF;CACF,CAAC,CAAC","sourcesContent":["import {\n CORE_APP_ROLES,\n CORE_ORG_ROLES,\n CoreResourceOperation,\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n ResourceRelationship,\n createResourceConfiguration_Initialization,\n} from '@wildo-ai/saas-models';\nimport {\n CustomShared_ResourceFieldIdentifier,\n CustomShared_ResourceType,\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport {\n Wildo_Application_ActorSystem_Execution_Schema,\n Wildo_Application_FlowSystem_Execution_Schema,\n} from './wildo-application-executions.custom.shared.schemas';\n\nconst WildoApplicationExecution_Operations = undefined;\n\ntype WildoApplicationExecution_CoreOperations =\n | CoreResourceOperation.CREATE\n | CoreResourceOperation.READ\n | CoreResourceOperation.LIST\n | CoreResourceOperation.UPDATE;\n\nfunction createRepositoryOnlyDefaultVariant() {\n return {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/**\n * READ/LIST are API-callable since 2026-09-01; CREATE/UPDATE stay repository-only.\n *\n * The original decision (\"no public resource-controller surface\") was made when the ONLY consumer\n * was the companion's own repository-direct persistence. The application-creation workbench now\n * consumes these rows AS RESOURCES (plan `workbench-creation-board-resources.md`, Phase 1): the\n * creation board renders them through the engine's embedded resource surfaces instead of bespoke\n * companion routes. That requires exactly the read half of an API surface, so exactly the read half\n * is opened:\n *\n * - READ/LIST: `API_CALL`, gated `ORG_MEMBER` — the SAME read-posture as the parent\n * `wildoApplications` rows one resource over, resolved through organization membership. The first\n * draft reused the repository-only variants' `APP_ADMIN_SUPER_ADMIN`, and the measurement retired\n * it: a companion operator's app-tier roles are plain `APP_USER` (the seeded developer holds\n * `ORG_ADMIN` via MEMBERSHIP, not app-tier super-admin), so the admin gate 403'd the exact\n * operator this surface serves. Consistent with the audit-retention decision (2026-07-29): rows\n * kept as the organization's own audit material are rows its members may read.\n * - CREATE/UPDATE: unchanged `REPOSITORY_ONLY`. The companion remains the only writer, and the\n * generated write API the original decision refused stays refused.\n *\n * This config is shared with the platform tier (apps-manager registers the same map), so the read\n * routes appear there too, behind the same ORG_MEMBER gate — a deliberate consequence, not a leak.\n */\nfunction createOrgMemberReadApiVariant() {\n return {\n variantType: ResourceOperationVariantType.API_CALL as const,\n isDefault: true as const,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/**\n * These records are control-plane persistence written ONLY by the local companion. Writes stay\n * repository-first with no generated API; the READ HALF is an ORG_MEMBER-gated API surface since\n * 2026-09-01 — see `createOrgMemberReadApiVariant` above for the decision.\n */\nexport const wildoApplicationActorSystemExecutions_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplicationExecution_Operations,\n WildoApplicationExecution_CoreOperations,\n typeof Wildo_Application_ActorSystem_Execution_Schema\n >({\n mainSchema: Wildo_Application_ActorSystem_Execution_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS,\n resourceFieldIdentifier:\n CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n coreOperations: [\n CoreResourceOperation.CREATE,\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.UPDATE,\n ],\n customOperation: WildoApplicationExecution_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n [CoreResourceOperation.READ]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.UPDATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n },\n });\n\nexport const wildoApplicationFlowSystemExecutions_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplicationExecution_Operations,\n WildoApplicationExecution_CoreOperations,\n typeof Wildo_Application_FlowSystem_Execution_Schema\n >({\n mainSchema: Wildo_Application_FlowSystem_Execution_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS,\n resourceFieldIdentifier:\n CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION_FLOW_SYSTEM_EXECUTIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n coreOperations: [\n CoreResourceOperation.CREATE,\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.UPDATE,\n ],\n customOperation: WildoApplicationExecution_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n [CoreResourceOperation.READ]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.UPDATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n },\n });\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-executions.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-application-executions/wildo-application-executions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGL,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAK/B;;;GAGG;AACH,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;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,MAAM,MAAM,sCAAsC,GAChD,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-application-executions.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-application-executions/wildo-application-executions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGL,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAK/B;;;GAGG;AACH,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzD,CAAC;AACH,MAAM,MAAM,uCAAuC,GACjD,CAAC,CAAC,KAAK,CAAC,OAAO,8CAA8C,CAAC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxD,CAAC;AACH,MAAM,MAAM,sCAAsC,GAChD,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-executions.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-application-executions/wildo-application-executions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB;;;GAGG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC/F,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE;IACtD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAC5F,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAChG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;IAC3D,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;CACnG,CAAC,CAAC;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC9F,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE;IACtD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAC5F,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAChG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;IAC3D,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;CACnG,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n ActorSystem_ExecutionSchema,\n FlowSystem_Execution_Schema,\n FlowsActors_Status,\n} from '@wildo-ai/saas-models';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\ninitZodDecorators(z);\n\n/**\n * Platform-owned actor executions are persisted in the apps-manager database but\n * stay explicitly attached to the owning Wildo application row.\n */\nexport const Wildo_Application_ActorSystem_Execution_Schema = ActorSystem_ExecutionSchema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n systemRef: z.string().min(1).isDBIndexed().isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n});\nexport type Wildo_Application_ActorSystem_Execution =\n z.infer<typeof Wildo_Application_ActorSystem_Execution_Schema>;\n\n/**\n * Flow executions follow the same platform ownership chain as actor executions:\n * org-scoped in the apps-manager DB and child-linked to a single Wildo app.\n */\nexport const Wildo_Application_FlowSystem_Execution_Schema = FlowSystem_Execution_Schema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n systemRef: z.string().min(1).isDBIndexed().isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n});\nexport type Wildo_Application_FlowSystem_Execution =\n z.infer<typeof Wildo_Application_FlowSystem_Execution_Schema>;\n"]}
1
+ {"version":3,"file":"wildo-application-executions.custom.shared.schemas.js","sourceRoot":"","sources":["../../../src/wildo-application-executions/wildo-application-executions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB;;;GAGG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC/F,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC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 'zod';\nimport {\n ActorSystem_ExecutionSchema,\n FlowSystem_Execution_Schema,\n FlowsActors_Status,\n} from '@wildo-ai/saas-models';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\ninitZodDecorators(z);\n\n/**\n * Platform-owned actor executions are persisted in the apps-manager database but\n * stay explicitly attached to the owning Wildo application row.\n */\nexport const Wildo_Application_ActorSystem_Execution_Schema = ActorSystem_ExecutionSchema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n systemRef: z.string().min(1).isDBIndexed().isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n});\nexport type Wildo_Application_ActorSystem_Execution =\n z.infer<typeof Wildo_Application_ActorSystem_Execution_Schema>;\n\n/**\n * Flow executions follow the same platform ownership chain as actor executions:\n * org-scoped in the apps-manager DB and child-linked to a single Wildo app.\n */\nexport const Wildo_Application_FlowSystem_Execution_Schema = FlowSystem_Execution_Schema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n systemRef: z.string().min(1).isDBIndexed().isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n});\nexport type Wildo_Application_FlowSystem_Execution =\n z.infer<typeof Wildo_Application_FlowSystem_Execution_Schema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-tasks.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAGrB,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AAS/B,KAAK,yCAAyC,GAC1C,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,MAAM,CAAC;AA2CjC;;;;GAIG;AACH,eAAO,MAAM,sEAAsE,GAChF,wBAAwB,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwB7C,CAAC"}
1
+ {"version":3,"file":"wildo-application-tasks.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAGrB,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AAS/B,KAAK,yCAAyC,GAC1C,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,MAAM,CAAC;AA2CjC;;;;GAIG;AACH,eAAO,MAAM,sEAAsE,GAChF,wBAAwB,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwB7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-tasks.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAE5B,0CAA0C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AAEtG,MAAM,qCAAqC,GAAG,SAAS,CAAC;AAQxD,SAAS,kCAAkC;IACzC,OAAO;QACL,WAAW,EAAE,4BAA4B,CAAC,eAAwB;QAClE,SAAS,EAAE,IAAa;QACxB,KAAK,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;QAC7C,SAAS,EAAE,0BAA0B,CAAC,GAAY;KACnD,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAS,6BAA6B;IACpC,OAAO;QACL,WAAW,EAAE,4BAA4B,CAAC,QAAiB;QAC3D,SAAS,EAAE,IAAa;QACxB,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;QAClC,SAAS,EAAE,0BAA0B,CAAC,GAAY;KACnD,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,sEAAsE,GACjF,CAAC,sBAA8C,EAAE,EAAE,CAAC,0CAA0C,CAI5F;IACA,UAAU,EAAE,mCAAmC;IAC/C,kBAAkB,EAAE,yBAAyB,CAAC,6BAA6B;IAC3E,uBAAuB,EACrB,oCAAoC,CAAC,yBAAyB,CAAC,6BAA6B,CAAC;IAC/F,qBAAqB,EAAE,sBAAsB;IAC7C,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE;QACd,qBAAqB,CAAC,MAAM;QAC5B,qBAAqB,CAAC,IAAI;QAC1B,qBAAqB,CAAC,IAAI;QAC1B,qBAAqB,CAAC,MAAM;KAC7B;IACD,eAAe,EAAE,qCAAqC;IACtD,uBAAuB,EAAE;QACvB,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,kCAAkC,EAAE,CAAC,EAAE;QACpF,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,6BAA6B,EAAE,CAAC,EAAE;QAC7E,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,6BAA6B,EAAE,CAAC,EAAE;QAC7E,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,kCAAkC,EAAE,CAAC,EAAE;KACrF;CACF,CAAC,CAAC","sourcesContent":["import {\n CORE_APP_ROLES,\n CORE_ORG_ROLES,\n CoreResourceOperation,\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n ResourceRelationship,\n createResourceConfiguration_Initialization,\n} from '@wildo-ai/saas-models';\nimport {\n CustomShared_ResourceFieldIdentifier,\n CustomShared_ResourceType,\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport { Wildo_Application_Actor_Task_Schema } from './wildo-application-tasks.custom.shared.schemas';\n\nconst WildoApplicationActorTasks_Operations = undefined;\n\ntype WildoApplicationActorTasks_CoreOperations =\n | CoreResourceOperation.CREATE\n | CoreResourceOperation.READ\n | CoreResourceOperation.LIST\n | CoreResourceOperation.UPDATE;\n\nfunction createRepositoryOnlyDefaultVariant() {\n return {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/**\n * READ/LIST are API-callable since 2026-09-01; CREATE/UPDATE stay repository-only.\n *\n * The original decision (\"no public resource-controller surface\") was made when the ONLY consumer\n * was the companion's own repository-direct persistence. The application-creation workbench now\n * consumes these rows AS RESOURCES (plan `workbench-creation-board-resources.md`, Phase 1): the\n * creation board renders them through the engine's embedded resource surfaces instead of bespoke\n * companion routes. That requires exactly the read half of an API surface, so exactly the read half\n * is opened:\n *\n * - READ/LIST: `API_CALL`, gated `ORG_MEMBER` — the SAME read-posture as the parent\n * `wildoApplications` rows one resource over, resolved through organization membership. The first\n * draft reused the repository-only variants' `APP_ADMIN_SUPER_ADMIN`, and the measurement retired\n * it: a companion operator's app-tier roles are plain `APP_USER` (the seeded developer holds\n * `ORG_ADMIN` via MEMBERSHIP, not app-tier super-admin), so the admin gate 403'd the exact\n * operator this surface serves. Consistent with the audit-retention decision (2026-07-29): rows\n * kept as the organization's own audit material are rows its members may read.\n * - CREATE/UPDATE: unchanged `REPOSITORY_ONLY`. The companion remains the only writer, and the\n * generated write API the original decision refused stays refused.\n *\n * This config is shared with the platform tier (apps-manager registers the same map), so the read\n * routes appear there too, behind the same ORG_MEMBER gate — a deliberate consequence, not a leak.\n */\nfunction createOrgMemberReadApiVariant() {\n return {\n variantType: ResourceOperationVariantType.API_CALL as const,\n isDefault: true as const,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/**\n * Actor tasks are mutable control-plane records written ONLY by the local companion. Writes stay\n * repository-only, keeping the persistence contract truthful; the READ HALF is an ORG_MEMBER-gated API\n * surface since 2026-09-01 — see `createOrgMemberReadApiVariant` above for the decision.\n */\nexport const wildoApplicationActorTasks_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplicationActorTasks_Operations,\n WildoApplicationActorTasks_CoreOperations,\n typeof Wildo_Application_Actor_Task_Schema\n >({\n mainSchema: Wildo_Application_Actor_Task_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n resourceFieldIdentifier:\n CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n coreOperations: [\n CoreResourceOperation.CREATE,\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.UPDATE,\n ],\n customOperation: WildoApplicationActorTasks_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n [CoreResourceOperation.READ]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.UPDATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n },\n });\n"]}
1
+ {"version":3,"file":"wildo-application-tasks.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAE5B,0CAA0C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AAEtG,MAAM,qCAAqC,GAAG,SAAS,CAAC;AAQxD,SAAS,kCAAkC;IACzC,OAAO;QACL,WAAW,EAAE,4BAA4B,CAAC,eAAwB;QAClE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AE;KACrF;CACF,CAAC,CAAC","sourcesContent":["import {\n CORE_APP_ROLES,\n CORE_ORG_ROLES,\n CoreResourceOperation,\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n ResourceRelationship,\n createResourceConfiguration_Initialization,\n} from '@wildo-ai/saas-models';\nimport {\n CustomShared_ResourceFieldIdentifier,\n CustomShared_ResourceType,\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport { Wildo_Application_Actor_Task_Schema } from './wildo-application-tasks.custom.shared.schemas';\n\nconst WildoApplicationActorTasks_Operations = undefined;\n\ntype WildoApplicationActorTasks_CoreOperations =\n | CoreResourceOperation.CREATE\n | CoreResourceOperation.READ\n | CoreResourceOperation.LIST\n | CoreResourceOperation.UPDATE;\n\nfunction createRepositoryOnlyDefaultVariant() {\n return {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/**\n * READ/LIST are API-callable since 2026-09-01; CREATE/UPDATE stay repository-only.\n *\n * The original decision (\"no public resource-controller surface\") was made when the ONLY consumer\n * was the companion's own repository-direct persistence. The application-creation workbench now\n * consumes these rows AS RESOURCES (plan `workbench-creation-board-resources.md`, Phase 1): the\n * creation board renders them through the engine's embedded resource surfaces instead of bespoke\n * companion routes. That requires exactly the read half of an API surface, so exactly the read half\n * is opened:\n *\n * - READ/LIST: `API_CALL`, gated `ORG_MEMBER` — the SAME read-posture as the parent\n * `wildoApplications` rows one resource over, resolved through organization membership. The first\n * draft reused the repository-only variants' `APP_ADMIN_SUPER_ADMIN`, and the measurement retired\n * it: a companion operator's app-tier roles are plain `APP_USER` (the seeded developer holds\n * `ORG_ADMIN` via MEMBERSHIP, not app-tier super-admin), so the admin gate 403'd the exact\n * operator this surface serves. Consistent with the audit-retention decision (2026-07-29): rows\n * kept as the organization's own audit material are rows its members may read.\n * - CREATE/UPDATE: unchanged `REPOSITORY_ONLY`. The companion remains the only writer, and the\n * generated write API the original decision refused stays refused.\n *\n * This config is shared with the platform tier (apps-manager registers the same map), so the read\n * routes appear there too, behind the same ORG_MEMBER gate — a deliberate consequence, not a leak.\n */\nfunction createOrgMemberReadApiVariant() {\n return {\n variantType: ResourceOperationVariantType.API_CALL as const,\n isDefault: true as const,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/**\n * Actor tasks are mutable control-plane records written ONLY by the local companion. Writes stay\n * repository-only, keeping the persistence contract truthful; the READ HALF is an ORG_MEMBER-gated API\n * surface since 2026-09-01 — see `createOrgMemberReadApiVariant` above for the decision.\n */\nexport const wildoApplicationActorTasks_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplicationActorTasks_Operations,\n WildoApplicationActorTasks_CoreOperations,\n typeof Wildo_Application_Actor_Task_Schema\n >({\n mainSchema: Wildo_Application_Actor_Task_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n resourceFieldIdentifier:\n CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n coreOperations: [\n CoreResourceOperation.CREATE,\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.UPDATE,\n ],\n customOperation: WildoApplicationActorTasks_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n [CoreResourceOperation.READ]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createOrgMemberReadApiVariant()] },\n [CoreResourceOperation.UPDATE]: { variants: [createRepositoryOnlyDefaultVariant()] },\n },\n });\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-tasks.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAK/B;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqC9C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-application-tasks.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAK/B;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqC9C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}