@eddyskywalker/dsh-chatgpt-subscription 0.71.0 → 0.73.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 (88) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +4 -2
  3. package/lib/client.js +1223 -226
  4. package/lib/client.js.map +1 -1
  5. package/lib/{entry-progress-updates-DmA1u3Wy.js → entry-progress-updates-DMLVID9V.js} +10 -22
  6. package/lib/index.js +5570 -1874
  7. package/lib/plan-mode-pipeline.js +1 -1
  8. package/lib/progress-updates.js +1 -1
  9. package/lib/types/client/antigravity-acp/AntigravityAcpComposerBadge.d.ts +35 -0
  10. package/lib/types/client/antigravity-acp/AntigravityAcpComposerBadge.d.ts.map +1 -0
  11. package/lib/types/client/antigravity-acp/AntigravityAcpSection.d.ts +20 -0
  12. package/lib/types/client/antigravity-acp/AntigravityAcpSection.d.ts.map +1 -0
  13. package/lib/types/client/antigravity-acp/api.d.ts +36 -0
  14. package/lib/types/client/antigravity-acp/api.d.ts.map +1 -0
  15. package/lib/types/client/antigravity-acp/locales.d.ts +545 -0
  16. package/lib/types/client/antigravity-acp/locales.d.ts.map +1 -0
  17. package/lib/types/client/antigravity-acp/route.d.ts +3 -0
  18. package/lib/types/client/antigravity-acp/route.d.ts.map +1 -0
  19. package/lib/types/client/antigravity-acp/styles.d.ts +15 -0
  20. package/lib/types/client/antigravity-acp/styles.d.ts.map +1 -0
  21. package/lib/types/client/command-code/locales.d.ts +2 -2
  22. package/lib/types/client/hub/brand-icons.d.ts +1 -1
  23. package/lib/types/client/hub/brand-icons.d.ts.map +1 -1
  24. package/lib/types/client/hub/providers.d.ts.map +1 -1
  25. package/lib/types/client/index.d.ts +2 -0
  26. package/lib/types/client/index.d.ts.map +1 -1
  27. package/lib/types/client/locales-ru/antigravity-acp.d.ts +10 -0
  28. package/lib/types/client/locales-ru/antigravity-acp.d.ts.map +1 -0
  29. package/lib/types/client/locales-ru/hub.d.ts.map +1 -1
  30. package/lib/types/client/locales-ru/index.d.ts.map +1 -1
  31. package/lib/types/client/locales.d.ts +3 -1
  32. package/lib/types/client/locales.d.ts.map +1 -1
  33. package/lib/types/compat.d.ts +1 -1
  34. package/lib/types/host/agent-preset.d.ts.map +1 -1
  35. package/lib/types/host/antigravity-acp/acp-client.d.ts +136 -0
  36. package/lib/types/host/antigravity-acp/acp-client.d.ts.map +1 -0
  37. package/lib/types/host/antigravity-acp/adapter.d.ts +222 -0
  38. package/lib/types/host/antigravity-acp/adapter.d.ts.map +1 -0
  39. package/lib/types/host/antigravity-acp/auth-cache.d.ts +50 -0
  40. package/lib/types/host/antigravity-acp/auth-cache.d.ts.map +1 -0
  41. package/lib/types/host/antigravity-acp/binary.d.ts +122 -0
  42. package/lib/types/host/antigravity-acp/binary.d.ts.map +1 -0
  43. package/lib/types/host/antigravity-acp/catalog.d.ts +95 -0
  44. package/lib/types/host/antigravity-acp/catalog.d.ts.map +1 -0
  45. package/lib/types/host/antigravity-acp/doctor.d.ts +73 -0
  46. package/lib/types/host/antigravity-acp/doctor.d.ts.map +1 -0
  47. package/lib/types/host/antigravity-acp/errors.d.ts +59 -0
  48. package/lib/types/host/antigravity-acp/errors.d.ts.map +1 -0
  49. package/lib/types/host/antigravity-acp/history.d.ts +76 -0
  50. package/lib/types/host/antigravity-acp/history.d.ts.map +1 -0
  51. package/lib/types/host/antigravity-acp/login.d.ts +59 -0
  52. package/lib/types/host/antigravity-acp/login.d.ts.map +1 -0
  53. package/lib/types/host/antigravity-acp/mcp-bridge.d.ts +131 -0
  54. package/lib/types/host/antigravity-acp/mcp-bridge.d.ts.map +1 -0
  55. package/lib/types/host/antigravity-acp/routes.d.ts +81 -0
  56. package/lib/types/host/antigravity-acp/routes.d.ts.map +1 -0
  57. package/lib/types/host/antigravity-acp/settings.d.ts +81 -0
  58. package/lib/types/host/antigravity-acp/settings.d.ts.map +1 -0
  59. package/lib/types/host/antigravity-acp/subagent.d.ts +96 -0
  60. package/lib/types/host/antigravity-acp/subagent.d.ts.map +1 -0
  61. package/lib/types/host/antigravity-acp/types.d.ts +118 -0
  62. package/lib/types/host/antigravity-acp/types.d.ts.map +1 -0
  63. package/lib/types/host/cache-warmup/contracts.d.ts +8 -2
  64. package/lib/types/host/cache-warmup/contracts.d.ts.map +1 -1
  65. package/lib/types/host/cache-warmup/install.d.ts.map +1 -1
  66. package/lib/types/host/cache-warmup/projection.d.ts.map +1 -1
  67. package/lib/types/host/cache-warmup/result-tool.d.ts.map +1 -1
  68. package/lib/types/host/common/i18n/en.d.ts.map +1 -1
  69. package/lib/types/host/common/i18n/provider-name.d.ts.map +1 -1
  70. package/lib/types/host/common/i18n/ru.d.ts.map +1 -1
  71. package/lib/types/host/common/i18n/zh.d.ts +4 -0
  72. package/lib/types/host/common/i18n/zh.d.ts.map +1 -1
  73. package/lib/types/host/common/model-request-control.d.ts +1 -1
  74. package/lib/types/host/common/model-request-control.d.ts.map +1 -1
  75. package/lib/types/host/common/request-diagnostics.d.ts +2 -2
  76. package/lib/types/host/common/request-diagnostics.d.ts.map +1 -1
  77. package/lib/types/host/dispatch-ledger/protocol.d.ts.map +1 -1
  78. package/lib/types/host/progress-updates/prompt.d.ts +2 -1
  79. package/lib/types/host/progress-updates/prompt.d.ts.map +1 -1
  80. package/lib/types/host/widget-board/line-quota.d.ts +10 -0
  81. package/lib/types/host/widget-board/line-quota.d.ts.map +1 -1
  82. package/lib/types/host/widget-board/line-registry.d.ts.map +1 -1
  83. package/lib/types/index.d.ts.map +1 -1
  84. package/lib/types/shared/antigravity-acp-contracts.d.ts +144 -0
  85. package/lib/types/shared/antigravity-acp-contracts.d.ts.map +1 -0
  86. package/package.json +1 -1
  87. package/presets/dispatch/README.md +11 -11
  88. package/presets/dispatch/agent.cordis.yml +57 -68
