@sentropic/cluster-mesh 0.11.0 → 0.13.0

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 (126) hide show
  1. package/README.md +106 -0
  2. package/dist/compose/disabled.d.ts +5 -0
  3. package/dist/compose/disabled.d.ts.map +1 -0
  4. package/dist/compose/disabled.js +12 -0
  5. package/dist/compose/disabled.js.map +1 -0
  6. package/dist/compose/gateway.d.ts +32 -0
  7. package/dist/compose/gateway.d.ts.map +1 -0
  8. package/dist/compose/gateway.js +29 -0
  9. package/dist/compose/gateway.js.map +1 -0
  10. package/dist/compose/llm-mesh.d.ts +23 -0
  11. package/dist/compose/llm-mesh.d.ts.map +1 -0
  12. package/dist/compose/llm-mesh.js +19 -0
  13. package/dist/compose/llm-mesh.js.map +1 -0
  14. package/dist/index.d.ts +4 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +4 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/integrations/gateway/auth-hono.d.ts +3 -0
  19. package/dist/integrations/gateway/auth-hono.d.ts.map +1 -0
  20. package/dist/integrations/gateway/auth-hono.js +4 -0
  21. package/dist/integrations/gateway/auth-hono.js.map +1 -0
  22. package/dist/integrations/gateway/auth.d.ts +3 -0
  23. package/dist/integrations/gateway/auth.d.ts.map +1 -0
  24. package/dist/integrations/gateway/auth.js +4 -0
  25. package/dist/integrations/gateway/auth.js.map +1 -0
  26. package/dist/integrations/gateway/index.d.ts +3 -0
  27. package/dist/integrations/gateway/index.d.ts.map +1 -0
  28. package/dist/integrations/gateway/index.js +4 -0
  29. package/dist/integrations/gateway/index.js.map +1 -0
  30. package/dist/integrations/llm-mesh/enrollment.d.ts +3 -0
  31. package/dist/integrations/llm-mesh/enrollment.d.ts.map +1 -0
  32. package/dist/integrations/llm-mesh/enrollment.js +4 -0
  33. package/dist/integrations/llm-mesh/enrollment.js.map +1 -0
  34. package/dist/integrations/llm-mesh/facade.d.ts +3 -0
  35. package/dist/integrations/llm-mesh/facade.d.ts.map +1 -0
  36. package/dist/integrations/llm-mesh/facade.js +4 -0
  37. package/dist/integrations/llm-mesh/facade.js.map +1 -0
  38. package/dist/integrations/llm-mesh/index.d.ts +3 -0
  39. package/dist/integrations/llm-mesh/index.d.ts.map +1 -0
  40. package/dist/integrations/llm-mesh/index.js +4 -0
  41. package/dist/integrations/llm-mesh/index.js.map +1 -0
  42. package/dist/integrations/llm-mesh/node.d.ts +3 -0
  43. package/dist/integrations/llm-mesh/node.d.ts.map +1 -0
  44. package/dist/integrations/llm-mesh/node.js +4 -0
  45. package/dist/integrations/llm-mesh/node.js.map +1 -0
  46. package/dist/integrations/llm-mesh/transport/cloud-code.d.ts +3 -0
  47. package/dist/integrations/llm-mesh/transport/cloud-code.d.ts.map +1 -0
  48. package/dist/integrations/llm-mesh/transport/cloud-code.js +4 -0
  49. package/dist/integrations/llm-mesh/transport/cloud-code.js.map +1 -0
  50. package/dist/loaders/gateway/auth-hono.d.ts +8 -0
  51. package/dist/loaders/gateway/auth-hono.d.ts.map +1 -0
  52. package/dist/loaders/gateway/auth-hono.js +9 -0
  53. package/dist/loaders/gateway/auth-hono.js.map +1 -0
  54. package/dist/loaders/gateway/auth.d.ts +8 -0
  55. package/dist/loaders/gateway/auth.d.ts.map +1 -0
  56. package/dist/loaders/gateway/auth.js +9 -0
  57. package/dist/loaders/gateway/auth.js.map +1 -0
  58. package/dist/loaders/gateway/index.d.ts +8 -0
  59. package/dist/loaders/gateway/index.d.ts.map +1 -0
  60. package/dist/loaders/gateway/index.js +9 -0
  61. package/dist/loaders/gateway/index.js.map +1 -0
  62. package/dist/loaders/llm-mesh/enrollment.d.ts +8 -0
  63. package/dist/loaders/llm-mesh/enrollment.d.ts.map +1 -0
  64. package/dist/loaders/llm-mesh/enrollment.js +9 -0
  65. package/dist/loaders/llm-mesh/enrollment.js.map +1 -0
  66. package/dist/loaders/llm-mesh/facade.d.ts +8 -0
  67. package/dist/loaders/llm-mesh/facade.d.ts.map +1 -0
  68. package/dist/loaders/llm-mesh/facade.js +9 -0
  69. package/dist/loaders/llm-mesh/facade.js.map +1 -0
  70. package/dist/loaders/llm-mesh/index.d.ts +8 -0
  71. package/dist/loaders/llm-mesh/index.d.ts.map +1 -0
  72. package/dist/loaders/llm-mesh/index.js +9 -0
  73. package/dist/loaders/llm-mesh/index.js.map +1 -0
  74. package/dist/loaders/llm-mesh/node.d.ts +8 -0
  75. package/dist/loaders/llm-mesh/node.d.ts.map +1 -0
  76. package/dist/loaders/llm-mesh/node.js +9 -0
  77. package/dist/loaders/llm-mesh/node.js.map +1 -0
  78. package/dist/loaders/llm-mesh/transport/cloud-code.d.ts +8 -0
  79. package/dist/loaders/llm-mesh/transport/cloud-code.d.ts.map +1 -0
  80. package/dist/loaders/llm-mesh/transport/cloud-code.js +9 -0
  81. package/dist/loaders/llm-mesh/transport/cloud-code.js.map +1 -0
  82. package/dist/mesh.d.ts +4 -0
  83. package/dist/mesh.d.ts.map +1 -1
  84. package/dist/mesh.js +19 -13
  85. package/dist/mesh.js.map +1 -1
  86. package/dist/modules/catalog.d.ts +36 -0
  87. package/dist/modules/catalog.d.ts.map +1 -0
  88. package/dist/modules/catalog.js +82 -0
  89. package/dist/modules/catalog.js.map +1 -0
  90. package/dist/modules/contracts.d.ts +56 -0
  91. package/dist/modules/contracts.d.ts.map +1 -0
  92. package/dist/modules/contracts.js +32 -0
  93. package/dist/modules/contracts.js.map +1 -0
  94. package/dist/modules/errors.d.ts +29 -0
  95. package/dist/modules/errors.d.ts.map +1 -0
  96. package/dist/modules/errors.js +56 -0
  97. package/dist/modules/errors.js.map +1 -0
  98. package/dist/modules/registry.d.ts +13 -0
  99. package/dist/modules/registry.d.ts.map +1 -0
  100. package/dist/modules/registry.js +157 -0
  101. package/dist/modules/registry.js.map +1 -0
  102. package/dist/modules/resolution.d.ts +23 -0
  103. package/dist/modules/resolution.d.ts.map +1 -0
  104. package/dist/modules/resolution.js +139 -0
  105. package/dist/modules/resolution.js.map +1 -0
  106. package/dist/modules/semver.d.ts +7 -0
  107. package/dist/modules/semver.d.ts.map +1 -0
  108. package/dist/modules/semver.js +56 -0
  109. package/dist/modules/semver.js.map +1 -0
  110. package/dist/modules/topology-guard-gateway.d.ts +2 -0
  111. package/dist/modules/topology-guard-gateway.d.ts.map +1 -0
  112. package/dist/modules/topology-guard-gateway.js +5 -0
  113. package/dist/modules/topology-guard-gateway.js.map +1 -0
  114. package/dist/modules/topology-guard-llm-mesh.d.ts +2 -0
  115. package/dist/modules/topology-guard-llm-mesh.d.ts.map +1 -0
  116. package/dist/modules/topology-guard-llm-mesh.js +5 -0
  117. package/dist/modules/topology-guard-llm-mesh.js.map +1 -0
  118. package/dist/modules/topology-guard.d.ts +2 -0
  119. package/dist/modules/topology-guard.d.ts.map +1 -0
  120. package/dist/modules/topology-guard.js +6 -0
  121. package/dist/modules/topology-guard.js.map +1 -0
  122. package/dist/modules/topology.d.ts +70 -0
  123. package/dist/modules/topology.d.ts.map +1 -0
  124. package/dist/modules/topology.js +154 -0
  125. package/dist/modules/topology.js.map +1 -0
  126. package/package.json +96 -2
