dsh-github-copilot 0.4.0-alpha.107 → 0.4.0-alpha.108
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/AGENTS.md +6 -0
- package/CHANGELOG.md +6 -0
- package/README.md +8 -6
- package/README.zh.md +8 -6
- package/deployment-baseline.json +5 -1
- package/docs/model-compatibility-acceptance.md +19 -4
- package/lib/client.js +63 -22
- package/lib/client.js.map +1 -1
- package/lib/index.js +9 -3
- package/lib/types/composer-notice-style.d.ts +5 -0
- package/lib/types/responses-replay-compat.d.ts +1 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -254,6 +254,12 @@ Never say GPT-6/search works merely because settings, typecheck or a package imp
|
|
|
254
254
|
|
|
255
255
|
## Changing capabilities
|
|
256
256
|
|
|
257
|
+
Context evidence and replay recovery use the public full-width `conversation.input.dock`
|
|
258
|
+
above the composer, with shared native secondary typography. Do not restore long
|
|
259
|
+
notices to the nonwrapping statistics row or mutate its parent DOM. Scope errors
|
|
260
|
+
keep concise recovery guidance; bounded dispatch counts are separate Host diagnostics,
|
|
261
|
+
not proof of the rejected item, account-switch failure or recovery success.
|
|
262
|
+
|
|
257
263
|
Completed-turn Usage diagnostics (#259) are read-only plugin conversation data and an additive assistant-actions explanation. Official rc.2 hides its total if any attempt lacks complete accounting; the plugin's finish-only pre-dispatch pressure block can trigger this rule even after recovery. Never fabricate zero usage or replace it with successful-step partial totals. Identify local interception only from its exact recorded finish-only diagnostic, keep other missing samples and paged evidence uncertain, and suppress the explanation whenever native `tokenUsage` exists. Preserve native accounting, history, pressure and recovery; see `docs/copilot-usage.md`.
|
|
258
264
|
|
|
259
265
|
Auto task routing (#258) uses current `model_picker_category` facts, never model
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.108 (prepared)
|
|
4
|
+
|
|
5
|
+
- Align context evidence and replay recovery with native secondary typography throughout, including explanations and controls. Use the public full-width input dock above the composer instead of the non-wrapping statistics row (#315).
|
|
6
|
+
- Replace verbose replay-scope failure text with concise account/connection guidance, explicit recovery consent and a new-conversation alternative. Retain bounded sanitized dispatch counts separately in Host diagnostics; do not infer which encrypted item failed.
|
|
7
|
+
- Keep recovery default-off and lossy, with unchanged duration, expiry, native Send/Retry and stored-history semantics. No automatic replay, account reset, history deletion or Core change.
|
|
8
|
+
|
|
3
9
|
## 0.4.0-alpha.107 (prepared)
|
|
4
10
|
|
|
5
11
|
- Present an in-flight multi-account device authorization as progress with the verification URL, one-time code, copy action and cancel together; distinguish Host-confirmed post-OAuth identity/model verification from pending authorization. Adding an account never changes the global default.
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Visible Models and Credits renew expired identity without forcing fresh reads on
|
|
|
19
19
|
|
|
20
20
|
Adding an account now keeps the device-authorization link, selectable URL, one-time code, Copy code action and Cancel together while authorization is pending. After GitHub authorizes, identity and model verification are shown as a separate phase. Adding never changes the global default; use the existing explicit **Switch** action when ready. Technical diagnostics are secondary, and account/turn identity fallbacks never expose opaque account IDs or infer historical identity from today's settings.
|
|
21
21
|
|
|
22
|
-
**Source candidate: `0.4.0-alpha.
|
|
22
|
+
**Source candidate: `0.4.0-alpha.108` (unreleased). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** Earlier DSH pins are historical evidence, not supported installation targets. Publication, profile installation and the version loaded by a running Host are separate states. The versioned commands below are for this candidate after publication, not evidence that its assets exist.
|
|
23
23
|
|
|
24
24
|
## What you can do
|
|
25
25
|
|
|
@@ -59,10 +59,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
59
59
|
For a **standalone named profile**:
|
|
60
60
|
|
|
61
61
|
```sh
|
|
62
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
62
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.
|
|
65
|
+
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.108` after publication. Official rc.2's **Desktop-bundled CLI** also supports reserved-profile plugin management; a global/generic `dsh` shim is not equivalent. Qualify the installed entry before use. See [Desktop CLI qualification](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2) and the distinct [standalone offline procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles). Neither path authorizes registry-policy bypass, peer patches or configuration deletion.
|
|
66
66
|
|
|
67
67
|
After an approved reload/restart:
|
|
68
68
|
|
|
@@ -172,6 +172,8 @@ Configuration is under `github-copilot`. Credentials, endpoint definitions and a
|
|
|
172
172
|
| AUTH, Responses replay-scope or TLS failure | Review [request diagnostics](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics) and [usage TLS boundaries](./docs/copilot-usage.md#account-data-boundary). After an exact scope rejection, **Replay recovery** appears automatically when the session's turn ends or the session opens. Review the loss of matching old encrypted items and their summaries, then authorize **Next matching turn only** (default choice) or **Continue in this session**. Both expire within one hour of the evidence and require the same validation state. Recovery itself stays off until confirmed; use native Send/Retry separately. It never rewrites history or retries automatically, and is not a 408 fix. Never reset credentials or disable TLS as an automatic repair. |
|
|
173
173
|
| Hosted search unavailable | Check account/protocol/probe diagnostics; a legacy override stays authoritative until explicitly reset |
|
|
174
174
|
|
|
175
|
+
Context evidence and Replay recovery use compact, full-width notices above the composer; native statistics stay unchanged. Switching accounts does not make old encrypted reasoning portable. The concise scope error points to explicit recovery or a new conversation; bounded, sanitized dispatch counts stay in Host diagnostics, not the main error. **Authorized** means permission is ready, not that a message was sent or recovery succeeded.
|
|
176
|
+
|
|
175
177
|
## Ownership and further reading
|
|
176
178
|
|
|
177
179
|
DSH Core owns Sessions, tools, sandboxing, attachments, native accounting and other providers. `llm-pi-ai` owns OAuth, token exchange/refresh and normal model transport. This plugin composes the published adapter with authenticated account metadata; new supported account model IDs need no name-based routing patch. Credentials stay Host-only under `llm-pi-ai/github-copilot`.
|
|
@@ -210,14 +212,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
210
212
|
GitHub Releases and npm distribute the same original verified tarball. Pin a version; verify Release SHA-256 or npm `dist.integrity`. Never repack an immutable release or move/reuse its tag.
|
|
211
213
|
|
|
212
214
|
```sh
|
|
213
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
214
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
215
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
|
|
216
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/SHA256SUMS
|
|
215
217
|
sha256sum --check SHA256SUMS
|
|
216
218
|
```
|
|
217
219
|
|
|
218
220
|
```powershell
|
|
219
221
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
220
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
222
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.108.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
221
223
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
222
224
|
```
|
|
223
225
|
|
package/README.zh.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
|
|
19
19
|
|
|
20
|
-
**源码候选版本:`0.4.0-alpha.
|
|
20
|
+
**源码候选版本:`0.4.0-alpha.108`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
|
|
21
21
|
|
|
22
22
|
## 你可以做什么
|
|
23
23
|
|
|
@@ -57,10 +57,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
57
57
|
**独立具名 profile**:
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
60
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.
|
|
63
|
+
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.108`。官方 rc.2 **Desktop 随附的专属 CLI**也支持管理保留 profile;全局/普通 `dsh` shim 不等价。使用前核验实际安装入口,参见[Desktop CLI 核验](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及独立的[具名 profile 离线流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)。两种路径都不授权绕过包源政策、修改 peer 或删除配置。
|
|
64
64
|
|
|
65
65
|
经批准 reload/restart 后:
|
|
66
66
|
|
|
@@ -170,6 +170,8 @@ HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手
|
|
|
170
170
|
| AUTH、Responses replay scope 或 TLS 错误 | 查看[请求诊断](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics)及[额度 TLS 边界](./docs/copilot-usage.md#account-data-boundary)。精确 scope 拒绝后,**回放恢复**会在当前轮结束或打开会话时自动提示。查看旧加密项及项内摘要的损失后,可选择**仅下一轮使用恢复**(默认选项)或**在本会话内继续使用**;两者都要求验证状态不变,最长不超过证据产生后一小时。恢复默认关闭,确认授权也不发送消息,需另行使用原生发送或重试。不改磁盘历史,也不是 408 修复。不自动重置凭据或关闭 TLS。 |
|
|
171
171
|
| Hosted search 不可用 | 检查账号/协议/probe 诊断;旧 override 保留至显式 reset |
|
|
172
172
|
|
|
173
|
+
上下文证据与回放恢复以紧凑、全宽提示纵向显示在输入框上方,原生统计不变。切换账号不会让旧加密推理自动变得可跨账号使用。简短 scope 错误指向显式恢复或新会话;有界、脱敏的请求结构计数留在 Host 诊断中,不挤占主错误。**已授权**只表示授权已准备好,不表示消息已发送或恢复已成功。
|
|
174
|
+
|
|
173
175
|
## 所有权与深入阅读
|
|
174
176
|
|
|
175
177
|
DSH Core 所有会话、工具、sandbox、附件、原生计量和其它 provider;`llm-pi-ai`所有 OAuth、token 交换/刷新和普通模型传输。插件以认证后的账号元数据组合公开适配器,受支持的新模型 ID 无需名称路由补丁。凭据仅在 Host,key 为 `llm-pi-ai/github-copilot`。
|
|
@@ -208,14 +210,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
208
210
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
209
211
|
|
|
210
212
|
```sh
|
|
211
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
212
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
213
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
|
|
214
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/SHA256SUMS
|
|
213
215
|
sha256sum --check SHA256SUMS
|
|
214
216
|
```
|
|
215
217
|
|
|
216
218
|
```powershell
|
|
217
219
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
218
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
220
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.108.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
219
221
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
220
222
|
```
|
|
221
223
|
|
package/deployment-baseline.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.4.0-alpha.
|
|
11
|
+
"version": "0.4.0-alpha.108"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -371,12 +371,16 @@
|
|
|
371
371
|
{"file": "src/index.ts", "marker": "installContextEvidence(ctx)"},
|
|
372
372
|
{"file": "src/client.ts", "marker": "registerContextEvidenceUi"},
|
|
373
373
|
{"file": "src/context-evidence.ts", "marker": "githubCopilotContextEvidence"},
|
|
374
|
+
{"file": "src/context-evidence-ui.ts", "marker": "conversation.input.dock"},
|
|
375
|
+
{"file": "src/replay-recovery-ui.ts", "marker": "conversation.input.dock"},
|
|
376
|
+
{"file": "src/composer-notice-style.ts", "marker": "var(--dsh-content-font-size-secondary, 13px)"},
|
|
374
377
|
{"file": "docs/copilot-usage.md", "marker": "historical input sample, not current occupancy"}
|
|
375
378
|
],
|
|
376
379
|
"tests": [
|
|
377
380
|
{"file": "tests/context-usage.spec.ts", "name": "classifies zero only for separate historical evidence without changing the sample"},
|
|
378
381
|
{"file": "tests/context-evidence.spec.ts", "name": "replays failed zero samples without discarding the last valid input sample"},
|
|
379
382
|
{"file": "tests/context-evidence-ui.spec.ts", "name": "labels counts as historical rather than current occupancy in %s"},
|
|
383
|
+
{"file": "tests/replay-recovery-ui.spec.ts", "name": "uses native auxiliary typography for the entire notice and inherited controls in an independent dock row"},
|
|
380
384
|
{"file": "tests/fixtures/session-context-core.fixture.ts", "name": "cold-folds native model selections independently without replacing the controller projection"},
|
|
381
385
|
{"file": "tests/preview-route.spec.ts", "name": "forwards native SDK failed zero usage without changing the shared accounting stream"},
|
|
382
386
|
{"file": "tests/preview-route.spec.ts", "name": "preserves native cancellation usage on %s (%s input tokens)"},
|
|
@@ -81,17 +81,26 @@ exact verified scope rejection: total items, direct ID fields, reference items,
|
|
|
81
81
|
encrypted reasoning items, unrecognized items, `previous_response_id`/`store`
|
|
82
82
|
state and presence of the two native session/request headers. It observes the
|
|
83
83
|
final HTTP dispatch, not the earlier SDK payload before caller replacement.
|
|
84
|
-
Only fixed labels and counts enter the
|
|
85
|
-
|
|
84
|
+
Only fixed labels and counts enter the separate `dispatchEvidence` diagnostic
|
|
85
|
+
and Host warning; the main error stays concise and points to explicit recovery
|
|
86
|
+
or a new conversation. No IDs, header values, message text, arguments, results
|
|
87
|
+
or opaque bytes are retained. The shared
|
|
86
88
|
16 MiB/depth/work diagnostic limits apply; unavailable evidence never becomes
|
|
87
|
-
zero counts. Historical errors
|
|
89
|
+
zero counts. Historical errors are not rewritten; absence of captured evidence
|
|
90
|
+
is not zero counts.
|
|
88
91
|
Structure counts alone do not repair cross-turn scope rejection: zero direct
|
|
89
92
|
IDs does not prove encrypted replay is portable.
|
|
90
93
|
|
|
94
|
+
Switching from account A to B does not make old account/connection-bound
|
|
95
|
+
encrypted reasoning portable. An exact scope rejection is not proof that
|
|
96
|
+
sign-in failed or that a particular encrypted item was rejected. Recovery
|
|
97
|
+
is an explicitly authorized, lossy continuation, not a portability repair.
|
|
98
|
+
Starting a new conversation avoids replaying the old history.
|
|
99
|
+
|
|
91
100
|
### Explicit session replay recovery
|
|
92
101
|
|
|
93
102
|
After an exact verified managed Responses scope rejection, **Replay recovery**
|
|
94
|
-
|
|
103
|
+
above that session's composer automatically offers the failed request's old
|
|
95
104
|
encrypted items on opening the eligible session, when its native `running`
|
|
96
105
|
snapshot settles, or when its `lastAgentError` changes while idle. These public
|
|
97
106
|
Session snapshot changes trigger read-only Host evidence reads, not model calls,
|
|
@@ -99,6 +108,12 @@ history reads, new durable events or polling. Normal sessions show no notice.
|
|
|
99
108
|
Dismissal is local to the mounted model/session and evidence revision; a new
|
|
100
109
|
failure can reappear. Read errors remain distinct from missing evidence.
|
|
101
110
|
|
|
111
|
+
Context evidence and recovery use the public full-width
|
|
112
|
+
`conversation.input.dock` with shared native secondary typography for body
|
|
113
|
+
text and controls. They stack above the composer rather than squeezing into
|
|
114
|
+
its non-wrapping statistics row. Native meters, statistics and parent DOM stay
|
|
115
|
+
unchanged; authorization itself still sends no message.
|
|
116
|
+
|
|
102
117
|
Choose **Review recovery options**, then **Next matching turn only** (the
|
|
103
118
|
default choice) or **Continue in this session**, and **Accept loss and authorize**.
|
|
104
119
|
This does not send a message or retry the failed request. Use the native Send or
|
package/lib/client.js
CHANGED
|
@@ -9827,8 +9827,39 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9827
9827
|
reasoningTokens: count.optional()
|
|
9828
9828
|
});
|
|
9829
9829
|
//#endregion
|
|
9830
|
+
//#region lib/types/composer-notice-style.js
|
|
9831
|
+
const composerNoticeStyle = {
|
|
9832
|
+
width: "100%",
|
|
9833
|
+
minWidth: 0,
|
|
9834
|
+
maxWidth: "100%",
|
|
9835
|
+
boxSizing: "border-box",
|
|
9836
|
+
fontFamily: "var(--dsw-font-family, inherit)",
|
|
9837
|
+
fontSize: "var(--dsh-content-font-size-secondary, 13px)",
|
|
9838
|
+
fontWeight: 400,
|
|
9839
|
+
lineHeight: "calc(20px + var(--dsh-content-font-delta-secondary, 0px))",
|
|
9840
|
+
color: "var(--dsw-alias-label-secondary, GrayText)",
|
|
9841
|
+
overflowWrap: "anywhere"
|
|
9842
|
+
};
|
|
9843
|
+
const composerNoticeParagraphStyle = {
|
|
9844
|
+
marginBlock: 8,
|
|
9845
|
+
maxWidth: "38rem"
|
|
9846
|
+
};
|
|
9847
|
+
const composerNoticeButtonStyle = {
|
|
9848
|
+
fontFamily: "inherit",
|
|
9849
|
+
fontSize: "inherit",
|
|
9850
|
+
fontWeight: "inherit",
|
|
9851
|
+
lineHeight: "inherit",
|
|
9852
|
+
color: "var(--dsw-alias-label-primary, CanvasText)",
|
|
9853
|
+
maxWidth: "100%",
|
|
9854
|
+
background: "transparent",
|
|
9855
|
+
border: "1px solid var(--dsw-alias-border-main, GrayText)",
|
|
9856
|
+
borderRadius: 6,
|
|
9857
|
+
padding: "6px 10px",
|
|
9858
|
+
cursor: "pointer"
|
|
9859
|
+
};
|
|
9860
|
+
//#endregion
|
|
9830
9861
|
//#region lib/types/context-evidence-ui.js
|
|
9831
|
-
const slot = "conversation.
|
|
9862
|
+
const slot = "conversation.input.dock";
|
|
9832
9863
|
const noop$1 = () => {};
|
|
9833
9864
|
function record$1(value) {
|
|
9834
9865
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -9866,18 +9897,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9866
9897
|
if (evidence !== void 0 && !evidence.invalid) return null;
|
|
9867
9898
|
const text = locale.startsWith("zh") ? copy.zh : copy.en;
|
|
9868
9899
|
const sample = applicable ? evidence?.sample : null;
|
|
9869
|
-
return (0, react.createElement)("details", {
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
} }, (0, react.createElement)("summary", { style: {
|
|
9900
|
+
return (0, react.createElement)("details", {
|
|
9901
|
+
"data-copilot-composer-notice": "context",
|
|
9902
|
+
style: composerNoticeStyle
|
|
9903
|
+
}, (0, react.createElement)("summary", { style: {
|
|
9874
9904
|
cursor: "pointer",
|
|
9875
9905
|
fontFamily: "var(--dsw-font-family, inherit)",
|
|
9876
9906
|
fontSize: "var(--dsh-content-font-size-secondary, 13px)",
|
|
9877
9907
|
fontWeight: 400,
|
|
9878
9908
|
lineHeight: "calc(20px + var(--dsh-content-font-delta-secondary, 0px))",
|
|
9879
9909
|
color: "var(--dsw-alias-label-tertiary, GrayText)"
|
|
9880
|
-
} }, text.title), (0, react.createElement)("p", { style:
|
|
9910
|
+
} }, text.title), (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, evidence === void 0 ? text.missing : evidence.reason === "unknown" ? text.unknown : text.explanation), sample ? (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, `${text.sample}: ${new Intl.NumberFormat(locale.startsWith("zh") ? "zh-CN" : "en-US").format(sample.tokens)} tokens`) : null, evidence === void 0 ? null : (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, sample ? text.historical : text.revoked));
|
|
9881
9911
|
}
|
|
9882
9912
|
function Surface$1({ runtime, locale, diagnostic }) {
|
|
9883
9913
|
const valid = runtime.useSession((value) => record$1(value) && value.sessionId === runtime.sessionId && value.removed === false && value.openState === "open");
|
|
@@ -10020,32 +10050,40 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10020
10050
|
const timer = setTimeout(() => void perform(), Math.max(0, expiresAt - Date.now()));
|
|
10021
10051
|
return () => clearTimeout(timer);
|
|
10022
10052
|
}, [expiresAt, perform]);
|
|
10023
|
-
const button =
|
|
10024
|
-
font: "inherit",
|
|
10025
|
-
color: "inherit",
|
|
10026
|
-
background: "transparent",
|
|
10027
|
-
border: "1px solid var(--dsw-alias-border-main, GrayText)",
|
|
10028
|
-
borderRadius: 6,
|
|
10029
|
-
padding: "6px 10px"
|
|
10030
|
-
};
|
|
10053
|
+
const button = composerNoticeButtonStyle;
|
|
10031
10054
|
const disabled = busy || running;
|
|
10032
10055
|
const evidence = view && view.state !== "unavailable" ? view : void 0;
|
|
10033
10056
|
if (!error && !evidence && !hadEvidence) return null;
|
|
10034
10057
|
if (!error && evidence?.state === "available" && dismissed === evidence.revision) return (0, react.createElement)("button", {
|
|
10035
10058
|
type: "button",
|
|
10036
|
-
style:
|
|
10059
|
+
style: {
|
|
10060
|
+
...button,
|
|
10061
|
+
...composerNoticeStyle,
|
|
10062
|
+
width: "auto",
|
|
10063
|
+
alignSelf: "flex-start",
|
|
10064
|
+
color: button.color
|
|
10065
|
+
},
|
|
10037
10066
|
disabled,
|
|
10038
10067
|
onClick: () => setDismissed(void 0)
|
|
10039
10068
|
}, zh ? "回放恢复 · 查看" : "Replay recovery · Review");
|
|
10040
10069
|
return (0, react.createElement)("section", {
|
|
10041
10070
|
"aria-label": zh ? "回放恢复" : "Replay recovery",
|
|
10071
|
+
"data-copilot-composer-notice": "replay",
|
|
10042
10072
|
"aria-busy": busy,
|
|
10043
10073
|
style: {
|
|
10044
|
-
|
|
10045
|
-
overflowWrap: "anywhere",
|
|
10074
|
+
...composerNoticeStyle,
|
|
10046
10075
|
paddingBlock: 8
|
|
10047
10076
|
}
|
|
10048
|
-
}, (0, react.createElement)("strong", {
|
|
10077
|
+
}, (0, react.createElement)("strong", {
|
|
10078
|
+
role: "status",
|
|
10079
|
+
style: {
|
|
10080
|
+
color: "var(--dsw-alias-label-primary, CanvasText)",
|
|
10081
|
+
fontWeight: 600
|
|
10082
|
+
}
|
|
10083
|
+
}, evidence?.state === "enabled" ? zh ? "回放恢复已授权" : "Replay recovery authorized" : evidence ? zh ? "旧推理回放被拒绝" : "Old reasoning replay was rejected" : zh ? "回放恢复" : "Replay recovery"), error ? (0, react.createElement)("p", {
|
|
10084
|
+
role: "alert",
|
|
10085
|
+
style: composerNoticeParagraphStyle
|
|
10086
|
+
}, zh ? "无法读取或更改恢复状态。请等当前轮结束后重新读取;旧确认可能已过期。" : "Recovery could not be read or changed. Wait for the active turn to end and read again; the prior confirmation may have expired.") : null, view?.state === "unavailable" ? (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, zh ? "授权或失败证据已失效。恢复未启用;没有当前可用的失败证据。" : "Authorization or failure evidence expired. Recovery is off; no current failure evidence is available.") : null, evidence ? (0, react.createElement)("div", null, (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, zh ? `${evidence.model}:${evidence.itemCount} 条已识别的旧加密推理项。` : `${evidence.model}: ${evidence.itemCount} identified old encrypted reasoning items.`), evidence.state === "enabled" ? (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, evidence.duration === "next-turn" ? zh ? "仅下一轮使用恢复,覆盖该轮的全部步骤与原生重试,轮结束即关闭。" : "Authorized for the next matching turn only, including all its steps and native retries; turns off when that turn ends." : zh ? "本会话继续使用恢复,直到关闭或验证状态失效。" : "Authorized for this session until disabled or validation expires.", " ", zh ? "尚未发送消息。请使用原生发送或重试按钮继续。" : "No message has been sent. Use the native Send or Retry control to continue.") : (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, zh ? "恢复未启用。确认损失后才能跳过这些旧项;不会自动重试。" : "Recovery is off. Review the loss before skipping these old items; nothing is retried automatically."), confirm ? (0, react.createElement)("div", null, (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, zh ? "恢复会跳过已识别的旧项,包括对应隐藏推理状态及项内摘要。磁盘历史、界面可见消息及工具调用保持不变;新推理照常保留。关闭不能撤销已生成的回答。" : "Recovery skips the identified old items, including their hidden reasoning state and item summaries. Stored history, displayed messages and tool calls stay unchanged; new reasoning is retained. Disabling cannot undo generated answers."), (0, react.createElement)("fieldset", {
|
|
10049
10087
|
disabled,
|
|
10050
10088
|
style: {
|
|
10051
10089
|
border: 0,
|
|
@@ -10064,7 +10102,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10064
10102
|
value,
|
|
10065
10103
|
checked: duration === value,
|
|
10066
10104
|
onChange: () => setDuration(value)
|
|
10067
|
-
}), " ", value === "next-turn" ? zh ? "仅下一轮使用恢复" : "Next matching turn only" : zh ? "在本会话内继续使用" : "Continue in this session"))), (0, react.createElement)("p",
|
|
10105
|
+
}), " ", value === "next-turn" ? zh ? "仅下一轮使用恢复" : "Next matching turn only" : zh ? "在本会话内继续使用" : "Continue in this session"))), (0, react.createElement)("p", { style: composerNoticeParagraphStyle }, zh ? "两种授权都只适用于相同模型及验证状态,最长不超过失败证据产生后一小时;Host 重启后失效。不会处理 408、额度或上下文超限。" : "Both options require the same model and validation state, expire within one hour of the failure, and are lost on Host restart. Not a remedy for 408, quota or context limits."), (0, react.createElement)("div", { style: {
|
|
10068
10106
|
display: "flex",
|
|
10069
10107
|
flexWrap: "wrap",
|
|
10070
10108
|
gap: 8
|
|
@@ -10092,7 +10130,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10092
10130
|
style: button,
|
|
10093
10131
|
disabled,
|
|
10094
10132
|
onClick: () => setDismissed(evidence.revision)
|
|
10095
|
-
}, zh ? "暂不处理" : "Not now") : null)) : null, running ? (0, react.createElement)("p", {
|
|
10133
|
+
}, zh ? "暂不处理" : "Not now") : null)) : null, running ? (0, react.createElement)("p", {
|
|
10134
|
+
role: "status",
|
|
10135
|
+
style: composerNoticeParagraphStyle
|
|
10136
|
+
}, zh ? "当前轮进行中,结束后自动更新。" : "Turn in progress; status updates when it ends.") : null, (0, react.createElement)("button", {
|
|
10096
10137
|
type: "button",
|
|
10097
10138
|
style: {
|
|
10098
10139
|
...button,
|
|
@@ -10137,7 +10178,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10137
10178
|
const remote = ctx.remote.githubCopilotReplayRecovery;
|
|
10138
10179
|
const language = ctx.get("locale");
|
|
10139
10180
|
const locale = isLocale(language) ? language : void 0;
|
|
10140
|
-
const name = "conversation.
|
|
10181
|
+
const name = "conversation.input.dock";
|
|
10141
10182
|
return slots.inject(name, () => {
|
|
10142
10183
|
const spec = slots.spec(name);
|
|
10143
10184
|
if (spec?.kind !== "list" || spec.scope !== "session") {
|