@eddyskywalker/dsh-chatgpt-subscription 0.58.0 → 0.60.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 +33 -0
- package/README.md +1 -1
- package/lib/client.js +1714 -255
- package/lib/client.js.map +1 -1
- package/lib/codemode.js +1952 -0
- package/lib/index.js +587 -243
- package/lib/llm-compat-u9mor0uu.js +110 -0
- package/lib/types/client/CodexImageToolView.d.ts.map +1 -1
- package/lib/types/client/codemode/CodeRunToolView.d.ts +68 -0
- package/lib/types/client/codemode/CodeRunToolView.d.ts.map +1 -0
- package/lib/types/client/codemode/highlight.d.ts +25 -0
- package/lib/types/client/codemode/highlight.d.ts.map +1 -0
- package/lib/types/client/codemode/styles.d.ts +11 -0
- package/lib/types/client/codemode/styles.d.ts.map +1 -0
- package/lib/types/client/codemode/tool-name.d.ts +10 -0
- package/lib/types/client/codemode/tool-name.d.ts.map +1 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/locales-ru/hub.d.ts.map +1 -1
- package/lib/types/client/locales.d.ts +23 -1
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/client/progress-updates/progress-row.d.ts.map +1 -1
- package/lib/types/client/styles.d.ts.map +1 -1
- package/lib/types/compat.d.ts +10 -1
- package/lib/types/compat.d.ts.map +1 -1
- package/lib/types/entry-codemode.d.ts +37 -0
- package/lib/types/entry-codemode.d.ts.map +1 -0
- package/lib/types/host/agent-preset.d.ts +24 -2
- package/lib/types/host/agent-preset.d.ts.map +1 -1
- package/lib/types/host/antigravity/image-tool.d.ts +10 -2
- package/lib/types/host/antigravity/image-tool.d.ts.map +1 -1
- package/lib/types/host/cache-warmup/install.d.ts +10 -4
- package/lib/types/host/cache-warmup/install.d.ts.map +1 -1
- package/lib/types/host/cache-warmup/projection.d.ts +17 -0
- package/lib/types/host/cache-warmup/projection.d.ts.map +1 -1
- package/lib/types/host/codemode/discovery.d.ts +33 -0
- package/lib/types/host/codemode/discovery.d.ts.map +1 -0
- package/lib/types/host/codemode/executor.d.ts +140 -0
- package/lib/types/host/codemode/executor.d.ts.map +1 -0
- package/lib/types/host/codemode/retention.d.ts +34 -0
- package/lib/types/host/codemode/retention.d.ts.map +1 -0
- package/lib/types/host/codemode/rules.d.ts +193 -0
- package/lib/types/host/codemode/rules.d.ts.map +1 -0
- package/lib/types/host/codemode/scope.d.ts +59 -0
- package/lib/types/host/codemode/scope.d.ts.map +1 -0
- package/lib/types/host/codemode/transport.d.ts +299 -0
- package/lib/types/host/codemode/transport.d.ts.map +1 -0
- package/lib/types/host/codex-images.d.ts +12 -0
- package/lib/types/host/codex-images.d.ts.map +1 -1
- package/lib/types/host/command-code/model-catalog.d.ts +14 -14
- package/lib/types/host/command-code/model-catalog.d.ts.map +1 -1
- package/lib/types/host/command-code/routes.d.ts.map +1 -1
- package/lib/types/host/preset-sync.d.ts +19 -4
- package/lib/types/host/preset-sync.d.ts.map +1 -1
- package/package.json +6 -1
- package/presets/dispatch/README.md +13 -6
- package/presets/dispatch/agent.cordis.yml +19 -16
- package/presets/dispatch/preset.yml +1 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { LlmError as LlmError$1 } from "@deepseek-ai/dsh-llm";
|
|
2
|
+
//#region src/host/common/llm-compat.ts
|
|
3
|
+
/** This package's kind in the harness message-source map. */
|
|
4
|
+
const PLUGIN_MESSAGE_SOURCE_KIND = "dsh-chatgpt-subscription";
|
|
5
|
+
function isRecord(value) {
|
|
6
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
7
|
+
}
|
|
8
|
+
/** Read a message body's blocks, keeping every entry that carries a block tag. */
|
|
9
|
+
function readBlocks(raw) {
|
|
10
|
+
if (!Array.isArray(raw)) return [];
|
|
11
|
+
return raw.filter((block) => isRecord(block) && typeof block.type === "string");
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The first value that is a non-empty string.
|
|
15
|
+
*
|
|
16
|
+
* Used for fields the two generations spell in different places: a value that
|
|
17
|
+
* is present but empty must not shadow a real one further down the chain, which
|
|
18
|
+
* is what `??` alone does.
|
|
19
|
+
*/
|
|
20
|
+
function firstNonEmptyString(...values) {
|
|
21
|
+
for (const value of values) if (typeof value === "string" && value !== "") return value;
|
|
22
|
+
return "";
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The result block a `role: 'tool'` message already carries inside its body.
|
|
26
|
+
*
|
|
27
|
+
* Some harness generations deliver the call id inside the result block rather
|
|
28
|
+
* than on the message, and one shape carries both: `role: 'tool'` with a
|
|
29
|
+
* `tool-result` block holding the id. Reading only the message-level fields
|
|
30
|
+
* leaves {@link toolCallIdOf} nothing to find.
|
|
31
|
+
*/
|
|
32
|
+
function embeddedToolResult(content) {
|
|
33
|
+
if (content.length !== 1) return void 0;
|
|
34
|
+
const [block] = content;
|
|
35
|
+
return block?.type === "tool-result" ? block : void 0;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The call id one `role: 'tool'` message associates with its `tool-call`.
|
|
39
|
+
*
|
|
40
|
+
* The id is the only thing tying a result to the call it answers: a mapper that
|
|
41
|
+
* sends it empty makes every result an orphan and tells the repair pass that no
|
|
42
|
+
* call was answered, which some gateways reject outright (WorkBuddy answers
|
|
43
|
+
* `11148`, "tool calls and tool results do not match"). It therefore has to be
|
|
44
|
+
* read from every place the harness generations put it — the message, the
|
|
45
|
+
* message's source, and the result block inside the body — and an empty string
|
|
46
|
+
* must not shadow a later, real one.
|
|
47
|
+
*/
|
|
48
|
+
function toolCallIdOf(raw, source, embedded) {
|
|
49
|
+
return firstNonEmptyString(raw.toolCallId, raw.callId, source?.callId, embedded?.toolCallId);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Normalize one harness message list into {@link Message}.
|
|
53
|
+
*
|
|
54
|
+
* A 0.1.7 `role: 'tool'` message is re-wrapped as the user-role message holding
|
|
55
|
+
* one {@link ToolResultBlock} that the mappers expect, keeping the tool
|
|
56
|
+
* provenance (`kind: 'tool'`) they use to tell a real tool result from a user
|
|
57
|
+
* turn. A message that already carries that block keeps its own body instead of
|
|
58
|
+
* nesting a second `tool-result` around it. Everything a newer harness adds
|
|
59
|
+
* beside that keeps its own shape.
|
|
60
|
+
* @param messages - Messages straight off the request options, in either generation's shape.
|
|
61
|
+
* @returns The same conversation in the pre-0.1.7 vocabulary.
|
|
62
|
+
*/
|
|
63
|
+
function normalizeMessages(messages) {
|
|
64
|
+
const normalized = [];
|
|
65
|
+
for (const raw of messages ?? []) {
|
|
66
|
+
if (!isRecord(raw)) continue;
|
|
67
|
+
const content = readBlocks(raw.content);
|
|
68
|
+
if (raw.role === "tool") {
|
|
69
|
+
const source = isRecord(raw.source) ? raw.source : void 0;
|
|
70
|
+
const embedded = embeddedToolResult(content);
|
|
71
|
+
const callId = toolCallIdOf(raw, source, embedded);
|
|
72
|
+
const isError = raw.isError === true || embedded?.isError === true;
|
|
73
|
+
normalized.push({
|
|
74
|
+
id: raw.id,
|
|
75
|
+
role: "user",
|
|
76
|
+
content: [{
|
|
77
|
+
type: "tool-result",
|
|
78
|
+
toolCallId: callId,
|
|
79
|
+
content: embedded === void 0 ? content : embedded.content,
|
|
80
|
+
...isError ? { isError: true } : {}
|
|
81
|
+
}],
|
|
82
|
+
source: {
|
|
83
|
+
kind: "tool",
|
|
84
|
+
callId
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
normalized.push({
|
|
90
|
+
id: raw.id,
|
|
91
|
+
role: typeof raw.role === "string" ? raw.role : "user",
|
|
92
|
+
content,
|
|
93
|
+
...isRecord(raw.source) ? { source: raw.source } : {}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return normalized;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Normalize request options for the mappers.
|
|
100
|
+
* @param options - Request options the harness handed the adapter.
|
|
101
|
+
* @returns The same options with {@link Message} history.
|
|
102
|
+
*/
|
|
103
|
+
function normalizeGenerateOptions(options) {
|
|
104
|
+
return {
|
|
105
|
+
...options,
|
|
106
|
+
messages: normalizeMessages(options.messages)
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
//#endregion
|
|
110
|
+
export { PLUGIN_MESSAGE_SOURCE_KIND as n, normalizeGenerateOptions as r, LlmError$1 as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodexImageToolView.d.ts","sourceRoot":"","sources":["../../../src/client/CodexImageToolView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAEjC,MAAM,MAAM,WAAW,GAAG,CAAC,UAAU,EAAE,kBAAkB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAE7E,KAAK,KAAK,GAAG,YAAY,CAAC,oBAAoB,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG;IACzE,SAAS,EAAE,WAAW,CAAA;CACvB,CAAA;
|
|
1
|
+
{"version":3,"file":"CodexImageToolView.d.ts","sourceRoot":"","sources":["../../../src/client/CodexImageToolView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAEjC,MAAM,MAAM,WAAW,GAAG,CAAC,UAAU,EAAE,kBAAkB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAE7E,KAAK,KAAK,GAAG,YAAY,CAAC,oBAAoB,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG;IACzE,SAAS,EAAE,WAAW,CAAA;CACvB,CAAA;AAsBD,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+BpF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `code_run` 在对话流中的语法高亮工具行组件 —— 对齐宿主内置 PTC `run_code` 的呈现体验。
|
|
3
|
+
*
|
|
4
|
+
* ## 与宿主 `run_code` 一致的四点设计
|
|
5
|
+
*
|
|
6
|
+
* 1. **标题行**:代码图标 `</>` + 本地化标题「代码 / Code」+ `description` 摘要(不再出现
|
|
7
|
+
* `工具 · code_run · ...`),直接接入框架传入的 `useDisclosure` 控制展开/收起;
|
|
8
|
+
* 2. **源码区**:提取 `args.code` 纯源码文本(剥离外层 JSON 参数包装),提供语言标识
|
|
9
|
+
* (`typescript` / `python`)、自动换行切换与一键复制源码按钮,并使用宿主 `--shiki-*`
|
|
10
|
+
* 主题色进行语法高亮;
|
|
11
|
+
* 3. **输出区**:已结算结果独立展示在下方 `输出` 卡片中(无结果文本时不画空卡片),子调用由外层
|
|
12
|
+
* `ToolCallTree` 通过 `tool/ptc-dispatch` 自动挂载在本行下方;
|
|
13
|
+
* 4. **三阶段支持**:覆盖 `preparing`(流式生成参数)、`start`(执行中)与 `result`(成功/失败/停止)。
|
|
14
|
+
*
|
|
15
|
+
* @module @eddyskywalker/dsh-chatgpt-subscription/client/codemode/CodeRunToolView
|
|
16
|
+
*/
|
|
17
|
+
import { type LocaleKey } from '../locales.ts';
|
|
18
|
+
export interface CodeRunBlockContent {
|
|
19
|
+
readonly type?: string;
|
|
20
|
+
readonly text?: string;
|
|
21
|
+
readonly [key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface CodeRunBlock {
|
|
24
|
+
readonly callId?: string;
|
|
25
|
+
readonly phase?: 'preparing' | 'start' | string;
|
|
26
|
+
readonly kind?: string;
|
|
27
|
+
readonly isError?: boolean;
|
|
28
|
+
readonly error?: {
|
|
29
|
+
readonly name?: string;
|
|
30
|
+
readonly code?: string;
|
|
31
|
+
readonly reason?: unknown;
|
|
32
|
+
};
|
|
33
|
+
readonly content?: readonly CodeRunBlockContent[];
|
|
34
|
+
readonly argsRaw?: string;
|
|
35
|
+
readonly call?: {
|
|
36
|
+
readonly name?: string;
|
|
37
|
+
readonly argsRaw?: string;
|
|
38
|
+
};
|
|
39
|
+
readonly args?: {
|
|
40
|
+
readonly text?: (key: string) => unknown;
|
|
41
|
+
readonly complete?: (key: string) => boolean;
|
|
42
|
+
};
|
|
43
|
+
readonly meta?: unknown;
|
|
44
|
+
}
|
|
45
|
+
export interface CodeRunDisclosure {
|
|
46
|
+
readonly expanded: boolean;
|
|
47
|
+
readonly toggle: () => void;
|
|
48
|
+
}
|
|
49
|
+
export interface CodeRunToolViewProps {
|
|
50
|
+
readonly callId?: string;
|
|
51
|
+
readonly toolName?: string;
|
|
52
|
+
readonly phase?: 'preparing' | 'start' | 'result' | string;
|
|
53
|
+
readonly block: CodeRunBlock;
|
|
54
|
+
readonly useDisclosure?: (() => CodeRunDisclosure) | undefined;
|
|
55
|
+
readonly inspect?: (() => void) | undefined;
|
|
56
|
+
readonly t?: ((key: LocaleKey) => string) | undefined;
|
|
57
|
+
readonly [key: string]: unknown;
|
|
58
|
+
}
|
|
59
|
+
/** 从流式参数视图或完整 JSON 中读取字段(与 `ProgressRow` / `MinimaxVideoToolView` 一致)。 */
|
|
60
|
+
export declare function extractCodeRunArgs(block: CodeRunBlock): {
|
|
61
|
+
code: string | null;
|
|
62
|
+
description: string;
|
|
63
|
+
rawFallback: string | null;
|
|
64
|
+
};
|
|
65
|
+
/** 展平已结算结果的内容块(对齐宿主 `resultText`)。 */
|
|
66
|
+
export declare function flattenCodeRunOutput(block: CodeRunBlock): string | null;
|
|
67
|
+
export declare function CodeRunToolView(props: CodeRunToolViewProps): React.JSX.Element;
|
|
68
|
+
//# sourceMappingURL=CodeRunTo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,CAuL9E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 轻量同步语法高亮分词器(TypeScript / JavaScript 与 Python),直接输出宿主主题的
|
|
3
|
+
* `--shiki-*` CSS 变量颜色。
|
|
4
|
+
*
|
|
5
|
+
* 选择内建词法扫描而非打包整套 Shiki 引擎:
|
|
6
|
+
* 1. 宿主样式表(`ui-theme`)已在全局 `:root` 提供 `--shiki-*` 令牌,明暗主题自动切换零色差;
|
|
7
|
+
* 2. 同步零延迟、零额外 bundle 体积,流式 `preparing` 阶段亦可逐帧平滑着色;
|
|
8
|
+
* 3. 覆盖 `code_run` 常见语法:单双引号字符串、嵌套 `${...}` 模板字符串、正则表达式字面量、
|
|
9
|
+
* 单/多行注释、Python 三引号字符串、关键字、内置常量、数字、函数调用与标点符号。
|
|
10
|
+
*
|
|
11
|
+
* @module @eddyskywalker/dsh-chatgpt-subscription/client/codemode/highlight
|
|
12
|
+
*/
|
|
13
|
+
export type CodeLanguage = 'typescript' | 'python';
|
|
14
|
+
export type HighlightTokenKind = 'plain' | 'keyword' | 'string' | 'string-expression' | 'comment' | 'constant' | 'function' | 'parameter' | 'punctuation';
|
|
15
|
+
export interface HighlightToken {
|
|
16
|
+
readonly text: string;
|
|
17
|
+
readonly kind: HighlightTokenKind;
|
|
18
|
+
}
|
|
19
|
+
/** 宿主 `ui-theme/src/styles/shiki.css` 定义的标准变量表(带合理回退色以兼容测试环境)。 */
|
|
20
|
+
export declare const SHIKI_TOKEN_COLORS: Readonly<Record<HighlightTokenKind, string | undefined>>;
|
|
21
|
+
/**
|
|
22
|
+
* 将完整源码切分为带颜色类别的跨行数组(每个子数组代表源码的一行)。
|
|
23
|
+
*/
|
|
24
|
+
export declare function tokenizeCodeLines(code: string, language?: CodeLanguage): HighlightToken[][];
|
|
25
|
+
//# sourceMappingURL=highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../src/client/codemode/highlight.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,QAAQ,CAAA;AAElD,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,SAAS,GACT,QAAQ,GACR,mBAAmB,GACnB,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,aAAa,CAAA;AAEjB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAClC;AAED,kEAAkE;AAClE,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC,CAUvF,CAAA;AAwCD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,YAA2B,GAAG,cAAc,EAAE,EAAE,CASzG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `code_run` 工具行样式表 —— 对齐宿主内置 `run_code`(`DisclosureRow` + `ToolRow` +
|
|
3
|
+
* `CodeBlock` + `CodeToolbar`)的视觉令牌与排版节奏。
|
|
4
|
+
*
|
|
5
|
+
* 所有颜色、字号与圆角均直接引用宿主 `--dsw-*` / `--dsh-*` / `--shiki-*` CSS 变量。
|
|
6
|
+
*
|
|
7
|
+
* @module @eddyskywalker/dsh-chatgpt-subscription/client/codemode/styles
|
|
8
|
+
*/
|
|
9
|
+
export declare const CODEMODE_CSS = "\n.dshc-code-root {\n display: flex;\n flex-direction: column;\n width: 100%;\n min-width: 0;\n}\n\n.dshc-code-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n}\n\n.dshc-code-header {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.dshc-code-row {\n flex: 1 1 auto;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n height: calc(24px + var(--dsh-content-font-delta, 0px));\n min-width: 0;\n color: var(--dsw-alias-label-tertiary, #8a9099);\n transition: color 100ms ease;\n user-select: none;\n}\n\n.dshc-code-row[data-expandable='true'] {\n cursor: pointer;\n}\n\n@media (hover: hover) {\n .dshc-code-row:hover {\n color: var(--dsw-alias-label-secondary, #5b6270);\n }\n}\n\n.dshc-code-row:focus-visible {\n outline: 1px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4d6bfe));\n outline-offset: 2px;\n border-radius: var(--dsw-radius-sm, 4px);\n}\n\n.dshc-code-leading {\n position: relative;\n flex: none;\n width: calc(16px + var(--dsh-content-font-delta, 0px));\n height: calc(16px + var(--dsh-content-font-delta, 0px));\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 6px;\n color: inherit;\n}\n\n.dshc-code-leading svg {\n width: calc(14px + var(--dsh-content-font-delta, 0px));\n height: calc(14px + var(--dsh-content-font-delta, 0px));\n}\n\n.dshc-code-icon-idle {\n display: inline-flex;\n opacity: 1;\n transition: opacity 100ms ease;\n}\n\n.dshc-code-chevron-hover {\n position: absolute;\n inset: 0;\n margin: auto;\n opacity: 0;\n transition: opacity 100ms ease;\n}\n\n@media (hover: hover) {\n .dshc-code-row[data-expandable='true']:hover .dshc-code-icon-idle {\n opacity: 0;\n }\n .dshc-code-row[data-expandable='true']:hover .dshc-code-chevron-hover {\n opacity: 1;\n }\n}\n\n.dshc-code-text-flow {\n display: flex;\n align-items: center;\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n}\n\n@keyframes dshc-shimmer-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.55; }\n}\n\n.dshc-code-text-flow[data-running='true'] {\n animation: dshc-shimmer-pulse 1.6s ease-in-out infinite;\n}\n\n.dshc-code-title {\n flex: none;\n font-weight: 400;\n font-size: var(--dsh-content-font-size-secondary, 13px);\n line-height: calc(24px + var(--dsh-content-font-delta, 0px));\n color: inherit;\n}\n\n.dshc-code-sep {\n flex: none;\n width: 2px;\n height: 2px;\n border-radius: 1px;\n margin: 0 8px;\n background: var(--dsw-alias-label-caption, #8a9099);\n}\n\n.dshc-code-summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--dsh-content-font-size-secondary, 13px);\n line-height: calc(24px + var(--dsh-content-font-delta, 0px));\n}\n\n.dshc-code-summary[data-state='error'] {\n color: var(--dsw-alias-state-error-primary, #d54941);\n}\n\n.dshc-code-summary[data-state='stopped'] {\n color: var(--dsw-alias-state-warn-label, #d97706);\n}\n\n.dshc-code-body-wrap {\n display: flex;\n flex-direction: column;\n}\n\n.dshc-code-body-scroll {\n max-height: 260px;\n overflow-y: auto;\n margin: 4px 0 4px 4px;\n border-radius: var(--dsw-radius-lg, 10px);\n border: 0.5px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.18));\n background: var(--dsw-alias-markdown-code-block, rgba(128, 128, 128, 0.08));\n}\n\n.dshc-code-card {\n position: relative;\n color: var(--dsw-alias-label-primary, inherit);\n background: transparent;\n font: var(--dsw-font-markdown-code-block, 13px/20px var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));\n}\n\n.dshc-code-toolbar {\n position: sticky;\n top: 0;\n z-index: 6;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 10px 18px 8px 22px;\n background: var(--dsw-alias-markdown-code-block, #1e222a);\n color: var(--dsw-alias-label-secondary, #8a9099);\n font: 11px/18px var(--dsw-font-family, system-ui, sans-serif);\n}\n\n.dshc-code-lang {\n color: var(--dsw-alias-label-tertiary, #8a9099);\n flex: none;\n font-family: var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);\n}\n\n.dshc-code-actions {\n display: flex;\n align-items: center;\n gap: 4px;\n flex: none;\n}\n\n.dshc-code-action {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: var(--dsw-radius-sm, 4px);\n color: var(--dsw-alias-label-secondary, #8a9099);\n background: transparent;\n cursor: pointer;\n}\n\n@media (hover: hover) {\n .dshc-code-action:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.14));\n color: var(--dsw-alias-label-primary, inherit);\n }\n}\n\n.dshc-code-action:focus-visible {\n outline: 1px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4d6bfe));\n outline-offset: 2px;\n}\n\n.dshc-code-pre {\n margin: 0 !important;\n padding: 6px 22px 20px;\n font: var(--dsw-font-markdown-code-block, 13px/20px var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));\n background: transparent !important;\n color: var(--shiki-foreground, var(--dsw-alias-label-primary, inherit));\n overflow-x: auto;\n white-space: pre-wrap;\n word-break: normal;\n overflow-wrap: anywhere;\n}\n\n.dshc-code-card[data-code-wrap='false'] .dshc-code-pre {\n white-space: pre;\n overflow-wrap: normal;\n}\n\n.dshc-code-pre code {\n font: inherit;\n background: none;\n padding: 0;\n}\n\n.dshc-code-io-card {\n display: flex;\n flex-direction: column;\n margin: 4px 0 4px 4px;\n border: 0.5px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.18));\n border-radius: var(--dsw-radius-lg, 10px);\n background: var(--dsw-alias-markdown-code-block, rgba(128, 128, 128, 0.08));\n font: var(--dsw-font-markdown-code-block-small, 12px/18px var(--ds-font-family-code, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));\n}\n\n.dshc-code-io-section {\n display: grid;\n grid-template-columns: max-content 1fr;\n column-gap: 14px;\n align-items: baseline;\n padding: 12px 16px;\n max-height: 150px;\n overflow-y: auto;\n}\n\n.dshc-code-io-label {\n position: sticky;\n top: 0;\n align-self: start;\n color: var(--dsw-alias-label-caption, #8a9099);\n}\n\n.dshc-code-io-text {\n min-width: 0;\n white-space: pre-wrap;\n word-break: break-word;\n color: var(--dsw-alias-label-secondary, #8a9099);\n}\n\n.dshc-code-io-text[data-error='true'] {\n color: var(--dsw-alias-state-error-primary, #d54941);\n}\n\n.dshc-code-inspect-btn {\n display: inline-flex;\n align-self: flex-start;\n align-items: center;\n gap: 4px;\n margin: 4px 0 2px 4px;\n padding: 2px 8px;\n border: 0.5px solid var(--dsw-alias-border-l3, rgba(128, 128, 128, 0.25));\n border-radius: 999px;\n background: var(--dsw-alias-bg-base, transparent);\n color: var(--dsw-alias-label-secondary, #8a9099);\n font-size: 11px;\n line-height: 16px;\n cursor: pointer;\n opacity: 0;\n transition: opacity 100ms ease;\n}\n\n.dshc-code-inspect-btn:focus-visible {\n opacity: 1;\n}\n\n@media (hover: hover) {\n .dshc-code-root:hover .dshc-code-inspect-btn {\n opacity: 1;\n }\n .dshc-code-inspect-btn:hover {\n background: var(--dsw-alias-interactive-bg-hover-solid, rgba(128, 128, 128, 0.18));\n color: var(--dsw-alias-label-primary, inherit);\n }\n}\n\n@media (hover: none) {\n .dshc-code-inspect-btn {\n opacity: 1;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .dshc-code-row,\n .dshc-code-text-flow[data-running='true'] {\n transition: none;\n animation: none;\n }\n}\n";
|
|
10
|
+
export declare function installCodemodeStyles(): () => void;
|
|
11
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/codemode/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,YAAY,orPAoUxB,CAAA;AAED,wBAAgB,qBAAqB,IAAI,MAAM,IAAI,CAElD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 客户端半边的 `code_run` 工具名常量。
|
|
3
|
+
*
|
|
4
|
+
* 独立于 `../../host/codemode/transport.ts`,避免浏览器 bundle 引入 Node 端模块;
|
|
5
|
+
* 单测会校验两边字面量逐字一致。
|
|
6
|
+
*
|
|
7
|
+
* @module @eddyskywalker/dsh-chatgpt-subscription/client/codemode/tool-name
|
|
8
|
+
*/
|
|
9
|
+
export declare const CODE_RUN_TOOL_NAME = "code_run";
|
|
10
|
+
//# sourceMappingURL=tool-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-name.d.ts","sourceRoot":"","sources":["../../../../src/client/codemode/tool-name.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,kBAAkB,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAenE,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAS/D,OAAO,EAAoD,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAGtH,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGlG,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAExH,OAAO,EAA+C,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM5G,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAKxH,OAAO,EAA0D,KAAK,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAElI,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAElG,OAAO,EAA+C,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG5G,OAAO,EAAiD,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAGhH,OAAO,EAAwC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAG9F,OAAO,EAAkD,K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KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAK1G,OAAO,QAAQ,kCAAkC,CAAC;IAChD;;;;;;;OAOG;IACH,UAAU,kBAAkB;QAC1B,0BAA0B,EAAE,SAAS,CAAA;QACrC,iBAAiB,EAAE,oBAAoB,CAAA;QACvC,YAAY,EAAE,eAAe,CAAA;QAC7B,kBAAkB,EAAE,oBAAoB,CAAA;QACxC,eAAe,EAAE,iBAAiB,CAAA;QAClC,kBAAkB,EAAE,oBAAoB,CAAA;QACxC,qBAAqB,EAAE,sBAAsB,CAAA;QAC7C,YAAY,EAAE,eAAe,CAAA;QAC7B,eAAe,EAAE,iBAAiB,CAAA;QAClC,gBAAgB,EAAE,kBAAkB,CAAA;QACpC,WAAW,EAAE,cAAc,CAAA;QAC3B,gBAAgB,EAAE,mBAAmB,CAAA;QACrC,sBAAsB,EAAE,wBAAwB,CAAA;QAChD,eAAe,EAAE,kBAAkB,CAAA;QACnC,uBAAuB,EAAE,iBAAiB,CAAA;KAC3C;CACF;AAED,eAAO,MAAM,MAAM,UAQlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CA2P9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/hub.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/hub.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAwOhD,CAAA"}
|
|
@@ -207,6 +207,17 @@ export declare const zh: {
|
|
|
207
207
|
readonly 'cardName.opendesign': "OpenDesign";
|
|
208
208
|
readonly 'cardName.workbuddy': "WorkBuddy";
|
|
209
209
|
readonly modelChecklistCount: "已启用 {count}/{total}";
|
|
210
|
+
readonly codeRunTitle: "代码";
|
|
211
|
+
readonly codeRunOutput: "输出";
|
|
212
|
+
readonly codeRunCopy: "复制";
|
|
213
|
+
readonly codeRunCopied: "已复制";
|
|
214
|
+
readonly codeRunWrap: "自动换行";
|
|
215
|
+
readonly codeRunUnwrap: "取消自动换行";
|
|
216
|
+
readonly codeRunInspect: "查看轨迹";
|
|
217
|
+
readonly codeRunPreparing: "准备中";
|
|
218
|
+
readonly codeRunRunning: "运行中";
|
|
219
|
+
readonly codeRunFailed: "失败";
|
|
220
|
+
readonly codeRunStopped: "已停止";
|
|
210
221
|
readonly accountPool: string;
|
|
211
222
|
readonly addAccount: string;
|
|
212
223
|
readonly accountCount: string;
|
|
@@ -449,6 +460,17 @@ export declare const dictionaries: {
|
|
|
449
460
|
readonly 'cardName.opendesign': "OpenDesign";
|
|
450
461
|
readonly 'cardName.workbuddy': "WorkBuddy";
|
|
451
462
|
readonly modelChecklistCount: "已启用 {count}/{total}";
|
|
463
|
+
readonly codeRunTitle: "代码";
|
|
464
|
+
readonly codeRunOutput: "输出";
|
|
465
|
+
readonly codeRunCopy: "复制";
|
|
466
|
+
readonly codeRunCopied: "已复制";
|
|
467
|
+
readonly codeRunWrap: "自动换行";
|
|
468
|
+
readonly codeRunUnwrap: "取消自动换行";
|
|
469
|
+
readonly codeRunInspect: "查看轨迹";
|
|
470
|
+
readonly codeRunPreparing: "准备中";
|
|
471
|
+
readonly codeRunRunning: "运行中";
|
|
472
|
+
readonly codeRunFailed: "失败";
|
|
473
|
+
readonly codeRunStopped: "已停止";
|
|
452
474
|
readonly accountPool: string;
|
|
453
475
|
readonly addAccount: string;
|
|
454
476
|
readonly accountCount: string;
|
|
@@ -480,6 +502,6 @@ export declare const dictionaries: {
|
|
|
480
502
|
readonly quotaFactsScope: string;
|
|
481
503
|
readonly composerLabel: string;
|
|
482
504
|
};
|
|
483
|
-
en: Record<"stale" | "image" | "quota" | "account" | "rotationStrategy" | "pending" | "accountId" | "relogin" | "used" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "testConnection" | "testing" | "latency" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "poolStorageTitle" | "poolStorageKeyring" | "poolStorageCredentials" | "poolStorageKeyringHint" | "poolStorageCredentialsHint" | "poolStorageEffective" | "poolStorageBackendKeyring" | "poolStorageBackendDpapi" | "poolStorageBackendKeychain" | "poolStorageBackendCredentials" | "poolStorageSwitchWarning" | "poolStorageUnavailableKeyring" | "poolStorageUnavailableCredentials" | "poolStorageUnavailableStore" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "fetchStatus" | "fetchStatusHint" | "fetchConfiguredProvider" | "fetchProviderDshDefault" | "switcherState" | "switcherStateIdle" | "switcherStateApplying" | "switcherStateApplied" | "switcherStateMissing" | "switcherStateFailed" | "fetchMode" | "fetchModeAuto" | "fetchModePlugin" | "fetchModeDsh" | "fetchMaxBodyChars" | "fetchMaxResponseBytes" | "characters" | "bytes" | "fetchLimitsInactive" | "fetchConfigSource" | "providerDefault" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowsNoneEnabled" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "updated" | "primary" | "secondary" | "limitWindow" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "hubBack" | "hubOverviewHint" | "hubAccountCount" | "hubNoAccounts" | "hubStateEnabled" | "hubStateDisabled" | "hubModelsEnabled" | "hubModelsEnabledOfTotal" | "hubStatusFailed" | "hubSwitchOn" | "hubSwitchOff" | "hubCardLabel" | "hubUpdateCheck" | "hubUpdateChecking" | "hubUpdateApply" | "hubUpdateApplying" | "hubUpdateUpToDate" | "hubUpdateLatestWithUnknownCurrent" | "hubUpdateAvailable" | "hubUpdateInstalled" | "hubUpdateInstalledReplaced" | "hubUpdateInstalledLive" | "hubUpdateInstalledReplacedLive" | "hubUpdateFailedRestored" | "hubUpdateFailedRollbackFailed" | "hubUpdateFailedRollbackSkipped" | "hubUpdateDevelopmentInstall" | "hubUpdatePluginManagerMissing" | "hubUpdateManualOnly" | "hubUpdateCheckFailed" | "hubUpdateCommandLabel" | "localCodexLoginImport" | "localCodexLoginImporting" | "deviceCodeLogin" | "deviceCodeLoginStarting" | "deviceCodeLoginDetail" | "deviceCodeHint" | "deviceCodeLabel" | "deviceCodeOpen" | "deviceCodeCopy" | "deviceCodeWaiting" | "stopImporting" | "stopImportingLabel" | "stopImportingBusy" | "stopImportingHint" | "cardName.chatgpt" | "cardName.antigravity" | "cardName.command-code" | "cardName.kimi-code" | "cardName.minimax-code" | "cardName.glm-coding-plan" | "cardName.claude" | "cardName.ollama" | "cardName.step-code" | "cardName.cline-pass" | "cardName.qoder" | "cardName.opendesign" | "cardName.workbuddy" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel", string>;
|
|
505
|
+
en: Record<"stale" | "image" | "quota" | "account" | "rotationStrategy" | "pending" | "accountId" | "relogin" | "used" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "testConnection" | "testing" | "latency" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "poolStorageTitle" | "poolStorageKeyring" | "poolStorageCredentials" | "poolStorageKeyringHint" | "poolStorageCredentialsHint" | "poolStorageEffective" | "poolStorageBackendKeyring" | "poolStorageBackendDpapi" | "poolStorageBackendKeychain" | "poolStorageBackendCredentials" | "poolStorageSwitchWarning" | "poolStorageUnavailableKeyring" | "poolStorageUnavailableCredentials" | "poolStorageUnavailableStore" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "fetchStatus" | "fetchStatusHint" | "fetchConfiguredProvider" | "fetchProviderDshDefault" | "switcherState" | "switcherStateIdle" | "switcherStateApplying" | "switcherStateApplied" | "switcherStateMissing" | "switcherStateFailed" | "fetchMode" | "fetchModeAuto" | "fetchModePlugin" | "fetchModeDsh" | "fetchMaxBodyChars" | "fetchMaxResponseBytes" | "characters" | "bytes" | "fetchLimitsInactive" | "fetchConfigSource" | "providerDefault" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowsNoneEnabled" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "updated" | "primary" | "secondary" | "limitWindow" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "hubBack" | "hubOverviewHint" | "hubAccountCount" | "hubNoAccounts" | "hubStateEnabled" | "hubStateDisabled" | "hubModelsEnabled" | "hubModelsEnabledOfTotal" | "hubStatusFailed" | "hubSwitchOn" | "hubSwitchOff" | "hubCardLabel" | "hubUpdateCheck" | "hubUpdateChecking" | "hubUpdateApply" | "hubUpdateApplying" | "hubUpdateUpToDate" | "hubUpdateLatestWithUnknownCurrent" | "hubUpdateAvailable" | "hubUpdateInstalled" | "hubUpdateInstalledReplaced" | "hubUpdateInstalledLive" | "hubUpdateInstalledReplacedLive" | "hubUpdateFailedRestored" | "hubUpdateFailedRollbackFailed" | "hubUpdateFailedRollbackSkipped" | "hubUpdateDevelopmentInstall" | "hubUpdatePluginManagerMissing" | "hubUpdateManualOnly" | "hubUpdateCheckFailed" | "hubUpdateCommandLabel" | "localCodexLoginImport" | "localCodexLoginImporting" | "deviceCodeLogin" | "deviceCodeLoginStarting" | "deviceCodeLoginDetail" | "deviceCodeHint" | "deviceCodeLabel" | "deviceCodeOpen" | "deviceCodeCopy" | "deviceCodeWaiting" | "stopImporting" | "stopImportingLabel" | "stopImportingBusy" | "stopImportingHint" | "cardName.chatgpt" | "cardName.antigravity" | "cardName.command-code" | "cardName.kimi-code" | "cardName.minimax-code" | "cardName.glm-coding-plan" | "cardName.claude" | "cardName.ollama" | "cardName.step-code" | "cardName.cline-pass" | "cardName.qoder" | "cardName.opendesign" | "cardName.workbuddy" | "modelChecklistCount" | "codeRunTitle" | "codeRunOutput" | "codeRunCopy" | "codeRunCopied" | "codeRunWrap" | "codeRunUnwrap" | "codeRunInspect" | "codeRunPreparing" | "codeRunRunning" | "codeRunFailed" | "codeRunStopped" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel", string>;
|
|
484
506
|
};
|
|
485
507
|
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;AAIrD,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;AAIrD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmPL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CA6O9C,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAA;AACvC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-row.d.ts","sourceRoot":"","sources":["../../../../src/client/progress-updates/progress-row.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,0BAA0B;IAC1B,IAAI,CAAC,EAAE;QACL;;;;WAIG;QACH,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;KAC3C,CAAA;IACD,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,6BAA6B;AAC7B,QAAA,MAAM,UAAU;;;;CAIN,CAAA;AAEV,iBAAiB;AACjB,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"progress-row.d.ts","sourceRoot":"","sources":["../../../../src/client/progress-updates/progress-row.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,0BAA0B;IAC1B,IAAI,CAAC,EAAE;QACL;;;;WAIG;QACH,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;KAC3C,CAAA;IACD,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,6BAA6B;AAC7B,QAAA,MAAM,UAAU;;;;CAIN,CAAA;AAEV,iBAAiB;AACjB,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,UAAU,CAAA;AAwHtD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC,CAOlG;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,qBAAqB;IACrB,KAAK,EAAE,gBAAgB,CAAA;CACxB,GAAG,QAAQ,CAAA;AAEZ;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,gBAAgB,GAAG,SAAS,CAoCrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/client/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/client/styles.ts"],"names":[],"mappings":"AAsIA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,IAAI,MAAM,IAAI,CAE1C"}
|
package/lib/types/compat.d.ts
CHANGED
|
@@ -76,12 +76,21 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
|
|
|
76
76
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
77
77
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
78
78
|
*/
|
|
79
|
-
export declare const PLUGIN_VERSION: "0.
|
|
79
|
+
export declare const PLUGIN_VERSION: "0.60.0";
|
|
80
80
|
export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
|
|
81
81
|
export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
|
|
82
82
|
export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
|
|
83
83
|
export declare const CODEX_RESPONSES_URL: "https://chatgpt.com/backend-api/codex/responses";
|
|
84
84
|
export declare const CODEX_IMAGE_GENERATION_URL: "https://chatgpt.com/backend-api/codex/images/generations";
|
|
85
|
+
/**
|
|
86
|
+
* The edit route: the same image surface, addressed for reference-image input.
|
|
87
|
+
*
|
|
88
|
+
* A generation has nothing to modify and goes to `/images/generations`; a
|
|
89
|
+
* request that names reference images is an EDIT and goes here, with those
|
|
90
|
+
* images carried inline in a JSON `images` array. It is a separate route, not a
|
|
91
|
+
* flag on the generation body, so the two are stated as two constants.
|
|
92
|
+
*/
|
|
93
|
+
export declare const CODEX_IMAGE_EDIT_URL: "https://chatgpt.com/backend-api/codex/images/edits";
|
|
85
94
|
export declare const CODEX_SEARCH_URL: "https://chatgpt.com/backend-api/codex/alpha/search";
|
|
86
95
|
export declare const CODEX_USAGE_URL: "https://chatgpt.com/backend-api/wham/usage";
|
|
87
96
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/compat.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAG,yBAAkC,CAAA;AACtE,eAAO,MAAM,uBAAuB,EAAG,8BAAuC,CAAA;AAC9E,eAAO,MAAM,mBAAmB,EAAG,WAAoB,CAAA;AACvD,eAAO,MAAM,mBAAmB,EAAG,IAAa,CAAA;AAChD,eAAO,MAAM,mBAAmB,EAAG,gBAAyB,CAAA;AAC5D,eAAO,MAAM,kBAAkB,uCAAwF,CAAA;AACvH,eAAO,MAAM,WAAW,EAAG,qCAA8C,CAAA;AACzE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,EAAG,cAAuB,CAAA;AACvD;;;;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AAuB,EAAG,wBAAiC,CAAA;AACxE,eAAO,MAAM,wBAAwB,EAAG,oBAA6B,CAAA;AACrE,eAAO,MAAM,uBAAuB,EAAG,oBAA6B,CAAA;AACpE,eAAO,MAAM,cAAc,QAAS,CAAA;AACpC,eAAO,MAAM,8BAA8B,QAAS,CAAA;AAEpD,eAAO,MAAM,mBAAmB,2CAAqD,CAAA;AACrF,eAAO,MAAM,eAAe,uCAAiD,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Mode 预设行 —— 本包自己的「原生工具 + 程序传输」呈现方式。
|
|
3
|
+
*
|
|
4
|
+
* 这一行挂在 `dispatch` 预设里(见 presets/dispatch/agent.cordis.yml 与 src/host/agent-preset.ts),
|
|
5
|
+
* 因此它注册的工具、它选中的 executor、它提供的提示词段都属于**这个预设的会话**,其它预设
|
|
6
|
+
* 完全不受影响。
|
|
7
|
+
*
|
|
8
|
+
* ## 它替掉了什么
|
|
9
|
+
*
|
|
10
|
+
* 内核的 `ptc` 呈现方式只把 `run_code` 交给模型,其余工具一律硬拒(UNKNOWN_TOOL),
|
|
11
|
+
* `standard` 又完全没有程序传输——「原生工具 + 程序」这个组合在内核里表达不出来。本行用
|
|
12
|
+
* `standard` 的原生工具面 + 自己的 `code_run` 把这个组合重建,再把预设清单以外的工具
|
|
13
|
+
* 挡在上下文之外,只留程序内可达。
|
|
14
|
+
*
|
|
15
|
+
* ## 四件事
|
|
16
|
+
*
|
|
17
|
+
* 1. 注册发现工具(list / search / describe / debug);
|
|
18
|
+
* 2. 注册程序传输工具 `code_run`;
|
|
19
|
+
* 3. 选一个执行器:`describe()` 丢掉预设清单以外的名字,`execute()` 派发前拒绝模型直呼,
|
|
20
|
+
* 其余整批委托给内核原生执行器(完整策略 / 审批 / post-execute 管线);
|
|
21
|
+
* 4. 提供**恒定**的 Code Mode 说明段,替换内核那份 SDK 声明段。
|
|
22
|
+
*
|
|
23
|
+
* @module @eddyskywalker/dsh-chatgpt-subscription/codemode
|
|
24
|
+
*/
|
|
25
|
+
import { type CodemodeConfig } from './host/codemode/rules.ts';
|
|
26
|
+
/** Cordis 插件名。 */
|
|
27
|
+
export declare const name = "codemode";
|
|
28
|
+
/** 依赖的服务。 */
|
|
29
|
+
export declare const inject: string[];
|
|
30
|
+
/**
|
|
31
|
+
* 装配本行。
|
|
32
|
+
*
|
|
33
|
+
* @param ctx - 预设作用域上的行上下文。
|
|
34
|
+
* @param config - 行配置({@link CodemodeConfig})。
|
|
35
|
+
*/
|
|
36
|
+
export declare function apply(ctx: unknown, config?: CodemodeConfig): void;
|
|
37
|
+
//# sourceMappingURL=entry-codemode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-codemode.d.ts","sourceRoot":"","sources":["../../src/entry-codemode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AASH,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,0BAA0B,CAAA;AAejC,kBAAkB;AAClB,eAAO,MAAM,IAAI,aAAa,CAAA;AAE9B,aAAa;AACb,eAAO,MAAM,MAAM,UAA4B,CAAA;AAgE/C;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,GAAE,cAAmB,GAAG,IAAI,CAiPrE"}
|
|
@@ -33,6 +33,20 @@ export declare const PRESET_REGISTRY_PACKAGE = "@deepseek-ai/dsh-agent-preset";
|
|
|
33
33
|
export declare const WORKING_DIRECTORY_PACKAGE = "@deepseek-ai/dsh-working-directory";
|
|
34
34
|
/** The standalone PTC executor introduced when tool presentation split into executor plugins. */
|
|
35
35
|
export declare const PTC_EXECUTOR_PACKAGE = "@deepseek-ai/dsh-tool-executor-ptc";
|
|
36
|
+
/**
|
|
37
|
+
* The native executor this package delegates Code Mode execution to.
|
|
38
|
+
*
|
|
39
|
+
* A program sub-call must run through the harness's own policy, approval, and
|
|
40
|
+
* post-execute pipeline; re-implementing that pipeline is how a plugin silently
|
|
41
|
+
* drops policy. A profile plugin cannot resolve the host's kernel packages, so
|
|
42
|
+
* this package carries the executor as a real dependency and drives the host
|
|
43
|
+
* registry with it.
|
|
44
|
+
*/
|
|
45
|
+
export declare const NATIVE_EXECUTOR_PACKAGE = "@deepseek-ai/dsh-tool-executor-native";
|
|
46
|
+
/** This package's Code Mode row: the preset's own tools stay native, the rest is program-only. */
|
|
47
|
+
export declare const CODEMODE_PACKAGE = "@eddyskywalker/dsh-chatgpt-subscription/codemode";
|
|
48
|
+
/** The deprecated presentation row generations without a native executor keep. */
|
|
49
|
+
export declare const AGENT_TOOL_PRESENTATION_PACKAGE = "@deepseek-ai/dsh-agent-tool-presentation";
|
|
36
50
|
/** The id the `dispatch` preset is selectable under. */
|
|
37
51
|
export declare const DISPATCH_PRESET_ID = "dispatch";
|
|
38
52
|
/**
|
|
@@ -116,8 +130,16 @@ export declare const DISPATCH_PRESET: PresetDefinition;
|
|
|
116
130
|
* the export is absent; older harnesses keep it because their main entry does not
|
|
117
131
|
* register the tool.
|
|
118
132
|
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
133
|
+
* Code Mode needs the native tool executor (it is the pipeline the program's
|
|
134
|
+
* sub-calls are delegated to), so that package's presence decides the
|
|
135
|
+
* presentation rows:
|
|
136
|
+
*
|
|
137
|
+
* - resolvable: the `code-mode` row mounts as-is and no PTC executor row exists
|
|
138
|
+
* beside it (one executor per scope);
|
|
139
|
+
* - absent: the row falls back to the deprecated agent-tool-presentation row and,
|
|
140
|
+
* when the standalone PTC executor exists, to that executor instead — the
|
|
141
|
+
* behaviour of every generation before Code Mode.
|
|
142
|
+
*
|
|
121
143
|
* @param resolves - whether a bare specifier resolves in this installation.
|
|
122
144
|
* @returns the preset definition for the running harness generation.
|
|
123
145
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-preset.d.ts","sourceRoot":"","sources":["../../../src/host/agent-preset.ts"],"names":[],"mappings":"AAA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gBA0S7B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,GAAE,iBAAoC,GAAG,gBAAgB,CAyBtG;AAUD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,UAAU,EAChB,QAAQ,GAAE,iBAAoC,GAC7C,aAAa,CAuBf"}
|
|
@@ -5,8 +5,16 @@ type FetchLike = typeof fetch;
|
|
|
5
5
|
/**
|
|
6
6
|
* Aspect ratios Gemini image models accept in `imageConfig.aspectRatio`.
|
|
7
7
|
* Omitted, the model picks one itself, which is what the request then does.
|
|
8
|
+
*
|
|
9
|
+
* The last four are the extreme strips: a wider or taller frame than the square
|
|
10
|
+
* family covers, useful for banners, headers and phone wallpapers.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ANTIGRAVITY_IMAGE_ASPECT_RATIOS: readonly ["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9", "1:4", "4:1", "1:8", "8:1"];
|
|
13
|
+
/**
|
|
14
|
+
* Image sizes Gemini image models accept in `imageConfig.imageSize`.
|
|
15
|
+
* Omitted, the model picks one itself, which is what the request then does.
|
|
8
16
|
*/
|
|
9
|
-
export declare const
|
|
17
|
+
export declare const ANTIGRAVITY_IMAGE_SIZES: readonly ["0.5K", "1K", "2K", "4K"];
|
|
10
18
|
export interface AntigravityImageToolOptions {
|
|
11
19
|
fetchFn?: FetchLike;
|
|
12
20
|
/** Whether the Antigravity line is switched on; a switched-off line serves no images. */
|
|
@@ -34,7 +42,7 @@ export interface ImageResponse {
|
|
|
34
42
|
* Antigravity clients send for image runtimes; it has not been captured from
|
|
35
43
|
* the official client.
|
|
36
44
|
*/
|
|
37
|
-
export declare function buildImageRequest(prompt: string, projectId: string, aspectRatio?: string): Record<string, unknown>;
|
|
45
|
+
export declare function buildImageRequest(prompt: string, projectId: string, aspectRatio?: string, imageSize?: string): Record<string, unknown>;
|
|
38
46
|
/**
|
|
39
47
|
* Collect the images and visible text of one SSE image response.
|
|
40
48
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-tool.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/image-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAsB,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAMtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAIpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAEtD,KAAK,SAAS,GAAG,OAAO,KAAK,CAAA;AAE7B
|
|
1
|
+
{"version":3,"file":"image-tool.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/image-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAsB,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAMtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAIpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAEtD,KAAK,SAAS,GAAG,OAAO,KAAK,CAAA;AAE7B;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,gHAGlC,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,uBAAuB,qCAAsC,CAAA;AAK1E,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,OAAO,CAAA;CAC1B;AAkBD,uDAAuD;AACvD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wEAAwE;AACxE,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBzB;AAYD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAqC9D;AAcD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,WAAW,EAClB,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,GAChD;IAAE,SAAS,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAiBjD;AASD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,gBAAgB,EAC7B,KAAK,EAAE,mBAAmB,EAC1B,WAAW,EAAE,eAAe,EAC5B,OAAO,GAAE,2BAAgC,mDA+H1C"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 这个文件把核心(结果投影、预算、引用存储、指标)接到宿主上,挂四样东西:
|
|
5
5
|
*
|
|
6
|
-
* 1. `tools/post-execute` 上的**新结果投影**:Kimi
|
|
6
|
+
* 1. `tools/post-execute` 上的**新结果投影**:Kimi 线路的程序传输结果(PTC 的
|
|
7
|
+
* `run_code` 与 Code Mode 的 `code_run`)交给
|
|
7
8
|
* `projectToolResult`,能可靠结构化提取的大结果被换成带 `ref://` 引用的预览;
|
|
8
9
|
* 2. `cache_warmup_result` 工具(`result-tool.ts`),预览的唯一精确补读入口;
|
|
9
10
|
* 3. 一段**静态**系统提示词引导(见 `CACHE_WARMUP_GUIDANCE`);
|
|
@@ -41,14 +42,19 @@ import type { CacheWarmupSettings } from './settings.ts';
|
|
|
41
42
|
export declare const CACHE_WARMUP_PROVIDER = "kimi-code";
|
|
42
43
|
/**
|
|
43
44
|
* 默认被投影的主工具名(保留导出供向后兼容)。
|
|
45
|
+
*
|
|
46
|
+
* 它只是 PTC 家族的**第一个**名字,完整集合见
|
|
47
|
+
* {@link CACHE_WARMUP_PTC_TRANSPORT_TOOLS}:判断「这条结果来自程序传输」一律用
|
|
48
|
+
* `isPtcTransportName()`,不要再写第二个字面量比较。
|
|
44
49
|
*/
|
|
45
50
|
export declare const CACHE_WARMUP_SOURCE_TOOL = "run_code";
|
|
46
51
|
/**
|
|
47
52
|
* 允许进入结果投影的工具集合。
|
|
48
53
|
*
|
|
49
|
-
* 除了 PTC 的 `
|
|
50
|
-
*
|
|
51
|
-
*
|
|
54
|
+
* 除了 PTC 家族的程序传输(`run_code` 与 Code Mode 的 `code_run`),宿主的独立
|
|
55
|
+
* Shell 与后台任务输出工具(`win_bash`、`bash`、`pwsh`、`job_output`)同样经常
|
|
56
|
+
* 吐出整屏测试/构建日志。源码读取/编辑类工具(`read`、`edit`、`grep`、`glob`、
|
|
57
|
+
* CodeGraph 等)不在此列,保持 100% 原样。
|
|
52
58
|
*/
|
|
53
59
|
export declare const CACHE_WARMUP_SOURCE_TOOLS: ReadonlySet<string>;
|
|
54
60
|
/** 提示词分节名,全局唯一(重复注册会抛错)。 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/host/cache-warmup/install.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/host/cache-warmup/install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAIH,OAAO,EAML,KAAK,sBAAsB,EAG3B,KAAK,oBAAoB,EAC1B,MAAM,YAAY,CAAA;AACnB,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAA;AAIrB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;A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