qlogicagent 2.20.10 → 2.21.1
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/agent.js +33 -33
- package/dist/cli.js +1 -1
- package/dist/index.js +297 -296
- package/dist/types/cli/agent-runtime-session-state.d.ts +1 -3
- package/dist/types/protocol/wire/chat-types.d.ts +13 -0
- package/dist/types/runtime/execution/mcp-capability-selection.d.ts +8 -0
- package/dist/types/skills/mcp/mcp-manager.d.ts +1 -1
- package/dist/types/skills/portable-tool.d.ts +2 -0
- package/package.json +1 -1
|
@@ -13,10 +13,8 @@ export interface SessionRuntimeState {
|
|
|
13
13
|
hooks: HookRegistry;
|
|
14
14
|
permission: PermissionState;
|
|
15
15
|
}
|
|
16
|
-
export declare const MCP_TOOL_SNAPSHOT_TTL_MS = 30000;
|
|
17
16
|
export declare class AgentRuntimeSessionState {
|
|
18
17
|
private readonly now;
|
|
19
|
-
private readonly mcpToolSnapshotTtlMs;
|
|
20
18
|
private readonly runtimeBySession;
|
|
21
19
|
private readonly permissionLeaseCountBySession;
|
|
22
20
|
private readonly retiredPermissionUnregisterBySession;
|
|
@@ -26,7 +24,7 @@ export declare class AgentRuntimeSessionState {
|
|
|
26
24
|
memoryProvider: MemoryHandlerProvider | null;
|
|
27
25
|
memoryDreamProvider: MemoryDreamRuntimeProvider | null;
|
|
28
26
|
memoryUserId: string;
|
|
29
|
-
constructor(now?: () => number
|
|
27
|
+
constructor(now?: () => number);
|
|
30
28
|
getPluginSkills(): ReturnType<PluginLoader["getPluginSkills"]>;
|
|
31
29
|
applyBootstrap(sessionId: string, result: AgentRuntimeBootstrapResult): void;
|
|
32
30
|
withPermissionLease<T>(sessionId: string, action: () => Promise<T>): Promise<T>;
|
|
@@ -131,6 +131,17 @@ export interface ToolIdentity {
|
|
|
131
131
|
serverId?: string;
|
|
132
132
|
capabilityId: string;
|
|
133
133
|
}
|
|
134
|
+
export interface SkillDirectoryEntry {
|
|
135
|
+
id: string;
|
|
136
|
+
description: string;
|
|
137
|
+
version?: string;
|
|
138
|
+
requiredTools?: string[];
|
|
139
|
+
memberCount?: number;
|
|
140
|
+
}
|
|
141
|
+
export interface SkillDirectory {
|
|
142
|
+
schemaVersion: 1;
|
|
143
|
+
entries: SkillDirectoryEntry[];
|
|
144
|
+
}
|
|
134
145
|
/**
|
|
135
146
|
* Tool definition — wire format as sent over JSON-RPC.
|
|
136
147
|
*
|
|
@@ -151,6 +162,8 @@ export interface ToolDefinition {
|
|
|
151
162
|
displayName?: LocalizedToolText;
|
|
152
163
|
displayDescription?: LocalizedToolText;
|
|
153
164
|
semanticCapability?: SemanticToolCapability;
|
|
165
|
+
/** Host-authored, bounded Skill routing index. Full instructions remain behind skill_read. */
|
|
166
|
+
skillDirectory?: SkillDirectory;
|
|
154
167
|
serialOnly?: boolean;
|
|
155
168
|
parallelSafe?: boolean;
|
|
156
169
|
/** Unified permission risk class. */
|
|
@@ -26,6 +26,14 @@ export type McpCapabilityRoutingOutcome = {
|
|
|
26
26
|
status: "unavailable";
|
|
27
27
|
reason: string;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* A first-pass semantic abstention is not authoritative. Small routing models
|
|
31
|
+
* can miss an implied connector need even when the live capability directory
|
|
32
|
+
* contains an exact implementation. A second semantic opinion preserves the
|
|
33
|
+
* natural-language contract without adding connector names, keywords, or
|
|
34
|
+
* regular-expression gates.
|
|
35
|
+
*/
|
|
36
|
+
export declare function shouldRequestMcpCapabilitySecondOpinion(outcome: McpCapabilityRoutingOutcome): boolean;
|
|
29
37
|
export interface ResolveMcpCapabilitySelectionInput {
|
|
30
38
|
userText: string;
|
|
31
39
|
messages: readonly ChatMessage[];
|
|
@@ -129,7 +129,7 @@ export declare class McpManager {
|
|
|
129
129
|
private removeRegisteredTool;
|
|
130
130
|
}
|
|
131
131
|
export declare function mcpFallbackToolTitle(serverName: string, toolName: string): string;
|
|
132
|
-
export declare function mcpPortableToolMetadata(serverName: string, mcpTool: ServerToolInfo): Pick<PortableTool, "name" | "label" | "description" | "semanticCapability" | "searchHint" | "isConcurrencySafe" | "isReadOnly" | "isDestructive" | "riskLevel" | "isEgress" | "egressCarriesData">;
|
|
132
|
+
export declare function mcpPortableToolMetadata(serverName: string, mcpTool: ServerToolInfo): Pick<PortableTool, "name" | "label" | "description" | "semanticCapability" | "skillDirectory" | "searchHint" | "isConcurrencySafe" | "isReadOnly" | "isDestructive" | "riskLevel" | "isEgress" | "egressCarriesData">;
|
|
133
133
|
/**
|
|
134
134
|
* MCP bridges may already expose a globally-scoped `{server}__{tool}` name.
|
|
135
135
|
* Prefixing that name again makes the model-facing function opaque and can push
|
|
@@ -69,6 +69,8 @@ export interface PortableTool<TParams = Record<string, unknown>> {
|
|
|
69
69
|
description: string;
|
|
70
70
|
/** Structured semantics used by model-based capability discovery and routing. */
|
|
71
71
|
semanticCapability?: SemanticToolCapability;
|
|
72
|
+
/** Host-authored, bounded Skill routing index attached only to skill_list. */
|
|
73
|
+
skillDirectory?: import("../protocol/wire/chat-types.js").SkillDirectory;
|
|
72
74
|
/** JSON Schema object describing the tool's parameters. */
|
|
73
75
|
parameters: Record<string, unknown>;
|
|
74
76
|
/**
|