qlogicagent 2.15.10 → 2.16.2
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 +24 -20
- package/dist/cli.js +572 -515
- package/dist/index.js +571 -514
- package/dist/orchestration.js +9 -9
- package/dist/protocol.js +1 -1
- package/dist/types/agent/tool-loop/artifact-final-contract.d.ts +21 -0
- package/dist/types/agent/tool-loop/tool-failure-policy.d.ts +1 -0
- package/dist/types/agent/tool-loop.d.ts +2 -0
- package/dist/types/agent/types.d.ts +7 -202
- package/dist/types/cli/acp-extended-handlers.d.ts +1 -0
- package/dist/types/cli/core-tools/agent-tool-service.d.ts +1 -0
- package/dist/types/cli/handlers/agents-handler.d.ts +8 -0
- package/dist/types/cli/handlers/product-handler.d.ts +21 -2
- package/dist/types/cli/handlers/workflow-handler.d.ts +5 -0
- package/dist/types/cli/tool-bootstrap-core-registration.d.ts +5 -0
- package/dist/types/cli/turn-core.d.ts +2 -0
- package/dist/types/contracts/index.d.ts +1 -0
- package/dist/types/contracts/turn-event.d.ts +235 -0
- package/dist/types/orchestration/agent-instance.d.ts +45 -2
- package/dist/types/orchestration/agent-roster.d.ts +17 -0
- package/dist/types/orchestration/dag-scheduler.d.ts +27 -0
- package/dist/types/orchestration/product-budget.d.ts +7 -1
- package/dist/types/orchestration/product-persistence.d.ts +31 -0
- package/dist/types/orchestration/product-planner.d.ts +123 -0
- package/dist/types/orchestration/product-run-coordinator.d.ts +17 -1
- package/dist/types/orchestration/product-worktree.d.ts +3 -0
- package/dist/types/orchestration/skill-improvement.d.ts +2 -19
- package/dist/types/orchestration/solo-evaluator.d.ts +10 -0
- package/dist/types/orchestration/solo-spec-builder.d.ts +4 -0
- package/dist/types/orchestration/workflow/n8n-import.d.ts +26 -32
- package/dist/types/orchestration/workflow/n8n-template-compat.d.ts +5 -0
- package/dist/types/orchestration/workflow/node-registry.d.ts +13 -0
- package/dist/types/orchestration/workflow/node-schema.d.ts +10 -0
- package/dist/types/orchestration/workflow/qla-executor-host.d.ts +7 -1
- package/dist/types/protocol/methods.d.ts +8 -1
- package/dist/types/protocol/notifications.d.ts +1 -1
- package/dist/types/protocol/wire/acp-agent-management.d.ts +38 -0
- package/dist/types/protocol/wire/acp-protocol.d.ts +1 -0
- package/dist/types/protocol/wire/agent-events.d.ts +3 -3
- package/dist/types/protocol/wire/agent-methods.d.ts +11 -1
- package/dist/types/protocol/wire/index.d.ts +1 -1
- package/dist/types/protocol/wire/notification-payloads.d.ts +39 -0
- package/dist/types/runtime/infra/acp-detector.d.ts +3 -0
- package/dist/types/runtime/infra/acp-protocol-adapter.d.ts +9 -0
- package/dist/types/runtime/ports/agent-execution-contracts.d.ts +2 -199
- package/dist/types/runtime/ports/tool-contracts.d.ts +6 -0
- package/dist/types/runtime/prompt/environment-context.d.ts +20 -1
- package/dist/types/skills/tools/ask-user-tool.d.ts +4 -2
- package/dist/types/skills/tools/shell/command-classification.d.ts +1 -0
- package/dist/types/skills/tools/tool-search-tool.d.ts +13 -0
- package/dist/types/skills/tools/tool-selection-eval.d.ts +49 -0
- package/dist/types/skills/tools/tool-selection-eval.dataset.d.ts +5 -0
- package/dist/types/skills/tools/write-tool.d.ts +2 -0
- package/dist/types/skills/tools.d.ts +21 -0
- package/dist/types/transport/acp-server.d.ts +1 -0
- package/package.json +2 -1
|
@@ -22,6 +22,8 @@ export declare const WRITE_TOOL_SCHEMA: {
|
|
|
22
22
|
export interface WriteToolDeps {
|
|
23
23
|
/** Write content to a file. Create parent dirs as needed. */
|
|
24
24
|
writeFile(path: string, content: string): Promise<void>;
|
|
25
|
+
/** Check whether the resolved path already exists. */
|
|
26
|
+
fileExists?(path: string): Promise<boolean> | boolean;
|
|
25
27
|
/** Resolve a relative path to absolute. */
|
|
26
28
|
resolvePath(input: string): string;
|
|
27
29
|
/**
|
|
@@ -13,6 +13,10 @@ export { AGENT_DISALLOWED_TOOLS, CUSTOM_AGENT_DISALLOWED_TOOLS, filterToolsForAg
|
|
|
13
13
|
export declare class ToolRegistry {
|
|
14
14
|
private readonly toolPool;
|
|
15
15
|
private readonly activatedTools;
|
|
16
|
+
private readonly maxActivatedDeferred;
|
|
17
|
+
constructor(options?: {
|
|
18
|
+
maxActivatedDeferred?: number;
|
|
19
|
+
});
|
|
16
20
|
setTools(tools: PortableTool[]): void;
|
|
17
21
|
addTool(tool: PortableTool<any>): void;
|
|
18
22
|
addTools(tools: PortableTool<any>[]): void;
|
|
@@ -26,6 +30,18 @@ export declare class ToolRegistry {
|
|
|
26
30
|
activateTool(name: string): boolean;
|
|
27
31
|
isToolActivated(name: string): boolean;
|
|
28
32
|
clearActivatedTools(): void;
|
|
33
|
+
/**
|
|
34
|
+
* SSOT for "which tools are deferred". Both the deferred-tool index (system
|
|
35
|
+
* prompt) and the tool_search corpus consume this — never re-derive the
|
|
36
|
+
* deferred set inline. Lists every deferred+enabled tool regardless of
|
|
37
|
+
* activation, so the model can always see/search a capability that exists.
|
|
38
|
+
* searchHint is carried for the search corpus; the prompt index ignores it.
|
|
39
|
+
*/
|
|
40
|
+
listDeferredTools(): Array<{
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
searchHint?: string;
|
|
44
|
+
}>;
|
|
29
45
|
getToolManifest(includeDeferred?: boolean): ToolDefinition[];
|
|
30
46
|
}
|
|
31
47
|
export declare function getDefaultToolRegistry(): ToolRegistry;
|
|
@@ -42,4 +58,9 @@ export declare function getTools(): PortableTool[];
|
|
|
42
58
|
export declare function activateTool(name: string): boolean;
|
|
43
59
|
export declare function isToolActivated(name: string): boolean;
|
|
44
60
|
export declare function clearActivatedTools(): void;
|
|
61
|
+
export declare function listDeferredTools(): Array<{
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
searchHint?: string;
|
|
65
|
+
}>;
|
|
45
66
|
export declare function getToolManifest(includeDeferred?: boolean): ToolDefinition[];
|
|
@@ -91,6 +91,7 @@ export interface AcpRequestHandler {
|
|
|
91
91
|
handleAcpProductResume(params: Record<string, unknown>): Promise<unknown>;
|
|
92
92
|
handleAcpProductCancel(params: Record<string, unknown>): Promise<unknown>;
|
|
93
93
|
handleAcpProductRollback(params: Record<string, unknown>): Promise<unknown>;
|
|
94
|
+
handleAcpProductReplay(params: Record<string, unknown>): Promise<unknown>;
|
|
94
95
|
handleAcpProductStatus(params: Record<string, unknown>): Promise<unknown>;
|
|
95
96
|
handleAcpProductSubscribe(params: Record<string, unknown>): Promise<unknown>;
|
|
96
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qlogicagent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.2",
|
|
4
4
|
"description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"better-sqlite3": "^12.10.0",
|
|
96
96
|
"dotenv": "^17.3.1",
|
|
97
97
|
"ioredis": "^5.11.1",
|
|
98
|
+
"jsonrepair": "^3.14.0",
|
|
98
99
|
"mcporter": "^0.12.0",
|
|
99
100
|
"nanoid": "^5.1.5",
|
|
100
101
|
"pino": "^9.6.0",
|