package/lib/client.js CHANGED
@@ -563,6 +563,13 @@ window.__ModuleLoader__.load({
563
563
  workbuddy: {
564
564
  mark: "tencent",
565
565
  tile: "#0055E9"
566
+ },
567
+ "antigravity-acp": {
568
+ image: {
569
+ src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDEzNiAxMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHN0eWxlPgogICAgLmZhdi1iZyB7IGZpbGw6ICNGRkZGRkY7IH0KICAgIEBtZWRpYSAocHJlZmVycy1jb2xvci1zY2hlbWU6IGRhcmspIHsKICAgICAgLmZhdi1iZyB7IGZpbGw6ICMwMDAwMDA7IH0KICAgIH0KICA8L3N0eWxlPgogIDxjaXJjbGUgY2xhc3M9ImZhdi1iZyIgY3g9IjY4IiBjeT0iNjgiIHI9IjY1IiBmaWxsPSIjRkZGRkZGIi8+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTIgMTApIj4KICAgIDxwYXRoIGQ9Ik04OS42OTkyIDkzLjY5NUM5NC4zNjU5IDk3LjE5NSAxMDEuMzY2IDk0Ljg2MTcgOTQuOTQ5MiA4OC40NDVDNzUuNjk5MiA2OS43NzgzIDc5Ljc4MjUgMTguNDQ1IDU1Ljg2NTkgMTguNDQ1QzMxLjk0OTIgMTguNDQ1IDM2LjAzMjUgNjkuNzc4MyAxNi43ODI1IDg4LjQ0NUM5Ljc4MjUxIDk1LjQ0NSAxNy4zNjU4IDk3LjE5NSAyMi4wMzI1IDkzLjY5NUM0MC4xMTU5IDgxLjQ0NSAzOC45NDkyIDU5Ljg2MTcgNTUuODY1OSA1OS44NjE3QzcyLjc4MjUgNTkuODYxNyA3MS42MTU5IDgxLjQ0NSA4OS42OTkyIDkzLjY5NVoiIGZpbGw9IiMzMTg2RkYiLz4KICAgIDxtYXNrIGlkPSJhZ19mYXZfbSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTMiIHk9IjE4IiB3aWR0aD0iODUiIGhlaWdodD0iNzgiPgogICAgICA8cGF0aCBkPSJNODkuNjk5MiA5My42OTVDOTQuMzY1OSA5Ny4xOTUgMTAxLjM2NiA5NC44NjE3IDk0Ljk0OTIgODguNDQ1Qzc1LjY5OTIgNjkuNzc4MyA3OS43ODI1IDE4LjQ0NSA1NS44NjU5IDE4LjQ0NUMzMS45NDkyIDE4LjQ0NSAzNi4wMzI1IDY5Ljc3ODMgMTYuNzgyNSA4OC40NDVDOS43ODI1MSA5NS40NDUgMTcuMzY1OCA5Ny4xOTUgMjIuMDMyNSA5My42OTVDNDAuMTE1OSA4MS40NDUgMzguOTQ5MiA1OS44NjE3IDU1Ljg2NTkgNTkuODYxN0M3Mi43ODI1IDU5Ljg2MTcgNzEuNjE1OSA4MS40NDUgODkuNjk5MiA5My42OTVaIiBmaWxsPSJibGFjayIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCNhZ19mYXZfbSkiPgogICAgICA8ZyBmaWx0ZXI9InVybCgjYWdfZmF2X2YwKSI+PGVsbGlwc2UgY3g9IjIyLjc4NzMiIGN5PSIyNi44MDk4IiByeD0iMjIuNzg3MyIgcnk9IjI2LjgwOTgiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjExMjc4NCAwLjk5MzYyIC0wLjk5MzYyIC0wLjExMjc4MSA2Ni4yNDczIC0xNS41MzQ0KSIgZmlsbD0iI0ZGRTQzMiIvPjwvZz4KICAgICAgPGcgZmlsdGVyPSJ1cmwoI2FnX2Zhdl9mMSkiPjxlbGxpcHNlIGN4PSI5Ni40OTEiIGN5PSIzNS4xMjMxIiByeD0iMjkuNTAwNyIgcnk9IjMwLjE0OTIiIHRyYW5zZm9ybT0icm90YXRlKDc2LjkyNDMgOTYuNDkxIDM1LjEyMzEpIiBmaWxsPSIjRkM0MTNEIi8+PC9nPgogICAgICA8ZyBmaWx0ZXI9InVybCgjYWdfZmF2X2YyKSI+PGVsbGlwc2UgY3g9IjkuMDI5ODgiIGN5PSI0MS42NjQ3IiByeD0iMzAuODMyIiByeT0iMzkuOTQxNyIgdHJhbnNmb3JtPSJyb3RhdGUoNzQuMTI1NyA5LjAyOTg4IDQxLjY2NDcpIiBmaWxsPSIjMDBCOTVDIi8+PC9nPgogICAgICA8ZyBmaWx0ZXI9InVybCgjYWdfZmF2X2YzKSI+PGVsbGlwc2UgY3g9IjExLjIyMTIiIGN5PSI0Mi44OTE1IiByeD0iMzAuMjIiIHJ5PSIzMy4yNjk1IiB0cmFuc2Zvcm09InJvdGF0ZSg0NS42MDY1IDExLjIyMTIgNDIuODkxNSkiIGZpbGw9IiMwMEI5NUMiLz48L2c+CiAgICAgIDxnIGZpbHRlcj0idXJsKCNhZ19mYXZfZjQpIj48ZWxsaXBzZSBjeD0iNzUuNzU0NiIgY3k9IjEwNC44MjIiIHJ4PSIyOS4wMTc3IiByeT0iMjcuOTQzIiB0cmFuc2Zvcm09InJvdGF0ZSg3Ni45MjQzIDc1Ljc1NDYgMTA0LjgyMikiIGZpbGw9IiMzMTg2RkYiLz48L2c+CiAgICAgIDxnIGZpbHRlcj0idXJsKCNhZ19mYXZfZjUpIj48ZWxsaXBzZSBjeD0iMzMuNTY2MSIgY3k9IjM1LjQwNDMiIHJ4PSIzMy41NjYxIiByeT0iMzUuNDA0MyIgdHJhbnNmb3JtPSJtYXRyaXgoLTAuNDA5NTM5IDAuOTEyMjkzIC0wLjkxMjI5NCAtMC40MDk1MzcgMTAxLjI1IC0xNS4xNjc0KSIgZmlsbD0iI0ZCQkMwNCIvPjwvZz4KICAgICAgPGcgZmlsdGVyPSJ1cmwoI2FnX2Zhdl9mNikiPjxwYXRoIGQ9Ik0yLjU2ODAyIDE0OS42OTVDLTE1LjgxMTYgMTQyLjQ4IDE1LjU5ODcgODMuMTE2MyAyMy40MDkzIDYzLjIyMDNDMzEuMjIgNDMuMzI0NCA1Mi40NTE0IDMzLjA0NDcgNzAuODMxIDQwLjI2Qzg5LjIxMDcgNDcuNDc1MyAxMTAuOTk2IDg3LjIxNjIgMTAzLjE4NSAxMDcuMTEyQzk1LjM3NDIgMTI3LjAwOCAyMC45NDc3IDE1Ni45MSAyLjU2ODAyIDE0OS42OTVaIiBmaWxsPSIjMzE4NkZGIi8+PC9nPgogICAgICA8ZyBmaWx0ZXI9InVybCgjYWdfZmF2X2Y3KSI+PHBhdGggZD0iTTExMy45MzQgNzUuODA3OUMxMDkuMDEzIDgxLjU1MDkgOTYuMTcyNCA3OC42MjI0IDg1LjI1MyA2OS4yNjY3Qzc0LjMzMzUgNTkuOTExIDY5LjQ3MDQgNDcuNjcxMSA3NC4zOTEgNDEuOTI4Qzc5LjMxMTYgMzYuMTg1IDkyLjE1MjUgMzkuMTEzNiAxMDMuMDcyIDQ4LjQ2OTJDMTEzLjk5MSA1Ny44MjQ5IDExOC44NTUgNzAuMDY0OCAxMTMuOTM0IDc1LjgwNzlaIiBmaWxsPSIjNzQ5QkZGIi8+PC9nPgogICAgICA8ZyBmaWx0ZXI9InVybCgjYWdfZmF2X2Y4KSI+PGVsbGlwc2UgY3g9IjkyLjYxMSIgY3k9IjIzLjc5NjIiIHJ4PSI0NC4yNDExIiByeT0iMjcuNTAxNiIgdHJhbnNmb3JtPSJyb3RhdGUoMzQuMDc2MyA5Mi42MTEgMjMuNzk2MikiIGZpbGw9IiNGQzQxM0QiLz48L2c+CiAgICAgIDxnIGZpbHRlcj0idXJsKCNhZ19mYXZfZjkpIj48ZWxsaXBzZSBjeD0iMjMuNDk0OSIgY3k9IjI5LjU4ODciIHJ4PSIyMy43MDcxIiByeT0iMTMuNzg2OSIgdHJhbnNmb3JtPSJyb3RhdGUoMTEyLjUxNiAyMy40OTQ5IDI5LjU4ODcpIiBmaWxsPSIjRkZFRTQ4Ii8+PC9nPgogICAgPC9nPgogIDwvZz4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9ImFnX2Zhdl9mMCIgeD0iMi40OTM0OCIgeT0iLTI2LjU0MjMiIHdpZHRoPSI2OS4wODk5IiBoZWlnaHQ9IjYxLjI1MjUiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIzLjg5MDM0Ii8+PC9maWx0ZXI+CiAgICA8ZmlsdGVyIGlkPSJhZ19mYXZfZjEiIHg9IjI4Ljc1MjQiIHk9Ii0zMi4wMzMzIiB3aWR0aD0iMTM1LjQ3NyIgaGVpZ2h0PSIxMzQuMzEzIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTguODA3OCIvPjwvZmlsdGVyPgogICAgPGZpbHRlciBpZD0iYWdfZmF2X2YyIiB4PSItNjIuMjg4NCIgeT0iLTIxLjkyNTMiIHdpZHRoPSIxNDIuNjM3IiBoZWlnaHQ9IjEyNy4xOCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjE1Ljk4ODQiLz48L2ZpbHRlcj4KICAgIDxmaWx0ZXIgaWQ9ImFnX2Zhdl9mMyIgeD0iLTUyLjU2OTciIHk9Ii0yMC44MzQ2IiB3aWR0aD0iMTI3LjU4MiIgaGVpZ2h0PSIxMjcuNDUyIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTUuOTg4NCIvPjwvZmlsdGVyPgogICAgPGZpbHRlciBpZD0iYWdfZmF2X2Y0IiB4PSIxNy4zNjE5IiB5PSI0NS40NjQ2IiB3aWR0aD0iMTE2Ljc4NiIgaGVpZ2h0PSIxMTguNzE1IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTUuMTkzNyIvPjwvZmlsdGVyPgogICAgPGZpbHRlciBpZD0iYWdfZmF2X2Y1IiB4PSItNy40NDc2NSIgeT0iLTYwLjQ3MzciIHdpZHRoPSIxMjUuMzAzIiBoZWlnaHQ9IjEyMi44NTgiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMy43Njk4Ii8+PC9maWx0ZXI+CiAgICA8ZmlsdGVyIGlkPSJhZ19mYXZfZjYiIHg9Ii0yNy43MDg2IiB5PSIxMy4zNTk3IiB3aWR0aD0iMTU3LjExOSIgaGVpZ2h0PSIxNjIuMDI5IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTIuMjk3Ii8+PC9maWx0ZXI+CiAgICA8ZmlsdGVyIGlkPSJhZ19mYXZfZjciIHg9IjUwLjQ2MzgiIHk9IjE2Ljk4MSIgd2lkdGg9Ijg3LjM5NzMiIGhlaWdodD0iODMuNzczOCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjExLjAwMzYiLz48L2ZpbHRlcj4KICAgIDxmaWx0ZXIgaWQ9ImFnX2Zhdl9mOCIgeD0iMzQuMjYwNCIgeT0iLTI4LjQ1NyIgd2lkdGg9IjExNi43MDEiIGhlaWdodD0iMTA0LjUwNiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjkuMjkzODUiLz48L2ZpbHRlcj4KICAgIDxmaWx0ZXIgaWQ9ImFnX2Zhdl9mOSIgeD0iLTE1LjE1MjIiIHk9Ii0xNS45NDkzIiB3aWR0aD0iNzcuMjk0MSIgaGVpZ2h0PSI5MS4wNzYiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMS41MDI3Ii8+PC9maWx0ZXI+CiAgPC9kZWZzPgo8L3N2Zz4K",
570
+ fit: "cover"
571
+ },
572
+ tile: "#FFFFFF"
566
573
  }
567
574
  };
568
575
  /** One brand mark at a given box size; the artwork is decorative. */
@@ -952,10 +959,10 @@ window.__ModuleLoader__.load({
952
959
  //#region src/client/api.ts
953
960
  var SubscriptionApi = class {
954
961
  status() {
955
- return request$2(`${ROUTE_PREFIX}/status`);
962
+ return request$3(`${ROUTE_PREFIX}/status`);
956
963
  }
957
964
  startLogin() {
958
- return post$5(`${ROUTE_PREFIX}/login/start`, {});
965
+ return post$6(`${ROUTE_PREFIX}/login/start`, {});
959
966
  }
960
967
  /**
961
968
  * Start a device-code sign-in instead of the browser callback.
@@ -965,14 +972,14 @@ window.__ModuleLoader__.load({
965
972
  * wait for confirmation arrives on the same event stream as any other login.
966
973
  */
967
974
  startDeviceLogin() {
968
- return post$5(`${ROUTE_PREFIX}/login/device/start`, {});
975
+ return post$6(`${ROUTE_PREFIX}/login/device/start`, {});
969
976
  }
970
977
  cancelLogin(loginId) {
971
- return post$5(`${ROUTE_PREFIX}/login/cancel`, { loginId });
978
+ return post$6(`${ROUTE_PREFIX}/login/cancel`, { loginId });
972
979
  }
973
980
  /** Sign out one pooled account; without an id, the active one. */
974
981
  logout(accountId) {
975
- return post$5(`${ROUTE_PREFIX}/logout`, accountId === void 0 ? {} : { accountId });
982
+ return post$6(`${ROUTE_PREFIX}/logout`, accountId === void 0 ? {} : { accountId });
976
983
  }
977
984
  /**
978
985
  * One account-pool action, returning the refreshed status.
@@ -981,7 +988,7 @@ window.__ModuleLoader__.load({
981
988
  * never has to guess what the pool looks like after a change.
982
989
  */
983
990
  accountAction(action, body = {}) {
984
- return post$5(`${ROUTE_PREFIX}/accounts`, {
991
+ return post$6(`${ROUTE_PREFIX}/accounts`, {
985
992
  action,
986
993
  ...body
987
994
  });
@@ -996,11 +1003,11 @@ window.__ModuleLoader__.load({
996
1003
  * call the host always answers with a 400.
997
1004
  */
998
1005
  adoptLocalLogin(source) {
999
- return post$5(`${ROUTE_PREFIX}/adopt`, { source });
1006
+ return post$6(`${ROUTE_PREFIX}/adopt`, { source });
1000
1007
  }
1001
1008
  /** Forget every imported snapshot. The CLIs' own files are never touched. */
1002
1009
  disableAdoptedLocalLogins() {
1003
- return post$5(`${ROUTE_PREFIX}/adopt/disable`, {});
1010
+ return post$6(`${ROUTE_PREFIX}/adopt/disable`, {});
1004
1011
  }
1005
1012
  /**
1006
1013
  * Choose the account-pool store, answering with the refreshed status.
@@ -1009,39 +1016,39 @@ window.__ModuleLoader__.load({
1009
1016
  * back already names the store the pools will read and write from here on.
1010
1017
  */
1011
1018
  setPoolStorage(mode) {
1012
- return post$5(`${ROUTE_PREFIX}/storage`, { mode });
1019
+ return post$6(`${ROUTE_PREFIX}/storage`, { mode });
1013
1020
  }
1014
1021
  refresh() {
1015
- return post$5(`${ROUTE_PREFIX}/token/refresh`, {});
1022
+ return post$6(`${ROUTE_PREFIX}/token/refresh`, {});
1016
1023
  }
1017
1024
  refreshQuota() {
1018
- return post$5(`${ROUTE_PREFIX}/quota/refresh`, {});
1025
+ return post$6(`${ROUTE_PREFIX}/quota/refresh`, {});
1019
1026
  }
1020
1027
  useResetCredit() {
1021
- return post$5(`${ROUTE_PREFIX}/quota/reset-credit/use`, {});
1028
+ return post$6(`${ROUTE_PREFIX}/quota/reset-credit/use`, {});
1022
1029
  }
1023
1030
  testConnection() {
1024
- return post$5(`${ROUTE_PREFIX}/connection/test`, {});
1031
+ return post$6(`${ROUTE_PREFIX}/connection/test`, {});
1025
1032
  }
1026
1033
  updatePreferences(patch) {
1027
- return post$5(`${ROUTE_PREFIX}/preferences/update`, patch);
1034
+ return post$6(`${ROUTE_PREFIX}/preferences/update`, patch);
1028
1035
  }
1029
1036
  /** Every route a compaction summary may be pointed at, read per call. */
1030
1037
  compactionCandidates() {
1031
- return post$5(`${ROUTE_PREFIX}/compaction/candidates`, {});
1038
+ return post$6(`${ROUTE_PREFIX}/compaction/candidates`, {});
1032
1039
  }
1033
1040
  events(loginId) {
1034
1041
  return new EventSource(`${ROUTE_PREFIX}/login/events?loginId=${encodeURIComponent(loginId)}`);
1035
1042
  }
1036
1043
  };
1037
- async function post$5(url, body) {
1038
- return request$2(url, {
1044
+ async function post$6(url, body) {
1045
+ return request$3(url, {
1039
1046
  method: "POST",
1040
1047
  headers: { "content-type": "application/json" },
1041
1048
  body: JSON.stringify(body)
1042
1049
  });
1043
1050
  }
1044
- async function request$2(url, init) {
1051
+ async function request$3(url, init) {
1045
1052
  const response = await fetch(url, {
1046
1053
  ...init,
1047
1054
  credentials: "same-origin"
@@ -3269,7 +3276,7 @@ window.__ModuleLoader__.load({
3269
3276
  //#endregion
3270
3277
  //#region src/client/command-code/locales.ts
3271
3278
  const NS_COMMAND_CODE = "dsh-command-code";
3272
- const zh$14 = {
3279
+ const zh$15 = {
3273
3280
  ...accountPoolZh,
3274
3281
  title: "Command Code",
3275
3282
  pageDesc: "登录 Command Code,管理可用模型、上下文窗口与额度。",
@@ -3337,7 +3344,7 @@ window.__ModuleLoader__.load({
3337
3344
  loginFailed: "登录失败",
3338
3345
  tokens: "tokens"
3339
3346
  };
3340
- const en$14 = {
3347
+ const en$15 = {
3341
3348
  ...accountPoolEn,
3342
3349
  title: "Command Code",
3343
3350
  pageDesc: "Sign in to Command Code and manage models, context windows, and quota.",
@@ -3405,11 +3412,11 @@ window.__ModuleLoader__.load({
3405
3412
  loginFailed: "Sign-in failed",
3406
3413
  tokens: "tokens"
3407
3414
  };
3408
- const dictionaries$14 = {
3409
- zh: zh$14,
3410
- "zh-CN": zh$14,
3411
- en: en$14,
3412
- "en-US": en$14
3415
+ const dictionaries$15 = {
3416
+ zh: zh$15,
3417
+ "zh-CN": zh$15,
3418
+ en: en$15,
3419
+ "en-US": en$15
3413
3420
  };
3414
3421
  //#endregion
3415
3422
  //#region src/client/command-code/CommandCodeSection.tsx
@@ -3450,7 +3457,7 @@ window.__ModuleLoader__.load({
3450
3457
  const [apiKey, setApiKey] = (0, react.useState)("");
3451
3458
  /** Follow-up poll owed while the host refreshes the quota behind an answer. */
3452
3459
  const quotaFollowUp = (0, react.useRef)(null);
3453
- const t = useLineDict(NS_COMMAND_CODE, zh$14);
3460
+ const t = useLineDict(NS_COMMAND_CODE, zh$15);
3454
3461
  const notifyChange = (0, react.useCallback)(() => {
3455
3462
  onModelChange?.();
3456
3463
  loadModelDirectory?.();
@@ -4211,7 +4218,7 @@ window.__ModuleLoader__.load({
4211
4218
  //#endregion
4212
4219
  //#region src/client/kimi-code/locales.ts
4213
4220
  const NS_KIMI_CODE = "dsh-kimi-code";
4214
- const zh$13 = {
4221
+ const zh$14 = {
4215
4222
  ...accountPoolZh,
4216
4223
  title: "Kimi Code",
4217
4224
  pageDesc: "登录 Kimi Code 订阅,管理模型、思考档位、上下文窗口与额度。",
@@ -4398,7 +4405,7 @@ window.__ModuleLoader__.load({
4398
4405
  compactionRouteNoImage: "该模型不接受图片:摘要里的截图会被替换为占位文本。",
4399
4406
  compactionRouteEmpty: "没有可用的线路——先登录任意一条线路再回来设置。"
4400
4407
  };
4401
- const en$13 = {
4408
+ const en$14 = {
4402
4409
  ...accountPoolEn,
4403
4410
  title: "Kimi Code",
4404
4411
  pageDesc: "Sign in to the Kimi Code subscription and manage models, thinking level, context windows, and quota.",
@@ -4585,11 +4592,11 @@ window.__ModuleLoader__.load({
4585
4592
  compactionRouteNoImage: "This model takes no images: screenshots become placeholder text in the summary.",
4586
4593
  compactionRouteEmpty: "No route is available — sign in to one first."
4587
4594
  };
4588
- const dictionaries$13 = {
4589
- zh: zh$13,
4590
- "zh-CN": zh$13,
4591
- en: en$13,
4592
- "en-US": en$13
4595
+ const dictionaries$14 = {
4596
+ zh: zh$14,
4597
+ "zh-CN": zh$14,
4598
+ en: en$14,
4599
+ "en-US": en$14
4593
4600
  };
4594
4601
  //#endregion
4595
4602
  //#region src/shared/kimi-code-contracts.ts
@@ -4701,7 +4708,7 @@ window.__ModuleLoader__.load({
4701
4708
  return `${value}x`;
4702
4709
  }
4703
4710
  function KimiModelCapabilities({ models }) {
4704
- const t = useLineDict(NS_KIMI_CODE, zh$13);
4711
+ const t = useLineDict(NS_KIMI_CODE, zh$14);
4705
4712
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
4706
4713
  className: "dsha-cap-table",
4707
4714
  children: [
@@ -5230,7 +5237,7 @@ window.__ModuleLoader__.load({
5230
5237
  statusGeneration.current += 1;
5231
5238
  setStatus(next);
5232
5239
  }, []);
5233
- const t = useLineDict(NS_KIMI_CODE, zh$13);
5240
+ const t = useLineDict(NS_KIMI_CODE, zh$14);
5234
5241
  const notifyChange = (0, react.useCallback)(() => {
5235
5242
  onModelChange?.();
5236
5243
  loadModelDirectory?.();
@@ -6011,7 +6018,7 @@ window.__ModuleLoader__.load({
6011
6018
  const api$12 = createLineApi(MINIMAX_CODE_ROUTE_PREFIX, "MiniMax Code");
6012
6019
  api$12.request;
6013
6020
  const get$3 = api$12.get;
6014
- const post$4 = api$12.post;
6021
+ const post$5 = api$12.post;
6015
6022
  function messageOf$3(cause) {
6016
6023
  return cause instanceof Error ? cause.message : String(cause);
6017
6024
  }
@@ -6033,12 +6040,12 @@ window.__ModuleLoader__.load({
6033
6040
  * looks the card up and sends the key it found.
6034
6041
  */
6035
6042
  function useResetCard(cardId) {
6036
- return post$4("/reset-cards/use", { cardId });
6043
+ return post$5("/reset-cards/use", { cardId });
6037
6044
  }
6038
6045
  //#endregion
6039
6046
  //#region src/client/minimax-code/locales.ts
6040
6047
  const NS_MINIMAX_CODE = "dsh-minimax-code";
6041
- const zh$12 = {
6048
+ const zh$13 = {
6042
6049
  ...accountPoolZh,
6043
6050
  title: "MiniMax Code",
6044
6051
  pageDesc: "登录 MiniMax Code 编程订阅(设备码 OAuth),复用本机 MiniMax Code 的登录态,管理账号、连接与模型。",
@@ -6236,7 +6243,7 @@ window.__ModuleLoader__.load({
6236
6243
  videoHistoryEncrypted: "已由系统凭据后端加密",
6237
6244
  videoHistoryPlain: "本机没有可用的凭据后端,记录为明文"
6238
6245
  };
6239
- const en$12 = {
6246
+ const en$13 = {
6240
6247
  ...accountPoolEn,
6241
6248
  title: "MiniMax Code",
6242
6249
  pageDesc: "Sign in to the MiniMax Code coding subscription (device-code OAuth) and reuse the local MiniMax Code sign-in to manage the account, connection, and models.",
@@ -6434,11 +6441,11 @@ window.__ModuleLoader__.load({
6434
6441
  videoHistoryEncrypted: "Encrypted by the platform credential backend",
6435
6442
  videoHistoryPlain: "No credential backend on this host; stored as plain text"
6436
6443
  };
6437
- const dictionaries$12 = {
6438
- zh: zh$12,
6439
- "zh-CN": zh$12,
6440
- en: en$12,
6441
- "en-US": en$12
6444
+ const dictionaries$13 = {
6445
+ zh: zh$13,
6446
+ "zh-CN": zh$13,
6447
+ en: en$13,
6448
+ "en-US": en$13
6442
6449
  };
6443
6450
  //#endregion
6444
6451
  //#region src/client/minimax-code/useMinimaxCodeSection.ts
@@ -6452,7 +6459,7 @@ window.__ModuleLoader__.load({
6452
6459
  * rather than inferred from the JSX.
6453
6460
  */
6454
6461
  /** The card's own dictionary; stable identity keeps effect dependencies intact. */
6455
- const fallbackTranslate$7 = (key) => zh$12[key];
6462
+ const fallbackTranslate$7 = (key) => zh$13[key];
6456
6463
  /**
6457
6464
  * The shared pool card's labels, resolved through this card's dictionary.
6458
6465
  *
@@ -6602,7 +6609,7 @@ window.__ModuleLoader__.load({
6602
6609
  const timer = window.setInterval(() => {
6603
6610
  (async () => {
6604
6611
  try {
6605
- const poll = await post$4("/login/poll", { loginId });
6612
+ const poll = await post$5("/login/poll", { loginId });
6606
6613
  if (stopped || poll.status === "pending") return;
6607
6614
  stopped = true;
6608
6615
  window.clearInterval(timer);
@@ -6643,7 +6650,7 @@ window.__ModuleLoader__.load({
6643
6650
  quotaRequested.current = true;
6644
6651
  (async () => {
6645
6652
  try {
6646
- setStatus(await post$4("/quota"));
6653
+ setStatus(await post$5("/quota"));
6647
6654
  } catch {}
6648
6655
  })();
6649
6656
  }, [authenticated, status?.quota]);
@@ -6711,7 +6718,7 @@ window.__ModuleLoader__.load({
6711
6718
  setError(null);
6712
6719
  setConnectionNotice(null);
6713
6720
  setCopied(false);
6714
- const started = await post$4("/login/start");
6721
+ const started = await post$5("/login/start");
6715
6722
  const next = started.login ?? (typeof started.loginId === "string" ? started : void 0);
6716
6723
  if (next === void 0) {
6717
6724
  setError(t("loginFailed"));
@@ -6729,7 +6736,7 @@ window.__ModuleLoader__.load({
6729
6736
  setFlow(null);
6730
6737
  if (pending === null) return;
6731
6738
  try {
6732
- await post$4("/login/cancel", { loginId: pending.loginId });
6739
+ await post$5("/login/cancel", { loginId: pending.loginId });
6733
6740
  } catch (cause) {
6734
6741
  setError(messageOf$3(cause));
6735
6742
  }
@@ -6749,7 +6756,7 @@ window.__ModuleLoader__.load({
6749
6756
  setError(null);
6750
6757
  setConnectionNotice(null);
6751
6758
  setFlow(null);
6752
- const result = await post$4("/logout");
6759
+ const result = await post$5("/logout");
6753
6760
  if (result.native === true) setConnectionNotice(result.error ?? t("logoutOwnedByApp"));
6754
6761
  await loadStatus(true);
6755
6762
  onModelChange?.();
@@ -6780,7 +6787,7 @@ window.__ModuleLoader__.load({
6780
6787
  try {
6781
6788
  setBusy(action);
6782
6789
  setError(null);
6783
- await post$4("/accounts", {
6790
+ await post$5("/accounts", {
6784
6791
  action,
6785
6792
  accountId
6786
6793
  });
@@ -6797,7 +6804,7 @@ window.__ModuleLoader__.load({
6797
6804
  try {
6798
6805
  setBusy("strategy");
6799
6806
  setError(null);
6800
- await post$4("/accounts", {
6807
+ await post$5("/accounts", {
6801
6808
  action: "strategy",
6802
6809
  strategy
6803
6810
  });
@@ -6811,7 +6818,7 @@ window.__ModuleLoader__.load({
6811
6818
  const applyEnabled = async (enabledModelIds) => {
6812
6819
  try {
6813
6820
  setError(null);
6814
- const updated = await post$4("/models", { enabledModelIds });
6821
+ const updated = await post$5("/models", { enabledModelIds });
6815
6822
  setStatus(updated);
6816
6823
  setContextDrafts(contextDraftsFor(updated));
6817
6824
  onModelChange?.();
@@ -6824,7 +6831,7 @@ window.__ModuleLoader__.load({
6824
6831
  try {
6825
6832
  setBusy("checkin");
6826
6833
  setError(null);
6827
- const updated = await post$4("/settings", { checkin: { enabled } });
6834
+ const updated = await post$5("/settings", { checkin: { enabled } });
6828
6835
  setStatus(updated);
6829
6836
  } catch (cause) {
6830
6837
  setError(messageOf$3(cause));
@@ -6837,7 +6844,7 @@ window.__ModuleLoader__.load({
6837
6844
  try {
6838
6845
  setBusy("checkin");
6839
6846
  setError(null);
6840
- const updated = await post$4("/checkin/now");
6847
+ const updated = await post$5("/checkin/now");
6841
6848
  setStatus(updated);
6842
6849
  } catch (cause) {
6843
6850
  setError(messageOf$3(cause));
@@ -6858,7 +6865,7 @@ window.__ModuleLoader__.load({
6858
6865
  const updateEffort = async (effort) => {
6859
6866
  try {
6860
6867
  setError(null);
6861
- const updated = await post$4("/settings", { defaultReasoningEffort: effort });
6868
+ const updated = await post$5("/settings", { defaultReasoningEffort: effort });
6862
6869
  setStatus(updated);
6863
6870
  onModelChange?.();
6864
6871
  } catch (cause) {
@@ -6875,7 +6882,7 @@ window.__ModuleLoader__.load({
6875
6882
  try {
6876
6883
  setSavingModel(modelId);
6877
6884
  setError(null);
6878
- const updated = await post$4("/settings", { contextWindowOverrides: { [modelId]: parsed } });
6885
+ const updated = await post$5("/settings", { contextWindowOverrides: { [modelId]: parsed } });
6879
6886
  setStatus(updated);
6880
6887
  setContextDrafts((prev) => ({
6881
6888
  ...prev,
@@ -6892,7 +6899,7 @@ window.__ModuleLoader__.load({
6892
6899
  try {
6893
6900
  setSavingModel(modelId);
6894
6901
  setError(null);
6895
- const updated = await post$4("/settings", { contextWindowOverrides: { [modelId]: null } });
6902
+ const updated = await post$5("/settings", { contextWindowOverrides: { [modelId]: null } });
6896
6903
  setStatus(updated);
6897
6904
  const model = updated.models.find((entry) => entry.id === modelId);
6898
6905
  if (model !== void 0) setContextDrafts((prev) => ({
@@ -6911,7 +6918,7 @@ window.__ModuleLoader__.load({
6911
6918
  if (ids.length === 0) return;
6912
6919
  try {
6913
6920
  setError(null);
6914
- const updated = await post$4("/settings", { contextWindowOverrides: Object.fromEntries(ids.map((id) => [id, null])) });
6921
+ const updated = await post$5("/settings", { contextWindowOverrides: Object.fromEntries(ids.map((id) => [id, null])) });
6915
6922
  setStatus(updated);
6916
6923
  setContextDrafts(contextDraftsFor(updated));
6917
6924
  onModelChange?.();
@@ -6924,7 +6931,7 @@ window.__ModuleLoader__.load({
6924
6931
  try {
6925
6932
  setBusy("quota");
6926
6933
  setError(null);
6927
- setStatus(await post$4("/quota"));
6934
+ setStatus(await post$5("/quota"));
6928
6935
  } catch (cause) {
6929
6936
  setError(messageOf$3(cause));
6930
6937
  } finally {
@@ -6936,7 +6943,7 @@ window.__ModuleLoader__.load({
6936
6943
  setBusy("test");
6937
6944
  setError(null);
6938
6945
  setConnectionNotice(null);
6939
- const result = await post$4("/test");
6946
+ const result = await post$5("/test");
6940
6947
  if (result.ok === true) {
6941
6948
  setConnectionNotice(result.model === void 0 || result.model === "" ? t("testSuccess") : t("testSuccessModel").replace("{model}", result.model));
6942
6949
  return;
@@ -8510,7 +8517,7 @@ window.__ModuleLoader__.load({
8510
8517
  * 键名重合的会被渲染成 ChatGPT 的措辞,不重合的会把键名本身打印出来)。
8511
8518
  */
8512
8519
  const NS_GLM_CODING_PLAN = "dsh-glm-coding-plan";
8513
- const zh$11 = {
8520
+ const zh$12 = {
8514
8521
  ...accountPoolZh,
8515
8522
  title: "GLM(ZCode 账号)",
8516
8523
  pageDesc: "用 ZCode 账号授权接入 GLM Coding Plan(国区 bigmodel.cn / 国际区 z.ai),管理账号池、套餐额度与模型勾选。两个区域的凭据各自独立,池内可以同时存在两区账号。",
@@ -8604,7 +8611,7 @@ window.__ModuleLoader__.load({
8604
8611
  quotaAllowanceUnknown: "未判定",
8605
8612
  quotaAllowanceHint: "登录时探活认定的额度来源。「免费体验额度」指新用户注册后自动获得、首次使用起 5 天内每天 800 万 token 的体验额度。"
8606
8613
  };
8607
- const en$11 = {
8614
+ const en$12 = {
8608
8615
  ...accountPoolEn,
8609
8616
  title: "GLM (ZCode account)",
8610
8617
  pageDesc: "Sign in with a ZCode account to reach GLM Coding Plan (China bigmodel.cn / International z.ai), and manage the account pool, plan quota and model selection. The two regions hold independent credentials, so a pool can carry accounts from both.",
@@ -8698,11 +8705,11 @@ window.__ModuleLoader__.load({
8698
8705
  quotaAllowanceUnknown: "Undetermined",
8699
8706
  quotaAllowanceHint: "The allowance source established by the sign-in probe. “Free trial allowance” means 8M tokens per day for 5 days from first use, granted automatically to new accounts."
8700
8707
  };
8701
- const dictionaries$11 = {
8702
- zh: zh$11,
8703
- "zh-CN": zh$11,
8704
- en: en$11,
8705
- "en-US": en$11
8708
+ const dictionaries$12 = {
8709
+ zh: zh$12,
8710
+ "zh-CN": zh$12,
8711
+ en: en$12,
8712
+ "en-US": en$12
8706
8713
  };
8707
8714
  /** 一个配额窗口的键到「窗口长度(分钟)」的映射。 */
8708
8715
  const QUOTA_WINDOW_MINUTES$1 = {
@@ -8763,7 +8770,7 @@ window.__ModuleLoader__.load({
8763
8770
  */
8764
8771
  const api$11 = createLineApi(GLM_CODING_PLAN_ROUTE_PREFIX, GLM_CODING_PLAN_PROVIDER_NAME);
8765
8772
  const get$2 = api$11.get;
8766
- const post$3 = api$11.post;
8773
+ const post$4 = api$11.post;
8767
8774
  function messageOf$2(cause) {
8768
8775
  return cause instanceof Error ? cause.message : String(cause);
8769
8776
  }
@@ -8783,7 +8790,7 @@ window.__ModuleLoader__.load({
8783
8790
  /** 登录状态机的轮询节奏。真实超时与间隔由 host 拥有,卡片只是跟随。 */
8784
8791
  const LOGIN_POLL_INTERVAL_MS$2 = 2e3;
8785
8792
  /** 本卡片的字典;身份稳定,依赖它的 effect 才不会每次渲染重建。 */
8786
- const fallbackTranslate$6 = (key) => zh$11[key];
8793
+ const fallbackTranslate$6 = (key) => zh$12[key];
8787
8794
  /**
8788
8795
  * 共享账号池卡片需要的标签集,按本卡片的字典逐键查出来。
8789
8796
  *
@@ -8931,7 +8938,7 @@ window.__ModuleLoader__.load({
8931
8938
  setError(null);
8932
8939
  setConnection(null);
8933
8940
  setPasteValue("");
8934
- const flow = await post$3("/login/start", { region: loginRegion });
8941
+ const flow = await post$4("/login/start", { region: loginRegion });
8935
8942
  await loadStatus(true);
8936
8943
  if (flow.authorizeUrl !== void 0 && flow.authorizeUrl !== "") try {
8937
8944
  window.open(flow.authorizeUrl, "_blank", "noopener,noreferrer");
@@ -8946,7 +8953,7 @@ window.__ModuleLoader__.load({
8946
8953
  try {
8947
8954
  setBusy("login:cancel");
8948
8955
  setError(null);
8949
- await post$3("/login/cancel", { region });
8956
+ await post$4("/login/cancel", { region });
8950
8957
  await loadStatus(true);
8951
8958
  } catch (cause) {
8952
8959
  setError(messageOf$2(cause));
@@ -8962,7 +8969,7 @@ window.__ModuleLoader__.load({
8962
8969
  try {
8963
8970
  setBusy("login-manual");
8964
8971
  setError(null);
8965
- setStatus(await post$3("/login/manual", {
8972
+ setStatus(await post$4("/login/manual", {
8966
8973
  region,
8967
8974
  code: pasteValue.trim()
8968
8975
  }));
@@ -8978,7 +8985,7 @@ window.__ModuleLoader__.load({
8978
8985
  try {
8979
8986
  setBusy("adopt");
8980
8987
  setError(null);
8981
- const result = await post$3("/adopt", { region });
8988
+ const result = await post$4("/adopt", { region });
8982
8989
  setAdoptResult(result);
8983
8990
  await loadStatus(true);
8984
8991
  if (result.adopted) onModelChange?.();
@@ -8992,7 +8999,7 @@ window.__ModuleLoader__.load({
8992
8999
  try {
8993
9000
  setBusy(`account:${action}:${accountId}`);
8994
9001
  setError(null);
8995
- setStatus(await post$3("/accounts", {
9002
+ setStatus(await post$4("/accounts", {
8996
9003
  action,
8997
9004
  accountId
8998
9005
  }));
@@ -9007,7 +9014,7 @@ window.__ModuleLoader__.load({
9007
9014
  try {
9008
9015
  setBusy("strategy");
9009
9016
  setError(null);
9010
- setStatus(await post$3("/accounts", {
9017
+ setStatus(await post$4("/accounts", {
9011
9018
  action: "strategy",
9012
9019
  strategy
9013
9020
  }));
@@ -9021,7 +9028,7 @@ window.__ModuleLoader__.load({
9021
9028
  const applyEnabledModels = async (enabledModelIds) => {
9022
9029
  try {
9023
9030
  setError(null);
9024
- const updated = await post$3("/settings", { enabledModelIds });
9031
+ const updated = await post$4("/settings", { enabledModelIds });
9025
9032
  setStatus(updated);
9026
9033
  setContextDrafts(contextDraftsFor(updated));
9027
9034
  onModelChange?.();
@@ -9049,7 +9056,7 @@ window.__ModuleLoader__.load({
9049
9056
  try {
9050
9057
  setSavingModel(modelId);
9051
9058
  setError(null);
9052
- setStatus(await post$3("/settings", { contextWindowOverrides: { [modelId]: parsed } }));
9059
+ setStatus(await post$4("/settings", { contextWindowOverrides: { [modelId]: parsed } }));
9053
9060
  setContextDrafts((previous) => ({
9054
9061
  ...previous,
9055
9062
  [modelId]: formatCapacity$1(parsed)
@@ -9065,7 +9072,7 @@ window.__ModuleLoader__.load({
9065
9072
  try {
9066
9073
  setSavingModel(modelId);
9067
9074
  setError(null);
9068
- const updated = await post$3("/settings", { contextWindowOverrides: { [modelId]: null } });
9075
+ const updated = await post$4("/settings", { contextWindowOverrides: { [modelId]: null } });
9069
9076
  setStatus(updated);
9070
9077
  const model = updated.models.find((entry) => entry.id === modelId);
9071
9078
  if (model !== void 0) setContextDrafts((previous) => ({
@@ -9084,7 +9091,7 @@ window.__ModuleLoader__.load({
9084
9091
  if (ids.length === 0) return;
9085
9092
  try {
9086
9093
  setError(null);
9087
- const updated = await post$3("/settings", { contextWindowOverrides: Object.fromEntries(ids.map((id) => [id, null])) });
9094
+ const updated = await post$4("/settings", { contextWindowOverrides: Object.fromEntries(ids.map((id) => [id, null])) });
9088
9095
  setStatus(updated);
9089
9096
  setContextDrafts(contextDraftsFor(updated));
9090
9097
  onModelChange?.();
@@ -9096,7 +9103,7 @@ window.__ModuleLoader__.load({
9096
9103
  try {
9097
9104
  setBusy("quota");
9098
9105
  setError(null);
9099
- setStatus(await post$3("/quota", {}));
9106
+ setStatus(await post$4("/quota", {}));
9100
9107
  } catch (cause) {
9101
9108
  setError(messageOf$2(cause));
9102
9109
  } finally {
@@ -9107,7 +9114,7 @@ window.__ModuleLoader__.load({
9107
9114
  try {
9108
9115
  setBusy("catalog");
9109
9116
  setError(null);
9110
- setStatus(await post$3("/catalog/refresh", {}));
9117
+ setStatus(await post$4("/catalog/refresh", {}));
9111
9118
  } catch (cause) {
9112
9119
  setError(messageOf$2(cause));
9113
9120
  } finally {
@@ -9118,7 +9125,7 @@ window.__ModuleLoader__.load({
9118
9125
  try {
9119
9126
  setBusy("connection");
9120
9127
  setError(null);
9121
- setConnection(await post$3("/connection/test", {}));
9128
+ setConnection(await post$4("/connection/test", {}));
9122
9129
  } catch (cause) {
9123
9130
  setError(messageOf$2(cause));
9124
9131
  } finally {
@@ -9209,7 +9216,7 @@ window.__ModuleLoader__.load({
9209
9216
  const { status, loading, busy, error, connection, adoptResult, pasteValue, region, pasteOpen, contextDrafts, savingModel } = state;
9210
9217
  const { accounts, models, contextModels, overrideCount, login, quota, authenticated, poolLabels } = derived;
9211
9218
  const { setRegion, login: startLogin, cancelLogin, submitPaste, setPasteValue, togglePaste, adopt, clearAdoptResult, accountAction, setStrategy, toggleModel, setAllModels, saveContextWindow, resetContextWindow, resetAllContextWindows, updateContextDraft, refreshQuota, refreshCatalog, testConnection } = actions;
9212
- const t = useLineDict(NS_GLM_CODING_PLAN, zh$11);
9219
+ const t = useLineDict(NS_GLM_CODING_PLAN, zh$12);
9213
9220
  if (loading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9214
9221
  className: "dsha-page",
9215
9222
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -9674,7 +9681,7 @@ window.__ModuleLoader__.load({
9674
9681
  * provider — the same reason every sibling line has one.
9675
9682
  */
9676
9683
  const NS_CLAUDE = "dsh-claude";
9677
- const zh$10 = {
9684
+ const zh$11 = {
9678
9685
  ...accountPoolZh,
9679
9686
  title: "Claude(订阅)",
9680
9687
  pageDesc: "登录 Claude Pro/Max 订阅,管理模型、思考档位、上下文窗口与额度。",
@@ -9791,7 +9798,7 @@ window.__ModuleLoader__.load({
9791
9798
  copy: "复制",
9792
9799
  copied: "已复制"
9793
9800
  };
9794
- const en$10 = {
9801
+ const en$11 = {
9795
9802
  ...accountPoolEn,
9796
9803
  title: "Claude (subscription)",
9797
9804
  pageDesc: "Sign in to a Claude Pro/Max subscription and manage models, thinking levels, context windows and quota.",
@@ -9908,11 +9915,11 @@ window.__ModuleLoader__.load({
9908
9915
  copy: "Copy",
9909
9916
  copied: "Copied"
9910
9917
  };
9911
- const dictionaries$10 = {
9912
- zh: zh$10,
9913
- "zh-CN": zh$10,
9914
- en: en$10,
9915
- "en-US": en$10
9918
+ const dictionaries$11 = {
9919
+ zh: zh$11,
9920
+ "zh-CN": zh$11,
9921
+ en: en$11,
9922
+ "en-US": en$11
9916
9923
  };
9917
9924
  //#endregion
9918
9925
  //#region src/client/claude/useClaudeSection.ts
@@ -9946,7 +9953,7 @@ window.__ModuleLoader__.load({
9946
9953
  const [connection, setConnection] = (0, react.useState)(null);
9947
9954
  /** Follow-up poll owed while the host refreshes the quota behind an answer. */
9948
9955
  const quotaFollowUp = (0, react.useRef)(null);
9949
- const t = useLineDict(NS_CLAUDE, zh$10);
9956
+ const t = useLineDict(NS_CLAUDE, zh$11);
9950
9957
  const notifyChange = (0, react.useCallback)(() => {
9951
9958
  onModelChange?.();
9952
9959
  loadModelDirectory?.();
@@ -10393,11 +10400,11 @@ window.__ModuleLoader__.load({
10393
10400
  * out here would hide a choice the host would accept and a catalog may expose.
10394
10401
  */
10395
10402
  const EFFORT_LABELS$2 = {
10396
- low: zh$10.effortLow,
10397
- medium: zh$10.effortMedium,
10398
- high: zh$10.effortHigh,
10399
- xhigh: zh$10.effortXHigh,
10400
- max: zh$10.effortMax
10403
+ low: zh$11.effortLow,
10404
+ medium: zh$11.effortMedium,
10405
+ high: zh$11.effortHigh,
10406
+ xhigh: zh$11.effortXHigh,
10407
+ max: zh$11.effortMax
10401
10408
  };
10402
10409
  /** One-line capability summary shown as a model pill's hover title. */
10403
10410
  function modelFacts(model, t) {
@@ -10418,7 +10425,7 @@ window.__ModuleLoader__.load({
10418
10425
  const { status, loading, busy, error, flow, connection, pasteValue, contextDrafts, savingModel } = state;
10419
10426
  const { accounts, hasAdopted, contextModels, overrideCount, quota, windows, poolLabels } = derived;
10420
10427
  const { login, cancelLogin, submitPaste, adopt, stopImporting, accountAction, setStrategy, relogin, refreshQuota, refreshCatalog, testConnection, toggleModel, setAllModels, updateEffort, updateCacheTtl, saveContextWindow, resetContextWindow, resetAllContextWindows, updateContextDraft, setPasteValue } = actions;
10421
- const t = useLineDict(NS_CLAUDE, zh$10);
10428
+ const t = useLineDict(NS_CLAUDE, zh$11);
10422
10429
  if (loading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10423
10430
  className: "dsha-page",
10424
10431
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -10900,7 +10907,7 @@ window.__ModuleLoader__.load({
10900
10907
  ];
10901
10908
  //#endregion
10902
10909
  //#region src/client/ollama/api.ts
10903
- const API$6 = "/ollama/api";
10910
+ const API$9 = "/ollama/api";
10904
10911
  /**
10905
10912
  * The Ollama settings API, as the card uses it.
10906
10913
  *
@@ -10909,7 +10916,7 @@ window.__ModuleLoader__.load({
10909
10916
  */
10910
10917
  var OllamaApi = class {
10911
10918
  status() {
10912
- return request(`${API$6}/status`);
10919
+ return request$1(`${API$9}/status`);
10913
10920
  }
10914
10921
  /**
10915
10922
  * One pool action, returning the refreshed status.
@@ -10918,13 +10925,13 @@ window.__ModuleLoader__.load({
10918
10925
  * never has to guess what the pool looks like after a change.
10919
10926
  */
10920
10927
  accountAction(action, body = {}) {
10921
- return post$2(`${API$6}/accounts`, {
10928
+ return post$3(`${API$9}/accounts`, {
10922
10929
  action,
10923
10930
  ...body
10924
10931
  });
10925
10932
  }
10926
10933
  refreshCatalog() {
10927
- return post$2(`${API$6}/catalog/refresh`, {});
10934
+ return post$3(`${API$9}/catalog/refresh`, {});
10928
10935
  }
10929
10936
  /**
10930
10937
  * Store the default thinking level, answering with the refreshed status.
@@ -10939,7 +10946,7 @@ window.__ModuleLoader__.load({
10939
10946
  * explicitly rather than left out of the body.
10940
10947
  */
10941
10948
  setDefaultReasoningEffort(effort) {
10942
- return post$2(`${API$6}/settings`, { defaultReasoningEffort: effort }).then(() => this.status());
10949
+ return post$3(`${API$9}/settings`, { defaultReasoningEffort: effort }).then(() => this.status());
10943
10950
  }
10944
10951
  /**
10945
10952
  * Replace the enabled-model selection.
@@ -10949,22 +10956,22 @@ window.__ModuleLoader__.load({
10949
10956
  * selection before it could answer 'turn this one off'.
10950
10957
  */
10951
10958
  setEnabledModels(enabledModelIds) {
10952
- return post$2(`${API$6}/models`, { enabledModelIds });
10959
+ return post$3(`${API$9}/models`, { enabledModelIds });
10953
10960
  }
10954
10961
  };
10955
- async function post$2(url, body) {
10956
- return request(url, {
10962
+ async function post$3(url, body) {
10963
+ return request$1(url, {
10957
10964
  method: "POST",
10958
10965
  headers: { "Content-Type": "application/json" },
10959
10966
  body: JSON.stringify(body)
10960
10967
  });
10961
10968
  }
10962
- async function request(url, init) {
10969
+ async function request$1(url, init) {
10963
10970
  const response = await fetch(url, {
10964
10971
  ...init,
10965
10972
  credentials: "same-origin"
10966
10973
  });
10967
- const envelope = await readEnvelope(response);
10974
+ const envelope = await readEnvelope$1(response);
10968
10975
  if (!response.ok || !envelope.ok) throw new Error(envelope.error || `HTTP ${response.status}`);
10969
10976
  return envelope.value;
10970
10977
  }
@@ -10982,34 +10989,34 @@ window.__ModuleLoader__.load({
10982
10989
  * The body is never echoed back: it can be an HTML page of arbitrary size, and
10983
10990
  * its content-type alone is what identifies the failure.
10984
10991
  */
10985
- async function readEnvelope(response) {
10992
+ async function readEnvelope$1(response) {
10986
10993
  let text;
10987
10994
  try {
10988
10995
  text = await response.text();
10989
10996
  } catch (cause) {
10990
- throw new Error(unreadable(response, cause));
10997
+ throw new Error(unreadable$1(response, cause));
10991
10998
  }
10992
- if (text.trim() === "") throw new Error(unreadable(response));
10999
+ if (text.trim() === "") throw new Error(unreadable$1(response));
10993
11000
  let parsed;
10994
11001
  try {
10995
11002
  parsed = JSON.parse(text);
10996
11003
  } catch {
10997
- throw new Error(unreadable(response));
11004
+ throw new Error(unreadable$1(response));
10998
11005
  }
10999
- if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) throw new Error(unreadable(response));
11006
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) throw new Error(unreadable$1(response));
11000
11007
  const envelope = parsed;
11001
11008
  if (typeof envelope.error !== "string") delete envelope.error;
11002
11009
  return envelope;
11003
11010
  }
11004
11011
  /** The one sentence every unreadable answer turns into. */
11005
- function unreadable(response, cause) {
11012
+ function unreadable$1(response, cause) {
11006
11013
  const kind = response.headers.get("content-type") ?? "no content-type";
11007
11014
  return `The Ollama settings API answered with ${response.status} and no JSON body (${kind})` + (cause instanceof Error ? `: ${cause.message}` : "") + ". The Host log holds the underlying error.";
11008
11015
  }
11009
11016
  //#endregion
11010
11017
  //#region src/client/ollama/locales.ts
11011
11018
  const NS_OLLAMA = "dsh-ollama";
11012
- const zh$9 = {
11019
+ const zh$10 = {
11013
11020
  ...accountPoolZh,
11014
11021
  relogin: "更换 Key",
11015
11022
  needsRelogin: "Key 已失效",
@@ -11061,7 +11068,7 @@ window.__ModuleLoader__.load({
11061
11068
  usageNone: "尚无请求",
11062
11069
  usageHint: "按 Ollama 每次响应自带的 token 计数本地累加。"
11063
11070
  };
11064
- const en$9 = {
11071
+ const en$10 = {
11065
11072
  ...accountPoolEn,
11066
11073
  relogin: "Replace Key",
11067
11074
  needsRelogin: "Key rejected",
@@ -11113,15 +11120,15 @@ window.__ModuleLoader__.load({
11113
11120
  usageNone: "No requests yet",
11114
11121
  usageHint: "Summed locally from the token counts Ollama returns on each response."
11115
11122
  };
11116
- const dictionaries$9 = {
11117
- zh: zh$9,
11118
- "zh-CN": zh$9,
11119
- en: en$9,
11120
- "en-US": en$9
11123
+ const dictionaries$10 = {
11124
+ zh: zh$10,
11125
+ "zh-CN": zh$10,
11126
+ en: en$10,
11127
+ "en-US": en$10
11121
11128
  };
11122
11129
  //#endregion
11123
11130
  //#region src/client/ollama/OllamaSection.tsx
11124
- const API$5 = new OllamaApi();
11131
+ const API$8 = new OllamaApi();
11125
11132
  /**
11126
11133
  * What each thinking level says in this card.
11127
11134
  *
@@ -11143,7 +11150,7 @@ window.__ModuleLoader__.load({
11143
11150
  * no grouping is unreadable at card width, and these are running totals that only
11144
11151
  * ever grow, so rounding is fine but commas are not optional.
11145
11152
  */
11146
- function formatTokens(value) {
11153
+ function formatTokens$1(value) {
11147
11154
  if (!Number.isFinite(value) || value < 0) return "—";
11148
11155
  if (value < 1e3) return String(Math.floor(value));
11149
11156
  if (value < 1e6) return `${(value / 1e3).toFixed(value < 1e4 ? 1 : 0)}K`;
@@ -11169,7 +11176,7 @@ window.__ModuleLoader__.load({
11169
11176
  const [enabled, setEnabled] = (0, react.useState)(null);
11170
11177
  const reload = (0, react.useCallback)(async () => {
11171
11178
  try {
11172
- const next = await API$5.status();
11179
+ const next = await API$8.status();
11173
11180
  setStatus(next);
11174
11181
  setEnabled(next.enabledModelIds == null ? null : new Set(next.enabledModelIds));
11175
11182
  } catch (cause) {
@@ -11196,7 +11203,7 @@ window.__ModuleLoader__.load({
11196
11203
  const trimmed = key.trim();
11197
11204
  if (trimmed === "") return;
11198
11205
  run("add", async () => {
11199
- const next = await API$5.accountAction("add", {
11206
+ const next = await API$8.accountAction("add", {
11200
11207
  apiKey: trimmed,
11201
11208
  ...alias.trim() === "" ? {} : { alias: alias.trim() }
11202
11209
  });
@@ -11212,8 +11219,8 @@ window.__ModuleLoader__.load({
11212
11219
  ]);
11213
11220
  const syncCatalog = (0, react.useCallback)(() => {
11214
11221
  run("catalog", async () => {
11215
- await API$5.refreshCatalog();
11216
- return API$5.status();
11222
+ await API$8.refreshCatalog();
11223
+ return API$8.status();
11217
11224
  });
11218
11225
  }, [run]);
11219
11226
  const isModelEnabled = (0, react.useCallback)((id) => {
@@ -11221,9 +11228,9 @@ window.__ModuleLoader__.load({
11221
11228
  }, [enabled]);
11222
11229
  const applyEnabled = (0, react.useCallback)((next) => {
11223
11230
  run("models", async () => {
11224
- const result = await API$5.setEnabledModels(next);
11231
+ const result = await API$8.setEnabledModels(next);
11225
11232
  setEnabled(result.enabledModelIds == null ? null : new Set(result.enabledModelIds));
11226
- return API$5.status();
11233
+ return API$8.status();
11227
11234
  });
11228
11235
  }, [run]);
11229
11236
  const toggleModel = (0, react.useCallback)((id, checked) => {
@@ -11241,9 +11248,9 @@ window.__ModuleLoader__.load({
11241
11248
  applyEnabled(selectAll ? null : []);
11242
11249
  }, [applyEnabled]);
11243
11250
  const setEffort = (0, react.useCallback)((value) => {
11244
- run("effort", () => API$5.setDefaultReasoningEffort(value === "" ? null : value));
11251
+ run("effort", () => API$8.setDefaultReasoningEffort(value === "" ? null : value));
11245
11252
  }, [run]);
11246
- const t = useLineDict(NS_OLLAMA, zh$9);
11253
+ const t = useLineDict(NS_OLLAMA, zh$10);
11247
11254
  const pool = status?.pool;
11248
11255
  const models = status?.models ?? [];
11249
11256
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
@@ -11272,10 +11279,10 @@ window.__ModuleLoader__.load({
11272
11279
  labels: t,
11273
11280
  busy,
11274
11281
  onLogin: () => setShowKeyForm((value) => !value),
11275
- onSetPrimary: (id) => void run("set-primary", () => API$5.accountAction("set-primary", { accountId: id })),
11276
- onDelete: (id) => void run("delete", () => API$5.accountAction("delete", { accountId: id })),
11277
- onClearCooldown: (id) => void run("clear-cooldown", () => API$5.accountAction("clear-cooldown", { accountId: id })),
11278
- onSetStrategy: (strategy) => void run("strategy", () => API$5.accountAction("strategy", { strategy })),
11282
+ onSetPrimary: (id) => void run("set-primary", () => API$8.accountAction("set-primary", { accountId: id })),
11283
+ onDelete: (id) => void run("delete", () => API$8.accountAction("delete", { accountId: id })),
11284
+ onClearCooldown: (id) => void run("clear-cooldown", () => API$8.accountAction("clear-cooldown", { accountId: id })),
11285
+ onSetStrategy: (strategy) => void run("strategy", () => API$8.accountAction("strategy", { strategy })),
11279
11286
  renderDetails: (account) => {
11280
11287
  const usage = account.usage;
11281
11288
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [account.lastModelId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
@@ -11283,8 +11290,8 @@ window.__ModuleLoader__.load({
11283
11290
  ": ",
11284
11291
  account.lastModelId
11285
11292
  ] }), usage === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t.usageNone }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
11286
- t.usageInput.replace("{tokens}", formatTokens(usage.inputTokens)),
11287
- t.usageOutput.replace("{tokens}", formatTokens(usage.outputTokens)),
11293
+ t.usageInput.replace("{tokens}", formatTokens$1(usage.inputTokens)),
11294
+ t.usageOutput.replace("{tokens}", formatTokens$1(usage.outputTokens)),
11288
11295
  t.usageRequests.replace("{count}", String(usage.requestCount))
11289
11296
  ] })] });
11290
11297
  },
@@ -11358,7 +11365,7 @@ window.__ModuleLoader__.load({
11358
11365
  className: "dsha-btn",
11359
11366
  disabled: busy !== null,
11360
11367
  onClick: () => setShowKeyForm(false),
11361
- children: zh$9.deleteAccount
11368
+ children: zh$10.deleteAccount
11362
11369
  })]
11363
11370
  })
11364
11371
  ]
@@ -11469,6 +11476,796 @@ window.__ModuleLoader__.load({
11469
11476
  ] });
11470
11477
  }
11471
11478
  //#endregion
11479
+ //#region src/client/antigravity-acp/api.ts
11480
+ const API$7 = "/antigravity-acp/api";
11481
+ /**
11482
+ * The Antigravity (ACP) settings API, as the card uses it.
11483
+ *
11484
+ * Same envelope and fetch shape as every other provider section, so the shared
11485
+ * components read alike.
11486
+ */
11487
+ var AntigravityAcpApi = class {
11488
+ status() {
11489
+ return request(`${API$7}/status`);
11490
+ }
11491
+ /** Submit one settings patch and receive the refreshed status. */
11492
+ update(patch) {
11493
+ return post$2(`${API$7}/settings`, patch);
11494
+ }
11495
+ /** Force a live catalogue read. */
11496
+ refresh() {
11497
+ return post$2(`${API$7}/refresh`, {});
11498
+ }
11499
+ /** Run the line's self-check and return its one-line-per-stage report. */
11500
+ doctor() {
11501
+ return post$2(`${API$7}/doctor`, {});
11502
+ }
11503
+ /**
11504
+ * Start the official sign-in.
11505
+ *
11506
+ * The browser is opened by `agy` itself; this call only asks the host to
11507
+ * spawn it. Nothing here opens a window, which is what keeps one click from
11508
+ * producing two Google pages.
11509
+ */
11510
+ startLogin() {
11511
+ return post$2(`${API$7}/login/start`, {});
11512
+ }
11513
+ /** Re-read the auth state after a sign-in attempt. */
11514
+ loginStatus() {
11515
+ return request(`${API$7}/login/status`);
11516
+ }
11517
+ };
11518
+ async function post$2(url, body) {
11519
+ return request(url, {
11520
+ method: "POST",
11521
+ headers: { "Content-Type": "application/json" },
11522
+ body: JSON.stringify(body)
11523
+ });
11524
+ }
11525
+ async function request(url, init) {
11526
+ const response = await fetch(url, {
11527
+ ...init,
11528
+ credentials: "same-origin"
11529
+ });
11530
+ const envelope = await readEnvelope(response);
11531
+ if (!response.ok || !envelope.ok) throw new Error(envelope.error || `HTTP ${response.status}`);
11532
+ return envelope.value;
11533
+ }
11534
+ /**
11535
+ * Read the {ok,value,error} envelope, or say why there was not one.
11536
+ *
11537
+ * Reading the text first turns an empty or non-JSON answer into a sentence that
11538
+ * names the status instead of the browser's own JSON parse error.
11539
+ */
11540
+ async function readEnvelope(response) {
11541
+ let text;
11542
+ try {
11543
+ text = await response.text();
11544
+ } catch (cause) {
11545
+ throw new Error(unreadable(response, cause));
11546
+ }
11547
+ if (text.trim() === "") throw new Error(unreadable(response));
11548
+ let parsed;
11549
+ try {
11550
+ parsed = JSON.parse(text);
11551
+ } catch {
11552
+ throw new Error(unreadable(response));
11553
+ }
11554
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) throw new Error(unreadable(response));
11555
+ const envelope = parsed;
11556
+ if (typeof envelope.error !== "string") delete envelope.error;
11557
+ return envelope;
11558
+ }
11559
+ function unreadable(response, cause) {
11560
+ const kind = response.headers.get("content-type") ?? "no content-type";
11561
+ return `The Antigravity settings API answered with ${response.status} and no JSON body (${kind})` + (cause instanceof Error ? `: ${cause.message}` : "") + ". The Host log holds the underlying error.";
11562
+ }
11563
+ //#endregion
11564
+ //#region src/client/antigravity-acp/locales.ts
11565
+ const NS_ANTIGRAVITY_ACP = "dsh-antigravity-acp";
11566
+ const zh$9 = {
11567
+ title: "Antigravity(ACP)",
11568
+ pageDesc: "通过 Google 官方 Antigravity CLI 的 Agent Client Protocol(ACP)接入:模型、工具与会话全部由官方进程驱动,登录态由官方进程自己保管。",
11569
+ routeOwned: "模型路由由本插件提供",
11570
+ routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重试。",
11571
+ binarySection: "运行环境",
11572
+ binarySourceLabel: "当前使用",
11573
+ binaryHintSummary: "从哪里找可执行文件?",
11574
+ binaryKindLocal: "本机 Antigravity CLI",
11575
+ binaryKindConfigured: "手动指定路径",
11576
+ binaryKindDownloaded: "官方 ACP server(已下载)",
11577
+ binaryKindMissing: "未找到可用的 agy",
11578
+ binaryVersion: "版本 {version}",
11579
+ binaryMissingHint: "未找到本机 agy,且官方 ACP server 尚未下载。安装 Antigravity CLI 后重新打开此页即可;也可以直接指定可执行文件路径。",
11580
+ binaryPathLabel: "可执行文件路径",
11581
+ binaryPathPlaceholder: "留空则自动查找(本机 agy → 官方 ACP server)",
11582
+ binaryPathSave: "保存路径",
11583
+ binaryPathReset: "恢复自动查找",
11584
+ authSection: "登录",
11585
+ statusLabel: "状态",
11586
+ signedIn: "已登录",
11587
+ signedOut: "未登录",
11588
+ signIn: "登录 Google 账号",
11589
+ signInAgain: "重新登录",
11590
+ signInStarting: "正在启动…",
11591
+ signInSuccess: "已发起登录:浏览器由 Antigravity CLI 打开,完成授权后状态会自动变为「已登录」。",
11592
+ signInAlready: "当前已是登录状态,无需重复登录。",
11593
+ signInHintSummary: "登录是怎么完成的?",
11594
+ signInHint: "登录由 Antigravity CLI 自己完成:点击后它会打开浏览器,完成后回到这里刷新状态。本插件不读取、不保存你的 Google 凭据。",
11595
+ signInHeadless: "无界面环境请在终端执行 agy acp --login,然后回到此页刷新。",
11596
+ tierLabel: "订阅档位",
11597
+ tierUnknown: "官方进程未报告",
11598
+ refreshStatus: "刷新状态",
11599
+ runDoctor: "运行自检",
11600
+ doctorRunning: "自检中…",
11601
+ doctorTitle: "自检结果",
11602
+ modelsSection: "模型",
11603
+ modelsHint: "模型列表来自官方 ACP 会话,随账号与套餐变化,不随插件打包。思考档位由每个模型自己公布。",
11604
+ catalogNeverSynced: "尚未同步模型列表。点右上角「同步模型」获取当前账号可用的模型。",
11605
+ catalogStale: "当前显示的是上次同步的缓存列表。",
11606
+ catalogSync: "同步模型",
11607
+ catalogSyncing: "同步中…",
11608
+ catalogFailed: "无法读取模型列表:{detail}",
11609
+ modelCount: "{count} 个模型",
11610
+ noModels: "官方进程未返回任何模型。",
11611
+ selectAll: "全选",
11612
+ unselectAll: "全不选",
11613
+ noneSelected: "未选择任何模型,该线路不会出现在模型选择器中。",
11614
+ effortLabels: "可选思考档位:{levels}",
11615
+ enhanced: "增强功能",
11616
+ defaultReasoningEffort: "默认思考档位",
11617
+ defaultReasoningEffortHint: "作为新会话的默认值;调用方明确指定时以调用方为准。模型不接受的档位会被丢弃,而不是让整轮失败。",
11618
+ defaultEffortAuto: "不指定(用官方默认)",
11619
+ permissionPolicy: "工具权限",
11620
+ permissionPolicyReject: "拒绝",
11621
+ permissionPolicyAllow: "自动批准(推荐)",
11622
+ permissionPolicyHint: "经本地 MCP 桥交回 DSH 的工具调用恒定放行(它们的权限由 DSH 权限预设决定);这里控制的是 Antigravity 使用自带工具时的权限请求与子代理形态下的自动批准策略。",
11623
+ nativeTools: "自带工具",
11624
+ nativeToolsAllow: "记录并继续(推荐)",
11625
+ nativeToolsCancel: "立即取消整轮",
11626
+ nativeToolsHint: "Antigravity 自带的 shell / 文件工具无法在协议层卸载。选「记录并继续」时,模型一旦用自带工具,对话里会出现一条可见记录,本轮照常往下走;选「立即取消整轮」则遇到即让这一轮失败。",
11627
+ usageSection: "最近一轮用量",
11628
+ usageInputLabel: "输入",
11629
+ usageOutputLabel: "输出",
11630
+ usageCacheLabel: "缓存命中",
11631
+ usageDurationLabel: "耗时",
11632
+ usageInput: "输入 {tokens}",
11633
+ usageOutput: "输出 {tokens}",
11634
+ usageCache: "缓存命中 {tokens}",
11635
+ usageDuration: "耗时 {seconds}s",
11636
+ usageNone: "尚无已完成的一轮。",
11637
+ usageHintSummary: "这里为什么没有额度百分比?",
11638
+ usageHint: "官方 ACP 服务端不公布剩余额度或套餐百分比,因此这里只显示真实返回的 token 用量。",
11639
+ occupancyLabel: "上下文占用",
11640
+ occupancyDetail: "已用 {used} / 窗口 {size}",
11641
+ scopeSection: "能力边界",
11642
+ scopeSummary: "四条客观限制:无 system 槽位、每轮重建会话、子代理用官方工具、不公布额度。",
11643
+ scopeHintSummary: "展开看这四条限制",
11644
+ scopeHint: "这些是 ACP 与官方 Agent 的客观限制,本线路不做绕过:",
11645
+ scopePrompt: "ACP 没有独立的 system 提示槽位:DSH 的系统提示会作为提示首段随会话发送,官方 Agent 自身的系统提示无法移除。",
11646
+ scopeHistory: "每轮对话按 DSH 的完整历史重建 ACP 会话;历史被压缩或改写时会重新建立会话,而不是复用可能已与 DSH 不一致的旧会话。",
11647
+ scopeTools: "作为主模型时工具由 DSH 执行并把关;作为子代理时子进程使用官方 Agent 自己的工具集。",
11648
+ scopeQuota: "官方服务端不公布剩余额度,因此本卡片不显示任何百分比或余额。",
11649
+ error: "操作失败:{detail}",
11650
+ complianceSummary: "条款风险(点开查看)",
11651
+ complianceNotice: "⚠️ 条款风险:Google Antigravity 官方 FAQ 明确写着「使用第三方软件、工具或服务访问 Antigravity 违反其服务条款」,且「把 agy 包装进第三方编码 Agent 或应用、或自动化账号轮换,在消费者套餐下不受支持」,可能导致账号被暂停或终止。本插件运行的是 Google 官方 agy 与官方 ACP 服务器(不逆向协议、不读取凭据、单账号不轮换),但这些措施不能消除条款风险。是否继续使用请自行判断;需要零争议时请改用 Gemini Enterprise 或 Google AI Studio API Key。",
11652
+ disabledHint: "该线路当前已停用;在上方订阅总览打开开关后才会出现在模型选择器中。",
11653
+ enabledHint: "该线路当前已启用。",
11654
+ toggleHint: "可在「订阅服务」总览页的该线路卡片上随时停用。"
11655
+ };
11656
+ const en$9 = {
11657
+ title: "Antigravity (ACP)",
11658
+ pageDesc: "Connect through Google's official Antigravity CLI over the Agent Client Protocol (ACP): the model, its tools and its sessions all come from the official process, which also keeps its own sign-in state.",
11659
+ routeOwned: "Model route served by this plugin",
11660
+ routeConflict: "The model route is already owned by another provider: {detail}",
11661
+ binarySection: "Runtime",
11662
+ binarySourceLabel: "In use",
11663
+ binaryHintSummary: "Where does the executable come from?",
11664
+ binaryKindLocal: "Local Antigravity CLI",
11665
+ binaryKindConfigured: "Configured path",
11666
+ binaryKindDownloaded: "Official ACP server (downloaded)",
11667
+ binaryKindMissing: "No usable agy found",
11668
+ binaryVersion: "version {version}",
11669
+ binaryMissingHint: "No local agy was found and the official ACP server has not been downloaded yet. Install the Antigravity CLI and reopen this page, or point at an executable directly.",
11670
+ binaryPathLabel: "Executable path",
11671
+ binaryPathPlaceholder: "Leave empty to resolve automatically (local agy, then the official ACP server)",
11672
+ binaryPathSave: "Save path",
11673
+ binaryPathReset: "Restore automatic resolution",
11674
+ authSection: "Sign-in",
11675
+ statusLabel: "Status",
11676
+ signedIn: "Signed in",
11677
+ signedOut: "Not signed in",
11678
+ signIn: "Sign in with Google",
11679
+ signInAgain: "Sign in again",
11680
+ signInStarting: "Starting...",
11681
+ signInSuccess: "Sign-in started: the Antigravity CLI opens the browser, and the status here turns to signed in once you approve it.",
11682
+ signInAlready: "This line is already signed in; there is nothing to do.",
11683
+ signInHintSummary: "How does sign-in work?",
11684
+ 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.",
11685
+ signInHeadless: "On a headless host run agy acp --login in a terminal, then refresh here.",
11686
+ tierLabel: "Plan",
11687
+ tierUnknown: "Not reported by the official process",
11688
+ refreshStatus: "Refresh state",
11689
+ runDoctor: "Run self-check",
11690
+ doctorRunning: "Checking...",
11691
+ doctorTitle: "Self-check result",
11692
+ modelsSection: "Models",
11693
+ modelsHint: "The model list comes from a live ACP session and follows your account and plan; it is not shipped with the plugin. Each model publishes its own thinking levels.",
11694
+ catalogNeverSynced: "The model list has not been synced yet. Use \"Sync models\" above to fetch what this account can use.",
11695
+ catalogStale: "Showing the cached listing from the last sync.",
11696
+ catalogSync: "Sync models",
11697
+ catalogSyncing: "Syncing...",
11698
+ catalogFailed: "Could not read the model list: {detail}",
11699
+ modelCount: "{count} model(s)",
11700
+ noModels: "The official process returned no models.",
11701
+ selectAll: "Select all",
11702
+ unselectAll: "Clear all",
11703
+ noneSelected: "No models are selected, so this line will not appear in the model picker.",
11704
+ effortLabels: "Thinking levels: {levels}",
11705
+ enhanced: "Enhanced",
11706
+ defaultReasoningEffort: "Default thinking level",
11707
+ defaultReasoningEffortHint: "Used as the default for new sessions; an explicit request wins. A level the target model does not accept is dropped rather than failing the turn.",
11708
+ defaultEffortAuto: "Do not specify (official default)",
11709
+ permissionPolicy: "Tool permissions",
11710
+ permissionPolicyReject: "Reject",
11711
+ permissionPolicyAllow: "Auto-approve (recommended)",
11712
+ permissionPolicyHint: "Tool calls that come back to DSH through the local MCP bridge are always allowed, because DSH permission presets govern them. This setting covers the official process's own permission requests when it uses a built-in tool, and the auto-approval used by the subagent form.",
11713
+ nativeTools: "Built-in tools",
11714
+ nativeToolsAllow: "Record and continue (recommended)",
11715
+ nativeToolsCancel: "Cancel the turn immediately",
11716
+ nativeToolsHint: "Antigravity's own shell and file tools cannot be unloaded over the protocol. With 'Record and continue', using one leaves a visible note in the conversation and the turn keeps going; 'Cancel the turn immediately' fails the turn on the first such call.",
11717
+ usageSection: "Last turn usage",
11718
+ usageInputLabel: "Input",
11719
+ usageOutputLabel: "Output",
11720
+ usageCacheLabel: "Cache read",
11721
+ usageDurationLabel: "Duration",
11722
+ usageHintSummary: "Why is there no quota percentage here?",
11723
+ usageInput: "in {tokens}",
11724
+ usageOutput: "out {tokens}",
11725
+ usageCache: "cache read {tokens}",
11726
+ usageDuration: "{seconds}s",
11727
+ usageNone: "No completed turn yet.",
11728
+ usageHint: "The official ACP server publishes no remaining quota or plan percentage, so this card shows only the token counts it actually returned.",
11729
+ occupancyLabel: "Context occupancy",
11730
+ occupancyDetail: "{used} used of {size}",
11731
+ scopeSection: "Boundaries",
11732
+ scopeSummary: "Four objective limits: no system slot, a fresh session every turn, the official tools in subagent form, and no published quota.",
11733
+ scopeHintSummary: "Show the four limits",
11734
+ scopeHint: "These are objective ACP and official-agent limits; this line does not work around them:",
11735
+ 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.",
11736
+ 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.",
11737
+ 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.",
11738
+ scopeQuota: "The official server publishes no remaining quota, so this card shows no percentage and no balance.",
11739
+ error: "Action failed: {detail}",
11740
+ complianceSummary: "Terms risk (click to read)",
11741
+ 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.",
11742
+ disabledHint: "This line is switched off. Turn it on from its card in the subscription overview to make it appear in the model picker.",
11743
+ enabledHint: "This line is enabled.",
11744
+ toggleHint: "You can switch it off at any time from its card in the subscription overview."
11745
+ };
11746
+ const dictionaries$9 = {
11747
+ zh: zh$9,
11748
+ "zh-CN": zh$9,
11749
+ en: en$9,
11750
+ "en-US": en$9
11751
+ };
11752
+ //#endregion
11753
+ //#region src/client/antigravity-acp/AntigravityAcpSection.tsx
11754
+ const API$6 = new AntigravityAcpApi();
11755
+ /** A token count short enough to sit on one line. */
11756
+ function formatTokens(value) {
11757
+ if (!Number.isFinite(value) || value < 0) return "—";
11758
+ if (value < 1e3) return String(Math.floor(value));
11759
+ if (value < 1e6) return (value / 1e3).toFixed(value < 1e4 ? 1 : 0) + "K";
11760
+ return (value / 1e6).toFixed(1) + "M";
11761
+ }
11762
+ /**
11763
+ * The Antigravity (ACP) settings tab.
11764
+ *
11765
+ * One line here is deliberately absent: the account-pool card. This line does not
11766
+ * own accounts - the official CLI does - so rendering a pool would either be an
11767
+ * empty shell or, worse, a second place that claims to manage a sign-in it cannot
11768
+ * see. What is left is what the user actually chooses: which executable runs,
11769
+ * which models appear, the default thinking level, and how the agent's permission
11770
+ * requests are answered.
11771
+ */
11772
+ function AntigravityAcpSection(props) {
11773
+ const [status, setStatus] = (0, react.useState)(null);
11774
+ const [busy, setBusy] = (0, react.useState)(null);
11775
+ const [error, setError] = (0, react.useState)(null);
11776
+ const [enabled, setEnabled] = (0, react.useState)(null);
11777
+ const [binaryPath, setBinaryPath] = (0, react.useState)("");
11778
+ const [doctor, setDoctor] = (0, react.useState)(null);
11779
+ /** Feedback for the sign-in action, cleared on the next attempt. */
11780
+ const [loginNotice, setLoginNotice] = (0, react.useState)(null);
11781
+ const reload = (0, react.useCallback)(async () => {
11782
+ try {
11783
+ const next = await API$6.status();
11784
+ setStatus(next);
11785
+ setEnabled(next.enabledModelIds == null ? null : new Set(next.enabledModelIds));
11786
+ setBinaryPath(next.binary.path ?? "");
11787
+ } catch (cause) {
11788
+ setError(cause instanceof Error ? cause.message : String(cause));
11789
+ }
11790
+ }, []);
11791
+ (0, react.useEffect)(() => {
11792
+ reload();
11793
+ }, [reload]);
11794
+ const run = (0, react.useCallback)(async (label, action) => {
11795
+ setBusy(label);
11796
+ setError(null);
11797
+ try {
11798
+ setStatus(await action());
11799
+ props.onModelChange?.();
11800
+ props.loadModelDirectory?.();
11801
+ } catch (cause) {
11802
+ setError(cause instanceof Error ? cause.message : String(cause));
11803
+ } finally {
11804
+ setBusy(null);
11805
+ }
11806
+ }, [props]);
11807
+ const t = useLineDict(NS_ANTIGRAVITY_ACP, zh$9);
11808
+ const models = status?.models ?? [];
11809
+ const auth = status?.auth;
11810
+ const usage = status?.usage;
11811
+ const tier = auth?.tier;
11812
+ const isModelEnabled = (0, react.useCallback)((id) => {
11813
+ return enabled === null || enabled.has(id);
11814
+ }, [enabled]);
11815
+ const applyEnabled = (0, react.useCallback)((next) => {
11816
+ run("models", async () => {
11817
+ const result = await API$6.update({ enabledModelIds: next });
11818
+ setEnabled(result.enabledModelIds == null ? null : new Set(result.enabledModelIds));
11819
+ return result;
11820
+ });
11821
+ }, [run]);
11822
+ const toggleModel = (0, react.useCallback)((id, checked) => {
11823
+ if (status === null) return;
11824
+ const all = status.models ?? [];
11825
+ const current = all.filter((model) => isModelEnabled(model.id)).map((model) => model.id);
11826
+ const next = checked ? [.../* @__PURE__ */ new Set([...current, id])] : current.filter((entry) => entry !== id);
11827
+ applyEnabled(next.length === all.length ? null : next);
11828
+ }, [
11829
+ status,
11830
+ isModelEnabled,
11831
+ applyEnabled
11832
+ ]);
11833
+ const setAllModels = (0, react.useCallback)((selectAll) => {
11834
+ applyEnabled(selectAll ? null : []);
11835
+ }, [applyEnabled]);
11836
+ const signIn = (0, react.useCallback)(() => {
11837
+ setBusy("login");
11838
+ setError(null);
11839
+ setLoginNotice(null);
11840
+ API$6.startLogin().then(async (result) => {
11841
+ setLoginNotice(result.started ? t.signInSuccess : t.signInAlready);
11842
+ await reload();
11843
+ }).catch((cause) => setError(cause instanceof Error ? cause.message : String(cause))).finally(() => setBusy(null));
11844
+ }, [reload, t]);
11845
+ const saveBinaryPath = (0, react.useCallback)(() => {
11846
+ run("binary", () => API$6.update({ binaryPath: binaryPath.trim() === "" ? null : binaryPath.trim() }));
11847
+ }, [run, binaryPath]);
11848
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
11849
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11850
+ className: "dsha-group",
11851
+ children: [
11852
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11853
+ className: "dsha-grouphead",
11854
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.title }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11855
+ style: {
11856
+ display: "flex",
11857
+ gap: 8
11858
+ },
11859
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11860
+ className: "dsha-btn",
11861
+ disabled: busy !== null,
11862
+ onClick: () => {
11863
+ setBusy("doctor");
11864
+ setError(null);
11865
+ API$6.doctor().then((report) => setDoctor(report)).catch((cause) => setError(cause instanceof Error ? cause.message : String(cause))).finally(() => setBusy(null));
11866
+ },
11867
+ children: busy === "doctor" ? t.doctorRunning : t.runDoctor
11868
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11869
+ className: "dsha-btn",
11870
+ disabled: busy !== null,
11871
+ onClick: () => void run("refresh", () => API$6.refresh()),
11872
+ children: busy === "refresh" ? t.catalogSyncing : t.refreshStatus
11873
+ })]
11874
+ })]
11875
+ }),
11876
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11877
+ className: "dsha-notice",
11878
+ children: t.pageDesc
11879
+ }),
11880
+ status !== null && !status.enabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11881
+ className: "dsha-notice",
11882
+ children: t.disabledHint
11883
+ }),
11884
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
11885
+ className: "dshagy-details",
11886
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t.complianceSummary }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t.complianceNotice })]
11887
+ }),
11888
+ status?.routeConflict !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11889
+ className: "dsha-notice",
11890
+ children: t.routeConflict.replace("{detail}", status.routeConflict)
11891
+ }),
11892
+ error !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11893
+ className: "dsha-notice",
11894
+ style: { color: "var(--dsha-danger, #c0392b)" },
11895
+ children: t.error.replace("{detail}", error)
11896
+ }),
11897
+ doctor !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11898
+ className: "dsha-pref-row",
11899
+ style: {
11900
+ flexDirection: "column",
11901
+ alignItems: "stretch"
11902
+ },
11903
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t.doctorTitle }), doctor.steps.map((step) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
11904
+ className: "dsha-muted",
11905
+ style: { fontSize: 12 },
11906
+ children: [
11907
+ step.ok ? "OK" : "FAIL",
11908
+ " · ",
11909
+ step.id,
11910
+ " · ",
11911
+ step.detail
11912
+ ]
11913
+ }, step.id))]
11914
+ })
11915
+ ]
11916
+ }),
11917
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11918
+ className: "dsha-group",
11919
+ children: [
11920
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11921
+ className: "dsha-grouphead",
11922
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.binarySection })
11923
+ }),
11924
+ status !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11925
+ className: "dsha-row",
11926
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11927
+ className: "dsha-label",
11928
+ children: t.binarySourceLabel
11929
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
11930
+ className: "dsha-value",
11931
+ children: [
11932
+ status.binary.kind === "local-cli" && t.binaryKindLocal,
11933
+ status.binary.kind === "configured" && t.binaryKindConfigured,
11934
+ status.binary.kind === "downloaded" && t.binaryKindDownloaded,
11935
+ status.binary.kind === "missing" && t.binaryKindMissing,
11936
+ status.binary.version !== void 0 && " · " + status.binary.version
11937
+ ]
11938
+ })]
11939
+ }),
11940
+ status?.binary.error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11941
+ className: "dsha-notice",
11942
+ children: status.binary.error
11943
+ }),
11944
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11945
+ className: "dsha-pref-row",
11946
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11947
+ className: "dsha-label",
11948
+ children: t.binaryPathLabel
11949
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11950
+ style: {
11951
+ display: "flex",
11952
+ gap: 8,
11953
+ justifyContent: "flex-end",
11954
+ marginLeft: "auto",
11955
+ flex: "0 1 520px"
11956
+ },
11957
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
11958
+ className: "dsha-input",
11959
+ style: {
11960
+ flex: "1 1 260px",
11961
+ minWidth: 180
11962
+ },
11963
+ value: binaryPath,
11964
+ placeholder: t.binaryPathPlaceholder,
11965
+ disabled: busy !== null,
11966
+ onChange: (event) => setBinaryPath(event.target.value)
11967
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11968
+ className: "dsha-btn",
11969
+ disabled: busy !== null,
11970
+ onClick: saveBinaryPath,
11971
+ children: t.binaryPathSave
11972
+ })]
11973
+ })]
11974
+ }),
11975
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
11976
+ className: "dshagy-details",
11977
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t.binaryHintSummary }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: status?.binary.kind === "missing" ? t.binaryMissingHint : t.binaryPathPlaceholder })]
11978
+ })
11979
+ ]
11980
+ }),
11981
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11982
+ className: "dsha-group",
11983
+ children: [
11984
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11985
+ className: "dsha-grouphead",
11986
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.authSection }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11987
+ className: "dsha-btn dsha-btn-primary",
11988
+ disabled: busy !== null,
11989
+ onClick: signIn,
11990
+ children: busy === "login" ? t.signInStarting : auth?.authenticated === true ? t.signInAgain : t.signIn
11991
+ })]
11992
+ }),
11993
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11994
+ className: "dsha-row",
11995
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11996
+ className: "dsha-label",
11997
+ children: t.statusLabel
11998
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11999
+ className: "dsha-value",
12000
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12001
+ className: `dsha-badge ${auth?.authenticated === true ? "active" : "danger"}`,
12002
+ children: auth?.authenticated === true ? t.signedIn : t.signedOut
12003
+ })
12004
+ })]
12005
+ }),
12006
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12007
+ className: "dsha-row",
12008
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12009
+ className: "dsha-label",
12010
+ children: t.tierLabel
12011
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12012
+ className: "dsha-value",
12013
+ children: tier === void 0 ? t.tierUnknown : tier.name
12014
+ })]
12015
+ }),
12016
+ loginNotice !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12017
+ className: "dsha-notice",
12018
+ style: { color: "var(--dsha-success, #10b981)" },
12019
+ children: loginNotice
12020
+ }),
12021
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
12022
+ className: "dshagy-details",
12023
+ children: [
12024
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t.signInHintSummary }),
12025
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t.signInHint }),
12026
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t.signInHeadless })
12027
+ ]
12028
+ })
12029
+ ]
12030
+ }),
12031
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12032
+ className: "dsha-group",
12033
+ children: [
12034
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12035
+ className: "dsha-grouphead",
12036
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.modelsSection }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
12037
+ className: "dsha-btn",
12038
+ disabled: busy !== null,
12039
+ onClick: () => void run("catalog", () => API$6.refresh()),
12040
+ children: busy === "catalog" ? t.catalogSyncing : t.catalogSync
12041
+ })]
12042
+ }),
12043
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12044
+ className: "dsha-muted",
12045
+ style: { fontSize: 12 },
12046
+ children: t.modelsHint
12047
+ }),
12048
+ status !== null && status.catalogSynced === false && models.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12049
+ className: "dsha-muted",
12050
+ style: { fontSize: 12 },
12051
+ children: t.catalogStale
12052
+ }),
12053
+ status !== null && models.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
12054
+ className: "dsha-empty",
12055
+ children: t.catalogNeverSynced
12056
+ }),
12057
+ status !== null && models.length > 0 && enabled !== null && enabled.size === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12058
+ className: "dsha-notice",
12059
+ children: t.noneSelected
12060
+ }),
12061
+ status !== null && models.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12062
+ className: "dsha-muted",
12063
+ style: { fontSize: 12 },
12064
+ children: t.modelCount.replace("{count}", String(models.length))
12065
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModelChecklist, {
12066
+ items: models.map((model) => ({
12067
+ id: model.id,
12068
+ name: model.name,
12069
+ hint: model.efforts.length === 0 ? void 0 : t.effortLabels.replace("{levels}", model.efforts.join(" / ")),
12070
+ enabled: isModelEnabled(model.id)
12071
+ })),
12072
+ busy: busy !== null,
12073
+ onToggle: (id, value) => toggleModel(id, value),
12074
+ onToggleAll: (value) => setAllModels(value),
12075
+ labels: {
12076
+ selectAll: t.selectAll,
12077
+ clearAll: t.unselectAll,
12078
+ list: t.modelsSection
12079
+ }
12080
+ })] })
12081
+ ]
12082
+ }),
12083
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12084
+ className: "dsha-group",
12085
+ children: [
12086
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
12087
+ className: "dsha-grouphead",
12088
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.enhanced })
12089
+ }),
12090
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12091
+ className: "dsha-pref-row",
12092
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t.defaultReasoningEffort }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12093
+ className: "dsha-muted",
12094
+ children: t.defaultReasoningEffortHint
12095
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
12096
+ className: "dsha-select",
12097
+ "aria-label": t.defaultReasoningEffort,
12098
+ value: status?.defaultReasoningEffort ?? "",
12099
+ disabled: busy !== null,
12100
+ onChange: (event) => {
12101
+ const value = event.currentTarget.value;
12102
+ run("effort", () => API$6.update({ defaultReasoningEffort: value === "" ? null : value }));
12103
+ },
12104
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
12105
+ value: "",
12106
+ children: t.defaultEffortAuto
12107
+ }), reasoningLevels(models).map((level) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
12108
+ value: level,
12109
+ children: level
12110
+ }, level))]
12111
+ })]
12112
+ }),
12113
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12114
+ className: "dsha-pref-row",
12115
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t.permissionPolicy }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12116
+ className: "dsha-muted",
12117
+ children: t.permissionPolicyHint
12118
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
12119
+ className: "dsha-select",
12120
+ "aria-label": t.permissionPolicy,
12121
+ value: status?.permissionPolicy ?? "allow",
12122
+ disabled: busy !== null,
12123
+ onChange: (event) => {
12124
+ const value = event.currentTarget.value === "allow" ? "allow" : "reject";
12125
+ run("permission", () => API$6.update({ permissionPolicy: value }));
12126
+ },
12127
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
12128
+ value: "allow",
12129
+ children: t.permissionPolicyAllow
12130
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
12131
+ value: "reject",
12132
+ children: t.permissionPolicyReject
12133
+ })]
12134
+ })]
12135
+ }),
12136
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12137
+ className: "dsha-pref-row",
12138
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t.nativeTools }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12139
+ className: "dsha-muted",
12140
+ children: t.nativeToolsHint
12141
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
12142
+ className: "dsha-select",
12143
+ "aria-label": t.nativeTools,
12144
+ value: status?.nativeToolPolicy ?? "allow",
12145
+ disabled: busy !== null,
12146
+ onChange: (event) => {
12147
+ const value = event.currentTarget.value === "cancel" ? "cancel" : "allow";
12148
+ run("nativeTools", () => API$6.update({ nativeToolPolicy: value }));
12149
+ },
12150
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
12151
+ value: "allow",
12152
+ children: t.nativeToolsAllow
12153
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
12154
+ value: "cancel",
12155
+ children: t.nativeToolsCancel
12156
+ })]
12157
+ })]
12158
+ })
12159
+ ]
12160
+ }),
12161
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12162
+ className: "dsha-group",
12163
+ children: [
12164
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
12165
+ className: "dsha-grouphead",
12166
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.usageSection })
12167
+ }),
12168
+ usage === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
12169
+ className: "dsha-empty",
12170
+ children: t.usageNone
12171
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
12172
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12173
+ className: "dsha-row",
12174
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12175
+ className: "dsha-label",
12176
+ children: t.usageInputLabel
12177
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12178
+ className: "dsha-value",
12179
+ children: formatTokens(usage.inputTokens)
12180
+ })]
12181
+ }),
12182
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12183
+ className: "dsha-row",
12184
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12185
+ className: "dsha-label",
12186
+ children: t.usageOutputLabel
12187
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12188
+ className: "dsha-value",
12189
+ children: formatTokens(usage.outputTokens)
12190
+ })]
12191
+ }),
12192
+ usage.cacheReadTokens !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12193
+ className: "dsha-row",
12194
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12195
+ className: "dsha-label",
12196
+ children: t.usageCacheLabel
12197
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12198
+ className: "dsha-value",
12199
+ children: formatTokens(usage.cacheReadTokens)
12200
+ })]
12201
+ }),
12202
+ usage.durationMs !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12203
+ className: "dsha-row",
12204
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12205
+ className: "dsha-label",
12206
+ children: t.usageDurationLabel
12207
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
12208
+ className: "dsha-value",
12209
+ children: [(usage.durationMs / 1e3).toFixed(1), "s"]
12210
+ })]
12211
+ })
12212
+ ] }),
12213
+ status?.occupancy !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12214
+ className: "dsha-row",
12215
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12216
+ className: "dsha-label",
12217
+ children: t.occupancyLabel
12218
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12219
+ className: "dsha-value",
12220
+ children: t.occupancyDetail.replace("{used}", formatTokens(status.occupancy.used)).replace("{size}", formatTokens(status.occupancy.size))
12221
+ })]
12222
+ }),
12223
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
12224
+ className: "dshagy-details",
12225
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t.usageHintSummary }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t.usageHint })]
12226
+ })
12227
+ ]
12228
+ }),
12229
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12230
+ className: "dsha-group",
12231
+ children: [
12232
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
12233
+ className: "dsha-grouphead",
12234
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.scopeSection })
12235
+ }),
12236
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12237
+ className: "dsha-muted",
12238
+ style: { fontSize: 12 },
12239
+ children: t.scopeSummary
12240
+ }),
12241
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
12242
+ className: "dshagy-details",
12243
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t.scopeHintSummary }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("ul", {
12244
+ className: "dshagy-boundary",
12245
+ children: [
12246
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: t.scopePrompt }),
12247
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: t.scopeHistory }),
12248
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: t.scopeTools }),
12249
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: t.scopeQuota })
12250
+ ]
12251
+ })]
12252
+ })
12253
+ ]
12254
+ })
12255
+ ] });
12256
+ }
12257
+ /** Every thinking level any listed model publishes, in first-seen order. */
12258
+ function reasoningLevels(models) {
12259
+ const seen = /* @__PURE__ */ new Set();
12260
+ const levels = [];
12261
+ for (const model of models) for (const level of model.efforts) {
12262
+ if (seen.has(level)) continue;
12263
+ seen.add(level);
12264
+ levels.push(level);
12265
+ }
12266
+ return levels;
12267
+ }
12268
+ //#endregion
11472
12269
  //#region src/client/step-code/locales.ts
