dsh-github-copilot 0.1.0-alpha.5.dsh.0.2.2.rc.3 → 0.1.0-alpha.7.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 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,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.7.dsh.0.2.2.rc.3 (prepared)
4
+
5
+ - Qualify native search and Auto reviewer compatibility using the adapter-owned pi-ai catalog even when the plugin resolves a separate copy (#461).
6
+ - Leave unknown package exports, model protocols and changed route ownership unavailable rather than guessing or changing native settings.
7
+
8
+ ## 0.1.0-alpha.6.dsh.0.2.2.rc.3 (prepared)
9
+
10
+ - Permit managed multi-account switching alongside independently configured native Copilot, retaining credential/turn isolation and the native interface (#470).
11
+ - Label managed models `GitHub Copilot (multi-account)` and preserve native configuration, credentials and selected models on disposal.
12
+ - Clarify that plugin-model and configured plugin-search selections require explicit replacements before uninstall; no automatic fallback or settings rewrite.
13
+
3
14
  ## 0.1.0-alpha.5.dsh.0.2.2.rc.3 (prepared)
4
15
 
5
16
  - 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.5.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.5.dsh.0.2.2.rc.3.tgz
71
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.5.dsh.0.2.2.rc.3/SHA256SUMS
70
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.7.dsh.0.2.2.rc.3.tgz
71
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.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.5.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.5.dsh.0.2.2.rc.3.tgz
78
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.7.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. While the
98
- managed route remains registered, saving the native provider can block
99
- additional-account requests and switching. The native picker is not guaranteed
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.
@@ -110,7 +113,9 @@ Custom endpoint, credential or transport overrides and unproven models remain
110
113
  unavailable. There is no model retry, backend replacement or plugin routing UI.
111
114
  The native Auto reviewer's qualified Copilot Responses requests omit
112
115
  `temperature`; ordinary Chat and native allow/deny/error/cancel behavior remain
113
- unchanged. See [reviewer compatibility](./docs/auto-review-sampling.md).
116
+ unchanged. Qualification uses the native adapter's pi-ai catalog even when
117
+ the plugin resolves a separate copy; missing protocol facts remain unavailable.
118
+ See [reviewer compatibility](./docs/auto-review-sampling.md).
114
119
  The native route's quota and optional identity display use only the canonical OAuth account. If the
115
120
  provider names a credential, endpoint or nonempty headers override, or its configuration
116
121
  cannot be verified, quota is shown as unavailable rather than attributed to a
@@ -118,6 +123,22 @@ different account. This is not proof of request-level billing attribution.
118
123
  Native context-incident diagnostics remain available without the optional
119
124
  managed continuation service; they do not replace DSH's context meter.
120
125
 
126
+ ### Removing the enhancement
127
+
128
+ Unloading the plugin removes its own routes, UI and listeners, not native
129
+ Copilot credentials, configuration, model selections or history. Independently
130
+ configured native **GitHub Copilot** remains usable with its original account.
131
+ Removing the plugin is not signing out; explicit sign-out or removal of the
132
+ original authorization is a different action and can affect native login.
133
+
134
+ Plugin-dependent selections do not become native automatically. Before removal,
135
+ explicitly select native models for Sessions/defaults using
136
+ `github-copilot-preview`. If Web is set to `github-copilot-hosted`, select another
137
+ available backend in native Web settings first. Removing the plugin does not
138
+ rewrite Web settings: a retained missing backend produces
139
+ `WEB_PROVIDER_CONFIGURED_MISSING`, not an automatic fallback. Additional-account
140
+ switching and plugin-specific search require the plugin.
141
+
121
142
  Desktop's native package manager and its bundled CLI have different contracts
122
143
  from a standalone profile. Review the [Desktop CLI evidence](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)
123
144
  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.5.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.5.dsh.0.2.2.rc.3.tgz
59
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.5.dsh.0.2.2.rc.3/SHA256SUMS
58
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.7.dsh.0.2.2.rc.3.tgz
59
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.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.5.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.5.dsh.0.2.2.rc.3.tgz
66
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.7.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.7.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
- 附加账号。在托管路线仍然注册的期间,保存原生 provider 可能阻止附加账号的请求
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 设置中明确选择,并按需启用原生搜索工具;安装不会改变默认后端。
@@ -89,13 +91,26 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
89
91
  自定义端点、凭据或传输覆盖,以及无法确认的模型,保持不可用。没有自动换模型重试、
90
92
  Web 服务替换或旧插件路由 UI。
91
93
  原生 Auto reviewer 经确认的 Copilot Responses 审核请求会省略 `temperature`;
92
- 普通聊天和原生 allow/deny/error/cancel 行为不变。参见
94
+ 普通聊天和原生 allow/deny/error/cancel 行为不变。即使插件解析到另一份 pi-ai,
95
+ 资格判断也使用原生适配器的目录;无法确认协议时仍不可用。参见
93
96
  [审核兼容说明](./docs/auto-review-sampling.md)。
94
97
  原生路线的额度和可选身份显示只使用 canonical OAuth 账号;如果 provider 指定了其他凭据、
95
98
  端点或非空请求头,或无法确认其配置,则显示额度不可用,不会将其他账号的额度归到原生路线。
96
99
  这不证明单次请求实际计费的账号。
97
100
  原生上下文异常诊断不依赖可选的托管续接服务,也不会替代 DSH 的上下文计量。
98
101
 
102
+ ### 移除增强
103
+
104
+ 卸载插件只撤销插件自己的路线、界面和监听,不删除原生 Copilot 凭据、配置、模型选择或历史。
105
+ 已独立配置的原生 **GitHub Copilot** 仍使用原来的账号。卸载不是退出登录;
106
+ 显式退出或移除原始授权是另一项操作,会影响原生登录。
107
+
108
+ 依赖插件的选择不会自动变成原生选择。卸载前,请明确将使用 `github-copilot-preview`
109
+ 的 Session/默认模型切回原生模型。如果 Web 选中了 `github-copilot-hosted`,
110
+ 请先在原生 Web 设置中选择其他可用后端。卸载不会改写 Web 设置;
111
+ 保留已缺失的后端会返回 `WEB_PROVIDER_CONFIGURED_MISSING`,不会自动回退。
112
+ 附加账号切换和插件搜索仍然依赖插件。
113
+
99
114
  Desktop 原生包管理器及其内置 CLI 与独立 profile 的操作约束不同。安装前请阅读
100
115
  [Desktop CLI 证据](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及
101
116
  [独立 profile 维护流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles);
@@ -8,14 +8,14 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.1.0-alpha.5.dsh.0.2.2.rc.3"
11
+ "version": "0.1.0-alpha.7.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.5.dsh.0.2.2.rc.3", "status": "pending" }
18
+ { "core": "0.2.2-rc.3", "version": "0.1.0-alpha.7.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-only-explicit-account-selector",
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": [
@@ -4,10 +4,13 @@
4
4
 
5
5
  The same reviewer-only policy also covers `github-copilot` when the public
6
6
  Loader root, native adapter package callback, configurable-provider directory,
7
- settings revision and exact shared pi-ai 1.3.0 catalog prove a native Responses
8
- route. It requires `purpose: 'auto-review'` and excludes loop-owned requests.
9
- Custom credential, endpoint and compatibility overrides remain native; unknown
10
- models are diagnosed, never assigned a guessed protocol.
7
+ settings revision and the adapter-owned public pi-ai 1.3.0 catalog prove a
8
+ native Responses route. The adapter and plugin may resolve separate pi-ai copies;
9
+ protocol facts come from the adapter's copy, not an assumed equivalent plugin
10
+ catalog. Missing exports or incomplete metadata leave the enhancement
11
+ unavailable with a diagnostic. It requires `purpose: 'auto-review'` and excludes
12
+ loop-owned requests. Custom credential, endpoint and compatibility overrides
13
+ remain native; unknown models are diagnosed, never assigned a guessed protocol.
11
14
 
12
15
  The auxiliary request is cloned without temperature and prepared through public
13
16
  `llm.prepareCall`. Identity and configuration are checked again after awaits,
@@ -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-only route eligibility.
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 first multi-account delivery therefore requires a managed-only profile.
314
- Existing canonical configuration, running/selected legacy routes, or
315
- incomplete route evidence blocks switching with a named diagnostic.
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
- In a managed-only profile with complete route/Session evidence and no admitted
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, canonical route blocker, selected
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.5.dsh.0.2.2.rc.3";
7650
+ var version = "0.1.0-alpha.7.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: "Global default for new inherited turns. Credits can override this Session’s subsequent turns. Running turns, explicit Session accounts, models and conversation history stay unchanged.",
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 is unavailable while a native Copilot route remains configured or selected.",
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: "全局默认账号用于后续继承默认值的新 turn。Credits 可为本 Session 后续 turn 指定账号。正在运行的 turn、Session 已指定账号、模型和对话历史保持不变。",
10242
+ scope: "此默认账号仅用于 GitHub Copilot (multi-account),不改变原生 GitHub Copilot 账号。Credits 可覆盖托管 Session 后续 turn 的账号。正在运行的 turn、Session 已指定账号、模型和历史保持不变。",
10243
10243
  remoteUnavailable: "当前部署无法管理账号。",
10244
10244
  readFailed: "无法读取账号信息。更改账号前请重试。",
10245
10245
  switchUnavailable: "暂时无法切换账号。请刷新账号信息后重试;不会取消正在运行的工作。",
10246
- routeBlocked: "原生 Copilot 路由仍在配置或被选用,因此无法切换账号。",
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 ? null : (0, react.createElement)("h3", { style: nativeHeadingStyle }, "GitHub Copilot"), (0, react.createElement)("span", {
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
- }))), state.error === void 0 ? null : (0, react.createElement)("p", {
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. Saving can block additional-account requests and switching.");
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,