@linkshell/host 0.4.32 → 0.4.34
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 +19 -5
- package/dist/host/src/drivers/acp/antigravity.js +636 -107
- package/dist/host/src/drivers/acp/antigravity.js.map +1 -1
- package/dist/host/src/hub.js +7 -1
- package/dist/host/src/hub.js.map +1 -1
- package/dist/host/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AgentAuth, type ContentBlock } from "@linkshell/wire";
|
|
1
|
+
import { type AgentAuth, type ContentBlock, type GoalChange, type SessionGoal } from "@linkshell/wire";
|
|
2
2
|
import type { AttachContext, DiscoveredSession, HistoryItem } from "../types.js";
|
|
3
3
|
import { AcpDriver, type AcpAgentSpec } from "./driver.js";
|
|
4
4
|
/**
|
|
@@ -40,21 +40,29 @@ export declare function extractAntigravityAuthUrl(line: string): string | undefi
|
|
|
40
40
|
export declare function antigravityAuthStatus(env: NodeJS.ProcessEnv): Promise<AgentAuth>;
|
|
41
41
|
export declare function antigravitySpec(): AcpAgentSpec;
|
|
42
42
|
export declare function cleanAntigravityUserInput(content: string): string;
|
|
43
|
+
export declare function cleanAntigravityAgentContent(content: string): {
|
|
44
|
+
text: string;
|
|
45
|
+
goalComplete: boolean;
|
|
46
|
+
goalCancelled: boolean;
|
|
47
|
+
};
|
|
43
48
|
/**
|
|
44
|
-
* Converts an Antigravity Desktop `
|
|
45
|
-
* `HistoryItem[]` list
|
|
49
|
+
* Converts an Antigravity Desktop `transcript_full.jsonl` (or `transcript.jsonl`)
|
|
50
|
+
* file into LinkShell's `HistoryItem[]` list, tracking Goal Mode (`ls_goal`),
|
|
51
|
+
* model changes (`<USER_SETTINGS_CHANGE>`), and uploaded media.
|
|
46
52
|
*/
|
|
47
53
|
export declare function parseAntigravityTranscript(transcriptPath: string, fromLine?: number): {
|
|
48
54
|
items: HistoryItem[];
|
|
49
55
|
nextLine: number;
|
|
56
|
+
lastModelLabel?: string;
|
|
57
|
+
goal?: SessionGoal | null;
|
|
50
58
|
};
|
|
51
59
|
/**
|
|
52
60
|
* Specialized driver for Google Antigravity:
|
|
53
61
|
* - Drives `agy_acp_server.par` / `agy-acp` over ACP when installed.
|
|
54
62
|
* - Also discovers and interacts with Antigravity Desktop (`/Applications/Antigravity.app`,
|
|
55
|
-
* `~/.gemini/antigravity/conversation_summaries.db`, `brain/<id>/.system_generated/logs/
|
|
63
|
+
* `~/.gemini/antigravity/conversation_summaries.db`, `brain/<id>/.system_generated/logs/transcript_full.jsonl`,
|
|
56
64
|
* and its local `language_server` Connect-RPC service) so users with only the Desktop app
|
|
57
|
-
* get full session visibility, history,
|
|
65
|
+
* get full session visibility, history, Goal Mode, image messaging, and model selection.
|
|
58
66
|
*/
|
|
59
67
|
export declare class AntigravityDriver extends AcpDriver {
|
|
60
68
|
private desktopMode;
|
|
@@ -62,6 +70,7 @@ export declare class AntigravityDriver extends AcpDriver {
|
|
|
62
70
|
private readonly desktopSessionStates;
|
|
63
71
|
private readonly desktopWatchers;
|
|
64
72
|
private desktopModelsCache?;
|
|
73
|
+
private desktopDefaultModel?;
|
|
65
74
|
constructor(options: {
|
|
66
75
|
env?: NodeJS.ProcessEnv;
|
|
67
76
|
hostVersion: string;
|
|
@@ -72,10 +81,14 @@ export declare class AntigravityDriver extends AcpDriver {
|
|
|
72
81
|
protected boot(): Promise<void>;
|
|
73
82
|
stop(): Promise<void>;
|
|
74
83
|
private transcriptPathFor;
|
|
84
|
+
private desktopAliasesFor;
|
|
85
|
+
private saveDesktopAliases;
|
|
75
86
|
private isConversationRunningInDesktop;
|
|
76
87
|
private listDesktopSessions;
|
|
77
88
|
listSessions(limit: number): Promise<DiscoveredSession[]>;
|
|
78
89
|
private loadDesktopModels;
|
|
90
|
+
private resolveSessionModel;
|
|
91
|
+
private resolvePlanModelEnum;
|
|
79
92
|
private emitDesktopConfig;
|
|
80
93
|
private startWatchingDesktopTranscript;
|
|
81
94
|
attach(nativeId: string, context: AttachContext): Promise<HistoryItem[]>;
|
|
@@ -84,6 +97,7 @@ export declare class AntigravityDriver extends AcpDriver {
|
|
|
84
97
|
cwd: string;
|
|
85
98
|
model?: string;
|
|
86
99
|
}): Promise<DiscoveredSession>;
|
|
100
|
+
goal(nativeId: string, change: GoalChange): Promise<SessionGoal | null>;
|
|
87
101
|
prompt(nativeId: string, content: ContentBlock[], clientMessageId: string, context?: string): Promise<"started" | "steered" | "queued">;
|
|
88
102
|
cancel(nativeId: string): Promise<void>;
|
|
89
103
|
setConfig(nativeId: string, optionId: string, value: string): Promise<void>;
|