11473
12270
  /**
11474
12271
  * Step Code(Step Plan 订阅)线路的客户端命名空间。
@@ -13783,7 +14580,7 @@ window.__ModuleLoader__.load({
13783
14580
  };
13784
14581
  //#endregion
13785
14582
  //#region src/client/cline-pass/ClinePassSection.tsx
13786
- const API$4 = new ClinePassApi();
14583
+ const API$5 = new ClinePassApi();
13787
14584
  /**
13788
14585
  * How often an open card re-reads the quota.
13789
14586
  *
@@ -13846,7 +14643,7 @@ window.__ModuleLoader__.load({
13846
14643
  */
13847
14644
  const loadStatus = (0, react.useCallback)(async (quiet = false) => {
13848
14645
  try {
13849
- const next = await API$4.status();
14646
+ const next = await API$5.status();
13850
14647
  setStatus(next);
13851
14648
  setSettingsForm((current) => current ?? (next.settings === void 0 ? null : settingsFormOf$1(next)));
13852
14649
  if (!quiet) setError(null);
@@ -13895,7 +14692,7 @@ window.__ModuleLoader__.load({
13895
14692
  const flow = loginFlow;
13896
14693
  if (flow === null || flow.status !== "pending") return;
13897
14694
  const timer = window.setInterval(() => {
13898
- API$4.loginStatus(flow.id).then((next) => {
14695
+ API$5.loginStatus(flow.id).then((next) => {
13899
14696
  setLoginFlow(next);
13900
14697
  if (next.status === "complete") {
13901
14698
  setNotice(zh$7.loginComplete.replace("{account}", next.accountAlias === "" ? "Cline Pass" : next.accountAlias));
@@ -13910,7 +14707,7 @@ window.__ModuleLoader__.load({
13910
14707
  setBusy("login");
13911
14708
  setError(null);
13912
14709
  setNotice(null);
13913
- API$4.startLogin().then((flow) => {
14710
+ API$5.startLogin().then((flow) => {
13914
14711
  setLoginFlow(flow);
13915
14712
  if (flow.verificationUri !== "" && typeof window !== "undefined" && typeof window.open === "function") try {
13916
14713
  window.open(flow.verificationUri, "_blank", "noopener,noreferrer");
@@ -13919,7 +14716,7 @@ window.__ModuleLoader__.load({
13919
14716
  }, []);
13920
14717
  const cancelLogin = (0, react.useCallback)(() => {
13921
14718
  if (loginFlow === null) return;
13922
- API$4.cancelLogin(loginFlow.id).then(() => {
14719
+ API$5.cancelLogin(loginFlow.id).then(() => {
13923
14720
  setLoginFlow({
13924
14721
  ...loginFlow,
13925
14722
  status: "cancelled"
@@ -13948,7 +14745,7 @@ window.__ModuleLoader__.load({
13948
14745
  const trimmed = key.trim();
13949
14746
  if (trimmed === "") return;
13950
14747
  run("add", async () => {
13951
- const next = await API$4.accountAction("add", {
14748
+ const next = await API$5.accountAction("add", {
13952
14749
  apiKey: trimmed,
13953
14750
  ...alias.trim() === "" ? {} : { alias: alias.trim() },
13954
14751
  ...keyBaseURL.trim() === "" ? {} : { baseURL: keyBaseURL.trim() }
@@ -13971,7 +14768,7 @@ window.__ModuleLoader__.load({
13971
14768
  setBusy("test-key");
13972
14769
  setError(null);
13973
14770
  setNotice(null);
13974
- API$4.testKey({
14771
+ API$5.testKey({
13975
14772
  apiKey: trimmed,
13976
14773
  ...keyBaseURL.trim() === "" ? {} : { baseURL: keyBaseURL.trim() }
13977
14774
  }).then((result) => {
@@ -13982,7 +14779,7 @@ window.__ModuleLoader__.load({
13982
14779
  setBusy("test:" + accountId);
13983
14780
  setError(null);
13984
14781
  setNotice(null);
13985
- API$4.testKey({ accountId }).then((result) => {
14782
+ API$5.testKey({ accountId }).then((result) => {
13986
14783
  setNotice(result.authorized ? zh$7.keyTestOk.replace("{ms}", String(Math.round(result.ms))) : zh$7.keyTestFailed.replace("{detail}", result.error));
13987
14784
  }).catch((cause) => setError(detail$1(cause))).finally(() => setBusy(null));
13988
14785
  }, []);
@@ -13994,14 +14791,14 @@ window.__ModuleLoader__.load({
13994
14791
  const current = status.models.filter((model) => model.enabled).map((model) => model.id);
13995
14792
  const next = checked ? [.../* @__PURE__ */ new Set([...current, id])] : current.filter((entry) => entry !== id);
13996
14793
  run("models", async () => {
13997
- if (checked) await API$4.setVisibility(id, true);
13998
- return await API$4.setEnabledModels(next.length === status.models.length ? null : next);
14794
+ if (checked) await API$5.setVisibility(id, true);
14795
+ return await API$5.setEnabledModels(next.length === status.models.length ? null : next);
13999
14796
  });
14000
14797
  }, [status, run]);
14001
14798
  const setAllModels = (0, react.useCallback)((selectAll) => {
14002
14799
  run("models", async () => {
14003
- if (selectAll) await API$4.setVisibilityAll("all");
14004
- return await API$4.setEnabledModels(selectAll ? null : []);
14800
+ if (selectAll) await API$5.setVisibilityAll("all");
14801
+ return await API$5.setEnabledModels(selectAll ? null : []);
14005
14802
  });
14006
14803
  }, [run]);
14007
14804
  const commitContext = (0, react.useCallback)((id) => {
@@ -14012,7 +14809,7 @@ window.__ModuleLoader__.load({
14012
14809
  setError(zh$7.error.replace("{detail}", zh$7.defaultContextWindow));
14013
14810
  return;
14014
14811
  }
14015
- run("ctx:" + id, () => API$4.setContextWindow(id, parsed));
14812
+ run("ctx:" + id, () => API$5.setContextWindow(id, parsed));
14016
14813
  }, [
14017
14814
  status,
14018
14815
  drafts,
@@ -14021,7 +14818,7 @@ window.__ModuleLoader__.load({
14021
14818
  const resetContext = (0, react.useCallback)((id) => {
14022
14819
  const fallback = status?.models.find((entry) => entry.id === id)?.defaultContextWindow;
14023
14820
  run("ctx:" + id, async () => {
14024
- const next = await API$4.setContextWindow(id, null);
14821
+ const next = await API$5.setContextWindow(id, null);
14025
14822
  if (fallback !== void 0) setDrafts((current) => ({
14026
14823
  ...current,
14027
14824
  [id]: formatCapacity$1(fallback)
@@ -14035,7 +14832,7 @@ window.__ModuleLoader__.load({
14035
14832
  const overridden = status.models.filter((model) => model.contextWindowOverride !== void 0);
14036
14833
  run("ctx-all", async () => {
14037
14834
  let next = status;
14038
- for (const model of overridden) next = await API$4.setContextWindow(model.id, null);
14835
+ for (const model of overridden) next = await API$5.setContextWindow(model.id, null);
14039
14836
  setDrafts((current) => {
14040
14837
  const draftsNext = { ...current };
14041
14838
  for (const model of overridden) draftsNext[model.id] = formatCapacity$1(model.defaultContextWindow);
@@ -14045,14 +14842,14 @@ window.__ModuleLoader__.load({
14045
14842
  });
14046
14843
  }, [status, run]);
14047
14844
  const refreshCatalog = (0, react.useCallback)(() => {
14048
- run("catalog", async () => (await API$4.refreshCatalog()).status);
14845
+ run("catalog", async () => (await API$5.refreshCatalog()).status);
14049
14846
  }, [run]);
14050
14847
  const searchCatalog = (0, react.useCallback)(() => {
14051
14848
  const query = catalogQuery.trim();
14052
14849
  if (query === "") return;
14053
14850
  setBusy("catalog-search");
14054
14851
  setError(null);
14055
- API$4.searchCatalog(query).then((outcome) => {
14852
+ API$5.searchCatalog(query).then((outcome) => {
14056
14853
  setCatalogResults(outcome.results);
14057
14854
  setCatalogSearched(true);
14058
14855
  setCatalogCreditsAck({});
@@ -14061,7 +14858,7 @@ window.__ModuleLoader__.load({
14061
14858
  const addCatalogModel = (0, react.useCallback)((id, acknowledgeBilling = false) => {
14062
14859
  setBusy("catalog-add:" + id);
14063
14860
  setError(null);
14064
- API$4.addCatalogModel(id, acknowledgeBilling).then((outcome) => {
14861
+ API$5.addCatalogModel(id, acknowledgeBilling).then((outcome) => {
14065
14862
  applyStatus(outcome.status);
14066
14863
  setCatalogResults((current) => current.map((entry) => entry.id === id ? {
14067
14864
  ...entry,
@@ -14071,7 +14868,7 @@ window.__ModuleLoader__.load({
14071
14868
  }, [applyStatus]);
14072
14869
  const refreshUsage = (0, react.useCallback)(() => {
14073
14870
  run("usage", async () => {
14074
- const outcome = await API$4.readUsage();
14871
+ const outcome = await API$5.readUsage();
14075
14872
  setNotice(outcome.usage.accounts.some((account) => account.ok) ? "" : zh$7.usageEmpty);
14076
14873
  return outcome.status;
14077
14874
  });
@@ -14079,7 +14876,7 @@ window.__ModuleLoader__.load({
14079
14876
  const loadHistory = (0, react.useCallback)(() => {
14080
14877
  setBusy("history");
14081
14878
  setError(null);
14082
- API$4.history(50).then(setHistory).catch((cause) => setError(detail$1(cause))).finally(() => setBusy(null));
14879
+ API$5.history(50).then(setHistory).catch((cause) => setError(detail$1(cause))).finally(() => setBusy(null));
14083
14880
  }, []);
14084
14881
  const saveSettings = (0, react.useCallback)(() => {
14085
14882
  if (settingsForm === null) return;
@@ -14097,7 +14894,7 @@ window.__ModuleLoader__.load({
14097
14894
  }
14098
14895
  setBusy("settings");
14099
14896
  setError(null);
14100
- API$4.updateSettings({
14897
+ API$5.updateSettings({
14101
14898
  baseURL: settingsForm.baseURL,
14102
14899
  ...numbers
14103
14900
  }).then((next) => {
@@ -14111,7 +14908,7 @@ window.__ModuleLoader__.load({
14111
14908
  const value = !status.exposeTools;
14112
14909
  setBusy("tools");
14113
14910
  setError(null);
14114
- API$4.updateSettings({ exposeTools: value }).then((next) => {
14911
+ API$5.updateSettings({ exposeTools: value }).then((next) => {
14115
14912
  applyStatus(next);
14116
14913
  setSettingsForm(settingsFormOf$1(next));
14117
14914
  setNotice(zh$7.restartRequired);
@@ -14182,10 +14979,10 @@ window.__ModuleLoader__.load({
14182
14979
  onLogin: startLogin,
14183
14980
  loginBusyLabel: t.loggingIn,
14184
14981
  onRelogin: startLogin,
14185
- onSetPrimary: (id) => void run("set-primary", () => API$4.accountAction("set-primary", { accountId: id })),
14186
- onDelete: (id) => void run("delete", () => API$4.accountAction("delete", { accountId: id })),
14187
- onClearCooldown: (id) => void run("clear-cooldown", () => API$4.accountAction("clear-cooldown", { accountId: id })),
14188
- onSetStrategy: (strategy) => void run("strategy", () => API$4.accountAction("strategy", { strategy })),
14982
+ onSetPrimary: (id) => void run("set-primary", () => API$5.accountAction("set-primary", { accountId: id })),
14983
+ onDelete: (id) => void run("delete", () => API$5.accountAction("delete", { accountId: id })),
14984
+ onClearCooldown: (id) => void run("clear-cooldown", () => API$5.accountAction("clear-cooldown", { accountId: id })),
14985
+ onSetStrategy: (strategy) => void run("strategy", () => API$5.accountAction("strategy", { strategy })),
14189
14986
  renderAccountActions: (account) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
14190
14987
  className: "dsha-btn",
14191
14988
  disabled: busyAny,
@@ -14537,7 +15334,7 @@ window.__ModuleLoader__.load({
14537
15334
  onTest: () => {
14538
15335
  setBusy("test-model:" + model.id);
14539
15336
  setError(null);
14540
- API$4.test(model.id).then((outcome) => {
15337
+ API$5.test(model.id).then((outcome) => {
14541
15338
  applyStatus(outcome.status);
14542
15339
  setResults((current) => ({
14543
15340
  ...current,
@@ -16610,7 +17407,7 @@ window.__ModuleLoader__.load({
16610
17407
  };
16611
17408
  //#endregion
16612
17409
  //#region src/client/opendesign/OpenDesignSection.tsx
16613
- const API$3 = new OpenDesignApi();
17410
+ const API$4 = new OpenDesignApi();
16614
17411
  function detail(error) {
16615
17412
  return error instanceof Error ? error.message : String(error);
16616
17413
  }
@@ -16875,7 +17672,7 @@ window.__ModuleLoader__.load({
16875
17672
  const [loginFlow, setLoginFlow] = (0, react.useState)(null);
16876
17673
  const reload = (0, react.useCallback)(async () => {
16877
17674
  try {
16878
- const next = await API$3.status();
17675
+ const next = await API$4.status();
16879
17676
  setStatus(next);
16880
17677
  setSettingsForm((current) => current ?? (next.settings === void 0 ? null : settingsFormOf(next)));
16881
17678
  setError(null);
@@ -16899,7 +17696,7 @@ window.__ModuleLoader__.load({
16899
17696
  */
16900
17697
  const loadUsage = (0, react.useCallback)(async (silent) => {
16901
17698
  try {
16902
- const outcome = await API$3.readUsage();
17699
+ const outcome = await API$4.readUsage();
16903
17700
  setStatus(outcome.status);
16904
17701
  if (!silent) setNotice(outcome.usage.accounts.some((account) => account.ok) ? "" : zh$5.usageEmpty);
16905
17702
  } catch (cause) {
@@ -16935,7 +17732,7 @@ window.__ModuleLoader__.load({
16935
17732
  const flow = loginFlow;
16936
17733
  if (flow === null || flow.status !== "pending") return;
16937
17734
  const timer = window.setInterval(() => {
16938
- API$3.loginStatus(flow.id).then((next) => {
17735
+ API$4.loginStatus(flow.id).then((next) => {
16939
17736
  setLoginFlow(next);
16940
17737
  if (next.status === "complete") {
16941
17738
  setNotice(zh$5.loginComplete.replace("{account}", next.accountAlias === "" ? "OpenDesign" : next.accountAlias));
@@ -16955,7 +17752,7 @@ window.__ModuleLoader__.load({
16955
17752
  setBusy("login");
16956
17753
  setError(null);
16957
17754
  setNotice(null);
16958
- API$3.startLogin().then((flow) => {
17755
+ API$4.startLogin().then((flow) => {
16959
17756
  setLoginFlow(flow);
16960
17757
  if (flow.verificationUri !== "" && typeof window !== "undefined" && typeof window.open === "function") try {
16961
17758
  window.open(flow.verificationUri, "_blank", "noopener,noreferrer");
@@ -16964,7 +17761,7 @@ window.__ModuleLoader__.load({
16964
17761
  }, []);
16965
17762
  const cancelLogin = (0, react.useCallback)(() => {
16966
17763
  if (loginFlow === null) return;
16967
- API$3.cancelLogin(loginFlow.id).then(() => {
17764
+ API$4.cancelLogin(loginFlow.id).then(() => {
16968
17765
  setLoginFlow({
16969
17766
  ...loginFlow,
16970
17767
  status: "cancelled"
@@ -16983,7 +17780,7 @@ window.__ModuleLoader__.load({
16983
17780
  const reloginAccount = (0, react.useCallback)((accountId) => {
16984
17781
  (async () => {
16985
17782
  try {
16986
- applyStatus(await API$3.accountAction("relogin", { accountId }));
17783
+ applyStatus(await API$4.accountAction("relogin", { accountId }));
16987
17784
  } catch (cause) {
16988
17785
  setError(detail(cause));
16989
17786
  return;
@@ -17006,7 +17803,7 @@ window.__ModuleLoader__.load({
17006
17803
  }, [applyStatus]);
17007
17804
  const refreshUsage = (0, react.useCallback)(() => {
17008
17805
  run("usage", async () => {
17009
- const outcome = await API$3.readUsage();
17806
+ const outcome = await API$4.readUsage();
17010
17807
  setNotice(outcome.usage.accounts.some((account) => account.ok) ? "" : zh$5.usageEmpty);
17011
17808
  return outcome.status;
17012
17809
  });
@@ -17015,7 +17812,7 @@ window.__ModuleLoader__.load({
17015
17812
  const trimmed = key.trim();
17016
17813
  if (trimmed === "") return;
17017
17814
  run("add", async () => {
17018
- const next = await API$3.accountAction("add", {
17815
+ const next = await API$4.accountAction("add", {
17019
17816
  apiKey: trimmed,
17020
17817
  ...alias.trim() === "" ? {} : { alias: alias.trim() },
17021
17818
  ...keyBaseURL.trim() === "" ? {} : { baseURL: keyBaseURL.trim() }
@@ -17038,7 +17835,7 @@ window.__ModuleLoader__.load({
17038
17835
  setBusy("test-key");
17039
17836
  setError(null);
17040
17837
  setNotice(null);
17041
- API$3.testKey({
17838
+ API$4.testKey({
17042
17839
  apiKey: trimmed,
17043
17840
  ...keyBaseURL.trim() === "" ? {} : { baseURL: keyBaseURL.trim() }
17044
17841
  }).then((result) => {
@@ -17049,7 +17846,7 @@ window.__ModuleLoader__.load({
17049
17846
  setBusy("test:" + accountId);
17050
17847
  setError(null);
17051
17848
  setNotice(null);
17052
- API$3.testKey({ accountId }).then((result) => {
17849
+ API$4.testKey({ accountId }).then((result) => {
17053
17850
  setNotice(result.authorized ? zh$5.keyTestOk.replace("{ms}", String(Math.round(result.ms))).replace("{count}", String(result.modelCount)) : zh$5.keyTestFailed.replace("{detail}", result.error));
17054
17851
  }).catch((cause) => setError(detail(cause))).finally(() => setBusy(null));
17055
17852
  }, []);
@@ -17061,14 +17858,14 @@ window.__ModuleLoader__.load({
17061
17858
  const current = status.models.filter((model) => model.enabled).map((model) => model.id);
17062
17859
  const next = checked ? [.../* @__PURE__ */ new Set([...current, id])] : current.filter((entry) => entry !== id);
17063
17860
  run("models", async () => {
17064
- if (checked) await API$3.setVisibility(id, true);
17065
- return await API$3.setEnabledModels(next.length === status.models.length ? null : next);
17861
+ if (checked) await API$4.setVisibility(id, true);
17862
+ return await API$4.setEnabledModels(next.length === status.models.length ? null : next);
17066
17863
  });
17067
17864
  }, [status, run]);
17068
17865
  const setAllModels = (0, react.useCallback)((selectAll) => {
17069
17866
  run("models", async () => {
17070
- if (selectAll) await API$3.setVisibilityAll("all");
17071
- return await API$3.setEnabledModels(selectAll ? null : []);
17867
+ if (selectAll) await API$4.setVisibilityAll("all");
17868
+ return await API$4.setEnabledModels(selectAll ? null : []);
17072
17869
  });
17073
17870
  }, [run]);
17074
17871
  const commitContext = (0, react.useCallback)((id) => {
@@ -17079,7 +17876,7 @@ window.__ModuleLoader__.load({
17079
17876
  setError(zh$5.error.replace("{detail}", zh$5.defaultContextWindow));
17080
17877
  return;
17081
17878
  }
17082
- run("ctx:" + id, () => API$3.setContextWindow(id, parsed));
17879
+ run("ctx:" + id, () => API$4.setContextWindow(id, parsed));
17083
17880
  }, [
17084
17881
  status,
17085
17882
  drafts,
@@ -17088,7 +17885,7 @@ window.__ModuleLoader__.load({
17088
17885
  const resetContext = (0, react.useCallback)((id) => {
17089
17886
  const fallback = status?.models.find((entry) => entry.id === id)?.defaultContextWindow;
17090
17887
  run("ctx:" + id, async () => {
17091
- const next = await API$3.setContextWindow(id, null);
17888
+ const next = await API$4.setContextWindow(id, null);
17092
17889
  if (fallback !== void 0) setDrafts((current) => ({
17093
17890
  ...current,
17094
17891
  [id]: formatCapacity$1(fallback)
@@ -17102,7 +17899,7 @@ window.__ModuleLoader__.load({
17102
17899
  const overridden = status.models.filter((model) => model.contextWindowOverride !== void 0);
17103
17900
  run("ctx-all", async () => {
17104
17901
  let next = status;
17105
- for (const model of overridden) next = await API$3.setContextWindow(model.id, null);
17902
+ for (const model of overridden) next = await API$4.setContextWindow(model.id, null);
17106
17903
  setDrafts((current) => {
17107
17904
  const draftsNext = { ...current };
17108
17905
  for (const model of overridden) draftsNext[model.id] = formatCapacity$1(model.defaultContextWindow);
@@ -17113,7 +17910,7 @@ window.__ModuleLoader__.load({
17113
17910
  }, [status, run]);
17114
17911
  const refreshCatalog = (0, react.useCallback)(() => {
17115
17912
  run("catalog", async () => {
17116
- const outcome = await API$3.refreshCatalog();
17913
+ const outcome = await API$4.refreshCatalog();
17117
17914
  setNotice(zh$5.catalogSyncedNote.replace("{count}", String(outcome.status.catalogCount)));
17118
17915
  return outcome.status;
17119
17916
  });
@@ -17133,7 +17930,7 @@ window.__ModuleLoader__.load({
17133
17930
  }
17134
17931
  setBusy("settings");
17135
17932
  setError(null);
17136
- API$3.updateSettings({
17933
+ API$4.updateSettings({
17137
17934
  baseURL: settingsForm.baseURL,
17138
17935
  ...numbers
17139
17936
  }).then((next) => {
@@ -17197,10 +17994,10 @@ window.__ModuleLoader__.load({
17197
17994
  onLogin: startLogin,
17198
17995
  loginBusyLabel: t.loggingIn,
17199
17996
  onRelogin: reloginAccount,
17200
- onSetPrimary: (id) => void run("set-primary", () => API$3.accountAction("set-primary", { accountId: id })),
17201
- onDelete: (id) => void run("delete", () => API$3.accountAction("delete", { accountId: id })),
17202
- onClearCooldown: (id) => void run("clear-cooldown", () => API$3.accountAction("clear-cooldown", { accountId: id })),
17203
- onSetStrategy: (strategy) => void run("strategy", () => API$3.accountAction("strategy", { strategy })),
17997
+ onSetPrimary: (id) => void run("set-primary", () => API$4.accountAction("set-primary", { accountId: id })),
17998
+ onDelete: (id) => void run("delete", () => API$4.accountAction("delete", { accountId: id })),
17999
+ onClearCooldown: (id) => void run("clear-cooldown", () => API$4.accountAction("clear-cooldown", { accountId: id })),
18000
+ onSetStrategy: (strategy) => void run("strategy", () => API$4.accountAction("strategy", { strategy })),
17204
18001
  renderAccountActions: (account) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
17205
18002
  className: "dsha-btn",
17206
18003
  disabled: busyAny,
@@ -17928,7 +18725,7 @@ window.__ModuleLoader__.load({
17928
18725
  * `WorkBuddySectionView` — so the contract between the two is visible here
17929
18726
  * rather than inferred from the JSX.
17930
18727
  */
17931
- const API$2 = "/workbuddy/api";
18728
+ const API$3 = "/workbuddy/api";
17932
18729
  /**
17933
18730
  * The shared card's label set.
17934
18731
  *
@@ -17956,7 +18753,7 @@ window.__ModuleLoader__.load({
17956
18753
  * is exactly what a stale host half produces) be reported as such instead of as
17957
18754
  * a bare "Unexpected end of JSON input".
17958
18755
  */
17959
- const api$5 = createLineApi(API$2, "WorkBuddy");
18756
+ const api$5 = createLineApi(API$3, "WorkBuddy");
17960
18757
  /**
17961
18758
  * Reasoning levels the default-effort control may offer.
17962
18759
  *
@@ -19360,6 +20157,12 @@ window.__ModuleLoader__.load({
19360
20157
  name: "WorkBuddy",
19361
20158
  setEnabled: (enabled) => postLineSettings("/workbuddy/api", { enabled }),
19362
20159
  renderDetail: ({ onModelChange }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkBuddySection, { onModelChange })
20160
+ },
20161
+ {
20162
+ id: "antigravity-acp",
20163
+ name: "Antigravity (ACP)",
20164
+ setEnabled: (enabled) => postLineSettings("/antigravity-acp/api", { enabled }),
20165
+ renderDetail: ({ onModelChange }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AntigravityAcpSection, { onModelChange })
19363
20166
  }
19364
20167
  ];
19365
20168
  function hubProviderDescriptor(id) {
@@ -20082,6 +20885,7 @@ window.__ModuleLoader__.load({
20082
20885
  "cardName.qoder": "Qoder(订阅)",
20083
20886
  "cardName.opendesign": "OpenDesign",
20084
20887
  "cardName.workbuddy": "WorkBuddy",
20888
+ "cardName.antigravity-acp": "Antigravity(ACP)",
20085
20889
  modelChecklistCount: "已启用 {count}/{total}",
20086
20890
  codeRunTitle: "代码",
20087
20891
  codeRunOutput: "输出",
@@ -20304,6 +21108,7 @@ window.__ModuleLoader__.load({
20304
21108
  "cardName.qoder": "Qoder Subscription",
20305
21109
  "cardName.opendesign": "OpenDesign",
20306
21110
  "cardName.workbuddy": "WorkBuddy",
21111
+ "cardName.antigravity-acp": "Antigravity (ACP)",
20307
21112
  modelChecklistCount: "{count}/{total} enabled",
20308
21113
  codeRunTitle: "Code",
20309
21114
  codeRunOutput: "Output",
@@ -20643,7 +21448,7 @@ window.__ModuleLoader__.load({
20643
21448
  * account-pool labels come from `./account-pool.ts`, with the same overrides the
20644
21449
  * source applies on top of them.
20645
21450
  */
20646
- const dictionary$13 = {
21451
+ const dictionary$14 = {
20647
21452
  ...accountPoolRu,
20648
21453
  title: "Claude (подписка)",
20649
21454
  pageDesc: "Войдите в подписку Claude Pro/Max и управляйте моделями, уровнями рассуждений, контекстными окнами и квотой.",
@@ -20762,7 +21567,7 @@ window.__ModuleLoader__.load({
20762
21567
  };
20763
21568
  //#endregion
20764
21569
  //#region src/client/locales-ru/cline-pass.ts
20765
- const dictionary$12 = {
21570
+ const dictionary$13 = {
20766
21571
  ...accountPoolRu,
20767
21572
  relogin: "Войти заново",
20768
21573
  needsRelogin: "Вход истёк",
@@ -20888,7 +21693,7 @@ window.__ModuleLoader__.load({
20888
21693
  };
20889
21694
  //#endregion
20890
21695
  //#region src/client/locales-ru/command-code.ts
20891
- const dictionary$11 = {
21696
+ const dictionary$12 = {
20892
21697
  ...accountPoolRu,
20893
21698
  title: "Command Code",
20894
21699
  pageDesc: "Войдите в Command Code и управляйте моделями, контекстными окнами и квотой.",
@@ -20958,7 +21763,7 @@ window.__ModuleLoader__.load({
20958
21763
  };
20959
21764
  //#endregion
20960
21765
  //#region src/client/locales-ru/glm-coding-plan.ts
20961
- const dictionary$10 = {
21766
+ const dictionary$11 = {
20962
21767
  ...accountPoolRu,
20963
21768
  title: "GLM (аккаунт ZCode)",
20964
21769
  pageDesc: "Вход аккаунтом ZCode подключает GLM Coding Plan (Китай — bigmodel.cn, международный — z.ai). Здесь же пул аккаунтов, квота тарифа и выбор моделей. Учётные данные двух регионов независимы, поэтому в одном пуле могут быть аккаунты обоих.",
@@ -21061,7 +21866,7 @@ window.__ModuleLoader__.load({
21061
21866
  * account-pool labels come from `./account-pool.ts`, with the same overrides the
21062
21867
  * source applies on top of them.
21063
21868
  */
21064
- const dictionary$9 = {
21869
+ const dictionary$10 = {
21065
21870
  ...accountPoolRu,
21066
21871
  title: "ChatGPT",
21067
21872
  hubTitle: "Подписки",
@@ -21268,6 +22073,7 @@ window.__ModuleLoader__.load({
21268
22073
  "cardName.qoder": "Qoder (подписка)",
21269
22074
  "cardName.opendesign": "OpenDesign",
21270
22075
  "cardName.workbuddy": "WorkBuddy",
22076
+ "cardName.antigravity-acp": "Antigravity (ACP)",
21271
22077
  modelChecklistCount: "Включено {count}/{total}",
21272
22078
  codeRunTitle: "Код",
21273
22079
  codeRunOutput: "Вывод",
@@ -21283,7 +22089,7 @@ window.__ModuleLoader__.load({
21283
22089
  };
21284
22090
  //#endregion
21285
22091
  //#region src/client/locales-ru/kimi-code.ts
21286
- const dictionary$8 = {
22092
+ const dictionary$9 = {
21287
22093
  ...accountPoolRu,
21288
22094
  title: "Kimi Code",
21289
22095
  pageDesc: "Вход в подписку Kimi Code: модели, уровень рассуждений, контекстные окна и квота.",
@@ -21472,7 +22278,7 @@ window.__ModuleLoader__.load({
21472
22278
  };
21473
22279
  //#endregion
21474
22280
  //#region src/client/locales-ru/minimax-code.ts
21475
- const dictionary$7 = {
22281
+ const dictionary$8 = {
21476
22282
  ...accountPoolRu,
21477
22283
  title: "MiniMax Code",
21478
22284
  pageDesc: "Вход в подписку MiniMax Code для программирования (OAuth по коду устройства) с переиспользованием локального входа MiniMax Code: управление аккаунтом, подключением и моделями.",
@@ -21672,7 +22478,7 @@ window.__ModuleLoader__.load({
21672
22478
  };
21673
22479
  //#endregion
21674
22480
  //#region src/client/locales-ru/ollama.ts
21675
- const dictionary$6 = {
22481
+ const dictionary$7 = {
21676
22482
  ...accountPoolRu,
21677
22483
  relogin: "Заменить ключ",
21678
22484
  needsRelogin: "Ключ отклонён",
@@ -21725,6 +22531,98 @@ window.__ModuleLoader__.load({
21725
22531
  usageHint: "Суммируется локально по счётчикам токенов, которые Ollama возвращает в каждом ответе."
21726
22532
  };
21727
22533
  //#endregion
22534
+ //#region src/client/locales-ru/antigravity-acp.ts
22535
+ const dictionary$6 = {
22536
+ title: "Antigravity (ACP)",
22537
+ pageDesc: "Подключение через официальный Antigravity CLI от Google по Agent Client Protocol (ACP): модель, инструменты и сессии приходят от официального процесса, и он же хранит состояние входа.",
22538
+ routeOwned: "Маршрут моделей обслуживает этот плагин",
22539
+ routeConflict: "Маршрут моделей уже занят другим провайдером: {detail}",
22540
+ binarySection: "Среда выполнения",
22541
+ binarySourceLabel: "Используется",
22542
+ binaryHintSummary: "Откуда берётся исполняемый файл?",
22543
+ binaryKindLocal: "Локальный Antigravity CLI",
22544
+ binaryKindConfigured: "Указанный путь",
22545
+ binaryKindDownloaded: "Официальный ACP-сервер (загружен)",
22546
+ binaryKindMissing: "Рабочий agy не найден",
22547
+ binaryVersion: "версия {version}",
22548
+ binaryMissingHint: "Локальный agy не найден, а официальный ACP-сервер ещё не загружен. Установите Antigravity CLI и откройте эту страницу снова — или укажите путь к исполняемому файлу вручную.",
22549
+ binaryPathLabel: "Путь к исполняемому файлу",
22550
+ binaryPathPlaceholder: "Оставьте пустым для автоматического поиска (локальный agy, затем официальный ACP-сервер)",
22551
+ binaryPathSave: "Сохранить путь",
22552
+ binaryPathReset: "Вернуть автопоиск",
22553
+ authSection: "Вход",
22554
+ statusLabel: "Состояние",
22555
+ signedIn: "Выполнен вход",
22556
+ signedOut: "Вход не выполнен",
22557
+ signIn: "Войти через Google",
22558
+ signInAgain: "Войти снова",
22559
+ signInStarting: "Запуск…",
22560
+ signInSuccess: "Вход запущен: браузер откроет Antigravity CLI, а состояние здесь сменится на «выполнен вход» после подтверждения.",
22561
+ signInAlready: "Вход уже выполнен, повторять его не нужно.",
22562
+ signInHintSummary: "Как проходит вход?",
22563
+ signInHint: "Вход выполняет сам Antigravity CLI: он откроет браузер, после чего вернитесь сюда и обновите состояние. Плагин не читает и не сохраняет ваши учётные данные Google.",
22564
+ signInHeadless: "На хосте без графической среды выполните в терминале agy acp --login, затем обновите страницу.",
22565
+ tierLabel: "Тариф",
22566
+ tierUnknown: "Официальный процесс не сообщил",
22567
+ refreshStatus: "Обновить состояние",
22568
+ runDoctor: "Запустить самопроверку",
22569
+ doctorRunning: "Проверка…",
22570
+ doctorTitle: "Результат самопроверки",
22571
+ modelsSection: "Модели",
22572
+ modelsHint: "Список моделей приходит из живой ACP-сессии и зависит от аккаунта и тарифа; он не поставляется с плагином. Уровни размышления публикует каждая модель сама.",
22573
+ catalogNeverSynced: "Список моделей ещё не синхронизирован. Нажмите «Синхронизировать модели» выше, чтобы получить доступные этому аккаунту модели.",
22574
+ catalogStale: "Показан кэшированный список с прошлой синхронизации.",
22575
+ catalogSync: "Синхронизировать модели",
22576
+ catalogSyncing: "Синхронизация…",
22577
+ catalogFailed: "Не удалось прочитать список моделей: {detail}",
22578
+ modelCount: "Моделей: {count}",
22579
+ noModels: "Официальный процесс не вернул ни одной модели.",
22580
+ selectAll: "Выбрать все",
22581
+ unselectAll: "Снять все",
22582
+ noneSelected: "Ни одна модель не выбрана, поэтому линия не появится в выборе моделей.",
22583
+ effortLabels: "Уровни размышления: {levels}",
22584
+ enhanced: "Дополнительно",
22585
+ defaultReasoningEffort: "Уровень размышления по умолчанию",
22586
+ defaultReasoningEffortHint: "Используется как значение по умолчанию для новых сессий; явный запрос имеет приоритет. Уровень, который модель не принимает, отбрасывается, а не роняет весь ход.",
22587
+ defaultEffortAuto: "Не указывать (по умолчанию у официального клиента)",
22588
+ permissionPolicy: "Разрешения инструментов",
22589
+ permissionPolicyReject: "Отклонять",
22590
+ permissionPolicyAllow: "Автоматически разрешать (рекомендуется)",
22591
+ permissionPolicyHint: "Вызовы, которые возвращаются в DSH через локальный MCP-мост, разрешаются всегда: ими управляют пресеты разрешений DSH. Эта настройка касается собственных запросов разрешений официального процесса, когда он использует встроенный инструмент, и авторазрешения в режиме субагента.",
22592
+ nativeTools: "Встроенные инструменты",
22593
+ nativeToolsAllow: "Записать и продолжить (рекомендуется)",
22594
+ nativeToolsCancel: "Немедленно отменить ход",
22595
+ nativeToolsHint: "Собственные инструменты Antigravity (shell, файлы) невозможно отключить на уровне протокола. В режиме «Записать и продолжить» их использование оставляет видимую пометку в диалоге, а ход продолжается; режим «Немедленно отменить ход» завершает ход на первом же таком вызове.",
22596
+ usageSection: "Расход последнего хода",
22597
+ usageInputLabel: "Вход",
22598
+ usageOutputLabel: "Выход",
22599
+ usageCacheLabel: "Чтение из кэша",
22600
+ usageDurationLabel: "Длительность",
22601
+ usageHintSummary: "Почему здесь нет процента квоты?",
22602
+ usageInput: "вход {tokens}",
22603
+ usageOutput: "выход {tokens}",
22604
+ usageCache: "чтение из кэша {tokens}",
22605
+ usageDuration: "{seconds} с",
22606
+ usageNone: "Завершённых ходов пока нет.",
22607
+ usageHint: "Официальный ACP-сервер не публикует остаток квоты или процент тарифа, поэтому карточка показывает только реально возвращённые счётчики токенов.",
22608
+ occupancyLabel: "Заполнение контекста",
22609
+ occupancyDetail: "использовано {used} из {size}",
22610
+ scopeSection: "Границы возможностей",
22611
+ scopeSummary: "Четыре объективных ограничения: нет слота системного промпта, новая сессия каждый ход, официальные инструменты в режиме субагента и отсутствие публикуемой квоты.",
22612
+ scopeHintSummary: "Показать четыре ограничения",
22613
+ scopeHint: "Это объективные ограничения ACP и официального агента; данная линия их не обходит:",
22614
+ scopePrompt: "В ACP нет отдельного слота системного промпта: системный промпт DSH передаётся в начале запроса, а собственный системный промпт официального агента убрать нельзя.",
22615
+ scopeHistory: "Каждый ход заново создаёт ACP-сессию из полной истории DSH; если история сжата или переписана, создаётся новая сессия вместо продолжения той, что может уже не совпадать.",
22616
+ scopeTools: "Как основная модель линия выполняет вызовы инструментов через DSH и под его контролем; как субагент дочерний процесс использует собственные инструменты официального агента.",
22617
+ scopeQuota: "Официальный сервер не публикует остаток квоты, поэтому карточка не показывает ни процентов, ни баланса.",
22618
+ error: "Не удалось выполнить действие: {detail}",
22619
+ complianceSummary: "Риск по условиям (нажмите, чтобы прочитать)",
22620
+ complianceNotice: "Риск по условиям использования: официальный FAQ Google Antigravity указывает, что доступ к Antigravity через стороннее программное обеспечение, инструменты или сервисы нарушает Условия использования и может привести к приостановке или прекращению действия аккаунта; там же сказано, что обёртывание agy в сторонние кодирующие агенты или приложения и автоматическая ротация аккаунтов не поддерживаются на потребительских тарифах. Плагин запускает официальные agy и ACP-сервер Google (без реверс-инжиниринга протокола, без доступа к учётным данным, один аккаунт, без ротации), но эти меры не устраняют риск. Продолжать пользоваться или нет — ваше решение. Если требуется нулевая спорность, используйте Gemini Enterprise или API-ключ Google AI Studio.",
22621
+ disabledHint: "Линия сейчас отключена. Включите её на карточке в обзоре подписок — после этого она появится в выборе моделей.",
22622
+ enabledHint: "Линия включена.",
22623
+ toggleHint: "Отключить её можно в любой момент на карточке в обзоре подписок."
22624
+ };
22625
+ //#endregion
21728
22626
  //#region src/client/locales-ru/opendesign.ts
21729
22627
  const dictionary$5 = {
21730
22628
  ...accountPoolRu,
@@ -22364,20 +23262,21 @@ window.__ModuleLoader__.load({
22364
23262
  }
22365
23263
  }, "dsh-chatgpt-subscription: ru language");
22366
23264
  const dictionaries = [
22367
- [NS, dictionary$9],
22368
- [NS_CLAUDE, dictionary$13],
22369
- [NS_COMMAND_CODE, dictionary$11],
22370
- [NS_KIMI_CODE, dictionary$8],
22371
- [NS_MINIMAX_CODE, dictionary$7],
22372
- [NS_GLM_CODING_PLAN, dictionary$10],
22373
- [NS_OLLAMA, dictionary$6],
23265
+ [NS, dictionary$10],
23266
+ [NS_CLAUDE, dictionary$14],
23267
+ [NS_COMMAND_CODE, dictionary$12],
23268
+ [NS_KIMI_CODE, dictionary$9],
23269
+ [NS_MINIMAX_CODE, dictionary$8],
23270
+ [NS_GLM_CODING_PLAN, dictionary$11],
23271
+ [NS_OLLAMA, dictionary$7],
22374
23272
  [NS_STEP_CODE, dictionary$1],
22375
- [NS_CLINE_PASS, dictionary$12],
23273
+ [NS_CLINE_PASS, dictionary$13],
22376
23274
  [NS_QODER, dictionary$2],
22377
23275
  [NS_OPENDESIGN, dictionary$5],
22378
23276
  [NS_PROGRESS_UPDATES, dictionary$3],
22379
23277
  [NS_WORKBUDDY, dictionary],
22380
- [NS_DISPATCH_LEDGER, dictionary$4]
23278
+ [NS_DISPATCH_LEDGER, dictionary$4],
23279
+ [NS_ANTIGRAVITY_ACP, dictionary$6]
22381
23280
  ];
22382
23281
  for (const [ns, dictionary] of dictionaries) ctx.effect(() => {
22383
23282
  try {
@@ -22920,7 +23819,7 @@ window.__ModuleLoader__.load({
22920
23819
  }
22921
23820
  //#endregion
22922
23821
  //#region src/client/claude/styles.ts
22923
- const STYLE_ID$6 = "dsh-claude-settings-style";
23822
+ const STYLE_ID$7 = "dsh-claude-settings-style";
22924
23823
  /**
22925
23824
  * Claude-only additions to the shared settings design system.
22926
23825
  *
@@ -22944,7 +23843,7 @@ window.__ModuleLoader__.load({
22944
23843
  .dshcl-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;overflow-wrap:anywhere}
22945
23844
  .dshcl-model-meta{color:var(--dsw-alias-label-tertiary);font-size:11px;margin-left:5px}
22946
23845
  .dshcl-empty-inline{color:var(--dsw-alias-label-tertiary);font-size:12px}
22947
- `, STYLE_ID$6);
23846
+ `, STYLE_ID$7);
22948
23847
  }
22949
23848
  //#endregion
22950
23849
  //#region src/client/command-code/CommandCodeComposerQuota.tsx
@@ -23061,7 +23960,7 @@ window.__ModuleLoader__.load({
23061
23960
  }
23062
23961
  //#endregion
23063
23962
  //#region src/client/kimi-code/styles.ts
23064
- const STYLE_ID$5 = "dsh-kimi-code-settings-style";
23963
+ const STYLE_ID$6 = "dsh-kimi-code-settings-style";
23065
23964
  /**
23066
23965
  * Node the base control styles come from.
23067
23966
  *
@@ -23203,7 +24102,7 @@ window.__ModuleLoader__.load({
23203
24102
  `;
23204
24103
  /** Kimi-specific rules layered on top of the shared control styles. */
23205
24104
  function installKimiCodeStyles() {
23206
- installPluginStyle("kimi-code", BASE, STYLE_ID$5);
24105
+ installPluginStyle("kimi-code", BASE, STYLE_ID$6);
23207
24106
  }
23208
24107
  //#endregion
23209
24108
  //#region src/client/minimax-code/MinimaxCodeComposerQuota.tsx
@@ -23339,7 +24238,7 @@ window.__ModuleLoader__.load({
23339
24238
  //#region src/client/minimax-code/MinimaxVideoDocumentBody.tsx
23340
24239
  /** 兜底翻译:只在没有 locale 座位时用到。 */
23341
24240
  function translate$1(key) {
23342
- return zh$12[key] ?? key;
24241
+ return zh$13[key] ?? key;
23343
24242
  }
23344
24243
  /**
23345
24244
  * 一个文件地址里的会话与路径。
@@ -23475,7 +24374,7 @@ window.__ModuleLoader__.load({
23475
24374
  */
23476
24375
  /** 兜底翻译:只在没有 locale 座位时用到,走同一份 zh 字典。 */
23477
24376
  function translate(key) {
23478
- return zh$12[key] ?? key;
24377
+ return zh$13[key] ?? key;
23479
24378
  }
23480
24379
  /**
23481
24380
  * 一张视频工具卡片。
@@ -23745,7 +24644,7 @@ window.__ModuleLoader__.load({
23745
24644
  }
23746
24645
  //#endregion
23747
24646
  //#region src/client/minimax-code/styles.ts
23748
- const STYLE_ID$4 = "dsh-minimax-code-settings-style";
24647
+ const STYLE_ID$5 = "dsh-minimax-code-settings-style";
23749
24648
  /**
23750
24649
  * MiniMax Code-only additions to the shared settings design system.
23751
24650
  *
@@ -23914,7 +24813,7 @@ window.__ModuleLoader__.load({
23914
24813
  .dshm-video-history-meta{color:var(--dsw-alias-label-tertiary);flex:none;font-size:11px;font-variant-numeric:tabular-nums}
23915
24814
  @media(max-width:560px){.dshm-video-modal-root{padding:12px 8px}.dshm-video-modal{max-height:calc(100vh - 24px)}.dshm-video-field-row{flex-direction:column;gap:8px}.dshm-video-foot-hint{display:none}}
23916
24815
  @media(prefers-reduced-motion:reduce){.dshm-video-skeleton span{animation:none;opacity:.6}}
23917
- `, STYLE_ID$4);
24816
+ `, STYLE_ID$5);
23918
24817
  }
23919
24818
  //#endregion
23920
24819
  //#region src/client/glm-coding-plan/GlmCodingPlanComposerQuota.tsx
@@ -23931,7 +24830,7 @@ window.__ModuleLoader__.load({
23931
24830
  * 没有快照、没有窗口、或全部窗口都没有百分比时返回 null,即**不渲染胶囊**:
23932
24831
  * 契约允许 quota 为 null,装一个占位数字比不显示更像坏了。
23933
24832
  */
23934
- function selectBadgeFacts$3(status, lookup = (key) => zh$11[key]) {
24833
+ function selectBadgeFacts$3(status, lookup = (key) => zh$12[key]) {
23935
24834
  const measured = (status?.quota?.windows ?? []).filter((window) => typeof window.usedPercent === "number" && Number.isFinite(window.usedPercent));
23936
24835
  if (measured.length === 0) return null;
23937
24836
  const tightest = measured.reduce((best, window) => {
@@ -23962,14 +24861,14 @@ window.__ModuleLoader__.load({
23962
24861
  directory,
23963
24862
  loadModelDirectory,
23964
24863
  providerId: GLM_CODING_PLAN_PROVIDER_ID,
23965
- readStatus: (refresh) => refresh ? post$3("/quota", {}) : get$2("/status"),
24864
+ readStatus: (refresh) => refresh ? post$4("/quota", {}) : get$2("/status"),
23966
24865
  selectFacts: (status) => selectBadgeFacts$3(status, t),
23967
24866
  label: t("composerLabel")
23968
24867
  });
23969
24868
  }
23970
24869
  //#endregion
23971
24870
  //#region src/client/glm-coding-plan/styles.ts
23972
- const STYLE_ID$3 = "dsh-glm-coding-plan-settings-style";
24871
+ const STYLE_ID$4 = "dsh-glm-coding-plan-settings-style";
23973
24872
  /**
23974
24873
  * GLM(ZCode 账号)卡片独有的样式。
23975
24874
  *
@@ -24009,6 +24908,92 @@ window.__ModuleLoader__.load({
24009
24908
  :not(.dsha-btn-primary));通用 hover 修好后它只剩副作用:把 .dsha-btn 的次要
24010
24909
  按钮也画成主按钮,故删除。 */
24011
24910
  .dsha-account-add-actions{display:flex;flex-wrap:wrap;gap:8px}
24911
+ `, STYLE_ID$4);
24912
+ }
24913
+ //#endregion
24914
+ //#region src/client/antigravity-acp/route.ts
24915
+ /** The provider route id this line serves; shared by the adapter and the client badge. */
24916
+ const PROVIDER_ROUTE_ID = "antigravity-acp";
24917
+ //#endregion
24918
+ //#region src/client/antigravity-acp/AntigravityAcpComposerBadge.tsx
24919
+ const API$2 = new AntigravityAcpApi();
24920
+ /**
24921
+ * The composer badge for the Antigravity line.
24922
+ *
24923
+ * It shows what the official server actually reported - plan tier and the last
24924
+ * turn's token counts - and nothing else. There is deliberately no percentage:
24925
+ * ACP publishes no remaining quota, and a badge that invented one would be the
24926
+ * single most misleading pixel on the page.
24927
+ */
24928
+ function AntigravityAcpComposerBadge(props) {
24929
+ const t = useLineDict(NS_ANTIGRAVITY_ACP, zh$9);
24930
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComposerQuotaBadge, {
24931
+ directory: props.directory,
24932
+ loadModelDirectory: props.loadModelDirectory,
24933
+ providerId: PROVIDER_ROUTE_ID,
24934
+ label: t.title,
24935
+ readStatus: async (refresh) => {
24936
+ const status = refresh ? await API$2.refresh() : await API$2.status();
24937
+ return {
24938
+ ...status,
24939
+ authenticated: status.auth.authenticated
24940
+ };
24941
+ },
24942
+ selectFacts: (status) => status === null ? null : factsFor(status, t)
24943
+ });
24944
+ }
24945
+ /** What the badge says for one status read; null means there is nothing honest to show. */
24946
+ function factsFor(status, t) {
24947
+ const tier = status.auth.tier;
24948
+ const usage = status.usage;
24949
+ if (status.auth.authenticated !== true) return null;
24950
+ if (tier === void 0 && usage === void 0) return null;
24951
+ const parts = [];
24952
+ if (tier !== void 0) parts.push(tier.name);
24953
+ if (usage !== void 0) {
24954
+ parts.push(t.usageInput.replace("{tokens}", compact(usage.inputTokens)));
24955
+ parts.push(t.usageOutput.replace("{tokens}", compact(usage.outputTokens)));
24956
+ }
24957
+ return {
24958
+ text: tier?.name ?? compact(usage?.inputTokens ?? 0),
24959
+ tooltip: parts.join(" · ") || t.usageNone,
24960
+ level: "normal"
24961
+ };
24962
+ }
24963
+ function compact(value) {
24964
+ if (!Number.isFinite(value) || value < 0) return "—";
24965
+ if (value < 1e3) return String(Math.floor(value));
24966
+ if (value < 1e6) return (value / 1e3).toFixed(value < 1e4 ? 1 : 0) + "K";
24967
+ return (value / 1e6).toFixed(1) + "M";
24968
+ }
24969
+ //#endregion
24970
+ //#region src/client/antigravity-acp/styles.ts
24971
+ const STYLE_ID$3 = "dsh-antigravity-acp-settings-style";
24972
+ /**
24973
+ * The Antigravity (ACP) card's own styles.
24974
+ *
24975
+ * Shared styles are never declared twice: the model checklist (`.dsh-mcl-*`) comes
24976
+ * from the shared model-checklist stylesheet, the base controls (`.dsha-group`,
24977
+ * `.dsha-pref-row`, `.dsha-select`, the composer pill) from the siblings' installers,
24978
+ * and the account-card skeleton is not used at all here because this line owns no
24979
+ * account pool.
24980
+ *
24981
+ * What is left is the one block nothing else has: the runtime line that states
24982
+ * which executable is in force and where it came from.
24983
+ */
24984
+ function installAntigravityAcpStyles() {
24985
+ installPluginStyle("antigravity-acp", `
24986
+ .dshagy-runtime{align-items:baseline;display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:4px}
24987
+ .dshagy-runtime-kind{color:var(--dsw-alias-label-primary);font-size:12px;font-weight:600}
24988
+ .dshagy-runtime-path{color:var(--dsw-alias-label-tertiary);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;overflow-wrap:anywhere;user-select:all}
24989
+ /* 折叠区:与 qoder / cline-pass 卡同一套写法——summary 是 12px 次要色、展开后正文同尺寸,
24990
+ details 默认不占版面。卡上只留一行结论,长句全部收进这里,不是删掉。 */
24991
+ .dshagy-details{border-top:0.5px solid var(--dsw-alias-border-l2);padding:10px 0 2px}
24992
+ .dshagy-details>summary{color:var(--dsw-alias-label-secondary);cursor:pointer;font-size:12px;line-height:1.5;list-style:none;user-select:none}
24993
+ .dshagy-details>summary::-webkit-details-marker{display:none}
24994
+ .dshagy-details[open]>summary{color:var(--dsw-alias-label-primary)}
24995
+ .dshagy-details>p{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:1.55;margin:9px 0 0}
24996
+ .dshagy-boundary{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:1.55;margin:9px 0 0;padding-left:18px}
24012
24997
  `, STYLE_ID$3);
24013
24998
  }
24014
24999
  //#endregion
@@ -26274,7 +27259,7 @@ window.__ModuleLoader__.load({
26274
27259
  }
26275
27260
  /** 兜底翻译:只在没有 locale 服务时用到(测试、以及菜单渲染早于字典注册)。 */
26276
27261
  function fallbackTranslate$3(key, params) {
26277
- const template = zh$12[key] ?? key;
27262
+ const template = zh$13[key] ?? key;
26278
27263
  if (params === void 0) return template;
26279
27264
  return template.replace(/\{(\w+)\}/g, (_match, name) => String(params[name] ?? ""));
26280
27265
  }
@@ -59667,28 +60652,33 @@ window.__ModuleLoader__.load({
59667
60652
  installModelChecklistStyles();
59668
60653
  return () => {};
59669
60654
  }, "dsh-chatgpt-subscription: hub styles");
59670
- ctx.effect(() => ctx.locale.register(NS_CLAUDE, dictionaries$10), "dsh-claude: dictionaries");
60655
+ ctx.effect(() => ctx.locale.register(NS_CLAUDE, dictionaries$11), "dsh-claude: dictionaries");
59671
60656
  ctx.effect(() => {
59672
60657
  installClaudeStyles();
59673
60658
  return () => {};
59674
60659
  }, "dsh-claude: styles");
59675
- ctx.effect(() => ctx.locale.register(NS_COMMAND_CODE, dictionaries$14), "dsh-command-code: dictionaries");
59676
- ctx.effect(() => ctx.locale.register(NS_KIMI_CODE, dictionaries$13), "dsh-kimi-code: dictionaries");
60660
+ ctx.effect(() => ctx.locale.register(NS_COMMAND_CODE, dictionaries$15), "dsh-command-code: dictionaries");
60661
+ ctx.effect(() => ctx.locale.register(NS_KIMI_CODE, dictionaries$14), "dsh-kimi-code: dictionaries");
59677
60662
  ctx.effect(() => {
59678
60663
  installKimiCodeStyles();
59679
60664
  return () => {};
59680
60665
  }, "dsh-kimi-code: styles");
59681
- ctx.effect(() => ctx.locale.register(NS_MINIMAX_CODE, dictionaries$12), "dsh-minimax-code: dictionaries");
60666
+ ctx.effect(() => ctx.locale.register(NS_MINIMAX_CODE, dictionaries$13), "dsh-minimax-code: dictionaries");
59682
60667
  ctx.effect(() => {
59683
60668
  installMinimaxCodeStyles();
59684
60669
  return () => {};
59685
60670
  }, "dsh-minimax-code: styles");
59686
- ctx.effect(() => ctx.locale.register(NS_GLM_CODING_PLAN, dictionaries$11), "dsh-glm-coding-plan: dictionaries");
60671
+ ctx.effect(() => ctx.locale.register(NS_GLM_CODING_PLAN, dictionaries$12), "dsh-glm-coding-plan: dictionaries");
59687
60672
  ctx.effect(() => {
59688
60673
  installGlmCodingPlanStyles();
59689
60674
  return () => {};
59690
60675
  }, "dsh-glm-coding-plan: styles");
59691
- ctx.effect(() => ctx.locale.register(NS_OLLAMA, dictionaries$9), "dsh-ollama: dictionaries");
60676
+ ctx.effect(() => ctx.locale.register(NS_OLLAMA, dictionaries$10), "dsh-ollama: dictionaries");
60677
+ ctx.effect(() => ctx.locale.register(NS_ANTIGRAVITY_ACP, dictionaries$9), "dsh-antigravity-acp: dictionaries");
60678
+ ctx.effect(() => {
60679
+ installAntigravityAcpStyles();
60680
+ return () => {};
60681
+ }, "dsh-antigravity-acp: styles");
59692
60682
  ctx.effect(() => ctx.locale.register(NS_PROGRESS_UPDATES, dictionaries$1), "dsh-progress-updates: dictionaries");
59693
60683
  ctx.effect(() => {
59694
60684
  installProgressUpdatesStyles();
@@ -59830,6 +60820,13 @@ window.__ModuleLoader__.load({
59830
60820
  locale: NS_WORKBUDDY,
59831
60821
  inject: (sessionId) => composerBadgeInject(ctx, sessionId)
59832
60822
  }, WorkBuddyComposerQuota));
60823
+ ctx.slots.inject("conversation.input.right", () => ctx.slots.register({
60824
+ name: "conversation.input.right",
60825
+ id: "antigravity-acp-quota",
60826
+ order: 48,
60827
+ locale: NS_ANTIGRAVITY_ACP,
60828
+ inject: (sessionId) => composerBadgeInject(ctx, sessionId)
60829
+ }, AntigravityAcpComposerBadge));
59833
60830
  ctx.slots.inject("tool.call.toolview", () => ctx.slots.register({
59834
60831
  name: "tool.call.toolview",
59835
60832
  key: CODEX_IMAGE_TOOL_NAME,