@eddyskywalker/dsh-chatgpt-subscription 0.75.1 → 0.76.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +1 -1
  3. package/lib/client.js +1014 -812
  4. package/lib/client.js.map +1 -1
  5. package/lib/index.js +953 -386
  6. package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
  7. package/lib/types/client/antigravity-acp/AntigravityAcpSection.d.ts.map +1 -1
  8. package/lib/types/client/antigravity-acp/locales.d.ts +12 -12
  9. package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -1
  10. package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -1
  11. package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -1
  12. package/lib/types/client/common/LineProxySection.d.ts +78 -0
  13. package/lib/types/client/common/LineProxySection.d.ts.map +1 -0
  14. package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts.map +1 -1
  15. package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
  16. package/lib/types/client/locales-ru/hub.d.ts.map +1 -1
  17. package/lib/types/client/locales.d.ts +15 -3
  18. package/lib/types/client/locales.d.ts.map +1 -1
  19. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +1 -1
  20. package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -1
  21. package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -1
  22. package/lib/types/client/qoder/QoderSection.d.ts.map +1 -1
  23. package/lib/types/client/step-code/StepCodeSection.d.ts.map +1 -1
  24. package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -1
  25. package/lib/types/compat.d.ts +1 -1
  26. package/lib/types/host/antigravity-acp/adapter.d.ts +17 -0
  27. package/lib/types/host/antigravity-acp/adapter.d.ts.map +1 -1
  28. package/lib/types/host/antigravity-acp/auth-cache.d.ts +11 -2
  29. package/lib/types/host/antigravity-acp/auth-cache.d.ts.map +1 -1
  30. package/lib/types/host/antigravity-acp/binary.d.ts +68 -0
  31. package/lib/types/host/antigravity-acp/binary.d.ts.map +1 -1
  32. package/lib/types/host/antigravity-acp/catalog.d.ts.map +1 -1
  33. package/lib/types/host/antigravity-acp/errors.d.ts +10 -0
  34. package/lib/types/host/antigravity-acp/errors.d.ts.map +1 -1
  35. package/lib/types/host/antigravity-acp/login.d.ts +22 -6
  36. package/lib/types/host/antigravity-acp/login.d.ts.map +1 -1
  37. package/lib/types/host/antigravity-acp/mcp-bridge.d.ts +9 -2
  38. package/lib/types/host/antigravity-acp/mcp-bridge.d.ts.map +1 -1
  39. package/lib/types/host/antigravity-acp/routes.d.ts +23 -4
  40. package/lib/types/host/antigravity-acp/routes.d.ts.map +1 -1
  41. package/lib/types/host/antigravity-acp/subagent.d.ts +32 -0
  42. package/lib/types/host/antigravity-acp/subagent.d.ts.map +1 -1
  43. package/lib/types/host/antigravity-acp/types.d.ts +15 -0
  44. package/lib/types/host/antigravity-acp/types.d.ts.map +1 -1
  45. package/lib/types/host/preferences.d.ts.map +1 -1
  46. package/lib/types/host/proxy-manager.d.ts +37 -3
  47. package/lib/types/host/proxy-manager.d.ts.map +1 -1
  48. package/lib/types/host/routes.d.ts.map +1 -1
  49. package/lib/types/host/workbuddy/model-catalog.d.ts +20 -10
  50. package/lib/types/host/workbuddy/model-catalog.d.ts.map +1 -1
  51. package/lib/types/index.d.ts.map +1 -1
  52. package/lib/types/shared/contracts.d.ts +53 -0
  53. package/lib/types/shared/contracts.d.ts.map +1 -1
  54. package/lib/types/shared/preferences.d.ts +51 -1
  55. package/lib/types/shared/preferences.d.ts.map +1 -1
  56. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CodexSubscriptionSection.d.ts","sourceRoot":"","sources":["../../../src/client/CodexSubscriptionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CA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@@ -1 +1 @@
