dsh-github-copilot 0.1.0-alpha.5.dsh.0.2.2.rc.3 → 0.1.0-alpha.6.dsh.0.2.2.rc.3
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 +11 -0
- package/CHANGELOG.md +6 -0
- package/README.md +25 -6
- package/README.zh.md +19 -5
- package/deployment-baseline.json +5 -4
- package/docs/copilot-accounts.md +38 -6
- package/lib/client.js +13 -10
- package/lib/client.js.map +1 -1
- package/lib/index.js +3 -3
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -168,6 +168,17 @@ See `src/compaction-replay.ts` and `docs/manual-compaction-recovery.md` (#349).
|
|
|
168
168
|
|
|
169
169
|
## Approved multi-account ownership extension (#297)
|
|
170
170
|
|
|
171
|
+
The explicit #470 enhancement permits managed-account switching alongside
|
|
172
|
+
independently configured native Copilot. Keep native UI and label the managed
|
|
173
|
+
route `GitHub Copilot (multi-account)`; do not mirror grants, intercept native
|
|
174
|
+
credentials, redirect native requests or change native selections. Missing
|
|
175
|
+
managed registration and incomplete evidence remain blockers. Reuse native
|
|
176
|
+
canonical quota/search isolation; do not revive retired Auto or routing UI.
|
|
177
|
+
Disposal removes only plugin registrations. Plugin-model selections and explicit
|
|
178
|
+
`web.searchProvider=github-copilot-hosted` need user-selected replacements before
|
|
179
|
+
uninstall; missing configured Web backends return `WEB_PROVIDER_CONFIGURED_MISSING`,
|
|
180
|
+
not automatic fallback. No automatic Settings/history migration or sign-out.
|
|
181
|
+
|
|
171
182
|
Login environments (#424) use only pinned native pi-ai OAuth for GitHub.com and
|
|
172
183
|
validated single-label `tenant.ghe.com` Enterprise Cloud hosts. Preserve host
|
|
173
184
|
binding through identity, duplicate checks, reauthorization and native refresh/
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.6.dsh.0.2.2.rc.3 (prepared)
|
|
4
|
+
|
|
5
|
+
- Permit managed multi-account switching alongside independently configured native Copilot, retaining credential/turn isolation and the native interface (#470).
|
|
6
|
+
- Label managed models `GitHub Copilot (multi-account)` and preserve native configuration, credentials and selected models on disposal.
|
|
7
|
+
- Clarify that plugin-model and configured plugin-search selections require explicit replacements before uninstall; no automatic fallback or settings rewrite.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.5.dsh.0.2.2.rc.3 (prepared)
|
|
4
10
|
|
|
5
11
|
- Show the native Credits account identity only after verifying the canonical OAuth grant and quota belong together; keep quota available when identity is unavailable.
|
package/README.md
CHANGED
|
@@ -67,15 +67,15 @@ After the exact compatible release is available and verified, download its
|
|
|
67
67
|
original asset and checksum in an empty directory:
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
71
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
70
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.6.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.6.dsh.0.2.2.rc.3.tgz
|
|
71
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.6.dsh.0.2.2.rc.3/SHA256SUMS
|
|
72
72
|
sha256sum --check SHA256SUMS
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
For the `web` profile, install the same Release asset:
|
|
76
76
|
|
|
77
77
|
```sh
|
|
78
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
78
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.6.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.6.dsh.0.2.2.rc.3.tgz
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
Choose the intended profile explicitly. Then:
|
|
@@ -94,9 +94,12 @@ own bundled or configured catalog; the two routes do not share model discovery.
|
|
|
94
94
|
|
|
95
95
|
When adding DSH's native GitHub Copilot provider, use the separate plugin account
|
|
96
96
|
panel to sign in. With no named key, the native route uses a stored canonical
|
|
97
|
-
OAuth grant, not an independently selected additional account.
|
|
98
|
-
managed
|
|
99
|
-
|
|
97
|
+
OAuth grant, not an independently selected additional account. Native and
|
|
98
|
+
managed routes can coexist: use **Manage → Account management → Switch**, then
|
|
99
|
+
choose a model under **GitHub Copilot (multi-account)** in the native picker.
|
|
100
|
+
Switching changes only the managed default; managed **Credits** can select an
|
|
101
|
+
account for that Session's subsequent turns. Native login, selected models and
|
|
102
|
+
running turns are not redirected. The native picker is not guaranteed
|
|
100
103
|
to filter its bundled catalog by account entitlement.
|
|
101
104
|
Starting the plugin or completing sign-in does not automatically repair the
|
|
102
105
|
native provider's settings.
|
|
@@ -118,6 +121,22 @@ different account. This is not proof of request-level billing attribution.
|
|
|
118
121
|
Native context-incident diagnostics remain available without the optional
|
|
119
122
|
managed continuation service; they do not replace DSH's context meter.
|
|
120
123
|
|
|
124
|
+
### Removing the enhancement
|
|
125
|
+
|
|
126
|
+
Unloading the plugin removes its own routes, UI and listeners, not native
|
|
127
|
+
Copilot credentials, configuration, model selections or history. Independently
|
|
128
|
+
configured native **GitHub Copilot** remains usable with its original account.
|
|
129
|
+
Removing the plugin is not signing out; explicit sign-out or removal of the
|
|
130
|
+
original authorization is a different action and can affect native login.
|
|
131
|
+
|
|
132
|
+
Plugin-dependent selections do not become native automatically. Before removal,
|
|
133
|
+
explicitly select native models for Sessions/defaults using
|
|
134
|
+
`github-copilot-preview`. If Web is set to `github-copilot-hosted`, select another
|
|
135
|
+
available backend in native Web settings first. Removing the plugin does not
|
|
136
|
+
rewrite Web settings: a retained missing backend produces
|
|
137
|
+
`WEB_PROVIDER_CONFIGURED_MISSING`, not an automatic fallback. Additional-account
|
|
138
|
+
switching and plugin-specific search require the plugin.
|
|
139
|
+
|
|
121
140
|
Desktop's native package manager and its bundled CLI have different contracts
|
|
122
141
|
from a standalone profile. Review the [Desktop CLI evidence](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)
|
|
123
142
|
and [standalone maintenance procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)
|
package/README.zh.md
CHANGED
|
@@ -55,15 +55,15 @@ node scripts/select-core-release.mjs 0.2.2-rc.3
|
|
|
55
55
|
精确兼容版本发布且通过验证后,在空目录下载原始制品并校验:
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
59
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
58
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.6.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.6.dsh.0.2.2.rc.3.tgz
|
|
59
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.6.dsh.0.2.2.rc.3/SHA256SUMS
|
|
60
60
|
sha256sum --check SHA256SUMS
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
例如安装到 `web` profile:
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
66
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.6.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.6.dsh.0.2.2.rc.3.tgz
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
请明确选择目标 profile,然后:
|
|
@@ -79,8 +79,10 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
79
79
|
|
|
80
80
|
添加 DSH 原生 GitHub Copilot provider 时,可使用独立的插件账号面板登录。
|
|
81
81
|
没有指定密钥时,原生路线使用已保存的 canonical OAuth 凭据,而不是另行选择的
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
附加账号。原生与托管路线可以共存:在 **Manage → 账号管理 → 切换** 中选择账号,
|
|
83
|
+
再在原生模型选择器中选择 **GitHub Copilot (multi-account)** 下的模型。
|
|
84
|
+
切换仅改变托管路线的默认账号;托管 Session 的 **Credits** 可指定后续 turn 的账号。
|
|
85
|
+
不会重定向原生登录、已选模型或正在运行的 turn。原生选择器不保证按账号权限过滤内置模型目录。
|
|
84
86
|
启动插件或完成登录时,不会自动修复原生 provider 设置。
|
|
85
87
|
插件在 DSH 现有 Web 服务中注册可选的 `github-copilot-hosted` 搜索后端。
|
|
86
88
|
请在原生 Web 设置中明确选择,并按需启用原生搜索工具;安装不会改变默认后端。
|
|
@@ -96,6 +98,18 @@ Web 服务替换或旧插件路由 UI。
|
|
|
96
98
|
这不证明单次请求实际计费的账号。
|
|
97
99
|
原生上下文异常诊断不依赖可选的托管续接服务,也不会替代 DSH 的上下文计量。
|
|
98
100
|
|
|
101
|
+
### 移除增强
|
|
102
|
+
|
|
103
|
+
卸载插件只撤销插件自己的路线、界面和监听,不删除原生 Copilot 凭据、配置、模型选择或历史。
|
|
104
|
+
已独立配置的原生 **GitHub Copilot** 仍使用原来的账号。卸载不是退出登录;
|
|
105
|
+
显式退出或移除原始授权是另一项操作,会影响原生登录。
|
|
106
|
+
|
|
107
|
+
依赖插件的选择不会自动变成原生选择。卸载前,请明确将使用 `github-copilot-preview`
|
|
108
|
+
的 Session/默认模型切回原生模型。如果 Web 选中了 `github-copilot-hosted`,
|
|
109
|
+
请先在原生 Web 设置中选择其他可用后端。卸载不会改写 Web 设置;
|
|
110
|
+
保留已缺失的后端会返回 `WEB_PROVIDER_CONFIGURED_MISSING`,不会自动回退。
|
|
111
|
+
附加账号切换和插件搜索仍然依赖插件。
|
|
112
|
+
|
|
99
113
|
Desktop 原生包管理器及其内置 CLI 与独立 profile 的操作约束不同。安装前请阅读
|
|
100
114
|
[Desktop CLI 证据](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及
|
|
101
115
|
[独立 profile 维护流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles);
|
package/deployment-baseline.json
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.1.0-alpha.
|
|
11
|
+
"version": "0.1.0-alpha.6.dsh.0.2.2.rc.3"
|
|
12
12
|
},
|
|
13
13
|
"releaseLines": [
|
|
14
14
|
{ "core": "0.2.0-rc.2", "version": "0.4.2-alpha.15", "status": "published" },
|
|
15
15
|
{ "core": "0.2.1-alpha.4", "version": "0.4.2-alpha.16", "status": "published" },
|
|
16
16
|
{ "core": "0.2.1-alpha.5", "version": "0.1.0-alpha.2.dsh.0.2.1.alpha.5", "status": "published" },
|
|
17
17
|
{ "core": "0.2.1-rc.3", "version": "0.1.0-alpha.5.dsh.0.2.1.rc.3", "status": "published" },
|
|
18
|
-
{ "core": "0.2.2-rc.3", "version": "0.1.0-alpha.
|
|
18
|
+
{ "core": "0.2.2-rc.3", "version": "0.1.0-alpha.6.dsh.0.2.2.rc.3", "status": "pending" }
|
|
19
19
|
],
|
|
20
20
|
"evidence": {
|
|
21
21
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
"id": "independent-copilot-accounts",
|
|
469
469
|
"required": true,
|
|
470
470
|
"evidenceScope": "synthetic-public-services-native-adapter-and-ui-not-live-oauth-or-provider-access",
|
|
471
|
-
"activation": "managed-
|
|
471
|
+
"activation": "managed-route-explicit-account-selector-with-independent-native-coexistence",
|
|
472
472
|
"sourceMarkers": [
|
|
473
473
|
{"file": "src/copilot-accounts-host.ts", "marker": "async ensureIdentityFor(accountId: string)"},
|
|
474
474
|
{"file": "src/copilot-login-environment.ts", "marker": "COPILOT_LOGIN_HOST_PATTERN"},
|
|
@@ -481,6 +481,7 @@
|
|
|
481
481
|
{"file": "docs/copilot-accounts.md", "marker": "A mutable active-account lookup inside each store method is forbidden"}
|
|
482
482
|
],
|
|
483
483
|
"tests": [
|
|
484
|
+
{"file": "tests/native-account-coexistence.spec.ts", "name": "keeps native requests, credentials and selection independent before, during and after multi-account enhancement"},
|
|
484
485
|
{"file": "tests/scripts/copilot-login-environment.test.mjs", "name": "compares numeric identities within their host without relabeling legacy GitHub.com evidence"},
|
|
485
486
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "authorizes native GHE environments with host-scoped duplicates and immutable reauthorization hosts"},
|
|
486
487
|
{"file": "tests/copilot-accounts-card.spec.ts", "name": "chooses a validated GHE environment without selecting an account or changing GitHub.com login"},
|
|
@@ -1416,7 +1417,7 @@
|
|
|
1416
1417
|
"required": true,
|
|
1417
1418
|
"sourceMarkers": [
|
|
1418
1419
|
{"file": "src/authorization-controller.ts", "marker": "current !== undefined && providerSupportsStrictMode(current) !== false"},
|
|
1419
|
-
{"file": "src/preview-route.ts", "marker": "displayName: 'GitHub Copilot'"},
|
|
1420
|
+
{"file": "src/preview-route.ts", "marker": "displayName: 'GitHub Copilot (multi-account)'"},
|
|
1420
1421
|
{"file": "src/client.ts", "marker": "GitHubCopilotAccountSurface"}
|
|
1421
1422
|
],
|
|
1422
1423
|
"tests": [
|
package/docs/copilot-accounts.md
CHANGED
|
@@ -273,7 +273,7 @@ available for retained compatibility fixtures. Account persistence acceptance
|
|
|
273
273
|
uses real SettingsForms and the production route diagnostic, without an
|
|
274
274
|
eligibility override.
|
|
275
275
|
|
|
276
|
-
1. Capture the selector revision and verify managed-
|
|
276
|
+
1. Capture the selector revision and verify managed-route availability and complete route/activity evidence.
|
|
277
277
|
2. Validate target identity, refresh authorization as needed and check account
|
|
278
278
|
model metadata without publishing it as the active account.
|
|
279
279
|
3. Hold an admission fence during commit. Existing account-pinned managed
|
|
@@ -310,9 +310,19 @@ A guessed idle timeout must not permit reauthorization/removal of its account.
|
|
|
310
310
|
|
|
311
311
|
Core's canonical route still reads its canonical record. Do not intercept
|
|
312
312
|
Core's store, mutate its prototypes or mirror selected grants into its record.
|
|
313
|
-
The
|
|
314
|
-
|
|
315
|
-
|
|
313
|
+
The reversible enhancement (#470) permits native and managed routes together.
|
|
314
|
+
The native **GitHub Copilot** route remains bound to its canonical credential;
|
|
315
|
+
**GitHub Copilot (multi-account)** (`github-copilot-preview`) uses the plugin
|
|
316
|
+
selector or an explicit managed Session account. Native configuration,
|
|
317
|
+
selection and activity no longer block a managed-account switch. Missing
|
|
318
|
+
managed registration or incomplete route/activity evidence still blocks it
|
|
319
|
+
with a named diagnostic. Account leases, authorization fences and CAS remain.
|
|
320
|
+
|
|
321
|
+
Use the native Models/Chat interface to select the managed model for multi-account
|
|
322
|
+
work. No store interception or canonical credential substitution is performed.
|
|
323
|
+
Native quota and optional native hosted search retain their separately qualified
|
|
324
|
+
canonical account; managed default or Session changes never supply their identity.
|
|
325
|
+
No account identity is inferred for a native credential/endpoint override.
|
|
316
326
|
|
|
317
327
|
Any migration uses the existing separately approved, explicit configuration
|
|
318
328
|
workflow. Enabling accounts does not remove native profiles, rewrite stored
|
|
@@ -321,12 +331,34 @@ Sessions or silently migrate their route IDs.
|
|
|
321
331
|
Sign-out deletes only the selected record. Inactive records remain intact.
|
|
322
332
|
For a noncanonical selection, the selector remains unchanged after sign-out:
|
|
323
333
|
the missing selected slot fails explicitly, never falls back to canonical.
|
|
324
|
-
|
|
334
|
+
With a managed route, complete route/Session evidence and no conflicting admitted
|
|
325
335
|
activity, Models still permits an explicit CAS switch to a stored valid account
|
|
326
336
|
or Add into a new inactive slot. The missing-slot view remains an error even
|
|
327
337
|
when `switchable` is true for that recovery. Existing Sign in never recreates
|
|
328
338
|
the missing slot with an unverified replacement identity; use Add then Switch.
|
|
329
339
|
|
|
340
|
+
### Uninstall boundary
|
|
341
|
+
|
|
342
|
+
Disposal removes only plugin-owned registrations. Native credentials, provider
|
|
343
|
+
configuration, native model selection and history remain unchanged. The synthetic
|
|
344
|
+
published-adapter regression exercises native calls before mounting, during A/B
|
|
345
|
+
switching and after disposal with the same original credential. It is not live
|
|
346
|
+
Desktop or supplier acceptance.
|
|
347
|
+
|
|
348
|
+
Removing the plugin does not convert plugin-only model selections. Explicitly
|
|
349
|
+
select a native model for affected Sessions/defaults before uninstalling.
|
|
350
|
+
Likewise, a selected `web.searchProvider=github-copilot-hosted` remains stored
|
|
351
|
+
after its backend is unregistered. Pinned Core
|
|
352
|
+
[`38a6a5c` Web regression](https://github.com/deepseek-ai/deepseek-harness/blob/38a6a5c/packages/web/web/tests/web.spec.ts#L156-L159)
|
|
353
|
+
returns `WEB_PROVIDER_CONFIGURED_MISSING` for a missing configured backend;
|
|
354
|
+
it does not fall back automatically. Select another available native Web backend
|
|
355
|
+
before removal. Native route preservation is not a promise that plugin search
|
|
356
|
+
or additional-account features survive uninstall.
|
|
357
|
+
|
|
358
|
+
Uninstall does not sign out or remove saved authorizations. Explicit sign-out or
|
|
359
|
+
removal of the original canonical account remains a separate credential mutation,
|
|
360
|
+
not an uninstall cleanup action.
|
|
361
|
+
|
|
330
362
|
## Presentation and quota
|
|
331
363
|
|
|
332
364
|
Models shows current identity and available accounts, Add, Switch and explicit
|
|
@@ -446,7 +478,7 @@ settlement and mutation fences; a read deadline never unlocks a pending mutation
|
|
|
446
478
|
- Races: A refresh versus B selection, admission versus switch, external record
|
|
447
479
|
replacement, settings conflicts, disposal and late identity/quota responses.
|
|
448
480
|
- Behavior: absent-selector compatibility, missing-selector fail-closed,
|
|
449
|
-
duplicate identity, same-account renewal,
|
|
481
|
+
duplicate identity, same-account renewal, missing managed-route blocker, selected
|
|
450
482
|
model missing, revoked permissions and account-bound replay.
|
|
451
483
|
- UI: Models global-default management, Session switching only inside Credits,
|
|
452
484
|
global inheritance/explicit same-value override, frozen running turns,
|
package/lib/client.js
CHANGED
|
@@ -7647,7 +7647,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7647
7647
|
};
|
|
7648
7648
|
//#endregion
|
|
7649
7649
|
//#region package.json
|
|
7650
|
-
var version = "0.1.0-alpha.
|
|
7650
|
+
var version = "0.1.0-alpha.6.dsh.0.2.2.rc.3";
|
|
7651
7651
|
//#endregion
|
|
7652
7652
|
//#region lib/types/diagnostics-client.js
|
|
7653
7653
|
let owner;
|
|
@@ -10171,11 +10171,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10171
10171
|
identityUnavailable: "GitHub account identity unavailable",
|
|
10172
10172
|
accounts: "Account management",
|
|
10173
10173
|
savedAccounts: "Manage saved authorizations",
|
|
10174
|
-
scope: "
|
|
10174
|
+
scope: "Default for GitHub Copilot (multi-account), not the native GitHub Copilot account. Credits can override managed Session turns. Running turns, explicit Session accounts, models and history stay unchanged.",
|
|
10175
10175
|
remoteUnavailable: "Account management is unavailable in this deployment.",
|
|
10176
10176
|
readFailed: "Could not read account information. Retry before changing accounts.",
|
|
10177
10177
|
switchUnavailable: "Account switching is temporarily unavailable. Refresh account information and try again. No running work will be cancelled.",
|
|
10178
|
-
routeBlocked: "Account switching
|
|
10178
|
+
routeBlocked: "Account switching requires the plugin-managed Copilot route to be available.",
|
|
10179
10179
|
evidenceIncomplete: "Account switching is unavailable because route or activity evidence is incomplete.",
|
|
10180
10180
|
authorizationBusy: "Account switching is paused while GitHub authorization is in progress.",
|
|
10181
10181
|
verifyingBusy: "Account switching is paused while the authorized account is being verified.",
|
|
@@ -10191,7 +10191,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10191
10191
|
confirmRemoveTitle: "Confirm account removal",
|
|
10192
10192
|
confirmSwitchTitle: "Confirm account switch",
|
|
10193
10193
|
removePrompt: (account) => `Remove the saved authorization for ${account}? This does not revoke access at GitHub or delete conversations.`,
|
|
10194
|
-
switchPrompt: (account) => `Use ${account} for subsequent Copilot work? Existing selected models may be unavailable, and encrypted reasoning from another account may not replay. History will not be modified.`,
|
|
10194
|
+
switchPrompt: (account) => `Use ${account} for subsequent GitHub Copilot (multi-account) work? The native account stays unchanged. Existing selected models may be unavailable, and encrypted reasoning from another account may not replay. History will not be modified.`,
|
|
10195
10195
|
confirmRemove: "Confirm removal",
|
|
10196
10196
|
confirmSwitch: "Confirm switch",
|
|
10197
10197
|
cancel: "Cancel",
|
|
@@ -10239,11 +10239,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10239
10239
|
identityUnavailable: "GitHub 账号身份暂不可用",
|
|
10240
10240
|
accounts: "账号管理",
|
|
10241
10241
|
savedAccounts: "管理已保存授权",
|
|
10242
|
-
scope: "
|
|
10242
|
+
scope: "此默认账号仅用于 GitHub Copilot (multi-account),不改变原生 GitHub Copilot 账号。Credits 可覆盖托管 Session 后续 turn 的账号。正在运行的 turn、Session 已指定账号、模型和历史保持不变。",
|
|
10243
10243
|
remoteUnavailable: "当前部署无法管理账号。",
|
|
10244
10244
|
readFailed: "无法读取账号信息。更改账号前请重试。",
|
|
10245
10245
|
switchUnavailable: "暂时无法切换账号。请刷新账号信息后重试;不会取消正在运行的工作。",
|
|
10246
|
-
routeBlocked: "
|
|
10246
|
+
routeBlocked: "插件管理的 Copilot 路由不可用,因此无法切换账号。",
|
|
10247
10247
|
evidenceIncomplete: "路由或活动证据不完整,因此无法切换账号。",
|
|
10248
10248
|
authorizationBusy: "GitHub 授权进行期间无法切换账号。",
|
|
10249
10249
|
verifyingBusy: "正在验证已授权账号,暂时无法切换。",
|
|
@@ -10259,7 +10259,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10259
10259
|
confirmRemoveTitle: "确认移除账号",
|
|
10260
10260
|
confirmSwitchTitle: "确认切换账号",
|
|
10261
10261
|
removePrompt: (account) => `移除 ${account} 的已保存授权?这不会撤销 GitHub 端的访问权限,也不会删除对话。`,
|
|
10262
|
-
switchPrompt: (account) => `后续 Copilot 工作使用 ${account}
|
|
10262
|
+
switchPrompt: (account) => `后续 GitHub Copilot (multi-account) 工作使用 ${account}?原生账号保持不变。该账号可能没有当前已选模型,加密推理内容也可能绑定其他账号。不会修改历史记录。`,
|
|
10263
10263
|
confirmRemove: "确认移除",
|
|
10264
10264
|
confirmSwitch: "确认切换",
|
|
10265
10265
|
cancel: "取消",
|
|
@@ -13934,7 +13934,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13934
13934
|
flexWrap: "wrap",
|
|
13935
13935
|
gap: "8px",
|
|
13936
13936
|
minWidth: 0
|
|
13937
|
-
} }, props.embedded === true ?
|
|
13937
|
+
} }, (0, react.createElement)(props.embedded === true ? "span" : "h3", { style: props.embedded === true ? nativeCaptionStyle : nativeHeadingStyle }, "GitHub Copilot (multi-account)"), (0, react.createElement)("span", {
|
|
13938
13938
|
role: "status",
|
|
13939
13939
|
"aria-live": "polite",
|
|
13940
13940
|
style: nativeCaptionStyle
|
|
@@ -13952,7 +13952,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13952
13952
|
} }, view === void 0 && !state.checking || state.error === "COPILOT_AUTHORIZATION_STATUS_FAILED" || uncertain ? actionButton("Retry status", account.retryStatus, state.checking || state.operation !== void 0) : null, !signedIn && !authorizing && view !== void 0 ? actionButton("Sign in with GitHub", account.start, pendingAction || view.writable === false, { title: view.writable === false ? "Credentials are read-only" : void 0 }) : null, actionButton("Manage", () => setManageOpen((open) => !open), false, {
|
|
13953
13953
|
"aria-expanded": manageOpen,
|
|
13954
13954
|
"aria-controls": managementId
|
|
13955
|
-
}))),
|
|
13955
|
+
}))), props.embedded === true ? (0, react.createElement)("p", { style: {
|
|
13956
|
+
...nativeCaptionStyle,
|
|
13957
|
+
margin: "6px 0"
|
|
13958
|
+
} }, props.locale?.startsWith("zh") ? "切换仅影响插件管理的模型;原生 GitHub Copilot 账号保持不变。" : "Switching affects plugin-managed models only; the native GitHub Copilot account stays unchanged.") : null, state.error === void 0 ? null : (0, react.createElement)("p", {
|
|
13956
13959
|
role: "alert",
|
|
13957
13960
|
"data-dsh-github-copilot-account-error": state.error,
|
|
13958
13961
|
style: {
|
|
@@ -14217,7 +14220,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14217
14220
|
role: "note",
|
|
14218
14221
|
"data-dsh-github-copilot-native-add-warning": true,
|
|
14219
14222
|
style: nativeCaptionStyle
|
|
14220
|
-
}, "Use the GitHub Copilot account panel to sign in. With a stored OAuth grant and no named key, the native provider uses the canonical account, not a separately selected plugin account.
|
|
14223
|
+
}, "Use the GitHub Copilot account panel to sign in. With a stored OAuth grant and no named key, the native provider uses the canonical account, not a separately selected plugin account. For account switching, select a model under GitHub Copilot (multi-account). Both routes can coexist.");
|
|
14221
14224
|
return (0, react.createElement)(GitHubCopilotAccountSurface, {
|
|
14222
14225
|
surfaces,
|
|
14223
14226
|
seat,
|