@wildo-ai/platform-config-lib 1.1.4 → 1.1.6

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 (230) hide show
  1. package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
  2. package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
  3. package/dist/esm/bootstrap/bootstrap.contracts.d.ts +24 -1
  4. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  5. package/dist/esm/bootstrap/bootstrap.contracts.js +25 -0
  6. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  7. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +117 -1
  8. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  9. package/dist/esm/bootstrap/bootstrap.schemas.js +63 -4
  10. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  11. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +24 -1
  12. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  13. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +24 -0
  14. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  15. package/dist/esm/bootstrap/platform-store-preconnect.d.ts +37 -0
  16. package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -0
  17. package/dist/esm/bootstrap/platform-store-preconnect.js +43 -0
  18. package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -0
  19. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  20. package/dist/esm/bootstrap/runtime-backing-service-access.js +8 -4
  21. package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
  22. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
  23. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
  24. package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
  25. package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
  26. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
  27. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts +36 -3
  28. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
  29. package/dist/esm/bootstrap/runtime-topology.contracts.js +36 -13
  30. package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
  31. package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts +29 -0
  32. package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
  33. package/dist/esm/bootstrap/wildo-owner-organization.contracts.js +39 -0
  34. package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
  35. package/dist/esm/config-authoring.entry.d.ts.map +1 -1
  36. package/dist/esm/config-authoring.entry.js.map +1 -1
  37. package/dist/esm/index.d.ts +2 -0
  38. package/dist/esm/index.d.ts.map +1 -1
  39. package/dist/esm/index.js +2 -0
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/lockfile/build-parallelism.d.ts +40 -0
  42. package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -0
  43. package/dist/esm/lockfile/build-parallelism.js +64 -0
  44. package/dist/esm/lockfile/build-parallelism.js.map +1 -0
  45. package/dist/esm/lockfile/lockfile-io.d.ts +7 -1
  46. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  47. package/dist/esm/lockfile/lockfile-io.js +17 -3
  48. package/dist/esm/lockfile/lockfile-io.js.map +1 -1
  49. package/dist/esm/lockfile/materialize-infra-section.d.ts +28 -7
  50. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  51. package/dist/esm/lockfile/materialize-infra-section.js +24 -11
  52. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  53. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +455 -6
  54. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  55. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +27 -0
  56. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  57. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts +13 -0
  58. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -0
  59. package/dist/esm/project-config/application-public-pricing-catalog.loader.js +56 -0
  60. package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -0
  61. package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
  62. package/dist/esm/project-config/define-infra-env-config.d.ts +886 -29
  63. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  64. package/dist/esm/project-config/define-infra-env-config.js +395 -16
  65. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  66. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  67. package/dist/esm/project-config/define-minion-config.js +1 -2
  68. package/dist/esm/project-config/define-minion-config.js.map +1 -1
  69. package/dist/esm/project-config/define-saas-config.d.ts +142 -25
  70. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  71. package/dist/esm/project-config/define-saas-config.js +229 -26
  72. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  73. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  74. package/dist/esm/project-config/hosted-infra-env-config.d.ts +59 -0
  75. package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -0
  76. package/dist/esm/project-config/hosted-infra-env-config.js +187 -0
  77. package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -0
  78. package/dist/esm/project-config/index.d.ts +6 -0
  79. package/dist/esm/project-config/index.d.ts.map +1 -1
  80. package/dist/esm/project-config/index.js +6 -0
  81. package/dist/esm/project-config/index.js.map +1 -1
  82. package/dist/esm/project-config/loader.d.ts +35 -0
  83. package/dist/esm/project-config/loader.d.ts.map +1 -1
  84. package/dist/esm/project-config/loader.js +148 -8
  85. package/dist/esm/project-config/loader.js.map +1 -1
  86. package/dist/esm/project-config/npm-version-range.d.ts +23 -0
  87. package/dist/esm/project-config/npm-version-range.d.ts.map +1 -0
  88. package/dist/esm/project-config/npm-version-range.js +175 -0
  89. package/dist/esm/project-config/npm-version-range.js.map +1 -0
  90. package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
  91. package/dist/esm/project-config/provider-companion-discovery.d.ts +288 -30
  92. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  93. package/dist/esm/project-config/provider-companion-discovery.js +795 -46
  94. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  95. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +192 -20
  96. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  97. package/dist/esm/project-config/provider-runtime-artifacts.js +381 -42
  98. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  99. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
  100. package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
  101. package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
  102. package/dist/esm/project-config/shared/auth.schemas.d.ts +14 -35
  103. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  104. package/dist/esm/project-config/shared/auth.schemas.js +14 -35
  105. package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
  106. package/dist/esm/project-config/shared/backing-service-servability.d.ts +157 -0
  107. package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -0
  108. package/dist/esm/project-config/shared/backing-service-servability.js +256 -0
  109. package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -0
  110. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +66 -66
  111. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  112. package/dist/esm/project-config/shared/backing-services.schemas.js +75 -67
  113. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  114. package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -1
  115. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
  116. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
  117. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  118. package/dist/esm/project-config/shared/csp-emit.js +41 -2
  119. package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
  120. package/dist/esm/project-config/shared/csp.schemas.d.ts +11 -12
  121. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  122. package/dist/esm/project-config/shared/csp.schemas.js +11 -12
  123. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  124. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  125. package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
  126. package/dist/esm/project-config/shared/environment.schemas.d.ts +152 -12
  127. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  128. package/dist/esm/project-config/shared/environment.schemas.js +186 -9
  129. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  130. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +185 -10
  131. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  132. package/dist/esm/project-config/shared/infra-providers.schemas.js +40 -3
  133. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  134. package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
  135. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  136. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  137. package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
  138. package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
  139. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
  140. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
  141. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +77 -47
  142. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  143. package/dist/esm/project-config/shared/minion-resource-access.validation.js +114 -52
  144. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  145. package/dist/esm/project-config/shared/platform-services.schemas.d.ts +50 -0
  146. package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
  147. package/dist/esm/project-config/shared/platform-services.schemas.js +57 -0
  148. package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
  149. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +35 -0
  150. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -0
  151. package/dist/esm/project-config/shared/platform-storage.schemas.js +37 -0
  152. package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -0
  153. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -1
  154. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  155. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +81 -0
  156. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -0
  157. package/dist/esm/project-config/shared/systems-of-record-env.schemas.js +74 -0
  158. package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -0
  159. package/dist/esm/project-config/static-asset-import-noop.d.ts +26 -0
  160. package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -0
  161. package/dist/esm/project-config/static-asset-import-noop.js +49 -0
  162. package/dist/esm/project-config/static-asset-import-noop.js.map +1 -0
  163. package/dist/esm/registry/artifact-domain.schemas.d.ts +1 -1
  164. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
  165. package/dist/esm/registry/companion-api.schemas.d.ts +0 -176
  166. package/dist/esm/registry/companion-api.schemas.d.ts.map +0 -1
  167. package/dist/esm/registry/companion-api.schemas.js.map +0 -1
  168. package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
  169. package/dist/esm/registry/index.d.ts +3 -1
  170. package/dist/esm/registry/index.d.ts.map +1 -1
  171. package/dist/esm/registry/index.js +3 -1
  172. package/dist/esm/registry/index.js.map +1 -1
  173. package/dist/esm/registry/local-checkout-source.d.ts +31 -0
  174. package/dist/esm/registry/local-checkout-source.d.ts.map +1 -0
  175. package/dist/esm/registry/local-checkout-source.js +45 -0
  176. package/dist/esm/registry/local-checkout-source.js.map +1 -0
  177. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +174 -14
  178. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  179. package/dist/esm/registry/lockfile-modules-section.schemas.js +120 -11
  180. package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
  181. package/dist/esm/registry/module-artifact.schemas.d.ts +79 -0
  182. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  183. package/dist/esm/registry/module-artifact.schemas.js +36 -0
  184. package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
  185. package/dist/esm/registry/module-manifest.schemas.d.ts +403 -23
  186. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  187. package/dist/esm/registry/module-manifest.schemas.js +502 -60
  188. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  189. package/dist/esm/registry/module-search.schemas.d.ts +80 -0
  190. package/dist/esm/registry/module-search.schemas.d.ts.map +1 -0
  191. package/dist/esm/registry/module-search.schemas.js +112 -0
  192. package/dist/esm/registry/module-search.schemas.js.map +1 -0
  193. package/dist/esm/registry/registry-config.schemas.d.ts +16 -0
  194. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  195. package/dist/esm/registry/registry-config.schemas.js +8 -0
  196. package/dist/esm/registry/registry-config.schemas.js.map +1 -1
  197. package/dist/esm/registry/registry-errors.d.ts +126 -2
  198. package/dist/esm/registry/registry-errors.d.ts.map +1 -1
  199. package/dist/esm/registry/registry-errors.js +183 -14
  200. package/dist/esm/registry/registry-errors.js.map +1 -1
  201. package/dist/esm/registry/registry-keys.schemas.d.ts +80 -0
  202. package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -0
  203. package/dist/esm/registry/registry-keys.schemas.js +68 -0
  204. package/dist/esm/registry/registry-keys.schemas.js.map +1 -0
  205. package/dist/esm/registry/registry-section-schemas.constants.d.ts +25 -3
  206. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  207. package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
  208. package/dist/esm/release/framework-release.constants.js.map +1 -1
  209. package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
  210. package/dist/esm/schemas/framework-secrets.schemas.d.ts +12 -1
  211. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  212. package/dist/esm/schemas/framework-secrets.schemas.js +14 -1
  213. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  214. package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
  215. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
  216. package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
  217. package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
  218. package/dist/esm/workspace-scope/index.d.ts.map +1 -1
  219. package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
  220. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +17 -14
  221. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
  222. package/dist/esm/workspace-scope/workspace-homes.schemas.js +8 -7
  223. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
  224. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts +15 -6
  225. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
  226. package/dist/esm/workspace-scope/workspace-scope.schemas.js +23 -9
  227. package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
  228. package/package.json +7 -7
  229. package/dist/esm/registry/companion-api.schemas.js +0 -165
  230. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -0,0 +1,49 @@
