@mcp-abap-adt/llm-agent-server-libs 20.0.0 → 20.4.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.
- package/dist/builders/controller-skill-pipeline-builder.d.ts +57 -0
- package/dist/builders/controller-skill-pipeline-builder.d.ts.map +1 -0
- package/dist/builders/controller-skill-pipeline-builder.js +175 -0
- package/dist/builders/controller-skill-pipeline-builder.js.map +1 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/pipelines/controller.d.ts.map +1 -1
- package/dist/pipelines/controller.js +19 -3
- package/dist/pipelines/controller.js.map +1 -1
- package/dist/pipelines/coordinator-resolvers.d.ts +68 -0
- package/dist/pipelines/coordinator-resolvers.d.ts.map +1 -0
- package/dist/pipelines/coordinator-resolvers.js +97 -0
- package/dist/pipelines/coordinator-resolvers.js.map +1 -0
- package/dist/pipelines/parsers.d.ts +1 -1
- package/dist/pipelines/parsers.d.ts.map +1 -1
- package/dist/pipelines/parsers.js +5 -4
- package/dist/pipelines/parsers.js.map +1 -1
- package/dist/pipelines/register-skill-sources.d.ts.map +1 -1
- package/dist/pipelines/register-skill-sources.js +5 -0
- package/dist/pipelines/register-skill-sources.js.map +1 -1
- package/dist/smart-agent/build-stepper-root.d.ts +3 -2
- package/dist/smart-agent/build-stepper-root.d.ts.map +1 -1
- package/dist/smart-agent/build-stepper-root.js +2 -1
- package/dist/smart-agent/build-stepper-root.js.map +1 -1
- package/dist/smart-agent/config-reload-watcher.d.ts +30 -0
- package/dist/smart-agent/config-reload-watcher.d.ts.map +1 -0
- package/dist/smart-agent/config-reload-watcher.js +101 -0
- package/dist/smart-agent/config-reload-watcher.js.map +1 -0
- package/dist/smart-agent/config-validator.d.ts +21 -0
- package/dist/smart-agent/config-validator.d.ts.map +1 -0
- package/dist/smart-agent/config-validator.js +196 -0
- package/dist/smart-agent/config-validator.js.map +1 -0
- package/dist/smart-agent/config.d.ts +16 -254
- package/dist/smart-agent/config.d.ts.map +1 -1
- package/dist/smart-agent/config.js +17 -904
- package/dist/smart-agent/config.js.map +1 -1
- package/dist/smart-agent/controller/board.d.ts +6 -3
- package/dist/smart-agent/controller/board.d.ts.map +1 -1
- package/dist/smart-agent/controller/board.js +21 -0
- package/dist/smart-agent/controller/board.js.map +1 -1
- package/dist/smart-agent/controller/controller-coordinator-handler.d.ts +6 -48
- package/dist/smart-agent/controller/controller-coordinator-handler.d.ts.map +1 -1
- package/dist/smart-agent/controller/controller-coordinator-handler.js +68 -357
- package/dist/smart-agent/controller/controller-coordinator-handler.js.map +1 -1
- package/dist/smart-agent/controller/finalizer.d.ts +5 -0
- package/dist/smart-agent/controller/finalizer.d.ts.map +1 -1
- package/dist/smart-agent/controller/finalizer.js +12 -5
- package/dist/smart-agent/controller/finalizer.js.map +1 -1
- package/dist/smart-agent/controller/parser.d.ts +11 -0
- package/dist/smart-agent/controller/parser.d.ts.map +1 -0
- package/dist/smart-agent/controller/parser.js +77 -0
- package/dist/smart-agent/controller/parser.js.map +1 -0
- package/dist/smart-agent/controller/planner.js +1 -1
- package/dist/smart-agent/controller/planner.js.map +1 -1
- package/dist/smart-agent/controller/recall.d.ts +48 -0
- package/dist/smart-agent/controller/recall.d.ts.map +1 -0
- package/dist/smart-agent/controller/recall.js +196 -0
- package/dist/smart-agent/controller/recall.js.map +1 -0
- package/dist/smart-agent/controller/reviewer.d.ts.map +1 -1
- package/dist/smart-agent/controller/reviewer.js +1 -1
- package/dist/smart-agent/controller/reviewer.js.map +1 -1
- package/dist/smart-agent/controller/usage-logging.d.ts +16 -0
- package/dist/smart-agent/controller/usage-logging.d.ts.map +1 -0
- package/dist/smart-agent/controller/usage-logging.js +39 -0
- package/dist/smart-agent/controller/usage-logging.js.map +1 -0
- package/dist/smart-agent/http/adapter-route-handler.d.ts +13 -0
- package/dist/smart-agent/http/adapter-route-handler.d.ts.map +1 -0
- package/dist/smart-agent/http/adapter-route-handler.js +76 -0
- package/dist/smart-agent/http/adapter-route-handler.js.map +1 -0
- package/dist/smart-agent/http/chat-route-handler.d.ts +15 -0
- package/dist/smart-agent/http/chat-route-handler.d.ts.map +1 -0
- package/dist/smart-agent/http/chat-route-handler.js +327 -0
- package/dist/smart-agent/http/chat-route-handler.js.map +1 -0
- package/dist/smart-agent/http/config-route-handler.d.ts +21 -0
- package/dist/smart-agent/http/config-route-handler.d.ts.map +1 -0
- package/dist/smart-agent/http/config-route-handler.js +149 -0
- package/dist/smart-agent/http/config-route-handler.js.map +1 -0
- package/dist/smart-agent/http/health-route-handler.d.ts +12 -0
- package/dist/smart-agent/http/health-route-handler.d.ts.map +1 -0
- package/dist/smart-agent/http/health-route-handler.js +19 -0
- package/dist/smart-agent/http/health-route-handler.js.map +1 -0
- package/dist/smart-agent/http/models-route-handler.d.ts +17 -0
- package/dist/smart-agent/http/models-route-handler.d.ts.map +1 -0
- package/dist/smart-agent/http/models-route-handler.js +65 -0
- package/dist/smart-agent/http/models-route-handler.js.map +1 -0
- package/dist/smart-agent/http/response-helpers.d.ts +31 -0
- package/dist/smart-agent/http/response-helpers.d.ts.map +1 -0
- package/dist/smart-agent/http/response-helpers.js +59 -0
- package/dist/smart-agent/http/response-helpers.js.map +1 -0
- package/dist/smart-agent/http/route-table.d.ts +44 -0
- package/dist/smart-agent/http/route-table.d.ts.map +1 -0
- package/dist/smart-agent/http/route-table.js +35 -0
- package/dist/smart-agent/http/route-table.js.map +1 -0
- package/dist/smart-agent/http/session-cookie.d.ts +10 -0
- package/dist/smart-agent/http/session-cookie.d.ts.map +1 -0
- package/dist/smart-agent/http/session-cookie.js +16 -0
- package/dist/smart-agent/http/session-cookie.js.map +1 -0
- package/dist/smart-agent/http/sessions-route-handler.d.ts +8 -0
- package/dist/smart-agent/http/sessions-route-handler.d.ts.map +1 -0
- package/dist/smart-agent/http/sessions-route-handler.js +54 -0
- package/dist/smart-agent/http/sessions-route-handler.js.map +1 -0
- package/dist/smart-agent/http/usage-route-handler.d.ts +12 -0
- package/dist/smart-agent/http/usage-route-handler.d.ts.map +1 -0
- package/dist/smart-agent/http/usage-route-handler.js +28 -0
- package/dist/smart-agent/http/usage-route-handler.js.map +1 -0
- package/dist/smart-agent/knowledge/make-knowledge-backend.d.ts +13 -0
- package/dist/smart-agent/knowledge/make-knowledge-backend.d.ts.map +1 -0
- package/dist/smart-agent/knowledge/make-knowledge-backend.js +18 -0
- package/dist/smart-agent/knowledge/make-knowledge-backend.js.map +1 -0
- package/dist/smart-agent/llm/role-llm-resolver.d.ts +30 -0
- package/dist/smart-agent/llm/role-llm-resolver.d.ts.map +1 -0
- package/dist/smart-agent/llm/role-llm-resolver.js +44 -0
- package/dist/smart-agent/llm/role-llm-resolver.js.map +1 -0
- package/dist/smart-agent/llm-config-map.d.ts +38 -0
- package/dist/smart-agent/llm-config-map.d.ts.map +1 -0
- package/dist/smart-agent/llm-config-map.js +75 -0
- package/dist/smart-agent/llm-config-map.js.map +1 -0
- package/dist/smart-agent/mcp-readiness-monitor.d.ts +38 -0
- package/dist/smart-agent/mcp-readiness-monitor.d.ts.map +1 -0
- package/dist/smart-agent/mcp-readiness-monitor.js +81 -0
- package/dist/smart-agent/mcp-readiness-monitor.js.map +1 -0
- package/dist/smart-agent/mcp-readiness-registry.d.ts +37 -0
- package/dist/smart-agent/mcp-readiness-registry.d.ts.map +1 -0
- package/dist/smart-agent/mcp-readiness-registry.js +55 -0
- package/dist/smart-agent/mcp-readiness-registry.js.map +1 -0
- package/dist/smart-agent/resolve-config-sections.d.ts +15 -0
- package/dist/smart-agent/resolve-config-sections.d.ts.map +1 -0
- package/dist/smart-agent/resolve-config-sections.js +212 -0
- package/dist/smart-agent/resolve-config-sections.js.map +1 -0
- package/dist/smart-agent/session-lifecycle/index.d.ts +117 -0
- package/dist/smart-agent/session-lifecycle/index.d.ts.map +1 -0
- package/dist/smart-agent/session-lifecycle/index.js +152 -0
- package/dist/smart-agent/session-lifecycle/index.js.map +1 -0
- package/dist/smart-agent/skill-plugins-config.d.ts +9 -1
- package/dist/smart-agent/skill-plugins-config.d.ts.map +1 -1
- package/dist/smart-agent/skill-plugins-config.js +27 -1
- package/dist/smart-agent/skill-plugins-config.js.map +1 -1
- package/dist/smart-agent/skill-plugins-host-factory.d.ts +14 -2
- package/dist/smart-agent/skill-plugins-host-factory.d.ts.map +1 -1
- package/dist/smart-agent/skill-plugins-host-factory.js +16 -4
- package/dist/smart-agent/skill-plugins-host-factory.js.map +1 -1
- package/dist/smart-agent/smart-server.d.ts +151 -222
- package/dist/smart-agent/smart-server.d.ts.map +1 -1
- package/dist/smart-agent/smart-server.js +527 -1384
- package/dist/smart-agent/smart-server.js.map +1 -1
- package/dist/smart-agent/stepper-config.d.ts +138 -0
- package/dist/smart-agent/stepper-config.d.ts.map +1 -0
- package/dist/smart-agent/stepper-config.js +216 -0
- package/dist/smart-agent/stepper-config.js.map +1 -0
- package/dist/smart-agent/tools-rag-handle.d.ts +10 -0
- package/dist/smart-agent/tools-rag-handle.d.ts.map +1 -0
- package/dist/smart-agent/tools-rag-handle.js +76 -0
- package/dist/smart-agent/tools-rag-handle.js.map +1 -0
- package/dist/smart-agent/workers/worker-registry.d.ts +159 -0
- package/dist/smart-agent/workers/worker-registry.d.ts.map +1 -0
- package/dist/smart-agent/workers/worker-registry.js +203 -0
- package/dist/smart-agent/workers/worker-registry.js.map +1 -0
- package/dist/smart-agent/yaml-loader.d.ts +7 -0
- package/dist/smart-agent/yaml-loader.d.ts.map +1 -0
- package/dist/smart-agent/yaml-loader.js +146 -0
- package/dist/smart-agent/yaml-loader.js.map +1 -0
- package/package.json +7 -7
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SmartServer — embeddable OpenAI-compatible HTTP server backed by SmartAgent.
|
|
3
3
|
*/
|
|
4
|
-
import type { EmbedderFactory, IClientAdapter, IEmbedder,
|
|
5
|
-
import { type
|
|
6
|
-
import type { IPluginLoader
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import type { EmbedderFactory, IClientAdapter, IEmbedder, ILlm, ILlmApiAdapter, IMcpClient, IModelResolver, IRequestLogger, ISkillManager, ISkillPluginHost, ISmartAgent } from '@mcp-abap-adt/llm-agent';
|
|
5
|
+
import { type IMcpFailureClassifier } from '@mcp-abap-adt/llm-agent';
|
|
6
|
+
import type { IPluginLoader } from '@mcp-abap-adt/llm-agent-libs';
|
|
7
|
+
import type { EmbedderResolutionConfig, EmbedderResolutionOptions } from '@mcp-abap-adt/llm-agent-rag';
|
|
8
|
+
import { prefetchEmbedderFactories } from '@mcp-abap-adt/llm-agent-rag';
|
|
9
|
+
export { writeNotReady } from './http/response-helpers.js';
|
|
9
10
|
export interface SmartServerLlmConfig {
|
|
10
11
|
/** Provider id for the flat schema. Required when no pipeline.llm.main is set. */
|
|
11
12
|
provider?: 'deepseek' | 'openai' | 'anthropic' | 'sap-ai-sdk' | 'ollama';
|
|
@@ -56,6 +57,12 @@ export interface SmartServerMcpConfig {
|
|
|
56
57
|
command?: string;
|
|
57
58
|
args?: string[];
|
|
58
59
|
headers?: Record<string, string>;
|
|
60
|
+
/** Default per-call MCP request timeout in ms (default 120000 = 2 min).
|
|
61
|
+
* Per-tool overrides via toolTimeouts. */
|
|
62
|
+
timeout?: number;
|
|
63
|
+
/** Per-tool MCP request-timeout overrides in ms, keyed by tool name.
|
|
64
|
+
* Takes precedence over timeout. */
|
|
65
|
+
toolTimeouts?: Record<string, number>;
|
|
59
66
|
}
|
|
60
67
|
export interface SmartServerAgentConfig {
|
|
61
68
|
externalToolsValidationMode?: 'permissive' | 'strict';
|
|
@@ -197,6 +204,36 @@ export interface SmartServerConfig {
|
|
|
197
204
|
cookieName?: string;
|
|
198
205
|
};
|
|
199
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* DI seam for SmartServer's LLM / embedder / skill-host / MCP construction.
|
|
209
|
+
* Every member is optional and defaults to the real implementation, so omitting
|
|
210
|
+
* `deps` (or passing `{}`) preserves the original behaviour exactly. Used by
|
|
211
|
+
* tests (and a future no-listen `buildAgent()`) to substitute canned
|
|
212
|
+
* implementations without network or port I/O.
|
|
213
|
+
*/
|
|
214
|
+
export interface BuildAgentDeps {
|
|
215
|
+
makeLlm?: (cfg: SmartServerLlmConfig) => Promise<ILlm>;
|
|
216
|
+
resolveEmbedder?: (cfg: EmbedderResolutionConfig, options?: EmbedderResolutionOptions) => IEmbedder;
|
|
217
|
+
prefetchEmbedderFactories?: typeof prefetchEmbedderFactories;
|
|
218
|
+
buildSkillHost?: (cfg: SkillPluginsConfig, deps: BuildSkillHostDeps) => Promise<ISkillPluginHost>;
|
|
219
|
+
skillHost?: ISkillPluginHost;
|
|
220
|
+
connectMcp?: (mcpCfg: SmartServerMcpConfig | SmartServerMcpConfig[] | undefined | null) => Promise<IMcpClient[]>;
|
|
221
|
+
/**
|
|
222
|
+
* Ready-to-use MCP clients — parallel to `skillHost` (NOT an
|
|
223
|
+
* `IMcpConnectionStrategy`). When present they are used DIRECTLY and take
|
|
224
|
+
* precedence over `cfg.mcpClients`, plugin clients, and the YAML `mcp:` block:
|
|
225
|
+
* NO connect runs (the embeddable `buildAgent(cfg)` path never forces a real
|
|
226
|
+
* MCP connection). Inject `[]` to deliberately disable MCP.
|
|
227
|
+
*/
|
|
228
|
+
mcpClients?: IMcpClient[];
|
|
229
|
+
/** Injected embedder — short-circuits BOTH resolveAgentEmbedder (diEmbedder) AND
|
|
230
|
+
* the skill-host embedder resolution + prefetch. */
|
|
231
|
+
embedder?: IEmbedder;
|
|
232
|
+
/** Custom MCP failure classifier (DI/programmatic only — not in YAML).
|
|
233
|
+
* Decides whether a failed tool-call is an availability escalation or a
|
|
234
|
+
* tool-level error. Default: DefaultMcpFailureClassifier. */
|
|
235
|
+
mcpFailureClassifier?: IMcpFailureClassifier;
|
|
236
|
+
}
|
|
200
237
|
/**
|
|
201
238
|
* A nested sub-agent declared via the top-level `subagents:` YAML block.
|
|
202
239
|
* The `config` field is the resolved `SmartServerConfig` for the sub-agent
|
|
@@ -218,212 +255,14 @@ export interface SmartServerHandle {
|
|
|
218
255
|
close(): Promise<void>;
|
|
219
256
|
requestLogger: IRequestLogger;
|
|
220
257
|
}
|
|
221
|
-
import type { ISessionMetaStore, SessionMetaRow } from './session-meta-store.js';
|
|
222
258
|
import type { SkillPluginsConfig } from './skill-plugins-config.js';
|
|
259
|
+
import type { BuildSkillHostDeps } from './skill-plugins-host-factory.js';
|
|
223
260
|
export { generateConfigTemplate, loadYamlConfig, type ResolveConfigArgs, resolveCoordinatorActivation, resolveCoordinatorDispatch, resolveCoordinatorPlanning, resolveEnvVars, resolveSmartServerConfig, resolveToolSelectionStrategy, YAML_TEMPLATE, type YamlConfig, } from './config.js';
|
|
224
261
|
export { makePgPool, makePgReadPool } from './pg-pool.js';
|
|
225
262
|
export { parseSkillPluginsConfig, type SkillPluginsCatalogConfig, type SkillPluginsConfig, type SkillPluginsFetchedSource, type SkillPluginsRecordsSource, type SkillPluginsSource, type SkillPluginsStoreConfig, } from './skill-plugins-config.js';
|
|
226
263
|
export { type BuildSkillHostDeps, buildSkillHostFromConfig, type IClosablePool, initSkillHost, validateServedGroups, } from './skill-plugins-host-factory.js';
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
* session. In addition to LLM/embedder clients, the worker's OWN declared
|
|
230
|
-
* `toolsRag`/`historyRag`/`mcpClients` (if any) are cached here too — the
|
|
231
|
-
* per-session re-wire MUST prefer the worker's own resources over the
|
|
232
|
-
* parent's injected ones, so we build them once and reuse by reference.
|
|
233
|
-
*/
|
|
234
|
-
export interface WorkerLlmSet {
|
|
235
|
-
mainLlm: ILlm;
|
|
236
|
-
classifierLlm: ILlm;
|
|
237
|
-
helperLlm?: ILlm;
|
|
238
|
-
embedder?: IEmbedder;
|
|
239
|
-
/** Worker's OWN tools RAG, built from `subCfg.rag` if declared. */
|
|
240
|
-
toolsRag?: IRag;
|
|
241
|
-
/** Worker's OWN history RAG (mirrors flat-rag block, separate instance). */
|
|
242
|
-
historyRag?: IRag;
|
|
243
|
-
/**
|
|
244
|
-
* Worker's OWN MCP clients (from `subCfg.mcpClients` DI or built once from
|
|
245
|
-
* `subCfg.mcp`). Undefined means the worker did not declare any — caller
|
|
246
|
-
* may fall back to the parent's injected clients.
|
|
247
|
-
*/
|
|
248
|
-
mcpClients?: IMcpClient[];
|
|
249
|
-
/**
|
|
250
|
-
* Shutdown function returned by the builder's `SmartAgentHandle.close()`
|
|
251
|
-
* for this worker (Fix #21). Disconnects MCP clients (and any other
|
|
252
|
-
* builder-owned resources) registered to this worker. Captured by
|
|
253
|
-
* `backfillWorkerCacheFromHandle` so `_drainWorkerCache()` can call it on
|
|
254
|
-
* config-reload (PUT /v1/config + hot-reload) and on server shutdown —
|
|
255
|
-
* without this, the per-worker handle is discarded by `buildSubAgent` and
|
|
256
|
-
* lazy rebuilds (Fix #18) accumulate MCP connections with no close path.
|
|
257
|
-
*/
|
|
258
|
-
close?: () => Promise<void>;
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Drain every cached worker's `close` (if any), then clear the cache map.
|
|
262
|
-
* Used by config-reload (PUT /v1/config + hot-reload — Fix #14/18/21) and by
|
|
263
|
-
* server `close()` to release per-worker MCP connections that were attached
|
|
264
|
-
* to the discarded `SmartAgentHandle`s.
|
|
265
|
-
*
|
|
266
|
-
* IMPORTANT — in-flight caveat: this aborts any request that is mid-call on
|
|
267
|
-
* a worker's MCP client. That is acceptable for an admin action (config
|
|
268
|
-
* reload, server shutdown) where the alternative is leaking connections.
|
|
269
|
-
* Server `close()` calls this AFTER `lifecycle.disposeAll()` so per-session
|
|
270
|
-
* graphs that reference worker clients are torn down first.
|
|
271
|
-
*
|
|
272
|
-
* Uses `Promise.allSettled` so one failing close cannot block the others.
|
|
273
|
-
*/
|
|
274
|
-
export declare function drainWorkerCache(cache: Map<string, WorkerLlmSet>): Promise<void>;
|
|
275
|
-
/**
|
|
276
|
-
* Build-once-per-worker resolver. The first time a worker name is seen, it
|
|
277
|
-
* constructs the worker's main/classifier/(optional helper) LLM + embedder and
|
|
278
|
-
* caches the set; every later call (e.g. each per-session worker re-wire)
|
|
279
|
-
* returns the SAME set by reference — never reconstructing LLM clients
|
|
280
|
-
* (locked invariant: LLM/embedder clients are global, built once).
|
|
281
|
-
*
|
|
282
|
-
* Accepts optional `makeToolsRag`/`makeHistoryRag`/`makeMcpClients` factories;
|
|
283
|
-
* when provided, the resolver builds them ONCE on the first miss and caches
|
|
284
|
-
* them on the returned set. Subsequent calls return the cached resources by
|
|
285
|
-
* reference — never re-vectorizing or re-connecting MCP.
|
|
286
|
-
*/
|
|
287
|
-
export declare function resolveWorkerLlmSet(input: {
|
|
288
|
-
name: string;
|
|
289
|
-
cache: Map<string, WorkerLlmSet>;
|
|
290
|
-
makeMain: () => Promise<ILlm>;
|
|
291
|
-
makeClassifier: () => Promise<ILlm>;
|
|
292
|
-
makeHelper?: () => Promise<ILlm>;
|
|
293
|
-
makeEmbedder?: () => Promise<IEmbedder>;
|
|
294
|
-
makeToolsRag?: () => Promise<IRag>;
|
|
295
|
-
makeHistoryRag?: () => Promise<IRag>;
|
|
296
|
-
makeMcpClients?: () => Promise<IMcpClient[]>;
|
|
297
|
-
}): Promise<WorkerLlmSet>;
|
|
298
|
-
/**
|
|
299
|
-
* Backfill the per-worker cache entry from the BUILT handle (review HIGH #7).
|
|
300
|
-
*
|
|
301
|
-
* The primary `buildSubAgent` populates `cached.mcpClients`/`toolsRag`/
|
|
302
|
-
* `historyRag` only when the worker config provided DI factories. Workers
|
|
303
|
-
* configured with `subCfg.mcp: ...` (regular config that triggers the
|
|
304
|
-
* builder's own auto-connect) or with `subCfg.rag: ...` whose RAG is owned
|
|
305
|
-
* by the builder leave those slots empty — so per-session re-wires would
|
|
306
|
-
* fall back to the PARENT's MCP/RAG, losing the worker's own connection.
|
|
307
|
-
*
|
|
308
|
-
* After the builder finishes, this helper captures what the handle actually
|
|
309
|
-
* holds and stores it BY REFERENCE on the cache entry. Subsequent per-session
|
|
310
|
-
* re-wires read the same slots and find the worker's own resources.
|
|
311
|
-
*
|
|
312
|
-
* Pure helper, mutates `entry` in place. No-op when the corresponding slot
|
|
313
|
-
* is already populated (DI path wins) or when the handle has no resource for
|
|
314
|
-
* that slot (worker simply didn't declare one).
|
|
315
|
-
*/
|
|
316
|
-
export declare function backfillWorkerCacheFromHandle(entry: WorkerLlmSet, handle: {
|
|
317
|
-
mcpClients?: IMcpClient[];
|
|
318
|
-
ragRegistry: {
|
|
319
|
-
get(name: string): IRag | undefined;
|
|
320
|
-
};
|
|
321
|
-
close?: () => Promise<void>;
|
|
322
|
-
}): Promise<void>;
|
|
323
|
-
/**
|
|
324
|
-
* Share the parent RAG registry with subagents (per-session worker re-wire).
|
|
325
|
-
* Session/user/global collections written at the top level become visible to
|
|
326
|
-
* workers; the per-call scope filter (`rag-query.ts`) isolates by
|
|
327
|
-
* `ctx.sessionId` / `ctx.options.userId`. A worker's own declared store is
|
|
328
|
-
* registered INTO this same registry under its namespace. When the parent
|
|
329
|
-
* registry is undefined (no top-level registry yet — e.g. unit test seam),
|
|
330
|
-
* return undefined so the builder allocates its own SimpleRagRegistry.
|
|
331
|
-
*/
|
|
332
|
-
export declare function resolveSubAgentRagRegistry(input: {
|
|
333
|
-
parentRagRegistry: IRagRegistry | undefined;
|
|
334
|
-
}): IRagRegistry | undefined;
|
|
335
|
-
/**
|
|
336
|
-
* Options for `buildSessionLifecycle`. Composes the SessionGraphFactory + the
|
|
337
|
-
* SessionRegistry; exposes a thin facade so `_handle` stays unit-testable.
|
|
338
|
-
*/
|
|
339
|
-
export interface SessionLifecycleOptions {
|
|
340
|
-
idleTtlMs: number;
|
|
341
|
-
maxSessions: number;
|
|
342
|
-
cookieName: string;
|
|
343
|
-
mcpClients: IMcpClient[];
|
|
344
|
-
toolsRag: IRag | undefined;
|
|
345
|
-
ragRegistry: IRagRegistry;
|
|
346
|
-
buildAgent: (parts: SessionAgentParts) => Promise<SmartAgent | undefined>;
|
|
347
|
-
/** Optional logger forwarded to SessionGraphFactory for cleanup-failure surfacing. */
|
|
348
|
-
logger?: ILogger;
|
|
349
|
-
/**
|
|
350
|
-
* Optional per-session teardown hook run during `SessionGraph.dispose()`.
|
|
351
|
-
* The host wires this to invoke the pipeline plugin's
|
|
352
|
-
* `IPipelineInstance.close()` captured by `buildPipelineInstance`.
|
|
353
|
-
*/
|
|
354
|
-
onDispose?: (sessionId: string) => Promise<void>;
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* Composes the cookie identity resolver + SessionGraphFactory + SessionRegistry
|
|
358
|
-
* into one lifecycle object the server's `_handle` consumes. The default MCP
|
|
359
|
-
* factory returns the shared GLOBAL clients by reference (one upstream
|
|
360
|
-
* connection); a creds-aware build swaps it out (out of scope here).
|
|
361
|
-
*/
|
|
362
|
-
export declare function buildSessionLifecycle(opts: SessionLifecycleOptions): {
|
|
363
|
-
resolve: (cookieHeader: string | undefined, isHttps: boolean) => ReturnType<typeof resolveSessionIdentity>;
|
|
364
|
-
acquire: (sessionId: string) => Promise<ReturnType<SessionRegistry['acquire']> extends Promise<infer G> ? G : never>;
|
|
365
|
-
release: (sessionId: string, graph?: SessionGraph) => void;
|
|
366
|
-
evictIdle: () => Promise<void>;
|
|
367
|
-
disposeAll: () => Promise<void>;
|
|
368
|
-
invalidateAll: () => Promise<void>;
|
|
369
|
-
registry: SessionRegistry;
|
|
370
|
-
};
|
|
371
|
-
export type SessionLifecycle = ReturnType<typeof buildSessionLifecycle>;
|
|
372
|
-
/** Response shape for GET /v1/sessions */
|
|
373
|
-
export interface SessionListBody {
|
|
374
|
-
sessions: SessionMetaRow[];
|
|
375
|
-
}
|
|
376
|
-
/** Response shape for POST /v1/sessions/:id/resume */
|
|
377
|
-
export interface SessionResumeBody {
|
|
378
|
-
ok: boolean;
|
|
379
|
-
session?: SessionMetaRow;
|
|
380
|
-
error?: string;
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Seed session-scope guidance entries into a BRAND-NEW session's knowledge-RAG
|
|
384
|
-
* (deployment-supplied tool-usage guidance the planner/executor read in "Known
|
|
385
|
-
* facts"). Idempotent: rehydrates via init() and writes ONLY when the session is
|
|
386
|
-
* empty (`fingerprint() === 'n=0'`), so resumes never duplicate. Entries are
|
|
387
|
-
* config DATA — the runtime stays MCP-agnostic (no tool knowledge in agent code).
|
|
388
|
-
*/
|
|
389
|
-
export declare function seedSessionKnowledge(kr: IKnowledgeRagHandle & {
|
|
390
|
-
init?(): Promise<void>;
|
|
391
|
-
fingerprint?(): string;
|
|
392
|
-
}, seeds: ReadonlyArray<{
|
|
393
|
-
content: string;
|
|
394
|
-
artifactType: string;
|
|
395
|
-
}>, nowIso: string): Promise<void>;
|
|
396
|
-
/**
|
|
397
|
-
* Record that a request for `sessionId` STARTED — create the meta row on first
|
|
398
|
-
* sight, else touch it and mark in-progress. Called from the live request path
|
|
399
|
-
* (`_withSession`) so GET /v1/sessions, resume and delete actually see sessions
|
|
400
|
-
* produced by normal chat/stream traffic (review Finding 3). `userIdentity` is
|
|
401
|
-
* the sessionId itself in the default no-auth build — matching how the
|
|
402
|
-
* /v1/sessions endpoints resolve identity (`resolved.identity.sessionId`).
|
|
403
|
-
*/
|
|
404
|
-
export declare function recordSessionStart(store: ISessionMetaStore, sessionId: string, nowIso: string): Promise<void>;
|
|
405
|
-
/**
|
|
406
|
-
* Record that a request for `sessionId` FINISHED — touch + mark idle (so it can
|
|
407
|
-
* be resumed). No-op if the row was deleted mid-flight.
|
|
408
|
-
*/
|
|
409
|
-
export declare function recordSessionEnd(store: ISessionMetaStore, sessionId: string, nowIso: string): Promise<void>;
|
|
410
|
-
/**
|
|
411
|
-
* List all sessions for a given user identity.
|
|
412
|
-
* Extracted for unit-testability (mirrors the /v1/usage handler pattern).
|
|
413
|
-
*/
|
|
414
|
-
export declare function handleListSessions(store: ISessionMetaStore, identity: string): Promise<SessionListBody>;
|
|
415
|
-
/**
|
|
416
|
-
* Resume (claim) a session by ID for a user identity.
|
|
417
|
-
* Sets the session status to 'idle' so it can be re-entered.
|
|
418
|
-
*/
|
|
419
|
-
export declare function handleResumeSession(store: ISessionMetaStore, identity: string, id: string): Promise<SessionResumeBody>;
|
|
420
|
-
/**
|
|
421
|
-
* Delete a session by ID for a user identity, and evict its RAG state.
|
|
422
|
-
*/
|
|
423
|
-
export declare function handleDeleteSession(store: ISessionMetaStore, identity: string, id: string, evictFn: (sessionId: string) => Promise<void>): Promise<{
|
|
424
|
-
ok: boolean;
|
|
425
|
-
error?: string;
|
|
426
|
-
}>;
|
|
264
|
+
export { backfillWorkerCacheFromHandle, drainWorkerCache, type IWorkerRegistry, resolveWorkerLlmSet, type WorkerLlmSet, type WorkerRegistry, } from './workers/worker-registry.js';
|
|
265
|
+
export { buildSessionLifecycle, handleDeleteSession, handleListSessions, handleResumeSession, recordSessionEnd, recordSessionStart, resolveSubAgentRagRegistry, type SessionLifecycle, type SessionLifecycleOptions, type SessionListBody, type SessionResumeBody, seedSessionKnowledge, } from './session-lifecycle/index.js';
|
|
427
266
|
/**
|
|
428
267
|
* Build a `callMcp(name, args, signal?)` bridge over a list of `IMcpClient`s.
|
|
429
268
|
*
|
|
@@ -448,16 +287,22 @@ export declare function handleDeleteSession(store: ISessionMetaStore, identity:
|
|
|
448
287
|
* either directly without pre-normalising.
|
|
449
288
|
*/
|
|
450
289
|
export declare function connectMcpClientsFromConfig(mcpCfg: SmartServerMcpConfig | SmartServerMcpConfig[] | undefined | null): Promise<IMcpClient[]>;
|
|
451
|
-
export declare function buildMcpBridge(clients: IMcpClient[]): (name: string, args: unknown, signal?: AbortSignal) => Promise<string>;
|
|
290
|
+
export declare function buildMcpBridge(clients: IMcpClient[], classifier?: IMcpFailureClassifier): (name: string, args: unknown, signal?: AbortSignal) => Promise<string>;
|
|
452
291
|
export declare class SmartServer {
|
|
453
292
|
private readonly cfg;
|
|
454
293
|
private readonly noop;
|
|
455
294
|
/**
|
|
456
|
-
* GLOBAL per-worker LLM/embedder cache. Populated lazily by `buildSubAgent`
|
|
295
|
+
* GLOBAL per-worker LLM/embedder cache registry. Populated lazily by `buildSubAgent`
|
|
457
296
|
* the first time each worker name is seen; subsequent per-session re-wires
|
|
458
|
-
* pull from
|
|
297
|
+
* pull from the cache by reference (never reconstructing LLM clients).
|
|
298
|
+
* Constructed in `_buildInfra` after embedder factories are resolved.
|
|
459
299
|
*/
|
|
460
|
-
private
|
|
300
|
+
private _workers;
|
|
301
|
+
/**
|
|
302
|
+
* Declarative HTTP route table built once; `_handle` delegates to its
|
|
303
|
+
* `dispatch`. Replaces the former ~300-line if/else route chain.
|
|
304
|
+
*/
|
|
305
|
+
private readonly _routeTable;
|
|
461
306
|
/** Lifecycle handle wired in `start()`; consumed by `_handle`. */
|
|
462
307
|
private _lifecycle?;
|
|
463
308
|
/** Hoisted globals used by `buildSessionAgent` to re-wire fresh per-session workers. */
|
|
@@ -492,6 +337,7 @@ export declare class SmartServer {
|
|
|
492
337
|
private _llmMap?;
|
|
493
338
|
private _pipelineFallback?;
|
|
494
339
|
private _mainTemp?;
|
|
340
|
+
private _roleLlm?;
|
|
495
341
|
private _requestLogger?;
|
|
496
342
|
/** ToolsRag handle built by `buildSharedPipelineInfra`; handed to every
|
|
497
343
|
* pipeline's context (factory defaults to EMPTY_TOOLS_RAG if unset). */
|
|
@@ -514,6 +360,15 @@ export declare class SmartServer {
|
|
|
514
360
|
* yaml). Disposed via the server's `closeFns` on shutdown.
|
|
515
361
|
*/
|
|
516
362
|
private _stepperMcpClients?;
|
|
363
|
+
/**
|
|
364
|
+
* True when the consumer injected an MCP seam (`BuildAgentDeps.mcpClients` or
|
|
365
|
+
* `connectMcp`). In that case MCP is provisioned ONLY through the seam (the
|
|
366
|
+
* embeddable path must never force a real connect / builder self-connect). When
|
|
367
|
+
* false (default), the YAML `mcp:` path keeps the builder-owned connect so the
|
|
368
|
+
* builder VECTORIZES the tools into `toolsRag` (the ToolSelect ranking contract;
|
|
369
|
+
* see mcp-yaml-vectorization.test.ts).
|
|
370
|
+
*/
|
|
371
|
+
private readonly _mcpSeamInjected;
|
|
517
372
|
/**
|
|
518
373
|
* The MCP clients the pipeline `callMcp` bridge dispatches over — resolved
|
|
519
374
|
* UNCONDITIONALLY in `start()` as DI/plugin clients (`mcpClients`) ?? the
|
|
@@ -548,8 +403,63 @@ export declare class SmartServer {
|
|
|
548
403
|
* handles owned by the plugin) are freed on eviction / shutdown / reconfigure.
|
|
549
404
|
*/
|
|
550
405
|
private readonly _sessionCloseFns;
|
|
551
|
-
|
|
406
|
+
/**
|
|
407
|
+
* Instance-level MCP failure classifier (DI/programmatic only — not from YAML).
|
|
408
|
+
* Populated from BuildAgentDeps in the constructor; defaults to DefaultMcpFailureClassifier.
|
|
409
|
+
* Passed to buildMcpBridge (Route B) and threaded into every pipeline ctx (Route A).
|
|
410
|
+
*/
|
|
411
|
+
private readonly _mcpFailureClassifier;
|
|
412
|
+
/**
|
|
413
|
+
* Defaulted construction deps (the BuildAgentDeps DI seam). Required members
|
|
414
|
+
* always resolve to the real implementation when not injected; `skillHost`
|
|
415
|
+
* and `embedder` stay optional (present only when injected).
|
|
416
|
+
*/
|
|
417
|
+
private readonly _deps;
|
|
418
|
+
constructor(config: SmartServerConfig, deps?: BuildAgentDeps);
|
|
552
419
|
start(): Promise<SmartServerHandle>;
|
|
420
|
+
/**
|
|
421
|
+
* Assemble and return the server INFRA bundle ONLY — every shared resource
|
|
422
|
+
* needed by both the HTTP `_start()` path and the embeddable
|
|
423
|
+
* `_buildEmbeddedAgent()` path: the infra/passthrough `smartAgent`, the
|
|
424
|
+
* server-only locals (`chat`/`streamChat`/`requestLogger`/etc.), the resolved
|
|
425
|
+
* `globalMcpClients`/`globalRagRegistry`, and the `closeFns` loop (exposed as
|
|
426
|
+
* `close`). It does NOT build the `'embedded'` pipeline instance — that idle
|
|
427
|
+
* coordinator is built only on the embeddable path (see `_buildEmbeddedAgent`),
|
|
428
|
+
* so a plain `start()` no longer pays for a coordinator it never serves.
|
|
429
|
+
*/
|
|
430
|
+
private _buildInfra;
|
|
431
|
+
/**
|
|
432
|
+
* Build the embeddable COORDINATED agent for the free `buildAgent(cfg)` path.
|
|
433
|
+
*
|
|
434
|
+
* `_buildInfra().smartAgent` is the INFRA/passthrough startup agent — it has
|
|
435
|
+
* NO coordinator, so it would never run the configured pipeline. The HTTP
|
|
436
|
+
* `start()` path serves the PER-SESSION `graph.agent` (built lazily via
|
|
437
|
+
* buildSessionAgent → buildPipelineInstance) and keeps using `smartAgent` for
|
|
438
|
+
* infra endpoints (/v1/models, health). But the embeddable `buildAgent(cfg)`
|
|
439
|
+
* consumer has no session lifecycle, so it must receive a fully COORDINATED
|
|
440
|
+
* agent. Build ONE pipeline instance via the SAME path a session uses — an
|
|
441
|
+
* `'embedded'` session — over the shared infra, and return ITS agent. This is
|
|
442
|
+
* the ONLY caller that builds the embedded instance, so `start()` no longer
|
|
443
|
+
* pays for an idle coordinator it never serves.
|
|
444
|
+
*
|
|
445
|
+
* @internal — reached only by the same-module free `buildAgent(cfg)`; not part
|
|
446
|
+
* of the documented public API. Public (not `private`) solely so that seam can
|
|
447
|
+
* call it by name (a `private` reached only via an external cast trips
|
|
448
|
+
* `noUnusedLocals`).
|
|
449
|
+
*/
|
|
450
|
+
_buildEmbeddedAgent(): Promise<{
|
|
451
|
+
agent: ISmartAgent;
|
|
452
|
+
close: () => Promise<void>;
|
|
453
|
+
}>;
|
|
454
|
+
/**
|
|
455
|
+
* Assemble the `SessionAgentParts` for the single `'embedded'` pipeline
|
|
456
|
+
* instance returned by `_buildEmbeddedAgent` (the embeddable `buildAgent(cfg)`
|
|
457
|
+
* path).
|
|
458
|
+
* Mirrors EXACTLY what the session lifecycle passes to `buildSessionAgent`:
|
|
459
|
+
* the global mcpClients + the global ragRegistry + the global tools store,
|
|
460
|
+
* with a fresh per-(embedded-)session request logger.
|
|
461
|
+
*/
|
|
462
|
+
private _embeddedSessionParts;
|
|
553
463
|
private _start;
|
|
554
464
|
/**
|
|
555
465
|
* Build a `SmartAgent` instance from a nested sub-agent config.
|
|
@@ -568,8 +478,12 @@ export declare class SmartServer {
|
|
|
568
478
|
* always undefined here.
|
|
569
479
|
*/
|
|
570
480
|
private buildSubAgent;
|
|
571
|
-
/** Build an LLM from a SmartServerLlmConfig (mirrors stepperMakeLlm/DAG).
|
|
481
|
+
/** Build an LLM from a SmartServerLlmConfig (mirrors stepperMakeLlm/DAG).
|
|
482
|
+
* Routes through the BuildAgentDeps seam so an injected `makeLlm` overrides
|
|
483
|
+
* the real builder. */
|
|
572
484
|
private _makeLlm;
|
|
485
|
+
/** The real `makeLlm`-backed construction (the seam's default). */
|
|
486
|
+
private _makeLlmDefault;
|
|
573
487
|
/** Resolve a per-role LLM through the normalized map → pipelineFallback chain.
|
|
574
488
|
* 'main' returns the captured mainLlm; 'helper'/'classifier' return the
|
|
575
489
|
* prebuilt instances when present; otherwise the map/fallback config is built. */
|
|
@@ -636,12 +550,10 @@ export declare class SmartServer {
|
|
|
636
550
|
/**
|
|
637
551
|
* Build the FRESH per-session worker (sub-agent) registry from the SAME
|
|
638
552
|
* `subagents:` configs the primary build() used, injecting globals + this
|
|
639
|
-
* session's logger + the CACHED per-worker LLM/embedder (this.
|
|
553
|
+
* session's logger + the CACHED per-worker LLM/embedder (this._workers.cache).
|
|
640
554
|
* NEVER reconstructs LLM clients; NEVER reuses the global registry.
|
|
641
555
|
*
|
|
642
|
-
*
|
|
643
|
-
* pipeline-plugin context (`buildServerCtx` / `partsToBaseInput`) feed a real
|
|
644
|
-
* per-session worker map to `buildBaseBuilder` instead of an empty `new Map()`.
|
|
556
|
+
* Delegates to `this._workers.build(parts)` (WorkerRegistry).
|
|
645
557
|
*/
|
|
646
558
|
private buildWorkerRegistry;
|
|
647
559
|
/**
|
|
@@ -682,7 +594,7 @@ export declare class SmartServer {
|
|
|
682
594
|
* session-scoped pipeline context (`buildServerCtx`) supplies the FRESH
|
|
683
595
|
* per-session worker registry + session logger + the global
|
|
684
596
|
* ragRegistry/toolsRag/mcpClients + the CACHED per-worker LLM/embedder
|
|
685
|
-
* (this.
|
|
597
|
+
* (this._workers.cache) via `createAgentBuilder`. It NEVER reuses the primary
|
|
686
598
|
* build()'s global registry/coordinator and NEVER constructs new LLM clients.
|
|
687
599
|
*
|
|
688
600
|
* The pipeline returns `{ agent, close }`; we register `close` under the
|
|
@@ -698,10 +610,27 @@ export declare class SmartServer {
|
|
|
698
610
|
*/
|
|
699
611
|
private _withSession;
|
|
700
612
|
private _handle;
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
613
|
+
/**
|
|
614
|
+
* Declarative route table replacing `_handle`'s if/else chain. Routes are
|
|
615
|
+
* registered in the EXACT order the original chain checked them (first
|
|
616
|
+
* method+path match wins), so dispatch is behaviour-identical. Each handler
|
|
617
|
+
* body is the corresponding original branch moved verbatim, with `this`
|
|
618
|
+
* accessed through `rc.server` and the request locals read from `rc`.
|
|
619
|
+
*/
|
|
620
|
+
private _buildRouteTable;
|
|
621
|
+
/**
|
|
622
|
+
* Build the PUT /v1/config hot-swap seam over this server's private state.
|
|
623
|
+
* The setters write the SAME `_mainLlm`/`_classifierLlm`/`_helperLlm` fields
|
|
624
|
+
* RoleLlmResolver's live accessors read, so the hot-swap stays observable.
|
|
625
|
+
* A private object literal — NOT `implements` — so the public class shape is
|
|
626
|
+
* unchanged (byte-stable public API).
|
|
627
|
+
*/
|
|
628
|
+
private _configUpdateTarget;
|
|
706
629
|
}
|
|
630
|
+
/** Build a runnable agent for any configured pipeline WITHOUT binding a port.
|
|
631
|
+
* `SmartServer.start()` is the default impl that adds HTTP `listen` on top. */
|
|
632
|
+
export declare function buildAgent(cfg: SmartServerConfig, deps?: BuildAgentDeps): Promise<{
|
|
633
|
+
agent: ISmartAgent;
|
|
634
|
+
close: () => Promise<void>;
|
|
635
|
+
}>;
|
|
707
636
|
//# sourceMappingURL=smart-server.d.ts.map
|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