qlogicagent 2.12.8 → 2.12.9
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/README.md +91 -157
- package/dist/agent.js +6 -6
- package/dist/cli.js +411 -426
- package/dist/index.js +410 -425
- package/dist/orchestration.js +6 -6
- package/dist/protocol.js +1 -1
- package/dist/types/agent/memory-recall-injection.d.ts +34 -0
- package/dist/types/agent/tool-loop/budget-continuation-policy.d.ts +22 -0
- package/dist/types/agent/tool-loop/completion-action-policy.d.ts +19 -0
- package/dist/types/agent/tool-loop/completion-stop-policy.d.ts +19 -0
- package/dist/types/agent/tool-loop/compression-pipeline.d.ts +44 -0
- package/dist/types/agent/tool-loop/skill-instruction-policy.d.ts +7 -0
- package/dist/types/agent/tool-loop/stream-error-recovery.d.ts +59 -0
- package/dist/types/agent/tool-loop/tool-failure-policy.d.ts +22 -0
- package/dist/types/agent/types.d.ts +2 -2
- package/dist/types/cli/acp-message-router.d.ts +8 -0
- package/dist/types/cli/acp-session-host.d.ts +3 -0
- package/dist/types/cli/cli-agent-builder.d.ts +1 -1
- package/dist/types/cli/core-tools/config-tool-bootstrap.d.ts +1 -5
- package/dist/types/cli/core-tools/config-tool-service.d.ts +9 -5
- package/dist/types/cli/core-tools/registry.d.ts +1 -2
- package/dist/types/cli/core-tools/session-tool-manifest.d.ts +11 -0
- package/dist/types/cli/core-tools/team-registry.d.ts +8 -8
- package/dist/types/cli/dev-tools/dev-tool-registry.d.ts +1 -2
- package/dist/types/cli/gateway-rpc-connection.d.ts +50 -0
- package/dist/types/cli/handlers/session-handler.d.ts +2 -1
- package/dist/types/cli/handlers/workflow-handler.d.ts +10 -0
- package/dist/types/cli/model-client-resolver.d.ts +12 -3
- package/dist/types/cli/resolved-agent-cache.d.ts +47 -0
- package/dist/types/cli/rpc-registry.d.ts +59 -5
- package/dist/types/cli/session-context.d.ts +32 -0
- package/dist/types/cli/skill-meta-tool-bootstrap.d.ts +7 -0
- package/dist/types/cli/stdio-acp-protocol-coordinator.d.ts +18 -0
- package/dist/types/cli/stdio-acp-request-host.d.ts +3 -0
- package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +50 -0
- package/dist/types/cli/stdio-server.d.ts +103 -180
- package/dist/types/cli/stdio-session-runtime-coordinator.d.ts +19 -0
- package/dist/types/cli/tool-bootstrap-core-registration.d.ts +30 -0
- package/dist/types/cli/tool-bootstrap-media-registration.d.ts +8 -0
- package/dist/types/cli/tool-bootstrap-paths.d.ts +7 -0
- package/dist/types/cli/tool-bootstrap-web-registration.d.ts +13 -0
- package/dist/types/cli/tool-bootstrap-workflow-registration.d.ts +7 -0
- package/dist/types/cli/tool-bootstrap.d.ts +5 -22
- package/dist/types/cli/tunable-store.d.ts +26 -0
- package/dist/types/cli/workflow-host-adapter.d.ts +29 -0
- package/dist/types/contracts/hooks.d.ts +6 -0
- package/dist/types/orchestration/workflow/run-history-store.d.ts +58 -0
- package/dist/types/orchestration/workflow/workflow-controller.d.ts +23 -1
- package/dist/types/orchestration/workflow/workflow-store.d.ts +24 -0
- package/dist/types/protocol/wire/acp-protocol.d.ts +1 -2
- package/dist/types/protocol/wire/gateway-rpc.d.ts +0 -112
- package/dist/types/runtime/config/tunable-defaults.d.ts +6 -0
- package/dist/types/runtime/infra/agent-paths.d.ts +0 -2
- package/dist/types/runtime/infra/agent-process.d.ts +1 -1
- package/dist/types/runtime/infra/default-path-service.d.ts +0 -1
- package/dist/types/runtime/infra/index.d.ts +1 -1
- package/dist/types/runtime/infra/key-pool.d.ts +1 -0
- package/dist/types/runtime/infra/llmrouter-catalog.d.ts +8 -0
- package/dist/types/runtime/ports/path-service.d.ts +0 -1
- package/dist/types/runtime/ports/tool-contracts.d.ts +1 -1
- package/dist/types/runtime/prompt/environment-context.d.ts +13 -0
- package/dist/types/runtime/prompt/index.d.ts +1 -0
- package/dist/types/runtime/prompt/prompt-policy.d.ts +2 -0
- package/dist/types/runtime/prompt/system-prompt-sections.d.ts +2 -0
- package/dist/types/runtime/session/session-catalog.d.ts +4 -0
- package/dist/types/runtime/session/session-metadata-store.d.ts +8 -0
- package/dist/types/runtime/session/session-paths.d.ts +9 -0
- package/dist/types/runtime/session/session-persistence.d.ts +14 -159
- package/dist/types/runtime/session/session-resume.d.ts +4 -0
- package/dist/types/runtime/session/session-schema.d.ts +10 -0
- package/dist/types/runtime/session/session-summary.d.ts +5 -0
- package/dist/types/runtime/session/session-transcript-store.d.ts +13 -0
- package/dist/types/runtime/session/session-types.d.ts +77 -0
- package/dist/types/runtime/session/session-write-queue.d.ts +2 -0
- package/dist/types/runtime/tasks/task-types.d.ts +1 -1
- package/dist/types/skills/mcp/index.d.ts +1 -3
- package/dist/types/skills/mcp/mcp-manager.d.ts +14 -38
- package/dist/types/skills/permissions/rule-engine.d.ts +1 -0
- package/dist/types/skills/plugins/plugin-api.d.ts +0 -1
- package/dist/types/skills/plugins/plugin-loader.d.ts +0 -4
- package/dist/types/skills/portable-tool.d.ts +2 -2
- package/dist/types/skills/tools/config-tool.d.ts +1 -3
- package/dist/types/skills/tools/skill-tool.d.ts +2 -2
- package/dist/types/skills/tools/team-tool.d.ts +44 -4
- package/dist/types/skills/tools/tool-search-tool.d.ts +11 -0
- package/package.json +2 -1
- package/dist/types/assistants/assistant-registry.d.ts +0 -4
- package/dist/types/assistants/assistant-store.d.ts +0 -23
- package/dist/types/assistants/assistant-turn-context.d.ts +0 -20
- package/dist/types/assistants/assistant-types.d.ts +0 -38
- package/dist/types/assistants/plugin-assistant-registry.d.ts +0 -16
- package/dist/types/cli/core-tools/utility-tool-bootstrap.d.ts +0 -12
- package/dist/types/cli/dev-tools/repl-tool-service.d.ts +0 -5
- package/dist/types/cli/handlers/assistants-handler.d.ts +0 -13
- package/dist/types/skills/mcp/mcp-http-client.d.ts +0 -68
- package/dist/types/skills/mcp/mcp-stdio-client.d.ts +0 -86
- package/dist/types/skills/think-tool.d.ts +0 -16
- package/dist/types/skills/tools/apply-patch-tool.d.ts +0 -29
- package/dist/types/skills/tools/mcp-client-types.d.ts +0 -269
- package/dist/types/skills/tools/mcp-resource-tools.d.ts +0 -14
- package/dist/types/skills/tools/mcp-tool.d.ts +0 -249
- package/dist/types/skills/tools/project-switch-tool.d.ts +0 -24
- package/dist/types/skills/tools/repl-tool.d.ts +0 -70
- package/dist/types/skills/tools/send-message-tool.d.ts +0 -57
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const REPL_TOOL_NAME: "repl";
|
|
3
|
-
export interface ReplToolParams {
|
|
4
|
-
/** JavaScript code to execute in the persistent VM context */
|
|
5
|
-
code: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const REPL_TOOL_SCHEMA: {
|
|
8
|
-
readonly type: "object";
|
|
9
|
-
readonly properties: {
|
|
10
|
-
readonly code: {
|
|
11
|
-
readonly type: "string";
|
|
12
|
-
readonly description: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
readonly required: readonly ["code"];
|
|
16
|
-
};
|
|
17
|
-
export interface ReplExecResult {
|
|
18
|
-
output: string;
|
|
19
|
-
error?: string;
|
|
20
|
-
duration: number;
|
|
21
|
-
}
|
|
22
|
-
/** Primitive operations injected into the VM context. */
|
|
23
|
-
export interface ReplPrimitives {
|
|
24
|
-
readFile(path: string): Promise<string>;
|
|
25
|
-
writeFile(path: string, content: string): Promise<void>;
|
|
26
|
-
editFile(path: string, edits: Array<{
|
|
27
|
-
oldText: string;
|
|
28
|
-
newText: string;
|
|
29
|
-
}>): Promise<string>;
|
|
30
|
-
exec(command: string): Promise<{
|
|
31
|
-
stdout: string;
|
|
32
|
-
stderr: string;
|
|
33
|
-
exitCode: number;
|
|
34
|
-
}>;
|
|
35
|
-
glob(pattern: string): Promise<string[]>;
|
|
36
|
-
grep(pattern: string, path?: string): Promise<Array<{
|
|
37
|
-
file: string;
|
|
38
|
-
line: number;
|
|
39
|
-
text: string;
|
|
40
|
-
}>>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Host-provided REPL execution backend.
|
|
44
|
-
*/
|
|
45
|
-
export interface ReplToolDeps {
|
|
46
|
-
/**
|
|
47
|
-
* Execute JavaScript code within a persistent VM context.
|
|
48
|
-
* The VM is pre-initialized with the primitive functions above.
|
|
49
|
-
* Each tool invocation reuses the same VM (preserving variable state).
|
|
50
|
-
*/
|
|
51
|
-
executeInVm(code: string): Promise<ReplExecResult>;
|
|
52
|
-
/**
|
|
53
|
-
* Reset the VM context (clear state). Optional hook called on errors.
|
|
54
|
-
*/
|
|
55
|
-
resetVm?(): void;
|
|
56
|
-
/**
|
|
57
|
-
* The host-provided primitives injected into the VM.
|
|
58
|
-
* When provided, the tool validates that the host has set up all required primitives.
|
|
59
|
-
*/
|
|
60
|
-
primitives?: ReplPrimitives;
|
|
61
|
-
/**
|
|
62
|
-
* Permission check for individual primitive operations.
|
|
63
|
-
* Called before each primitive executes inside the VM.
|
|
64
|
-
* Returns null if allowed, or an error message if denied.
|
|
65
|
-
*/
|
|
66
|
-
checkPermission?(operation: string, args: unknown[]): Promise<string | null>;
|
|
67
|
-
}
|
|
68
|
-
/** Tool names that should be hidden from direct LLM access when REPL is active. */
|
|
69
|
-
export declare const REPL_HIDES_TOOLS: readonly string[];
|
|
70
|
-
export declare function createReplTool(deps: ReplToolDeps): PortableTool<ReplToolParams>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const SEND_MESSAGE_TOOL_NAME: "send_message";
|
|
3
|
-
export interface SendMessageToolParams {
|
|
4
|
-
/** Target agent name or '*' for broadcast */
|
|
5
|
-
to: string;
|
|
6
|
-
/** Message content */
|
|
7
|
-
message: string;
|
|
8
|
-
/** Optional short summary for routing/display */
|
|
9
|
-
summary?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const SEND_MESSAGE_TOOL_SCHEMA: {
|
|
12
|
-
readonly type: "object";
|
|
13
|
-
readonly properties: {
|
|
14
|
-
readonly to: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
readonly description: string;
|
|
17
|
-
};
|
|
18
|
-
readonly message: {
|
|
19
|
-
readonly type: "string";
|
|
20
|
-
readonly description: "Message content to send to the target agent.";
|
|
21
|
-
};
|
|
22
|
-
readonly summary: {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly description: "Optional short summary (for logging/routing).";
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
readonly required: readonly ["to", "message"];
|
|
28
|
-
};
|
|
29
|
-
export interface SendMessageResult {
|
|
30
|
-
success: boolean;
|
|
31
|
-
recipients?: string[];
|
|
32
|
-
error?: string;
|
|
33
|
-
/** Replies collected from the recipient(s) — the message loop is synchronous. */
|
|
34
|
-
replies?: Array<{
|
|
35
|
-
memberId: string;
|
|
36
|
-
name: string;
|
|
37
|
-
reply: string;
|
|
38
|
-
}>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Host-provided message routing backend.
|
|
42
|
-
* Messages are delivered asynchronously via mailbox pattern.
|
|
43
|
-
*/
|
|
44
|
-
export interface SendMessageToolDeps {
|
|
45
|
-
/** Send message to target agent(s). Returns delivery status. */
|
|
46
|
-
sendMessage(params: {
|
|
47
|
-
to: string;
|
|
48
|
-
message: string;
|
|
49
|
-
summary?: string;
|
|
50
|
-
senderId: string;
|
|
51
|
-
}): Promise<SendMessageResult>;
|
|
52
|
-
/** Get the current agent's ID */
|
|
53
|
-
getSenderId(): string;
|
|
54
|
-
/** List available teammates */
|
|
55
|
-
listTeammates?(): string[];
|
|
56
|
-
}
|
|
57
|
-
export declare function createSendMessageTool(deps: SendMessageToolDeps): PortableTool<SendMessageToolParams>;
|