1
+ import { register } from 'node:module';
2
+ /** The static-asset extensions a TypeScript module graph may import and Node cannot execute. */
3
+ export const STATIC_ASSET_IMPORT_PATTERN_SOURCE = '\\.(css|scss|less|sass|svg|png|jpe?g|gif|webp|ico|avif|woff2?|eot|ttf|otf)(\\?.*)?$';
4
+ let staticAssetImportNoopRegistered = false;
5
+ /**
6
+ * Make static-asset imports (`.css`, images, fonts) resolve to empty modules for the rest of the
7
+ * process, so a Node-side loader can evaluate an application-authored TypeScript graph that
8
+ * reaches browser code.
9
+ *
10
+ * Why this is needed at all: an application's specifications and website sources import enums
11
+ * from `@wildo-ai/saas-specifications`, whose root transitively reaches frontend component
12
+ * modules that import their stylesheets. Node's ESM loader cannot execute a `.css`, so without
13
+ * this hook an otherwise valid module fails to load solely because a library imports a stylesheet.
14
+ * Static assets carry no meaning for a Node-side reader, so they load as `export default ""`.
15
+ *
16
+ * Process-wide, idempotent, and inert for any graph that imports no static asset. It never touches
17
+ * JavaScript or TypeScript resolution.
18
+ *
19
+ * This is the one copy for in-process callers. Four hand-copied versions existed until 2026-09-25
20
+ * — two in the dev companion and two in the CLI — each with its own regex; the next asset type
21
+ * added to one would have loaded in one tool and failed in another. One copy remains by necessity:
22
+ * the dev companion's introspection subprocess registers a hooks MODULE by path
23
+ * (`asset-noop-hooks.ts`), and loader hooks run on their own thread before anything else loads, so
24
+ * that module must stay dependency-free. `static-asset-pattern-parity.test.ts` in the companion
25
+ * holds its pattern equal to this one.
26
+ */
27
+ export function registerStaticAssetImportNoop() {
28
+ if (staticAssetImportNoopRegistered) {
29
+ return;
30
+ }
31
+ const hookSource = `
32
+ const ASSET_RE = /${STATIC_ASSET_IMPORT_PATTERN_SOURCE}/;
33
+ export function resolve(specifier, context, nextResolve) {
34
+ if (ASSET_RE.test(specifier)) {
35
+ return { shortCircuit: true, url: new URL(specifier, context.parentURL ?? 'file:///').href };
36
+ }
37
+ return nextResolve(specifier, context);
38
+ }
39
+ export function load(url, context, nextLoad) {
40
+ if (ASSET_RE.test(url)) {
41
+ return { shortCircuit: true, format: 'module', source: 'export default "";\\n' };
42
+ }
43
+ return nextLoad(url, context);
44
+ }
45
+ `;
46
+ register(`data:text/javascript,${encodeURIComponent(hookSource)}`);
47
+ staticAssetImportNoopRegistered = true;
48
+ }
49
+ //# sourceMappingURL=static-asset-import-noop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-asset-import-noop.js","sourceRoot":"","sources":["../../../../src/project-config/static-asset-import-noop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,gGAAgG;AAChG,MAAM,CAAC,MAAM,kCAAkC,GAAG,qFAAqF,CAAC;AAExI,IAAI,+BAA+B,GAAG,KAAK,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,6BAA6B;IAC3C,IAAI,+BAA+B,EAAE,CAAC;QACpC,OAAO;IACT,CAAC;IACD,MAAM,UAAU,GAAG;wBACG,kCAAkC;;;;;;;;;;;;;GAavD,CAAC;IACF,QAAQ,CAAC,wBAAwB,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IACnE,+BAA+B,GAAG,IAAI,CAAC;AACzC,CAAC","sourcesContent":["import { register } from 'node:module';\n\n/** The static-asset extensions a TypeScript module graph may import and Node cannot execute. */\nexport const STATIC_ASSET_IMPORT_PATTERN_SOURCE = '\\\\.(css|scss|less|sass|svg|png|jpe?g|gif|webp|ico|avif|woff2?|eot|ttf|otf)(\\\\?.*)?$';\n\nlet staticAssetImportNoopRegistered = false;\n\n/**\n * Make static-asset imports (`.css`, images, fonts) resolve to empty modules for the rest of the\n * process, so a Node-side loader can evaluate an application-authored TypeScript graph that\n * reaches browser code.\n *\n * Why this is needed at all: an application's specifications and website sources import enums\n * from `@wildo-ai/saas-specifications`, whose root transitively reaches frontend component\n * modules that import their stylesheets. Node's ESM loader cannot execute a `.css`, so without\n * this hook an otherwise valid module fails to load solely because a library imports a stylesheet.\n * Static assets carry no meaning for a Node-side reader, so they load as `export default \"\"`.\n *\n * Process-wide, idempotent, and inert for any graph that imports no static asset. It never touches\n * JavaScript or TypeScript resolution.\n *\n * This is the one copy for in-process callers. Four hand-copied versions existed until 2026-09-25\n * — two in the dev companion and two in the CLI — each with its own regex; the next asset type\n * added to one would have loaded in one tool and failed in another. One copy remains by necessity:\n * the dev companion's introspection subprocess registers a hooks MODULE by path\n * (`asset-noop-hooks.ts`), and loader hooks run on their own thread before anything else loads, so\n * that module must stay dependency-free. `static-asset-pattern-parity.test.ts` in the companion\n * holds its pattern equal to this one.\n */\nexport function registerStaticAssetImportNoop(): void {\n if (staticAssetImportNoopRegistered) {\n return;\n }\n const hookSource = `\n const ASSET_RE = /${STATIC_ASSET_IMPORT_PATTERN_SOURCE}/;\n export function resolve(specifier, context, nextResolve) {\n if (ASSET_RE.test(specifier)) {\n return { shortCircuit: true, url: new URL(specifier, context.parentURL ?? 'file:///').href };\n }\n return nextResolve(specifier, context);\n }\n export function load(url, context, nextLoad) {\n if (ASSET_RE.test(url)) {\n return { shortCircuit: true, format: 'module', source: 'export default \"\";\\\\n' };\n }\n return nextLoad(url, context);\n }\n `;\n register(`data:text/javascript,${encodeURIComponent(hookSource)}`);\n staticAssetImportNoopRegistered = true;\n}\n"]}
@@ -27,8 +27,8 @@ export declare const RegistryApiKeyScope: {
27
27
  readonly ADMIN: "admin";
28
28
  };
