@vibesdotdev/integrations 0.0.0-stage → 1.0.0-rc.2

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 (242) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +100 -2
  3. package/dist/ai/ai.cloud.plugin.d.ts +5 -0
  4. package/dist/ai/ai.cloud.plugin.d.ts.map +1 -0
  5. package/dist/ai/ai.cloud.plugin.js +67 -0
  6. package/dist/ai/ai.cloud.plugin.js.map +1 -0
  7. package/dist/ai/ai.plugin.d.ts +5 -0
  8. package/dist/ai/ai.plugin.d.ts.map +1 -0
  9. package/dist/ai/ai.plugin.js +97 -0
  10. package/dist/ai/ai.plugin.js.map +1 -0
  11. package/dist/base/base.plugin.d.ts +10 -0
  12. package/dist/base/base.plugin.d.ts.map +1 -0
  13. package/dist/base/base.plugin.js +23 -0
  14. package/dist/base/base.plugin.js.map +1 -0
  15. package/dist/base/index.d.ts +13 -0
  16. package/dist/base/index.d.ts.map +1 -0
  17. package/dist/base/index.js +15 -0
  18. package/dist/base/index.js.map +1 -0
  19. package/dist/base/resolver.d.ts +13 -0
  20. package/dist/base/resolver.d.ts.map +1 -0
  21. package/dist/base/resolver.js +30 -0
  22. package/dist/base/resolver.js.map +1 -0
  23. package/dist/base/schemas.d.ts +167 -0
  24. package/dist/base/schemas.d.ts.map +1 -0
  25. package/dist/base/schemas.js +48 -0
  26. package/dist/base/schemas.js.map +1 -0
  27. package/dist/catalog/index.d.ts +6 -0
  28. package/dist/catalog/index.d.ts.map +1 -0
  29. package/dist/catalog/index.js +6 -0
  30. package/dist/catalog/index.js.map +1 -0
  31. package/dist/catalog/integration-catalog.capability.d.ts +14 -0
  32. package/dist/catalog/integration-catalog.capability.d.ts.map +1 -0
  33. package/dist/catalog/integration-catalog.capability.js +23 -0
  34. package/dist/catalog/integration-catalog.capability.js.map +1 -0
  35. package/dist/catalog/integration-catalog.descriptor.d.ts +6 -0
  36. package/dist/catalog/integration-catalog.descriptor.d.ts.map +1 -0
  37. package/dist/catalog/integration-catalog.descriptor.js +11 -0
  38. package/dist/catalog/integration-catalog.descriptor.js.map +1 -0
  39. package/dist/catalog/integration-catalog.exposure.d.ts +62 -0
  40. package/dist/catalog/integration-catalog.exposure.d.ts.map +1 -0
  41. package/dist/catalog/integration-catalog.exposure.js +101 -0
  42. package/dist/catalog/integration-catalog.exposure.js.map +1 -0
  43. package/dist/catalog/integration-catalog.http.d.ts +9 -0
  44. package/dist/catalog/integration-catalog.http.d.ts.map +1 -0
  45. package/dist/catalog/integration-catalog.http.js +58 -0
  46. package/dist/catalog/integration-catalog.http.js.map +1 -0
  47. package/dist/catalog/integration-catalog.kind.d.ts +36 -0
  48. package/dist/catalog/integration-catalog.kind.d.ts.map +1 -0
  49. package/dist/catalog/integration-catalog.kind.js +14 -0
  50. package/dist/catalog/integration-catalog.kind.js.map +1 -0
  51. package/dist/catalog/queries.d.ts +6 -0
  52. package/dist/catalog/queries.d.ts.map +1 -0
  53. package/dist/catalog/queries.js +29 -0
  54. package/dist/catalog/queries.js.map +1 -0
  55. package/dist/client/helper.d.ts +5 -0
  56. package/dist/client/helper.d.ts.map +1 -0
  57. package/dist/client/helper.js +6 -0
  58. package/dist/client/helper.js.map +1 -0
  59. package/dist/client/index.d.ts +4 -0
  60. package/dist/client/index.d.ts.map +1 -0
  61. package/dist/client/index.js +3 -0
  62. package/dist/client/index.js.map +1 -0
  63. package/dist/client/integrations.runtime-client.browser.d.ts +10 -0
  64. package/dist/client/integrations.runtime-client.browser.d.ts.map +1 -0
  65. package/dist/client/integrations.runtime-client.browser.js +13 -0
  66. package/dist/client/integrations.runtime-client.browser.js.map +1 -0
  67. package/dist/client/integrations.runtime-client.d.ts +25 -0
  68. package/dist/client/integrations.runtime-client.d.ts.map +1 -0
  69. package/dist/client/integrations.runtime-client.descriptor.d.ts +4 -0
  70. package/dist/client/integrations.runtime-client.descriptor.d.ts.map +1 -0
  71. package/dist/client/integrations.runtime-client.descriptor.js +13 -0
  72. package/dist/client/integrations.runtime-client.descriptor.js.map +1 -0
  73. package/dist/client/integrations.runtime-client.js +41 -0
  74. package/dist/client/integrations.runtime-client.js.map +1 -0
  75. package/dist/docs/integrations.docs.descriptor.d.ts +4 -0
  76. package/dist/docs/integrations.docs.descriptor.d.ts.map +1 -0
  77. package/dist/docs/integrations.docs.descriptor.js +43 -0
  78. package/dist/docs/integrations.docs.descriptor.js.map +1 -0
  79. package/dist/docs/integrations.providers.docs.descriptor.d.ts +4 -0
  80. package/dist/docs/integrations.providers.docs.descriptor.d.ts.map +1 -0
  81. package/dist/docs/integrations.providers.docs.descriptor.js +32 -0
  82. package/dist/docs/integrations.providers.docs.descriptor.js.map +1 -0
  83. package/dist/http/fetch-with-retry.d.ts +27 -0
  84. package/dist/http/fetch-with-retry.d.ts.map +1 -0
  85. package/dist/http/fetch-with-retry.js +76 -0
  86. package/dist/http/fetch-with-retry.js.map +1 -0
  87. package/dist/index.d.ts +24 -0
  88. package/dist/index.d.ts.map +1 -0
  89. package/dist/index.js +16 -0
  90. package/dist/index.js.map +1 -0
  91. package/dist/integrations.browser.plugin.d.ts +11 -0
  92. package/dist/integrations.browser.plugin.d.ts.map +1 -0
  93. package/dist/integrations.browser.plugin.js +26 -0
  94. package/dist/integrations.browser.plugin.js.map +1 -0
  95. package/dist/integrations.consumer.plugin.d.ts +3 -0
  96. package/dist/integrations.consumer.plugin.d.ts.map +1 -0
  97. package/dist/integrations.consumer.plugin.js +12 -0
  98. package/dist/integrations.consumer.plugin.js.map +1 -0
  99. package/dist/integrations.plugin.d.ts +10 -0
  100. package/dist/integrations.plugin.d.ts.map +1 -0
  101. package/dist/integrations.plugin.js +67 -0
  102. package/dist/integrations.plugin.js.map +1 -0
  103. package/dist/kinds/integration-store.context.descriptor.d.ts +31 -0
  104. package/dist/kinds/integration-store.context.descriptor.d.ts.map +1 -0
  105. package/dist/kinds/integration-store.context.descriptor.js +8 -0
  106. package/dist/kinds/integration-store.context.descriptor.js.map +1 -0
  107. package/dist/kinds/integration.kind.d.ts +74 -0
  108. package/dist/kinds/integration.kind.d.ts.map +1 -0
  109. package/dist/kinds/integration.kind.js +542 -0
  110. package/dist/kinds/integration.kind.js.map +1 -0
  111. package/dist/kinds/integration.store.d.ts +30 -0
  112. package/dist/kinds/integration.store.d.ts.map +1 -0
  113. package/dist/kinds/integration.store.js +295 -0
  114. package/dist/kinds/integration.store.js.map +1 -0
  115. package/dist/schemas/boundary.d.ts +7 -0
  116. package/dist/schemas/boundary.d.ts.map +1 -0
  117. package/dist/schemas/boundary.js +16 -0
  118. package/dist/schemas/boundary.js.map +1 -0
  119. package/dist/schemas/catalog.d.ts +135 -0
  120. package/dist/schemas/catalog.d.ts.map +1 -0
  121. package/dist/schemas/catalog.js +13 -0
  122. package/dist/schemas/catalog.js.map +1 -0
  123. package/dist/schemas/credential-resolution.d.ts +35 -0
  124. package/dist/schemas/credential-resolution.d.ts.map +1 -0
  125. package/dist/schemas/credential-resolution.js +14 -0
  126. package/dist/schemas/credential-resolution.js.map +1 -0
  127. package/dist/schemas/http-retry.d.ts +9 -0
  128. package/dist/schemas/http-retry.d.ts.map +1 -0
  129. package/dist/schemas/http-retry.js +8 -0
  130. package/dist/schemas/http-retry.js.map +1 -0
  131. package/dist/schemas/integration-connection.d.ts +79 -0
  132. package/dist/schemas/integration-connection.d.ts.map +1 -0
  133. package/dist/schemas/integration-connection.js +55 -0
  134. package/dist/schemas/integration-connection.js.map +1 -0
  135. package/dist/schemas/integration-descriptor.d.ts +358 -0
  136. package/dist/schemas/integration-descriptor.d.ts.map +1 -0
  137. package/dist/schemas/integration-descriptor.js +153 -0
  138. package/dist/schemas/integration-descriptor.js.map +1 -0
  139. package/dist/schemas/oauth-state.d.ts +30 -0
  140. package/dist/schemas/oauth-state.d.ts.map +1 -0
  141. package/dist/schemas/oauth-state.js +26 -0
  142. package/dist/schemas/oauth-state.js.map +1 -0
  143. package/dist/schemas/settings.d.ts +9 -0
  144. package/dist/schemas/settings.d.ts.map +1 -0
  145. package/dist/schemas/settings.js +8 -0
  146. package/dist/schemas/settings.js.map +1 -0
  147. package/dist/schemas/store.d.ts +68 -0
  148. package/dist/schemas/store.d.ts.map +1 -0
  149. package/dist/schemas/store.js +31 -0
  150. package/dist/schemas/store.js.map +1 -0
  151. package/dist/server/defaults/system-defaults.kind.d.ts +8 -0
  152. package/dist/server/defaults/system-defaults.kind.d.ts.map +1 -0
  153. package/dist/server/defaults/system-defaults.kind.js +13 -0
  154. package/dist/server/defaults/system-defaults.kind.js.map +1 -0
  155. package/dist/server/integration-oauth.d.ts +44 -0
  156. package/dist/server/integration-oauth.d.ts.map +1 -0
  157. package/dist/server/integration-oauth.js +56 -0
  158. package/dist/server/integration-oauth.js.map +1 -0
  159. package/dist/server/integration-secrets.d.ts +11 -0
  160. package/dist/server/integration-secrets.d.ts.map +1 -0
  161. package/dist/server/integration-secrets.js +98 -0
  162. package/dist/server/integration-secrets.js.map +1 -0
  163. package/dist/server/oauth-state.d.ts +74 -0
  164. package/dist/server/oauth-state.d.ts.map +1 -0
  165. package/dist/server/oauth-state.js +208 -0
  166. package/dist/server/oauth-state.js.map +1 -0
  167. package/dist/server/schemas/integration-oauth.d.ts +32 -0
  168. package/dist/server/schemas/integration-oauth.d.ts.map +1 -0
  169. package/dist/server/schemas/integration-oauth.js +20 -0
  170. package/dist/server/schemas/integration-oauth.js.map +1 -0
  171. package/dist/server/schemas/integration-secrets.d.ts +165 -0
  172. package/dist/server/schemas/integration-secrets.d.ts.map +1 -0
  173. package/dist/server/schemas/integration-secrets.js +72 -0
  174. package/dist/server/schemas/integration-secrets.js.map +1 -0
  175. package/dist/server/schemas/system-defaults.d.ts +124 -0
  176. package/dist/server/schemas/system-defaults.d.ts.map +1 -0
  177. package/dist/server/schemas/system-defaults.js +48 -0
  178. package/dist/server/schemas/system-defaults.js.map +1 -0
  179. package/dist/server/system-defaults.d.ts +20 -0
  180. package/dist/server/system-defaults.d.ts.map +1 -0
  181. package/dist/server/system-defaults.js +58 -0
  182. package/dist/server/system-defaults.js.map +1 -0
  183. package/dist/settings/context.d.ts +11 -0
  184. package/dist/settings/context.d.ts.map +1 -0
  185. package/dist/settings/context.js +19 -0
  186. package/dist/settings/context.js.map +1 -0
  187. package/dist/settings/system-settings-reader.context.descriptor.d.ts +43 -0
  188. package/dist/settings/system-settings-reader.context.descriptor.d.ts.map +1 -0
  189. package/dist/settings/system-settings-reader.context.descriptor.js +23 -0
  190. package/dist/settings/system-settings-reader.context.descriptor.js.map +1 -0
  191. package/dist/status/integration-connect.availability.d.ts +16 -0
  192. package/dist/status/integration-connect.availability.d.ts.map +1 -0
  193. package/dist/status/integration-connect.availability.js +14 -0
  194. package/dist/status/integration-connect.availability.js.map +1 -0
  195. package/dist/status/integration-connection-status.d.ts +18 -0
  196. package/dist/status/integration-connection-status.d.ts.map +1 -0
  197. package/dist/status/integration-connection-status.js +17 -0
  198. package/dist/status/integration-connection-status.js.map +1 -0
  199. package/dist/status/integration-connection.capability.d.ts +19 -0
  200. package/dist/status/integration-connection.capability.d.ts.map +1 -0
  201. package/dist/status/integration-connection.capability.js +15 -0
  202. package/dist/status/integration-connection.capability.js.map +1 -0
  203. package/dist/status/integration-connection.kind.d.ts +55 -0
  204. package/dist/status/integration-connection.kind.d.ts.map +1 -0
  205. package/dist/status/integration-connection.kind.js +31 -0
  206. package/dist/status/integration-connection.kind.js.map +1 -0
  207. package/dist/status/integration-connection.queries.d.ts +25 -0
  208. package/dist/status/integration-connection.queries.d.ts.map +1 -0
  209. package/dist/status/integration-connection.queries.js +65 -0
  210. package/dist/status/integration-connection.queries.js.map +1 -0
  211. package/dist/svelte/components/IntegrationsCatalog.svelte +201 -0
  212. package/dist/svelte/components/IntegrationsCatalog.svelte.d.ts +5 -0
  213. package/dist/svelte/components/IntegrationsCatalog.svelte.d.ts.map +1 -0
  214. package/dist/svelte/components/IntegrationsLoader.svelte +46 -0
  215. package/dist/svelte/components/IntegrationsLoader.svelte.d.ts +12 -0
  216. package/dist/svelte/components/IntegrationsLoader.svelte.d.ts.map +1 -0
  217. package/dist/svelte/connect-action.d.ts +20 -0
  218. package/dist/svelte/connect-action.d.ts.map +1 -0
  219. package/dist/svelte/connect-action.js +40 -0
  220. package/dist/svelte/docs/integrations-svelte.catalog.docs.descriptor.d.ts +4 -0
  221. package/dist/svelte/docs/integrations-svelte.catalog.docs.descriptor.d.ts.map +1 -0
  222. package/dist/svelte/docs/integrations-svelte.catalog.docs.descriptor.js +30 -0
  223. package/dist/svelte/index.d.ts +12 -0
  224. package/dist/svelte/index.d.ts.map +1 -0
  225. package/dist/svelte/index.js +7 -0
  226. package/dist/svelte/integrations-svelte.plugin.d.ts +10 -0
  227. package/dist/svelte/integrations-svelte.plugin.d.ts.map +1 -0
  228. package/dist/svelte/integrations-svelte.plugin.js +16 -0
  229. package/dist/svelte/loaders.d.ts +17 -0
  230. package/dist/svelte/loaders.d.ts.map +1 -0
  231. package/dist/svelte/loaders.js +17 -0
  232. package/dist/svelte/runtime.d.ts +12 -0
  233. package/dist/svelte/runtime.d.ts.map +1 -0
  234. package/dist/svelte/runtime.js +11 -0
  235. package/dist/svelte/state.svelte.d.ts +30 -0
  236. package/dist/svelte/state.svelte.d.ts.map +1 -0
  237. package/dist/svelte/state.svelte.js +133 -0
  238. package/dist/svelte/styles.css +2 -0
  239. package/dist/svelte/types.d.ts +13 -0
  240. package/dist/svelte/types.d.ts.map +1 -0
  241. package/dist/svelte/types.js +1 -0
  242. package/package.json +223 -4
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Integrations Base Schemas
3
+ *
4
+ * Owned by integrations/core as the base schema subpath.
5
+ * Descriptor schemas for integration substrate and provider variants.
6
+ */
7
+ import * as z from 'zod/v4';
8
+ import { CredentialReferenceSchema } from '@vibesdotdev/kernel/credentials';
9
+ import { IntegrationProviderDescriptorSchema as CoreIntegrationProviderDescriptorSchema } from "../schemas/integration-descriptor.js";
10
+ export { CredentialReferenceSchema } from '@vibesdotdev/kernel/credentials';
11
+ /**
12
+ * AWS-style credentials block (used by S3, SecretsManager, etc).
13
+ */
14
+ export const AwsCredentialsSchema = z.object({
15
+ accessKeyId: z.union([z.string(), CredentialReferenceSchema]),
16
+ secretAccessKey: z.union([z.string(), CredentialReferenceSchema]),
17
+ sessionToken: z.union([z.string(), CredentialReferenceSchema]).optional(),
18
+ });
19
+ /**
20
+ * Base descriptor schema for integration/substrate runtime kind.
21
+ *
22
+ * A substrate is a platform-level integration that provides one or more
23
+ * sub-connectors (e.g., S3, SecretsManager, CloudFront).
24
+ */
25
+ export const IntegrationSubstrateDescriptorSchema = z.object({
26
+ id: z.string(),
27
+ kind: z.literal('integration/substrate'),
28
+ name: z.string().optional(),
29
+ description: z.string().optional(),
30
+ provider: z.string(),
31
+ /** Sub-connectors provided by this substrate */
32
+ subConnectors: z.array(z.string()).optional(),
33
+ /** Hardware targets (consumer, cloud) */
34
+ hardware: z.array(z.enum(['consumer', 'cloud', 'server'])).optional(),
35
+ /** Whether this substrate is currently enabled */
36
+ enabled: z.boolean().default(true),
37
+ });
38
+ /**
39
+ * Descriptor for a sub-connector within a substrate.
40
+ * Sub-connectors are the actual service clients (e.g., S3, SecretsManager).
41
+ */
42
+ export const IntegrationProviderDescriptorSchema = CoreIntegrationProviderDescriptorSchema.extend({
43
+ /** Parent substrate ID */
44
+ substrateId: z.string(),
45
+ /** Service type identifier */
46
+ service: z.string()
47
+ });
48
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/base/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACN,mCAAmC,IAAI,uCAAuC,EAC9E,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,yBAAyB,EAA4B,MAAM,iCAAiC,CAAC;AAEtG;;GA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AAC,MAAM,EAAE;IACvB,8BAA8B;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { INTEGRATION_CATALOG_ID, INTEGRATION_CATALOG_KIND, IntegrationCatalogDescriptorSchema, integrationCatalogKind, type IntegrationCatalogCapability, type IntegrationCatalogListOptions } from './integration-catalog.kind.ts';
2
+ export { integrationCatalogDescriptor, type IntegrationCatalogDescriptor } from './integration-catalog.descriptor.ts';
3
+ export { ConsumerIntegrationCatalogCapability, getIntegrationProviderCatalogEntry, listIntegrationProviderCatalog } from './integration-catalog.capability.ts';
4
+ export { integrationCatalogRemoteExposure, projectIntegrationCatalogProvider } from './integration-catalog.exposure.ts';
5
+ export { createIntegrationCatalogHttpPlugin, integrationCatalogHttpResponse } from './integration-catalog.http.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/catalog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,sBAAsB,EACtB,wBAAwB,EACxB,kCAAkC,EAClC,sBAAsB,EACtB,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,4BAA4B,EAC5B,KAAK,4BAA4B,EACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACN,oCAAoC,EACpC,kCAAkC,EAClC,8BAA8B,EAC9B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACN,gCAAgC,EAChC,iCAAiC,EACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,kCAAkC,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { INTEGRATION_CATALOG_ID, INTEGRATION_CATALOG_KIND, IntegrationCatalogDescriptorSchema, integrationCatalogKind } from "./integration-catalog.kind.js";
2
+ export { integrationCatalogDescriptor } from "./integration-catalog.descriptor.js";
3
+ export { ConsumerIntegrationCatalogCapability, getIntegrationProviderCatalogEntry, listIntegrationProviderCatalog } from "./integration-catalog.capability.js";
4
+ export { integrationCatalogRemoteExposure, projectIntegrationCatalogProvider } from "./integration-catalog.exposure.js";
5
+ export { createIntegrationCatalogHttpPlugin, integrationCatalogHttpResponse } from "./integration-catalog.http.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/catalog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,sBAAsB,EACtB,wBAAwB,EACxB,kCAAkC,EAClC,sBAAsB,EAGtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,4BAA4B,EAE5B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACN,oCAAoC,EACpC,kCAAkC,EAClC,8BAA8B,EAC9B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACN,gCAAgC,EAChC,iCAAiC,EACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,kCAAkC,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { KindContext } from '@vibesdotdev/kernel/schemas/kind';
2
+ import type { IntegrationProviderDescriptor } from '../schemas/integration-descriptor.ts';
3
+ import type { IntegrationCatalogDescriptor } from './integration-catalog.descriptor.ts';
4
+ import type { IntegrationCatalogCapability, IntegrationCatalogListOptions } from './integration-catalog.kind.ts';
5
+ export { listIntegrationProviderCatalog, getIntegrationProviderCatalogEntry } from './queries.ts';
6
+ /** Consumer-daemon implementation; renderer access is mounted through federation. */
7
+ export declare class ConsumerIntegrationCatalogCapability implements IntegrationCatalogCapability {
8
+ private readonly runtime;
9
+ constructor(_descriptor: IntegrationCatalogDescriptor, context: KindContext);
10
+ list(options?: IntegrationCatalogListOptions): Promise<IntegrationProviderDescriptor[]>;
11
+ get(id: string): Promise<IntegrationProviderDescriptor | null>;
12
+ }
13
+ export default ConsumerIntegrationCatalogCapability;
14
+ //# sourceMappingURL=integration-catalog.capability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.capability.d.ts","sourceRoot":"","sources":["../../src/catalog/integration-catalog.capability.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,KAAK,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAEjH,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAElG,qFAAqF;AACrF,qBAAa,oCAAqC,YAAW,4BAA4B;IACxF,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;gBAEzB,WAAW,EAAE,4BAA4B,EAAE,OAAO,EAAE,WAAW;IAS3E,IAAI,CAAC,OAAO,GAAE,6BAAkC,GAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC;IAI3F,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC;CAG9D;AACD,eAAe,oCAAoC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { CapabilityError } from '@vibesdotdev/kernel';
2
+ import { listIntegrationProviderCatalog, getIntegrationProviderCatalogEntry } from "./queries.js";
3
+ export { listIntegrationProviderCatalog, getIntegrationProviderCatalogEntry } from "./queries.js";
4
+ /** Consumer-daemon implementation; renderer access is mounted through federation. */
5
+ export class ConsumerIntegrationCatalogCapability {
6
+ runtime;
7
+ constructor(_descriptor, context) {
8
+ if (!context.runtime) {
9
+ throw new CapabilityError('The integration catalog requires its owning runtime.', 'UNAVAILABLE', {
10
+ reason: 'integration-catalog-runtime-required', retryable: false
11
+ });
12
+ }
13
+ this.runtime = context.runtime;
14
+ }
15
+ list(options = {}) {
16
+ return listIntegrationProviderCatalog(this.runtime, options);
17
+ }
18
+ get(id) {
19
+ return getIntegrationProviderCatalogEntry(this.runtime, id);
20
+ }
21
+ }
22
+ export default ConsumerIntegrationCatalogCapability;
23
+ //# sourceMappingURL=integration-catalog.capability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.capability.js","sourceRoot":"","sources":["../../src/catalog/integration-catalog.capability.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AAKvE,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAElG,qFAAqF;AACrF,MAAM,OAAO,oCAAoC;IAC/B,OAAO,CAAa;IAErC,YAAY,WAAyC,EAAE,OAAoB;QAC1E,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACtB,MAAM,IAAI,eAAe,CAAC,sDAAsD,EAAE,aAAa,EAAE;gBAChG,MAAM,EAAE,sCAAsC,EAAE,SAAS,EAAE,KAAK;aAChE,CAAC,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,IAAI,CAAC,UAAyC,EAAE;QAC/C,OAAO,8BAA8B,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,GAAG,CAAC,EAAU;QACb,OAAO,kCAAkC,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;CACD;AACD,eAAe,oCAAoC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { z } from 'zod/v4';
2
+ import { IntegrationCatalogDescriptorSchema } from './integration-catalog.kind.ts';
3
+ export type IntegrationCatalogDescriptor = z.infer<typeof IntegrationCatalogDescriptorSchema>;
4
+ export declare const integrationCatalogDescriptor: IntegrationCatalogDescriptor;
5
+ export default integrationCatalogDescriptor;
6
+ //# sourceMappingURL=integration-catalog.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.descriptor.d.ts","sourceRoot":"","sources":["../../src/catalog/integration-catalog.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAGN,kCAAkC,EAClC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,4BAA4B,EAAE,4BASxC,CAAC;AAEJ,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { INTEGRATION_CATALOG_ID, INTEGRATION_CATALOG_KIND, IntegrationCatalogDescriptorSchema } from "./integration-catalog.kind.js";
2
+ export const integrationCatalogDescriptor = IntegrationCatalogDescriptorSchema.parse({
3
+ id: INTEGRATION_CATALOG_ID,
4
+ kind: INTEGRATION_CATALOG_KIND,
5
+ name: 'Integration Provider Catalog',
6
+ description: 'Read-only provider declarations available in the owning consumer runtime',
7
+ hardware: ['consumer'],
8
+ enabled: true
9
+ });
10
+ export default integrationCatalogDescriptor;
11
+ //# sourceMappingURL=integration-catalog.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.descriptor.js","sourceRoot":"","sources":["../../src/catalog/integration-catalog.descriptor.ts"],"names":[],"mappings":"AACA,OAAO,EACN,sBAAsB,EACtB,wBAAwB,EACxB,kCAAkC,EAClC,MAAM,+BAA+B,CAAC;AAIvC,MAAM,CAAC,MAAM,4BAA4B,GACxC,kCAAkC,CAAC,KAAK,CAAC;IACxC,EAAE,EAAE,sBAAsB;IAC1B,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACV,0EAA0E;IAC3E,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC;AAEJ,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,62 @@
1
+ import * as z from 'zod/v4';
2
+ import { type IntegrationProviderDescriptor, type IntegrationProviderDescriptorInput } from '../schemas/integration-descriptor.ts';
3
+ /**
4
+ * Reduce a provider declaration to renderer-safe catalog metadata.
5
+ *
6
+ * Configuration, credential references, OAuth endpoints, base URLs, and
7
+ * operation declarations stay in the owning runtime. The declared
8
+ * `connection` metadata is retained for the renderer's connection controls. Provider config,
9
+ * credential references, OAuth endpoints, base URLs and operations remain
10
+ * behind the owning runtime boundary.
11
+ */
12
+ export declare function projectIntegrationCatalogProvider(input: IntegrationProviderDescriptorInput): IntegrationProviderDescriptor;
13
+ export declare const integrationCatalogRemoteExposure: {
14
+ protocolVersion: 1;
15
+ discoverable: boolean;
16
+ audiences: ("service" | "operator" | "consumer-renderer" | "consumer-cli" | "consumer-agent")[];
17
+ methods: Record<string, {
18
+ request: {
19
+ id: string;
20
+ version: number;
21
+ schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
22
+ };
23
+ result: {
24
+ id: string;
25
+ version: number;
26
+ schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
27
+ };
28
+ dataClassification: "user" | "secret" | "public" | "sensitive";
29
+ rendererView: "denied" | "raw" | "redacted";
30
+ retry: {
31
+ mode: "read";
32
+ retry: "safe";
33
+ } | {
34
+ mode: "idempotent";
35
+ operationIdRequired: true;
36
+ reconciliationMethod: string;
37
+ } | {
38
+ mode: "non-idempotent";
39
+ retry: "never";
40
+ };
41
+ cancellation: {
42
+ mode: "required" | "none" | "cooperative";
43
+ defaultDeadlineMs: number;
44
+ maxDeadlineMs: number;
45
+ };
46
+ maxRequestBytes: number;
47
+ maxResultBytes: number;
48
+ projectRenderer?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
49
+ stream?: {
50
+ event: {
51
+ id: string;
52
+ version: number;
53
+ schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
54
+ };
55
+ maxEventBytes: number;
56
+ initialCredits: number;
57
+ maxCredits: number;
58
+ projectRenderer?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
59
+ } | undefined;
60
+ }>;
61
+ };
62
+ //# sourceMappingURL=integration-catalog.exposure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.exposure.d.ts","sourceRoot":"","sources":["../../src/catalog/integration-catalog.exposure.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAEN,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,MAAM,sCAAsC,CAAC;AAK9C;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAChD,KAAK,EAAE,kCAAkC,GACvC,6BAA6B,CAwB/B;AAkBD,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C3C,CAAC"}
@@ -0,0 +1,101 @@
1
+ import { defineRemoteExposure } from '@vibesdotdev/kernel/federation';
2
+ import * as z from 'zod/v4';
3
+ import { IntegrationProviderDescriptorSchema } from "../schemas/integration-descriptor.js";
4
+ import { IntegrationCatalogListOptionsSchema } from "../schemas/catalog.js";
5
+ import { parseIntegrationBoundary } from "../schemas/boundary.js";
6
+ /**
7
+ * Reduce a provider declaration to renderer-safe catalog metadata.
8
+ *
9
+ * Configuration, credential references, OAuth endpoints, base URLs, and
10
+ * operation declarations stay in the owning runtime. The declared
11
+ * `connection` metadata is retained for the renderer's connection controls. Provider config,
12
+ * credential references, OAuth endpoints, base URLs and operations remain
13
+ * behind the owning runtime boundary.
14
+ */
15
+ export function projectIntegrationCatalogProvider(input) {
16
+ const value = parseIntegrationBoundary(IntegrationProviderDescriptorSchema, input);
17
+ const projected = {
18
+ id: value.id,
19
+ kind: 'integration/provider',
20
+ requiredContext: [],
21
+ optionalContext: [],
22
+ name: value.name,
23
+ description: value.description,
24
+ tags: value.tags ? [...value.tags] : undefined,
25
+ hardware: value.hardware ? [...value.hardware] : undefined,
26
+ enabled: value.enabled,
27
+ priority: value.priority,
28
+ provider: value.provider,
29
+ category: value.category,
30
+ connection: value.connection,
31
+ config: {},
32
+ credentials: [],
33
+ operations: [],
34
+ // The projection strips endpoints and protected config, so it declares the
35
+ // schema's own defaults for them rather than carrying the provider's.
36
+ protectedConfigKeys: []
37
+ };
38
+ return IntegrationProviderDescriptorSchema.parse(projected);
39
+ }
40
+ /** The renderer's view of a provider list: each descriptor reduced by its catalog projection. */
41
+ const IntegrationCatalogListProjection = z
42
+ .array(IntegrationProviderDescriptorSchema)
43
+ .transform((providers) => providers.map((provider) => projectIntegrationCatalogProvider(provider)));
44
+ /** The renderer's view of one provider, or of its absence. */
45
+ const IntegrationCatalogGetProjection = z
46
+ .union([z.null(), IntegrationProviderDescriptorSchema])
47
+ .transform((provider) => (provider === null ? null : projectIntegrationCatalogProvider(provider)));
48
+ const cancellation = {
49
+ mode: 'none',
50
+ defaultDeadlineMs: 5_000,
51
+ maxDeadlineMs: 15_000
52
+ };
53
+ export const integrationCatalogRemoteExposure = defineRemoteExposure({
54
+ protocolVersion: 1,
55
+ discoverable: true,
56
+ audiences: ['consumer-renderer'],
57
+ methods: {
58
+ list: {
59
+ request: {
60
+ id: 'integration.catalog.list.request',
61
+ version: 1,
62
+ schema: z.union([
63
+ z.tuple([]),
64
+ z.tuple([IntegrationCatalogListOptionsSchema])
65
+ ])
66
+ },
67
+ result: {
68
+ id: 'integration.catalog.list.result',
69
+ version: 1,
70
+ schema: IntegrationProviderDescriptorSchema.array()
71
+ },
72
+ dataClassification: 'sensitive',
73
+ rendererView: 'redacted',
74
+ projectRenderer: IntegrationCatalogListProjection,
75
+ retry: { mode: 'read', retry: 'safe' },
76
+ cancellation,
77
+ maxRequestBytes: 4_096,
78
+ maxResultBytes: 1024 * 1024
79
+ },
80
+ get: {
81
+ request: {
82
+ id: 'integration.catalog.get.request',
83
+ version: 1,
84
+ schema: z.tuple([z.string().min(1)])
85
+ },
86
+ result: {
87
+ id: 'integration.catalog.get.result',
88
+ version: 1,
89
+ schema: IntegrationProviderDescriptorSchema.nullable()
90
+ },
91
+ dataClassification: 'sensitive',
92
+ rendererView: 'redacted',
93
+ projectRenderer: IntegrationCatalogGetProjection,
94
+ retry: { mode: 'read', retry: 'safe' },
95
+ cancellation,
96
+ maxRequestBytes: 1_024,
97
+ maxResultBytes: 64 * 1024
98
+ }
99
+ }
100
+ });
101
+ //# sourceMappingURL=integration-catalog.exposure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.exposure.js","sourceRoot":"","sources":["../../src/catalog/integration-catalog.exposure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,mCAAmC,EAGnC,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,UAAU,iCAAiC,CAChD,KAAyC;IAEzC,MAAM,KAAK,GAAG,wBAAwB,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;IACnF,MAAM,SAAS,GAAkC;QAChD,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,IAAI,EAAE,sBAAsB;QAC5B,eAAe,EAAE,EAAE;QACnB,eAAe,EAAE,EAAE;QACnB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,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EAAE,GAAG,IAAI;SACzB;KACD;CACD,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type VibesRuntime } from '@vibesdotdev/kernel';
2
+ /** Owner HTTP projection uses exactly the same redaction as runtime federation. */
3
+ export declare function integrationCatalogHttpResponse(runtime: VibesRuntime): Promise<Response>;
4
+ /** Mount an owner-hosted catalog over host-authenticated HTTP, without local provider discovery. */
5
+ export declare function createIntegrationCatalogHttpPlugin(options: {
6
+ endpoint: string;
7
+ fetch?: (input: string | Request | URL, init?: RequestInit) => Promise<Response>;
8
+ }): import("@vibesdotdev/kernel").RuntimePlugin;
9
+ //# sourceMappingURL=integration-catalog.http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.http.d.ts","sourceRoot":"","sources":["../../src/catalog/integration-catalog.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQ9F,mFAAmF;AACnF,wBAAsB,8BAA8B,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAG7F;AAED,oGAAoG;AACpG,wBAAgB,kCAAkC,CAAC,OAAO,EAAE;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CACjF,+CA4CA"}
@@ -0,0 +1,58 @@
1
+ import { CapabilityError, createRuntimePlugin } from '@vibesdotdev/kernel';
2
+ import { IntegrationCatalogListOptionsSchema, IntegrationCatalogHttpResponseSchema } from "../schemas/catalog.js";
3
+ import { parseIntegrationBoundary } from "../schemas/boundary.js";
4
+ import { listIntegrationProviderCatalog } from "./queries.js";
5
+ import { projectIntegrationCatalogProvider } from "./integration-catalog.exposure.js";
6
+ import { INTEGRATION_CATALOG_ID, INTEGRATION_CATALOG_KIND } from "./integration-catalog.kind.js";
7
+ /** Owner HTTP projection uses exactly the same redaction as runtime federation. */
8
+ export async function integrationCatalogHttpResponse(runtime) {
9
+ const providers = await listIntegrationProviderCatalog(runtime, { includeDisabled: true });
10
+ return Response.json({ providers: providers.map(projectIntegrationCatalogProvider) });
11
+ }
12
+ /** Mount an owner-hosted catalog over host-authenticated HTTP, without local provider discovery. */
13
+ export function createIntegrationCatalogHttpPlugin(options) {
14
+ const fetcher = options.fetch ?? globalThis.fetch.bind(globalThis);
15
+ const catalog = {
16
+ async list(filters = {}) {
17
+ filters = parseIntegrationBoundary(IntegrationCatalogListOptionsSchema, filters);
18
+ let response;
19
+ try {
20
+ response = await fetcher(options.endpoint, { headers: { accept: 'application/json' } });
21
+ }
22
+ catch (cause) {
23
+ throw new CapabilityError('Integration catalog request failed.', 'UNAVAILABLE', {
24
+ reason: 'integration-catalog-request-failed', cause
25
+ });
26
+ }
27
+ if (!response.ok)
28
+ throw new CapabilityError('Integration catalog request was refused.', 'UNAVAILABLE', {
29
+ reason: 'integration-catalog-http-refused', details: { status: response.status }
30
+ });
31
+ let payload;
32
+ try {
33
+ payload = await response.json();
34
+ }
35
+ catch (cause) {
36
+ throw new CapabilityError('Integration catalog response is invalid.', 'INVALID_INPUT', {
37
+ reason: 'integration-catalog-response-invalid', cause
38
+ });
39
+ }
40
+ const { providers } = parseIntegrationBoundary(IntegrationCatalogHttpResponseSchema, payload);
41
+ return providers.map(projectIntegrationCatalogProvider).filter((provider) => (filters.includeDisabled || provider.enabled !== false) &&
42
+ (!filters.category || provider.category === filters.category) &&
43
+ (!filters.provider || provider.provider === filters.provider));
44
+ },
45
+ async get(id) {
46
+ return (await catalog.list({ includeDisabled: true })).find((provider) => provider.id === id) ?? null;
47
+ }
48
+ };
49
+ return createRuntimePlugin({
50
+ id: 'integrations.owner-http-catalog',
51
+ name: 'Integrations owner HTTP catalog',
52
+ dependencies: ['integrations'],
53
+ onActivate(runtime) {
54
+ runtime.registerLoader(INTEGRATION_CATALOG_KIND, INTEGRATION_CATALOG_ID, async () => ({ impl: catalog }));
55
+ }
56
+ });
57
+ }
58
+ //# sourceMappingURL=integration-catalog.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.http.js","sourceRoot":"","sources":["../../src/catalog/integration-catalog.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAqB,MAAM,qBAAqB,CAAC;AAC9F,OAAO,EAAE,mCAAmC,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAClH,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAqC,MAAM,+BAA+B,CAAC;AAGpI,mFAAmF;AACnF,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,OAAqB;IACzE,MAAM,SAAS,GAAG,MAAM,8BAA8B,CAAC,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3F,OAAO,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,iCAAiC,CAAC,EAAE,CAAC,CAAC;AACvF,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,kCAAkC,CAAC,OAGlD;IACA,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAiC;QAC7C,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,EAAE;YAEb,OAAO,GAAG,wBAAwB,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;YACjF,IAAI,QAAkB,CAAC;YACvB,IAAI,CAAC;gBACD,QAAQ,GAAG,MAAM,OAAO,CAAC,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AE;YACX,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC;QACvG,CAAC;KACD,CAAC;IACF,OAAO,mBAAmB,CAAC;QAC1B,EAAE,EAAE,iCAAiC;QACrC,IAAI,EAAE,iCAAiC;QACvC,YAAY,EAAE,CAAC,cAAc,CAAC;QAC9B,UAAU,CAAC,OAAO;YACjB,OAAO,CAAC,cAAc,CAAC,wBAAwB,EAAE,sBAAsB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAC3G,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,36 @@
1
+ import * as z from 'zod/v4';
2
+ import type { IntegrationProviderDescriptor } from '../schemas/integration-descriptor.ts';
3
+ export declare const INTEGRATION_CATALOG_KIND: "integration/catalog";
4
+ export declare const INTEGRATION_CATALOG_ID: "providers";
5
+ export declare const IntegrationCatalogDescriptorSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ hardware: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ enabled: z.ZodOptional<z.ZodBoolean>;
12
+ priority: z.ZodOptional<z.ZodNumber>;
13
+ capabilityId: z.ZodOptional<z.ZodString>;
14
+ requiredContext: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ optionalContext: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ config: z.ZodOptional<z.ZodUnknown>;
17
+ retention: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
18
+ maxAgeDays: z.ZodOptional<z.ZodNumber>;
19
+ maxEntries: z.ZodOptional<z.ZodNumber>;
20
+ maxBytes: z.ZodOptional<z.ZodNumber>;
21
+ cascadeFrom: z.ZodOptional<z.ZodString>;
22
+ ageField: z.ZodOptional<z.ZodString>;
23
+ reason: z.ZodString;
24
+ enforcedBy: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strip>]>>;
26
+ kind: z.ZodLiteral<"integration/catalog">;
27
+ }, z.core.$strip>;
28
+ export type { IntegrationCatalogListOptions } from '../schemas/catalog.ts';
29
+ import type { IntegrationCatalogListOptions } from '../schemas/catalog.ts';
30
+ /** Renderer-safe read authority. It exposes declarations, never provider implementations. */
31
+ export interface IntegrationCatalogCapability {
32
+ list(options?: IntegrationCatalogListOptions): Promise<IntegrationProviderDescriptor[]>;
33
+ get(id: string): Promise<IntegrationProviderDescriptor | null>;
34
+ }
35
+ export declare const integrationCatalogKind: import("@vibesdotdev/kernel").RuntimeKindDescriptorRecord<unknown>;
36
+ //# sourceMappingURL=integration-catalog.kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.kind.d.ts","sourceRoot":"","sources":["../../src/catalog/integration-catalog.kind.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAE1F,eAAO,MAAM,wBAAwB,EAAG,qBAA8B,CAAC;AACvE,eAAO,MAAM,sBAAsB,EAAG,WAAoB,CAAC;AAE3D,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;iBAE7C,CAAC;AAEH,YAAY,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAE3E,6FAA6F;AAC7F,MAAM,WAAW,4BAA4B;IAC5C,IAAI,CAAC,OAAO,CAAC,EAAE,6BAA6B,GAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC,CAAC;IACxF,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAAC;CAC/D;AAED,eAAO,MAAM,sBAAsB,oEAIjC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { createRuntimeKind } from '@vibesdotdev/kernel/factory';
2
+ import { RuntimeDescriptorSchema } from '@vibesdotdev/kernel/schemas/descriptor';
3
+ import * as z from 'zod/v4';
4
+ export const INTEGRATION_CATALOG_KIND = 'integration/catalog';
5
+ export const INTEGRATION_CATALOG_ID = 'providers';
6
+ export const IntegrationCatalogDescriptorSchema = RuntimeDescriptorSchema.extend({
7
+ kind: z.literal(INTEGRATION_CATALOG_KIND)
8
+ });
9
+ export const integrationCatalogKind = createRuntimeKind({
10
+ id: INTEGRATION_CATALOG_KIND,
11
+ descriptorSchema: IntegrationCatalogDescriptorSchema,
12
+ selectionBias: 'prefer-local'
13
+ });
14
+ //# sourceMappingURL=integration-catalog.kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.kind.js","sourceRoot":"","sources":["../../src/catalog/integration-catalog.kind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,CAAC,MAAM,wBAAwB,GAAG,qBAA8B,CAAC;AACvE,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAoB,CAAC;AAE3D,MAAM,CAAC,MAAM,kCAAkC,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAChF,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;CACzC,CAAC,CAAC;AAWH,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;IACvD,EAAE,EAAE,wBAAwB;IAC5B,gBAAgB,EAAE,kCAAkC;IACpD,aAAa,EAAE,cAAc;CAC7B,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { RuntimeRef } from '@vibesdotdev/kernel';
2
+ import type { IntegrationProviderDescriptor } from '../schemas/integration-descriptor.ts';
3
+ import { type IntegrationCatalogListOptions } from '../schemas/catalog.ts';
4
+ export declare function listIntegrationProviderCatalog(runtime: RuntimeRef, options?: IntegrationCatalogListOptions): Promise<IntegrationProviderDescriptor[]>;
5
+ export declare function getIntegrationProviderCatalogEntry(runtime: RuntimeRef, id: string): Promise<IntegrationProviderDescriptor | null>;
6
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/catalog/queries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,6BAA6B,EAAqC,MAAM,sCAAsC,CAAC;AAC7H,OAAO,EAAuC,KAAK,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAEhH,wBAAsB,8BAA8B,CACnD,OAAO,EAAE,UAAU,EACnB,OAAO,GAAE,6BAAkC,GACzC,OAAO,CAAC,6BAA6B,EAAE,CAAC,CAgB1C;AAED,wBAAsB,kCAAkC,CACvD,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,MAAM,GACR,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAK/C"}
@@ -0,0 +1,29 @@
1
+ import { parseIntegrationBoundary } from "../schemas/boundary.js";
2
+ import { IntegrationCatalogListOptionsSchema } from "../schemas/catalog.js";
3
+ export async function listIntegrationProviderCatalog(runtime, options = {}) {
4
+ options = parseIntegrationBoundary(IntegrationCatalogListOptionsSchema, options);
5
+ let query = runtime.query('integration/provider');
6
+ if (!options.includeDisabled)
7
+ query = query.enabled();
8
+ if (options.category) {
9
+ query = query.filter((descriptor) => descriptor.category === options.category);
10
+ }
11
+ if (options.provider) {
12
+ query = query.filter((descriptor) => descriptor.provider === options.provider);
13
+ }
14
+ const descriptors = await query.descriptorsAsync();
15
+ return [...descriptors].sort(compareCatalogProviders);
16
+ }
17
+ export async function getIntegrationProviderCatalogEntry(runtime, id) {
18
+ return runtime
19
+ .query('integration/provider')
20
+ .withId(id)
21
+ .firstDescriptorAsync();
22
+ }
23
+ function compareCatalogProviders(left, right) {
24
+ const priority = (right.priority ?? 0) - (left.priority ?? 0);
25
+ if (priority !== 0)
26
+ return priority;
27
+ return (left.name ?? left.id).localeCompare(right.name ?? right.id);
28
+ }
29
+ //# sourceMappingURL=queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/catalog/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAGlE,OAAO,EAAE,mCAAmC,EAAsC,MAAM,uBAAuB,CAAC;AAEhH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CACnD,OAAmB,EACnB,UAAyC,EAAE;IAE3C,OAAO,GAAG,wBAAwB,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;IACjF,IAAI,KAAK,GAAG,OAAO,CAAC,KAAK,CACxB,sBAAsB,CACtB,CAAC;IAEF,IAAI,CAAC,OAAO,CAAC,eAAe;QAAE,KAAK,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;IACtD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACtB,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChF,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACtB,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChF,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,gBAAgB,EAAE,CAAC;IACnD,OAAO,CAAC,GAAG,WAAW,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kCAAkC,CACvD,OAAmB,EACnB,EAAU;IAEV,OAAO,OAAO;SACZ,KAAK,CAAmE,sBAAsB,CAAC;SAC/F,MAAM,CAAC,EAAE,CAAC;SACV,oBAAoB,EAAE,CAAC;AAC1B,CAAC;AAED,SAAS,uBAAuB,CAC/B,IAAmC,EACnC,KAAoC;IAEpC,MAAM,QAAQ,GAAG,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IAC9D,IAAI,QAAQ,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC;AACrE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { VibesRuntime } from '@vibesdotdev/kernel';
2
+ import type { IntegrationsClient } from './integrations.runtime-client.ts';
3
+ /** Resolve the canonical integrations client from the handed runtime. */
4
+ export declare function getVibesIntegrationsClient(runtime: VibesRuntime): Promise<IntegrationsClient>;
5
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/client/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,yEAAyE;AACzE,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE7F"}
@@ -0,0 +1,6 @@
1
+ import { getVibesClient } from '@vibesdotdev/kernel/client';
2
+ /** Resolve the canonical integrations client from the handed runtime. */
3
+ export function getVibesIntegrationsClient(runtime) {
4
+ return getVibesClient('integrations', runtime);
5
+ }
6
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/client/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,yEAAyE;AACzE,MAAM,UAAU,0BAA0B,CAAC,OAAqB;IAC/D,OAAO,cAAc,CAAqB,cAAc,EAAE,OAAO,CAAC,CAAC;AACpE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { getVibesIntegrationsClient } from './helper.ts';
2
+ export type { IntegrationProviderCatalog, IntegrationProviderCatalogListOptions, IntegrationsClient } from './integrations.runtime-client.ts';
3
+ export { integrationsRuntimeClientDescriptor, default as integrationsRuntimeClientDescriptorDefault } from './integrations.runtime-client.descriptor.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,YAAY,EACX,0BAA0B,EAC1B,qCAAqC,EACrC,kBAAkB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACN,mCAAmC,EACnC,OAAO,IAAI,0CAA0C,EACrD,MAAM,6CAA6C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getVibesIntegrationsClient } from "./helper.js";
2
+ export { integrationsRuntimeClientDescriptor, default as integrationsRuntimeClientDescriptorDefault } from "./integrations.runtime-client.descriptor.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAMzD,OAAO,EACN,mCAAmC,EACnC,OAAO,IAAI,0CAA0C,EACrD,MAAM,6CAA6C,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { KindContext, VibesRuntime } from '@vibesdotdev/kernel';
2
+ import type { RuntimeClientDescriptor } from '@vibesdotdev/kernel/client';
3
+ import RuntimeIntegrationsClient, { type IntegrationProviderCatalog } from './integrations.runtime-client.ts';
4
+ /** Renderer client variant: the daemon catalog is mandatory; local discovery is forbidden. */
5
+ export declare class IntegrationsBrowserClient extends RuntimeIntegrationsClient {
6
+ constructor(descriptor?: RuntimeClientDescriptor, context?: KindContext<VibesRuntime>, runtime?: VibesRuntime);
7
+ protected catalogUnavailable(): IntegrationProviderCatalog;
8
+ }
9
+ export default IntegrationsBrowserClient;
10
+ //# sourceMappingURL=integrations.runtime-client.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.runtime-client.browser.d.ts","sourceRoot":"","sources":["../../src/client/integrations.runtime-client.browser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,yBAAyB,EAAE,EACjC,KAAK,0BAA0B,EAC/B,MAAM,kCAAkC,CAAC;AAE1C,8FAA8F;AAC9F,qBAAa,yBAA0B,SAAQ,yBAAyB;gBAEtE,UAAU,GAAE,uBAAwE,EACpF,OAAO,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,EACnC,OAAO,CAAC,EAAE,YAAY;cAKJ,kBAAkB,IAAI,0BAA0B;CAGnE;AAED,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CapabilityError } from '@vibesdotdev/kernel';
2
+ import RuntimeIntegrationsClient, {} from "./integrations.runtime-client.js";
3
+ /** Renderer client variant: the daemon catalog is mandatory; local discovery is forbidden. */
4
+ export class IntegrationsBrowserClient extends RuntimeIntegrationsClient {
5
+ constructor(descriptor = { id: 'integrations', kind: 'runtime/client' }, context, runtime) {
6
+ super(descriptor, context, runtime);
7
+ }
8
+ catalogUnavailable() {
9
+ throw new CapabilityError('The integration catalog is not mounted.', 'UNAVAILABLE', { reason: 'integration-catalog-renderer-capability-unavailable', retryable: false });
10
+ }
11
+ }
12
+ export default IntegrationsBrowserClient;
13
+ //# sourceMappingURL=integrations.runtime-client.browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.runtime-client.browser.js","sourceRoot":"","sources":["../../src/client/integrations.runtime-client.browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,yBAAyB,EAAE,EAEjC,MAAM,kCAAkC,CAAC;AAE1C,8FAA8F;AAC9F,MAAM,OAAO,yBAA0B,SAAQ,yBAAyB;IACvE,YACC,aAAsC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,gBAAgB,EAAE,EACpF,OAAmC,EACnC,OAAsB;QAEtB,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAEkB,kBAAkB;QACpC,MAAM,IAAI,eAAe,CAAC,yCAAyC,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,qDAAqD,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1K,CAAC;CACD;AAED,eAAe,yBAAyB,CAAC"}