qlogicagent 2.19.1 → 2.19.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-contract.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/host-contract.js +1 -1
- package/dist/host-session-collection-contract.js +1 -0
- package/dist/index.js +478 -505
- package/dist/pet-host.js +8 -8
- package/dist/project-memory-host.js +23 -23
- package/dist/protocol.js +1 -1
- package/dist/types/cli/acp-commands.d.ts +1 -1
- package/dist/types/cli/acp-extended-handlers.d.ts +2 -8
- package/dist/types/cli/acp-extended-host-adapter.d.ts +0 -11
- package/dist/types/cli/acp-session-host.d.ts +2 -0
- package/dist/types/cli/core-tool-coordinator.d.ts +0 -9
- package/dist/types/cli/default-project-bootstrap.d.ts +2 -32
- package/dist/types/cli/handlers/session-handler.d.ts +0 -43
- package/dist/types/cli/handlers/solo-handler.d.ts +3 -14
- package/dist/types/cli/multi-agent-handler-host.d.ts +3 -16
- package/dist/types/cli/product-coordinator.d.ts +3 -14
- package/dist/types/cli/rpc-registry.d.ts +0 -2
- package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +4 -1
- package/dist/types/cli/stdio-server.d.ts +1 -2
- package/dist/types/host-contract/index.d.ts +110 -18
- package/dist/types/host-session-collection-contract.d.ts +61 -0
- package/dist/types/orchestration/agent-instance.d.ts +4 -11
- package/dist/types/orchestration/agent-roster.d.ts +4 -4
- package/dist/types/orchestration/delegate-bridge.d.ts +8 -0
- package/dist/types/orchestration/goal-mode-adapters.d.ts +3 -3
- package/dist/types/orchestration/product-persistence.d.ts +0 -4
- package/dist/types/orchestration/product-planner.d.ts +4 -6
- package/dist/types/orchestration/solo-evaluator.d.ts +2 -5
- package/dist/types/orchestration/testing/delegate-test-bridge.d.ts +2 -1
- package/dist/types/orchestration/testing/host-agent-provider-directory-fixture.d.ts +7 -0
- package/dist/types/orchestration/workflow/qla-executor-host.d.ts +1 -1
- package/dist/types/protocol/agent-contract.d.ts +9 -3
- package/dist/types/protocol/methods.d.ts +20 -38
- package/dist/types/protocol/notifications.d.ts +1 -1
- package/dist/types/protocol/wire/acp-agent-management.d.ts +2 -190
- package/dist/types/protocol/wire/acp-protocol.d.ts +0 -4
- package/dist/types/protocol/wire/agent-methods.d.ts +1 -243
- package/dist/types/protocol/wire/gateway-rpc.d.ts +343 -15
- package/dist/types/protocol/wire/index.d.ts +3 -3
- package/dist/types/protocol/wire/notification-payloads.d.ts +48 -134
- package/dist/types/runtime/infra/host-agent-provider-directory.d.ts +17 -0
- package/dist/types/runtime/infra/project-authority-facade.d.ts +1 -1
- package/dist/types/runtime/infra/project-data-paths.d.ts +2 -1
- package/dist/types/runtime/infra/project-host-authority.d.ts +3 -2
- package/dist/types/runtime/infra/project-store.d.ts +4 -39
- package/dist/types/runtime/session/session-catalog.d.ts +0 -12
- package/dist/types/runtime/session/session-persistence.d.ts +1 -1
- package/dist/types/runtime/session/session-resource-key.d.ts +1 -1
- package/dist/types/runtime/session/session-types.d.ts +0 -23
- package/dist/types/transport/acp-server.d.ts +2 -10
- package/dist/workflow-host.js +10 -10
- package/package.json +8 -1
- package/dist/types/cli/agent-config-coordinator.d.ts +0 -27
- package/dist/types/cli/agent-config-runtime.d.ts +0 -11
- package/dist/types/cli/agent-status-notifier.d.ts +0 -11
- package/dist/types/cli/handlers/agents-handler.d.ts +0 -126
- package/dist/types/cli/handlers/project-handler.d.ts +0 -36
- package/dist/types/cli/project-command-service.d.ts +0 -28
- package/dist/types/orchestration/delegation-coordinator.d.ts +0 -100
- package/dist/types/runtime/infra/acp-detector.d.ts +0 -273
- package/dist/types/runtime/infra/agent-config-store.d.ts +0 -30
- package/dist/types/runtime/infra/agent-install-runner.d.ts +0 -80
- package/dist/types/runtime/infra/external-agent-approvals.d.ts +0 -59
- package/dist/types/runtime/infra/migrate-device-scope.d.ts +0 -49
- package/dist/types/runtime/infra/project-data-gc.d.ts +0 -15
- package/dist/types/runtime/session/native/claude-session-source.d.ts +0 -23
- package/dist/types/runtime/session/native/codex-index.d.ts +0 -21
- package/dist/types/runtime/session/native/codex-session-source.d.ts +0 -31
- package/dist/types/runtime/session/native/cwd-normalize.d.ts +0 -53
- package/dist/types/runtime/session/native/ephemeral-rollout-sweep.d.ts +0 -13
- package/dist/types/runtime/session/native/native-cwd-agents.d.ts +0 -17
- package/dist/types/runtime/session/native/native-session-source.d.ts +0 -89
- package/dist/types/runtime/session/native/native-title.d.ts +0 -1
- package/dist/types/runtime/session/native/register-builtin-sources.d.ts +0 -1
|
@@ -4,107 +4,8 @@
|
|
|
4
4
|
* These types define the contract for discovering, registering, and managing
|
|
5
5
|
* external ACP-compatible agent CLIs alongside qlogicagent's internal agents.
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
8
|
-
export type {
|
|
9
|
-
/** Pre-defined configuration for a known ACP backend. */
|
|
10
|
-
export interface AcpBackendConfig {
|
|
11
|
-
/** Backend ID, e.g. "claude" | "codex" | "goose". */
|
|
12
|
-
id: string;
|
|
13
|
-
/** Display name. */
|
|
14
|
-
name: string;
|
|
15
|
-
/** CLI command name (target for which/where scan). */
|
|
16
|
-
cliCommand: string;
|
|
17
|
-
/** ACP mode launch arguments. */
|
|
18
|
-
acpArgs: string[];
|
|
19
|
-
/** npx fallback path when CLI is not in PATH. */
|
|
20
|
-
defaultCliPath?: string;
|
|
21
|
-
/** Environment variables injected at launch. */
|
|
22
|
-
env?: Record<string, string>;
|
|
23
|
-
/** Whether authentication is required. */
|
|
24
|
-
authRequired: boolean;
|
|
25
|
-
/** Native skill directories. */
|
|
26
|
-
skillsDirs?: string[];
|
|
27
|
-
/** Whether this backend supports base URL override. */
|
|
28
|
-
supportsBaseUrlOverride: boolean;
|
|
29
|
-
/** Environment variable name for the API key. */
|
|
30
|
-
apiKeyEnvVar?: string;
|
|
31
|
-
/** Environment variable name for the base URL. */
|
|
32
|
-
baseUrlEnvVar?: string;
|
|
33
|
-
/** Official-logo key for AgentBrandIcon. */
|
|
34
|
-
brandId?: string;
|
|
35
|
-
/** Real-world usage scenario for grouping in the discover UI (not a capability tag). */
|
|
36
|
-
category?: "coding" | "writing" | "design" | "creative" | "research" | "assistant";
|
|
37
|
-
/** How the agent is driven in-app: "acp" via the ACP adapter, "custom" via a dedicated non-ACP adapter. */
|
|
38
|
-
integration?: "acp" | "custom";
|
|
39
|
-
/** Where the injected key comes from: gateway-issued (llmrouter), the user's direct third-party key, or none (OAuth). */
|
|
40
|
-
keySource?: "llmrouter" | "direct" | "none";
|
|
41
|
-
/** Auth model: "key" = login-free key injection; "oauth" = no key bypass, user account required. */
|
|
42
|
-
authMode?: "key" | "oauth";
|
|
43
|
-
/** One-click install spec (official commands per platform). */
|
|
44
|
-
install?: AgentInstallSpec;
|
|
45
|
-
/** Short UI note (e.g. "需 GitHub 账号", "非 ACP,自定义适配器驱动"). */
|
|
46
|
-
note?: string;
|
|
47
|
-
/** Coarse soft capability hint for the leader's planning roster (NOT a capability contract). */
|
|
48
|
-
strengths?: string;
|
|
49
|
-
}
|
|
50
|
-
/** Official install commands for the one-click installer (no self-hosted CDN — runs upstream). */
|
|
51
|
-
export interface AgentInstallSpec {
|
|
52
|
-
npm?: string;
|
|
53
|
-
brew?: string;
|
|
54
|
-
curl?: string;
|
|
55
|
-
pip?: string;
|
|
56
|
-
/** Executable name after install (probe target). */
|
|
57
|
-
cliCommand: string;
|
|
58
|
-
/** Probe command (default `<cliCommand> --version`). */
|
|
59
|
-
verifyCmd?: string;
|
|
60
|
-
/** Official docs / source URL (shown in the install confirmation). */
|
|
61
|
-
docsUrl: string;
|
|
62
|
-
/**
|
|
63
|
-
* Self/host-platform agents (e.g. xiaozhiclaw) whose in-place UPDATE would disrupt the running session
|
|
64
|
-
* (the engine bridges to a live instance). When already installed, the update runs DETACHED in the
|
|
65
|
-
* background instead of as a child of the engine, and takes effect on the agent's next startup.
|
|
66
|
-
*/
|
|
67
|
-
deferUpdate?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Interactive terminal login/setup command for agents that hold credentials in their OWN CLI store
|
|
70
|
-
* (oauth / own-setup, e.g. `kimi login`, `hermes acp --setup`). The UI exposes a "在终端登录/设置"
|
|
71
|
-
* button that opens an OS terminal running this, so the user never leaves the app. Resolved
|
|
72
|
-
* server-side (fixed catalog string, no user input) — never managed/key-routable agents.
|
|
73
|
-
*/
|
|
74
|
-
setupCommand?: string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Extended descriptor for external agents,
|
|
78
|
-
* used by the Gateway Supervisor when resolving an agent.
|
|
79
|
-
*/
|
|
80
|
-
export interface ExternalAgentDescriptor {
|
|
81
|
-
/** Backend ID. */
|
|
82
|
-
id: string;
|
|
83
|
-
/** Resolved CLI binary path. */
|
|
84
|
-
cliPath: string;
|
|
85
|
-
/** ACP launch arguments. */
|
|
86
|
-
acpArgs: string[];
|
|
87
|
-
/** Extra environment variables for spawn. */
|
|
88
|
-
env?: Record<string, string>;
|
|
89
|
-
/**
|
|
90
|
-
* Env var names the spawn layer must DELETE from the merged child env (after Object.assign of `env`),
|
|
91
|
-
* so a forwarded/stale shell key cannot override the CLI's own native login. Set in `account` mode
|
|
92
|
-
* (the load-bearing fix for the env-injection-override bug — buildBackendEnv alone cannot unset a
|
|
93
|
-
* whitelisted forwarded key). See acp-detector.resolveSuppressEnvKeys.
|
|
94
|
-
*/
|
|
95
|
-
suppressEnvKeys?: string[];
|
|
96
|
-
/** Communication protocol. */
|
|
97
|
-
protocol: "acp";
|
|
98
|
-
}
|
|
99
|
-
/** Root config store schema (persisted to JSON). */
|
|
100
|
-
export interface AgentConfigStoreData {
|
|
101
|
-
/** Global gateway proxy URL. */
|
|
102
|
-
gatewayUrl?: string;
|
|
103
|
-
/** Per-agent override configurations. */
|
|
104
|
-
agents: Record<string, AgentConfig>;
|
|
105
|
-
/** User-registered custom agents. */
|
|
106
|
-
customAgents?: Record<string, CustomAgentDef>;
|
|
107
|
-
}
|
|
7
|
+
import type { ProductTaskStatus, ProductInstanceDef, ProductTaskDef } from "./agent-methods.js";
|
|
8
|
+
export type { SoloState, SoloAgentState, SoloAgentResult, SoloStatus, ProductPhase, ProductTaskStatus, ProductInstanceDef, ProductTaskDef, ProductStatus, ProductSummary, } from "./agent-methods.js";
|
|
108
9
|
/** ACP initialize result (from agent's response). */
|
|
109
10
|
export interface AcpInitializeResult {
|
|
110
11
|
protocolVersion: number;
|
|
@@ -177,32 +78,6 @@ export interface McpServerConfig {
|
|
|
177
78
|
args: string[];
|
|
178
79
|
env?: McpServerEnvEntry[];
|
|
179
80
|
}
|
|
180
|
-
export interface AgentsScanParams {
|
|
181
|
-
force?: boolean;
|
|
182
|
-
}
|
|
183
|
-
export interface AgentsConfigParams {
|
|
184
|
-
action: "register" | "unregister" | "update";
|
|
185
|
-
agent: CustomAgentDef;
|
|
186
|
-
}
|
|
187
|
-
export interface AgentsSetConfigParams {
|
|
188
|
-
agentId: string;
|
|
189
|
-
apiKey?: string;
|
|
190
|
-
baseUrl?: string;
|
|
191
|
-
model?: string;
|
|
192
|
-
env?: Record<string, string>;
|
|
193
|
-
customArgs?: string[];
|
|
194
|
-
customCliPath?: string;
|
|
195
|
-
modelIdMap?: Record<string, string>;
|
|
196
|
-
}
|
|
197
|
-
export interface AgentsGetConfigParams {
|
|
198
|
-
agentId: string;
|
|
199
|
-
}
|
|
200
|
-
export interface AgentsRemoveConfigParams {
|
|
201
|
-
agentId: string;
|
|
202
|
-
}
|
|
203
|
-
export interface AgentsSetGatewayParams {
|
|
204
|
-
url: string;
|
|
205
|
-
}
|
|
206
81
|
export interface SoloEvaluation {
|
|
207
82
|
winnerId: string;
|
|
208
83
|
reasoning: string;
|
|
@@ -340,22 +215,6 @@ export interface ProductCreateParams {
|
|
|
340
215
|
maxTotalTokens?: number;
|
|
341
216
|
maxDuration?: number;
|
|
342
217
|
};
|
|
343
|
-
/**
|
|
344
|
-
* P2-1: run ALL tasks directly in the project cwd (`cwd`) instead of isolated per-task git worktrees.
|
|
345
|
-
* Set by DelegationCoordinator so a background @mention shares the project workspace exactly like
|
|
346
|
-
* foreground @codex — its native session then lives under a STABLE cwd (git or not) and resumes across
|
|
347
|
-
* delegations. Omitted everywhere else (per-task worktree isolation stays the default for parallel
|
|
348
|
-
* product/goal/solo tasks).
|
|
349
|
-
*/
|
|
350
|
-
runInProjectCwd?: boolean;
|
|
351
|
-
/**
|
|
352
|
-
* P2-1: native (codex/claude) session id to RESUME for this delegation (ACP session/load), so repeated
|
|
353
|
-
* background @mention to the same (chat×agent) accumulates context — the background analogue of the
|
|
354
|
-
* foreground U4 resume. The DelegationCoordinator tracks it per (chat×agent): undefined on the first
|
|
355
|
-
* delegation (→ fresh session, whose id it then captures), the prior id thereafter. Validated by `has()`
|
|
356
|
-
* before use, so a stale id falls back to a fresh session. Git-independent (id, not cwd, drives reuse).
|
|
357
|
-
*/
|
|
358
|
-
resumeNativeSessionId?: string;
|
|
359
218
|
}
|
|
360
219
|
/**
|
|
361
220
|
* product.plan RPC params — starts an interactive planning session.
|
|
@@ -504,53 +363,6 @@ export interface ProductTaskState {
|
|
|
504
363
|
/** Relative paths of files the task produced. */
|
|
505
364
|
changedFiles?: string[];
|
|
506
365
|
}
|
|
507
|
-
/** agents.getGateway response. */
|
|
508
|
-
export interface AgentsGetGatewayResult {
|
|
509
|
-
url?: string;
|
|
510
|
-
}
|
|
511
|
-
/** agents.listConfigured response item. */
|
|
512
|
-
export interface AgentsListConfiguredItem {
|
|
513
|
-
agentId: string;
|
|
514
|
-
hasApiKey: boolean;
|
|
515
|
-
hasBaseUrl: boolean;
|
|
516
|
-
hasModel: boolean;
|
|
517
|
-
}
|
|
518
|
-
/** agents.processes response item. */
|
|
519
|
-
export interface AgentsProcessInfo {
|
|
520
|
-
memberId: string;
|
|
521
|
-
name: string;
|
|
522
|
-
pid: number;
|
|
523
|
-
state: string;
|
|
524
|
-
startedAt: number;
|
|
525
|
-
endedAt?: number;
|
|
526
|
-
source: "solo" | "product";
|
|
527
|
-
}
|
|
528
|
-
/** agents.kill RPC params. */
|
|
529
|
-
export interface AgentsKillParams {
|
|
530
|
-
memberId: string;
|
|
531
|
-
}
|
|
532
|
-
/** agents.getLog RPC params. */
|
|
533
|
-
export interface AgentsGetLogParams {
|
|
534
|
-
agentId: string;
|
|
535
|
-
tail?: number;
|
|
536
|
-
}
|
|
537
|
-
/** agents.getLog response. */
|
|
538
|
-
export interface AgentsGetLogResult {
|
|
539
|
-
log: string;
|
|
540
|
-
}
|
|
541
|
-
/** agents.testConnection RPC params. */
|
|
542
|
-
export interface AgentsTestConnectionParams {
|
|
543
|
-
agentId: string;
|
|
544
|
-
timeoutMs?: number;
|
|
545
|
-
}
|
|
546
|
-
/** agents.testConnection response. */
|
|
547
|
-
export interface AgentsTestConnectionResult {
|
|
548
|
-
ok: boolean;
|
|
549
|
-
version?: string;
|
|
550
|
-
capabilities?: AgentCapabilities;
|
|
551
|
-
error?: string;
|
|
552
|
-
durationMs: number;
|
|
553
|
-
}
|
|
554
366
|
/** solo.delete / solo.cancel cleanup RPC params. */
|
|
555
367
|
export interface SoloDeleteParams {
|
|
556
368
|
soloId: string;
|
|
@@ -20,7 +20,6 @@ export type AcpStandardMethod = (typeof ACP_METHODS)[keyof typeof ACP_METHODS];
|
|
|
20
20
|
export declare const ACP_EXTENDED_METHODS: {
|
|
21
21
|
readonly ABORT: "x/abort";
|
|
22
22
|
readonly DREAM: "x/dream";
|
|
23
|
-
readonly AGENTS_LIST: "x/agents.list";
|
|
24
23
|
readonly SOLO_START: "x/solo.start";
|
|
25
24
|
readonly SOLO_STATUS: "x/solo.status";
|
|
26
25
|
readonly SOLO_SELECT: "x/solo.select";
|
|
@@ -52,9 +51,6 @@ export declare const ACP_EXTENDED_METHODS: {
|
|
|
52
51
|
readonly GOAL_MESSAGE: "x/goal.message";
|
|
53
52
|
readonly GOAL_SUBSCRIBE: "x/goal.subscribe";
|
|
54
53
|
readonly GOAL_EVENTS: "x/goal.events";
|
|
55
|
-
readonly MENTION_DELEGATE: "x/mention.delegate";
|
|
56
|
-
readonly MENTION_CANCEL: "x/mention.cancel";
|
|
57
|
-
readonly MENTION_LIST: "x/mention.list";
|
|
58
54
|
readonly DELEGATE: "x/delegate";
|
|
59
55
|
readonly DELEGATE_UPDATE: "x/delegate.update";
|
|
60
56
|
readonly DELEGATE_RESPOND: "x/delegate.respond";
|
|
@@ -11,64 +11,7 @@
|
|
|
11
11
|
import type { ChatMessage, LocalizedToolText, ToolCapabilityCategory } from "./chat-types.js";
|
|
12
12
|
import type { GatewayRpcMethodMap } from "./gateway-rpc.js";
|
|
13
13
|
import type { WireTokenUsage } from "./notification-payloads.js";
|
|
14
|
-
import type { SoloEvaluation, SoloMessageParams, SoloEvaluateParams, SoloDeleteParams, ProductPlan, ProductPlanParams, ProductConfirmParams, ProductMessageParams, ProductIdParams, ProductDeleteParams, ProductReplayParams
|
|
15
|
-
export type AgentCategory = "sub-agent" | "teammate";
|
|
16
|
-
export type AgentProtocol = "internal" | "acp";
|
|
17
|
-
export type AgentStatus = "available" | "unavailable" | "handshake_failed" | "not_installed";
|
|
18
|
-
export interface AgentCapabilities {
|
|
19
|
-
supportsMcp: boolean;
|
|
20
|
-
supportsResume: boolean;
|
|
21
|
-
supportsUsageUpdate: boolean;
|
|
22
|
-
skillsDirs?: string[];
|
|
23
|
-
/** 会话历史来源:native-cwd=有本地按 cwd 可发现的原生会话;省略/own=只显示自有会话 */
|
|
24
|
-
sessionHistory?: "native-cwd" | "own";
|
|
25
|
-
}
|
|
26
|
-
/** Descriptor for a discovered or registered agent. */
|
|
27
|
-
export interface AgentDescriptor {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
category: AgentCategory;
|
|
31
|
-
protocol: AgentProtocol;
|
|
32
|
-
status: AgentStatus;
|
|
33
|
-
cliPath?: string;
|
|
34
|
-
version?: string;
|
|
35
|
-
capabilities?: AgentCapabilities;
|
|
36
|
-
authRequired: boolean;
|
|
37
|
-
hasConfig: boolean;
|
|
38
|
-
supportsBaseUrlOverride: boolean;
|
|
39
|
-
}
|
|
40
|
-
/** User-provided custom agent definition. */
|
|
41
|
-
export interface CustomAgentDef {
|
|
42
|
-
id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
cliCommand: string;
|
|
45
|
-
acpArgs: string[];
|
|
46
|
-
env?: Record<string, string>;
|
|
47
|
-
authRequired?: boolean;
|
|
48
|
-
skillsDirs?: string[];
|
|
49
|
-
supportsBaseUrlOverride?: boolean;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Per-agent credential source preference (BYO-account/key axis).
|
|
53
|
-
* - "auto" : ladder — detected native account → user's own key → managed gateway (default; reproduces legacy behavior).
|
|
54
|
-
* - "managed" : force the platform gateway (sk-qllm); guarantees a first conversation, ignores any user key.
|
|
55
|
-
* - "account" : use the CLI's own native account/subscription login; inject NO key (the spawn layer also deletes any
|
|
56
|
-
* forwarded key) so the CLI's own credential store wins. Not available for claude (Anthropic bans 3rd-party OAuth).
|
|
57
|
-
* - "userKey" : use the user's own provider API key against the official endpoint (no gateway baseUrl override).
|
|
58
|
-
*/
|
|
59
|
-
export type AuthPreference = "auto" | "managed" | "account" | "userKey";
|
|
60
|
-
/** Persisted per-agent configuration. */
|
|
61
|
-
export interface AgentConfig {
|
|
62
|
-
apiKey?: string;
|
|
63
|
-
baseUrl?: string;
|
|
64
|
-
model?: string;
|
|
65
|
-
env?: Record<string, string>;
|
|
66
|
-
customArgs?: string[];
|
|
67
|
-
customCliPath?: string;
|
|
68
|
-
modelIdMap?: Record<string, string>;
|
|
69
|
-
/** Credential-source preference (undefined ⇒ "auto"; see AuthPreference). No migration needed. */
|
|
70
|
-
authPreference?: AuthPreference;
|
|
71
|
-
}
|
|
14
|
+
import type { SoloEvaluation, SoloMessageParams, SoloEvaluateParams, SoloDeleteParams, ProductPlan, ProductPlanParams, ProductConfirmParams, ProductMessageParams, ProductIdParams, ProductDeleteParams, ProductReplayParams } from "./acp-agent-management.js";
|
|
72
15
|
export type SoloState = "running" | "evaluating" | "completed" | "cancelled" | "failed";
|
|
73
16
|
export type SoloAgentState = "pending" | "running" | "completed" | "failed" | "idle";
|
|
74
17
|
export interface SoloAgentResult {
|
|
@@ -421,62 +364,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
421
364
|
usage?: WireTokenUsage;
|
|
422
365
|
};
|
|
423
366
|
};
|
|
424
|
-
"agents.scan": {
|
|
425
|
-
params: {
|
|
426
|
-
force?: boolean;
|
|
427
|
-
};
|
|
428
|
-
result: AgentDescriptor[];
|
|
429
|
-
};
|
|
430
|
-
"agents.list": {
|
|
431
|
-
params: undefined;
|
|
432
|
-
result: AgentDescriptor[];
|
|
433
|
-
};
|
|
434
|
-
"agents.config": {
|
|
435
|
-
params: {
|
|
436
|
-
action: "register" | "unregister" | "update";
|
|
437
|
-
agent: CustomAgentDef;
|
|
438
|
-
};
|
|
439
|
-
result: {
|
|
440
|
-
ok: true;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
"agents.setConfig": {
|
|
444
|
-
params: {
|
|
445
|
-
agentId: string;
|
|
446
|
-
apiKey?: string;
|
|
447
|
-
baseUrl?: string;
|
|
448
|
-
model?: string;
|
|
449
|
-
env?: Record<string, string>;
|
|
450
|
-
customArgs?: string[];
|
|
451
|
-
customCliPath?: string;
|
|
452
|
-
modelIdMap?: Record<string, string>;
|
|
453
|
-
};
|
|
454
|
-
result: {
|
|
455
|
-
ok: true;
|
|
456
|
-
};
|
|
457
|
-
};
|
|
458
|
-
"agents.getConfig": {
|
|
459
|
-
params: {
|
|
460
|
-
agentId: string;
|
|
461
|
-
};
|
|
462
|
-
result: AgentConfig | null;
|
|
463
|
-
};
|
|
464
|
-
"agents.removeConfig": {
|
|
465
|
-
params: {
|
|
466
|
-
agentId: string;
|
|
467
|
-
};
|
|
468
|
-
result: {
|
|
469
|
-
ok: true;
|
|
470
|
-
};
|
|
471
|
-
};
|
|
472
|
-
"agents.setGateway": {
|
|
473
|
-
params: {
|
|
474
|
-
url: string;
|
|
475
|
-
};
|
|
476
|
-
result: {
|
|
477
|
-
ok: true;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
367
|
"solo.start": {
|
|
481
368
|
params: {
|
|
482
369
|
task: string;
|
|
@@ -645,23 +532,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
645
532
|
model?: string;
|
|
646
533
|
};
|
|
647
534
|
};
|
|
648
|
-
"provider.list": {
|
|
649
|
-
params: undefined;
|
|
650
|
-
result: {
|
|
651
|
-
providers: Array<{
|
|
652
|
-
group: string;
|
|
653
|
-
variants: Array<{
|
|
654
|
-
id: string;
|
|
655
|
-
name: string;
|
|
656
|
-
transport: string;
|
|
657
|
-
baseUrl: string;
|
|
658
|
-
defaultModel?: string;
|
|
659
|
-
modelCount: number;
|
|
660
|
-
available: boolean;
|
|
661
|
-
}>;
|
|
662
|
-
}>;
|
|
663
|
-
};
|
|
664
|
-
};
|
|
665
535
|
"community.resolveInstall": {
|
|
666
536
|
params: {
|
|
667
537
|
resourceId: string;
|
|
@@ -718,117 +588,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
718
588
|
"agent.health": GatewayRpcMethodMap["agent.health"];
|
|
719
589
|
"agent.metrics": GatewayRpcMethodMap["agent.metrics"];
|
|
720
590
|
"agent.cancel": GatewayRpcMethodMap["agent.cancel"];
|
|
721
|
-
"agents.catalog": {
|
|
722
|
-
params: undefined;
|
|
723
|
-
result: {
|
|
724
|
-
catalog: Array<{
|
|
725
|
-
id: string;
|
|
726
|
-
name: string;
|
|
727
|
-
brandId: string;
|
|
728
|
-
category: string;
|
|
729
|
-
integration: string;
|
|
730
|
-
authMode: string;
|
|
731
|
-
note?: string;
|
|
732
|
-
status: string;
|
|
733
|
-
version: string | undefined;
|
|
734
|
-
install: {
|
|
735
|
-
docsUrl?: string;
|
|
736
|
-
command?: string;
|
|
737
|
-
};
|
|
738
|
-
}>;
|
|
739
|
-
};
|
|
740
|
-
};
|
|
741
|
-
"agents.checkUpdates": {
|
|
742
|
-
params: {
|
|
743
|
-
mirror?: string;
|
|
744
|
-
} | undefined;
|
|
745
|
-
result: {
|
|
746
|
-
updates: unknown[];
|
|
747
|
-
};
|
|
748
|
-
};
|
|
749
|
-
"agents.install": {
|
|
750
|
-
params: {
|
|
751
|
-
agentId: string;
|
|
752
|
-
mirror?: string;
|
|
753
|
-
};
|
|
754
|
-
result: {
|
|
755
|
-
ok: boolean;
|
|
756
|
-
error?: string;
|
|
757
|
-
};
|
|
758
|
-
};
|
|
759
|
-
"agents.prompt": {
|
|
760
|
-
params: {
|
|
761
|
-
agentId: string;
|
|
762
|
-
prompt: string;
|
|
763
|
-
cwd?: string;
|
|
764
|
-
timeoutMs?: number;
|
|
765
|
-
systemPrompt?: string;
|
|
766
|
-
sessionId?: string;
|
|
767
|
-
turnId?: string;
|
|
768
|
-
requestId?: string;
|
|
769
|
-
projectId?: string;
|
|
770
|
-
};
|
|
771
|
-
result: {
|
|
772
|
-
ok: true;
|
|
773
|
-
agentId: string;
|
|
774
|
-
content: string;
|
|
775
|
-
streamed: boolean;
|
|
776
|
-
stopReason?: string;
|
|
777
|
-
usage?: {
|
|
778
|
-
inputTokens: number;
|
|
779
|
-
outputTokens: number;
|
|
780
|
-
totalTokens: number;
|
|
781
|
-
cacheRead: number;
|
|
782
|
-
thoughtTokens: number;
|
|
783
|
-
cost: number;
|
|
784
|
-
};
|
|
785
|
-
};
|
|
786
|
-
};
|
|
787
|
-
"agents.approvalResponse": {
|
|
788
|
-
params: {
|
|
789
|
-
approvalId?: string;
|
|
790
|
-
optionId?: string;
|
|
791
|
-
};
|
|
792
|
-
result: {
|
|
793
|
-
ok: boolean;
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
"agents.warm": {
|
|
797
|
-
params: {
|
|
798
|
-
agentId?: string;
|
|
799
|
-
};
|
|
800
|
-
result: {
|
|
801
|
-
ok: boolean;
|
|
802
|
-
warmed: boolean;
|
|
803
|
-
error?: string;
|
|
804
|
-
};
|
|
805
|
-
};
|
|
806
|
-
"agents.getGateway": {
|
|
807
|
-
params: undefined;
|
|
808
|
-
result: AgentsGetGatewayResult;
|
|
809
|
-
};
|
|
810
|
-
"agents.processes": {
|
|
811
|
-
params: undefined;
|
|
812
|
-
result: AgentsProcessInfo[];
|
|
813
|
-
};
|
|
814
|
-
"agents.kill": {
|
|
815
|
-
params: AgentsKillParams;
|
|
816
|
-
result: {
|
|
817
|
-
ok: boolean;
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
"agents.listConfigured": {
|
|
821
|
-
params: undefined;
|
|
822
|
-
result: AgentsListConfiguredItem[];
|
|
823
|
-
};
|
|
824
|
-
"agents.getLog": {
|
|
825
|
-
params: AgentsGetLogParams;
|
|
826
|
-
result: AgentsGetLogResult;
|
|
827
|
-
};
|
|
828
|
-
"agents.testConnection": {
|
|
829
|
-
params: AgentsTestConnectionParams;
|
|
830
|
-
result: AgentsTestConnectionResult;
|
|
831
|
-
};
|
|
832
591
|
"solo.list": {
|
|
833
592
|
params: undefined;
|
|
834
593
|
result: SoloStatus[];
|
|
@@ -1213,7 +972,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
1213
972
|
credentialId: string;
|
|
1214
973
|
};
|
|
1215
974
|
};
|
|
1216
|
-
"project.purgeAll": GatewayRpcMethodMap["project.purgeAll"];
|
|
1217
975
|
"session.moveToProject": GatewayRpcMethodMap["session.moveToProject"];
|
|
1218
976
|
"instructions.list": GatewayRpcMethodMap["instructions.list"];
|
|
1219
977
|
"instructions.read": GatewayRpcMethodMap["instructions.read"];
|