29
29
  export declare const RegistryApiKeyScopeSchema: z.ZodEnum<{
30
- read: "read";
31
30
  publish: "publish";
31
+ read: "read";
32
32
  admin: "admin";
33
33
  }>;
34
34
  export type RegistryApiKeyScope = (typeof REGISTRY_API_KEY_SCOPE_VALUES)[number];
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-domain.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/artifact-domain.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,mCAAmC,mCAAoC,CAAC;AAE9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AgC;IAC3C,qEAAqE;;;;;IAErE;;;OAGG;;kBAEH,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -1,176 +0,0 @@
1
- /**
2
- * Wire schemas for the companion's `/api/companion/registry/*`
3
- * routes.
4
- *
5
- * Phase 2 lands the request/response contracts as Zod schemas so
6
- * both sides (CLI client + companion controller) share the same
7
- * shape. The CLI calls these via `RegistryCompanionClient`; the
8
- * companion implements the routes via `RegistryController`.
9
- *
10
- * KD-6 (companion owns SaaS-app source mutations) maps to these
11
- * routes:
12
- * - `POST /api/companion/registry/install` — copy module source
13
- * into app, mutate `wildo.saas.config.ts > moduleRegistries`,
14
- * mutate `modules-registry.{shared,frontend,backend}.ts`,
15
- * update `sections.modules`, run provider sync.
16
- * - `POST /api/companion/registry/update` — update an installed
17
- * module to a new version (delta apply + lockfile refresh).
18
- * - `POST /api/companion/registry/remove` — remove an installed
19
- * module (delete files, drop sentinel-managed entries, drop
20
- * `sections.modules.installed[<id>]`).
21
- * - `POST /api/companion/registry/publish` — stage + zip + upload
22
- * a local module to its registry (delegates to
23
- * `ModulePackagerService` + `RegistryServerClient`).
24
- *
25
- * Every route returns a `RegistryRouteResultSchema` envelope so
26
- * the CLI client can handle success / failure / repairable
27
- * post-mutation provider-sync errors uniformly.
28
- */
29
- import { z } from 'zod';
30
- /**
31
- * Reason flag forwarded to the provider-sync runner so its
32
- * diagnostic copy mirrors the calling verb.
33
- */
34
- export declare const RegistryMutationReasonSchema: z.ZodEnum<{
35
- install: "install";
36
- update: "update";
37
- adopt: "adopt";
38
- remove: "remove";
39
- }>;
40
- export type RegistryMutationReason = z.infer<typeof RegistryMutationReasonSchema>;
41
- export declare const RegistryInstallRequestSchema: z.ZodObject<{
42
- /** Module id (`<domain>/<name>`). */
43
- moduleId: z.ZodString;
44
- /**
45
- * Resolved exact version. The CLI resolves the range upstream.
46
- * Must be exact semver — accepting a range here (e.g. `^1.2.3`)
47
- * would let the lockfile carry a non-resolvable version.
48
- */
49
- version: z.ZodString;
50
- /** Range the user originally typed (preserved on the lockfile entry). */
51
- requestedRange: z.ZodOptional<z.ZodString>;
52
- /** Registry id from `wildo.saas.config.ts > moduleRegistries[].id`. */
53
- registryId: z.ZodString;
54
- /** Resolved registry URL at install time. */
55
- registryUrl: z.ZodURL;
56
- /** Domain segment under the registry. */
57
- domain: z.ZodString;
58
- /** Artifact integrity digest (`sha256:<64-hex>`). */
59
- artifactDigest: z.ZodString;
60
- }, z.core.$strict>;
61
- export type RegistryInstallRequest = z.infer<typeof RegistryInstallRequestSchema>;
62
- export declare const RegistryUpdateRequestSchema: z.ZodObject<{
63
- moduleId: z.ZodString;
64
- /** Target exact version. CLI resolves the range upstream. */
65
- toVersion: z.ZodString;
66
- toArtifactDigest: z.ZodString;
67
- registryId: z.ZodString;
68
- }, z.core.$strict>;
69
- export type RegistryUpdateRequest = z.infer<typeof RegistryUpdateRequestSchema>;
70
- export declare const RegistryRemoveRequestSchema: z.ZodObject<{
71
- moduleId: z.ZodString;
72
- }, z.core.$strict>;
73
- export type RegistryRemoveRequest = z.infer<typeof RegistryRemoveRequestSchema>;
74
- /**
75
- * `GET /v1/auth/whoami` response — what the registry server hands
76
- * back when a CLI calls `wildo registry login`/`whoami --verify`.
77
- * The CLI Zod-parses every required field so a misconfigured registry
78
- * that omits `organizationId` cannot persist a credential with `org=?`.
79
- *
80
- * `roles` is optional because not every registry deployment models
81
- * roles today; when supplied it lands on the per-machine credential
82
- * blob for staleness UX.
83
- *
84
- * 4th-pass review M5: the schema is `.object({...})` (NOT `.strictObject`)
85
- * so the registry server can add new optional response fields
86
- * (`tokenIssuedAt`, `lastUsedAt`, etc.) WITHOUT every existing CLI
87
- * version refusing to authenticate. The CLI still fails-closed on
88
- * missing required fields; only unknown additional fields are
89
- * silently dropped on the client side. Forward-compat is the priority
90
- * here since CLI versions cannot be flushed in lockstep with server
91
- * deployments.
92
- */
93
- export declare const RegistryWhoamiResponseSchema: z.ZodObject<{
94
- organizationId: z.ZodString;
95
- apiKeyId: z.ZodString;
96
- apiKeyName: z.ZodOptional<z.ZodString>;
97
- roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
- }, z.core.$strip>;
99
- export type RegistryWhoamiResponse = z.infer<typeof RegistryWhoamiResponseSchema>;
100
- export declare const RegistryPublishRequestSchema: z.ZodObject<{
101
- /** Module id from the staged manifest. */
102
- moduleId: z.ZodString;
103
- /** Exact version from the staged manifest — semver-validated. */
104
- version: z.ZodString;
105
- /** Registry id to publish to. */
106
- registryId: z.ZodString;
107
- /** Domain to publish under. */
108
- domain: z.ZodString;
109
- /** Pre-computed staging digest (matches `Sha256DigestSchema`). */
110
- artifactDigest: z.ZodString;
111
- }, z.core.$strict>;
112
- export type RegistryPublishRequest = z.infer<typeof RegistryPublishRequestSchema>;
113
- /**
114
- * Provider-sync outcome inside a mutation route's response. Mirrors
115
- * `runProviderSync` return shape (without the always-on path
116
- * constants — the CLI knows them via `platform-config-lib`).
117
- */
118
- export declare const RegistryProviderSyncOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
119
- status: z.ZodLiteral<"ok">;
120
- mode: z.ZodEnum<{
121
- "shell-out": "shell-out";
122
- "dry-run": "dry-run";
123
- }>;
124
- durationMs: z.ZodNumber;
125
- }, z.core.$strict>, z.ZodObject<{
126
- status: z.ZodLiteral<"failed">;
127
- failureKind: z.ZodEnum<{
128
- unknown: "unknown";
129
- "companion-discovery": "companion-discovery";
130
- "runtime-import-reachability": "runtime-import-reachability";
131
- "invalid-scope": "invalid-scope";
132
- timeout: "timeout";
133
- }>;
134
- message: z.ZodString;
135
- stderrTail: z.ZodOptional<z.ZodString>;
136
- }, z.core.$strict>], "status">;
137
- export type RegistryProviderSyncOutcome = z.infer<typeof RegistryProviderSyncOutcomeSchema>;
138
- export declare const RegistryRouteResultSchema: z.ZodObject<{
139
- ok: z.ZodBoolean;
140
- /** Files written into app source (relative to saas root). */
141
- filesTouched: z.ZodDefault<z.ZodArray<z.ZodString>>;
142
- /** Provider-sync outcome (omitted when not applicable, e.g. publish). */
143
- providerSync: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
144
- status: z.ZodLiteral<"ok">;
145
- mode: z.ZodEnum<{
146
- "shell-out": "shell-out";
147
- "dry-run": "dry-run";
148
- }>;
149
- durationMs: z.ZodNumber;
150
- }, z.core.$strict>, z.ZodObject<{
151
- status: z.ZodLiteral<"failed">;
152
- failureKind: z.ZodEnum<{
153
- unknown: "unknown";
154
- "companion-discovery": "companion-discovery";
155
- "runtime-import-reachability": "runtime-import-reachability";
156
- "invalid-scope": "invalid-scope";
157
- timeout: "timeout";
158
- }>;
159
- message: z.ZodString;
160
- stderrTail: z.ZodOptional<z.ZodString>;
161
- }, z.core.$strict>], "status">>;
162
- /** Free-form diagnostic copy. */
163
- message: z.ZodOptional<z.ZodString>;
164
- }, z.core.$strict>;
165
- export type RegistryRouteResult = z.infer<typeof RegistryRouteResultSchema>;
166
- /**
167
- * Companion route paths — single source of truth shared by the
168
- * CLI client and the companion controller.
169
- */
170
- export declare const REGISTRY_COMPANION_ROUTES: {
171
- readonly install: "/api/companion/registry/install";
172
- readonly update: "/api/companion/registry/update";
173
- readonly remove: "/api/companion/registry/remove";
174
- readonly publish: "/api/companion/registry/publish";
175
- };
176
- //# sourceMappingURL=companion-api.schemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"companion-api.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/companion-api.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;EAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAIlF,eAAO,MAAM,4B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AiC;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,OAAO,EAAE,iCAAiC;IAC1C,MAAM,EAAE,gCAAgC;IACxC,MAAM,EAAE,gCAAgC;IACxC,OAAO,EAAE,iCAAiC;CAClC,CAAC","sourcesContent":["/**\n * Wire schemas for the companion's `/api/companion/registry/*`\n * routes.\n *\n * Phase 2 lands the request/response contracts as Zod schemas so\n * both sides (CLI client + companion controller) share the same\n * shape. The CLI calls these via `RegistryCompanionClient`; the\n * companion implements the routes via `RegistryController`.\n *\n * KD-6 (companion owns SaaS-app source mutations) maps to these\n * routes:\n * - `POST /api/companion/registry/install` — copy module source\n * into app, mutate `wildo.saas.config.ts > moduleRegistries`,\n * mutate `modules-registry.{shared,frontend,backend}.ts`,\n * update `sections.modules`, run provider sync.\n * - `POST /api/companion/registry/update` — update an installed\n * module to a new version (delta apply + lockfile refresh).\n * - `POST /api/companion/registry/remove` — remove an installed\n * module (delete files, drop sentinel-managed entries, drop\n * `sections.modules.installed[<id>]`).\n * - `POST /api/companion/registry/publish` — stage + zip + upload\n * a local module to its registry (delegates to\n * `ModulePackagerService` + `RegistryServerClient`).\n *\n * Every route returns a `RegistryRouteResultSchema` envelope so\n * the CLI client can handle success / failure / repairable\n * post-mutation provider-sync errors uniformly.\n */\n\nimport { z } from 'zod';\nimport { SemverExactSchema } from './module-manifest.schemas';\n\n/**\n * Reason flag forwarded to the provider-sync runner so its\n * diagnostic copy mirrors the calling verb.\n */\nexport const RegistryMutationReasonSchema = z.enum([\n 'install',\n 'update',\n 'remove',\n 'adopt',\n]);\nexport type RegistryMutationReason = z.infer<typeof RegistryMutationReasonSchema>;\n\n// ---------- Install -------------------------------------------------------\n\nexport const RegistryInstallRequestSchema = z.strictObject({\n /** Module id (`<domain>/<name>`). */\n moduleId: z.string().min(1),\n /**\n * Resolved exact version. The CLI resolves the range upstream.\n * Must be exact semver — accepting a range here (e.g. `^1.2.3`)\n * would let the lockfile carry a non-resolvable version.\n */\n version: SemverExactSchema,\n /** Range the user originally typed (preserved on the lockfile entry). */\n requestedRange: z.string().min(1).optional(),\n /** Registry id from `wildo.saas.config.ts > moduleRegistries[].id`. */\n registryId: z.string().min(1),\n /** Resolved registry URL at install time. */\n registryUrl: z.url(),\n /** Domain segment under the registry. */\n domain: z.string().min(1),\n /** Artifact integrity digest (`sha256:<64-hex>`). */\n artifactDigest: z.string().min(1),\n});\nexport type RegistryInstallRequest = z.infer<typeof RegistryInstallRequestSchema>;\n\n// ---------- Update --------------------------------------------------------\n\nexport const RegistryUpdateRequestSchema = z.strictObject({\n moduleId: z.string().min(1),\n /** Target exact version. CLI resolves the range upstream. */\n toVersion: SemverExactSchema,\n toArtifactDigest: z.string().min(1),\n registryId: z.string().min(1),\n});\nexport type RegistryUpdateRequest = z.infer<typeof RegistryUpdateRequestSchema>;\n\n// ---------- Remove --------------------------------------------------------\n\nexport const RegistryRemoveRequestSchema = z.strictObject({\n moduleId: z.string().min(1),\n});\nexport type RegistryRemoveRequest = z.infer<typeof RegistryRemoveRequestSchema>;\n\n// ---------- Publish -------------------------------------------------------\n\n/**\n * `GET /v1/auth/whoami` response — what the registry server hands\n * back when a CLI calls `wildo registry login`/`whoami --verify`.\n * The CLI Zod-parses every required field so a misconfigured registry\n * that omits `organizationId` cannot persist a credential with `org=?`.\n *\n * `roles` is optional because not every registry deployment models\n * roles today; when supplied it lands on the per-machine credential\n * blob for staleness UX.\n *\n * 4th-pass review M5: the schema is `.object({...})` (NOT `.strictObject`)\n * so the registry server can add new optional response fields\n * (`tokenIssuedAt`, `lastUsedAt`, etc.) WITHOUT every existing CLI\n * version refusing to authenticate. The CLI still fails-closed on\n * missing required fields; only unknown additional fields are\n * silently dropped on the client side. Forward-compat is the priority\n * here since CLI versions cannot be flushed in lockstep with server\n * deployments.\n */\nexport const RegistryWhoamiResponseSchema = z.object({\n organizationId: z.string().min(1),\n apiKeyId: z.string().min(1),\n apiKeyName: z.string().min(1).optional(),\n roles: z.array(z.string().min(1)).optional(),\n});\nexport type RegistryWhoamiResponse = z.infer<typeof RegistryWhoamiResponseSchema>;\n\nexport const RegistryPublishRequestSchema = z.strictObject({\n /** Module id from the staged manifest. */\n moduleId: z.string().min(1),\n /** Exact version from the staged manifest — semver-validated. */\n version: SemverExactSchema,\n /** Registry id to publish to. */\n registryId: z.string().min(1),\n /** Domain to publish under. */\n domain: z.string().min(1),\n /** Pre-computed staging digest (matches `Sha256DigestSchema`). */\n artifactDigest: z.string().min(1),\n});\nexport type RegistryPublishRequest = z.infer<typeof RegistryPublishRequestSchema>;\n\n// ---------- Common result envelope ----------------------------------------\n\n/**\n * Provider-sync outcome inside a mutation route's response. Mirrors\n * `runProviderSync` return shape (without the always-on path\n * constants — the CLI knows them via `platform-config-lib`).\n */\nexport const RegistryProviderSyncOutcomeSchema = z.discriminatedUnion('status', [\n z.strictObject({\n status: z.literal('ok'),\n mode: z.enum(['shell-out', 'dry-run']),\n durationMs: z.number().int().nonnegative(),\n }),\n z.strictObject({\n status: z.literal('failed'),\n // 4th-pass review H4: keep this enum in lock-step with\n // `RegistryProviderSyncFailedError.failureKind` in\n // `registry-errors.ts`. The two are wire-and-error twins — when\n // the companion serializes a typed error into this envelope, the\n // strict-object enum here MUST cover every value the error class\n // can carry. `'timeout'` was added in the third-pass H5 fix on the\n // error-class side without being mirrored here, so a real timeout\n // failed strict validation client-side and surfaced as a generic\n // malformed-payload error.\n failureKind: z.enum([\n 'companion-discovery',\n 'runtime-import-reachability',\n 'invalid-scope',\n 'timeout',\n 'unknown',\n ]),\n message: z.string(),\n stderrTail: z.string().optional(),\n }),\n]);\nexport type RegistryProviderSyncOutcome = z.infer<typeof RegistryProviderSyncOutcomeSchema>;\n\nexport const RegistryRouteResultSchema = z.strictObject({\n ok: z.boolean(),\n /** Files written into app source (relative to saas root). */\n filesTouched: z.array(z.string()).default([]),\n /** Provider-sync outcome (omitted when not applicable, e.g. publish). */\n providerSync: RegistryProviderSyncOutcomeSchema.optional(),\n /** Free-form diagnostic copy. */\n message: z.string().optional(),\n});\nexport type RegistryRouteResult = z.infer<typeof RegistryRouteResultSchema>;\n\n/**\n * Companion route paths — single source of truth shared by the\n * CLI client and the companion controller.\n */\nexport const REGISTRY_COMPANION_ROUTES = {\n install: '/api/companion/registry/install',\n update: '/api/companion/registry/update',\n remove: '/api/companion/registry/remove',\n publish: '/api/companion/registry/publish',\n} as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -23,11 +23,13 @@
23
23
  export * from './digest.schemas';
