linkshell-cli 0.5.33 → 0.5.35
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/cli/src/runtime/acp/acp-client.d.ts +38 -0
- package/dist/cli/src/runtime/acp/acp-client.js +134 -20
- package/dist/cli/src/runtime/acp/acp-client.js.map +1 -1
- package/dist/cli/src/runtime/acp/agent-process-discovery.d.ts +48 -0
- package/dist/cli/src/runtime/acp/agent-process-discovery.js +267 -0
- package/dist/cli/src/runtime/acp/agent-process-discovery.js.map +1 -0
- package/dist/cli/src/runtime/acp/agent-workspace.d.ts +33 -0
- package/dist/cli/src/runtime/acp/agent-workspace.js +873 -92
- package/dist/cli/src/runtime/acp/agent-workspace.js.map +1 -1
- package/dist/cli/src/runtime/acp/claude-sdk-client.d.ts +6 -0
- package/dist/cli/src/runtime/acp/claude-sdk-client.js +51 -29
- package/dist/cli/src/runtime/acp/claude-sdk-client.js.map +1 -1
- package/dist/cli/src/runtime/acp/provider-resolver.d.ts +3 -1
- package/dist/cli/src/runtime/acp/provider-resolver.js +13 -4
- package/dist/cli/src/runtime/acp/provider-resolver.js.map +1 -1
- package/dist/cli/src/runtime/bridge-session.d.ts +1 -0
- package/dist/cli/src/runtime/bridge-session.js +14 -3
- package/dist/cli/src/runtime/bridge-session.js.map +1 -1
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/shared-protocol/src/index.d.ts +1161 -939
- package/dist/shared-protocol/src/index.js +43 -1
- package/dist/shared-protocol/src/index.js.map +1 -1
- package/package.json +3 -3
- package/src/runtime/acp/acp-client.ts +153 -22
- package/src/runtime/acp/agent-process-discovery.ts +301 -0
- package/src/runtime/acp/agent-workspace.ts +887 -98
- package/src/runtime/acp/claude-sdk-client.ts +51 -22
- package/src/runtime/acp/provider-resolver.ts +18 -3
- package/src/runtime/bridge-session.ts +12 -3
- package/web/assets/{FileBrowser-B1vcZ0wW.js → FileBrowser-Dn_avjeH.js} +1 -1
- package/web/assets/{PortPreview-CugEjE0m.js → PortPreview-KYkYV_-p.js} +1 -1
- package/web/assets/{TerminalPanel-DgSFo-6s.js → TerminalPanel-BjxX8Jui.js} +1 -1
- package/web/assets/{UsageDashboard-DTRkZRsh.js → UsageDashboard-cYiZs8c8.js} +1 -1
- package/web/assets/index-6vyVf_xQ.js +35 -0
- package/web/assets/index-Ct5fhCTS.css +33 -0
- package/web/index.html +2 -2
- package/web/assets/index-ByEwVA14.js +0 -35
- package/web/assets/index-Vtyd7s5T.css +0 -33
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type Envelope } from "@linkshell/protocol";
|
|
2
2
|
import type { AgentProvider } from "./provider-resolver.js";
|
|
3
|
+
import { type AgentProcessSnapshot } from "./agent-process-discovery.js";
|
|
3
4
|
export declare function makeAgentV2RemoteConversationId(provider: AgentProvider, agentSessionId: string): string;
|
|
4
5
|
export declare class AgentWorkspaceProxy {
|
|
5
6
|
private readonly input;
|
|
6
7
|
private clients;
|
|
8
|
+
private clientStartPromises;
|
|
7
9
|
private agentProtocols;
|
|
8
10
|
private providerCapabilities;
|
|
9
11
|
private providerErrors;
|
|
@@ -26,6 +28,12 @@ export declare class AgentWorkspaceProxy {
|
|
|
26
28
|
private structuredInputWaiters;
|
|
27
29
|
private itemConversationIds;
|
|
28
30
|
private toolConversationIds;
|
|
31
|
+
private processPollTimer;
|
|
32
|
+
private processPollInFlight;
|
|
33
|
+
private processMissCounts;
|
|
34
|
+
private lastDiscoveredProviders;
|
|
35
|
+
private static readonly PROCESS_POLL_MS;
|
|
36
|
+
private static readonly PROCESS_MISS_LIMIT;
|
|
29
37
|
constructor(input: {
|
|
30
38
|
sessionId: string;
|
|
31
39
|
cwd: string;
|
|
@@ -33,6 +41,7 @@ export declare class AgentWorkspaceProxy {
|
|
|
33
41
|
command?: string;
|
|
34
42
|
send: (envelope: Envelope) => void;
|
|
35
43
|
verbose?: boolean;
|
|
44
|
+
discoverProcesses?: () => AgentProcessSnapshot[];
|
|
36
45
|
});
|
|
37
46
|
handleEnvelope(envelope: Envelope): Promise<void>;
|
|
38
47
|
stop(): void;
|
|
@@ -41,7 +50,9 @@ export declare class AgentWorkspaceProxy {
|
|
|
41
50
|
private fsSyncTimer;
|
|
42
51
|
private fsSyncRunning;
|
|
43
52
|
private lastPushedConversationSignature;
|
|
53
|
+
private lastHydrateAt;
|
|
44
54
|
private static readonly FS_SYNC_THROTTLE_MS;
|
|
55
|
+
private static readonly EXTERNAL_HYDRATE_THROTTLE_MS;
|
|
45
56
|
private startSessionWatchers;
|
|
46
57
|
private scheduleSessionSync;
|
|
47
58
|
private syncAndPushSessions;
|
|
@@ -57,8 +68,25 @@ export declare class AgentWorkspaceProxy {
|
|
|
57
68
|
private protocolForProvider;
|
|
58
69
|
private defaultModelForProvider;
|
|
59
70
|
private initialize;
|
|
71
|
+
private startProcessDiscovery;
|
|
72
|
+
private pollDiscoveredProcesses;
|
|
73
|
+
/** Open Island rule: a visible agent session is a live process. Two missed
|
|
74
|
+
* polls (~6s) drop the running signal so a killed CLI does not linger. */
|
|
75
|
+
reconcileDiscoveredProcesses(): void;
|
|
76
|
+
private applyDiscoveredProcesses;
|
|
60
77
|
private ensureProviderClient;
|
|
78
|
+
private startProviderClient;
|
|
79
|
+
/** Kick off runtime capability discovery WITHOUT blocking the caller.
|
|
80
|
+
* refreshProviderCapabilities spawns a warm provider subprocess (measured
|
|
81
|
+
* 858ms warm, multi-second cold for Claude), and nothing on the open/prompt
|
|
82
|
+
* path needs it — sendCapabilities and prompt-time model resolution both
|
|
83
|
+
* degrade gracefully to static fallbacks until providerCapabilities is
|
|
84
|
+
* populated. When discovery lands we push a fresh agent.v2.capabilities so
|
|
85
|
+
* clients pick up the real model/command list. */
|
|
86
|
+
private refreshProviderCapabilitiesInBackground;
|
|
61
87
|
private refreshProviderCapabilities;
|
|
88
|
+
private listProviderMcpServers;
|
|
89
|
+
private loadProviderSkillCommands;
|
|
62
90
|
private syncProviderSessions;
|
|
63
91
|
private hydrateConversationFromProvider;
|
|
64
92
|
private sendCapabilities;
|
|
@@ -70,10 +98,14 @@ export declare class AgentWorkspaceProxy {
|
|
|
70
98
|
private executeCommand;
|
|
71
99
|
private executeNativeCommand;
|
|
72
100
|
private handleRequest;
|
|
101
|
+
private startMcpLogin;
|
|
102
|
+
private handleMcpOAuthCompleted;
|
|
73
103
|
private mergeMcpServers;
|
|
74
104
|
private handleMcpStartupStatus;
|
|
75
105
|
private handleNotification;
|
|
76
106
|
private handleAgentMessageDelta;
|
|
107
|
+
private handleReasoningDelta;
|
|
108
|
+
private applyStreamingTextDelta;
|
|
77
109
|
private handlePlanUpdated;
|
|
78
110
|
private handlePlanDelta;
|
|
79
111
|
private handleItemStarted;
|
|
@@ -103,6 +135,7 @@ export declare class AgentWorkspaceProxy {
|
|
|
103
135
|
private findTool;
|
|
104
136
|
private adoptConversationId;
|
|
105
137
|
private emitItem;
|
|
138
|
+
private forgetConversationLocally;
|
|
106
139
|
private emitConversation;
|
|
107
140
|
private applyConversationUsage;
|
|
108
141
|
private emitStatus;
|