@soederpop/luca 0.0.15 → 0.0.16

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.
@@ -1,7 +1,7 @@
1
1
  import { setBuildTimeData, setContainerBuildTimeData } from './index.js';
2
2
 
3
3
  // Auto-generated introspection registry data
4
- // Generated at: 2026-03-20T05:45:32.173Z
4
+ // Generated at: 2026-03-20T16:22:28.985Z
5
5
 
6
6
  setBuildTimeData('features.containerLink', {
7
7
  "id": "features.containerLink",
@@ -1,5 +1,5 @@
1
1
  // Auto-generated scaffold and MCP readme content
2
- // Generated at: 2026-03-20T05:45:33.043Z
2
+ // Generated at: 2026-03-20T16:22:29.911Z
3
3
  // Source: docs/scaffolds/*.md, docs/examples/assistant/, and docs/mcp/readme.md
4
4
  //
5
5
  // Do not edit manually. Run: luca build-scaffolds
@@ -209,6 +209,29 @@ export class ExpressServer<T extends ServerState = ServerState, K extends Expres
209
209
  return this
210
210
  }
211
211
 
212
+ async useEndpointModules(modules: EndpointModule[]): Promise<this> {
213
+ for (const mod of modules) {
214
+ try {
215
+ const endpointModule: EndpointModule = (mod as any).default || mod
216
+
217
+ if (!endpointModule.path) {
218
+ continue
219
+ }
220
+
221
+ const endpoint = new Endpoint(
222
+ { path: endpointModule.path },
223
+ this.container.context
224
+ )
225
+ await endpoint.load(endpointModule)
226
+ this.useEndpoint(endpoint)
227
+ } catch (err) {
228
+ console.error(`Failed to load endpoint module (${(mod as any).path || 'unknown'}):`, err)
229
+ }
230
+ }
231
+
232
+ return this
233
+ }
234
+
212
235
  serveOpenAPISpec(options: { title?: string; version?: string; description?: string } = {}): this {
213
236
  const server = this
214
237
  this.app.get('/openapi.json', (_req: any, res: any) => {