@wildo-ai/platform-config-lib 1.1.5 → 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 (138) hide show
  1. package/dist/esm/bootstrap/bootstrap.contracts.d.ts +3 -2
  2. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  3. package/dist/esm/bootstrap/bootstrap.contracts.js +3 -2
  4. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  5. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +47 -0
  6. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  7. package/dist/esm/bootstrap/bootstrap.schemas.js +8 -0
  8. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  9. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +12 -1
  10. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  11. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +12 -0
  12. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  13. package/dist/esm/bootstrap/platform-store-preconnect.d.ts +37 -0
  14. package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -0
  15. package/dist/esm/bootstrap/platform-store-preconnect.js +43 -0
  16. package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -0
  17. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  18. package/dist/esm/bootstrap/runtime-backing-service-access.js +8 -4
  19. package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
  20. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts +36 -3
  21. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
  22. package/dist/esm/bootstrap/runtime-topology.contracts.js +36 -13
  23. package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
  24. package/dist/esm/index.d.ts +1 -0
  25. package/dist/esm/index.d.ts.map +1 -1
  26. package/dist/esm/index.js +1 -0
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/lockfile/lockfile-io.d.ts +7 -1
  29. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  30. package/dist/esm/lockfile/lockfile-io.js +17 -3
  31. package/dist/esm/lockfile/lockfile-io.js.map +1 -1
  32. package/dist/esm/lockfile/materialize-infra-section.d.ts +27 -6
  33. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  34. package/dist/esm/lockfile/materialize-infra-section.js +23 -10
  35. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  36. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +455 -6
  37. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  38. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +27 -0
  39. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  40. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts +13 -0
  41. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -0
  42. package/dist/esm/project-config/application-public-pricing-catalog.loader.js +56 -0
  43. package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -0
  44. package/dist/esm/project-config/define-infra-env-config.d.ts +0 -27
  45. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  46. package/dist/esm/project-config/define-infra-env-config.js +0 -2
  47. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  48. package/dist/esm/project-config/define-saas-config.d.ts +52 -0
  49. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  50. package/dist/esm/project-config/define-saas-config.js +65 -15
  51. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  52. package/dist/esm/project-config/index.d.ts +3 -0
  53. package/dist/esm/project-config/index.d.ts.map +1 -1
  54. package/dist/esm/project-config/index.js +3 -0
  55. package/dist/esm/project-config/index.js.map +1 -1
  56. package/dist/esm/project-config/loader.d.ts +11 -0
  57. package/dist/esm/project-config/loader.d.ts.map +1 -1
  58. package/dist/esm/project-config/loader.js +34 -7
  59. package/dist/esm/project-config/loader.js.map +1 -1
  60. package/dist/esm/project-config/npm-version-range.d.ts +23 -0
  61. package/dist/esm/project-config/npm-version-range.d.ts.map +1 -0
  62. package/dist/esm/project-config/npm-version-range.js +175 -0
  63. package/dist/esm/project-config/npm-version-range.js.map +1 -0
  64. package/dist/esm/project-config/provider-companion-discovery.d.ts +256 -30
  65. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  66. package/dist/esm/project-config/provider-companion-discovery.js +719 -40
  67. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  68. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +125 -2
  69. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  70. package/dist/esm/project-config/provider-runtime-artifacts.js +283 -66
  71. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  72. package/dist/esm/project-config/shared/backing-service-servability.d.ts +157 -0
  73. package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -0
  74. package/dist/esm/project-config/shared/backing-service-servability.js +256 -0
  75. package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -0
  76. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +62 -67
  77. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  78. package/dist/esm/project-config/shared/backing-services.schemas.js +71 -68
  79. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  80. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  81. package/dist/esm/project-config/shared/csp-emit.js +41 -2
  82. package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
  83. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +180 -4
  84. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  85. package/dist/esm/project-config/shared/infra-providers.schemas.js +40 -0
  86. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  87. package/dist/esm/project-config/static-asset-import-noop.d.ts +26 -0
  88. package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -0
  89. package/dist/esm/project-config/static-asset-import-noop.js +49 -0
  90. package/dist/esm/project-config/static-asset-import-noop.js.map +1 -0
  91. package/dist/esm/registry/companion-api.schemas.d.ts +0 -176
  92. package/dist/esm/registry/companion-api.schemas.d.ts.map +0 -1
  93. package/dist/esm/registry/companion-api.schemas.js.map +0 -1
  94. package/dist/esm/registry/index.d.ts +3 -1
  95. package/dist/esm/registry/index.d.ts.map +1 -1
  96. package/dist/esm/registry/index.js +3 -1
  97. package/dist/esm/registry/index.js.map +1 -1
  98. package/dist/esm/registry/local-checkout-source.d.ts +31 -0
  99. package/dist/esm/registry/local-checkout-source.d.ts.map +1 -0
  100. package/dist/esm/registry/local-checkout-source.js +45 -0
  101. package/dist/esm/registry/local-checkout-source.js.map +1 -0
  102. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +174 -14
  103. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  104. package/dist/esm/registry/lockfile-modules-section.schemas.js +120 -11
  105. package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
  106. package/dist/esm/registry/module-artifact.schemas.d.ts +79 -0
  107. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  108. package/dist/esm/registry/module-artifact.schemas.js +36 -0
  109. package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
  110. package/dist/esm/registry/module-manifest.schemas.d.ts +393 -7
  111. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  112. package/dist/esm/registry/module-manifest.schemas.js +488 -40
  113. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  114. package/dist/esm/registry/module-search.schemas.d.ts +80 -0
  115. package/dist/esm/registry/module-search.schemas.d.ts.map +1 -0
  116. package/dist/esm/registry/module-search.schemas.js +112 -0
  117. package/dist/esm/registry/module-search.schemas.js.map +1 -0
  118. package/dist/esm/registry/registry-config.schemas.d.ts +16 -0
  119. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  120. package/dist/esm/registry/registry-config.schemas.js +8 -0
  121. package/dist/esm/registry/registry-config.schemas.js.map +1 -1
  122. package/dist/esm/registry/registry-errors.d.ts +126 -2
  123. package/dist/esm/registry/registry-errors.d.ts.map +1 -1
  124. package/dist/esm/registry/registry-errors.js +183 -14
  125. package/dist/esm/registry/registry-errors.js.map +1 -1
  126. package/dist/esm/registry/registry-keys.schemas.d.ts +80 -0
  127. package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -0
  128. package/dist/esm/registry/registry-keys.schemas.js +68 -0
  129. package/dist/esm/registry/registry-keys.schemas.js.map +1 -0
  130. package/dist/esm/registry/registry-section-schemas.constants.d.ts +25 -3
  131. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  132. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +13 -11
  133. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
  134. package/dist/esm/workspace-scope/workspace-homes.schemas.js +2 -2
  135. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
  136. package/package.json +7 -7
  137. package/dist/esm/registry/companion-api.schemas.js +0 -165
  138. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"module-manifest.schemas.js","sourceRoot":"","sources":["../../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC7B,qLAAqL,CAAC;AACxL,MAAM,CAAC,MAAM,iBAAiB,G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AM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,iFAAiF;IACjF,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,8BAA8B,CAAC,QAAQ,EAAE;IACrD,SAAS,EAAE,gCAAgC,CAAC,QAAQ,EAAE;IACtD;;;;OAIG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC","sourcesContent":["/**\n * Module manifest schema — `wildo.module.json` shipped inside every\n * registry artifact.\n *\n * Phase 1 fleshes out the dependency / boundary contract that Phase\n * 5+ install/update/remove flows need. The manifest is the single\n * cross-package contract every registry client signs against; new\n * fields require a plan amendment.\n *\n * Authoritative references (keep these in sync with edits below):\n * - KD-12 — modules cannot claim arbitrary top-level app ownership;\n * `boundaries` declares which app surfaces the artifact may write.\n * - KD-13 — npm + module + capability dependencies are explicit.\n * - KD-19 — runtime packages produced from installed module content\n * must NOT import `platform-config-lib`; this is enforced\n * downstream by Phase 5+ verification, not the manifest itself.\n */\n\nimport { z } from 'zod';\n\n/**\n * Authoring shape for a nonempty version constraint. Registry release selectors\n * can resolve tags; manifest module/framework requirements instead use npm\n * semver ranges and are validated against the receiving application's recorded\n * module versions and installed framework packages before source adoption.\n */\nconst SemverRange = z.string().min(1).describe('npm-style semver range');\n\n/**\n * Exact `MAJOR.MINOR.PATCH[-prerelease][+build]` semver. The regex\n * mirrors the official semver.org grammar, so manifest authors\n * cannot publish version `^1.2.3` or `latest` and have install\n * silently treat it as concrete.\n */\nexport const SEMVER_EXACT_REGEX =\n /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\nexport const SemverExactSchema = z\n .string()\n .regex(SEMVER_EXACT_REGEX, 'Expected exact semver `MAJOR.MINOR.PATCH` (no ranges, no tags)')\n .describe('Exact semver version');\nconst SemverExact = SemverExactSchema;\n\n/**\n * `dependsOn.modules.<moduleId>` — other Wildo modules that this\n * module requires. Install hard-fails by default if any required\n * module is missing (KD-13). Range resolution mirrors npm semver\n * semantics.\n */\nexport const ModuleManifestModuleDependenciesSchema = z.record(z.string().min(1), SemverRange);\nexport type ModuleManifestModuleDependencies = z.infer<typeof ModuleManifestModuleDependenciesSchema>;\n\n/**\n * `dependsOn.npm.dependencies` / `peerDependencies` — npm packages\n * the installed module imports at runtime. Install surfaces these\n * to the operator but does not edit `package.json` automatically\n * or install dependencies. The operator chooses the consuming package (KD-13).\n */\nexport const ModuleManifestNpmDependenciesSchema = z.strictObject({\n dependencies: z.record(z.string().min(1), SemverRange).default({}),\n peerDependencies: z.record(z.string().min(1), SemverRange).default({}),\n});\nexport type ModuleManifestNpmDependencies = z.infer<typeof ModuleManifestNpmDependenciesSchema>;\n\n/**\n * `dependsOn.capabilities` — required EngineCapability names. Adoption validates\n * each name against the canonical enum and requires enabled:true in the host's\n * authored engineCapabilities. This proves declared activation, not provider\n * health. Strings remain the artifact format; the CLI performs host comparison.\n */\nexport const ModuleManifestCapabilityDependenciesSchema = z.array(z.string().min(1));\nexport type ModuleManifestCapabilityDependencies = z.infer<typeof ModuleManifestCapabilityDependenciesSchema>;\n\nexport const ModuleManifestDependenciesSchema = z.strictObject({\n modules: ModuleManifestModuleDependenciesSchema.default({}),\n npm: ModuleManifestNpmDependenciesSchema.default({\n dependencies: {},\n peerDependencies: {},\n }),\n capabilities: ModuleManifestCapabilityDependenciesSchema.default([]),\n});\nexport type ModuleManifestDependencies = z.infer<typeof ModuleManifestDependenciesSchema>;\n\n/**\n * Engine compatibility — the framework version range this module\n * targets. Install hard-fails by default if the host app's framework\n * version is outside the range. Every installed saas-models copy reached from\n * application workspace framework dependencies must satisfy it; desired pins\n * and the running CLI version are not installed application evidence.\n */\nexport const ModuleManifestEngineSchema = z.strictObject({\n framework: SemverRange,\n});\nexport type ModuleManifestEngine = z.infer<typeof ModuleManifestEngineSchema>;\n\n/**\n * 6th-pass M5: each entry in a `boundaries.*` array must be a\n * RELATIVE path with no `..` segments. Without this refine:\n * - `path.resolve(saasRoot, '/abs/path')` returns `/abs/path` on\n * POSIX (absolute argument resets the resolve chain), so the\n * boundary check fails for every candidate file → publish\n * surfaces a confusing \"outside boundary\" error when the real\n * problem is the boundary itself being malformed.\n * - `'../../escape'` could legitimately resolve inside `saasRoot`\n * after normalization, but the publisher intent is unclear and\n * downstream zip-slip / symlink-escape guards become harder to\n * reason about. Reject at parse time with a precise message.\n */\nconst RelativeBoundaryPathSchema = z\n .string()\n .min(1)\n .refine(\n (s) => {\n // Reject absolute paths (POSIX `/...`, Windows `C:\\...` or `\\\\server\\...`).\n if (/^([a-zA-Z]:|[\\\\/])/.test(s)) return false;\n // Reject `..` segments after normalizing path separators.\n const segments = s.split(/[\\\\/]/);\n return !segments.includes('..');\n },\n {\n error:\n 'boundary entries must be relative to the saas root and contain no `..` segments ' +\n '(e.g. `app/src/modules/acme-billing`, NOT `/app/src/modules/acme-billing` or `../escape`)',\n },\n );\n\n/**\n * `boundaries` — the per-layer surface the module is allowed to\n * write into the host app source (KD-12). Paths are relative to the\n * saas root; install rejects artifacts that attempt to write outside\n * any declared boundary.\n *\n * Each layer is optional; modules typically declare only the layers\n * they actually contain (a backend-only module declares `backend`\n * + `shared` and omits `frontend` / `specifications`).\n */\nexport const ModuleManifestBoundariesSchema = z.strictObject({\n specifications: z.array(RelativeBoundaryPathSchema).default([]),\n shared: z.array(RelativeBoundaryPathSchema).default([]),\n frontend: z.array(RelativeBoundaryPathSchema).default([]),\n backend: z.array(RelativeBoundaryPathSchema).default([]),\n minions: z.array(RelativeBoundaryPathSchema).default([]),\n workers: z.array(RelativeBoundaryPathSchema).default([]),\n});\nexport type ModuleManifestBoundaries = z.infer<typeof ModuleManifestBoundariesSchema>;\n\n/**\n * Top-level manifest. Stored at `wildo.module.json` inside every\n * artifact zip and at the registry server alongside its version row.\n *\n * `id` semantics: `<scope>/<name>` (e.g. `acme/billing`), separate\n * from the registry domain (e.g. `internal`). The id is reused as the lockfile entry key\n * (`sections.modules.installed[<id>]`).\n */\nexport const ModuleManifestSchema = z.object({\n id: z.string().min(1),\n version: SemverExact,\n description: z.string().optional(),\n /** Free-form description of what the module ships, for `wildo registry info`. */\n longDescription: z.string().optional(),\n engine: ModuleManifestEngineSchema.optional(),\n boundaries: ModuleManifestBoundariesSchema.optional(),\n dependsOn: ModuleManifestDependenciesSchema.optional(),\n /**\n * Free-form key/value bag for non-load-bearing metadata\n * (homepage, license, repository). Phase 1 keeps it open;\n * Phase 6 may tighten it for `wildo registry publish` UX.\n */\n meta: z.record(z.string().min(1), z.unknown()).optional(),\n}).catchall(z.unknown());\nexport type ModuleManifest = z.infer<typeof ModuleManifestSchema>;\n"]}
