@eddyskywalker/dsh-chatgpt-subscription 0.70.1 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +4 -2
- package/lib/client.js +1188 -226
- package/lib/client.js.map +1 -1
- package/lib/{entry-progress-updates-DpzbX1GP.js → entry-progress-updates-DMLVID9V.js} +10 -23
- package/lib/index.js +6516 -3205
- package/lib/plan-mode-pipeline.js +3 -3
- package/lib/progress-updates.js +1 -1
- package/lib/types/client/antigravity-acp/AntigravityAcpComposerBadge.d.ts +35 -0
- package/lib/types/client/antigravity-acp/AntigravityAcpComposerBadge.d.ts.map +1 -0
- package/lib/types/client/antigravity-acp/AntigravityAcpSection.d.ts +20 -0
- package/lib/types/client/antigravity-acp/AntigravityAcpSection.d.ts.map +1 -0
- package/lib/types/client/antigravity-acp/api.d.ts +36 -0
- package/lib/types/client/antigravity-acp/api.d.ts.map +1 -0
- package/lib/types/client/antigravity-acp/locales.d.ts +521 -0
- package/lib/types/client/antigravity-acp/locales.d.ts.map +1 -0
- package/lib/types/client/antigravity-acp/route.d.ts +3 -0
- package/lib/types/client/antigravity-acp/route.d.ts.map +1 -0
- package/lib/types/client/antigravity-acp/styles.d.ts +15 -0
- package/lib/types/client/antigravity-acp/styles.d.ts.map +1 -0
- package/lib/types/client/command-code/locales.d.ts +2 -2
- package/lib/types/client/hub/brand-icons.d.ts +1 -1
- package/lib/types/client/hub/brand-icons.d.ts.map +1 -1
- package/lib/types/client/hub/providers.d.ts.map +1 -1
- package/lib/types/client/index.d.ts +2 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/locales-ru/antigravity-acp.d.ts +10 -0
- package/lib/types/client/locales-ru/antigravity-acp.d.ts.map +1 -0
- package/lib/types/client/locales-ru/hub.d.ts.map +1 -1
- package/lib/types/client/locales-ru/index.d.ts.map +1 -1
- package/lib/types/client/locales.d.ts +3 -1
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/entry-plan-mode-pipeline.d.ts +3 -3
- package/lib/types/entry-plan-mode-pipeline.d.ts.map +1 -1
- package/lib/types/host/agent-preset.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/acp-client.d.ts +136 -0
- package/lib/types/host/antigravity-acp/acp-client.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/adapter.d.ts +191 -0
- package/lib/types/host/antigravity-acp/adapter.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/auth-cache.d.ts +50 -0
- package/lib/types/host/antigravity-acp/auth-cache.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/binary.d.ts +122 -0
- package/lib/types/host/antigravity-acp/binary.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/catalog.d.ts +95 -0
- package/lib/types/host/antigravity-acp/catalog.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/doctor.d.ts +73 -0
- package/lib/types/host/antigravity-acp/doctor.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/errors.d.ts +59 -0
- package/lib/types/host/antigravity-acp/errors.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/history.d.ts +76 -0
- package/lib/types/host/antigravity-acp/history.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/login.d.ts +59 -0
- package/lib/types/host/antigravity-acp/login.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/mcp-bridge.d.ts +115 -0
- package/lib/types/host/antigravity-acp/mcp-bridge.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/routes.d.ts +81 -0
- package/lib/types/host/antigravity-acp/routes.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/settings.d.ts +70 -0
- package/lib/types/host/antigravity-acp/settings.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/subagent.d.ts +96 -0
- package/lib/types/host/antigravity-acp/subagent.d.ts.map +1 -0
- package/lib/types/host/antigravity-acp/types.d.ts +113 -0
- package/lib/types/host/antigravity-acp/types.d.ts.map +1 -0
- package/lib/types/host/common/i18n/en.d.ts.map +1 -1
- package/lib/types/host/common/i18n/provider-name.d.ts.map +1 -1
- package/lib/types/host/common/i18n/ru.d.ts.map +1 -1
- package/lib/types/host/common/i18n/zh.d.ts +3 -0
- package/lib/types/host/common/i18n/zh.d.ts.map +1 -1
- package/lib/types/host/common/model-request-control.d.ts +1 -1
- package/lib/types/host/common/model-request-control.d.ts.map +1 -1
- package/lib/types/host/common/request-diagnostics.d.ts +2 -2
- package/lib/types/host/common/request-diagnostics.d.ts.map +1 -1
- package/lib/types/host/dispatch-ledger/protocol.d.ts.map +1 -1
- package/lib/types/host/progress-updates/prompt.d.ts +2 -2
- package/lib/types/host/progress-updates/prompt.d.ts.map +1 -1
- package/lib/types/host/widget-board/line-quota.d.ts +10 -0
- package/lib/types/host/widget-board/line-quota.d.ts.map +1 -1
- package/lib/types/host/widget-board/line-registry.d.ts.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/antigravity-acp-contracts.d.ts +132 -0
- package/lib/types/shared/antigravity-acp-contracts.d.ts.map +1 -0
- package/package.json +1 -1
- package/presets/dispatch/README.md +27 -21
- package/presets/dispatch/agent.cordis.yml +64 -74
- package/presets/dispatch/preset.yml +1 -1
|
@@ -190,13 +190,13 @@ function assertLiveRoot(ctx, agent) {
|
|
|
190
190
|
* **刻意压到 380 字符以内。** 工具描述与 system 段一样,每一步都随请求重发,是计划
|
|
191
191
|
* 模式期间**每一步都在付**的常驻开销(Kimi 线路按内容前缀命中,进入计划模式那一步
|
|
192
192
|
* 工具表一变,前缀必然重建一次;但重建之后,每一步还要为这些字节付输入费)。所以
|
|
193
|
-
* 这里只留「能不能调用」的四条判定:只有调度模式用;只有 L2 且 R-G 访谈收敛后才可
|
|
194
|
-
* 调用;进入这一步**只完成进入**;L0/L1 或访谈未收敛时不得调用。
|
|
193
|
+
* 这里只留「能不能调用」的四条判定:只有调度模式用;只有 L2-Governed 且 R-G 访谈收敛后才可
|
|
194
|
+
* 调用;进入这一步**只完成进入**;L0/L1/L2-Clear 或访谈未收敛时不得调用。
|
|
195
195
|
*
|
|
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 and the R-G interview has converged (frontier empty,
|
|
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
|
*
|
package/lib/progress-updates.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as name, n as attachProgressSettings, r as inject, t as apply } from "./entry-progress-updates-
|
|
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,CAuXtE"}
|
|
@@ -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"}
|