@linkshell/host 0.4.30 → 0.4.31
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/host/src/drivers/acp/antigravity.d.ts +49 -4
- package/dist/host/src/drivers/acp/antigravity.js +690 -12
- package/dist/host/src/drivers/acp/antigravity.js.map +1 -1
- package/dist/host/src/drivers/acp/connection.js +4 -4
- package/dist/host/src/drivers/acp/connection.js.map +1 -1
- package/dist/host/src/drivers/codex/desktop-ipc.d.ts +3 -0
- package/dist/host/src/drivers/codex/desktop-ipc.js +10 -1
- package/dist/host/src/drivers/codex/desktop-ipc.js.map +1 -1
- package/dist/host/src/drivers/codex/driver.js +19 -7
- package/dist/host/src/drivers/codex/driver.js.map +1 -1
- package/dist/host/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AgentAuth, type ContentBlock } from "@linkshell/wire";
|
|
2
|
+
import type { AttachContext, DiscoveredSession, HistoryItem } from "../types.js";
|
|
2
3
|
import { AcpDriver, type AcpAgentSpec } from "./driver.js";
|
|
3
4
|
/**
|
|
4
5
|
* Official Google Antigravity ACP distribution metadata (from the ACP Registry:
|
|
@@ -18,26 +19,70 @@ export interface ResolvedAntigravityLaunch {
|
|
|
18
19
|
env: Record<string, string>;
|
|
19
20
|
version: string;
|
|
20
21
|
}
|
|
22
|
+
export interface ResolvedAntigravityDesktop {
|
|
23
|
+
dataDir: string;
|
|
24
|
+
languageServerPath?: string;
|
|
25
|
+
logPath?: string;
|
|
26
|
+
version: string;
|
|
27
|
+
}
|
|
21
28
|
/**
|
|
22
29
|
* Resolves the Antigravity ACP server binary, sibling localharness binary,
|
|
23
30
|
* required environment variables (`AGY_ACP_FORCE_FILE_STORAGE=1`, `PYTHONUNBUFFERED=1`),
|
|
24
31
|
* and platform-specific arguments (`--uid=` on Linux for `.par`).
|
|
25
32
|
*/
|
|
26
33
|
export declare function resolveAntigravityLaunch(env?: NodeJS.ProcessEnv): ResolvedAntigravityLaunch | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Resolves an installed Antigravity Desktop app (`/Applications/Antigravity.app`)
|
|
36
|
+
* and its conversation store (`~/.gemini/antigravity`).
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveAntigravityDesktop(env?: NodeJS.ProcessEnv): ResolvedAntigravityDesktop | undefined;
|
|
27
39
|
export declare function extractAntigravityAuthUrl(line: string): string | undefined;
|
|
28
40
|
export declare function antigravityAuthStatus(env: NodeJS.ProcessEnv): Promise<AgentAuth>;
|
|
29
41
|
export declare function antigravitySpec(): AcpAgentSpec;
|
|
42
|
+
export declare function cleanAntigravityUserInput(content: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* Converts an Antigravity Desktop `transcript.jsonl` file into LinkShell's
|
|
45
|
+
* `HistoryItem[]` list.
|
|
46
|
+
*/
|
|
47
|
+
export declare function parseAntigravityTranscript(transcriptPath: string, fromLine?: number): {
|
|
48
|
+
items: HistoryItem[];
|
|
49
|
+
nextLine: number;
|
|
50
|
+
};
|
|
30
51
|
/**
|
|
31
|
-
* Specialized
|
|
32
|
-
*
|
|
33
|
-
*
|
|
52
|
+
* Specialized driver for Google Antigravity:
|
|
53
|
+
* - Drives `agy_acp_server.par` / `agy-acp` over ACP when installed.
|
|
54
|
+
* - Also discovers and interacts with Antigravity Desktop (`/Applications/Antigravity.app`,
|
|
55
|
+
* `~/.gemini/antigravity/conversation_summaries.db`, `brain/<id>/.system_generated/logs/transcript.jsonl`,
|
|
56
|
+
* and its local `language_server` Connect-RPC service) so users with only the Desktop app
|
|
57
|
+
* get full session visibility, history, model selection, and messaging.
|
|
34
58
|
*/
|
|
35
59
|
export declare class AntigravityDriver extends AcpDriver {
|
|
60
|
+
private desktopMode;
|
|
61
|
+
private readonly desktopWatchers;
|
|
62
|
+
private desktopModelsCache?;
|
|
36
63
|
constructor(options: {
|
|
37
64
|
env?: NodeJS.ProcessEnv;
|
|
38
65
|
hostVersion: string;
|
|
39
66
|
});
|
|
40
67
|
protected get env(): NodeJS.ProcessEnv;
|
|
68
|
+
authStatus(): Promise<AgentAuth>;
|
|
41
69
|
protected detectVersion(): Promise<string | undefined>;
|
|
42
70
|
protected boot(): Promise<void>;
|
|
71
|
+
stop(): Promise<void>;
|
|
72
|
+
private transcriptPathFor;
|
|
73
|
+
private isConversationRunningInDesktop;
|
|
74
|
+
private listDesktopSessions;
|
|
75
|
+
listSessions(limit: number): Promise<DiscoveredSession[]>;
|
|
76
|
+
private loadDesktopModels;
|
|
77
|
+
private emitDesktopConfig;
|
|
78
|
+
private startWatchingDesktopTranscript;
|
|
79
|
+
attach(nativeId: string, context: AttachContext): Promise<HistoryItem[]>;
|
|
80
|
+
detach(nativeId: string): Promise<void>;
|
|
81
|
+
createSession(options: {
|
|
82
|
+
cwd: string;
|
|
83
|
+
model?: string;
|
|
84
|
+
}): Promise<DiscoveredSession>;
|
|
85
|
+
prompt(nativeId: string, content: ContentBlock[], clientMessageId: string, context?: string): Promise<"started" | "steered" | "queued">;
|
|
86
|
+
cancel(nativeId: string): Promise<void>;
|
|
87
|
+
setConfig(nativeId: string, optionId: string, value: string): Promise<void>;
|
|
43
88
|
}
|