1
+ {"version":3,"file":"module-manifest.schemas.js","sourceRoot":"","sources":["../../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,iCAAiC,EAAE,YAAY,EAAE,8BAA8B,EAAyB,MAAM,uBAAuB,CAAC;AAEhK;;;;;GAKG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,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CAAC;IACL,CAAC;IACD,MAAM,WAAW,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,WAAW,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACvI,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3B,OAAO,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,YAAY,CAAC;YACpB,OAAO,EAAE,4EAA4E,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;SAC9G,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC","sourcesContent":["/**\n * Module manifest schema — `wildo.module.json` shipped inside every\n * registry artifact.\n *\n * Phase 1 fleshes out the dependency / boundary contract that Phase\n * 5+ install/update/remove flows need. The manifest is the single\n * cross-package contract every registry client signs against; new\n * fields require a plan amendment.\n *\n * Authoritative references (keep these in sync with edits below):\n * - KD-12 — modules cannot claim arbitrary top-level app ownership;\n * `boundaries` declares which app surfaces the artifact may write.\n * - KD-13 — npm + module + capability dependencies are explicit.\n * - KD-19 — runtime packages produced from installed module content\n * must NOT import `platform-config-lib`; this is enforced\n * downstream by Phase 5+ verification, not the manifest itself.\n */\n\nimport { z } from 'zod';\nimport { AppFrontendType, ProviderCatalogueProvenanceSchema, ProviderTier, engineSlotsBoundByCapabilities, type EngineCapability } from '@wildo-ai/saas-models';\n\n/**\n * Authoring shape for a nonempty version constraint. Registry release selectors\n * can resolve tags; manifest module/framework requirements instead use npm\n * semver ranges and are validated against the receiving application's recorded\n * module versions and installed framework packages before source adoption.\n */\nconst SemverRange = z.string().min(1).describe('npm-style semver range');\n\n/**\n * Exact `MAJOR.MINOR.PATCH[-prerelease][+build]` semver. The regex\n * mirrors the official semver.org grammar, so manifest authors\n * cannot publish version `^1.2.3` or `latest` and have install\n * silently treat it as concrete.\n */\nexport const SEMVER_EXACT_REGEX =\n /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\nexport const SemverExactSchema = z\n .string()\n .regex(SEMVER_EXACT_REGEX, 'Expected exact semver `MAJOR.MINOR.PATCH` (no ranges, no tags)')\n .describe('Exact semver version');\nconst SemverExact = SemverExactSchema;\n\n/**\n * `dependsOn.modules.<moduleId>` — other Wildo modules that this\n * module requires. Install hard-fails by default if any required\n * module is missing (KD-13). Range resolution mirrors npm semver\n * semantics.\n */\nexport const ModuleManifestModuleDependenciesSchema = z.record(z.string().min(1), SemverRange);\nexport type ModuleManifestModuleDependencies = z.infer<typeof ModuleManifestModuleDependenciesSchema>;\n\n/**\n * `dependsOn.npm.dependencies` / `peerDependencies` — npm packages\n * the installed module imports at runtime. Install surfaces these\n * to the operator but does not edit `package.json` automatically\n * or install dependencies. The operator chooses the consuming package (KD-13).\n */\nexport const ModuleManifestNpmDependenciesSchema = z.strictObject({\n dependencies: z.record(z.string().min(1), SemverRange).default({}),\n peerDependencies: z.record(z.string().min(1), SemverRange).default({}),\n});\nexport type ModuleManifestNpmDependencies = z.infer<typeof ModuleManifestNpmDependenciesSchema>;\n\n/**\n * `dependsOn.capabilities` — required EngineCapability names. Adoption validates\n * each name against the canonical enum and requires enabled:true in the host's\n * authored engineCapabilities. This proves declared activation, not provider\n * health. Strings remain the artifact format; the CLI performs host comparison.\n */\nexport const ModuleManifestCapabilityDependenciesSchema = z.array(z.string().min(1));\nexport type ModuleManifestCapabilityDependencies = z.infer<typeof ModuleManifestCapabilityDependenciesSchema>;\n\nexport const ModuleManifestDependenciesSchema = z.strictObject({\n modules: ModuleManifestModuleDependenciesSchema.default({}),\n npm: ModuleManifestNpmDependenciesSchema.default({\n dependencies: {},\n peerDependencies: {},\n }),\n capabilities: ModuleManifestCapabilityDependenciesSchema.default([]),\n});\nexport type ModuleManifestDependencies = z.infer<typeof ModuleManifestDependenciesSchema>;\n\n/**\n * Engine compatibility — the framework version range this module\n * targets. Install hard-fails by default if the host app's framework\n * version is outside the range. Every installed saas-models copy reached from\n * application workspace framework dependencies must satisfy it; desired pins\n * and the running CLI version are not installed application evidence.\n */\nexport const ModuleManifestEngineSchema = z.strictObject({\n framework: SemverRange,\n});\nexport type ModuleManifestEngine = z.infer<typeof ModuleManifestEngineSchema>;\n\n/**\n * One registry NAME segment — a domain slug, or either half of a module id. Lowercase ASCII letters,\n * digits, `.`, `_`, `-`, not starting with `.`, `_` or `-` (npm's package-name alphabet).\n *\n * These names are not only identifiers: the CLI builds filesystem paths from them\n * (`.wildo-saas/generated/modules-artifacts/<domain>/<scope>/<name>/…`) and runs a RECURSIVE delete\n * on those paths to wipe a stale staging or extraction tree. Until 2026-09-25 the only rule on a\n * module id was \"contains a `/`\", so a manifest `id` of `a/../../../..` made `wildo registry publish`\n * resolve its staging root to the application root and delete it. The rule is total over both\n * places a name is authored: a module's manifest, and a domain created on the registry server.\n */\nconst REGISTRY_NAME_SEGMENT_REGEX = /^[a-z0-9][a-z0-9._-]*$/;\nconst REGISTRY_NAME_SEGMENT_MAX_LENGTH = 64;\n\nfunction isRegistryNameSegment(segment: string): boolean {\n return segment.length <= REGISTRY_NAME_SEGMENT_MAX_LENGTH && REGISTRY_NAME_SEGMENT_REGEX.test(segment);\n}\n\n/** A registry domain slug (`acme`, `internal`) — one {@link isRegistryNameSegment} segment. */\nexport const RegistryDomainSlugSchema = z.string().refine(isRegistryNameSegment, {\n error: 'a registry domain must be lowercase letters, digits, `.`, `_` or `-`, starting with a letter or digit (max 64)',\n});\n\n/** Whether `moduleId` is a well-formed `<scope>/<name>` module id. */\nexport function isModuleId(moduleId: string): boolean {\n const segments = moduleId.split('/');\n return segments.length === 2 && segments.every(isRegistryNameSegment);\n}\n\n/**\n * A module id: exactly `<scope>/<name>` (e.g. `acme/billing`), each half a registry name segment.\n * The id is also the lockfile key, the registry URL segment, and — through the CLI — a directory\n * path, so its shape is the path-safety rule, not a style preference.\n */\nexport const ModuleIdSchema = z.string().refine(isModuleId, {\n error: 'a module id must be `<scope>/<name>` (e.g. `acme/billing`), each half lowercase letters, digits, `.`, `_` or `-`',\n});\n\n/**\n * Where each layer's MODULE directories live in a Wildo SaaS application, relative to its root.\n *\n * Derived from the scaffold, not invented: the `add-module` scenario creates a module's directories\n * under `shared-lib/src/modules/<id>`, `specifications/src/modules/<id>`, `frontend/src/modules/<id>`\n * and `backend-api/src/modules/<id>`; `add-minion` and `add-worker-node` create a package directory\n * under `minions/<dir>` and `workers/<dir>`.\n *\n * A registry module may write only BELOW one of these roots, in a directory it names. That is the\n * whole of KD-12, stated positively. Until 2026-09-25 the boundary rule refused only absolute paths\n * and `..` segments, so `.`, `.git/hooks`, `.wildo-saas` and `wildo.saas.config.ts` were all valid\n * boundaries: a published module could overwrite the host's configuration or plant a git hook, and\n * `wildo registry publish` would ship the author's `.env` and `secrets.json`.\n */\nexport const MODULE_BOUNDARY_LAYER_ROOTS = {\n specifications: 'specifications/src/modules',\n shared: 'shared-lib/src/modules',\n frontend: 'frontend/src/modules',\n backend: 'backend-api/src/modules',\n minions: 'minions',\n workers: 'workers',\n /**\n * A PROVIDER module's directory, `providers/<ref>` (#2014), holding one workspace package per facet\n * (`providers/<ref>/backend`, `providers/<ref>/frontend`). Like a minion or a worker, each facet is its\n * own package, so the root is a top-level directory rather than a layer's `src/modules`: the facet's own\n * `package.json` is where its vendor SDK dependency lives, and a runtime depends only on the facet it runs.\n */\n providers: 'providers',\n} as const;\nexport type ModuleBoundaryLayer = keyof typeof MODULE_BOUNDARY_LAYER_ROOTS;\n\n/** Every boundary layer, in the canonical order of {@link MODULE_BOUNDARY_LAYER_ROOTS}. */\nexport const MODULE_BOUNDARY_LAYERS = Object.keys(MODULE_BOUNDARY_LAYER_ROOTS) as ModuleBoundaryLayer[];\n\n/**\n * Directory names a module artifact may never contain, at any depth: dependency installs are the\n * consumer's to produce, never the publisher's to ship.\n */\nconst MODULE_ARTIFACT_FORBIDDEN_SEGMENTS: ReadonlySet<string> = new Set(['node_modules']);\n\n/**\n * Whether one `/`-separated path segment may appear in a module boundary or a module artifact.\n *\n * A DOT-prefixed segment is refused outright. That single rule removes `.git` (hooks run code on the\n * next commit), `.env` (a minion or worker package carries its generated secrets there),\n * `.wildo-saas` (the companion and machine-local state) and `..` / `.` (traversal and \"the whole\n * root\"). npm applies the same default for the same reason: `.git` and the like never enter a\n * published package.\n */\nfunction isAllowedModulePathSegment(segment: string): boolean {\n return segment.length > 0 && !segment.startsWith('.') && !MODULE_ARTIFACT_FORBIDDEN_SEGMENTS.has(segment);\n}\n\n/**\n * Whether `appRelativePath` (POSIX separators, relative to the application root) may be carried by a\n * module artifact. Used on BOTH sides of the registry so they cannot disagree:\n *\n * - `wildo registry publish` skips a file that fails it, so a secret beside the module's source is\n * never packed;\n * - `wildo registry add` / `update` / `repair` refuse an artifact containing one, before writing\n * anything — a correctly published artifact cannot contain it, so its presence means the bytes\n * did not come from `publish`.\n */\nexport function isModuleArtifactPathAllowed(appRelativePath: string): boolean {\n if (appRelativePath.includes('\\\\') || appRelativePath.startsWith('/')) return false;\n return appRelativePath.split('/').every(isAllowedModulePathSegment);\n}\n\n/**\n * Whether `appRelativePath` is a file a registry module can OWN in an application: a path a module\n * artifact may carry ({@link isModuleArtifactPathAllowed}) that also sits strictly below one of the\n * layer roots ({@link MODULE_BOUNDARY_LAYER_ROOTS}) — because an install only ever writes inside a\n * boundary, and every boundary lives there.\n *\n * This is the rule for a path RECORDED as installed (`sections.modules.installed[*].files`), which\n * `remove` and `update` delete. `isModuleArtifactPathAllowed` alone would let a hand-edited or badly\n * merged entry name `wildo.saas.config.ts` or `backend-api/src/index.ts`, and removing the module would\n * then delete the application's own file.\n */\nexport function isModuleOwnedFilePath(appRelativePath: string): boolean {\n return isModuleArtifactPathAllowed(appRelativePath)\n && Object.values(MODULE_BOUNDARY_LAYER_ROOTS).some((root) => appRelativePath.startsWith(`${root}/`));\n}\n\n/**\n * One layer's `boundaries` entries: each a directory strictly BELOW that layer's root\n * ({@link MODULE_BOUNDARY_LAYER_ROOTS}), written with POSIX separators, every segment allowed by\n * {@link isModuleArtifactPathAllowed}. Validated at parse time, so the registry server refuses a\n * manifest declaring a wider boundary at publish and the CLI refuses one at install.\n */\nfunction moduleLayerBoundariesSchema(layer: ModuleBoundaryLayer) {\n const root = MODULE_BOUNDARY_LAYER_ROOTS[layer];\n return z.array(\n z.string().min(1).refine(\n (entry) => isModuleArtifactPathAllowed(entry) && entry.startsWith(`${root}/`) && entry.length > root.length + 1,\n {\n error:\n `boundaries.${layer} entries must name a directory below \\`${root}/\\` (e.g. \\`${root}/acme-billing\\`), ` +\n 'with `/` separators and no segment that starts with `.` or is `node_modules`',\n },\n ),\n ).default([]);\n}\n\n/**\n * `boundaries` — the per-layer surface the module is allowed to write into the host app source\n * (KD-12). Each layer is optional; modules typically declare only the layers they actually contain\n * (a backend-only module declares `backend` + `shared` and omits `frontend` / `specifications`).\n */\nexport const ModuleManifestBoundariesSchema = z.strictObject({\n specifications: moduleLayerBoundariesSchema('specifications'),\n shared: moduleLayerBoundariesSchema('shared'),\n frontend: moduleLayerBoundariesSchema('frontend'),\n backend: moduleLayerBoundariesSchema('backend'),\n minions: moduleLayerBoundariesSchema('minions'),\n workers: moduleLayerBoundariesSchema('workers'),\n providers: moduleLayerBoundariesSchema('providers'),\n});\nexport type ModuleManifestBoundaries = z.infer<typeof ModuleManifestBoundariesSchema>;\n\n/**\n * The boundaries schema declares every layer of {@link MODULE_BOUNDARY_LAYER_ROOTS} and nothing else: a\n * root added without its boundaries key (or the reverse) fails to compile here.\n */\nexport const BOUNDARIES_SCHEMA_COVERS_EVERY_LAYER: [keyof ModuleManifestBoundaries] extends [ModuleBoundaryLayer]\n ? [ModuleBoundaryLayer] extends [keyof ModuleManifestBoundaries] ? true : never\n : never = true;\n\n/**\n * Every boundary directory a manifest declares, across ALL layers, in canonical layer order.\n *\n * The one place a consumer turns `boundaries` into a list. Three consumers (the packager, `publish`, the\n * install fan-out) each used to spell the six layers out by hand, so a seventh layer — `providers`,\n * #2014 — would have been silently skipped by all three: an artifact that packs nothing, an install that\n * copies nothing, and a publish that reports success. Iterating the roots makes the next layer impossible\n * to forget.\n */\nexport function flattenModuleBoundaries(boundaries: ModuleManifestBoundaries | undefined): string[] {\n if (!boundaries) return [];\n return MODULE_BOUNDARY_LAYERS.flatMap((layer) => boundaries[layer] ?? []);\n}\n\n/**\n * How an installed module is REGISTERED in the host application — the composition scenario whose\n * registry edits make it a module the application knows about (#1755, #1773).\n *\n * Installing copies a module's files; registering it adds it to what the application declares. Without\n * registration the backend discovers `backend-api/src/modules/<dir>` by directory scan while every other\n * layer ignores the module, and a minion or worker is never declared at all, so it never runs.\n *\n * Each member is the framework scenario that IS the declaration of how that shape is registered, so\n * installation replays its edit steps rather than keeping a second copy of them:\n */\nexport enum ModuleRegistrationScenario {\n /** A domain module — its shared, specifications and frontend registries and `applicationModules`. */\n ADD_MODULE = 'add-module',\n /** A minion — `applicationMinions`, its provider scope, and the pnpm workspace member. */\n ADD_MINION = 'add-minion',\n /** A worker node — `applicationWorkers`, its provider scope, and the pnpm workspace member. */\n ADD_WORKER_NODE = 'add-worker-node',\n /**\n * A provider module (#2014): the pnpm workspace member, each facet package as a `workspace:*` dependency of the\n * runtimes that own that facet, and the provider's scope in each. Unlike the three above it is never carried by a\n * MANIFEST: the owners are the INSTALLING application's, so the installer derives the wiring and only its lockfile\n * records it ({@link ProviderWiringSchema}).\n */\n ADD_PROVIDER_PACKAGE = 'add-provider-package',\n}\n\n/**\n * An application-relative service directory as `wildo.saas.config.ts` declares it (`./backend-api`, `frontend`).\n * Restricted to plain path segments, with no `..`, because a wiring names files the installer and `remove` edit.\n */\nconst WIRED_SERVICE_PATH_PATTERN = /^(\\.\\/)?(?!\\.\\.?(\\/|$))[A-Za-z0-9_-][A-Za-z0-9._-]*(\\/(?!\\.\\.?(\\/|$))[A-Za-z0-9_-][A-Za-z0-9._-]*)*$/;\n\n/** A scoped provider facet package name: `@<scope>/provider-<ref>` or `@<scope>/provider-<ref>-frontend`. */\nconst PROVIDER_FACET_PACKAGE_NAME_PATTERN = /^@[a-z0-9][a-z0-9._-]*\\/provider-[a-z][a-z0-9-]*$/;\n\n/** One runtime a provider facet was wired into: its key in `services`, and its directory. */\nexport const ProviderWiringOwnerSchema = z.strictObject({\n serviceKey: z.string().regex(/^[A-Za-z][A-Za-z0-9_-]*$/),\n path: z.string().regex(WIRED_SERVICE_PATH_PATTERN),\n});\nexport type ProviderWiringOwner = z.infer<typeof ProviderWiringOwnerSchema>;\n\n/**\n * What an `add-provider-package` install wired, as the INSTALLER derived it from its own application (#2014):\n * - `backendOwners`: the backend services that depend on the backend facet and scope the provider;\n * - `frontendOwners`: the frontend services, of a type in the facet's `surfaces`, that depend on the browser facet\n * and scope the provider.\n *\n * Recorded so `remove` reverses exactly what install wrote, even after the application's services change.\n */\nexport const ProviderWiringSchema = z.strictObject({\n /** The backend facet's package name as installed (`@<scope>/provider-<ref>`); absent without a backend facet. */\n backendPackage: z.string().regex(PROVIDER_FACET_PACKAGE_NAME_PATTERN).optional(),\n backendOwners: z.array(ProviderWiringOwnerSchema),\n /** The browser facet's package name as installed; absent without a frontend facet. */\n frontendPackage: z.string().regex(PROVIDER_FACET_PACKAGE_NAME_PATTERN).optional(),\n frontendOwners: z.array(ProviderWiringOwnerSchema),\n});\nexport type ProviderWiring = z.infer<typeof ProviderWiringSchema>;\n\n/**\n * The four layers of a domain module, named as its manifest boundaries name them. A domain-module\n * registration may cover a SUBSET (#1773): a backend+shared module registers its shared entries and an\n * `applicationModules` entry bound to the backend only.\n */\nexport enum DomainModuleLayer {\n SHARED = 'shared',\n SPECIFICATIONS = 'specifications',\n FRONTEND = 'frontend',\n BACKEND = 'backend',\n}\n\n/**\n * Every domain layer is a boundary layer, spelled the same (#1773 review): the enum restates four keys of\n * `MODULE_BOUNDARY_LAYER_ROOTS`, so a member added or renamed on one side alone fails to compile here.\n */\nexport const DOMAIN_LAYERS_ARE_BOUNDARY_LAYERS: `${DomainModuleLayer}` extends ModuleBoundaryLayer ? true : never = true;\n\n/** Canonical order, so one set of layers has one spelling. */\nexport const DOMAIN_MODULE_LAYERS: readonly DomainModuleLayer[] = [\n DomainModuleLayer.SHARED,\n DomainModuleLayer.SPECIFICATIONS,\n DomainModuleLayer.FRONTEND,\n DomainModuleLayer.BACKEND,\n];\n\n/**\n * The scenarios' variable patterns for the directory and camelCase stem their REGISTRY edits use\n * (`moduleId`/`moduleCamel`, `minionDir`/`minionCamel`, `workerDir`/`workerCamel` share them). Mirrored\n * here because the manifest is validated where no scenario is loaded (the registry server); a test pins\n * them equal to the scenarios' own declarations.\n */\nexport const MODULE_REGISTRATION_MODULE_ID_PATTERN = /^[a-z][a-z0-9-]*$/;\nexport const MODULE_REGISTRATION_MODULE_CAMEL_PATTERN = /^[a-z][A-Za-z0-9]*$/;\n\n/**\n * A module's registration: the scenario plus the ONLY values its registry edits read. It carries no\n * code — the installer renders the scenario's own edit steps with these values, both restricted to\n * identifier alphabets (and anything else a scenario needs is DERIVED by the installer, never read from\n * the manifest) — so a manifest cannot smuggle text into the host's files. Derived by\n * `wildo registry publish` from the publishing application (every edit already present), never authored.\n */\nexport const ModuleManifestRegistrationSchema = z\n .strictObject({\n scenario: z.enum(ModuleRegistrationScenario),\n /** The module's directory under its scenario's root: each layer's modules root, `minions/` or `workers/` (kebab-case). */\n moduleId: z.string().regex(MODULE_REGISTRATION_MODULE_ID_PATTERN),\n /** The camelCase stem the scenario's entries are named from (`<stem>Module`, the minion/worker bucket key). */\n moduleCamel: z.string().regex(MODULE_REGISTRATION_MODULE_CAMEL_PATTERN),\n /**\n * `add-module` only: the layers the module covers, when it is NOT all four (absent = the whole module,\n * so one module has one spelling). Must include `backend` or `frontend`: an `applicationModules` entry\n * binds the module to at least one service.\n */\n layers: z.array(z.enum(DomainModuleLayer)).min(1).optional(),\n /** `add-provider-package` only, and required there: what the installer wired. */\n providerWiring: ProviderWiringSchema.optional(),\n })\n .superRefine((registration, context) => {\n const isProviderWiring = registration.scenario === ModuleRegistrationScenario.ADD_PROVIDER_PACKAGE;\n if (isProviderWiring !== (registration.providerWiring !== undefined)) {\n context.addIssue({ code: 'custom', path: ['providerWiring'], message: 'an add-provider-package registration carries its wiring, and no other registration does' });\n }\n const layers = registration.layers;\n if (layers === undefined) return;\n if (registration.scenario !== ModuleRegistrationScenario.ADD_MODULE) {\n context.addIssue({ code: 'custom', path: ['layers'], message: 'only an add-module registration covers layers' });\n return;\n }\n const canonical = DOMAIN_MODULE_LAYERS.filter((layer) => layers.includes(layer));\n if (canonical.length !== layers.length || canonical.some((layer, index) => layer !== layers[index])) {\n context.addIssue({ code: 'custom', path: ['layers'], message: `layers must be distinct and in canonical order (${DOMAIN_MODULE_LAYERS.join(', ')})` });\n }\n if (canonical.length === DOMAIN_MODULE_LAYERS.length) {\n context.addIssue({ code: 'custom', path: ['layers'], message: 'a whole module omits `layers`' });\n }\n if (!layers.includes(DomainModuleLayer.BACKEND) && !layers.includes(DomainModuleLayer.FRONTEND)) {\n context.addIssue({ code: 'custom', path: ['layers'], message: 'a registered module must include the backend or the frontend layer' });\n }\n });\nexport type ModuleManifestRegistration = z.infer<typeof ModuleManifestRegistrationSchema>;\n\n/**\n * What a registry module IS: the one discriminator every consumer branches on (#2014).\n *\n * The registry was built to carry application FEATURES. On 2026-09-29 Paul decided it also carries\n * PROVIDERS, distributed shadcn-style: a provider's source is copied into the application, which owns it\n * from then on. The Activepieces/Sim-generated catalogue that used to hold providers is archived (#2012).\n * The two kinds differ in what they may contain and in how they are registered, so the difference is\n * named rather than inferred from which boundaries happen to be present.\n */\nexport enum ModuleKind {\n /**\n * An application feature: domain module layers, a minion or a worker. Every module published before\n * #2014 is one, which is why a manifest that omits `kind` reads as FEATURE.\n */\n FEATURE = 'feature',\n /**\n * One vendor's integration, installed at `providers/<ref>/` with ONE workspace package per facet\n * ({@link ProviderModuleFacet}): each carries its own SDK dependencies in its own `package.json`, and\n * each runtime depends only on the facet it runs. It may fill an engine capability when its tier is\n * EXTENSION.\n *\n * What a provider module never is:\n * - system-of-record facets: a separate lane, delivered by `@wildo-ai/systems-of-record` (#2013);\n * - an INFRASTRUCTURE provider (object storage, databases, brokers, scanners): those are executed by the\n * PLATFORM (apps-manager) with platform administrator credentials, so application-owned code must never\n * be one. They stay in the platform's own package, selected by the application's declaration (#1692).\n */\n PROVIDER = 'provider',\n}\n\n/**\n * The runtime facets a provider module can ship, each as its own workspace package under\n * `providers/<ref>/<facet>/` (Paul, 2026-09-29).\n *\n * One package per facet, as the engine itself separates `external-connectors-private` (backend) from\n * `external-connectors-public` (browser):\n * - a Node SDK never reaches a frontend install, and a browser SDK never reaches a backend's;\n * - each runtime owner depends on exactly the facet it runs, so imports stay unambiguous;\n * - the browser facet cannot reach backend code unless its own manifest declares that dependency, which\n * publish refuses. Isolation is a property of the dependency graph, not of scanning import statements.\n *\n * There is deliberately no INFRASTRUCTURE member: see {@link ModuleKind.PROVIDER}.\n */\nexport enum ProviderModuleFacet {\n /** Loaded by the application backend, the companion and minions. Workers load no providers. */\n BACKEND = 'backend',\n /** Loaded by the frontend services whose type is listed in its `surfaces`. */\n FRONTEND = 'frontend',\n}\n\n/**\n * How far a published provider has been taken since it was adopted (#2012).\n *\n * There is deliberately no SEEDED member: a seed (a catalogue transposition in the archive) is never\n * published, so the registry only ever holds providers someone adopted.\n */\nexport enum ProviderModuleMaturity {\n /** Copied from a seed or written by hand, reviewed, and owned by Wildo. Not yet met the real vendor. */\n ADOPTED = 'adopted',\n /** Has executed against the real vendor it names, with the proof recorded on the tracker. */\n PROVEN = 'proven',\n}\n\n/**\n * The tiers a PROVIDER module may declare. MAIN is the engine's own set: its origin is always ENGINE,\n * and the tier rule (`provider-tier-rule.shared.utils.ts`) refuses MAIN from anywhere else.\n */\nconst PROVIDER_MODULE_TIERS = [ProviderTier.CATALOGUE, ProviderTier.EXTENSION] as const;\n\n/**\n * The `provider` block of a PROVIDER module: what the registry must know about the provider WITHOUT\n * executing its code, which is what server-side search and listing need.\n *\n * Deliberately NOT carried here, so there is one source for each fact:\n * - the ENGINE capabilities it fills: derived from `providerCapabilities` through the same closed map the\n * engine uses (`engineSlotsBoundByCapabilities`);\n * - the compliance profile, secrets contract, operations and auth: they live in the module's code\n * (`BackendProviderModule`), which discovery already reads. Publish checks that this block agrees\n * with that code (#2014).\n *\n * Fields for per-provider skills, OpenAPI binding and change monitoring are added by the issues that\n * read them (#2026, #2028, #2027), not before.\n */\nexport const ModuleManifestProviderSchema = z\n .strictObject({\n /**\n * The provider ref: the application's scope key, the directory under `providers/`, and the suffix of\n * the package name. One kebab-case segment, the same alphabet as a registration directory.\n */\n ref: z.string().regex(MODULE_REGISTRATION_MODULE_ID_PATTERN),\n /** The vendor's identity, shared by every ref of one vendor. Defaults to the ref, as provider metadata does. */\n vendor: z.string().regex(MODULE_REGISTRATION_MODULE_ID_PATTERN).optional(),\n /** CATALOGUE (operations only) or EXTENSION (fills an engine capability). */\n tier: z.enum(PROVIDER_MODULE_TIERS),\n /** The provider capability tokens the module declares, as its `BackendProviderModule` does. */\n providerCapabilities: z.array(z.string().min(1)).default([]),\n /**\n * The facets the module ships, each a package at `providers/<ref>/<facet>/`. At least one.\n * Keys are {@link ProviderModuleFacet} members.\n */\n facets: z.strictObject({\n [ProviderModuleFacet.BACKEND]: z.strictObject({}).optional(),\n [ProviderModuleFacet.FRONTEND]: z\n .strictObject({\n /**\n * Which frontend surfaces the browser facet serves: the application, the public website, the\n * documentation site. Installation adds the facet's package only to frontend services of these\n * types. The engine composes a separate provider registry per surface, which is why it is named.\n */\n surfaces: z.array(z.enum(AppFrontendType)).min(1),\n })\n .optional(),\n }),\n maturity: z.enum(ProviderModuleMaturity),\n /** Where the adopted source came from, when it came from a catalogue seed. */\n seed: ProviderCatalogueProvenanceSchema.optional(),\n })\n .superRefine((provider, context) => {\n if (providerModuleFacets(provider).length === 0) {\n context.addIssue({ code: 'custom', path: ['facets'], message: 'a provider module ships a backend facet, a frontend facet, or both' });\n }\n const surfaces = provider.facets[ProviderModuleFacet.FRONTEND]?.surfaces ?? [];\n if (new Set(surfaces).size !== surfaces.length) {\n context.addIssue({ code: 'custom', path: ['facets', ProviderModuleFacet.FRONTEND, 'surfaces'], message: 'each frontend surface is listed once' });\n }\n const boundSlots = engineSlotsBoundByCapabilities(provider.providerCapabilities);\n if (provider.tier === ProviderTier.CATALOGUE && boundSlots.length > 0) {\n context.addIssue({\n code: 'custom',\n path: ['providerCapabilities'],\n message:\n `tier CATALOGUE may claim only open capability tokens, but ${boundSlots.map((entry) => `\"${entry.capability}\" binds the ${entry.slot} engine slot`).join(', ')}. `\n + 'Declare EXTENSION to fill an engine capability.',\n });\n }\n if (provider.tier === ProviderTier.EXTENSION && boundSlots.length === 0) {\n context.addIssue({\n code: 'custom',\n path: ['providerCapabilities'],\n message: 'tier EXTENSION fills an engine capability, so at least one provider capability must bind an engine slot',\n });\n }\n });\nexport type ModuleManifestProvider = z.infer<typeof ModuleManifestProviderSchema>;\n\n/**\n * The facets a provider module ships, in canonical enum order, and the package directory of each.\n * Install, publish and registration all read these rather than re-deriving the layout.\n */\nexport function providerModuleFacets(provider: Pick<ModuleManifestProvider, 'facets'>): ProviderModuleFacet[] {\n return Object.values(ProviderModuleFacet).filter((facet) => provider.facets[facet] !== undefined);\n}\n\n/** `providers/<ref>/<facet>`: where one facet's workspace package lives. */\nexport function providerModuleFacetDirectory(ref: string, facet: ProviderModuleFacet): string {\n return `${MODULE_BOUNDARY_LAYER_ROOTS.providers}/${ref}/${facet}`;\n}\n\n/** The engine capabilities a provider module fills, derived rather than declared. */\nexport function engineCapabilitiesFilledByProviderModule(provider: ModuleManifestProvider): EngineCapability[] {\n return [...new Set(engineSlotsBoundByCapabilities(provider.providerCapabilities).map((entry) => entry.slot))];\n}\n\n/** The file a module's manifest lives in: at the root of every artifact, of a checkout module, and of a publishing application. */\nexport const MODULE_MANIFEST_FILE_NAME = 'wildo.module.json';\n\n/**\n * Top-level manifest. Stored at `wildo.module.json` inside every\n * artifact zip and at the registry server alongside its version row.\n *\n * `id` semantics: `<scope>/<name>` (e.g. `acme/billing`), separate\n * from the registry domain (e.g. `internal`). The id is reused as the lockfile entry key\n * (`sections.modules.installed[<id>]`).\n */\nexport const ModuleManifestSchema = z.object({\n id: ModuleIdSchema,\n version: SemverExact,\n /** What the module is. Absent reads as FEATURE: every module published before #2014 is one. */\n kind: z.enum(ModuleKind).default(ModuleKind.FEATURE),\n /** Present exactly when `kind` is PROVIDER. */\n provider: ModuleManifestProviderSchema.optional(),\n description: z.string().optional(),\n /** Free-form description of what the module ships, for `wildo registry info`. */\n longDescription: z.string().optional(),\n engine: ModuleManifestEngineSchema.optional(),\n boundaries: ModuleManifestBoundariesSchema.optional(),\n dependsOn: ModuleManifestDependenciesSchema.optional(),\n /** How the module is registered in a host application — see {@link ModuleManifestRegistrationSchema}. */\n registration: ModuleManifestRegistrationSchema.optional(),\n /**\n * Free-form key/value bag for non-load-bearing metadata\n * (homepage, license, repository). Phase 1 keeps it open;\n * Phase 6 may tighten it for `wildo registry publish` UX.\n */\n meta: z.record(z.string().min(1), z.unknown()).optional(),\n}).catchall(z.unknown()).superRefine((manifest, context) => {\n const providerBoundaries = manifest.boundaries?.providers ?? [];\n if (manifest.kind !== ModuleKind.PROVIDER) {\n if (manifest.provider !== undefined) {\n context.addIssue({ code: 'custom', path: ['provider'], message: 'only a module of kind `provider` carries a provider block' });\n }\n if (providerBoundaries.length > 0) {\n context.addIssue({ code: 'custom', path: ['boundaries', 'providers'], message: 'only a module of kind `provider` writes below `providers/`' });\n }\n return;\n }\n if (manifest.provider === undefined) {\n context.addIssue({ code: 'custom', path: ['provider'], message: 'a module of kind `provider` carries a provider block' });\n return;\n }\n // A provider's owners are the INSTALLING application's, so the installer derives its wiring (#2014). A manifest\n // that carried one would be telling an installer which of its files to edit.\n if (manifest.registration !== undefined) {\n context.addIssue({ code: 'custom', path: ['registration'], message: 'a provider module carries no registration: each installing application derives its own wiring' });\n }\n // A provider module IS one package directory: exactly `providers/<ref>`, and nothing in any other layer,\n // so installing it can never write into the application's own modules, minions or workers.\n const expected = `${MODULE_BOUNDARY_LAYER_ROOTS.providers}/${manifest.provider.ref}`;\n if (providerBoundaries.length !== 1 || providerBoundaries[0] !== expected) {\n context.addIssue({\n code: 'custom',\n path: ['boundaries', 'providers'],\n message: `a provider module's boundaries are exactly [\\`${expected}\\`] (found ${JSON.stringify(providerBoundaries)})`,\n });\n }\n const otherLayers = MODULE_BOUNDARY_LAYERS.filter((layer) => layer !== 'providers' && (manifest.boundaries?.[layer] ?? []).length > 0);\n if (otherLayers.length > 0) {\n context.addIssue({\n code: 'custom',\n path: ['boundaries'],\n message: `a provider module writes only below \\`providers/\\`, but it also declares ${otherLayers.join(', ')}`,\n });\n }\n});\nexport type ModuleManifest = z.infer<typeof ModuleManifestSchema>;\n"]}
@@ -0,0 +1,80 @@
1
+ /**
2
+ * What a registry search may filter on, and what a hit says about the module (#2014, epic #2012).
3
+ *
4
+ * Once providers are distributed through the registry, "find me a module" becomes "find me a provider that fills
5
+ * this engine capability". The three filters are the manifest's own axes: its KIND, the ENGINE CAPABILITY a provider
6
+ * fills (derived from its provider capabilities, never declared twice), and a provider's MATURITY.
7
+ *
8
+ * One predicate, {@link moduleManifestMatchesSearchFilter}, answers the question for every source a search reads —
9
+ * the registry server's stored manifests and a framework checkout's `providers-registry/` (#2015) — so the two
10
+ * cannot disagree about what a filter means.
11
+ */
12
+ import { z } from 'zod';
13
+ import { EngineCapability } from '@wildo-ai/saas-models';
14
+ import { ModuleKind, ProviderModuleMaturity, type ModuleManifest } from './module-manifest.schemas';
15
+ /**
16
+ * The filters a search accepts. Each absent filter matches everything.
17
+ *
18
+ * `engineCapability` and `maturity` are provider axes, so either one excludes every FEATURE module: a feature module
19
+ * fills no engine capability and has no maturity.
20
+ */
21
+ export declare const ModuleSearchFilterSchema: z.ZodObject<{
22
+ kind: z.ZodOptional<z.ZodEnum<typeof ModuleKind>>;
23
+ engineCapability: z.ZodOptional<z.ZodEnum<typeof EngineCapability>>;
24
+ maturity: z.ZodOptional<z.ZodEnum<typeof ProviderModuleMaturity>>;
25
+ }, z.core.$strict>;
26
+ export type ModuleSearchFilter = z.infer<typeof ModuleSearchFilterSchema>;
27
+ /** The query-string keys, in the order a client writes them. One list, so the server and the client name them alike. */
28
+ export declare const MODULE_SEARCH_FILTER_KEYS: readonly ["kind", "engineCapability", "maturity"];
29
+ /** Whether a manifest passes every filter given. */
30
+ export declare function moduleManifestMatchesSearchFilter(manifest: ModuleManifest, filter: ModuleSearchFilter): boolean;
31
+ /**
32
+ * A search's filters as query-string pairs, only for the filters given. The client writes them; the server reads them
33
+ * back through {@link ModuleSearchFilterSchema}, which refuses an unknown value rather than ignoring it: a filter that
34
+ * silently matched everything would answer "every module" to a question about one kind.
35
+ */
36
+ export declare function moduleSearchFilterQueryPairs(filter: ModuleSearchFilter): Array<[string, string]>;
37
+ /**
38
+ * What a search hit says about a provider module, so a list can be read without an `info` per hit.
39
+ *
40
+ * `engineCapabilities` is read as strings and narrowed to the members THIS client knows (#2014 re-review I1): a
41
+ * registry newer than the client may name a capability added since, and refusing the whole search over it would turn
42
+ * a vocabulary step into an outage. A member the client does not know is dropped from the hit, which is also the only
43
+ * thing the client could do with it: no filter it can express names that member.
44
+ *
45
+ * Known limit, kept deliberately: `kind` and `maturity` stay strict. An unknown member there is not a detail to drop
46
+ * but a module the client cannot classify at all (a kind it would install how? a maturity it would rank where?), so a
47
+ * newer registry adding one still fails the search, and the remedy is updating the CLI.
48
+ */
49
+ export declare const ModuleSearchHitProviderSchema: z.ZodObject<{
50
+ ref: z.ZodString;
51
+ maturity: z.ZodEnum<typeof ProviderModuleMaturity>;
52
+ engineCapabilities: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<EngineCapability[], string[]>>;
53
+ }, z.core.$strip>;
54
+ export type ModuleSearchHitProvider = z.infer<typeof ModuleSearchHitProviderSchema>;
55
+ /**
56
+ * One search hit on the wire. `kind` and `provider` are optional because a registry deployed before #2014 sends
57
+ * neither; a client reads an absent `kind` as FEATURE, as the manifest does.
58
+ */
59
+ export declare const ModuleSearchHitSchema: z.ZodObject<{
60
+ moduleId: z.ZodString;
61
+ description: z.ZodOptional<z.ZodString>;
62
+ latestVersion: z.ZodString;
63
+ kind: z.ZodOptional<z.ZodEnum<typeof ModuleKind>>;
64
+ provider: z.ZodOptional<z.ZodObject<{
65
+ ref: z.ZodString;
66
+ maturity: z.ZodEnum<typeof ProviderModuleMaturity>;
67
+ engineCapabilities: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<EngineCapability[], string[]>>;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$strip>;
70
+ export type ModuleSearchHit = z.infer<typeof ModuleSearchHitSchema>;
71
+ /**
72
+ * Whether a HIT passes the filters, read from the facts the hit carries. The client re-applies it to what a server
73
+ * answers (#2014 review F9): a registry deployed before #2014 ignores the filter parameters and answers every module,
74
+ * and a filtered search must not then fail open. A hit with no `kind` is a FEATURE module, and one with no `provider`
75
+ * facts matches no provider filter, so an old server's answer to a provider search is empty rather than everything.
76
+ */
77
+ export declare function moduleSearchHitMatchesFilter(hit: Pick<ModuleSearchHit, 'kind' | 'provider'>, filter: ModuleSearchFilter): boolean;
78
+ /** The `kind` and `provider` fields of a hit, from the module's manifest. */
79
+ export declare function moduleSearchHitFacts(manifest: ModuleManifest): Pick<ModuleSearchHit, 'kind' | 'provider'>;
80
+ //# sourceMappingURL=module-search.schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-search.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/module-search.schemas.ts"],"names":[],"mappings":"AA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2
+ * What a registry search may filter on, and what a hit says about the module (#2014, epic #2012).
3
+ *
4
+ * Once providers are distributed through the registry, "find me a module" becomes "find me a provider that fills
5
+ * this engine capability". The three filters are the manifest's own axes: its KIND, the ENGINE CAPABILITY a provider
6
+ * fills (derived from its provider capabilities, never declared twice), and a provider's MATURITY.
7
+ *
8
+ * One predicate, {@link moduleManifestMatchesSearchFilter}, answers the question for every source a search reads —
9
+ * the registry server's stored manifests and a framework checkout's `providers-registry/` (#2015) — so the two
10
+ * cannot disagree about what a filter means.
11
+ */
12
+ import { z } from 'zod';
13
+ import { EngineCapability } from '@wildo-ai/saas-models';
14
+ import { ModuleKind, ProviderModuleMaturity, engineCapabilitiesFilledByProviderModule, } from './module-manifest.schemas.js';
15
+ /**
16
+ * The filters a search accepts. Each absent filter matches everything.
17
+ *
18
+ * `engineCapability` and `maturity` are provider axes, so either one excludes every FEATURE module: a feature module
19
+ * fills no engine capability and has no maturity.
20
+ */
21
+ export const ModuleSearchFilterSchema = z.strictObject({
22
+ kind: z.enum(ModuleKind).optional(),
23
+ engineCapability: z.enum(EngineCapability).optional(),
24
+ maturity: z.enum(ProviderModuleMaturity).optional(),
25
+ });
26
+ /** The query-string keys, in the order a client writes them. One list, so the server and the client name them alike. */
27
+ export const MODULE_SEARCH_FILTER_KEYS = ['kind', 'engineCapability', 'maturity'];
28
+ /** Whether a manifest passes every filter given. */
29
+ export function moduleManifestMatchesSearchFilter(manifest, filter) {
30
+ const kind = manifest.kind ?? ModuleKind.FEATURE;
31
+ if (filter.kind !== undefined && kind !== filter.kind)
32
+ return false;
33
+ if (filter.engineCapability === undefined && filter.maturity === undefined)
34
+ return true;
35
+ const provider = manifest.provider;
36
+ if (kind !== ModuleKind.PROVIDER || provider === undefined)
37
+ return false;
38
+ if (filter.maturity !== undefined && provider.maturity !== filter.maturity)
39
+ return false;
40
+ if (filter.engineCapability !== undefined && !engineCapabilitiesFilledByProviderModule(provider).includes(filter.engineCapability))
41
+ return false;
42
+ return true;
43
+ }
44
+ /**
45
+ * A search's filters as query-string pairs, only for the filters given. The client writes them; the server reads them
46
+ * back through {@link ModuleSearchFilterSchema}, which refuses an unknown value rather than ignoring it: a filter that
47
+ * silently matched everything would answer "every module" to a question about one kind.
48
+ */
49
+ export function moduleSearchFilterQueryPairs(filter) {
50
+ return MODULE_SEARCH_FILTER_KEYS.flatMap((key) => (filter[key] === undefined ? [] : [[key, String(filter[key])]]));
51
+ }
52
+ const KNOWN_ENGINE_CAPABILITIES = new Set(Object.values(EngineCapability));
53
+ /**
54
+ * What a search hit says about a provider module, so a list can be read without an `info` per hit.
55
+ *
56
+ * `engineCapabilities` is read as strings and narrowed to the members THIS client knows (#2014 re-review I1): a
57
+ * registry newer than the client may name a capability added since, and refusing the whole search over it would turn
58
+ * a vocabulary step into an outage. A member the client does not know is dropped from the hit, which is also the only
59
+ * thing the client could do with it: no filter it can express names that member.
60
+ *
61
+ * Known limit, kept deliberately: `kind` and `maturity` stay strict. An unknown member there is not a detail to drop
62
+ * but a module the client cannot classify at all (a kind it would install how? a maturity it would rank where?), so a
63
+ * newer registry adding one still fails the search, and the remedy is updating the CLI.
64
+ */
65
+ export const ModuleSearchHitProviderSchema = z.object({
66
+ ref: z.string().min(1),
67
+ maturity: z.enum(ProviderModuleMaturity),
68
+ engineCapabilities: z.array(z.string()).transform((values) => values.filter((value) => KNOWN_ENGINE_CAPABILITIES.has(value))),
69
+ });
70
+ /**
71
+ * One search hit on the wire. `kind` and `provider` are optional because a registry deployed before #2014 sends
72
+ * neither; a client reads an absent `kind` as FEATURE, as the manifest does.
73
+ */
74
+ export const ModuleSearchHitSchema = z.object({
75
+ moduleId: z.string().min(1),
76
+ description: z.string().optional(),
77
+ latestVersion: z.string(),
78
+ kind: z.enum(ModuleKind).optional(),
79
+ provider: ModuleSearchHitProviderSchema.optional(),
80
+ });
81
+ /**
82
+ * Whether a HIT passes the filters, read from the facts the hit carries. The client re-applies it to what a server
83
+ * answers (#2014 review F9): a registry deployed before #2014 ignores the filter parameters and answers every module,
84
+ * and a filtered search must not then fail open. A hit with no `kind` is a FEATURE module, and one with no `provider`
85
+ * facts matches no provider filter, so an old server's answer to a provider search is empty rather than everything.
86
+ */
87
+ export function moduleSearchHitMatchesFilter(hit, filter) {
88
+ const kind = hit.kind ?? ModuleKind.FEATURE;
89
+ if (filter.kind !== undefined && kind !== filter.kind)
90
+ return false;
91
+ if (filter.engineCapability === undefined && filter.maturity === undefined)
92
+ return true;
93
+ if (kind !== ModuleKind.PROVIDER || hit.provider === undefined)
94
+ return false;
95
+ if (filter.maturity !== undefined && hit.provider.maturity !== filter.maturity)
96
+ return false;
97
+ if (filter.engineCapability !== undefined && !hit.provider.engineCapabilities.includes(filter.engineCapability))
98
+ return false;
99
+ return true;
100
+ }
101
+ /** The `kind` and `provider` fields of a hit, from the module's manifest. */
102
+ export function moduleSearchHitFacts(manifest) {
103
+ const kind = manifest.kind ?? ModuleKind.FEATURE;
104
+ const provider = manifest.provider;
105
+ return {
106
+ kind,
107
+ ...(kind === ModuleKind.PROVIDER && provider !== undefined
108
+ ? { provider: { ref: provider.ref, maturity: provider.maturity, engineCapabilities: engineCapabilitiesFilledByProviderModule(provider) } }
109
+ : {}),
110
+ };
111
+ }
112
+ //# sourceMappingURL=module-search.schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-search.schemas.js","sourceRoot":"","sources":["../../../../src/registry/module-search.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,wCAAwC,GAEzC,MAAM,2BAA2B,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,YAAY,CAAC;IACrD,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,Q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, epic #2012).\n *\n * Once providers are distributed through the registry, \"find me a module\" becomes \"find me a provider that fills\n * this engine capability\". The three filters are the manifest's own axes: its KIND, the ENGINE CAPABILITY a provider\n * fills (derived from its provider capabilities, never declared twice), and a provider's MATURITY.\n *\n * One predicate, {@link moduleManifestMatchesSearchFilter}, answers the question for every source a search reads —\n * the registry server's stored manifests and a framework checkout's `providers-registry/` (#2015) — so the two\n * cannot disagree about what a filter means.\n */\nimport { z } from 'zod';\nimport { EngineCapability } from '@wildo-ai/saas-models';\nimport {\n ModuleKind,\n ProviderModuleMaturity,\n engineCapabilitiesFilledByProviderModule,\n type ModuleManifest,\n} from './module-manifest.schemas';\n\n/**\n * The filters a search accepts. Each absent filter matches everything.\n *\n * `engineCapability` and `maturity` are provider axes, so either one excludes every FEATURE module: a feature module\n * fills no engine capability and has no maturity.\n */\nexport const ModuleSearchFilterSchema = z.strictObject({\n kind: z.enum(ModuleKind).optional(),\n engineCapability: z.enum(EngineCapability).optional(),\n maturity: z.enum(ProviderModuleMaturity).optional(),\n});\nexport type ModuleSearchFilter = z.infer<typeof ModuleSearchFilterSchema>;\n\n/** The query-string keys, in the order a client writes them. One list, so the server and the client name them alike. */\nexport const MODULE_SEARCH_FILTER_KEYS = ['kind', 'engineCapability', 'maturity'] as const satisfies readonly (keyof ModuleSearchFilter)[];\n\n/** Whether a manifest passes every filter given. */\nexport function moduleManifestMatchesSearchFilter(manifest: ModuleManifest, filter: ModuleSearchFilter): boolean {\n const kind = manifest.kind ?? ModuleKind.FEATURE;\n if (filter.kind !== undefined && kind !== filter.kind) return false;\n if (filter.engineCapability === undefined && filter.maturity === undefined) return true;\n const provider = manifest.provider;\n if (kind !== ModuleKind.PROVIDER || provider === undefined) return false;\n if (filter.maturity !== undefined && provider.maturity !== filter.maturity) return false;\n if (filter.engineCapability !== undefined && !engineCapabilitiesFilledByProviderModule(provider).includes(filter.engineCapability)) return false;\n return true;\n}\n\n/**\n * A search's filters as query-string pairs, only for the filters given. The client writes them; the server reads them\n * back through {@link ModuleSearchFilterSchema}, which refuses an unknown value rather than ignoring it: a filter that\n * silently matched everything would answer \"every module\" to a question about one kind.\n */\nexport function moduleSearchFilterQueryPairs(filter: ModuleSearchFilter): Array<[string, string]> {\n return MODULE_SEARCH_FILTER_KEYS.flatMap((key) => (filter[key] === undefined ? [] : [[key, String(filter[key])] as [string, string]]));\n}\n\nconst KNOWN_ENGINE_CAPABILITIES: ReadonlySet<string> = new Set(Object.values(EngineCapability));\n\n/**\n * What a search hit says about a provider module, so a list can be read without an `info` per hit.\n *\n * `engineCapabilities` is read as strings and narrowed to the members THIS client knows (#2014 re-review I1): a\n * registry newer than the client may name a capability added since, and refusing the whole search over it would turn\n * a vocabulary step into an outage. A member the client does not know is dropped from the hit, which is also the only\n * thing the client could do with it: no filter it can express names that member.\n *\n * Known limit, kept deliberately: `kind` and `maturity` stay strict. An unknown member there is not a detail to drop\n * but a module the client cannot classify at all (a kind it would install how? a maturity it would rank where?), so a\n * newer registry adding one still fails the search, and the remedy is updating the CLI.\n */\nexport const ModuleSearchHitProviderSchema = z.object({\n ref: z.string().min(1),\n maturity: z.enum(ProviderModuleMaturity),\n engineCapabilities: z.array(z.string()).transform((values) => values.filter((value): value is EngineCapability => KNOWN_ENGINE_CAPABILITIES.has(value))),\n});\nexport type ModuleSearchHitProvider = z.infer<typeof ModuleSearchHitProviderSchema>;\n\n/**\n * One search hit on the wire. `kind` and `provider` are optional because a registry deployed before #2014 sends\n * neither; a client reads an absent `kind` as FEATURE, as the manifest does.\n */\nexport const ModuleSearchHitSchema = z.object({\n moduleId: z.string().min(1),\n description: z.string().optional(),\n latestVersion: z.string(),\n kind: z.enum(ModuleKind).optional(),\n provider: ModuleSearchHitProviderSchema.optional(),\n});\nexport type ModuleSearchHit = z.infer<typeof ModuleSearchHitSchema>;\n\n/**\n * Whether a HIT passes the filters, read from the facts the hit carries. The client re-applies it to what a server\n * answers (#2014 review F9): a registry deployed before #2014 ignores the filter parameters and answers every module,\n * and a filtered search must not then fail open. A hit with no `kind` is a FEATURE module, and one with no `provider`\n * facts matches no provider filter, so an old server's answer to a provider search is empty rather than everything.\n */\nexport function moduleSearchHitMatchesFilter(hit: Pick<ModuleSearchHit, 'kind' | 'provider'>, filter: ModuleSearchFilter): boolean {\n const kind = hit.kind ?? ModuleKind.FEATURE;\n if (filter.kind !== undefined && kind !== filter.kind) return false;\n if (filter.engineCapability === undefined && filter.maturity === undefined) return true;\n if (kind !== ModuleKind.PROVIDER || hit.provider === undefined) return false;\n if (filter.maturity !== undefined && hit.provider.maturity !== filter.maturity) return false;\n if (filter.engineCapability !== undefined && !hit.provider.engineCapabilities.includes(filter.engineCapability)) return false;\n return true;\n}\n\n/** The `kind` and `provider` fields of a hit, from the module's manifest. */\nexport function moduleSearchHitFacts(manifest: ModuleManifest): Pick<ModuleSearchHit, 'kind' | 'provider'> {\n const kind = manifest.kind ?? ModuleKind.FEATURE;\n const provider = manifest.provider;\n return {\n kind,\n ...(kind === ModuleKind.PROVIDER && provider !== undefined\n ? { provider: { ref: provider.ref, maturity: provider.maturity, engineCapabilities: engineCapabilitiesFilledByProviderModule(provider) } }\n : {}),\n };\n}\n"]}
@@ -19,6 +19,14 @@ export declare const RegistryConfigEntrySchema: z.ZodObject<{
19
19
  id: z.ZodString;
20
20
  /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */
21
21
  url: z.ZodURL;
22
+ /**
23
+ * Allow plain `http://` to this registry although it is not on a loopback host (#1764). The CLI
24
+ * otherwise refuses: over plain HTTP the bearer key and the module source travel in cleartext, and
25
+ * the artifact digest cannot help, because the server that serves the bytes also reports the digest.
26
+ * Named per registry on purpose, so the exception is visible in review and reaches no other registry.
27
+ * Loopback (`localhost`, `127.0.0.0/8`, `::1`) never needs it.
28
+ */
29
+ allowInsecureHttp: z.ZodOptional<z.ZodBoolean>;
22
30
  }, z.core.$strict>;
23
31
  export type RegistryConfigEntry = z.infer<typeof RegistryConfigEntrySchema>;
24
32
  export declare const RegistryConfigSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -26,6 +34,14 @@ export declare const RegistryConfigSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
26
34
  id: z.ZodString;
27
35
  /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */
28
36
  url: z.ZodURL;
37
+ /**
38
+ * Allow plain `http://` to this registry although it is not on a loopback host (#1764). The CLI
39
+ * otherwise refuses: over plain HTTP the bearer key and the module source travel in cleartext, and
40
+ * the artifact digest cannot help, because the server that serves the bytes also reports the digest.
41
+ * Named per registry on purpose, so the exception is visible in review and reaches no other registry.
42
+ * Loopback (`localhost`, `127.0.0.0/8`, `::1`) never needs it.
43
+ */
44
+ allowInsecureHttp: z.ZodOptional<z.ZodBoolean>;
29
45
  }, z.core.$strict>>>;
30
46
  export type RegistryConfig = z.infer<typeof RegistryConfigSchema>;
31
47
  //# sourceMappingURL=registry-config.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;IACpC,qEAAqE;;IAErE,+DAA+D;;kBAE/D,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;IAP/B,qEAAqE;;IAErE,+DAA+D;;oBAKiB,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;IACpC,qEAAqE;;IAErE,+DAA+D;;IAE/D;;;;;;OAMG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;IAf/B,qEAAqE;;IAErE,+DAA+D;;IAE/D;;;;;;OAMG;;oBAK6E,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -19,6 +19,14 @@ export const RegistryConfigEntrySchema = z.strictObject({
19
19
  id: z.string().min(1),
20
20
  /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */
21
21
  url: z.url(),
22
+ /**
23
+ * Allow plain `http://` to this registry although it is not on a loopback host (#1764). The CLI
24
+ * otherwise refuses: over plain HTTP the bearer key and the module source travel in cleartext, and
25
+ * the artifact digest cannot help, because the server that serves the bytes also reports the digest.
26
+ * Named per registry on purpose, so the exception is visible in review and reaches no other registry.
27
+ * Loopback (`localhost`, `127.0.0.0/8`, `::1`) never needs it.
28
+ */
29
+ allowInsecureHttp: z.boolean().optional(),
22
30
  });
23
31
  export const RegistryConfigSchema = z.array(RegistryConfigEntrySchema).default([]);
24
32
  //# sourceMappingURL=registry-config.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry-config.schemas.js","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,qEAAqE;IACrE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,+DAA+D;IAC/D,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE;CACb,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC","sourcesContent":["/**\n * App-level registry configuration — the\n * `wildo.saas.config.ts > moduleRegistries` array.\n *\n * Phase 0.5 lands the schema only. The actual `defineSaasConfig`\n * extension (KD-16) lands in Phase 4 alongside `wildo registry\n * login`/`whoami` so that authoring + auth-config land in the same\n * pass. Phase 1 may also add per-entry policy fields (e.g. default\n * resolution behavior, scope, secret refs) — keep this surface\n * minimal until those flows are designed.\n *\n * Credentials are intentionally NOT recorded here — they live in\n * per-machine CLI storage (KD-11). The app-level config only points\n * at registry endpoints.\n */\n\nimport { z } from 'zod';\n\nexport const RegistryConfigEntrySchema = z.strictObject({\n /** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */\n id: z.string().min(1),\n /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */\n url: z.url(),\n});\nexport type RegistryConfigEntry = z.infer<typeof RegistryConfigEntrySchema>;\n\nexport const RegistryConfigSchema = z.array(RegistryConfigEntrySchema).default([]);\nexport type RegistryConfig = z.infer<typeof RegistryConfigSchema>;\n"]}
1
+ {"version":3,"file":"registry-config.schemas.js","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,qEAAqE;IACrE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,+DAA+D;IAC/D,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE;IACZ;;;;;;OAMG;IACH,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC","sourcesContent":["/**\n * App-level registry configuration — the\n * `wildo.saas.config.ts > moduleRegistries` array.\n *\n * Phase 0.5 lands the schema only. The actual `defineSaasConfig`\n * extension (KD-16) lands in Phase 4 alongside `wildo registry\n * login`/`whoami` so that authoring + auth-config land in the same\n * pass. Phase 1 may also add per-entry policy fields (e.g. default\n * resolution behavior, scope, secret refs) — keep this surface\n * minimal until those flows are designed.\n *\n * Credentials are intentionally NOT recorded here — they live in\n * per-machine CLI storage (KD-11). The app-level config only points\n * at registry endpoints.\n */\n\nimport { z } from 'zod';\n\nexport const RegistryConfigEntrySchema = z.strictObject({\n /** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */\n id: z.string().min(1),\n /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */\n url: z.url(),\n /**\n * Allow plain `http://` to this registry although it is not on a loopback host (#1764). The CLI\n * otherwise refuses: over plain HTTP the bearer key and the module source travel in cleartext, and\n * the artifact digest cannot help, because the server that serves the bytes also reports the digest.\n * Named per registry on purpose, so the exception is visible in review and reaches no other registry.\n * Loopback (`localhost`, `127.0.0.0/8`, `::1`) never needs it.\n */\n allowInsecureHttp: z.boolean().optional(),\n});\nexport type RegistryConfigEntry = z.infer<typeof RegistryConfigEntrySchema>;\n\nexport const RegistryConfigSchema = z.array(RegistryConfigEntrySchema).default([]);\nexport type RegistryConfig = z.infer<typeof RegistryConfigSchema>;\n"]}
@@ -10,7 +10,49 @@
10
10
  * context (operator instructions, links, retry hints) when they
11
11
  * surface these errors.
12
12
  */
13
- export type RegistryErrorCode = 'WILDO_REGISTRY_ARTIFACT_INTEGRITY_MISMATCH' | 'WILDO_REGISTRY_MODULE_NOT_FOUND' | 'WILDO_REGISTRY_VERSION_NOT_FOUND' | 'WILDO_REGISTRY_VERSION_YANKED' | 'WILDO_REGISTRY_DEPENDENCY_UNSATISFIED' | 'WILDO_REGISTRY_BOUNDARY_VIOLATION' | 'WILDO_REGISTRY_CONFLICT_LOCAL_EDIT' | 'WILDO_REGISTRY_AUTH_REQUIRED' | 'WILDO_REGISTRY_AUTH_FORBIDDEN' | 'WILDO_REGISTRY_LOCKFILE_REPAIRABLE' | 'WILDO_REGISTRY_PROVIDER_SYNC_FAILED' | 'WILDO_REGISTRY_UNEXPECTED_STATUS' | 'WILDO_REGISTRY_MALFORMED_PAYLOAD';
13
+ export declare enum RegistryErrorCode {
14
+ /** Downloaded bytes do not hash to the digest the registry resolved. */
15
+ ARTIFACT_INTEGRITY_MISMATCH = "WILDO_REGISTRY_ARTIFACT_INTEGRITY_MISMATCH",
16
+ /** No module with that id in the domain. */
17
+ MODULE_NOT_FOUND = "WILDO_REGISTRY_MODULE_NOT_FOUND",
18
+ /** No release satisfies the requested range or tag. */
19
+ VERSION_NOT_FOUND = "WILDO_REGISTRY_VERSION_NOT_FOUND",
20
+ /** The requested release is yanked. */
21
+ VERSION_YANKED = "WILDO_REGISTRY_VERSION_YANKED",
22
+ /** A module requires dependencies the application does not provide. */
23
+ DEPENDENCY_UNSATISFIED = "WILDO_REGISTRY_DEPENDENCY_UNSATISFIED",
24
+ /** A module would write outside its declared boundaries. */
25
+ BOUNDARY_VIOLATION = "WILDO_REGISTRY_BOUNDARY_VIOLATION",
26
+ /** An installed file carries local edits an update would overwrite. */
27
+ CONFLICT_LOCAL_EDIT = "WILDO_REGISTRY_CONFLICT_LOCAL_EDIT",
28
+ /** The request needs a registry key and carried none. */
29
+ AUTH_REQUIRED = "WILDO_REGISTRY_AUTH_REQUIRED",
30
+ /**
31
+ * The request carried a key and the registry refused it: revoked, expired, mistyped, or belonging to a
32
+ * suspended organization. Distinct from `AUTH_REQUIRED` because the remedy differs: that one is "log
33
+ * in", this one is "the key you logged in with no longer works".
34
+ */
35
+ CREDENTIAL_REJECTED = "WILDO_REGISTRY_CREDENTIAL_REJECTED",
36
+ /**
37
+ * The registry refused the request for volume: most often the per-source failed-credential guard every
38
+ * Wildo backend applies (#1759), after repeated rejected keys. Retrying immediately extends it.
39
+ */
40
+ RATE_LIMITED = "WILDO_REGISTRY_RATE_LIMITED",
41
+ /** A yank of a yanked release, or an unyank of a live one (#1758): the release is already in that state. */
42
+ YANK_STATE_CONFLICT = "WILDO_REGISTRY_YANK_STATE_CONFLICT",
43
+ /** The key is valid but not allowed to perform this operation. */
44
+ AUTH_FORBIDDEN = "WILDO_REGISTRY_AUTH_FORBIDDEN",
45
+ /** The modules lockfile is inconsistent in a way `wildo registry repair-lockfile` can fix. */
46
+ LOCKFILE_REPAIRABLE = "WILDO_REGISTRY_LOCKFILE_REPAIRABLE",
47
+ /** The source change succeeded but provider materialization afterwards failed (install, update or remove). */
48
+ PROVIDER_SYNC_FAILED = "WILDO_REGISTRY_PROVIDER_SYNC_FAILED",
49
+ /** The registry answered with an HTTP status the client has no meaning for. */
50
+ UNEXPECTED_STATUS = "WILDO_REGISTRY_UNEXPECTED_STATUS",
51
+ /** A 2xx response carried a payload the contract cannot parse. */
52
+ MALFORMED_PAYLOAD = "WILDO_REGISTRY_MALFORMED_PAYLOAD",
53
+ /** The exchange ran out of time; `RegistryTimeoutPhase` says where (#1763). */
54
+ REQUEST_TIMEOUT = "WILDO_REGISTRY_REQUEST_TIMEOUT"
55
+ }
14
56
  export declare class RegistryError extends Error {
15
57
  readonly code: RegistryErrorCode;
16
58
  constructor(code: RegistryErrorCode, message: string);
@@ -54,6 +96,58 @@ export declare class RegistryAuthRequiredError extends RegistryError {
54
96
  readonly registryUrl: string;
55
97
  constructor(registryUrl: string);
56
98
  }
99
+ export declare class RegistryCredentialRejectedError extends RegistryError {
100
+ readonly registryUrl: string;
101
+ constructor(registryUrl: string);
102
+ }
103
+ export declare class RegistryRateLimitedError extends RegistryError {
104
+ readonly registryUrl: string;
105
+ readonly action: string;
106
+ /** From `Retry-After`, when the registry sent one in seconds. */
107
+ readonly retryAfterSeconds: number | undefined;
108
+ constructor(registryUrl: string, action: string,
109
+ /** From `Retry-After`, when the registry sent one in seconds. */
110
+ retryAfterSeconds: number | undefined);
111
+ }
112
+ /** The two release-state verbs (#1758); the value is also the route segment. */
113
+ export declare enum RegistryYankVerb {
114
+ YANK = "yank",
115
+ UNYANK = "unyank"
116
+ }
117
+ /**
118
+ * The registry refused a yank or unyank because the release is already in the requested state (409).
119
+ * Typed so a caller can report it as the no-op it is rather than a failure of the registry.
120
+ */
121
+ export declare class RegistryYankStateConflictError extends RegistryError {
122
+ readonly moduleId: string;
123
+ readonly version: string;
124
+ readonly verb: RegistryYankVerb;
125
+ constructor(moduleId: string, version: string, verb: RegistryYankVerb);
126
+ }
127
+ /**
128
+ * Stable, client-branchable codes the registry server puts on a refusal, carried on the wire as
129
+ * `error.details.code` (the engine's documented channel for a switch-on-code refusal: `code` is the one
130
+ * context key its client sanitizer admits for that purpose). Server and client both import this enum, so
131
+ * the value has one source.
132
+ */
133
+ export declare enum RegistryRefusalCode {
134
+ /**
135
+ * A yank of a yanked release, or an unyank of a live one: the release is ALREADY in the requested
136
+ * state, so the request is a no-op a caller may report as done.
137
+ */
138
+ RELEASE_STATE = "registry_release_state"
139
+ }
140
+ /**
141
+ * Whether a 409 body from a yank/unyank route is the release-state refusal rather than any other conflict
142
+ * (#1758 re-review R3).
143
+ *
144
+ * Both routes answer 409 for two different things: the release is already in the requested state, or the
145
+ * registry gave up re-deciding after repeated lost optimistic checks (`version_conflict`). Only the first
146
+ * is a no-op; reading every 409 as one told an operator yanking a compromised release that it was already
147
+ * yanked. It keys on the registry's OWN code rather than the engine's generic `conflict` reference, which
148
+ * about twenty other refusals share, so a future conflict on these routes cannot be mistaken for it.
149
+ */
150
+ export declare function isRegistryReleaseStateConflictBody(body: unknown): boolean;
57
151
  export declare class RegistryAuthForbiddenError extends RegistryError {
58
152
  readonly action: string;
59
153
  constructor(action: string);
@@ -92,7 +186,7 @@ export declare class RegistryUnexpectedStatusError extends RegistryError {
92
186
  constructor(registryUrl: string, status: number, statusText: string, action: string);
93
187
  }
94
188
  /**
95
- * Raised by `RegistryServerClient` (and `RegistryCompanionClient`) when
189
+ * Raised by `RegistryServerClient` when
96
190
  * a 2xx response carries a payload the canonical Zod schema can't parse.
97
191
  * Without this, malformed payloads previously surfaced as bare `Error`
98
192
  * (`'Registry resolve returned a malformed payload at ...'`), which
@@ -105,5 +199,35 @@ export declare class RegistryMalformedPayloadError extends RegistryError {
105
199
  readonly detail: string;
106
200
  constructor(registryUrl: string, action: string, detail: string);
107
201
  }
202
+ /**
203
+ * Where a registry exchange ran out of time (#1763). The two call for different remedies: no response
204
+ * at all points at the registry or the network path; a transfer that STALLED part-way is a slow link,
205
+ * and is measured as silence between chunks rather than as the size of the artifact.
206
+ */
207
+ export declare enum RegistryTimeoutPhase {
208
+ /** No response (status + headers) arrived within the request budget. */
209
+ AWAITING_RESPONSE = "awaiting_response",
210
+ /** The response started, then no bytes arrived for the idle budget. */
211
+ TRANSFER_STALLED = "transfer_stalled",
212
+ /**
213
+ * The response (status + headers) arrived, but a small metadata body did not finish within the same
214
+ * request budget. Not `TRANSFER_STALLED`: a metadata body has no idle budget, only the request's.
215
+ */
216
+ READING_BODY = "reading_body"
217
+ }
218
+ /**
219
+ * A registry request that timed out, in the typed vocabulary, so `isRegistryError(err)` handlers see it.
220
+ * Before #1763 a timeout escaped as a bare `Error` (before the response) or a raw `AbortError` (during
221
+ * the body), and a JSON body cut short was reported as a MALFORMED payload.
222
+ */
223
+ export declare class RegistryRequestTimeoutError extends RegistryError {
224
+ readonly registryUrl: string;
225
+ readonly action: string;
226
+ readonly phase: RegistryTimeoutPhase;
227
+ readonly timeoutMs: number;
228
+ constructor(registryUrl: string, action: string, phase: RegistryTimeoutPhase, timeoutMs: number);
229
+ }
230
+ /** True for the error a fetch (or a body read) raises when its abort signal fires. */
231
+ export declare function isAbortLikeError(err: unknown): boolean;
108
232
  export declare function isRegistryError(value: unknown): value is RegistryError;
109
233
  //# sourceMappingURL=registry-errors.d.ts.map
@@ -1 +1 @@
1
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