dsh-github-copilot 0.4.0-alpha.58 → 0.4.0-alpha.59
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 +5 -0
- package/README.md +13 -11
- package/README.zh.md +13 -11
- package/deployment-baseline.json +3 -2
- package/docs/session-search-routing.md +8 -0
- package/lib/index.js +25 -33
- package/lib/routed-web.js +1 -1
- package/lib/{search-routing-CncYAO8_.js → search-routing-BhrTbF-V.js} +8 -1
- package/lib/types/config.d.ts +14 -1
- package/lib/types/index.d.ts +2 -2
- package/lib/types/settings-reader.d.ts +5 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.59 (prepared)
|
|
4
|
+
|
|
5
|
+
- Fix unavailable Web search routing on official rc.2 by exposing the plugin's live routing fields through native Config projection (#216). Retain narrow CAS writes, separate legacy override reset, ordinary safety configuration and live snapshot consumption without remounting.
|
|
6
|
+
- Replace the manually populated settings test double with a disposable native Loader/ConfigEditor/SettingsForms fixture covering projection, save, conflict rejection and restart persistence.
|
|
7
|
+
|
|
3
8
|
## 0.4.0-alpha.58 (prepared)
|
|
4
9
|
|
|
5
10
|
- Add compact Auto preference and expandable recorded reasons after the native reply time through the public assistant-actions slot; explicit fixed selection shows Manual, absent evidence shows Selection unknown. Remove the separate Model details candidate and repeated model name; actual models stay in native Usage.
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ A focused DSH companion for GitHub Copilot sign-in, account-aware model profiles
|
|
|
12
12
|
## Current experience
|
|
13
13
|
|
|
14
14
|
- **Account and models:** sign in, inspect account-discovered models, refresh metadata, and manage the account from the native GitHub Copilot row under **Settings → Models**.
|
|
15
|
-
- **Search routing:** choose the primary and fallback search providers under **Plugins → dsh-github-copilot → Details**. The page intentionally exposes only those user-facing choices; protocol probes, timeouts, allowlists, and transport switches are not presented as routine UI. It also keeps the rc.2 lifecycle warning visible before disable/remove/upgrade actions. If the updated routed service is not active yet, the card reports **Restart required** instead of presenting a broken form.
|
|
15
|
+
- **Search routing:** choose the primary and fallback search providers under **Plugins → dsh-github-copilot → Details**. The page intentionally exposes only those user-facing choices; protocol probes, timeouts, allowlists, and transport switches are not presented as routine UI. It also keeps the rc.2 lifecycle warning visible before disable/remove/upgrade actions. If the updated routed service is not active yet, the card reports **Restart required** instead of presenting a broken form.
|
|
16
16
|
- **Usage:** eligible Copilot sessions get an optional **Credits** control beside the composer, with provider-reported billing-cycle data and explicit unavailable/stale states. The quota request alone combines Node default and OS trust roots without disabling certificate verification or relying on Desktop launcher environment inheritance.
|
|
17
17
|
- **Compatibility:** the plugin applies Copilot-only tool-schema, reasoning-presentation, request-budget, and account-model compatibility through published DSH APIs. It does not patch Core or maintain a second model catalog.
|
|
18
18
|
|
|
@@ -20,6 +20,8 @@ A focused DSH companion for GitHub Copilot sign-in, account-aware model profiles
|
|
|
20
20
|
|
|
21
21
|
The screenshot uses the current built Client with synthetic providers in an isolated browser fixture. It demonstrates the shipped configuration surface, not live credentials, account access, search success, or production Desktop activation.
|
|
22
22
|
|
|
23
|
+
On official rc.2, routing is exposed through native live `Config` fields, not a manually registered settings namespace. Saving updates the two routing leaves together without remounting the plugin or changing ordinary safety settings. A legacy search-model override is reset only by its separate explicit action.
|
|
24
|
+
|
|
23
25
|
## Compatibility baselines and qualification targets
|
|
24
26
|
|
|
25
27
|
| DSH surface | Exact source pin | Models UI seam |
|
|
@@ -96,7 +98,7 @@ The Host reads GitHub's internal quota endpoint using the existing canonical OAu
|
|
|
96
98
|
|
|
97
99
|
## Install and sign in
|
|
98
100
|
|
|
99
|
-
The commands below target the package version `0.4.0-alpha.
|
|
101
|
+
The commands below target the package version `0.4.0-alpha.59`. Versioned URLs describe the intended release artifacts, not proof that publication or local activation has completed; use them only once that Release and its checksums are available. Install into the profile you use (replace `web` when targeting another profile):
|
|
100
102
|
|
|
101
103
|
Before installing/updating, unpack the **checksum-verified** archive into a temporary directory and run its read-only composition preflight (replace all paths with absolute paths for the intended profile):
|
|
102
104
|
|
|
@@ -109,10 +111,10 @@ Include any launcher patch files with repeated `--patch /absolute/file` argument
|
|
|
109
111
|
For a standalone named profile only, the supported CLI command is:
|
|
110
112
|
|
|
111
113
|
```sh
|
|
112
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
114
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.59/dsh-github-copilot-0.4.0-alpha.59.tgz
|
|
113
115
|
```
|
|
114
116
|
|
|
115
|
-
For Desktop profiles, use Desktop's native package manager with `dsh-github-copilot@0.4.0-alpha.
|
|
117
|
+
For Desktop profiles, use Desktop's native package manager with `dsh-github-copilot@0.4.0-alpha.59` after the same preflight and only when registry access is permitted. Desktop reserves its `desktop` profile from CLI management. If registry access is blocked or unavailable, stop; the documented [controlled offline CLI procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles) is not a Desktop workaround.
|
|
116
118
|
|
|
117
119
|
Then open the Models UI listed above, find **GitHub Copilot**, select **Sign in**, and complete the GitHub device-code flow. Plugin installation changes the selected profile; activation follows that profile's normal reload/restart policy.
|
|
118
120
|
|
|
@@ -155,11 +157,11 @@ Agents should treat the browser authorization as a human handoff, not as a token
|
|
|
155
157
|
5. Confirm **Signed in** and inspect the automatic discovery result before asking the user to choose a model. Already-signed-in Models opening ensures missing/stale metadata automatically; fresh ready cache makes no request. Use visible **Retry** for errors or **Manage → Refresh models** for an intentional forced update, not routine setup. Status alone does not discover, and login, metadata and successful model calls remain separate evidence.
|
|
156
158
|
6. Use **Sign out** only when the user explicitly asks to disconnect the account. It deletes the Copilot credential record but preserves route settings.
|
|
157
159
|
|
|
158
|
-
GitHub Releases and npm are the default distribution channels for each new version, using the same verified tarball. Pin the version and verify the evidence for the channel used: Release `SHA256SUMS`, and npm `dist.integrity` when installing from npm. Install into Desktop profiles only through Desktop's native package manager; the reserved `desktop` profile is not managed by the DSH CLI. After npm publication is verified, the native manager accepts `dsh-github-copilot@0.4.0-alpha.
|
|
160
|
+
GitHub Releases and npm are the default distribution channels for each new version, using the same verified tarball. Pin the version and verify the evidence for the channel used: Release `SHA256SUMS`, and npm `dist.integrity` when installing from npm. Install into Desktop profiles only through Desktop's native package manager; the reserved `desktop` profile is not managed by the DSH CLI. After npm publication is verified, the native manager accepts `dsh-github-copilot@0.4.0-alpha.59`, not a URL or file. Controlled offline CLI maintenance is documented for standalone named profiles only, never Desktop-managed profiles. Follow the mandatory search-composition preflight, backup, single-writer and post-install checks; do not bypass a corporate registry ban, disable TLS verification or restart without separate approval. See [distribution and publication requirements](./docs/npm-distribution.md).
|
|
161
|
+
|
|
162
|
+
**Desktop package-update and Web-lifecycle boundaries:** the native manager's `restart-required` result for an in-place installed-package upgrade is authoritative and distinct from plugin-bundle removal/re-add behavior. Any disable, removal, or upgrade involving service recomposition (`cordis.patch.yml`, such as the isolated routed web search layer) may leave dependent entries pending until Desktop is fully exited and cold-restarted. If the native manager reports only entries such as `pending (waiting for service: web)` while this plugin already shows **Off**, the requested disabled state has been persisted; cold-restart Desktop instead of repeatedly toggling or reinstalling the plugin. Other errors are not covered by this guidance and must still be investigated.
|
|
159
163
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
A pinned public Loader characterization records that, with the exact bundle IDs and an active provider, staged first-add can leave global `ctx.web` and an active consumer unavailable even after the routed row is enabled. A separate complete cold-loaded Web-routing composition works initially but loses global `ctx.web` and its consumer on removal and remains unavailable after re-add/reconciliation. An earlier temporary harness used alias IDs and no active provider, so its successful final add was not equivalent to the exact bundle fixture. These are synthetic Loader observations; the native warning above is operational evidence, not proof that every pending diagnostic is harmless or that restart recovery has been exercised by the fixture. Do not use bundle removal/re-add as a hot-upgrade workaround. See [the rc.2 lifecycle characterization and bounded public-API finding](./docs/web-lifecycle-rc2.md).
|
|
164
|
+
A pinned public Loader characterization records that, with the exact bundle IDs and an active provider, staged first-add can leave global `ctx.web` and an active consumer unavailable even after the routed row is enabled. A separate complete cold-loaded Web-routing composition works initially but loses global `ctx.web` and its consumer on removal and remains unavailable after re-add/reconciliation. An earlier temporary harness used alias IDs and no active provider, so its successful final add was not equivalent to the exact bundle fixture. These are synthetic Loader observations; the native warning above is operational evidence, not proof that every pending diagnostic is harmless or that restart recovery has been exercised by the fixture. Do not use bundle removal/re-add as a hot-upgrade workaround. See [the rc.2 lifecycle characterization and bounded public-API finding](./docs/web-lifecycle-rc2.md).
|
|
163
165
|
|
|
164
166
|
**Host TLS trust boundary:** this plugin adds system roots only to its quota request; it does not change Desktop process trust, sign-in, models, search or other requests. A correctly environmented Desktop launch previously restored quota, while a recovery launch without the inherited process variable caused it to regress despite HKCU retaining `NODE_USE_SYSTEM_CA=1`; normal relaunch restored it. The quota fix avoids this launcher dependency after an authorized upgrade and reload. No live Desktop profile, trust store or process is changed by the package alone.
|
|
165
167
|
|
|
@@ -428,8 +430,8 @@ Report the published Release URL, version, tag/commit and verified asset SHA-256
|
|
|
428
430
|
`package.json` declares public npm distribution. A release tag must equal `v${package.json.version}`. Versions use standard SemVer prerelease labels (`alpha`, `beta`, or `rc`), each with its matching npm dist-tag; only stable versions use `latest`. The Release workflow performs the frozen install and complete verification gate, packs once (or recovers the original archive on retry), verifies `SHA256SUMS`, publishes the immutable GitHub Release and then publishes those same bytes to npm through OIDC. Either channel failing means delivery is incomplete. First package creation needs an authorized maintainer; staging requires an existing package and is not a first-package bootstrap. Historical releases are not republished.
|
|
429
431
|
|
|
430
432
|
```sh
|
|
431
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
432
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
433
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.59/dsh-github-copilot-0.4.0-alpha.59.tgz
|
|
434
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.59/SHA256SUMS
|
|
433
435
|
sha256sum --check SHA256SUMS
|
|
434
436
|
```
|
|
435
437
|
|
|
@@ -437,7 +439,7 @@ PowerShell can verify the same two downloaded files with:
|
|
|
437
439
|
|
|
438
440
|
```powershell
|
|
439
441
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
440
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
442
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.59.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
441
443
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
442
444
|
```
|
|
443
445
|
|
package/README.zh.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
## 当前体验
|
|
13
13
|
|
|
14
14
|
- **账号与模型:**在 **设置 → 模型** 的原生 GitHub Copilot 行内完成登录、查看账号发现模型、刷新元数据及账号管理。
|
|
15
|
-
- **搜索路由:**在 **插件 → dsh-github-copilot → 详情**选择主搜索 Provider 与兜底 Provider。页面只保留用户真正需要的两项选择,不再把协议探测、超时、白名单或传输开关作为日常配置暴露;同时会在停用/移除/升级前常驻显示 rc.2 生命周期提示。更新后的路由服务尚未激活时,卡片会明确显示 **需要重启生效(Restart required)**,而不是继续展示无法使用的表单。
|
|
15
|
+
- **搜索路由:**在 **插件 → dsh-github-copilot → 详情**选择主搜索 Provider 与兜底 Provider。页面只保留用户真正需要的两项选择,不再把协议探测、超时、白名单或传输开关作为日常配置暴露;同时会在停用/移除/升级前常驻显示 rc.2 生命周期提示。更新后的路由服务尚未激活时,卡片会明确显示 **需要重启生效(Restart required)**,而不是继续展示无法使用的表单。
|
|
16
16
|
- **用量:**符合条件的 Copilot 会话会在输入框旁显示可选的 **Credits / 额度** 控件,展示供应方明确返回的计费周期数据,并如实区分不可用与历史快照。仅额度请求组合 Node 默认证书与系统信任根,无需依赖 Desktop launcher 的环境变量继承,且保持 TLS 验签。
|
|
17
17
|
- **兼容处理:**插件通过 DSH 已发布公开接口提供 Copilot 专用 Tool Schema、Thinking 展示、请求预算及账号模型兼容,不修改 Core,也不维护第二套模型目录。
|
|
18
18
|
|
|
@@ -20,10 +20,12 @@
|
|
|
20
20
|
|
|
21
21
|
截图来自当前构建 Client 的隔离浏览器 fixture,使用合成 Provider。它只证明已发布配置界面的形态,不证明真实凭据、账号权限、搜索成功或当前 Desktop 已加载。
|
|
22
22
|
|
|
23
|
-
> 当前文档与安装命令对应版本 `0.4.0-alpha.
|
|
23
|
+
> 当前文档与安装命令对应版本 `0.4.0-alpha.59`。源码、发布制品、已安装版本和实际加载运行时需分别确认;本地升级和中断会话的重启仍需用户批准。
|
|
24
24
|
|
|
25
25
|
Web search 路由现在优先显示在插件详情页;宿主不支持详情页插槽时才回退到 **设置 → 模型**或独立 Web search section。搜索子 Fiber 仍独立等待 Remote,不影响账号控件和既有搜索安全检查。
|
|
26
26
|
|
|
27
|
+
官方 rc.2 通过原生可实时修改的 `Config` 字段提供路由设置,而不是手工注册设置 namespace。保存会一次更新两个路由叶子,不重新挂载插件,也不修改普通安全设置。旧搜索模型覆盖值仍只能通过独立的显式操作重置。
|
|
28
|
+
|
|
27
29
|
## 兼容基线与待验收目标
|
|
28
30
|
|
|
29
31
|
| DSH 表面 | 精确源码 pin | Models UI 接口 |
|
|
@@ -111,10 +113,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
111
113
|
仅对独立的具名 profile,获准且网络可用时,可通过受支持的 CLI 命令安装:
|
|
112
114
|
|
|
113
115
|
```sh
|
|
114
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
116
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.59/dsh-github-copilot-0.4.0-alpha.59.tgz
|
|
115
117
|
```
|
|
116
118
|
|
|
117
|
-
Desktop profile 请在完成同样的预检后,使用 Desktop 原生包管理器安装 `dsh-github-copilot@0.4.0-alpha.
|
|
119
|
+
Desktop profile 请在完成同样的预检后,使用 Desktop 原生包管理器安装 `dsh-github-copilot@0.4.0-alpha.59`。Desktop 保留 `desktop` profile,CLI 不负责管理。若 registry 被公司封禁或不可用,不要更换网络绕行或使用离线 CLI;请停止。[受控离线 CLI 流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)仅适用于独立具名 profile,不适用于 Desktop。
|
|
118
120
|
|
|
119
121
|
随后打开上表对应的 Models UI,找到 **GitHub Copilot**,点击 **Sign in** 并完成 GitHub device-code 流程。安装会修改指定 profile;是否立即激活取决于该 profile 的常规 reload/restart 策略。
|
|
120
122
|
|
|
@@ -157,11 +159,11 @@ Agent 应把浏览器授权视为需要用户完成的 handoff,而不是自行
|
|
|
157
159
|
5. 确认 **Signed in** 并检查自动发现结果,再请用户选择模型。已登录时打开 Models 会自动确保缺失/过期元数据,新鲜 ready 缓存不发请求。错误可使用 **Retry**,有意强制更新时使用 **Manage → Refresh models**,不作为常规设置步骤。状态读取本身不发现;登录、元数据与真实调用成功是独立证据。
|
|
158
160
|
6. 只有用户明确要求断开账号时才使用 **Sign out**;它会删除 Copilot credential record,但保留 route settings。
|
|
159
161
|
|
|
160
|
-
每个新版本默认同时分发到 GitHub Releases 和 npm,两个渠道使用同一份已验证 tarball。应固定版本并核对所用渠道的证据:Release 的 `SHA256SUMS`;从 npm 安装时另核对 `dist.integrity`。Desktop profile 只能通过原生 Desktop 包管理器安装;获准且 registry 可用时输入 `dsh-github-copilot@0.4.0-alpha.
|
|
162
|
+
每个新版本默认同时分发到 GitHub Releases 和 npm,两个渠道使用同一份已验证 tarball。应固定版本并核对所用渠道的证据:Release 的 `SHA256SUMS`;从 npm 安装时另核对 `dist.integrity`。Desktop profile 只能通过原生 Desktop 包管理器安装;获准且 registry 可用时输入 `dsh-github-copilot@0.4.0-alpha.59`,不是 URL 或本地文件。Desktop 保留 `desktop` profile,不能通过 DSH CLI 管理。受控离线 CLI 维护仅适用于独立具名 profile,不得作为 Desktop 安装绕行方案。[双渠道发布与 OIDC 要求](./docs/npm-distribution.md)保持不变。
|
|
163
|
+
|
|
164
|
+
**Desktop package 更新与 Web 生命周期边界:**原生 manager 对已安装 package 原位升级返回的 `restart-required` 是权威结果,与移除/重加 plugin bundle 的行为是两个不同问题。涉及服务重编排补丁(`cordis.patch.yml`,如本插件所采用的隔离路由 Web 搜索层)的停用、移除或升级,可能让依赖条目保持 pending,直到完全退出并冷重启 Desktop。若原生 manager 只报告类似 `pending (waiting for service: web)` 的条目,同时本插件已经显示 **Off**,说明请求的停用状态已经落盘;请冷重启 Desktop,不要反复切换或重装插件。其它错误不属于此提示范围,仍需单独排查。
|
|
161
165
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
pinned public Loader characterization 记录了:使用 bundle 的精确 ID 且 provider 已激活时,分阶段首次添加可能在 routed row 启用后仍令全局 `ctx.web` 和 consumer 不可用;另一独立序列从完整冷加载且正常工作的 Web-routing composition 开始,移除后全局 `ctx.web` 与 consumer 不可用,重加/重试 reconciliation 仍未恢复。较早的临时 harness 使用别名 ID 且没有 active provider,因此其最终添加成功并不等同于精确 bundle fixture。这些是合成 Loader 观察;上述原生 warning 属于运行证据,不代表所有 pending 诊断都可忽略,也不代表 fixture 已证明重启恢复。不要用移除/重加 bundle 作为热升级绕行。详见 [rc.2 生命周期 characterization 与有限的 public API 结论](./docs/web-lifecycle-rc2.md)。
|
|
166
|
+
pinned public Loader characterization 记录了:使用 bundle 的精确 ID 且 provider 已激活时,分阶段首次添加可能在 routed row 启用后仍令全局 `ctx.web` 和 consumer 不可用;另一独立序列从完整冷加载且正常工作的 Web-routing composition 开始,移除后全局 `ctx.web` 与 consumer 不可用,重加/重试 reconciliation 仍未恢复。较早的临时 harness 使用别名 ID 且没有 active provider,因此其最终添加成功并不等同于精确 bundle fixture。这些是合成 Loader 观察;上述原生 warning 属于运行证据,不代表所有 pending 诊断都可忽略,也不代表 fixture 已证明重启恢复。不要用移除/重加 bundle 作为热升级绕行。详见 [rc.2 生命周期 characterization 与有限的 public API 结论](./docs/web-lifecycle-rc2.md)。
|
|
165
167
|
|
|
166
168
|
**Host TLS trust 边界:**本插件只为额度请求添加系统信任根,不修改 Desktop 进程级信任、登录、模型、搜索或其他请求。之前带有正确环境变量的 Desktop 启动让额度恢复;后续恢复脚本启动没有继承进程变量,尽管 HKCU 保留 `NODE_USE_SYSTEM_CA=1`,额度仍再次失败;正常手动启动后又恢复。更新后的插件在获准升级和重新加载后消除额度请求对该继承链的依赖;仅发布包不会修改当前 Desktop profile、trust store 或进程。
|
|
167
169
|
|
|
@@ -439,8 +441,8 @@ node scripts/agent.mjs attribution "DeepSeek Harness (DSH)"
|
|
|
439
441
|
`package.json` 声明公开 npm 分发。Release tag 必须严格等于 `v${package.json.version}`。预发布使用 `alpha`、`beta` 或 `rc` 及对应 npm dist-tag,只有稳定版使用 `latest`。Release workflow 执行 frozen install 和完整门禁,只打包一次(重试恢复原始归档),验证 `SHA256SUMS`,发布不可变 GitHub Release,再通过 OIDC 将同一份字节发布到 npm。任一渠道失败都表示交付未完成。首次建包须由获准环境中的维护者完成;staging 要求包已存在,不能代替首次建包。不会批量补发历史版本。
|
|
440
442
|
|
|
441
443
|
```sh
|
|
442
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
443
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
444
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.59/dsh-github-copilot-0.4.0-alpha.59.tgz
|
|
445
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.59/SHA256SUMS
|
|
444
446
|
sha256sum --check SHA256SUMS
|
|
445
447
|
```
|
|
446
448
|
|
|
@@ -448,7 +450,7 @@ PowerShell 可以对已下载的同一组文件执行:
|
|
|
448
450
|
|
|
449
451
|
```powershell
|
|
450
452
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
451
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
453
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.59.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
452
454
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
453
455
|
```
|
|
454
456
|
|
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.59"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
},
|
|
253
253
|
"sharedPeerDependencies": {
|
|
254
254
|
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
255
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
255
|
+
"@deepseek-ai/schemastery": "^3.18.4"
|
|
256
256
|
},
|
|
257
257
|
"clientExternals": {
|
|
258
258
|
"react": {
|
|
@@ -399,6 +399,7 @@
|
|
|
399
399
|
{"file": "tests/scripts/search-settings-contract.test.mjs", "name": "stale routing revisions fail CAS and preserve the last successful settings"},
|
|
400
400
|
{"file": "tests/scripts/search-settings-contract.test.mjs", "name": "hidden legacy searchModel and searchRouting share namespace revision and coordinate CAS"},
|
|
401
401
|
{"file": "tests/scripts/search-settings-contract.test.mjs", "name": "pinned generated Client mutate codecs accept routing ops and a flat namespace revision"},
|
|
402
|
+
{"file": "tests/scripts/search-settings-contract.test.mjs", "name": "native routing edits preserve ordinary config, reject invalid paths and persist across restart"},
|
|
402
403
|
{"file": "tests/inline/apply.spec.ts", "name": "automatically resolves account-owned Responses candidates for %s without a search model"},
|
|
403
404
|
{"file": "tests/inline/apply.spec.ts", "name": "bounds automatic proof to three eligible candidates in deterministic id order"},
|
|
404
405
|
{"file": "tests/inline/apply.spec.ts", "name": "does not discover or probe allowlist-excluded automatic search"}
|
|
@@ -32,6 +32,14 @@ Legacy direct callers without the facade capture seam keep the historical `src/s
|
|
|
32
32
|
|
|
33
33
|
## Search directory and settings UI
|
|
34
34
|
|
|
35
|
+
Official rc.2 `SettingsForms` discovers active Loader entries and projects only volatile `Config` fields. There is no `settings.register()` or `installSettingsSection()` API. The plugin marks `searchRouting`, the hidden legacy `searchModel`, and the hidden restoration journal `temporaryRouteBackup` as volatile using Schemastery 3.18.4 or newer. The Host keeps their native references and reads a plain snapshot per operation; it must not reparse those snapshots through the live schema or freeze them at activation. Ordinary safety and transport fields remain ordinary configuration. Settings writes remain native, narrow, revision-checked profile edits.
|
|
36
|
+
|
|
37
|
+
The settings contract regression uses the real Loader, ConfigEditor and SettingsForms with a disposable profile and the plugin's actual Config, rather than a pre-registered in-memory namespace. It covers discovery, two-leaf writes, unchanged fiber identity, stale CAS rejection, invalid/non-live field rejection, explicit legacy override reset and persistence across a fresh boot. It does not exercise the Host SettingsController over a network Gateway or access live credentials.
|
|
38
|
+
|
|
39
|
+
Correction to the historical evidence below: the previous settings contract used a `MemorySettings` test double, not the real Settings service. It therefore could not detect missing Config projection. For #216, the updated contract passes against isolated unchanged Desktop rc.2 artifacts; the normal frozen development install is still blocked by missing rc.2 packages in the configured mirror. The development graph now uses Cordis 4.0.4 and a shared Schemastery 3.18.4 resolution: the old Settings peer selected 3.18.2, whose global declarations incorrectly merged with the live-field schema types. The lockfile was regenerated with pnpm on a GitHub runner, not patched dependency artifacts. Neither the supplemental run nor historical full-gate results replace required CI on the final revision.
|
|
40
|
+
|
|
41
|
+
The five source-native settings cases and 198 Config/inline Host tests also pass against the unchanged GitHub commit `639ed015397290b3745d163aafe02ffee4aa3f84`, using a supplemental public-export resolver and TypeScript 6.0.3 without compiling or editing Core. Generated Client codec cases remain published-artifact evidence, not source-mode cases. The source-mode no-emit check reports no plugin-file diagnostics but still has upstream/generated-Remote declaration errors, so it is not a clean full typecheck. The frozen source dependency closure currently stops at the configured mirror's missing `@smithy/signature-v4@5.7.4` tarball. These are bounded validation results, not publication or live Desktop acceptance.
|
|
42
|
+
|
|
35
43
|
Both selectors use `githubCopilotSearchRouting.providers()`, a separate strict Remote exposed through the public `TypertRemoteService` binding. Its catalog contains only fresh IDs from registrations observed by this facade, not Core private registry objects or hidden/direct-original registrations. The read invokes no `available()`, auth, discovery or search: availability is contextual and checked on actual use. A missing facade yields `supported: false`, not a static example list. Newly registered IDs appear on reload; removed saved entries remain visibly unavailable. Primary adds Auto; **Fallback provider** adds None while retaining the stored `defaultSearchProvider` key. The ordinary card has no model selector. Settings and routing Remote faces are captured once at UI registration: real pinned Cordis/Client Gateway namespace reads return fresh traced proxies, so looking them up in each render would change effect dependencies and reload drafts. Models remain provider internals, not additional search-provider entries.
|
|
36
44
|
|
|
37
45
|
Focused postbuild checks must run after `pnpm build`. `tests/search-provider-catalog.spec.ts` checks registration lifecycle, duplicate handling and read purity; `tests/scripts/search-provider-gateway.test.mjs` drives the real Connection Fetch/Gateway against the packaged search-catalog facade/controller. `tests/web-search-routing-card.spec.ts` covers both selectors, unavailable catalogs, one routing CAS without a model prerequisite, explicit separate override reset, safe conflict messages, legacy choices and stale generations. `tests/client-search-inject.spec.ts` mounts the actual Client callback with real React DOM and Cordis in jsdom, checking draft and pending-save continuity through parent rerenders for both footer and legacy section slots; its Remote transport remains synthetic. `tests/scripts/search-settings-contract.test.mjs` uses the real pinned Settings service with in-memory persistence and the unchanged generated Client codecs: two-leaf routing writes, stale CAS, writable hidden/empty legacy overrides and the flat returned namespace revision. It also mounts the real pinned Client Gateway/Remote descriptors to verify traced proxy identity, without RPC or streams. It does **not** execute the actual Host SettingsController write through Gateway. An isolated Edge reproduction with the old alpha.28 built card and actual registration callback, backed by synthetic fresh Remote getters, reproduced both a filled-model draft resetting on a parent render and a completed model write whose subsequent routing write was abandoned on a parent render. This establishes a reproducible plugin lifecycle defect, not a definitive diagnosis of the user's production runtime. The corrected built card passed the same isolated Edge rerender/save/reload flow without a model field or account-status RPC, plus explicit legacy override reset, safe CAS conflict recovery, read-only state, dark/light desktop and 375px mobile captures, and a 200% zoom overflow check. These fixtures are not live account, installed Desktop or paid model evidence. The final local `pnpm verify` passed with one test worker: 62 Vitest files, 1553 passing tests and 2 expected skips, 273 tooling tests, source/test typechecks, baseline checks, build and package smoke. An earlier unrestricted parallel run hit three import-time test timeouts; the unchanged tests passed with bounded concurrency, without extending timeouts or skipping assertions. Remote CI, release publication and loaded-runtime acceptance remain separate pending checks.
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as GITHUB_COPILOT_AUTO_EFFICIENCY_MODEL_ID, C as currentSearchInitiator, D as readSettingsNamespace, E as readConfigValue, F as GITHUB_COPILOT_PROVIDER_ID, I as autoModelPreference, M as GITHUB_COPILOT_AUTO_MODEL_ID, N as GITHUB_COPILOT_CREDENTIAL_KEY, O as isPluginPreviewProvider, P as GITHUB_COPILOT_PREVIEW_PROVIDER_ID, S as currentChatRoute, T as onSettingsNamespaceUpdated, _ as RESPONSES_WEB_SEARCH_TOOL_TYPE, a as COPILOT_HOSTED_SEARCH_PROVIDER_ID, b as candidatesForRoute, c as abortable$1, d as readBounded, f as applyRequestAuth, h as ANTHROPIC_WEB_SEARCH_TOOL_TYPE, i as describeSearchBackend, j as GITHUB_COPILOT_AUTO_INTELLIGENCE_MODEL_ID, k as readCopilotCatalog, l as isAbortError, m as providerRequestHeaders, n as routeSessionSearch, o as GITHUB_COPILOT_HOSTED_SEARCH_PROVIDER_ID, p as normalizeRequestAuth, r as DescribedSearchFallbackError, s as createTraditionalSearchProvider, t as isCopilotSearchSelection, u as providerErrorMessage, v as SearchPlan, w as currentSearchSelection, x as sameCandidates, y as WEB_SEARCH_TOOL_TYPE } from "./search-routing-BhrTbF-V.js";
|
|
2
2
|
import AuthorizationService from "@deepseek-ai/dsh-authorization";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as dshScope from "@deepseek-ai/dsh-scope";
|
|
@@ -13,7 +13,6 @@ import { getBuiltinModels } from "@earendil-works/pi-ai/providers/all";
|
|
|
13
13
|
import * as dshLlm from "@deepseek-ai/dsh-llm";
|
|
14
14
|
import { CONTEXT_WINDOW_EXCEEDED_CODE, LlmError, ReasoningEffortId, attributionHeaders, boundContextSummary, callConfigEquals, contentHasImage, createUserMessage, isAgentLoopRequest, resolveImageAttachmentAccess, resolveRetryPolicy } from "@deepseek-ai/dsh-llm";
|
|
15
15
|
import { WebError } from "@deepseek-ai/dsh-web";
|
|
16
|
-
import * as dshSettings from "@deepseek-ai/dsh-settings";
|
|
17
16
|
import { credentialRef } from "@deepseek-ai/dsh-credentials";
|
|
18
17
|
import { Config as Config$1, PiAiAdapter } from "@deepseek-ai/dsh-llm-pi-ai";
|
|
19
18
|
import { estimateContextTokens, estimateMessageTokens } from "@earendil-works/pi-ai/utils/estimate";
|
|
@@ -1647,7 +1646,7 @@ let GitHubCopilotUsageController = (() => {
|
|
|
1647
1646
|
//#endregion
|
|
1648
1647
|
//#region package.json
|
|
1649
1648
|
var name$1 = "dsh-github-copilot";
|
|
1650
|
-
var version = "0.4.0-alpha.
|
|
1649
|
+
var version = "0.4.0-alpha.59";
|
|
1651
1650
|
//#endregion
|
|
1652
1651
|
//#region lib/types/probe.js
|
|
1653
1652
|
/**
|
|
@@ -2066,6 +2065,15 @@ const WebSearchRoutingConfigSchema = z.object({
|
|
|
2066
2065
|
* configurable through the settings seam; defaults follow the chat route.
|
|
2067
2066
|
* @module dsh-github-copilot/config
|
|
2068
2067
|
*/
|
|
2068
|
+
/** Keep native live references at the boundary; request code consumes plain snapshots. */
|
|
2069
|
+
function readInlineConfig(config) {
|
|
2070
|
+
return {
|
|
2071
|
+
...config,
|
|
2072
|
+
searchModel: readConfigValue(config.searchModel),
|
|
2073
|
+
searchRouting: readConfigValue(config.searchRouting),
|
|
2074
|
+
temporaryRouteBackup: readConfigValue(config.temporaryRouteBackup)
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2069
2077
|
/** Longest timer either bound may take; `setTimeout`/`AbortSignal.timeout` refuse more. */
|
|
2070
2078
|
const MAX_TIMEOUT_MS = 2147483647;
|
|
2071
2079
|
/** Schema of the plugin's settings section. */
|
|
@@ -2084,9 +2092,9 @@ const Config = z.object({
|
|
|
2084
2092
|
compactionReasoning: z.union(["prefer-low", "preserve"]).default(DEFAULT_REQUEST_BUDGET_POLICY.compactionReasoning),
|
|
2085
2093
|
routeWebSearch: z.boolean().default(true),
|
|
2086
2094
|
searchFallback: z.union(["none", "deepseek"]).default("deepseek"),
|
|
2087
|
-
searchModel: z.string().hidden(),
|
|
2088
|
-
searchRouting: WebSearchRoutingConfigSchema.default({}),
|
|
2089
|
-
temporaryRouteBackup: z.string().hidden()
|
|
2095
|
+
searchModel: z.string().hidden().volatile(),
|
|
2096
|
+
searchRouting: WebSearchRoutingConfigSchema.default({}).volatile(),
|
|
2097
|
+
temporaryRouteBackup: z.string().hidden().volatile()
|
|
2090
2098
|
});
|
|
2091
2099
|
//#endregion
|
|
2092
2100
|
//#region lib/types/search-tool-routing.js
|
|
@@ -3680,12 +3688,6 @@ async function* inlineStream(request, candidate, hooks, cfg) {
|
|
|
3680
3688
|
}
|
|
3681
3689
|
//#endregion
|
|
3682
3690
|
//#region lib/types/deepseek-search-fallback.js
|
|
3683
|
-
function isVolatileSetting(value) {
|
|
3684
|
-
return typeof value === "object" && value !== null && typeof Reflect.get(value, "get") === "function";
|
|
3685
|
-
}
|
|
3686
|
-
function readConfigValue(value) {
|
|
3687
|
-
return isVolatileSetting(value) ? value.get() : value;
|
|
3688
|
-
}
|
|
3689
3691
|
var InvalidFallbackBase = class extends WebError {
|
|
3690
3692
|
constructor() {
|
|
3691
3693
|
super("DeepSeek fallback requires an HTTP(S) API base URL without userinfo, query or fragment", "WEB_PROVIDER_UNAVAILABLE");
|
|
@@ -7387,31 +7389,21 @@ var ConfiguredSearchProofInvalidated = class extends WebError {
|
|
|
7387
7389
|
super("configured Copilot search owner or account proof invalidated", "WEB_PROVIDER_UNAVAILABLE");
|
|
7388
7390
|
}
|
|
7389
7391
|
};
|
|
7390
|
-
function
|
|
7391
|
-
|
|
7392
|
-
if (legacyInstaller !== void 0) {
|
|
7393
|
-
legacyInstaller(ctx, namespace, schema, config, hooks);
|
|
7394
|
-
return;
|
|
7395
|
-
}
|
|
7396
|
-
ctx.inject(["settings"], () => {
|
|
7392
|
+
function observeSettingsNamespace(ctx, namespace, config, hooks) {
|
|
7393
|
+
ctx.inject(["settings"], (scope) => {
|
|
7397
7394
|
hooks.setSource(() => {
|
|
7398
|
-
const value = readSettingsNamespace(
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7395
|
+
const value = readSettingsNamespace(scope, namespace);
|
|
7396
|
+
const base = readInlineConfig(config);
|
|
7397
|
+
if (typeof value !== "object" || value === null) return base;
|
|
7398
|
+
return {
|
|
7399
|
+
...base,
|
|
7402
7400
|
...value
|
|
7403
7401
|
};
|
|
7404
|
-
if (typeof schema === "function") try {
|
|
7405
|
-
return schema(merged);
|
|
7406
|
-
} catch {
|
|
7407
|
-
return merged;
|
|
7408
|
-
}
|
|
7409
|
-
return merged;
|
|
7410
7402
|
});
|
|
7411
|
-
const dispose = onSettingsNamespaceUpdated(
|
|
7403
|
+
const dispose = onSettingsNamespaceUpdated(scope, (changed) => {
|
|
7412
7404
|
if (changed === namespace || namespace === "github-copilot" && changed === "github-copilot-search-routing") hooks.onChange();
|
|
7413
7405
|
});
|
|
7414
|
-
|
|
7406
|
+
scope.effect(() => dispose);
|
|
7415
7407
|
});
|
|
7416
7408
|
}
|
|
7417
7409
|
/**
|
|
@@ -7458,7 +7450,7 @@ function ensureAuthorization(ctx) {
|
|
|
7458
7450
|
/** Activate the integration only after the complete DSH service contract is available. */
|
|
7459
7451
|
function activate(ctx, config) {
|
|
7460
7452
|
assertDshCompatibility(ctx);
|
|
7461
|
-
let current = () => config;
|
|
7453
|
+
let current = () => readInlineConfig(config);
|
|
7462
7454
|
const readRouting = () => {
|
|
7463
7455
|
const rawRouting = readSettingsNamespace(ctx, GITHUB_COPILOT_SETTINGS_NAMESPACE)?.searchRouting;
|
|
7464
7456
|
if (rawRouting && (rawRouting.searchProvider !== void 0 || rawRouting.defaultSearchProvider !== void 0 || rawRouting.searchMode !== void 0)) return rawRouting;
|
|
@@ -7852,7 +7844,7 @@ function activate(ctx, config) {
|
|
|
7852
7844
|
canContinue
|
|
7853
7845
|
})).result;
|
|
7854
7846
|
} });
|
|
7855
|
-
|
|
7847
|
+
observeSettingsNamespace(ctx, GITHUB_COPILOT_SETTINGS_NAMESPACE, config, {
|
|
7856
7848
|
setSource: (source) => {
|
|
7857
7849
|
current = source;
|
|
7858
7850
|
},
|
package/lib/routed-web.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as currentSearchInitiator,
|
|
1
|
+
import { C as currentSearchInitiator, O as isPluginPreviewProvider, t as isCopilotSearchSelection, w as currentSearchSelection } from "./search-routing-BhrTbF-V.js";
|
|
2
2
|
import { WebError, WebRuntime } from "@deepseek-ai/dsh-web";
|
|
3
3
|
//#region lib/types/routed-web.js
|
|
4
4
|
/**
|
|
@@ -54,6 +54,13 @@ function isPluginPreviewProvider(ctx, provider) {
|
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region lib/types/settings-reader.js
|
|
57
|
+
function isLiveSetting(value) {
|
|
58
|
+
return typeof value === "object" && value !== null && typeof Reflect.get(value, "get") === "function";
|
|
59
|
+
}
|
|
60
|
+
/** Capture a native volatile field for one operation, or retain a plain fixture value. */
|
|
61
|
+
function readConfigValue(value) {
|
|
62
|
+
return isLiveSetting(value) ? value.get() : value;
|
|
63
|
+
}
|
|
57
64
|
function isRecord(value) {
|
|
58
65
|
return typeof value === "object" && value !== null;
|
|
59
66
|
}
|
|
@@ -795,4 +802,4 @@ async function routeSessionSearch(request, signal, deps) {
|
|
|
795
802
|
};
|
|
796
803
|
}
|
|
797
804
|
//#endregion
|
|
798
|
-
export {
|
|
805
|
+
export { GITHUB_COPILOT_AUTO_EFFICIENCY_MODEL_ID as A, currentSearchInitiator as C, readSettingsNamespace as D, readConfigValue as E, GITHUB_COPILOT_PROVIDER_ID as F, autoModelPreference as I, GITHUB_COPILOT_AUTO_MODEL_ID as M, GITHUB_COPILOT_CREDENTIAL_KEY$1 as N, isPluginPreviewProvider as O, GITHUB_COPILOT_PREVIEW_PROVIDER_ID as P, currentChatRoute as S, onSettingsNamespaceUpdated as T, RESPONSES_WEB_SEARCH_TOOL_TYPE as _, COPILOT_HOSTED_SEARCH_PROVIDER_ID as a, candidatesForRoute as b, abortable as c, readBounded as d, applyRequestAuth as f, GITHUB_COPILOT_CREDENTIAL_KEY as g, ANTHROPIC_WEB_SEARCH_TOOL_TYPE as h, describeSearchBackend as i, GITHUB_COPILOT_AUTO_INTELLIGENCE_MODEL_ID as j, readCopilotCatalog as k, isAbortError as l, providerRequestHeaders as m, routeSessionSearch as n, GITHUB_COPILOT_HOSTED_SEARCH_PROVIDER_ID as o, normalizeRequestAuth as p, DescribedSearchFallbackError as r, createTraditionalSearchProvider as s, isCopilotSearchSelection as t, providerErrorMessage as u, SearchPlan as v, currentSearchSelection as w, sameCandidates as x, WEB_SEARCH_TOOL_TYPE as y };
|
package/lib/types/config.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import z from '@deepseek-ai/schemastery';
|
|
8
8
|
import type { RequestBudgetPolicy } from './request-budget.ts';
|
|
9
9
|
import type { WebSearchRoutingConfig } from './web-search-routing-config.ts';
|
|
10
|
+
import type { LiveSetting } from './settings-reader.ts';
|
|
10
11
|
/** Plugin configuration. Defaults make the current chat route decide. */
|
|
11
12
|
export interface InlineConfig {
|
|
12
13
|
/** Master switch; false sends every request down the normal adapter path. */
|
|
@@ -47,6 +48,18 @@ export interface InlineConfig {
|
|
|
47
48
|
/** Internal JSON backup of route leaves temporarily owned by the GPT-6 overlay. */
|
|
48
49
|
temporaryRouteBackup?: string;
|
|
49
50
|
}
|
|
51
|
+
export type LiveInlineConfig = Omit<InlineConfig, 'searchModel' | 'searchRouting' | 'temporaryRouteBackup'> & {
|
|
52
|
+
searchModel?: string | LiveSetting<string | undefined>;
|
|
53
|
+
searchRouting?: WebSearchRoutingConfig | LiveSetting<WebSearchRoutingConfig | undefined>;
|
|
54
|
+
temporaryRouteBackup?: string | LiveSetting<string | undefined>;
|
|
55
|
+
};
|
|
56
|
+
export type ResolvedInlineConfig = Omit<InlineConfig, 'searchModel' | 'searchRouting' | 'temporaryRouteBackup'> & {
|
|
57
|
+
searchModel: LiveSetting<string | undefined>;
|
|
58
|
+
searchRouting: LiveSetting<WebSearchRoutingConfig>;
|
|
59
|
+
temporaryRouteBackup: LiveSetting<string | undefined>;
|
|
60
|
+
};
|
|
61
|
+
/** Keep native live references at the boundary; request code consumes plain snapshots. */
|
|
62
|
+
export declare function readInlineConfig(config: LiveInlineConfig): InlineConfig;
|
|
50
63
|
/** Schema of the plugin's settings section. */
|
|
51
|
-
export declare const Config: z<InlineConfig>;
|
|
64
|
+
export declare const Config: z<Partial<InlineConfig>, ResolvedInlineConfig>;
|
|
52
65
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Context } from '@deepseek-ai/cordis';
|
|
9
9
|
import type { SettingsNamespace } from '@deepseek-ai/dsh-settings';
|
|
10
|
-
import type {
|
|
10
|
+
import type { LiveInlineConfig } from './config.ts';
|
|
11
11
|
export { COPILOT_HOSTED_SEARCH_PROVIDER_ID, GITHUB_COPILOT_HOSTED_SEARCH_PROVIDER_ID, } from './traditional-search.ts';
|
|
12
12
|
/** Cordis plugin name used by loader diagnostics. */
|
|
13
13
|
export declare const name = "github-copilot";
|
|
@@ -35,5 +35,5 @@ export type { AuthorizationNoticeView, GitHubCopilotAuthorizationPhase, GitHubCo
|
|
|
35
35
|
* registrations; both are effect-scoped and unregister on dispose.
|
|
36
36
|
* @param config - the composition entry config, used as the settings base layer.
|
|
37
37
|
*/
|
|
38
|
-
export declare function apply(ctx: Context, config:
|
|
38
|
+
export declare function apply(ctx: Context, config: LiveInlineConfig): void;
|
|
39
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
export interface LiveSetting<T> {
|
|
3
|
+
get(): T;
|
|
4
|
+
}
|
|
5
|
+
/** Capture a native volatile field for one operation, or retain a plain fixture value. */
|
|
6
|
+
export declare function readConfigValue<T>(value: T | LiveSetting<T>): T;
|
|
2
7
|
/** Read non-secret configuration through the API available on the running Core. */
|
|
3
8
|
export declare function readSettingsNamespace(ctx: Context, namespace: string): unknown;
|
|
4
9
|
declare module '@deepseek-ai/cordis' {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-github-copilot",
|
|
3
3
|
"description": "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
|
|
4
|
-
"version": "0.4.0-alpha.
|
|
4
|
+
"version": "0.4.0-alpha.59",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"dsh": "0.2.0-rc.2"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
88
|
+
"@deepseek-ai/cordis": "^4.0.4",
|
|
89
89
|
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
90
90
|
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
91
91
|
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
103
103
|
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
104
104
|
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
|
|
105
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
105
|
+
"@deepseek-ai/schemastery": "^3.18.4"
|
|
106
106
|
},
|
|
107
107
|
"peerDependenciesMeta": {
|
|
108
108
|
"@deepseek-ai/dsh-web-search-deepseek": {
|
|
@@ -133,12 +133,13 @@
|
|
|
133
133
|
"zod": "^4.4.3"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
|
-
"@deepseek-ai/cordis": "
|
|
136
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
137
137
|
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
138
138
|
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
139
139
|
"@deepseek-ai/dsh-api-gateway": "0.2.0-rc.2",
|
|
140
140
|
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
141
141
|
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
142
|
+
"@deepseek-ai/dsh-config-editor": "0.2.0-rc.2",
|
|
142
143
|
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
|
|
143
144
|
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
144
145
|
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
"@deepseek-ai/dsh-typert-registry": "0.2.0-rc.2",
|
|
162
163
|
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
163
164
|
"@deepseek-ai/dsh-web-search-deepseek": "0.2.0-rc.2",
|
|
164
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
165
|
+
"@deepseek-ai/schemastery": "^3.18.4",
|
|
165
166
|
"@types/node": "^22.0.0",
|
|
166
167
|
"@types/react": "~18.3.1",
|
|
167
168
|
"@types/react-dom": "18.3.7",
|