personal-bot 0.2.19 → 0.3.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/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -5
- package/.mcp.json +11 -0
- package/CONTEXT.md +17 -73
- package/README.md +41 -120
- package/README.zh-CN.md +41 -120
- package/docs/README.md +31 -23
- package/docs/architecture/design.md +74 -0
- package/docs/architecture/extensibility.md +78 -0
- package/docs/architecture/model-context.md +31 -0
- package/docs/architecture/model-instruction-guidelines.md +34 -0
- package/docs/architecture/principles.md +33 -0
- package/docs/guides/capabilities.md +36 -0
- package/docs/guides/cross-harness-workers.md +83 -0
- package/docs/guides/history.md +25 -0
- package/docs/guides/workspace-configuration.md +102 -0
- package/docs/hosts/antigravity.md +52 -0
- package/docs/hosts/claude-code.md +47 -0
- package/docs/hosts/dsh.md +67 -0
- package/docs/hosts/pi.md +49 -0
- package/docs/maintainers/release.md +59 -0
- package/hooks/hooks.json +0 -3
- package/lib/antigravity-plugin/hooks.json +23 -0
- package/lib/antigravity-plugin/lib/claude.d.ts +1 -0
- package/lib/antigravity-plugin/lib/claude.js +13 -0
- package/lib/antigravity-plugin/lib/common/json.d.ts +6 -0
- package/lib/antigravity-plugin/lib/common/json.js +16 -0
- package/lib/antigravity-plugin/lib/common/paths.d.ts +1 -0
- package/lib/antigravity-plugin/lib/common/paths.js +2 -0
- package/lib/antigravity-plugin/lib/common/validation.d.ts +3 -0
- package/lib/antigravity-plugin/lib/common/validation.js +8 -0
- package/lib/antigravity-plugin/lib/common/version.d.ts +3 -0
- package/lib/antigravity-plugin/lib/common/version.js +13 -0
- package/lib/antigravity-plugin/lib/extension/acp-worker.js +11597 -0
- package/lib/antigravity-plugin/lib/extension/mcp.js +2715 -0
- package/lib/antigravity-plugin/lib/extension/plugin-runtime.d.ts +10 -0
- package/lib/antigravity-plugin/lib/extension/plugin-runtime.js +67 -0
- package/lib/antigravity-plugin/lib/integrations/agent-resources.d.ts +16 -0
- package/lib/antigravity-plugin/lib/integrations/agent-resources.js +56 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/antigravity.d.ts +4 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/antigravity.js +79 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/claude.d.ts +3 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/claude.js +60 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/registry.d.ts +15 -0
- package/lib/antigravity-plugin/lib/integrations/hosts/registry.js +34 -0
- package/lib/antigravity-plugin/lib/model/acp.d.ts +164 -0
- package/lib/antigravity-plugin/lib/model/acp.js +12 -0
- package/lib/antigravity-plugin/lib/model/plugin-host.d.ts +48 -0
- package/lib/antigravity-plugin/lib/model/workspace-config.d.ts +24 -0
- package/lib/antigravity-plugin/lib/model/workspace-config.js +1 -0
- package/lib/antigravity-plugin/lib/model/workspace-mcp.d.ts +51 -0
- package/lib/antigravity-plugin/lib/model/workspace-mcp.js +4 -0
- package/lib/antigravity-plugin/lib/plugin.d.ts +1 -0
- package/lib/antigravity-plugin/lib/plugin.js +17 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-config.d.ts +8 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-config.js +93 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-preparation.d.ts +3 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-preparation.js +26 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-skills.d.ts +8 -0
- package/lib/antigravity-plugin/lib/services/workspace/workspace-skills.js +91 -0
- package/lib/antigravity-plugin/lib/storage/atomic-json.d.ts +11 -0
- package/lib/antigravity-plugin/lib/storage/atomic-json.js +101 -0
- package/lib/antigravity-plugin/mcp_config.json +13 -0
- package/lib/antigravity-plugin/package.json +6 -0
- package/lib/antigravity-plugin/plugin.json +7 -0
- package/lib/antigravity-plugin/resources/agents/coordinator.md +11 -0
- package/{resources/claude → lib/antigravity-plugin/resources}/agents/general-purpose.md +0 -5
- package/lib/antigravity-plugin/resources/prompts/plugin-coordinator.md +1 -0
- package/lib/antigravity-plugin/resources/prompts/workspace.md +31 -0
- package/lib/antigravity-plugin/resources/references/compute-finance.md +22 -0
- package/lib/antigravity-plugin/resources/references/compute.md +16 -0
- package/lib/antigravity-plugin/resources/references/task-conductor.md +25 -0
- package/lib/antigravity-plugin/resources/templates/workspace-agents.md +21 -0
- package/lib/antigravity-plugin/skills/pbot/SKILL.md +16 -0
- package/lib/antigravity-plugin/skills/project-maintenance/SKILL.md +35 -0
- package/lib/antigravity-plugin/skills/provider-connections/SKILL.md +42 -0
- package/lib/claude.js +4 -11
- package/lib/client.js +14 -531
- package/lib/common/markdown.js +2 -3
- package/lib/common/validation.d.ts +2 -0
- package/lib/common/validation.js +4 -0
- package/lib/extension/acp-member.d.ts +2 -0
- package/lib/extension/acp-member.js +9 -8
- package/lib/extension/acp-worker.js +11578 -121
- package/lib/extension/dsh/acp-member.js +26 -2
- package/lib/extension/dsh/command.js +19 -57
- package/lib/extension/dsh/history.js +2 -4
- package/lib/extension/dsh/management.d.ts +0 -2
- package/lib/extension/dsh/management.js +27 -126
- package/lib/extension/dsh/workspace.d.ts +5 -47
- package/lib/extension/dsh/workspace.js +76 -108
- package/lib/extension/mcp-bridge.d.ts +41 -0
- package/lib/extension/mcp-bridge.js +412 -0
- package/lib/extension/mcp-workers.d.ts +980 -0
- package/lib/extension/mcp-workers.js +882 -0
- package/lib/extension/mcp.js +2715 -0
- package/lib/extension/plugin-runtime.d.ts +10 -0
- package/lib/extension/plugin-runtime.js +67 -0
- package/lib/extension/setup-cli.js +215 -2
- package/lib/integrations/acp/agents.d.ts +10 -11
- package/lib/integrations/acp/agents.js +65 -33
- package/lib/integrations/acp/claude.d.ts +2 -2
- package/lib/integrations/acp/claude.js +5 -3
- package/lib/integrations/acp/connection.d.ts +17 -4
- package/lib/integrations/acp/connection.js +53 -27
- package/lib/integrations/acp/executable.d.ts +3 -0
- package/lib/integrations/acp/executable.js +42 -0
- package/lib/integrations/acp/harnesses/claude.d.ts +2 -0
- package/lib/integrations/acp/harnesses/claude.js +49 -0
- package/lib/integrations/acp/harnesses/dsh.d.ts +2 -0
- package/lib/integrations/acp/harnesses/dsh.js +35 -0
- package/lib/integrations/acp/harnesses/generic.d.ts +13 -0
- package/lib/integrations/acp/harnesses/generic.js +37 -0
- package/lib/integrations/acp/harnesses/pi.d.ts +2 -0
- package/lib/integrations/acp/harnesses/pi.js +34 -0
- package/lib/integrations/acp/harnesses/presets.d.ts +3 -0
- package/lib/integrations/acp/harnesses/presets.js +20 -0
- package/lib/integrations/acp/launch.d.ts +33 -4
- package/lib/integrations/acp/launch.js +60 -48
- package/lib/integrations/acp/mcp.d.ts +6 -0
- package/lib/integrations/acp/mcp.js +40 -0
- package/lib/integrations/acp/model-selection.d.ts +9 -2
- package/lib/integrations/acp/model-selection.js +73 -27
- package/lib/integrations/acp/registry.d.ts +18 -0
- package/lib/integrations/acp/registry.js +50 -0
- package/lib/integrations/agent-resources.d.ts +16 -1
- package/lib/integrations/agent-resources.js +45 -9
- package/lib/integrations/dsh/mcp.d.ts +4 -0
- package/lib/integrations/dsh/mcp.js +28 -0
- package/lib/integrations/dsh/resources.d.ts +3 -3
- package/lib/integrations/dsh/resources.js +21 -12
- package/lib/integrations/dsh/skills.d.ts +5 -1
- package/lib/integrations/dsh/skills.js +10 -6
- package/lib/integrations/hosts/antigravity.d.ts +4 -0
- package/lib/integrations/hosts/antigravity.js +79 -0
- package/lib/integrations/hosts/claude.d.ts +3 -0
- package/lib/integrations/hosts/claude.js +60 -0
- package/lib/integrations/hosts/registry.d.ts +15 -0
- package/lib/integrations/hosts/registry.js +34 -0
- package/lib/model/acp.d.ts +107 -2
- package/lib/model/acp.js +12 -1
- package/lib/model/agent.d.ts +35 -33
- package/lib/model/plugin-host.d.ts +48 -0
- package/lib/model/plugin-host.js +1 -0
- package/lib/model/workspace-config.d.ts +12 -0
- package/lib/model/workspace-mcp.d.ts +51 -0
- package/lib/model/workspace-mcp.js +4 -0
- package/lib/plugin.d.ts +1 -0
- package/lib/plugin.js +17 -0
- package/lib/services/agents/acp-run.d.ts +13 -1
- package/lib/services/agents/acp-run.js +30 -2
- package/lib/services/agents/agent-service.d.ts +35 -120
- package/lib/services/agents/agent-service.js +156 -160
- package/lib/services/installation/setup-service.js +17 -1
- package/lib/services/workspace/workspace-config.d.ts +2 -1
- package/lib/services/workspace/workspace-config.js +39 -7
- package/lib/services/workspace/workspace-mcp.d.ts +14 -0
- package/lib/services/workspace/workspace-mcp.js +200 -0
- package/lib/services/workspace/workspace-skills.d.ts +8 -0
- package/lib/services/workspace/workspace-skills.js +91 -0
- package/lib/storage/acp-files.d.ts +3 -1
- package/lib/storage/acp-files.js +32 -2
- package/lib/storage/acp-history.d.ts +3 -2
- package/lib/storage/acp-history.js +19 -7
- package/lib/storage/agent-files.d.ts +8 -8
- package/lib/storage/agent-files.js +27 -47
- package/lib/tools/history/contract.d.ts +1 -1
- package/lib/tools/history/contract.js +17 -11
- package/lib/ui/dsh/index.js +8 -3
- package/lib/ui/dsh/management.d.ts +1 -1
- package/lib/ui/dsh/management.js +24 -456
- package/lib/ui/dsh/remote.d.ts +0 -2
- package/lib/ui/dsh/remote.js +1 -1
- package/package.json +12 -7
- package/resources/agents/coordinator.md +2 -2
- package/resources/antigravity/skills/pbot/SKILL.md +16 -0
- package/resources/claude/skills/pbot/SKILL.md +1 -1
- package/resources/prompts/history-coordinator.md +1 -0
- package/resources/prompts/plugin-coordinator.md +1 -0
- package/resources/prompts/workspace.md +9 -8
- package/resources/references/compute.md +9 -11
- package/resources/references/task-conductor.md +12 -26
- package/resources/skills/project-maintenance/SKILL.md +17 -22
- package/resources/skills/provider-connections/SKILL.md +24 -40
- package/resources/templates/workspace-agents.md +8 -0
- package/scripts/README.md +17 -34
- package/src/claude.ts +4 -8
- package/src/common/markdown.ts +2 -3
- package/src/common/validation.ts +6 -0
- package/src/extension/acp-member.ts +9 -8
- package/src/extension/acp-worker.ts +239 -97
- package/src/extension/command.ts +38 -36
- package/src/extension/dsh/acp-member.ts +21 -2
- package/src/extension/dsh/command.ts +21 -51
- package/src/extension/dsh/files.ts +1 -0
- package/src/extension/dsh/history.ts +9 -6
- package/src/extension/dsh/management.ts +27 -58
- package/src/extension/dsh/workspace.ts +88 -99
- package/src/extension/events.ts +13 -10
- package/src/extension/history.ts +2 -50
- package/src/extension/lifecycle.ts +37 -22
- package/src/extension/mcp-bridge.ts +412 -0
- package/src/extension/mcp-workers.ts +941 -0
- package/src/extension/pi-acp-member.ts +29 -5
- package/src/extension/plugin-runtime.ts +63 -0
- package/src/extension/setup-cli.ts +186 -2
- package/src/integrations/acp/agents.ts +70 -24
- package/src/integrations/acp/claude.ts +11 -4
- package/src/integrations/acp/connection.ts +63 -25
- package/src/integrations/acp/executable.ts +41 -0
- package/src/integrations/acp/harnesses/claude.ts +50 -0
- package/src/integrations/acp/harnesses/dsh.ts +40 -0
- package/src/integrations/acp/harnesses/generic.ts +52 -0
- package/src/integrations/acp/harnesses/pi.ts +35 -0
- package/src/integrations/acp/harnesses/presets.ts +22 -0
- package/src/integrations/acp/launch.ts +69 -47
- package/src/integrations/acp/mcp.ts +43 -0
- package/src/integrations/acp/model-selection.ts +68 -25
- package/src/integrations/acp/registry.ts +60 -0
- package/src/integrations/agent-resources.ts +70 -6
- package/src/integrations/dsh/mcp.ts +30 -0
- package/src/integrations/dsh/resources.ts +28 -13
- package/src/integrations/dsh/skills.ts +16 -6
- package/src/integrations/hosts/antigravity.ts +83 -0
- package/src/integrations/hosts/claude.ts +62 -0
- package/src/integrations/hosts/registry.ts +42 -0
- package/src/integrations/pi/mcp.ts +26 -0
- package/src/mcp.ts +14 -0
- package/src/model/acp.ts +113 -3
- package/src/model/agent.ts +18 -14
- package/src/model/plugin-host.ts +39 -0
- package/src/model/workspace-config.ts +14 -0
- package/src/model/workspace-mcp.ts +64 -0
- package/src/pbot.ts +69 -20
- package/src/plugin.ts +19 -0
- package/src/services/agents/acp-run.ts +35 -3
- package/src/services/agents/agent-service.ts +180 -160
- package/src/services/installation/setup-service.ts +17 -2
- package/src/services/workspace/workspace-config.ts +42 -6
- package/src/services/workspace/workspace-mcp.ts +242 -0
- package/src/services/workspace/workspace-skills.ts +78 -0
- package/src/storage/acp-files.ts +32 -3
- package/src/storage/acp-history.ts +18 -7
- package/src/storage/agent-files.ts +27 -41
- package/src/tools/history/contract.ts +17 -11
- package/src/tools/register.ts +4 -8
- package/src/ui/dsh/index.ts +8 -3
- package/src/ui/dsh/management.ts +40 -282
- package/src/ui/dsh/remote.ts +2 -2
- package/docs/adr/0001-claude-skill-discovery.md +0 -3
- package/docs/adr/0002-claude-native-collaboration.md +0 -3
- package/docs/agent-collaboration.md +0 -190
- package/docs/architecture-guidelines.md +0 -37
- package/docs/capability-design.md +0 -55
- package/docs/claude-code-design.md +0 -44
- package/docs/claude-code.md +0 -57
- package/docs/dsh.md +0 -337
- package/docs/file-storage.md +0 -97
- package/docs/history.md +0 -54
- package/docs/installation-design.md +0 -86
- package/docs/interaction-design.md +0 -21
- package/docs/model-context.md +0 -76
- package/docs/model-instruction-guidelines.md +0 -51
- package/docs/release.md +0 -108
- package/docs/technical-design.md +0 -163
- package/docs/workspace-configuration.md +0 -79
- package/lib/extension/claude-hooks.d.ts +0 -9
- package/lib/extension/claude-hooks.js +0 -78
- package/lib/extension/dsh/agent-events.d.ts +0 -24
- package/lib/extension/dsh/agent-events.js +0 -242
- package/lib/extension/dsh/agent-runtime.d.ts +0 -49
- package/lib/extension/dsh/agent-runtime.js +0 -351
- package/lib/integrations/dsh/dsh-agents.d.ts +0 -30
- package/lib/integrations/dsh/dsh-agents.js +0 -104
- package/lib/integrations/dsh/input.d.ts +0 -21
- package/lib/integrations/dsh/input.js +0 -62
- package/lib/integrations/dsh/notifications.d.ts +0 -8
- package/lib/integrations/dsh/notifications.js +0 -55
- package/lib/integrations/dsh/session.d.ts +0 -14
- package/lib/integrations/dsh/session.js +0 -60
- package/lib/integrations/team-context.d.ts +0 -18
- package/lib/integrations/team-context.js +0 -61
- package/lib/model/team.d.ts +0 -85
- package/lib/services/agents/agent-notices.d.ts +0 -13
- package/lib/services/agents/agent-notices.js +0 -25
- package/lib/services/agents/start-options.d.ts +0 -4
- package/lib/services/agents/start-options.js +0 -20
- package/lib/services/agents/team-service.d.ts +0 -168
- package/lib/services/agents/team-service.js +0 -345
- package/lib/storage/team-files.d.ts +0 -16
- package/lib/storage/team-files.js +0 -111
- package/lib/tools/agents/actions.d.ts +0 -62
- package/lib/tools/agents/actions.js +0 -62
- package/lib/tools/agents/contract.d.ts +0 -181
- package/lib/tools/agents/contract.js +0 -84
- package/lib/tools/agents/dsh-tool.d.ts +0 -5
- package/lib/tools/agents/dsh-tool.js +0 -34
- package/lib/tools/result.d.ts +0 -18
- package/lib/tools/result.js +0 -10
- package/lib/tools/teams/actions.d.ts +0 -23
- package/lib/tools/teams/actions.js +0 -40
- package/lib/tools/teams/contract.d.ts +0 -201
- package/lib/tools/teams/contract.js +0 -91
- package/lib/tools/teams/dsh-tool.d.ts +0 -8
- package/lib/tools/teams/dsh-tool.js +0 -39
- package/lib/ui/dsh/attachments.d.ts +0 -5
- package/lib/ui/dsh/attachments.js +0 -39
- package/resources/prompts/claude-coordinator.md +0 -1
- package/resources/prompts/native-coordinator.md +0 -1
- package/resources/prompts/team-member.md +0 -7
- package/src/extension/agent-events.ts +0 -210
- package/src/extension/agents-command.ts +0 -89
- package/src/extension/claude-hooks.ts +0 -74
- package/src/extension/dsh/agent-events.ts +0 -148
- package/src/extension/dsh/agent-runtime.ts +0 -252
- package/src/extension/subagent-entry.ts +0 -270
- package/src/extension/teams-command.ts +0 -67
- package/src/integrations/dsh/dsh-agents.ts +0 -97
- package/src/integrations/dsh/input.ts +0 -66
- package/src/integrations/dsh/notifications.ts +0 -46
- package/src/integrations/pi/agent-context.ts +0 -18
- package/src/integrations/pi/agent-input.ts +0 -19
- package/src/integrations/pi/pi-agents.ts +0 -84
- package/src/integrations/pi/team-context.ts +0 -26
- package/src/integrations/team-context.ts +0 -64
- package/src/model/team.ts +0 -29
- package/src/services/agents/agent-notices.ts +0 -28
- package/src/services/agents/start-options.ts +0 -19
- package/src/services/agents/team-service.ts +0 -275
- package/src/storage/team-files.ts +0 -93
- package/src/tools/agents/actions.ts +0 -57
- package/src/tools/agents/contract.ts +0 -101
- package/src/tools/agents/dsh-tool.ts +0 -37
- package/src/tools/agents/tool.ts +0 -20
- package/src/tools/teams/actions.ts +0 -34
- package/src/tools/teams/contract.ts +0 -109
- package/src/tools/teams/dsh-tool.ts +0 -45
- package/src/tools/teams/tool.ts +0 -29
- package/src/ui/agent-display.ts +0 -14
- package/src/ui/dsh/attachments.ts +0 -42
- package/src/ui/pi/menu.ts +0 -37
- package/src/ui/pi/reader.ts +0 -46
- /package/lib/{model/team.js → antigravity-plugin/lib/model/plugin-host.js} +0 -0
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { AgentFiles } from "../../storage/agent-files.js";
|
|
2
|
-
import {
|
|
3
|
-
import type { TeamAgent, TeamInput } from "../../model/team.js";
|
|
4
|
-
import type { AgentOwner, AgentOptions, AgentStartOptions, AgentDescriptor, AgentCycle, AgentCompletion, AgentSessionReference, NativeAgentHost } from "../../model/agent.js";
|
|
2
|
+
import type { AgentOwner, AgentOptions, AgentPendingRequest, AgentResponseInput, AgentStartOptions, AgentDescriptor, AgentCycle, AgentSessionReference, AgentView } from "../../model/agent.js";
|
|
5
3
|
import type { AcpBackend, AcpSessionReference } from "../../model/acp.js";
|
|
6
4
|
export interface AgentHost {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
prepare
|
|
10
|
-
validateOptions?(options: AgentOptions, backend?: AcpBackend): void;
|
|
5
|
+
available(backend: AcpBackend): void;
|
|
6
|
+
filterOptions?(backend: AcpBackend, options: AgentOptions): AgentOptions;
|
|
7
|
+
prepare(backend: AcpBackend, options: AgentOptions): AcpSessionReference;
|
|
11
8
|
alive(id: string): boolean;
|
|
12
9
|
validateSession(value: AgentDescriptor, reference: AgentSessionReference): void | Promise<void>;
|
|
13
10
|
launch(value: AgentDescriptor, directory: string, generation: string, reference: AgentSessionReference, resume: boolean, signal: AbortSignal): void | Promise<void>;
|
|
14
11
|
release(id: string, generation: string): void | Promise<void>;
|
|
15
12
|
report(value: AgentDescriptor, reference: AgentSessionReference, leaf: string): string | Promise<string>;
|
|
16
13
|
}
|
|
14
|
+
/** Host-neutral lifecycle manager for cross-harness ACP workers. */
|
|
17
15
|
export declare class AgentService {
|
|
18
16
|
#private;
|
|
19
17
|
readonly root: string;
|
|
20
18
|
readonly host: AgentHost;
|
|
21
19
|
readonly files: AgentFiles;
|
|
22
|
-
readonly teamFiles: TeamFiles;
|
|
23
20
|
constructor(root: string, directory: string, host: AgentHost);
|
|
24
21
|
private alive;
|
|
25
22
|
private check;
|
|
26
23
|
private owned;
|
|
27
24
|
private get;
|
|
28
25
|
private records;
|
|
29
|
-
list(owner: AgentOwner):
|
|
26
|
+
list(owner: AgentOwner): AgentView[];
|
|
30
27
|
private view;
|
|
28
|
+
/** Answer a pending permission or elicitation request forwarded by the worker. */
|
|
29
|
+
respond(id: string, input: AgentResponseInput, owner: AgentOwner): AgentView;
|
|
31
30
|
start(input: AgentStartOptions, owner: AgentOwner): Promise<{
|
|
32
31
|
requestId?: string;
|
|
33
32
|
messageStatus?: "queued";
|
|
@@ -35,18 +34,19 @@ export declare class AgentService {
|
|
|
35
34
|
generation: string;
|
|
36
35
|
state: import("../../model/agent.js").AgentStatus["state"];
|
|
37
36
|
activity: string;
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
alive: boolean;
|
|
38
|
+
backend: AcpBackend;
|
|
39
|
+
transport: "acp";
|
|
40
40
|
selection?: import("../../model/acp.js").AcpModelSelection;
|
|
41
|
-
capabilities
|
|
41
|
+
capabilities: {
|
|
42
42
|
steer: boolean;
|
|
43
43
|
resume: boolean;
|
|
44
|
-
team: boolean;
|
|
45
44
|
transcript: boolean;
|
|
46
45
|
};
|
|
47
46
|
cycle?: AgentCycle;
|
|
48
47
|
error?: string;
|
|
49
48
|
owned: boolean;
|
|
49
|
+
pendingRequests?: AgentPendingRequest[];
|
|
50
50
|
agentId: string;
|
|
51
51
|
release: string;
|
|
52
52
|
workspace: string;
|
|
@@ -55,7 +55,6 @@ export declare class AgentService {
|
|
|
55
55
|
parentLeaf: string | null;
|
|
56
56
|
createdAt: number;
|
|
57
57
|
options: AgentOptions;
|
|
58
|
-
alive: boolean;
|
|
59
58
|
}>;
|
|
60
59
|
private launch;
|
|
61
60
|
send(id: string, text: string, delivery: "steer" | "followUp", owner: AgentOwner, attachments?: readonly string[]): {
|
|
@@ -65,48 +64,19 @@ export declare class AgentService {
|
|
|
65
64
|
generation: string;
|
|
66
65
|
state: import("../../model/agent.js").AgentStatus["state"];
|
|
67
66
|
activity: string;
|
|
68
|
-
backend?: AcpBackend;
|
|
69
|
-
transport?: "native" | "acp";
|
|
70
|
-
selection?: import("../../model/acp.js").AcpModelSelection;
|
|
71
|
-
capabilities?: {
|
|
72
|
-
steer: boolean;
|
|
73
|
-
resume: boolean;
|
|
74
|
-
team: boolean;
|
|
75
|
-
transcript: boolean;
|
|
76
|
-
};
|
|
77
|
-
cycle?: AgentCycle;
|
|
78
|
-
error?: string;
|
|
79
|
-
owned: boolean;
|
|
80
|
-
agentId: string;
|
|
81
|
-
release: string;
|
|
82
|
-
workspace: string;
|
|
83
|
-
cwd: string;
|
|
84
|
-
parentSessionId: string;
|
|
85
|
-
parentLeaf: string | null;
|
|
86
|
-
createdAt: number;
|
|
87
|
-
options: AgentOptions;
|
|
88
67
|
alive: boolean;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
enqueueTeam(input: TeamInput, owner: AgentOwner): {
|
|
92
|
-
requestId: string;
|
|
93
|
-
messageStatus: "queued";
|
|
94
|
-
name: string;
|
|
95
|
-
generation: string;
|
|
96
|
-
state: import("../../model/agent.js").AgentStatus["state"];
|
|
97
|
-
activity: string;
|
|
98
|
-
backend?: AcpBackend;
|
|
99
|
-
transport?: "native" | "acp";
|
|
68
|
+
backend: AcpBackend;
|
|
69
|
+
transport: "acp";
|
|
100
70
|
selection?: import("../../model/acp.js").AcpModelSelection;
|
|
101
|
-
capabilities
|
|
71
|
+
capabilities: {
|
|
102
72
|
steer: boolean;
|
|
103
73
|
resume: boolean;
|
|
104
|
-
team: boolean;
|
|
105
74
|
transcript: boolean;
|
|
106
75
|
};
|
|
107
76
|
cycle?: AgentCycle;
|
|
108
77
|
error?: string;
|
|
109
78
|
owned: boolean;
|
|
79
|
+
pendingRequests?: AgentPendingRequest[];
|
|
110
80
|
agentId: string;
|
|
111
81
|
release: string;
|
|
112
82
|
workspace: string;
|
|
@@ -115,12 +85,11 @@ export declare class AgentService {
|
|
|
115
85
|
parentLeaf: string | null;
|
|
116
86
|
createdAt: number;
|
|
117
87
|
options: AgentOptions;
|
|
118
|
-
alive: boolean;
|
|
119
88
|
};
|
|
120
|
-
rename(id: string, name: string, owner: AgentOwner):
|
|
121
|
-
stop(id: string, owner: AgentOwner):
|
|
89
|
+
rename(id: string, name: string, owner: AgentOwner): AgentView;
|
|
90
|
+
stop(id: string, owner: AgentOwner): AgentView;
|
|
122
91
|
private requestStop;
|
|
123
|
-
enter(id: string, owner: AgentOwner): Promise<
|
|
92
|
+
enter(id: string, owner: AgentOwner): Promise<AgentView>;
|
|
124
93
|
resume(id: string, text: string, owner: AgentOwner): Promise<{
|
|
125
94
|
requestId?: string;
|
|
126
95
|
messageStatus?: "queued";
|
|
@@ -128,18 +97,19 @@ export declare class AgentService {
|
|
|
128
97
|
generation: string;
|
|
129
98
|
state: import("../../model/agent.js").AgentStatus["state"];
|
|
130
99
|
activity: string;
|
|
131
|
-
|
|
132
|
-
|
|
100
|
+
alive: boolean;
|
|
101
|
+
backend: AcpBackend;
|
|
102
|
+
transport: "acp";
|
|
133
103
|
selection?: import("../../model/acp.js").AcpModelSelection;
|
|
134
|
-
capabilities
|
|
104
|
+
capabilities: {
|
|
135
105
|
steer: boolean;
|
|
136
106
|
resume: boolean;
|
|
137
|
-
team: boolean;
|
|
138
107
|
transcript: boolean;
|
|
139
108
|
};
|
|
140
109
|
cycle?: AgentCycle;
|
|
141
110
|
error?: string;
|
|
142
111
|
owned: boolean;
|
|
112
|
+
pendingRequests?: AgentPendingRequest[];
|
|
143
113
|
agentId: string;
|
|
144
114
|
release: string;
|
|
145
115
|
workspace: string;
|
|
@@ -148,7 +118,6 @@ export declare class AgentService {
|
|
|
148
118
|
parentLeaf: string | null;
|
|
149
119
|
createdAt: number;
|
|
150
120
|
options: AgentOptions;
|
|
151
|
-
alive: boolean;
|
|
152
121
|
}>;
|
|
153
122
|
private restart;
|
|
154
123
|
cycles(id: string, owner: AgentOwner): AgentCycle[];
|
|
@@ -158,17 +127,18 @@ export declare class AgentService {
|
|
|
158
127
|
generation: string;
|
|
159
128
|
state: import("../../model/agent.js").AgentStatus["state"];
|
|
160
129
|
activity: string;
|
|
161
|
-
|
|
162
|
-
|
|
130
|
+
alive: boolean;
|
|
131
|
+
backend: AcpBackend;
|
|
132
|
+
transport: "acp";
|
|
163
133
|
selection?: import("../../model/acp.js").AcpModelSelection;
|
|
164
|
-
capabilities
|
|
134
|
+
capabilities: {
|
|
165
135
|
steer: boolean;
|
|
166
136
|
resume: boolean;
|
|
167
|
-
team: boolean;
|
|
168
137
|
transcript: boolean;
|
|
169
138
|
};
|
|
170
139
|
error?: string;
|
|
171
140
|
owned: boolean;
|
|
141
|
+
pendingRequests?: AgentPendingRequest[];
|
|
172
142
|
agentId: string;
|
|
173
143
|
release: string;
|
|
174
144
|
workspace: string;
|
|
@@ -177,7 +147,6 @@ export declare class AgentService {
|
|
|
177
147
|
parentLeaf: string | null;
|
|
178
148
|
createdAt: number;
|
|
179
149
|
options: AgentOptions;
|
|
180
|
-
alive: boolean;
|
|
181
150
|
};
|
|
182
151
|
read(id: string, owner: AgentOwner, cycleId?: string, offset?: number, limit?: number): Promise<{
|
|
183
152
|
cycles: {
|
|
@@ -192,17 +161,18 @@ export declare class AgentService {
|
|
|
192
161
|
generation: string;
|
|
193
162
|
state: import("../../model/agent.js").AgentStatus["state"];
|
|
194
163
|
activity: string;
|
|
195
|
-
|
|
196
|
-
|
|
164
|
+
alive: boolean;
|
|
165
|
+
backend: AcpBackend;
|
|
166
|
+
transport: "acp";
|
|
197
167
|
selection?: import("../../model/acp.js").AcpModelSelection;
|
|
198
|
-
capabilities
|
|
168
|
+
capabilities: {
|
|
199
169
|
steer: boolean;
|
|
200
170
|
resume: boolean;
|
|
201
|
-
team: boolean;
|
|
202
171
|
transcript: boolean;
|
|
203
172
|
};
|
|
204
173
|
error?: string;
|
|
205
174
|
owned: boolean;
|
|
175
|
+
pendingRequests?: AgentPendingRequest[];
|
|
206
176
|
agentId: string;
|
|
207
177
|
release: string;
|
|
208
178
|
workspace: string;
|
|
@@ -211,64 +181,9 @@ export declare class AgentService {
|
|
|
211
181
|
parentLeaf: string | null;
|
|
212
182
|
createdAt: number;
|
|
213
183
|
options: AgentOptions;
|
|
214
|
-
alive: boolean;
|
|
215
184
|
}>;
|
|
216
|
-
completions(owner: AgentOwner): Promise<AgentCompletion[]>;
|
|
217
185
|
private report;
|
|
218
|
-
recordPage(id: string, owner: AgentOwner, options?: {
|
|
219
|
-
seq?: number;
|
|
220
|
-
offset?: number;
|
|
221
|
-
limit?: number;
|
|
222
|
-
textOffset?: number;
|
|
223
|
-
textLimit?: number;
|
|
224
|
-
format?: string;
|
|
225
|
-
}): Promise<{
|
|
226
|
-
kind: string;
|
|
227
|
-
agent: TeamAgent;
|
|
228
|
-
cursor: string;
|
|
229
|
-
seq: number;
|
|
230
|
-
offset: number;
|
|
231
|
-
text: string;
|
|
232
|
-
totalLength: number;
|
|
233
|
-
nextOffset: number | null;
|
|
234
|
-
total?: never;
|
|
235
|
-
records?: never;
|
|
236
|
-
} | {
|
|
237
|
-
kind: string;
|
|
238
|
-
agent: TeamAgent;
|
|
239
|
-
cursor: string;
|
|
240
|
-
total: number;
|
|
241
|
-
offset: number;
|
|
242
|
-
nextOffset: number | null;
|
|
243
|
-
records: {
|
|
244
|
-
preview: string;
|
|
245
|
-
seq: number;
|
|
246
|
-
type: string;
|
|
247
|
-
time: number;
|
|
248
|
-
requestId?: string;
|
|
249
|
-
cycleId?: string;
|
|
250
|
-
state: string;
|
|
251
|
-
}[];
|
|
252
|
-
seq?: never;
|
|
253
|
-
text?: never;
|
|
254
|
-
totalLength?: never;
|
|
255
|
-
}>;
|
|
256
|
-
pendingPermissions(owner: AgentOwner): {
|
|
257
|
-
agentId: string;
|
|
258
|
-
name: string;
|
|
259
|
-
generation: string;
|
|
260
|
-
requestId: string;
|
|
261
|
-
description: string;
|
|
262
|
-
options: {
|
|
263
|
-
optionId: string;
|
|
264
|
-
name: string;
|
|
265
|
-
kind: string;
|
|
266
|
-
}[];
|
|
267
|
-
}[];
|
|
268
|
-
answerPermission(id: string, requestId: string, optionId: string | null, owner: AgentOwner): void;
|
|
269
186
|
private release;
|
|
270
|
-
/** Called by the parent scanner; stop remains nonblocking to the model. */
|
|
271
|
-
refresh(owner: AgentOwner): Promise<void>;
|
|
272
187
|
close(owner?: AgentOwner, preserve?: boolean): Promise<void>;
|
|
273
188
|
private dispose;
|
|
274
189
|
}
|