@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
@@ -196,7 +196,7 @@ function assertLiveRoot(ctx, agent) {
196
196
  * 探索纪律、决策完备清单、`exit_plan_mode` 唯一最后调用、打回循环都搬到
197
197
  * `enterResultText()` 的工具返回里:工具结果是**末尾追加**,不破坏前缀,且比描述便宜。
198
198
  */
199
- const ENTER_DESCRIPTION = "Enter plan mode for the rest of this session. Dispatch mode only: call it only once the task is triaged L2-Governed and the R-G interview has converged (frontier empty, user confirmed shared understanding). This step completes only the entry; exploring and writing the plan happen in your next step. Never call it for L0/L1/L2-Clear or while a frontier question is open.";
199
+ const ENTER_DESCRIPTION = "Enter plan mode for the rest of this session. Dispatch mode only: call it only once the task is triaged L2-Governed and the R-G interview has converged (frontier empty, all open decisions answered). This step completes only the entry; exploring and writing the plan happen in your next step. Never call it for L0/L1/L2-Clear or while a frontier question is open.";
200
200
  /**
201
201
  * `leave_plan_mode` 的模型侧描述。
202
202
  *
@@ -1,2 +1,2 @@
1
- import { i as name, n as attachProgressSettings, r as inject, t as apply } from "./entry-progress-updates-DmA1u3Wy.js";
1
+ import { i as name, n as attachProgressSettings, r as inject, t as apply } from "./entry-progress-updates-DMLVID9V.js";
2
2
  export { apply, attachProgressSettings, inject, name };
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { type ComposerQuotaFacts } from '../common/ComposerQuotaBadge.tsx';
3
+ import type { ModelDirectoryState } from '@deepseek-ai/dsh-client-ui-model-selection/client';
4
+ import type { SnapshotStore } from '../store.ts';
5
+ import type { AntigravityAcpStatusDto } from '../../shared/antigravity-acp-contracts.ts';
6
+ import { zh } from './locales.ts';
7
+ /**
8
+ * The status shape the shared badge understands.
9
+ *
10
+ * The shared badge keys on a top-level `authenticated` flag because that is what
11
+ * every account-pool line answers. This line's status nests it under `auth`,
12
+ * because its sign-in state is a different thing (the official process's, not a
13
+ * pool row's) - so the flag is hoisted here rather than reshaping the wire
14
+ * contract to fit a shared component.
15
+ */
16
+ interface BadgeStatus extends AntigravityAcpStatusDto {
17
+ authenticated: boolean;
18
+ }
19
+ interface Props {
20
+ directory: SnapshotStore<ModelDirectoryState>;
21
+ loadModelDirectory(): void;
22
+ }
23
+ /**
24
+ * The composer badge for the Antigravity line.
25
+ *
26
+ * It shows what the official server actually reported - plan tier and the last
27
+ * turn's token counts - and nothing else. There is deliberately no percentage:
28
+ * ACP publishes no remaining quota, and a badge that invented one would be the
29
+ * single most misleading pixel on the page.
30
+ */
31
+ export declare function AntigravityAcpComposerBadge(props: Props): React.JSX.Element;
32
+ /** What the badge says for one status read; null means there is nothing honest to show. */
33
+ export declare function factsFor(status: BadgeStatus, t: typeof zh): ComposerQuotaFacts | null;
34
+ export {};
35
+ //# sourceMappingURL=AntigravityAcpComposerBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AntigravityAcpComposerBadge.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity-acp/AntigravityAcpComposerBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAC9F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;AAExF,OAAO,EAAE,EAAE,EAAsB,MAAM,cAAc,CAAA;AAMrD;;;;;;;;GAQG;AACH,UAAU,WAAY,SAAQ,uBAAuB;IACnD,aAAa,EAAE,OAAO,CAAA;CACvB;AAED,UAAU,KAAK;IACb,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,IAAI,IAAI,CAAA;CAC3B;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAa3E;AAED,2FAA2F;AAC3F,wBAAgB,QAAQ,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,kBAAkB,GAAG,IAAI,CAgBrF"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ /** A token count short enough to sit on one line. */
3
+ export declare function formatTokens(value: number): string;
4
+ interface Props {
5
+ onModelChange?: () => void;
6
+ loadModelDirectory?: () => void;
7
+ }
8
+ /**
9
+ * The Antigravity (ACP) settings tab.
10
+ *
11
+ * One line here is deliberately absent: the account-pool card. This line does not
12
+ * own accounts - the official CLI does - so rendering a pool would either be an
13
+ * empty shell or, worse, a second place that claims to manage a sign-in it cannot
14
+ * see. What is left is what the user actually chooses: which executable runs,
15
+ * which models appear, the default thinking level, and how the agent's permission
16
+ * requests are answered.
17
+ */
18
+ export declare function AntigravityAcpSection(props: Props): React.ReactElement;
19
+ export {};
20
+ //# sourceMappingURL=AntigravityAcpSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AntigravityAcpSection.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity-acp/AntigravityAcpSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAS/D,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA0YtE"}
@@ -0,0 +1,36 @@
1
+ import type { AntigravityAcpStatusDto, AntigravityAcpSettingsUpdateDto } from '../../shared/antigravity-acp-contracts.ts';
2
+ /**
3
+ * The Antigravity (ACP) settings API, as the card uses it.
4
+ *
5
+ * Same envelope and fetch shape as every other provider section, so the shared
6
+ * components read alike.
7
+ */
8
+ export declare class AntigravityAcpApi {
9
+ status(): Promise<AntigravityAcpStatusDto>;
10
+ /** Submit one settings patch and receive the refreshed status. */
11
+ update(patch: AntigravityAcpSettingsUpdateDto): Promise<AntigravityAcpStatusDto>;
12
+ /** Force a live catalogue read. */
13
+ refresh(): Promise<AntigravityAcpStatusDto>;
14
+ /** Run the line's self-check and return its one-line-per-stage report. */
15
+ doctor(): Promise<{
16
+ ok: boolean;
17
+ steps: {
18
+ id: string;
19
+ ok: boolean;
20
+ detail: string;
21
+ }[];
22
+ }>;
23
+ /**
24
+ * Start the official sign-in.
25
+ *
26
+ * The browser is opened by `agy` itself; this call only asks the host to
27
+ * spawn it. Nothing here opens a window, which is what keeps one click from
28
+ * producing two Google pages.
29
+ */
30
+ startLogin(): Promise<{
31
+ started: boolean;
32
+ }>;
33
+ /** Re-read the auth state after a sign-in attempt. */
34
+ loginStatus(): Promise<AntigravityAcpStatusDto['auth']>;
35
+ }
36
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity-acp/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAA;AAIzH;;;;;GAKG;AACH,qBAAa,iBAAiB;IAC5B,MAAM,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAI1C,kEAAkE;IAClE,MAAM,CAAC,KAAK,EAAE,+BAA+B,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAIhF,mCAAmC;IACnC,OAAO,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAI3C,0EAA0E;IAC1E,MAAM,IAAI,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,CAAC;IAIxF;;;;;;OAMG;IACH,UAAU,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAI3C,sDAAsD;IACtD,WAAW,IAAI,OAAO,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;CAGxD"}