dsh-github-copilot 0.4.0-alpha.25 → 0.4.0-alpha.26
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 +6 -0
- package/README.md +9 -7
- package/README.zh.md +9 -7
- package/deployment-baseline.json +1 -1
- package/docs/dual-model.md +8 -0
- package/lib/client.js +63 -27
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/types/native-select-style.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.26 (prepared)
|
|
4
|
+
|
|
5
|
+
- Fix low-contrast native dropdown options in dark mode for planning/execution models, workspaces and search providers (#142).
|
|
6
|
+
- Pair opaque application-theme surfaces with primary or secondary foreground tokens on both selects and options, with readable system-color fallbacks on hosts without those tokens.
|
|
7
|
+
- Preserve disabled/unavailable choices and all selection, CAS and session behavior. Add focused regressions and remove fixture-only option colors that masked the production bug; no Core or dependency changes are required.
|
|
8
|
+
|
|
3
9
|
## 0.4.0-alpha.25 (candidate)
|
|
4
10
|
|
|
5
11
|
- Append the ninth exact official target `dsh-v0.1.6-alpha.2` at `ddefc45fbc7f8e46dd73185e68295696d1297887`, retaining all older pins and exact `0.1.2-rc.1` development dependencies.
|
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ Source markers, local rc.1-backed focused tests and fifteen scoped exact-source
|
|
|
61
61
|
|
|
62
62
|
## Install and sign in
|
|
63
63
|
|
|
64
|
-
The commands below target the package version `0.4.0-alpha.
|
|
64
|
+
The commands below target the package version `0.4.0-alpha.26`. 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):
|
|
65
65
|
|
|
66
66
|
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):
|
|
67
67
|
|
|
@@ -74,7 +74,7 @@ Include any launcher patch files with repeated `--patch /absolute/file` argument
|
|
|
74
74
|
For approved online installation, the supported CLI command is:
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
77
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.26/dsh-github-copilot-0.4.0-alpha.26.tgz
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
If registry access is blocked or unavailable, do not retry it through another network. Desktop-managed profiles may instead use the [controlled offline CLI procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance), with an approved, checksum-verified local Release and existing dependency cache (`--offline --ignore-scripts`). All preflight and approval requirements still apply.
|
|
@@ -139,7 +139,7 @@ Agents should treat the browser authorization as a human handoff, not as a token
|
|
|
139
139
|
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.
|
|
140
140
|
6. Use **Sign out** only when the user explicitly asks to disconnect the account. It deletes the Copilot credential record but preserves route settings.
|
|
141
141
|
|
|
142
|
-
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. The native Desktop package manager is preferred when permitted registry access is available; after npm publication is verified it accepts `dsh-github-copilot@0.4.0-alpha.
|
|
142
|
+
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. The native Desktop package manager is preferred when permitted registry access is available; after npm publication is verified it accepts `dsh-github-copilot@0.4.0-alpha.26`, not a URL or file. Desktop-managed profiles also support explicitly approved [controlled offline CLI maintenance](./docs/npm-distribution.md#controlled-offline-cli-maintenance) with a verified local Release and `--offline --ignore-scripts`. 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. Offline installation is not proof that npm networking/publication was repaired. See [distribution and publication requirements](./docs/npm-distribution.md).
|
|
143
143
|
|
|
144
144
|
No `copilot2api` process, external gateway, placeholder API key, pasted GitHub token, or separate `dsh-web-search-provider` installation is required.
|
|
145
145
|
|
|
@@ -158,10 +158,12 @@ DSH Core continues to own model selection, sandboxing, tools, attachments, and o
|
|
|
158
158
|
|
|
159
159
|
Under **Settings → Models → Model roles**, enable dedicated dual-model sessions, select two available account models, save, and choose **Create session with this configuration** for an existing workspace. The planner handles planning and acceptance; `copilot_execute` delegates implementation to a native continuable child with a fixed execution model. Configuration is off by default and affects only sessions created through this entry. It does not change the global default, existing sessions, credentials or the ordinary Subagent model-selection setting.
|
|
160
160
|
|
|
161
|
-
Unavailable models are not substituted. Uncertain creation retries keep the same request identity. The feature requires public role/session/subagent capabilities and is visibly unavailable when they are absent; historical package compatibility is not blanket certification of this optional flow. See [setup, lifecycle, limitations and evidence](./docs/dual-model.md). The feature is included in the `0.4.0-alpha.
|
|
161
|
+
Unavailable models are not substituted. Uncertain creation retries keep the same request identity. The feature requires public role/session/subagent capabilities and is visibly unavailable when they are absent; historical package compatibility is not blanket certification of this optional flow. See [setup, lifecycle, limitations and evidence](./docs/dual-model.md). The feature is included in the `0.4.0-alpha.26` candidate; source and fixture tests are not proof of publication or Desktop activation.
|
|
162
162
|
|
|
163
163
|
If the card says **Could not load model roles**, do not change model defaults to work around it: this is a failed settings load, distinct from unsupported capabilities or unavailable models. In particular, a `githubCopilotDualModel/view` HTTP 404 indicates missing Host Remote exposure, not that the feature is off. See [troubleshooting and verification](./docs/dual-model.md#loading-and-remote-troubleshooting).
|
|
164
164
|
|
|
165
|
+
Native model, workspace and search-provider dropdowns use paired application-theme surface/text colors, including unavailable options, so dark mode does not leave pale labels on a white popup. Hosts without those theme tokens use readable system-color fallbacks. Appearance changes do not save or replace model/search selections.
|
|
166
|
+
|
|
165
167
|
## Shared account, independent sessions (V3)
|
|
166
168
|
|
|
167
169
|
One Host-owned Copilot account supplies many account-discovered models. Each explicitly selected or history-backed Session keeps its own model context: search for Session A uses the captured effective request-header/config of initiating Session A (or explicit request `GenerateOptions`), not Session B's choice or a future global default C. Search plans are cached per owner so different-model A/B requests do not reuse or cancel each other's plans. Account metadata remains shared; capability/probe and credential checks still apply.
|
|
@@ -383,8 +385,8 @@ Report the published Release URL, version, tag/commit and verified asset SHA-256
|
|
|
383
385
|
`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.
|
|
384
386
|
|
|
385
387
|
```sh
|
|
386
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
387
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
388
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.26/dsh-github-copilot-0.4.0-alpha.26.tgz
|
|
389
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.26/SHA256SUMS
|
|
388
390
|
sha256sum --check SHA256SUMS
|
|
389
391
|
```
|
|
390
392
|
|
|
@@ -392,7 +394,7 @@ PowerShell can verify the same two downloaded files with:
|
|
|
392
394
|
|
|
393
395
|
```powershell
|
|
394
396
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
395
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
397
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.26.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
396
398
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
397
399
|
```
|
|
398
400
|
|
package/README.zh.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
一个聚焦 GitHub Copilot 登录、通用账号模型发现、Copilot 专用 Tool 兼容与供应方托管搜索的 DSH companion。插件根据供应方返回的端点和能力元数据组装模型,复用公开的 `@deepseek-ai/dsh-llm-pi-ai` adapter 与 pi-ai SDK,不另写一套通用传输/序列化器,也不维护需要逐个添加新模型 ID 的静态目录。
|
|
11
11
|
|
|
12
|
-
> 下文自动维护账号模型元数据与 provider 集成控件描述目标版本 `0.4.0-alpha.
|
|
12
|
+
> 下文自动维护账号模型元数据与 provider 集成控件描述目标版本 `0.4.0-alpha.26`;这不代表已有的两条真实路由被合并或移除。版本化 URL 不表示 Release 已发布或本机已加载;仅在该 Release 与校验和可用后使用安装命令。源码、发布制品、已安装版本和实际加载运行时需分别确认,本地升级和中断会话的重启仍需用户批准。
|
|
13
13
|
|
|
14
14
|
Alpha.24 修复 Web search 卡片缺少精确 Remote 依赖声明的问题。卡片仍位于 **Settings → Models**(`settings.models.footer`,list/root),旧 Core 回退到独立 Web search section,而非 General。搜索子 Fiber 独立等待 routing namespace,不影响账号控件和既有搜索安全检查;实际打包 Desktop 验收仍是独立关卡。
|
|
15
15
|
|
|
@@ -76,7 +76,7 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
76
76
|
获准且网络可用时,可通过受支持的 CLI 命令安装:
|
|
77
77
|
|
|
78
78
|
```sh
|
|
79
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
79
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.26/dsh-github-copilot-0.4.0-alpha.26.tgz
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
若 registry 被公司封禁或不可用,不要更换网络绕行。Desktop 管理的 profile 可以改用[受控离线 CLI 流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance):使用来源获准、校验通过的本地 Release 和已有依赖缓存(`--offline --ignore-scripts`)。预检、备份和授权要求仍然适用。
|
|
@@ -141,7 +141,7 @@ Agent 应把浏览器授权视为需要用户完成的 handoff,而不是自行
|
|
|
141
141
|
5. 确认 **Signed in** 并检查自动发现结果,再请用户选择模型。已登录时打开 Models 会自动确保缺失/过期元数据,新鲜 ready 缓存不发请求。错误可使用 **Retry**,有意强制更新时使用 **Manage → Refresh models**,不作为常规设置步骤。状态读取本身不发现;登录、元数据与真实调用成功是独立证据。
|
|
142
142
|
6. 只有用户明确要求断开账号时才使用 **Sign out**;它会删除 Copilot credential record,但保留 route settings。
|
|
143
143
|
|
|
144
|
-
每个新版本默认同时分发到 GitHub Releases 和 npm,两个渠道使用同一份已验证 tarball。应固定版本并核对所用渠道的证据:Release 的 `SHA256SUMS`;从 npm 安装时另核对 `dist.integrity`。在获准且可用的 registry 网络环境中,优先使用原生 Desktop 包管理器;确认 npm 发布后,它接受 `dsh-github-copilot@0.4.0-alpha.
|
|
144
|
+
每个新版本默认同时分发到 GitHub Releases 和 npm,两个渠道使用同一份已验证 tarball。应固定版本并核对所用渠道的证据:Release 的 `SHA256SUMS`;从 npm 安装时另核对 `dist.integrity`。在获准且可用的 registry 网络环境中,优先使用原生 Desktop 包管理器;确认 npm 发布后,它接受 `dsh-github-copilot@0.4.0-alpha.26`,不是 URL 或本地文件。Desktop 管理的 profile 也允许经明确授权的[受控离线 CLI 维护](./docs/npm-distribution.md#controlled-offline-cli-maintenance):使用已验证的本地 Release 和 `--offline --ignore-scripts`,执行必需的组合预检、私密元数据备份、单写入者控制及安装后差异核验。缓存不足或出现权限拒绝时停止,不绕过公司 registry 封禁,不关闭 TLS 校验;重启仍需单独授权。离线安装成功不表示 npm 联网或发布问题已修好。[双渠道发布与 OIDC 要求](./docs/npm-distribution.md)保持不变。
|
|
145
145
|
|
|
146
146
|
不需要运行 `copilot2api`,不需要外部 gateway、placeholder API key、原始 GitHub token 或单独安装 `dsh-web-search-provider`。
|
|
147
147
|
|
|
@@ -162,10 +162,12 @@ DSH Core 继续负责模型选择、sandbox、工具、附件与其它 provider
|
|
|
162
162
|
|
|
163
163
|
在 **设置 → 模型 → 模型分工** 中启用双模型会话,选择账号下可用的主模型和执行模型,保存后选工作区,再点 **用此配置新建会话**。主模型负责规划与验收;`copilot_execute` 创建原生可继续执行的子代理,并固定其执行模型。默认关闭,仅专用入口创建的新会话采用此策略;不修改全局默认、已有会话、登录凭据或原生 Subagent 授权开关。
|
|
164
164
|
|
|
165
|
-
模型不可用时明确报错,不自动替换。创建结果不明时重试同一个请求,不为绕过未知结果另建会话。功能依赖公开的会话、策略和子代理能力;缺少接口时显示不可用,不把历史版本的包兼容范围当成此功能的全面验收。详见[配置、生命周期、限制与验证范围](./docs/dual-model.md)。本功能包含在 `0.4.0-alpha.
|
|
165
|
+
模型不可用时明确报错,不自动替换。创建结果不明时重试同一个请求,不为绕过未知结果另建会话。功能依赖公开的会话、策略和子代理能力;缺少接口时显示不可用,不把历史版本的包兼容范围当成此功能的全面验收。详见[配置、生命周期、限制与验证范围](./docs/dual-model.md)。本功能包含在 `0.4.0-alpha.26` candidate 中,源码和合成测试不代表已发布或当前 Desktop 已生效。
|
|
166
166
|
|
|
167
167
|
若卡片显示 **Could not load model roles(无法加载模型分工)**,不要通过修改默认模型绕过:这是设置加载失败,与能力不支持或模型不可用不同。尤其 `githubCopilotDualModel/view` 返回 HTTP 404,表示 Host Remote 未暴露,并非功能开关处于关闭状态。详见[加载故障排查与验证](./docs/dual-model.md#loading-and-remote-troubleshooting)。
|
|
168
168
|
|
|
169
|
+
模型、工作区和搜索 Provider 的原生下拉控件及不可用选项使用成对的应用主题背景/文字颜色,避免深色模式弹出白底浅字列表;缺少主题 token 的旧环境采用可读的系统颜色回退。配色变化不会保存或替换模型/搜索选择。
|
|
170
|
+
|
|
169
171
|
## 全局账号,多模型与独立会话(V3)
|
|
170
172
|
|
|
171
173
|
一个 Host 所有的 Copilot 账号提供多个账号发现模型。已显式选择或有历史选择的 Session 保持自己的模型上下文:Session A 的搜索使用捕获的发起 Session A 的有效 request-header/config(或请求显式 `GenerateOptions`),不采用 Session B 的选择或未来全局默认 C。搜索 plan 按 owner 缓存,A/B 使用不同模型时不会互相复用或取消 plan;账号元数据仍共享,能力/probe 与凭据检查继续生效。
|
|
@@ -394,8 +396,8 @@ node scripts/agent.mjs attribution "DeepSeek Harness (DSH)"
|
|
|
394
396
|
`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 要求包已存在,不能代替首次建包。不会批量补发历史版本。
|
|
395
397
|
|
|
396
398
|
```sh
|
|
397
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
398
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
399
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.26/dsh-github-copilot-0.4.0-alpha.26.tgz
|
|
400
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.26/SHA256SUMS
|
|
399
401
|
sha256sum --check SHA256SUMS
|
|
400
402
|
```
|
|
401
403
|
|
|
@@ -403,7 +405,7 @@ PowerShell 可以对已下载的同一组文件执行:
|
|
|
403
405
|
|
|
404
406
|
```powershell
|
|
405
407
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
406
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
408
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.26.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
407
409
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
408
410
|
```
|
|
409
411
|
|
package/deployment-baseline.json
CHANGED
package/docs/dual-model.md
CHANGED
|
@@ -56,6 +56,14 @@ These are the actual built component with **synthetic** account/workspace respon
|
|
|
56
56
|
|
|
57
57
|

|
|
58
58
|
|
|
59
|
+
## Native dropdown appearance
|
|
60
|
+
|
|
61
|
+
Model, workspace and search-provider selects and their options use the application's surface, primary/secondary text and border tokens. They do not infer the application theme from the operating system. Hosts without the tokens use paired system-color fallbacks. This is presentation only: changing theme does not save settings or replace selections.
|
|
62
|
+
|
|
63
|
+
After building, `node tests/browser/verify-native-selects.mjs --playwright-module /absolute/path/to/existing/playwright-core/index.mjs --channel msedge` runs optional isolated browser checks without installing a browser dependency. It checks computed option/control colors, synthetic contrast, theme switching without remount or writes, 375px layout and enabled-control system fallbacks. The fixtures supply theme tokens rather than global option styling, so fixture CSS cannot hide a missing component style.
|
|
64
|
+
|
|
65
|
+
Page screenshots do not necessarily contain the OS-owned expanded popup. Check the expanded native menu separately on the target browser, including unavailable/disabled entries and the selected highlight. The automated computed-style checks are not full Windows popup-painting or live Desktop acceptance evidence; historical captures above predate this appearance fix.
|
|
66
|
+
|
|
59
67
|
## Public integration and evidence
|
|
60
68
|
|
|
61
69
|
The feature reuses public settings, account discovery, scope, Agent creation, Session projection/persistence, workspace attachment, tool restrictions/guards and native continuable subagents. It does not access Core private registries, edit prototypes, patch deployed packages, copy grants, install another wire adapter or require a Core change.
|
package/lib/client.js
CHANGED
|
@@ -5894,6 +5894,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5894
5894
|
};
|
|
5895
5895
|
}
|
|
5896
5896
|
//#endregion
|
|
5897
|
+
//#region lib/types/native-select-style.js
|
|
5898
|
+
const optionStyle = {
|
|
5899
|
+
backgroundColor: "var(--dsw-alias-bg-layer-1, Canvas)",
|
|
5900
|
+
color: "var(--dsw-alias-label-primary, CanvasText)"
|
|
5901
|
+
};
|
|
5902
|
+
const disabledOptionStyle = {
|
|
5903
|
+
...optionStyle,
|
|
5904
|
+
color: "var(--dsw-alias-label-secondary, GrayText)"
|
|
5905
|
+
};
|
|
5906
|
+
const selectStyle = {
|
|
5907
|
+
...optionStyle,
|
|
5908
|
+
width: "100%",
|
|
5909
|
+
minWidth: 0,
|
|
5910
|
+
boxSizing: "border-box",
|
|
5911
|
+
padding: "9px 11px",
|
|
5912
|
+
borderRadius: "9px",
|
|
5913
|
+
border: "1px solid var(--dsw-alias-border-l2, ButtonBorder)",
|
|
5914
|
+
font: "inherit"
|
|
5915
|
+
};
|
|
5916
|
+
const disabledSelectStyle = {
|
|
5917
|
+
...selectStyle,
|
|
5918
|
+
color: "var(--dsw-alias-label-secondary, GrayText)"
|
|
5919
|
+
};
|
|
5920
|
+
function nativeSelectStyle(disabled = false) {
|
|
5921
|
+
return disabled ? disabledSelectStyle : selectStyle;
|
|
5922
|
+
}
|
|
5923
|
+
function nativeOptionStyle(disabled = false) {
|
|
5924
|
+
return disabled ? disabledOptionStyle : optionStyle;
|
|
5925
|
+
}
|
|
5926
|
+
//#endregion
|
|
5897
5927
|
//#region lib/types/web-search-routing-card.js
|
|
5898
5928
|
const GITHUB_COPILOT_SETTINGS_NAMESPACE = "github-copilot";
|
|
5899
5929
|
const WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE = "github-copilot-search-routing";
|
|
@@ -5915,7 +5945,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5915
5945
|
gap: "6px",
|
|
5916
5946
|
minWidth: 0
|
|
5917
5947
|
};
|
|
5918
|
-
const controlStyle
|
|
5948
|
+
const controlStyle = {
|
|
5919
5949
|
width: "100%",
|
|
5920
5950
|
minWidth: 0,
|
|
5921
5951
|
boxSizing: "border-box",
|
|
@@ -6149,11 +6179,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6149
6179
|
]);
|
|
6150
6180
|
const providerOptions = () => providers.map((id) => (0, react.createElement)("option", {
|
|
6151
6181
|
key: id,
|
|
6152
|
-
value: id
|
|
6182
|
+
value: id,
|
|
6183
|
+
style: nativeOptionStyle()
|
|
6153
6184
|
}, id));
|
|
6154
6185
|
const unavailableOption = (id, known) => known ? null : (0, react.createElement)("option", {
|
|
6155
6186
|
value: id,
|
|
6156
|
-
disabled: true
|
|
6187
|
+
disabled: true,
|
|
6188
|
+
style: nativeOptionStyle(true)
|
|
6157
6189
|
}, `${id || "(empty)"} — unavailable`);
|
|
6158
6190
|
return (0, react.createElement)("section", {
|
|
6159
6191
|
style: cardStyle$1,
|
|
@@ -6170,7 +6202,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6170
6202
|
fontSize: "13px",
|
|
6171
6203
|
fontWeight: 600
|
|
6172
6204
|
} }, "Search provider"), (0, react.createElement)("select", {
|
|
6173
|
-
style:
|
|
6205
|
+
style: nativeSelectStyle(disabled),
|
|
6174
6206
|
disabled,
|
|
6175
6207
|
value: draft.primary,
|
|
6176
6208
|
"data-dsh-web-search-mode": true,
|
|
@@ -6181,11 +6213,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6181
6213
|
primary
|
|
6182
6214
|
}));
|
|
6183
6215
|
}
|
|
6184
|
-
}, (0, react.createElement)("option", {
|
|
6216
|
+
}, (0, react.createElement)("option", {
|
|
6217
|
+
value: "auto",
|
|
6218
|
+
style: nativeOptionStyle()
|
|
6219
|
+
}, "Auto — follow Chat"), draft.primary === "none" ? (0, react.createElement)("option", {
|
|
6220
|
+
value: "none",
|
|
6221
|
+
style: nativeOptionStyle()
|
|
6222
|
+
}, "Disabled — saved configuration") : null, ...providerOptions(), unavailableOption(draft.primary, primaryKnown))), (0, react.createElement)("label", { style: fieldStyle$1 }, (0, react.createElement)("span", { style: {
|
|
6185
6223
|
fontSize: "13px",
|
|
6186
6224
|
fontWeight: 600
|
|
6187
6225
|
} }, "Default search provider"), (0, react.createElement)("select", {
|
|
6188
|
-
style:
|
|
6226
|
+
style: nativeSelectStyle(disabled),
|
|
6189
6227
|
disabled,
|
|
6190
6228
|
value: draft.provider,
|
|
6191
6229
|
"data-dsh-web-search-provider": true,
|
|
@@ -6196,7 +6234,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6196
6234
|
provider
|
|
6197
6235
|
}));
|
|
6198
6236
|
}
|
|
6199
|
-
}, (0, react.createElement)("option", {
|
|
6237
|
+
}, (0, react.createElement)("option", {
|
|
6238
|
+
value: NO_DEFAULT_SEARCH_PROVIDER,
|
|
6239
|
+
style: nativeOptionStyle()
|
|
6240
|
+
}, "None — no fallback"), ...providerOptions(), unavailableOption(draft.provider, fallbackKnown)), (0, react.createElement)("span", { style: hintStyle }, "Final fallback only: used when Auto has no matching provider or the primary search fails. The same provider is never retried as its own fallback.")), catalogReady && providers.length === 0 ? (0, react.createElement)("p", {
|
|
6200
6241
|
role: "status",
|
|
6201
6242
|
style: hintStyle
|
|
6202
6243
|
}, "No search providers are registered. Enable a search provider, then reload settings.") : null, catalogReady && missingProvider ? (0, react.createElement)("p", {
|
|
@@ -6206,7 +6247,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6206
6247
|
fontSize: "13px",
|
|
6207
6248
|
fontWeight: 600
|
|
6208
6249
|
} }, "Copilot search model"), (0, react.createElement)("input", {
|
|
6209
|
-
style: controlStyle
|
|
6250
|
+
style: controlStyle,
|
|
6210
6251
|
list: "dsh-copilot-search-models",
|
|
6211
6252
|
disabled: disabled || missingCopilot,
|
|
6212
6253
|
value: draft.model,
|
|
@@ -6400,17 +6441,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6400
6441
|
fontSize: "13px",
|
|
6401
6442
|
fontWeight: 600
|
|
6402
6443
|
};
|
|
6403
|
-
const controlStyle = {
|
|
6404
|
-
width: "100%",
|
|
6405
|
-
minWidth: 0,
|
|
6406
|
-
boxSizing: "border-box",
|
|
6407
|
-
padding: "9px 11px",
|
|
6408
|
-
borderRadius: "9px",
|
|
6409
|
-
color: "inherit",
|
|
6410
|
-
border: "1px solid color-mix(in srgb, currentColor 24%, transparent)",
|
|
6411
|
-
background: "color-mix(in srgb, currentColor 3%, transparent)",
|
|
6412
|
-
font: "inherit"
|
|
6413
|
-
};
|
|
6414
6444
|
const buttonStyle = {
|
|
6415
6445
|
padding: "9px 16px",
|
|
6416
6446
|
maxWidth: "100%",
|
|
@@ -6609,7 +6639,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6609
6639
|
style: labelStyle
|
|
6610
6640
|
}, label), (0, react.createElement)("select", {
|
|
6611
6641
|
id: `${id}-${role}`,
|
|
6612
|
-
style:
|
|
6642
|
+
style: nativeSelectStyle(disabled),
|
|
6613
6643
|
value,
|
|
6614
6644
|
disabled,
|
|
6615
6645
|
[`data-dsh-dual-model-${role}`]: true,
|
|
@@ -6626,13 +6656,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6626
6656
|
}
|
|
6627
6657
|
}, (0, react.createElement)("option", {
|
|
6628
6658
|
value: "",
|
|
6629
|
-
disabled: true
|
|
6659
|
+
disabled: true,
|
|
6660
|
+
style: nativeOptionStyle(true)
|
|
6630
6661
|
}, t.selectModel), missing ? (0, react.createElement)("option", {
|
|
6631
6662
|
value,
|
|
6632
|
-
disabled: true
|
|
6663
|
+
disabled: true,
|
|
6664
|
+
style: nativeOptionStyle(true)
|
|
6633
6665
|
}, `${value} (${t.unavailable})`) : null, ...models.map((model) => (0, react.createElement)("option", {
|
|
6634
6666
|
key: model.id,
|
|
6635
|
-
value: model.id
|
|
6667
|
+
value: model.id,
|
|
6668
|
+
style: nativeOptionStyle()
|
|
6636
6669
|
}, model.name || model.id))));
|
|
6637
6670
|
};
|
|
6638
6671
|
const viewNotice = !view ? void 0 : !view.supported ? diagnostic(view.diagnostic) ?? "unsupported" : !view.writable ? "readonly" : !validRevision(view.revision) ? "revision" : void 0;
|
|
@@ -6689,7 +6722,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6689
6722
|
style: labelStyle
|
|
6690
6723
|
}, t.workspace), (0, react.createElement)("select", {
|
|
6691
6724
|
id: `${id}-workspace`,
|
|
6692
|
-
style:
|
|
6725
|
+
style: nativeSelectStyle(disabled),
|
|
6693
6726
|
disabled,
|
|
6694
6727
|
value: shownWorkspace,
|
|
6695
6728
|
"data-dsh-dual-model-workspace": true,
|
|
@@ -6699,13 +6732,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6699
6732
|
}
|
|
6700
6733
|
}, (0, react.createElement)("option", {
|
|
6701
6734
|
value: "",
|
|
6702
|
-
disabled: true
|
|
6735
|
+
disabled: true,
|
|
6736
|
+
style: nativeOptionStyle(true)
|
|
6703
6737
|
}, t.selectWorkspace), shownWorkspace && !view?.workspaces.some((item) => item.id === shownWorkspace) ? (0, react.createElement)("option", {
|
|
6704
6738
|
value: shownWorkspace,
|
|
6705
|
-
disabled: true
|
|
6739
|
+
disabled: true,
|
|
6740
|
+
style: nativeOptionStyle(true)
|
|
6706
6741
|
}, `${shownWorkspace} (${t.unavailable})`) : null, ...(view?.workspaces ?? []).map((item) => (0, react.createElement)("option", {
|
|
6707
6742
|
key: item.id,
|
|
6708
|
-
value: item.id
|
|
6743
|
+
value: item.id,
|
|
6744
|
+
style: nativeOptionStyle()
|
|
6709
6745
|
}, item.name || item.id))), view && view.workspaces.length === 0 ? (0, react.createElement)("p", { style: textStyle }, t.noWorkspaces) : null), viewNotice ? (0, react.createElement)("p", { style: textStyle }, t[viewNotice]) : null, !pending && view && !viewNotice ? (0, react.createElement)("p", { style: textStyle }, dirty ? t.dirty : !draft.enabled ? t.disabled : "") : null, (0, react.createElement)("div", { style: {
|
|
6710
6746
|
display: "flex",
|
|
6711
6747
|
gap: "12px",
|