package/README.md CHANGED
@@ -103,6 +103,112 @@ topology introduced in 0.1: one Sentropic server, its attached local workstation
103
103
  local signed projections, and the existing device-code lifecycle. It does not
104
104
  implement server-to-server federation.
105
105
 
106
+ ## Lazy integration surface (0.12+, tuple of 0.13)
107
+
108
+ Cluster Mesh is the single integration surface for llm-mesh and llm-gateway. Those
109
+ providers stay independent packages and never depend on cluster-mesh. They are
110
+ **optional peers**: a bare install pulls none of them, and the root entry
111
+ (`@sentropic/cluster-mesh`) has no static JS or declaration edge to any of them.
112
+
113
+ | Entry | Provider | Selected optional peers |
114
+ |---|---|---|
115
+ | `/llm-mesh`, `/llm-mesh/facade`, `/llm-mesh/enrollment`, `/llm-mesh/node`, `/llm-mesh/transport/cloud-code` | matching `@sentropic/llm-mesh` entry | `@sentropic/llm-mesh >=0.22.0 <0.23.0` |
116
+ | `/gateway` | `@sentropic/llm-gateway` root (neither auth mode) | llm-mesh + `@sentropic/llm-gateway >=0.19.0 <0.20.0` |
117
+ | `/gateway/auth` (service mode) | `@sentropic/llm-gateway/auth` | gateway + `@sentropic/mcp-auth >=0.2.1 <0.3.0`, `jose ^5.10.0` |
118
+ | `/gateway/auth-hono` (session mode) | `@sentropic/llm-gateway/auth-hono` | gateway + `@sentropic/auth-hono ^0.15.0` |
119
+ | `/loaders/<leaf>` | async typed loader (`loadLlmMesh`, `loadGateway`, `loadGatewayAuth`, ...) | as its leaf, resolved on call |
120
+ | `/compose/llm-mesh`, `/compose/gateway` | `createLlmMeshNamespaceModule`, `createGatewayNamespaceModule` | as the loaders they call |
121
+
122
+ Static leaves are `export *` re-exports of the provider namespace: same values,
123
+ types, overloads and class identity. Importing a leaf selects that provider; a
124
+ missing provider fails native ESM linking of the importing module. Loaders take a
125
+ registry from `createClusterMeshModules({ disabled? })` (one per composition root) and
126
+ reject with `ClusterMeshModuleUnavailableError` (`code: 'cluster_mesh_module_unavailable'`,
127
+ reasons `disabled | not_installed | incompatible_version | export_unavailable |
128
+ load_failed | source_unavailable`). Recognize it with `isClusterMeshModuleUnavailableError`
129
+ or by `code`, never by `instanceof` (duplicate copies have distinct constructors).
130
+ `modules.probe()` reports metadata-only availability without evaluating providers;
131
+ pass `modules` to `createDegenerateClusterMesh` to expose `capabilities.modules`.
132
+ MCP and other catalogued capabilities are listed as `source_unavailable` until a
133
+ later minor delivers them.
134
+
135
+ **Startup preflight (fail closed before bind).** llm-gateway imports its auth peers
136
+ only at verification time, so importing an auth leaf proves nothing. Await
137
+ `loadGatewayAuth(modules)` (service) or `loadGatewayAuthHono(modules)` (session)
138
+ before binding any listener; they resolve and evaluate the selected peer graph
139
+ **from the installed gateway's location**. `createGatewayNamespaceModule(modules,
140
+ { enabled, authMode: 'service' | 'session' | 'host', createRouter })` does this for
141
+ you; `host` selects no gateway auth peer (host-injected `CallerAuthPort`).
142
+
143
+ **Topology guard.** Every leaf, loader and compose entry first runs the guard, once
144
+ per set of evaluated copies: more than one evaluated cluster-mesh copy, an llm-mesh
145
+ resolved from cluster-mesh that differs from the gateway's, or (since 0.13.0) an
146
+ installed provider outside its accepted range makes the import throw
147
+ `ClusterMeshTopologyError` (`code: 'cluster_mesh_topology_invalid'`, reason
148
+ `duplicate_instance`, `divergent_llm_mesh` or `incompatible_version`, message naming
149
+ the paths, or the installed version and the required range). llm-mesh entries check
150
+ the llm-mesh range; gateway entries check the llm-gateway and llm-mesh ranges. Ranges
151
+ are checked on the copies cluster-mesh actually resolves (llm-mesh and llm-gateway from
152
+ its own physical location, the gateway's llm-mesh from the gateway's location), release
153
+ versions only: a prerelease version never satisfies, and `+build` metadata is ignored
154
+ as npm does (`0.22.0+build.1` satisfies `>=0.22.0 <0.23.0`). An absent
155
+ provider is left to the leaf import itself.
156
+ Copies are keyed by module URL without `?query`/`#hash`: a copy loaded from another
157
+ path (nested install, `npm link`, a `--preserve-symlinks` link path) is a duplicate,
158
+ while re-evaluating the same file (Vite dev/HMR, `vi.resetModules`, cache-busting
159
+ query imports in test runners) replaces its entry and is not reported.
160
+ `verifyClusterMeshTopology({ require })` from the root is an optional, earlier check
161
+ of both providers' ranges plus the `require` list. Guard state lives on
162
+ `globalThis`, so it is per thread (each `worker_threads` worker checks its own
163
+ copies); cross-process consistency stays with install/qualification gates. Limits:
164
+ under `--preserve-symlinks`, two llm-mesh instances sharing one realpath are not
165
+ detectable without importing both; and the automatic guard also refuses an
166
+ llm-mesh-only consumer when a stray gateway with a private llm-mesh copy is installed
167
+ next to it (remove that gateway copy or align its llm-mesh).
168
+
169
+ **Consumer rules.** Every manifest that declares cluster-mesh and imports a leaf
170
+ also declares that leaf's selected peers at the qualified versions; the installed
171
+ tree must hold exactly one cluster-mesh and one llm-mesh shared with the gateway.
172
+ 0.13.0 is qualified with **npm only** (flat project installs, `npm ci` from a lockfile,
173
+ and a global consumer beside a separately installed runtime); other package managers
174
+ are not qualified. The tested bundler is esbuild with `@sentropic/cluster-mesh` **and**
175
+ `@sentropic/cluster-mesh/*` (and the peer packages) externalized, which keeps the
176
+ resolution anchor at the installed package; bundling the root inline (as the API
177
+ build does) embeds no provider code. TypeScript >= 5.7 is required with
178
+ `skipLibCheck: false` (hono's declarations); with `skipLibCheck: true`, a missing
179
+ peer surfaces as TS2305 on the named import. Frozen tuple (committed lockfile):
180
+ cluster-mesh 0.13.0, llm-mesh 0.22.0, llm-gateway 0.19.0, mcp-auth 0.2.1,
181
+ oauth-verify 0.1.0, jose 5.10.0, hono 4.10.7; session mode with auth-hono 0.15.0
182
+ (llm-gateway 0.19.0's declared peer range `^0.15.0`); the latest versions inside
183
+ every declared range are re-qualified on each release run. The previous tuple
184
+ (llm-mesh 0.21.x, llm-gateway 0.18.x) is refused, see "Upgrading to 0.13" below.
185
+ Release-train runs qualify the unpublished llm-mesh and llm-gateway candidates from
186
+ same-PR sibling archives validated by the CI `loadSiblings` rules (sha256, packed
187
+ identity and manifest guard, receipts packed from the current commit, no unlisted
188
+ archive) (`make -f packages/cluster-mesh/packaging.mk test-lazy-package
189
+ SIBLING_ARCHIVES_FILE=tmp/ci-manifest-guard/siblings/cluster-mesh/receipts.json`); a
190
+ receipt for cluster-mesh itself replaces the local pack as the qualified candidate. The
191
+ committed `selected` lockfile carries their registry URL and the sha512 of those bytes.
192
+
193
+ **Upgrading to 0.13.** Bump cluster-mesh 0.13, llm-mesh 0.22 and llm-gateway 0.19 in
194
+ the same commit; npm may not error on a partial bump. Measured with npm 11.19: a
195
+ consumer keeping its own `^0.21.2`/`^0.18.0` pins fails with `ERESOLVE`, while
196
+ `npm install <candidate> @sentropic/llm-mesh@0.21.2 @sentropic/llm-gateway@0.18.0`
197
+ exits 0 after "ERESOLVE overriding peer dependency" and silently drops the old pair.
198
+ What is automatic: the topology guard runs when a leaf, loader or compose module is
199
+ first evaluated, so a skewed tree (for example built with `--legacy-peer-deps`) fails
200
+ there with `incompatible_version`, naming the installed version and the required
201
+ range, before any provider module evaluates; nothing has to be called. The registry
202
+ loaders (`modules.load('gateway')`) refuse with `cluster_mesh_module_unavailable` /
203
+ `incompatible_version` as well. `verifyClusterMeshTopology()` is an optional earlier
204
+ check for hosts that mount routes before importing any leaf.
205
+
206
+ **Namespace remap.** `createClusterMeshPlugin({ mounts })` mounts each enabled module
207
+ once at `mounts[namespace] ?? namespace`. A standalone gateway host passes
208
+ `mounts: { '/gw': '/' }` and serves exactly `/healthz`, `/readyz`, `/v1/messages`,
209
+ `/v1/chat/completions` and `/v1/models` (nothing under `/gw`); the product keeps
210
+ `/gw` under its own prefix.
211
+
106
212
  ## Available in v1
107
213
 
108
214
  - A directory containing the local server and its attached workstations.
@@ -0,0 +1,5 @@
1
+ import '../modules/topology-guard.js';
2
+ import type { ClusterMeshHonoNamespaceModule } from '../hono/plugin.js';
3
+ /** Unmounted namespace for intentionally disabled preparation (existing 404 behavior). */
4
+ export declare function disabledNamespaceModule(namespace: '/llm-mesh' | '/gw'): ClusterMeshHonoNamespaceModule;
5
+ //# sourceMappingURL=disabled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disabled.d.ts","sourceRoot":"","sources":["../../src/compose/disabled.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,0FAA0F;AAC1F,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,WAAW,GAAG,KAAK,GAAG,8BAA8B,CAQtG"}
@@ -0,0 +1,12 @@
1
+ import '../modules/topology-guard.js';
2
+ /** Unmounted namespace for intentionally disabled preparation (existing 404 behavior). */
3
+ export function disabledNamespaceModule(namespace) {
4
+ return {
5
+ namespace,
6
+ enabled: false,
7
+ createRouter() {
8
+ throw new Error(`Cluster Mesh namespace ${namespace} is disabled`);
9
+ },
10
+ };
11
+ }
12
+ //# sourceMappingURL=disabled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disabled.js","sourceRoot":"","sources":["../../src/compose/disabled.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,0FAA0F;AAC1F,MAAM,UAAU,uBAAuB,CAAC,SAA8B;IACpE,OAAO;QACL,SAAS;QACT,OAAO,EAAE,KAAK;QACd,YAAY;YACV,MAAM,IAAI,KAAK,CAAC,0BAA0B,SAAS,cAAc,CAAC,CAAC;QACrE,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,32 @@
1
+ import '../modules/topology-guard-gateway.js';
2
+ import type { VerifiedInvocationContextPort } from '@sentropic/contracts';
3
+ import type { InvocationReceiptPort } from '@sentropic/events';
4
+ import type { Hono } from 'hono';
5
+ import type { ClusterMeshHonoNamespaceModule } from '../hono/plugin.js';
6
+ import type { ClusterMeshModules } from '../modules/contracts.js';
7
+ /**
8
+ * `service` selects `@sentropic/llm-gateway/auth` (mcp-auth + jose peers), `session`
9
+ * selects `@sentropic/llm-gateway/auth-hono` (auth-hono peer), and `host` means the
10
+ * host injects its own `CallerAuthPort` and selects no gateway auth peer.
11
+ */
12
+ export type GatewayAuthMode = 'service' | 'session' | 'host';
13
+ export interface GatewayRouterInput {
14
+ readonly gateway: typeof import('@sentropic/llm-gateway');
15
+ readonly serviceAuth?: typeof import('@sentropic/llm-gateway/auth');
16
+ readonly sessionAuth?: typeof import('@sentropic/llm-gateway/auth-hono');
17
+ readonly context: VerifiedInvocationContextPort;
18
+ readonly receipts: InvocationReceiptPort;
19
+ }
20
+ export interface GatewayNamespaceOptions {
21
+ readonly enabled: boolean;
22
+ readonly authMode: GatewayAuthMode;
23
+ /** Host router wiring, typically around the gateway's own `createGatewayRouter`. */
24
+ readonly createRouter: (input: GatewayRouterInput) => Hono;
25
+ }
26
+ /**
27
+ * Prepare the `/gw` namespace at composition startup. A selected auth mode is
28
+ * preflighted (its gateway-relative peer graph evaluated) before this resolves, so
29
+ * a missing or incompatible peer fails startup before any listener binds.
30
+ */
31
+ export declare function createGatewayNamespaceModule(modules: ClusterMeshModules, options: GatewayNamespaceOptions): Promise<ClusterMeshHonoNamespaceModule>;
32
+ //# sourceMappingURL=gateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../src/compose/gateway.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAMlE;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,wBAAwB,CAAC,CAAC;IAC1D,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,6BAA6B,CAAC,CAAC;IACpE,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,kCAAkC,CAAC,CAAC;IACzE,QAAQ,CAAC,OAAO,EAAE,6BAA6B,CAAC;IAChD,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;CAC1C;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC5D;AAED;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,8BAA8B,CAAC,CAgBzC"}
@@ -0,0 +1,29 @@
1
+ import '../modules/topology-guard-gateway.js';
2
+ import { loadGateway } from '../loaders/gateway/index.js';
3
+ import { loadGatewayAuth } from '../loaders/gateway/auth.js';
4
+ import { loadGatewayAuthHono } from '../loaders/gateway/auth-hono.js';
5
+ import { disabledNamespaceModule } from './disabled.js';
6
+ /**
7
+ * Prepare the `/gw` namespace at composition startup. A selected auth mode is
8
+ * preflighted (its gateway-relative peer graph evaluated) before this resolves, so
9
+ * a missing or incompatible peer fails startup before any listener binds.
10
+ */
11
+ export async function createGatewayNamespaceModule(modules, options) {
12
+ if (!options.enabled)
13
+ return disabledNamespaceModule('/gw');
14
+ const gateway = await loadGateway(modules);
15
+ const serviceAuth = options.authMode === 'service' ? await loadGatewayAuth(modules) : undefined;
16
+ const sessionAuth = options.authMode === 'session' ? await loadGatewayAuthHono(modules) : undefined;
17
+ return {
18
+ namespace: '/gw',
19
+ enabled: true,
20
+ createRouter: ({ context, receipts }) => options.createRouter({
21
+ gateway,
22
+ ...(serviceAuth ? { serviceAuth } : {}),
23
+ ...(sessionAuth ? { sessionAuth } : {}),
24
+ context,
25
+ receipts,
26
+ }),
27
+ };
28
+ }
29
+ //# sourceMappingURL=gateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway.js","sourceRoot":"","sources":["../../src/compose/gateway.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAC;AAM9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAwBxD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,OAA2B,EAC3B,OAAgC;IAEhC,IAAI,CAAC,OAAO,CAAC,OAAO;QAAE,OAAO,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAChG,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACpG,OAAO;QACL,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,IAAI;QACb,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC;YAC5D,OAAO;YACP,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,OAAO;YACP,QAAQ;SACT,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,23 @@
1
+ import '../modules/topology-guard-llm-mesh.js';
2
+ import type { VerifiedInvocationContextPort } from '@sentropic/contracts';
3
+ import type { InvocationReceiptPort } from '@sentropic/events';
4
+ import type { Hono } from 'hono';
5
+ import type { ClusterMeshHonoNamespaceModule } from '../hono/plugin.js';
6
+ import type { ClusterMeshModules } from '../modules/contracts.js';
7
+ export interface LlmMeshRouterInput {
8
+ readonly llmMesh: typeof import('@sentropic/llm-mesh');
9
+ readonly context: VerifiedInvocationContextPort;
10
+ readonly receipts: InvocationReceiptPort;
11
+ }
12
+ export interface LlmMeshNamespaceOptions {
13
+ readonly enabled: boolean;
14
+ /** Host-injected router factory (llm-mesh exports no router); never imported from application source. */
15
+ readonly createRouter: (input: LlmMeshRouterInput) => Hono;
16
+ }
17
+ /**
18
+ * Prepare the `/llm-mesh` namespace at composition startup. Disabled preparation
19
+ * resolves nothing; an enabled namespace whose provider is unavailable rejects
20
+ * before any listener binds. Mount the result with `createClusterMeshPlugin`.
21
+ */
22
+ export declare function createLlmMeshNamespaceModule(modules: ClusterMeshModules, options: LlmMeshNamespaceOptions): Promise<ClusterMeshHonoNamespaceModule>;
23
+ //# sourceMappingURL=llm-mesh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-mesh.d.ts","sourceRoot":"","sources":["../../src/compose/llm-mesh.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAIlE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,qBAAqB,CAAC,CAAC;IACvD,QAAQ,CAAC,OAAO,EAAE,6BAA6B,CAAC;IAChD,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;CAC1C;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,yGAAyG;IACzG,QAAQ,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC5D;AAED;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,8BAA8B,CAAC,CAQzC"}
@@ -0,0 +1,19 @@
1
+ import '../modules/topology-guard-llm-mesh.js';
2
+ import { loadLlmMesh } from '../loaders/llm-mesh/index.js';
3
+ import { disabledNamespaceModule } from './disabled.js';
4
+ /**
5
+ * Prepare the `/llm-mesh` namespace at composition startup. Disabled preparation
6
+ * resolves nothing; an enabled namespace whose provider is unavailable rejects
7
+ * before any listener binds. Mount the result with `createClusterMeshPlugin`.
8
+ */
9
+ export async function createLlmMeshNamespaceModule(modules, options) {
10
+ if (!options.enabled)
11
+ return disabledNamespaceModule('/llm-mesh');
12
+ const llmMesh = await loadLlmMesh(modules);
13
+ return {
14
+ namespace: '/llm-mesh',
15
+ enabled: true,
16
+ createRouter: ({ context, receipts }) => options.createRouter({ llmMesh, context, receipts }),
17
+ };
18
+ }
19
+ //# sourceMappingURL=llm-mesh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-mesh.js","sourceRoot":"","sources":["../../src/compose/llm-mesh.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAM/C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAcxD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,OAA2B,EAC3B,OAAgC;IAEhC,IAAI,CAAC,OAAO,CAAC,OAAO;QAAE,OAAO,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAClE,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO;QACL,SAAS,EAAE,WAAW;QACtB,OAAO,EAAE,IAAI;QACb,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KAC9F,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -29,4 +29,8 @@ export * from './runtime/receipts.js';
29
29
  export * from './runtime/registration.js';
30
30
  export * from './runtime/session-cutover.js';
31
31
  export * from './messaging/index.js';
32
+ export * from './modules/errors.js';
33
+ export * from './modules/contracts.js';
34
+ export { createClusterMeshModules } from './modules/registry.js';
35
+ export { CLUSTER_MESH_TOPOLOGY_INVALID, ClusterMeshTopologyError, isClusterMeshTopologyError, verifyClusterMeshTopology, type ClusterMeshTopologyReason, type ClusterMeshTopologyReport, type TopologyPackage, type VerifyClusterMeshTopologyOptions, } from './modules/topology.js';
32
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC,MAAM,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -29,4 +29,8 @@ export * from './runtime/receipts.js';
29
29
  export * from './runtime/registration.js';
30
30
  export * from './runtime/session-cutover.js';
31
31
  export * from './messaging/index.js';
32
+ export * from './modules/errors.js';
33
+ export * from './modules/contracts.js';
34
+ export { createClusterMeshModules } from './modules/registry.js';
35
+ export { CLUSTER_MESH_TOPOLOGY_INVALID, ClusterMeshTopologyError, isClusterMeshTopologyError, verifyClusterMeshTopology, } from './modules/topology.js';
32
36
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,GAK1B,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ export * from '@sentropic/llm-gateway/auth-hono';
3
+ //# sourceMappingURL=auth-hono.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-hono.d.ts","sourceRoot":"","sources":["../../../src/integrations/gateway/auth-hono.ts"],"names":[],"mappings":"AACA,OAAO,yCAAyC,CAAC;AACjD,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Static provider leaf: topology guard, then the provider's full public namespace.
2
+ import '../../modules/topology-guard-gateway.js';
3
+ export * from '@sentropic/llm-gateway/auth-hono';
4
+ //# sourceMappingURL=auth-hono.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-hono.js","sourceRoot":"","sources":["../../../src/integrations/gateway/auth-hono.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,yCAAyC,CAAC;AACjD,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ export * from '@sentropic/llm-gateway/auth';
3
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/integrations/gateway/auth.ts"],"names":[],"mappings":"AACA,OAAO,yCAAyC,CAAC;AACjD,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Static provider leaf: topology guard, then the provider's full public namespace.
2
+ import '../../modules/topology-guard-gateway.js';
3
+ export * from '@sentropic/llm-gateway/auth';
4
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/integrations/gateway/auth.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,yCAAyC,CAAC;AACjD,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ export * from '@sentropic/llm-gateway';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/gateway/index.ts"],"names":[],"mappings":"AACA,OAAO,yCAAyC,CAAC;AACjD,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Static provider leaf: topology guard, then the provider's full public namespace.
2
+ import '../../modules/topology-guard-gateway.js';
3
+ export * from '@sentropic/llm-gateway';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/gateway/index.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,yCAAyC,CAAC;AACjD,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import '../../modules/topology-guard-llm-mesh.js';
2
+ export * from '@sentropic/llm-mesh/enrollment';
3
+ //# sourceMappingURL=enrollment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enrollment.d.ts","sourceRoot":"","sources":["../../../src/integrations/llm-mesh/enrollment.ts"],"names":[],"mappings":"AACA,OAAO,0CAA0C,CAAC;AAClD,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Static provider leaf: topology guard, then the provider's full public namespace.
2
+ import '../../modules/topology-guard-llm-mesh.js';
3
+ export * from '@sentropic/llm-mesh/enrollment';
4
+ //# sourceMappingURL=enrollment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enrollment.js","sourceRoot":"","sources":["../../../src/integrations/llm-mesh/enrollment.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,0CAA0C,CAAC;AAClD,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import '../../modules/topology-guard-llm-mesh.js';
2
+ export * from '@sentropic/llm-mesh/facade';
3
+ //# sourceMappingURL=facade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["../../../src/integrations/llm-mesh/facade.ts"],"names":[],"mappings":"AACA,OAAO,0CAA0C,CAAC;AAClD,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Static provider leaf: topology guard, then the provider's full public namespace.
2
+ import '../../modules/topology-guard-llm-mesh.js';
3
+ export * from '@sentropic/llm-mesh/facade';
4
+ //# sourceMappingURL=facade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facade.js","sourceRoot":"","sources":["../../../src/integrations/llm-mesh/facade.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,0CAA0C,CAAC;AAClD,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import '../../modules/topology-guard-llm-mesh.js';
2
+ export * from '@sentropic/llm-mesh';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/llm-mesh/index.ts"],"names":[],"mappings":"AACA,OAAO,0CAA0C,CAAC;AAClD,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Static provider leaf: topology guard, then the provider's full public namespace.
2
+ import '../../modules/topology-guard-llm-mesh.js';
3
+ export * from '@sentropic/llm-mesh';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/llm-mesh/index.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,0CAA0C,CAAC;AAClD,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import '../../modules/topology-guard-llm-mesh.js';
2
+ export * from '@sentropic/llm-mesh/node';
3
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/integrations/llm-mesh/node.ts"],"names":[],"mappings":"AACA,OAAO,0CAA0C,CAAC;AAClD,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Static provider leaf: topology guard, then the provider's full public namespace.
2
+ import '../../modules/topology-guard-llm-mesh.js';
3
+ export * from '@sentropic/llm-mesh/node';
4
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/integrations/llm-mesh/node.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,0CAA0C,CAAC;AAClD,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import '../../../modules/topology-guard-llm-mesh.js';
2
+ export * from '@sentropic/llm-mesh/transport/cloud-code';
3
+ //# sourceMappingURL=cloud-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-code.d.ts","sourceRoot":"","sources":["../../../../src/integrations/llm-mesh/transport/cloud-code.ts"],"names":[],"mappings":"AACA,OAAO,6CAA6C,CAAC;AACrD,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Static provider leaf: topology guard, then the provider's full public namespace.
2
+ import '../../../modules/topology-guard-llm-mesh.js';
3
+ export * from '@sentropic/llm-mesh/transport/cloud-code';
4
+ //# sourceMappingURL=cloud-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-code.js","sourceRoot":"","sources":["../../../../src/integrations/llm-mesh/transport/cloud-code.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,6CAA6C,CAAC;AACrD,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ import type { ClusterMeshModules } from '../../modules/contracts.js';
3
+ /**
4
+ * Session-mode startup preflight: acquires the gateway session-auth namespace and preloads @sentropic/auth-hono/middleware resolved from the installed gateway. Await it before binding a listener.
5
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
6
+ */
7
+ export declare function loadGatewayAuthHono(modules: ClusterMeshModules): Promise<typeof import('@sentropic/llm-gateway/auth-hono')>;
8
+ //# sourceMappingURL=auth-hono.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-hono.d.ts","sourceRoot":"","sources":["../../../src/loaders/gateway/auth-hono.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,kCAAkC,CAAC,CAAC,CAEjI"}
@@ -0,0 +1,9 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ /**
3
+ * Session-mode startup preflight: acquires the gateway session-auth namespace and preloads @sentropic/auth-hono/middleware resolved from the installed gateway. Await it before binding a listener.
4
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
5
+ */
6
+ export async function loadGatewayAuthHono(modules) {
7
+ return (await modules.load('gateway/auth-hono'));
8
+ }
9
+ //# sourceMappingURL=auth-hono.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-hono.js","sourceRoot":"","sources":["../../../src/loaders/gateway/auth-hono.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AAGjD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,OAA2B;IACnE,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAsD,CAAC;AACxG,CAAC"}
@@ -0,0 +1,8 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ import type { ClusterMeshModules } from '../../modules/contracts.js';
3
+ /**
4
+ * Service-mode startup preflight: acquires the gateway service-auth namespace and preloads @sentropic/mcp-auth/hono and jose resolved from the installed gateway. Await it before binding a listener.
5
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
6
+ */
7
+ export declare function loadGatewayAuth(modules: ClusterMeshModules): Promise<typeof import('@sentropic/llm-gateway/auth')>;
8
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/loaders/gateway/auth.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;;GAGG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,6BAA6B,CAAC,CAAC,CAExH"}
@@ -0,0 +1,9 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ /**
3
+ * Service-mode startup preflight: acquires the gateway service-auth namespace and preloads @sentropic/mcp-auth/hono and jose resolved from the installed gateway. Await it before binding a listener.
4
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
5
+ */
6
+ export async function loadGatewayAuth(modules) {
7
+ return (await modules.load('gateway/auth'));
8
+ }
9
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/loaders/gateway/auth.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AAGjD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,OAA2B;IAC/D,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAiD,CAAC;AAC9F,CAAC"}
@@ -0,0 +1,8 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ import type { ClusterMeshModules } from '../../modules/contracts.js';
3
+ /**
4
+ * Acquire the llm-gateway root namespace; selects neither auth mode.
5
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
6
+ */
7
+ export declare function loadGateway(modules: ClusterMeshModules): Promise<typeof import('@sentropic/llm-gateway')>;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/loaders/gateway/index.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;;GAGG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,wBAAwB,CAAC,CAAC,CAE/G"}
@@ -0,0 +1,9 @@
1
+ import '../../modules/topology-guard-gateway.js';
2
+ /**
3
+ * Acquire the llm-gateway root namespace; selects neither auth mode.
4
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
5
+ */
6
+ export async function loadGateway(modules) {
7
+ return (await modules.load('gateway'));
8
+ }
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/loaders/gateway/index.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AAGjD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAA2B;IAC3D,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAA4C,CAAC;AACpF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import '../../modules/topology-guard-llm-mesh.js';
2
+ import type { ClusterMeshModules } from '../../modules/contracts.js';
3
+ /**
4
+ * Acquire the llm-mesh enrollment namespace through the registry.
5
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
6
+ */
7
+ export declare function loadLlmMeshEnrollment(modules: ClusterMeshModules): Promise<typeof import('@sentropic/llm-mesh/enrollment')>;
8
+ //# sourceMappingURL=enrollment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enrollment.d.ts","sourceRoot":"","sources":["../../../src/loaders/llm-mesh/enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;;GAGG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,gCAAgC,CAAC,CAAC,CAEjI"}
@@ -0,0 +1,9 @@
1
+ import '../../modules/topology-guard-llm-mesh.js';
2
+ /**
3
+ * Acquire the llm-mesh enrollment namespace through the registry.
4
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
5
+ */
6
+ export async function loadLlmMeshEnrollment(modules) {
7
+ return (await modules.load('llm-mesh/enrollment'));
8
+ }
9
+ //# sourceMappingURL=enrollment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enrollment.js","sourceRoot":"","sources":["../../../src/loaders/llm-mesh/enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAGlD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAA2B;IACrE,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAoD,CAAC;AACxG,CAAC"}
@@ -0,0 +1,8 @@
1
+ import '../../modules/topology-guard-llm-mesh.js';
2
+ import type { ClusterMeshModules } from '../../modules/contracts.js';
3
+ /**
4
+ * Acquire the llm-mesh facade namespace through the registry.
5
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
6
+ */
7
+ export declare function loadLlmMeshFacade(modules: ClusterMeshModules): Promise<typeof import('@sentropic/llm-mesh/facade')>;
8
+ //# sourceMappingURL=facade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["../../../src/loaders/llm-mesh/facade.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,4BAA4B,CAAC,CAAC,CAEzH"}
@@ -0,0 +1,9 @@
1
+ import '../../modules/topology-guard-llm-mesh.js';
2
+ /**
3
+ * Acquire the llm-mesh facade namespace through the registry.
4
+ * Rejects with `ClusterMeshModuleUnavailableError` (recognize by `code`).
5
+ */
6
+ export async function loadLlmMeshFacade(modules) {
7
+ return (await modules.load('llm-mesh/facade'));
8
+ }
9
+ //# sourceMappingURL=facade.js.map