1
- {"version":3,"file":"AntigravityAcpSection.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity-acp/AntigravityAcpSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAS/D,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAyZtE"}
1
+ {"version":3,"file":"AntigravityAcpSection.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity-acp/AntigravityAcpSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAS/D,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAqatE"}
@@ -26,7 +26,6 @@ export declare const zh: {
26
26
  readonly signInAgain: "重新登录";
27
27
  readonly signInStarting: "正在启动…";
28
28
  readonly signInSuccess: "已发起登录:浏览器由 Antigravity CLI 打开,完成授权后状态会自动变为「已登录」。";
29
- readonly signInAlready: "当前已是登录状态,无需重复登录。";
30
29
  readonly signInHintSummary: "登录是怎么完成的?";
31
30
  readonly signInHint: "登录由 Antigravity CLI 自己完成:点击后它会打开浏览器,完成后回到这里刷新状态。本插件不读取、不保存你的 Google 凭据。";
32
31
  readonly signInHeadless: "无界面环境请在终端执行 agy acp --login,然后回到此页刷新。";
@@ -81,9 +80,10 @@ export declare const zh: {
81
80
  readonly scopeHintSummary: "展开看这四条限制";
82
81
  readonly scopeHint: "这些是 ACP 与官方 Agent 的客观限制,本线路不做绕过:";
83
82
  readonly scopePrompt: "ACP 没有独立的 system 提示槽位:DSH 的系统提示会作为提示首段随会话发送,官方 Agent 自身的系统提示无法移除。";
84
- readonly scopeHistory: "每轮对话按 DSH 的完整历史重建 ACP 会话;历史被压缩或改写时会重新建立会话,而不是复用可能已与 DSH 不一致的旧会话。";
83
+ readonly scopeHistory: "正常结束后会话随进程一起停放供下次复用:下一条消息若前缀指纹与工具目录未变,只发送增量;历史被压缩或改写、工具集变化或进程死亡时才重建会话并重放带锚点的历史。";
85
84
  readonly scopeTools: "作为主模型时工具由 DSH 执行并把关;作为子代理时子进程使用官方 Agent 自己的工具集。";
86
85
  readonly scopeQuota: "官方服务端不公布剩余额度,因此本卡片不显示任何百分比或余额。";
86
+ readonly scopeNetwork: "本线路的网络请求由官方 CLI(agy)自己管理,插件无法为它单独指定代理;这里的代理设置也不会作用于它。";
87
87
  readonly error: "操作失败:{detail}";
88
88
  readonly complianceSummary: "条款风险(点开查看)";
89
89
  readonly complianceNotice: "⚠️ 条款风险:Google Antigravity 官方 FAQ 明确写着「使用第三方软件、工具或服务访问 Antigravity 违反其服务条款」,且「把 agy 包装进第三方编码 Agent 或应用、或自动化账号轮换,在消费者套餐下不受支持」,可能导致账号被暂停或终止。本插件运行的是 Google 官方 agy 与官方 ACP 服务器(不逆向协议、不读取凭据、单账号不轮换),但这些措施不能消除条款风险。是否继续使用请自行判断;需要零争议时请改用 Gemini Enterprise 或 Google AI Studio API Key。";
@@ -118,7 +118,6 @@ export declare const en: {
118
118
  readonly signInAgain: "Sign in again";
119
119
  readonly signInStarting: "Starting...";
120
120
  readonly signInSuccess: "Sign-in started: the Antigravity CLI opens the browser, and the status here turns to signed in once you approve it.";
121
- readonly signInAlready: "This line is already signed in; there is nothing to do.";
122
121
  readonly signInHintSummary: "How does sign-in work?";
123
122
  readonly signInHint: "The Antigravity CLI performs the sign-in itself: it opens the browser, and you come back here to refresh the state. This plugin never reads or stores your Google credentials.";
124
123
  readonly signInHeadless: "On a headless host run agy acp --login in a terminal, then refresh here.";
@@ -173,9 +172,10 @@ export declare const en: {
173
172
  readonly scopeHintSummary: "Show the four limits";
174
173
  readonly scopeHint: "These are objective ACP and official-agent limits; this line does not work around them:";
175
174
  readonly scopePrompt: "ACP has no separate system-prompt slot: the DSH system prompt travels as the head of the prompt, and the official agent's own system prompt cannot be removed.";
176
- readonly scopeHistory: "Every turn rebuilds the ACP session from the complete DSH history; when that history is compacted or rewritten a new session is created instead of resuming one that may no longer match.";
175
+ readonly scopeHistory: "After a normal finish the session parks with its process for reuse: the next message sends only the increment if the prefix fingerprint and tool catalogue are unchanged, and only a compacted or rewritten history, a changed tool set, or a dead process triggers a rebuild with an anchored replay.";
177
176
  readonly scopeTools: "As a main model its tool calls are executed and gated by DSH; as a subagent the child runs the official agent's own tools.";
178
177
  readonly scopeQuota: "The official server publishes no remaining quota, so this card shows no percentage and no balance.";
178
+ readonly scopeNetwork: "This line's network requests are managed by the official CLI (agy) itself; the plugin cannot give it a separate proxy, and the proxy settings elsewhere do not apply to it.";
179
179
  readonly error: "Action failed: {detail}";
180
180
  readonly complianceSummary: "Terms risk (click to read)";
181
181
  readonly complianceNotice: "Terms risk: Google Antigravity's official FAQ states that accessing Antigravity through third-party software, tools, or services violates its Terms of Service, and that wrapping agy inside third-party coding agents or applications, or automating account rotation, is not supported under consumer plans - either can result in suspension or termination of your account. This plugin runs Google's own agy CLI and official ACP server (no protocol reverse-engineering, no credential access, single account, no rotation), but those measures do not remove the risk. Whether to keep using it is your decision; where a zero-controversy setup is required, use a Gemini Enterprise or Google AI Studio API key instead.";
@@ -211,7 +211,6 @@ export declare const dictionaries: {
211
211
  readonly signInAgain: "重新登录";
212
212
  readonly signInStarting: "正在启动…";
213
213
  readonly signInSuccess: "已发起登录:浏览器由 Antigravity CLI 打开,完成授权后状态会自动变为「已登录」。";
214
- readonly signInAlready: "当前已是登录状态,无需重复登录。";
215
214
  readonly signInHintSummary: "登录是怎么完成的?";
216
215
  readonly signInHint: "登录由 Antigravity CLI 自己完成:点击后它会打开浏览器,完成后回到这里刷新状态。本插件不读取、不保存你的 Google 凭据。";
217
216
  readonly signInHeadless: "无界面环境请在终端执行 agy acp --login,然后回到此页刷新。";
@@ -266,9 +265,10 @@ export declare const dictionaries: {
266
265
  readonly scopeHintSummary: "展开看这四条限制";
267
266
  readonly scopeHint: "这些是 ACP 与官方 Agent 的客观限制,本线路不做绕过:";
268
267
  readonly scopePrompt: "ACP 没有独立的 system 提示槽位:DSH 的系统提示会作为提示首段随会话发送,官方 Agent 自身的系统提示无法移除。";
269
- readonly scopeHistory: "每轮对话按 DSH 的完整历史重建 ACP 会话;历史被压缩或改写时会重新建立会话,而不是复用可能已与 DSH 不一致的旧会话。";
268
+ readonly scopeHistory: "正常结束后会话随进程一起停放供下次复用:下一条消息若前缀指纹与工具目录未变,只发送增量;历史被压缩或改写、工具集变化或进程死亡时才重建会话并重放带锚点的历史。";
270
269
  readonly scopeTools: "作为主模型时工具由 DSH 执行并把关;作为子代理时子进程使用官方 Agent 自己的工具集。";
271
270
  readonly scopeQuota: "官方服务端不公布剩余额度,因此本卡片不显示任何百分比或余额。";
271
+ readonly scopeNetwork: "本线路的网络请求由官方 CLI(agy)自己管理,插件无法为它单独指定代理;这里的代理设置也不会作用于它。";
272
272
  readonly error: "操作失败:{detail}";
273
273
  readonly complianceSummary: "条款风险(点开查看)";
274
274
  readonly complianceNotice: "⚠️ 条款风险:Google Antigravity 官方 FAQ 明确写着「使用第三方软件、工具或服务访问 Antigravity 违反其服务条款」,且「把 agy 包装进第三方编码 Agent 或应用、或自动化账号轮换,在消费者套餐下不受支持」,可能导致账号被暂停或终止。本插件运行的是 Google 官方 agy 与官方 ACP 服务器(不逆向协议、不读取凭据、单账号不轮换),但这些措施不能消除条款风险。是否继续使用请自行判断;需要零争议时请改用 Gemini Enterprise 或 Google AI Studio API Key。";
@@ -303,7 +303,6 @@ export declare const dictionaries: {
303
303
  readonly signInAgain: "重新登录";
304
304
  readonly signInStarting: "正在启动…";
305
305
  readonly signInSuccess: "已发起登录:浏览器由 Antigravity CLI 打开,完成授权后状态会自动变为「已登录」。";
306
- readonly signInAlready: "当前已是登录状态,无需重复登录。";
307
306
  readonly signInHintSummary: "登录是怎么完成的?";
308
307
  readonly signInHint: "登录由 Antigravity CLI 自己完成:点击后它会打开浏览器,完成后回到这里刷新状态。本插件不读取、不保存你的 Google 凭据。";
309
308
  readonly signInHeadless: "无界面环境请在终端执行 agy acp --login,然后回到此页刷新。";
@@ -358,9 +357,10 @@ export declare const dictionaries: {
358
357
  readonly scopeHintSummary: "展开看这四条限制";
359
358
  readonly scopeHint: "这些是 ACP 与官方 Agent 的客观限制,本线路不做绕过:";
360
359
  readonly scopePrompt: "ACP 没有独立的 system 提示槽位:DSH 的系统提示会作为提示首段随会话发送,官方 Agent 自身的系统提示无法移除。";
361
- readonly scopeHistory: "每轮对话按 DSH 的完整历史重建 ACP 会话;历史被压缩或改写时会重新建立会话,而不是复用可能已与 DSH 不一致的旧会话。";
360
+ readonly scopeHistory: "正常结束后会话随进程一起停放供下次复用:下一条消息若前缀指纹与工具目录未变,只发送增量;历史被压缩或改写、工具集变化或进程死亡时才重建会话并重放带锚点的历史。";
362
361
  readonly scopeTools: "作为主模型时工具由 DSH 执行并把关;作为子代理时子进程使用官方 Agent 自己的工具集。";
363
362
  readonly scopeQuota: "官方服务端不公布剩余额度,因此本卡片不显示任何百分比或余额。";
363
+ readonly scopeNetwork: "本线路的网络请求由官方 CLI(agy)自己管理,插件无法为它单独指定代理;这里的代理设置也不会作用于它。";
364
364
  readonly error: "操作失败:{detail}";
365
365
  readonly complianceSummary: "条款风险(点开查看)";
366
366
  readonly complianceNotice: "⚠️ 条款风险:Google Antigravity 官方 FAQ 明确写着「使用第三方软件、工具或服务访问 Antigravity 违反其服务条款」,且「把 agy 包装进第三方编码 Agent 或应用、或自动化账号轮换,在消费者套餐下不受支持」,可能导致账号被暂停或终止。本插件运行的是 Google 官方 agy 与官方 ACP 服务器(不逆向协议、不读取凭据、单账号不轮换),但这些措施不能消除条款风险。是否继续使用请自行判断;需要零争议时请改用 Gemini Enterprise 或 Google AI Studio API Key。";
@@ -395,7 +395,6 @@ export declare const dictionaries: {
395
395
  readonly signInAgain: "Sign in again";
396
396
  readonly signInStarting: "Starting...";
397
397
  readonly signInSuccess: "Sign-in started: the Antigravity CLI opens the browser, and the status here turns to signed in once you approve it.";
398
- readonly signInAlready: "This line is already signed in; there is nothing to do.";
399
398
  readonly signInHintSummary: "How does sign-in work?";
400
399
  readonly signInHint: "The Antigravity CLI performs the sign-in itself: it opens the browser, and you come back here to refresh the state. This plugin never reads or stores your Google credentials.";
401
400
  readonly signInHeadless: "On a headless host run agy acp --login in a terminal, then refresh here.";
@@ -450,9 +449,10 @@ export declare const dictionaries: {
450
449
  readonly scopeHintSummary: "Show the four limits";
451
450
  readonly scopeHint: "These are objective ACP and official-agent limits; this line does not work around them:";
452
451
  readonly scopePrompt: "ACP has no separate system-prompt slot: the DSH system prompt travels as the head of the prompt, and the official agent's own system prompt cannot be removed.";
453
- readonly scopeHistory: "Every turn rebuilds the ACP session from the complete DSH history; when that history is compacted or rewritten a new session is created instead of resuming one that may no longer match.";
452
+ readonly scopeHistory: "After a normal finish the session parks with its process for reuse: the next message sends only the increment if the prefix fingerprint and tool catalogue are unchanged, and only a compacted or rewritten history, a changed tool set, or a dead process triggers a rebuild with an anchored replay.";
454
453
  readonly scopeTools: "As a main model its tool calls are executed and gated by DSH; as a subagent the child runs the official agent's own tools.";
455
454
  readonly scopeQuota: "The official server publishes no remaining quota, so this card shows no percentage and no balance.";
455
+ readonly scopeNetwork: "This line's network requests are managed by the official CLI (agy) itself; the plugin cannot give it a separate proxy, and the proxy settings elsewhere do not apply to it.";
456
456
  readonly error: "Action failed: {detail}";
457
457
  readonly complianceSummary: "Terms risk (click to read)";
458
458
  readonly complianceNotice: "Terms risk: Google Antigravity's official FAQ states that accessing Antigravity through third-party software, tools, or services violates its Terms of Service, and that wrapping agy inside third-party coding agents or applications, or automating account rotation, is not supported under consumer plans - either can result in suspension or termination of your account. This plugin runs Google's own agy CLI and official ACP server (no protocol reverse-engineering, no credential access, single account, no rotation), but those measures do not remove the risk. Whether to keep using it is your decision; where a zero-controversy setup is required, use a Gemini Enterprise or Google AI Studio API key instead.";
@@ -487,7 +487,6 @@ export declare const dictionaries: {
487
487
  readonly signInAgain: "Sign in again";
488
488
  readonly signInStarting: "Starting...";
489
489
  readonly signInSuccess: "Sign-in started: the Antigravity CLI opens the browser, and the status here turns to signed in once you approve it.";
490
- readonly signInAlready: "This line is already signed in; there is nothing to do.";
491
490
  readonly signInHintSummary: "How does sign-in work?";
492
491
  readonly signInHint: "The Antigravity CLI performs the sign-in itself: it opens the browser, and you come back here to refresh the state. This plugin never reads or stores your Google credentials.";
493
492
  readonly signInHeadless: "On a headless host run agy acp --login in a terminal, then refresh here.";
@@ -542,9 +541,10 @@ export declare const dictionaries: {
542
541
  readonly scopeHintSummary: "Show the four limits";
543
542
  readonly scopeHint: "These are objective ACP and official-agent limits; this line does not work around them:";
544
543
  readonly scopePrompt: "ACP has no separate system-prompt slot: the DSH system prompt travels as the head of the prompt, and the official agent's own system prompt cannot be removed.";
545
- readonly scopeHistory: "Every turn rebuilds the ACP session from the complete DSH history; when that history is compacted or rewritten a new session is created instead of resuming one that may no longer match.";
544
+ readonly scopeHistory: "After a normal finish the session parks with its process for reuse: the next message sends only the increment if the prefix fingerprint and tool catalogue are unchanged, and only a compacted or rewritten history, a changed tool set, or a dead process triggers a rebuild with an anchored replay.";
546
545
  readonly scopeTools: "As a main model its tool calls are executed and gated by DSH; as a subagent the child runs the official agent's own tools.";
547
546
  readonly scopeQuota: "The official server publishes no remaining quota, so this card shows no percentage and no balance.";
547
+ readonly scopeNetwork: "This line's network requests are managed by the official CLI (agy) itself; the plugin cannot give it a separate proxy, and the proxy settings elsewhere do not apply to it.";
548
548
  readonly error: "Action failed: {detail}";
549
549
  readonly complianceSummary: "Terms risk (click to read)";
550
550
  readonly complianceNotice: "Terms risk: Google Antigravity's official FAQ states that accessing Antigravity through third-party software, tools, or services violates its Terms of Service, and that wrapping agy inside third-party coding agents or applications, or automating account rotation, is not supported under consumer plans - either can result in suspension or termination of your account. This plugin runs Google's own agy CLI and official ACP server (no protocol reverse-engineering, no credential access, single account, no rotation), but those measures do not remove the risk. Whether to keep using it is your decision; where a zero-controversy setup is required, use a Gemini Enterprise or Google AI Studio API key instead.";
@@ -1 +1 @@
1
- {"version":3,"file":"ClaudeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/claude/ClaudeSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAoCjF,wBAAgB,aAAa,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CA6Z3G"}
1
+ {"version":3,"file":"ClaudeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/claude/ClaudeSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAqCjF,wBAAgB,aAAa,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CA+Z3G"}
@@ -1 +1 @@
1
- {"version":3,"file":"ClinePassSection.d.ts","sourceRoot":"","sources":["../../../../src/client/cline-pass/ClinePassSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAgChF,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA+BD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA8yBjE"}
1
+ {"version":3,"file":"ClinePassSection.d.ts","sourceRoot":"","sources":["../../../../src/client/cline-pass/ClinePassSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAiChF,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA+BD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA8yBjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"CommandCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/CommandCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAmCvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAsBD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAqiBnG"}
1
+ {"version":3,"file":"CommandCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/CommandCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAoCvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAsBD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAuiBnG"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * The proxy card one provider line owns.
3
+ *
4
+ * Before this component the plugin had ONE proxy setting for all thirteen
5
+ * lines, rendered inside the ChatGPT card. A Chinese mixed network needs the
6
+ * opposite: the foreign lines go through the local Clash, a domestic endpoint
7
+ * must not. Flipping the shared setting repainted every line at once, and the
8
+ * "direct" side effect (bare `fetch`) silently changed whether other middleware
9
+ * saw the traffic at all.
10
+ *
11
+ * One component serves every line so the twelve cards cannot drift: each passes
12
+ * its own provider id and reads/writes the same preference shape through the
13
+ * same plugin route. The copy lives in the plugin's own namespace (zh + en
14
+ * built in, ru in the language pack), so a line card does not have to carry a
15
+ * second dictionary just for this section.
16
+ *
17
+ * The BYPASS list is deliberately NOT per-line: a bypass is a host-level fact
18
+ * ("`copilot.tencent.com` is reachable directly"), and thirteen copies of it
19
+ * would mean a user fixes one line and leaves twelve broken. Every card shows
20
+ * the same list and says so.
21
+ *
22
+ * @module @eddyskywalker/dsh-chatgpt-subscription/client/common/LineProxySection
23
+ */
24
+ import React from 'react';
25
+ import type { LineProxyProviderId, LineProxiesDto, SubscriptionPreferencesDto, SubscriptionPreferencesUpdateDto } from '../../shared/contracts.ts';
26
+ /** The proxy facts one provider page needs, as `GET /proxy` answers them. */
27
+ export interface LineProxySnapshot {
28
+ lineProxies: LineProxiesDto;
29
+ noProxy: string | null;
30
+ detectedProxy: string | null;
31
+ activeProxies: Partial<Record<LineProxyProviderId, string | null>>;
32
+ }
33
+ export interface LineProxySectionProps {
34
+ /** Provider id this card writes to; must be one of LINE_PROXY_PROVIDER_IDS. */
35
+ line: LineProxyProviderId;
36
+ /**
37
+ * Read the shared snapshot; called on mount and after every save.
38
+ * Defaults to this plugin's own `/proxy` route.
39
+ */
40
+ fetchSnapshot?: () => Promise<LineProxySnapshot>;
41
+ /** Save one preference patch. Defaults to this plugin's `/preferences/update`. */
42
+ onSave?: (patch: SubscriptionPreferencesUpdateDto) => Promise<void>;
43
+ /** Distinguishes the input ids when several cards are mounted at once. */
44
+ idPrefix?: string;
45
+ /**
46
+ * A snapshot the card already holds (the ChatGPT tab reads one with its
47
+ * status), which removes the extra request and keeps that card speaking
48
+ * only to its own routes. Absent means "read `/proxy`".
49
+ */
50
+ snapshot?: LineProxySnapshot | null;
51
+ }
52
+ /**
53
+ * The proxy card for one provider line: mode, custom address, and the shared
54
+ * bypass list.
55
+ *
56
+ * Drafts are local so typing does not round-trip; saving posts the field and
57
+ * clears the draft once the host has answered with the canonical form (the host
58
+ * normalizes the list and the URL, and what it answers is what the matcher
59
+ * reads).
60
+ */
61
+ export declare function LineProxySection({ line, fetchSnapshot, onSave, idPrefix, snapshot: provided }: LineProxySectionProps): React.JSX.Element;
62
+ /**
63
+ * Read that snapshot from the plugin's own proxy route.
64
+ *
65
+ * The same route serves every card, so saving from one card and reading from
66
+ * another always sees the same document.
67
+ * @param base - Plugin route prefix (`ROUTE_PREFIX`).
68
+ * @returns the parsed snapshot.
69
+ */
70
+ export declare function fetchLineProxySnapshot(base: string): Promise<LineProxySnapshot>;
71
+ /**
72
+ * Write one preferences patch through the plugin route.
73
+ * @param base - Plugin route prefix (`ROUTE_PREFIX`).
74
+ * @param patch - Preferences to merge.
75
+ * @returns the refreshed preferences.
76
+ */
77
+ export declare function savePreferences(base: string, patch: SubscriptionPreferencesUpdateDto): Promise<SubscriptionPreferencesDto>;
78
+ //# sourceMappingURL=LineProxySection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineProxySection.d.ts","sourceRoot":"","sources":["../../../../src/client/common/LineProxySection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAA2C,MAAM,OAAO,CAAA;AAC/D,OAAO,KAAK,EAGV,mBAAmB,EACnB,cAAc,EAEd,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,2BAA2B,CAAA;AAKlC,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,cAAc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AA;AAQtG,wBAAgB,oBAAoB,CAAC,EAAE,aAAa,EAAE,GAAE,yBAA8B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwazG"}
1
+ {"version":3,"file":"GlmCodingPlanSection.d.ts","sourceRoot":"","sources":["../../../../src/client/glm-coding-plan/GlmCodingPlanSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAA2B,KAAK,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AAStG,wBAAgB,oBAAoB,CAAC,EAAE,aAAa,EAAE,GAAE,yBAA8B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA0azG"}
@@ -1 +1 @@
1
- {"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AA2BvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA4GD,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAsxBhG"}
1
+ {"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AA4BvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA4GD,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAwxBhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/hub.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAwOhD,CAAA"}
1
+ {"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/hub.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CA8OhD,CAAA"}
@@ -28,7 +28,7 @@ export declare const zh: {
28
28
  readonly modelsHint: "勾选后模型才会显示在对话页的模型选择列表中;全部取消勾选或关闭上方开关可在列表中隐藏该供应商。";
29
29
  readonly proxySettings: "网络代理";
30
30
  readonly proxyMode: "代理模式";
31
- readonly proxyModeHint: "本插件的全部供应线路共用这一份代理设置,登录、令牌续期、模型目录与配额读取同样经过它;支持自动读取系统代理,修改后对后续请求生效。";
31
+ readonly proxyModeHint: "只影响本线路的对话、登录与续期、模型目录和额度读取;支持自动读取系统代理,修改后对后续请求生效。";
32
32
  readonly proxyModeAuto: "系统代理(自动检测)";
33
33
  readonly proxyModeCustom: "自定义代理";
34
34
  readonly proxyModeDirect: "直连(禁用代理)";
@@ -36,6 +36,12 @@ export declare const zh: {
36
36
  readonly customProxyUrlHint: "支持 HTTP/HTTPS/SOCKS5 代理地址,例如 http://127.0.0.1:7890";
37
37
  readonly customProxyUrlPlaceholder: "例如: http://127.0.0.1:7890";
38
38
  readonly saveProxyUrl: "保存代理地址";
39
+ readonly noProxy: "不使用代理的主机";
40
+ readonly noProxyHint: "这些主机始终直连。此列表全局生效、所有线路共用。用逗号或空格分隔,支持精确主机、域名后缀(api.corp.example)与 host:port,并与进程环境和 $DSH_HOME/.env 里的 NO_PROXY 合并。";
41
+ readonly noProxyPlaceholder: "例如: copilot.tencent.com, *.corp.example, gateway.lan:8080";
42
+ readonly saveNoProxy: "保存直连主机列表";
43
+ readonly proxyDirectActive: "当前生效:直连(不经过代理)";
44
+ readonly proxyActiveTemplate: "当前生效:{proxy}";
39
45
  readonly proxyDetected: "检测到系统代理";
40
46
  readonly proxyDetectedEffective: "(已自动生效)";
41
47
  readonly proxyNoneDetected: "未检测到系统代理,将使用直连";
@@ -281,7 +287,7 @@ export declare const dictionaries: {
281
287
  readonly modelsHint: "勾选后模型才会显示在对话页的模型选择列表中;全部取消勾选或关闭上方开关可在列表中隐藏该供应商。";
282
288
  readonly proxySettings: "网络代理";
283
289
  readonly proxyMode: "代理模式";
284
- readonly proxyModeHint: "本插件的全部供应线路共用这一份代理设置,登录、令牌续期、模型目录与配额读取同样经过它;支持自动读取系统代理,修改后对后续请求生效。";
290
+ readonly proxyModeHint: "只影响本线路的对话、登录与续期、模型目录和额度读取;支持自动读取系统代理,修改后对后续请求生效。";
285
291
  readonly proxyModeAuto: "系统代理(自动检测)";
286
292
  readonly proxyModeCustom: "自定义代理";
287
293
  readonly proxyModeDirect: "直连(禁用代理)";
@@ -289,6 +295,12 @@ export declare const dictionaries: {
289
295
  readonly customProxyUrlHint: "支持 HTTP/HTTPS/SOCKS5 代理地址,例如 http://127.0.0.1:7890";
290
296
  readonly customProxyUrlPlaceholder: "例如: http://127.0.0.1:7890";
291
297
  readonly saveProxyUrl: "保存代理地址";
298
+ readonly noProxy: "不使用代理的主机";
299
+ readonly noProxyHint: "这些主机始终直连。此列表全局生效、所有线路共用。用逗号或空格分隔,支持精确主机、域名后缀(api.corp.example)与 host:port,并与进程环境和 $DSH_HOME/.env 里的 NO_PROXY 合并。";
300
+ readonly noProxyPlaceholder: "例如: copilot.tencent.com, *.corp.example, gateway.lan:8080";
301
+ readonly saveNoProxy: "保存直连主机列表";
302
+ readonly proxyDirectActive: "当前生效:直连(不经过代理)";
303
+ readonly proxyActiveTemplate: "当前生效:{proxy}";
292
304
  readonly proxyDetected: "检测到系统代理";
293
305
  readonly proxyDetectedEffective: "(已自动生效)";
294
306
  readonly proxyNoneDetected: "未检测到系统代理,将使用直连";
@@ -502,6 +514,6 @@ export declare const dictionaries: {
502
514
  readonly quotaFactsScope: string;
503
515
  readonly composerLabel: string;
504
516
  };
505
- en: Record<"stale" | "image" | "quota" | "account" | "rotationStrategy" | "pending" | "accountId" | "relogin" | "used" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "testConnection" | "testing" | "latency" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "poolStorageTitle" | "poolStorageKeyring" | "poolStorageCredentials" | "poolStorageKeyringHint" | "poolStorageCredentialsHint" | "poolStorageEffective" | "poolStorageBackendKeyring" | "poolStorageBackendDpapi" | "poolStorageBackendKeychain" | "poolStorageBackendCredentials" | "poolStorageSwitchWarning" | "poolStorageUnavailableKeyring" | "poolStorageUnavailableCredentials" | "poolStorageUnavailableStore" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "fetchStatus" | "fetchStatusHint" | "fetchConfiguredProvider" | "fetchProviderDshDefault" | "switcherState" | "switcherStateIdle" | "switcherStateApplying" | "switcherStateApplied" | "switcherStateMissing" | "switcherStateFailed" | "fetchMode" | "fetchModeAuto" | "fetchModePlugin" | "fetchModeDsh" | "fetchMaxBodyChars" | "fetchMaxResponseBytes" | "characters" | "bytes" | "fetchLimitsInactive" | "fetchConfigSource" | "providerDefault" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowsNoneEnabled" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "updated" | "primary" | "secondary" | "limitWindow" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "hubBack" | "hubOverviewHint" | "hubAccountCount" | "hubNoAccounts" | "hubStateEnabled" | "hubStateDisabled" | "hubModelsEnabled" | "hubModelsEnabledOfTotal" | "hubStatusFailed" | "hubSwitchOn" | "hubSwitchOff" | "hubCardLabel" | "hubUpdateCheck" | "hubUpdateChecking" | "hubUpdateApply" | "hubUpdateApplying" | "hubUpdateUpToDate" | "hubUpdateLatestWithUnknownCurrent" | "hubUpdateAvailable" | "hubUpdateInstalled" | "hubUpdateInstalledReplaced" | "hubUpdateInstalledLive" | "hubUpdateInstalledReplacedLive" | "hubUpdateFailedRestored" | "hubUpdateFailedRollbackFailed" | "hubUpdateFailedRollbackSkipped" | "hubUpdateDevelopmentInstall" | "hubUpdatePluginManagerMissing" | "hubUpdateManualOnly" | "hubUpdateCheckFailed" | "hubUpdateCommandLabel" | "localCodexLoginImport" | "localCodexLoginImporting" | "deviceCodeLogin" | "deviceCodeLoginStarting" | "deviceCodeLoginDetail" | "deviceCodeHint" | "deviceCodeLabel" | "deviceCodeOpen" | "deviceCodeCopy" | "deviceCodeWaiting" | "stopImporting" | "stopImportingLabel" | "stopImportingBusy" | "stopImportingHint" | "cardName.chatgpt" | "cardName.command-code" | "cardName.kimi-code" | "cardName.minimax-code" | "cardName.glm-coding-plan" | "cardName.claude" | "cardName.ollama" | "cardName.step-code" | "cardName.cline-pass" | "cardName.qoder" | "cardName.opendesign" | "cardName.workbuddy" | "cardName.antigravity-acp" | "modelChecklistCount" | "codeRunTitle" | "codeRunOutput" | "codeRunCopy" | "codeRunCopied" | "codeRunWrap" | "codeRunUnwrap" | "codeRunInspect" | "codeRunPreparing" | "codeRunRunning" | "codeRunFailed" | "codeRunStopped" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel", string>;
517
+ en: Record<"stale" | "image" | "quota" | "account" | "rotationStrategy" | "pending" | "accountId" | "relogin" | "used" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "testConnection" | "testing" | "latency" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "noProxy" | "noProxyHint" | "noProxyPlaceholder" | "saveNoProxy" | "proxyDirectActive" | "proxyActiveTemplate" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "poolStorageTitle" | "poolStorageKeyring" | "poolStorageCredentials" | "poolStorageKeyringHint" | "poolStorageCredentialsHint" | "poolStorageEffective" | "poolStorageBackendKeyring" | "poolStorageBackendDpapi" | "poolStorageBackendKeychain" | "poolStorageBackendCredentials" | "poolStorageSwitchWarning" | "poolStorageUnavailableKeyring" | "poolStorageUnavailableCredentials" | "poolStorageUnavailableStore" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "fetchStatus" | "fetchStatusHint" | "fetchConfiguredProvider" | "fetchProviderDshDefault" | "switcherState" | "switcherStateIdle" | "switcherStateApplying" | "switcherStateApplied" | "switcherStateMissing" | "switcherStateFailed" | "fetchMode" | "fetchModeAuto" | "fetchModePlugin" | "fetchModeDsh" | "fetchMaxBodyChars" | "fetchMaxResponseBytes" | "characters" | "bytes" | "fetchLimitsInactive" | "fetchConfigSource" | "providerDefault" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowsNoneEnabled" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "updated" | "primary" | "secondary" | "limitWindow" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "hubBack" | "hubOverviewHint" | "hubAccountCount" | "hubNoAccounts" | "hubStateEnabled" | "hubStateDisabled" | "hubModelsEnabled" | "hubModelsEnabledOfTotal" | "hubStatusFailed" | "hubSwitchOn" | "hubSwitchOff" | "hubCardLabel" | "hubUpdateCheck" | "hubUpdateChecking" | "hubUpdateApply" | "hubUpdateApplying" | "hubUpdateUpToDate" | "hubUpdateLatestWithUnknownCurrent" | "hubUpdateAvailable" | "hubUpdateInstalled" | "hubUpdateInstalledReplaced" | "hubUpdateInstalledLive" | "hubUpdateInstalledReplacedLive" | "hubUpdateFailedRestored" | "hubUpdateFailedRollbackFailed" | "hubUpdateFailedRollbackSkipped" | "hubUpdateDevelopmentInstall" | "hubUpdatePluginManagerMissing" | "hubUpdateManualOnly" | "hubUpdateCheckFailed" | "hubUpdateCommandLabel" | "localCodexLoginImport" | "localCodexLoginImporting" | "deviceCodeLogin" | "deviceCodeLoginStarting" | "deviceCodeLoginDetail" | "deviceCodeHint" | "deviceCodeLabel" | "deviceCodeOpen" | "deviceCodeCopy" | "deviceCodeWaiting" | "stopImporting" | "stopImportingLabel" | "stopImportingBusy" | "stopImportingHint" | "cardName.chatgpt" | "cardName.command-code" | "cardName.kimi-code" | "cardName.minimax-code" | "cardName.glm-coding-plan" | "cardName.claude" | "cardName.ollama" | "cardName.step-code" | "cardName.cline-pass" | "cardName.qoder" | "cardName.opendesign" | "cardName.workbuddy" | "cardName.antigravity-acp" | "modelChecklistCount" | "codeRunTitle" | "codeRunOutput" | "codeRunCopy" | "codeRunCopied" | "codeRunWrap" | "codeRunUnwrap" | "codeRunInspect" | "codeRunPreparing" | "codeRunRunning" | "codeRunFailed" | "codeRunStopped" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel", string>;
506
518
  };
507
519
  //# sourceMappingURL=locales.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;AAIrD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmPL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CA6O9C,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAA;AACvC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAA"}
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;AAIrD,eAA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,CAAC,GAAG,CAAC,OAAO,CAwfhG"}
1
+ {"version":3,"file":"MinimaxCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/minimax-code/MinimaxCodeSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,OAAO,EAGL,KAAK,uBAAuB,EAE7B,MAAM,4BAA4B,CAAA;AAYnC;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAK/E;AAED,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,EAAE,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA0fhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"OllamaSection.d.ts","sourceRoot":"","sources":["../../../../src/client/ollama/OllamaSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AA8B/D;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAuR9D"}
1
+ {"version":3,"file":"OllamaSection.d.ts","sourceRoot":"","sources":["../../../../src/client/ollama/OllamaSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AA+B/D;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAyR9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenDesignSection.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/OpenDesignSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAsBhF,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA0RD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAooBlE"}
1
+ {"version":3,"file":"OpenDesignSection.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/OpenDesignSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAuBhF,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA0RD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAsoBlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"QoderSection.d.ts","sourceRoot":"","sources":["../../../../src/client/qoder/QoderSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,iCAAiC,CAAA;AAKxC,OAAO,EAAgD,EAAE,EAAiC,MAAM,cAAc,CAAA;AAC9G,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AA6D9E;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,EAAE,CAAC,GAAE,OAAO,EAAO,GAAG,MAAM,CAQpF;AAED,wBAAgB,YAAY,CAAC,EAAE,aAAa,EAAE,GAAE,iBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAoezF"}
1
+ {"version":3,"file":"QoderSection.d.ts","sourceRoot":"","sources":["../../../../src/client/qoder/QoderSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,iCAAiC,CAAA;AAKxC,OAAO,EAAgD,EAAE,EAAiC,MAAM,cAAc,CAAA;AAC9G,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AA8D9E;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,EAAE,CAAC,GAAE,OAAO,EAAO,GAAG,MAAM,CAQpF;AAED,wBAAgB,YAAY,CAAC,EAAE,aAAa,EAAE,GAAE,iBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsezF"}
@@ -1 +1 @@
1
- {"version":3,"file":"StepCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/step-code/StepCodeSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AAmBzB,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAA;AAwHhC,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,GAAE,oBAAyB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAmrB/F"}
1
+ {"version":3,"file":"StepCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/step-code/StepCodeSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AAoBzB,OAAO,EAGL,KAAK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,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAOtG;AAED,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,EAAE,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAItG;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,qBAAqB,GAAG,SAAS,EACvC,CAAC,EAAE,eAAe,EAClB,GAAG,EAAE,MAAM,GACV;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAgB/D;AAED,sEAAsE;AACtE,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,8BAA8B,GAAG,SAAS,EACvD,CAAC,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,mBAAmB,GAAG,SAAS,GAAG,0BAA0B,CAAC,GAC/E,MAAM,EAAE,CASV;AAED,wBAAgB,gBAAgB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,qBAAqB,GAAG,KAAK,CAAC,YAAY,CAihBjH"}
@@ -76,7 +76,7 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
76
76
  * `test/responses-client.test.ts` asserts the two agree, so a release that
77
77
  * forgets this constant fails the suite instead of shipping quietly.
78
78
  */
79
- export declare const PLUGIN_VERSION: "0.75.1";
79
+ export declare const PLUGIN_VERSION: "0.76.0";
80
80
  export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
81
81
  export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
82
82
  export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
@@ -225,6 +225,23 @@ export declare class AntigravityAcpAdapter extends LlmAdapter {
225
225
  * agent's own start-up wait on the next message.
226
226
  */
227
227
  private closeTurn;
228
+ /**
229
+ * Account for one turn exactly once, then hand its process back.
230
+ *
231
+ * Every ending goes through here: a completed stream parks the conversation, an
232
+ * abandoned one releases the process, and a turn whose live entry was replaced
233
+ * releases it too - it no longer owns this session's conversation, so parking it
234
+ * would replace the parked one with a transcript nobody is talking to.
235
+ *
236
+ * The `closed` flag is what makes this safe to call from a second path: the pump
237
+ * finishing after a cancellation, and a cancellation arriving after the pump
238
+ * finished, both used to be able to decrement `activeTurns` or release a process
239
+ * twice.
240
+ *
241
+ * @param turn - The turn being ended.
242
+ * @param parkAllowed - Whether a conversation may be left parked behind it.
243
+ */
244
+ private finishTurn;
228
245
  /**
229
246
  * Ask the agent to stop the prompt this turn left running.
230
247
  *
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,UAAU,EAGV,KAAK,eAAe,IAAI,sBAAsB,EAC9C,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAU7B,OAAO,EAIL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EACV,sBAAsB,EAEtB,sBAAsB,EACvB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAAE,SAAS,EAAY,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAiB7E,OAAO,KAAK,EAA0B,2BAA2B,EAAE,MAAM,eAAe,CAAA;AACxF,OAAO,EAGL,WAAW,EAKZ,MAAM,YAAY,CAAA;AAcnB;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,SAAU,CAAA;AAElD,kFAAkF;AAClF,eAAO,MAAM,0BAA0B,SAAyB,CAAA;AAEhE,+DAA+D;AAC/D,eAAO,MAAM,0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aAAa;IAMrB;;;;;;;;;;;;;OAaG;YACW,aAAa;IAwD3B;;;;;;OAMG;YACW,IAAI;IAqClB;;;;;;;;OAQG;YACW,YAAY;IAM1B;;;;;;;;OAQG;IACH,OAAO,CAAC,YAAY;IAepB,uDAAuD;IACvD,OAAO,CAAC,cAAc;IAoBtB,oFAAoF;YACtE,OAAO;IA0BrB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,GAAG;CAGZ;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB,QAKzB,CAAA;AAsVX,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -17,8 +17,17 @@
17
17
  * @module dsh-chatgpt-subscription/host/antigravity-acp/auth-cache
18
18
  */
19
19
  import type { AntigravityAcpAuthDto } from '../../shared/antigravity-acp-contracts.ts';
20
- /** How long one probe answers for. */
21
- export declare const AUTH_CACHE_TTL_MS = 60000;
20
+ /**
21
+ * How long one probe answers for.
22
+ *
23
+ * Ten minutes, not one. A probe is a whole `agy` process plus a `session/new`
24
+ * against Google, and the card, the hub overview and the composer badge each poll
25
+ * this route - at a one-minute window that was a process launch per minute for a
26
+ * question whose answer changes only when the user signs in or out. Those two
27
+ * events are exactly what invalidates the cache (`login/start`, `login/status`,
28
+ * the refresh click), so the window does not delay a real state change.
29
+ */
30
+ export declare const AUTH_CACHE_TTL_MS: number;
22
31
  /** The cache itself. */
23
32
  export declare class AcpAuthCache {
24
33
  private readonly probe;
@@ -1 +1 @@
1
- {"version":3,"file":"auth-cache.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/auth-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AAEtF,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,QAAS,CAAA;AAEvC,wBAAwB;AACxB,qBAAa,YAAY;IAWrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,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AAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAmB7E,kEAAkE;IAClE,UAAU,IAAI,IAAI;CAInB"}
@@ -58,6 +58,12 @@ export interface AcpBinaryDiagnostics {
58
58
  tried: string[];
59
59
  /** The failure that ended the search, when nothing usable was found. */
60
60
  error?: string;
61
+ /**
62
+ * True when the search stopped short of installing: nothing local was found and
63
+ * this read was not allowed to download. The card says so instead of claiming
64
+ * the download failed - it was never attempted.
65
+ */
66
+ deferred?: boolean;
61
67
  }
62
68
  /** Test seams so this module can be exercised with no network and no home directory. */
63
69
  export interface AcpBinaryOptions {
@@ -73,6 +79,23 @@ export interface AcpBinaryOptions {
73
79
  home?(): string;
74
80
  /** Reads the CLI version; returns undefined when the binary does not answer. */
75
81
  readVersion?(command: string): Promise<string | undefined>;
82
+ /**
83
+ * Whether a missing executable may be downloaded.
84
+ *
85
+ * A *passive* read (the settings card rendering, the composer badge polling) may
86
+ * not: downloading a ~100 MB archive is an action, and it used to happen behind
87
+ * a page render for a user who had not asked for anything. Only an explicit
88
+ * action - a refresh click, the self-check, or an actual turn - sets this true.
89
+ * Defaults to true so every existing caller keeps the active behaviour.
90
+ */
91
+ download?: boolean;
92
+ }
93
+ /** How long a resolved executable is reused before the disk is read again. */
94
+ export declare const BINARY_CACHE_TTL_MS: number;
95
+ /** One resolution result, exactly as the resolver returned it. */
96
+ export interface AcpBinaryResolution {
97
+ binary?: ResolvedAcpBinary;
98
+ diagnostics: AcpBinaryDiagnostics;
76
99
  }
77
100
  /** Candidate paths the local CLI may live at, most specific first. */
78
101
  export declare function localCliCandidates(home: string, platform: string): string[];
@@ -95,6 +118,51 @@ export declare function resolveAcpBinary(configured: string | null, options?: Ac
95
118
  binary?: ResolvedAcpBinary;
96
119
  diagnostics: AcpBinaryDiagnostics;
97
120
  }>;
121
+ /**
122
+ * A cached answer to "which executable may this line run?".
123
+ *
124
+ * Resolution touches the disk once per candidate and spawns `agy --version` to
125
+ * prove the file answers, which is not something a page render should do. The
126
+ * answer is therefore reused for a few minutes; a change of `binaryPath` and the
127
+ * refresh click invalidate or force it.
128
+ *
129
+ * A cached *passive* answer is never served to an active caller: if the reading
130
+ * was taken without permission to download and found nothing, a turn asking the
131
+ * same question must still be allowed to fetch the release.
132
+ */
133
+ export declare class AcpBinaryCache {
134
+ private readonly resolve;
135
+ private readonly now;
136
+ private readonly ttlMs;
137
+ private value;
138
+ private fetchedAt;
139
+ private withDownload;
140
+ private inflight;
141
+ /** Whether the in-flight read is allowed to install. */
142
+ private inflightDownload;
143
+ /**
144
+ * @param resolve - Reads the real answer; called at most once per window.
145
+ * @param now - Clock seam.
146
+ * @param ttlMs - How long one answer stays valid.
147
+ */
148
+ constructor(resolve: (options: {
149
+ download?: boolean;
150
+ }) => Promise<AcpBinaryResolution>, now?: () => number, ttlMs?: number);
151
+ /** The cached answer, when one is still valid. */
152
+ peek(): AcpBinaryResolution | undefined;
153
+ /**
154
+ * Read the resolution, reusing a valid answer or one in-flight read.
155
+ *
156
+ * @param options - `force` re-reads the disk; `download` allows fetching a release.
157
+ * @returns The executable (when one was found) and what was tried.
158
+ */
159
+ read(options?: {
160
+ force?: boolean;
161
+ download?: boolean;
162
+ }): Promise<AcpBinaryResolution>;
163
+ /** Forget the answer, e.g. because the configured path just changed. */
164
+ invalidate(): void;
165
+ }
98
166
  /**
99
167
  * Download and extract one release.
100
168
  *
@@ -1 +1 @@
1
- {"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/binary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AASH,6FAA6F;AAC7F,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAA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