@estebanforge/pi-antigravity-bridge 1.7.12 → 1.8.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/CHANGELOG.md +11 -0
- package/extensions/index.ts +52 -55
- package/package.json +2 -1
- package/src/ask-tool.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.8.0] - 2026-10-12
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- The `/agy` settings picker now renders on the shared `@estebanforge/pi-tui-dialogs` framed dialog kit instead of the bare pi-tui `SettingsList`: bordered rows, a help panel per setting, type-to-search, and the config file path under the title. Same eleven rows, same stage-then-save-on-close behavior.
|
|
11
|
+
|
|
12
|
+
## [1.7.13] - 2026-10-12
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- The `AskAntigravity` tool's default `timeoutMinutes` is now 30 (was 10). Delegations carry feedback, research, review, and analysis work that legitimately runs long; a short default kills the run mid-task and the caller re-pays the whole prompt at a higher timeout. Callers still override per call, lower or higher. The provider's separate `turnTimeoutMin` cap is unchanged.
|
|
17
|
+
|
|
7
18
|
## [1.7.12] - 2026-10-12
|
|
8
19
|
|
|
9
20
|
### Fixed
|
package/extensions/index.ts
CHANGED
|
@@ -26,14 +26,9 @@ import {
|
|
|
26
26
|
createBashToolDefinition,
|
|
27
27
|
createEditToolDefinition,
|
|
28
28
|
createWriteToolDefinition,
|
|
29
|
-
getSettingsListTheme,
|
|
30
29
|
} from "@earendil-works/pi-coding-agent";
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
SettingsList,
|
|
34
|
-
Text,
|
|
35
|
-
type SettingItem,
|
|
36
|
-
} from "@earendil-works/pi-tui";
|
|
30
|
+
import { Text } from "@earendil-works/pi-tui";
|
|
31
|
+
import { DIALOG_OPTIONS, DialogMenu, type DialogRow } from "@estebanforge/pi-tui-dialogs";
|
|
37
32
|
import {
|
|
38
33
|
entriesFromRaw,
|
|
39
34
|
FALLBACK_MODELS,
|
|
@@ -1806,7 +1801,7 @@ async function openAgyPicker(ui: ExtensionUIContext, ctx: AgyCommandCtx): Promis
|
|
|
1806
1801
|
const config = loadConfig();
|
|
1807
1802
|
const pending: PendingConfig = {};
|
|
1808
1803
|
|
|
1809
|
-
const
|
|
1804
|
+
const rows: DialogRow[] = [
|
|
1810
1805
|
{
|
|
1811
1806
|
id: "mode",
|
|
1812
1807
|
label: "Execution mode",
|
|
@@ -1897,53 +1892,55 @@ async function openAgyPicker(ui: ExtensionUIContext, ctx: AgyCommandCtx): Promis
|
|
|
1897
1892
|
},
|
|
1898
1893
|
];
|
|
1899
1894
|
|
|
1900
|
-
await ui.custom(
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1895
|
+
await ui.custom<void>(
|
|
1896
|
+
(host, theme, _kb, done) => {
|
|
1897
|
+
const menu = new DialogMenu(
|
|
1898
|
+
host,
|
|
1899
|
+
theme,
|
|
1900
|
+
{
|
|
1901
|
+
title: "Antigravity provider",
|
|
1902
|
+
subtitle: `Config file: ${CONFIG_PATH} — changes save when the dialog closes`,
|
|
1903
|
+
rows,
|
|
1904
|
+
footer: "↑↓ navigate · Enter/Space cycle · Type to search · Esc close",
|
|
1905
|
+
onChange: (id, newValue) => {
|
|
1906
|
+
if (id === "mode") {
|
|
1907
|
+
pending.mode = newValue as AgyMode;
|
|
1908
|
+
} else if (id === "readonly") {
|
|
1909
|
+
pending.readOnly = newValue === "on";
|
|
1910
|
+
} else if (id === "permissions") {
|
|
1911
|
+
pending.skipPermissions = newValue === "auto-approved";
|
|
1912
|
+
} else if (id === "model") {
|
|
1913
|
+
pending.defaultModel = newValue;
|
|
1914
|
+
} else if (id === "thinking") {
|
|
1915
|
+
pending.defaultThinking = newValue as ThinkingTier;
|
|
1916
|
+
} else if (id === "ask") {
|
|
1917
|
+
pending.askTool = newValue === "on";
|
|
1918
|
+
} else if (id === "web") {
|
|
1919
|
+
pending.webTools = newValue === "on";
|
|
1920
|
+
} else if (id === "bridge") {
|
|
1921
|
+
pending.bridgeTools = newValue as BridgeTools;
|
|
1922
|
+
} else if (id === "turn-cap") {
|
|
1923
|
+
pending.turnTimeoutMin = Number(newValue);
|
|
1924
|
+
} else if (id === "digest") {
|
|
1925
|
+
pending.digest = newValue === "on";
|
|
1926
|
+
} else if (id === "system-prompt") {
|
|
1927
|
+
pending.systemPrompt = newValue === "on";
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
},
|
|
1931
|
+
() => done(),
|
|
1932
|
+
);
|
|
1933
|
+
return {
|
|
1934
|
+
render: (w: number) => menu.render(w),
|
|
1935
|
+
invalidate: () => menu.invalidate(),
|
|
1936
|
+
handleInput: (data: string) => {
|
|
1937
|
+
menu.handleInput(data);
|
|
1938
|
+
host.requestRender();
|
|
1939
|
+
},
|
|
1940
|
+
};
|
|
1941
|
+
},
|
|
1942
|
+
DIALOG_OPTIONS,
|
|
1943
|
+
);
|
|
1947
1944
|
|
|
1948
1945
|
if (Object.keys(pending).length === 0) return;
|
|
1949
1946
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@estebanforge/pi-antigravity-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Gemini provider for Pi on the Antigravity ACP server (official Google ACP) or the stream-json agy CLI. Use antigravity/* models in Pi. Full /model picker support. Models runs Pi's tools. ToS safe to use.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@estebanforge/pi-ask-shared": "^0.1.2",
|
|
58
|
+
"@estebanforge/pi-tui-dialogs": "^0.1.1",
|
|
58
59
|
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
59
60
|
}
|
|
60
61
|
}
|
package/src/ask-tool.ts
CHANGED
|
@@ -61,7 +61,9 @@ THINKING LEVEL (params: thinking, effort - SYNONYMS for one knob):
|
|
|
61
61
|
- Values (pi vocabulary): minimal|low|medium|high|xhigh|max. Clamped to agy's low|medium|high; unknown values fall back to low. "peer review on high thinking" -> thinking: "high".
|
|
62
62
|
- An explicit level beats a tier embedded in model ("flash high") and the configured default. Omit both for the configured default.`;
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
// Delegations legitimately run long (research, review, analysis); a short
|
|
65
|
+
// default kills the run mid-task and the caller re-pays the whole prompt.
|
|
66
|
+
const DEFAULT_TIMEOUT_MIN = 30;
|
|
65
67
|
const GRACE_AFTER_TIMEOUT_MS = 5000;
|
|
66
68
|
const STATUS_INTERVAL_MS = 1000;
|
|
67
69
|
const STATUS_TAIL_CHARS = 160;
|