qlogicagent 2.22.8 → 2.23.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/agent.js +51 -42
- package/dist/cli.js +7 -1
- package/dist/host-contract.js +1 -1
- package/dist/index.js +358 -365
- package/dist/orchestration.js +1 -1
- package/dist/skills/builtin/desktop-screenshot/SKILL.md +0 -1
- package/dist/skills/builtin/office-doc-reading/SKILL.md +0 -1
- package/dist/skills/builtin/web-research/SKILL.md +0 -1
- package/dist/types/agent/tool-loop/tool-failure-policy.d.ts +15 -0
- package/dist/types/agent/tool-loop/tool-schema-conformance.d.ts +10 -0
- package/dist/types/agent/tool-loop.d.ts +0 -2
- package/dist/types/agent/types.d.ts +4 -2
- package/dist/types/cli/handlers/turn-handler.d.ts +2 -13
- package/dist/types/contracts/tool-execution-evidence.d.ts +7 -0
- package/dist/types/contracts/tool-name.d.ts +4 -0
- package/dist/types/host-contract/index.d.ts +7 -8
- package/dist/types/orchestration/tool-loop/tool-schema.d.ts +4 -0
- package/dist/types/protocol/wire/chat-types.d.ts +8 -15
- package/dist/types/protocol/wire/notification-payloads.d.ts +6 -8
- package/dist/types/runtime/execution/streaming-tool-executor.d.ts +0 -2
- package/dist/types/runtime/execution/tool-result-storage.d.ts +2 -25
- package/dist/types/runtime/infra/turn-telemetry-store.d.ts +14 -0
- package/dist/types/runtime/ports/agent-execution-contracts.d.ts +4 -0
- package/dist/types/runtime/ports/agent-runtime-ports.d.ts +1 -2
- package/dist/types/runtime/ports/tool-call-contracts.d.ts +4 -0
- package/dist/types/runtime/ports/tool-contracts.d.ts +5 -1
- package/dist/types/runtime/prompt/capability-routing-policy.d.ts +3 -5
- package/dist/types/runtime/prompt/environment-context.d.ts +0 -5
- package/dist/types/skills/mcp/mcp-manager.d.ts +7 -6
- package/dist/types/skills/portable-tool.d.ts +5 -3
- package/dist/types/skills/tools/read-tool.d.ts +1 -1
- package/package.json +4 -3
- package/dist/types/cli/handlers/pinned-skill-context.d.ts +0 -3
- package/dist/types/runtime/execution/mcp-capability-selection.d.ts +0 -63
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { ChatMessage, LLMTransport, ToolDefinition } from "../../agent/types.js";
|
|
2
|
-
export interface CapabilityRouterClient {
|
|
3
|
-
transport: LLMTransport;
|
|
4
|
-
apiKey: string;
|
|
5
|
-
model: string;
|
|
6
|
-
}
|
|
7
|
-
export interface McpCapabilitySelection {
|
|
8
|
-
aliases: string[];
|
|
9
|
-
toolNames: ReadonlySet<string>;
|
|
10
|
-
requiredSkillNames: readonly string[];
|
|
11
|
-
source: "semantic-directory";
|
|
12
|
-
evidence: {
|
|
13
|
-
namespaces: string[];
|
|
14
|
-
matchedFeatures: string[];
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export type McpCapabilityRoutingOutcome = {
|
|
18
|
-
status: "selected";
|
|
19
|
-
selection: McpCapabilitySelection;
|
|
20
|
-
} | {
|
|
21
|
-
status: "none";
|
|
22
|
-
reason: string;
|
|
23
|
-
} | {
|
|
24
|
-
status: "ambiguous";
|
|
25
|
-
reason: string;
|
|
26
|
-
} | {
|
|
27
|
-
status: "unavailable";
|
|
28
|
-
reason: string;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* A first-pass semantic abstention is not authoritative. Small routing models
|
|
32
|
-
* can miss an implied connector need even when the live capability directory
|
|
33
|
-
* contains an exact implementation. A second semantic opinion preserves the
|
|
34
|
-
* natural-language contract without adding connector names, keywords, or
|
|
35
|
-
* regular-expression gates.
|
|
36
|
-
*/
|
|
37
|
-
export declare function shouldRequestMcpCapabilitySecondOpinion(outcome: McpCapabilityRoutingOutcome): boolean;
|
|
38
|
-
export interface ResolveMcpCapabilitySelectionInput {
|
|
39
|
-
userText: string;
|
|
40
|
-
messages: readonly ChatMessage[];
|
|
41
|
-
tools: readonly ToolDefinition[];
|
|
42
|
-
client: CapabilityRouterClient | null;
|
|
43
|
-
signal?: AbortSignal;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Select optional MCP capabilities using a model over the live structured tool
|
|
47
|
-
* directory and recent conversation. No user-text keyword, alias, regular
|
|
48
|
-
* expression, or connector-name gate participates in the decision.
|
|
49
|
-
*
|
|
50
|
-
* When routing is unavailable, invalid, or uncertain, this function abstains.
|
|
51
|
-
* The caller then exposes the complete authorized tool surface so the primary
|
|
52
|
-
* model can still make its native semantic choice; an optimization failure must
|
|
53
|
-
* never turn an installed capability into an apparent absence.
|
|
54
|
-
*/
|
|
55
|
-
export declare function resolveMcpCapabilitySelection(input: ResolveMcpCapabilitySelectionInput): Promise<McpCapabilitySelection | undefined>;
|
|
56
|
-
/**
|
|
57
|
-
* Resolve one semantic routing attempt without collapsing abstention, ambiguity,
|
|
58
|
-
* invalid output, and transport failure into the same undefined value. Callers
|
|
59
|
-
* can use this typed outcome to request a semantic second opinion without
|
|
60
|
-
* adding text classifiers or connector-specific fallbacks.
|
|
61
|
-
*/
|
|
62
|
-
export declare function resolveMcpCapabilityRoute(input: ResolveMcpCapabilitySelectionInput): Promise<McpCapabilityRoutingOutcome>;
|
|
63
|
-
export declare function selectCapabilityToolSurface(tools: readonly ToolDefinition[], selection: McpCapabilitySelection | undefined): ToolDefinition[];
|