24
24
  export * from './lockfile-modules-section.schemas';
25
25
  export * from './module-manifest.schemas';
26
+ export * from './module-search.schemas';
26
27
  export * from './module-artifact.schemas';
27
28
  export * from './artifact-domain.schemas';
28
- export * from './companion-api.schemas';
29
29
  export * from './registry-config.schemas';
30
30
  export * from './registry-defaults.constants';
31
31
  export * from './registry-errors';
32
32
  export * from './registry-section-schemas.constants';
33
+ export * from './registry-keys.schemas';
34
+ export * from './local-checkout-source';
33
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -23,11 +23,13 @@
23
23
  export * from './digest.schemas.js';
24
24
  export * from './lockfile-modules-section.schemas.js';
25
25
  export * from './module-manifest.schemas.js';
26
+ export * from './module-search.schemas.js';
26
27
  export * from './module-artifact.schemas.js';
27
28
  export * from './artifact-domain.schemas.js';
28
- export * from './companion-api.schemas.js';
29
29
  export * from './registry-config.schemas.js';
30
30
  export * from './registry-defaults.constants.js';
31
31
  export * from './registry-errors.js';
32
32
  export * from './registry-section-schemas.constants.js';
33
+ export * from './registry-keys.schemas.js';
34
+ export * from './local-checkout-source.js';
33
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC","sourcesContent":["/**\n * Module-registry subpackage barrel\n * (per `.claude/plans/module-registry-analysis.md`).\n *\n * Surface:\n * - `RegistryModulesLockSectionSchema` — `sections.modules` payload.\n * - `DEFAULT_REGISTRY_SECTION_SCHEMAS` — CLI default lockfile-section map.\n * - `DEFAULT_LOCAL_REGISTRY_URL` / `DEFAULT_PUBLIC_REGISTRY_URL` /\n * `DEFAULT_LOCAL_REGISTRY_PORT` / `DEFAULT_REGISTRY_ID`.\n * - `ModuleManifestSchema` — `wildo.module.json` contract\n * (engine compat, boundaries, dependsOn buckets per KD-12 + KD-13).\n * - `ModuleVersionRecordSchema` — registry-server published-version row.\n * - `Sha256DigestSchema` — single-source digest field used by\n * both lockfile entries and registry-server records.\n * - `RegistryConfigSchema` — `wildo.saas.config.ts > moduleRegistries`.\n * - `RegistryArtifactVisibility` / `RegistryApiKeyScope` /\n * `RegistryDomainAccessPolicy` — access-control vocabulary.\n * - `RegistryError` family — typed-error vocabulary with\n * stable `code` strings.\n *\n * Phase 2+ adds artifact-staging + companion-mutation contracts.\n */\n\nexport * from './digest.schemas';\nexport * from './lockfile-modules-section.schemas';\nexport * from './module-manifest.schemas';\nexport * from './module-artifact.schemas';\nexport * from './artifact-domain.schemas';\nexport * from './companion-api.schemas';\nexport * from './registry-config.schemas';\nexport * from './registry-defaults.constants';\nexport * from './registry-errors';\nexport * from './registry-section-schemas.constants';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC","sourcesContent":["/**\n * Module-registry subpackage barrel\n * (per `.claude/plans/module-registry-analysis.md`).\n *\n * Surface:\n * - `RegistryModulesLockSectionSchema` — `sections.modules` payload.\n * - `DEFAULT_REGISTRY_SECTION_SCHEMAS` — CLI default lockfile-section map.\n * - `DEFAULT_LOCAL_REGISTRY_URL` / `DEFAULT_PUBLIC_REGISTRY_URL` /\n * `DEFAULT_LOCAL_REGISTRY_PORT` / `DEFAULT_REGISTRY_ID`.\n * - `ModuleManifestSchema` — `wildo.module.json` contract\n * (engine compat, boundaries, dependsOn buckets per KD-12 + KD-13).\n * - `ModuleVersionRecordSchema` — registry-server published-version row.\n * - `Sha256DigestSchema` — single-source digest field used by\n * both lockfile entries and registry-server records.\n * - `RegistryConfigSchema` — `wildo.saas.config.ts > moduleRegistries`.\n * - `RegistryArtifactVisibility` / `RegistryApiKeyScope` /\n * `RegistryDomainAccessPolicy` — access-control vocabulary.\n * - `RegistryError` family — typed-error vocabulary with\n * stable `code` strings.\n *\n * Phase 2+ adds artifact-staging + companion-mutation contracts.\n */\n\nexport * from './digest.schemas';\nexport * from './lockfile-modules-section.schemas';\nexport * from './module-manifest.schemas';\nexport * from './module-search.schemas';\nexport * from './module-artifact.schemas';\nexport * from './artifact-domain.schemas';\nexport * from './registry-config.schemas';\nexport * from './registry-defaults.constants';\nexport * from './registry-errors';\nexport * from './registry-section-schemas.constants';\nexport * from './registry-keys.schemas';\nexport * from './local-checkout-source';\n"]}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Local-checkout source for registry modules (#2015, epic #2012).
3
+ *
4
+ * Paul, 2026-09-29: in framework development the registry is fetched LOCALLY, from the checkout, with no
5
+ * server and no publish step. Wildo's own providers are authored in the monorepo under
6
+ * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an
7
+ * application anywhere else installs them from the public registry (#2024).
8
+ *
9
+ * This file owns only the LAYOUT: which domain the checkout answers for, and where one of its modules
10
+ * lives. Reading and staging a module is the CLI's job (`local-checkout-module-source.service.ts`).
11
+ */
12
+ /**
13
+ * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework
14
+ * checkout the same domain is answered by the checkout itself, so one install spec
15
+ * (`wildo/providers/asana`) means the same module in both places.
16
+ */
17
+ export declare const WILDO_REGISTRY_DOMAIN = "wildo";
18
+ /**
19
+ * Where each module-id SCOPE of the `wildo` domain is authored in the framework checkout.
20
+ *
21
+ * A module `<scope>/<name>` lives at `<frameworkRoot>/<root>/<name>/`, holding its `wildo.module.json` and
22
+ * the content of its single boundary directory: for a provider (`providers/<ref>`) that is one folder per
23
+ * facet (`backend/`, `frontend/`). A scope absent from this table has no local source.
24
+ */
25
+ export declare const LOCAL_CHECKOUT_MODULE_ROOTS: Readonly<Record<string, string>>;
26
+ /**
27
+ * The checkout directory of `<domain>/<moduleId>`, or `undefined` when the checkout does not author it
28
+ * (another domain, or a scope with no local root). Never resolves outside its scope root.
29
+ */
30
+ export declare function localCheckoutModuleDirectory(frameworkRoot: string, domain: string, moduleId: string): string | undefined;
31
+ //# sourceMappingURL=local-checkout-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-checkout-source.d.ts","sourceRoot":"","sources":["../../../../src/registry/local-checkout-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQxH"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Local-checkout source for registry modules (#2015, epic #2012).
3
+ *
4
+ * Paul, 2026-09-29: in framework development the registry is fetched LOCALLY, from the checkout, with no
5
+ * server and no publish step. Wildo's own providers are authored in the monorepo under
6
+ * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an
7
+ * application anywhere else installs them from the public registry (#2024).
8
+ *
9
+ * This file owns only the LAYOUT: which domain the checkout answers for, and where one of its modules
10
+ * lives. Reading and staging a module is the CLI's job (`local-checkout-module-source.service.ts`).
11
+ */
12
+ import * as path from 'node:path';
13
+ import { isModuleId } from './module-manifest.schemas.js';
14
+ /**
15
+ * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework
16
+ * checkout the same domain is answered by the checkout itself, so one install spec
17
+ * (`wildo/providers/asana`) means the same module in both places.
18
+ */
19
+ export const WILDO_REGISTRY_DOMAIN = 'wildo';
20
+ /**
21
+ * Where each module-id SCOPE of the `wildo` domain is authored in the framework checkout.
22
+ *
23
+ * A module `<scope>/<name>` lives at `<frameworkRoot>/<root>/<name>/`, holding its `wildo.module.json` and
24
+ * the content of its single boundary directory: for a provider (`providers/<ref>`) that is one folder per
25
+ * facet (`backend/`, `frontend/`). A scope absent from this table has no local source.
26
+ */
27
+ export const LOCAL_CHECKOUT_MODULE_ROOTS = {
28
+ providers: 'providers-registry',
29
+ };
30
+ /**
31
+ * The checkout directory of `<domain>/<moduleId>`, or `undefined` when the checkout does not author it
32
+ * (another domain, or a scope with no local root). Never resolves outside its scope root.
33
+ */
34
+ export function localCheckoutModuleDirectory(frameworkRoot, domain, moduleId) {
35
+ if (domain !== WILDO_REGISTRY_DOMAIN || !isModuleId(moduleId))
36
+ return undefined;
37
+ const [scope, name] = moduleId.split('/');
38
+ const rootName = LOCAL_CHECKOUT_MODULE_ROOTS[scope];
39
+ if (rootName === undefined)
40
+ return undefined;
41
+ const scopeRoot = path.resolve(frameworkRoot, rootName);
42
+ const directory = path.resolve(scopeRoot, name);
43
+ return directory.startsWith(scopeRoot + path.sep) ? directory : undefined;
44
+ }
45
+ //# sourceMappingURL=local-checkout-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-checkout-source.js","sourceRoot":"","sources":["../../../../src/registry/local-checkout-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAqC;IAC3E,SAAS,EAAE,oBAAoB;CAChC,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAAC,aAAqB,EAAE,MAAc,EAAE,QAAgB;IAClG,IAAI,MAAM,KAAK,qBAAqB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAChF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAqB,CAAC;IAC9D,MAAM,QAAQ,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACpD,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACxD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAChD,OAAO,SAAS,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5E,CAAC","sourcesContent":["/**\n * Local-checkout source for registry modules (#2015, epic #2012).\n *\n * Paul, 2026-09-29: in framework development the registry is fetched LOCALLY, from the checkout, with no\n * server and no publish step. Wildo's own providers are authored in the monorepo under\n * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an\n * application anywhere else installs them from the public registry (#2024).\n *\n * This file owns only the LAYOUT: which domain the checkout answers for, and where one of its modules\n * lives. Reading and staging a module is the CLI's job (`local-checkout-module-source.service.ts`).\n */\n\nimport * as path from 'node:path';\nimport { isModuleId } from './module-manifest.schemas';\n\n/**\n * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework\n * checkout the same domain is answered by the checkout itself, so one install spec\n * (`wildo/providers/asana`) means the same module in both places.\n */\nexport const WILDO_REGISTRY_DOMAIN = 'wildo';\n\n/**\n * Where each module-id SCOPE of the `wildo` domain is authored in the framework checkout.\n *\n * A module `<scope>/<name>` lives at `<frameworkRoot>/<root>/<name>/`, holding its `wildo.module.json` and\n * the content of its single boundary directory: for a provider (`providers/<ref>`) that is one folder per\n * facet (`backend/`, `frontend/`). A scope absent from this table has no local source.\n */\nexport const LOCAL_CHECKOUT_MODULE_ROOTS: Readonly<Record<string, string>> = {\n providers: 'providers-registry',\n};\n\n/**\n * The checkout directory of `<domain>/<moduleId>`, or `undefined` when the checkout does not author it\n * (another domain, or a scope with no local root). Never resolves outside its scope root.\n */\nexport function localCheckoutModuleDirectory(frameworkRoot: string, domain: string, moduleId: string): string | undefined {\n if (domain !== WILDO_REGISTRY_DOMAIN || !isModuleId(moduleId)) return undefined;\n const [scope, name] = moduleId.split('/') as [string, string];\n const rootName = LOCAL_CHECKOUT_MODULE_ROOTS[scope];\n if (rootName === undefined) return undefined;\n const scopeRoot = path.resolve(frameworkRoot, rootName);\n const directory = path.resolve(scopeRoot, name);\n return directory.startsWith(scopeRoot + path.sep) ? directory : undefined;\n}\n"]}