dsh-github-copilot 0.4.0-alpha.37 → 0.4.0-alpha.38
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 +7 -4
- package/CHANGELOG.md +8 -0
- package/README.md +21 -14
- package/README.zh.md +21 -14
- package/deployment-baseline.json +44 -16
- package/docs/npm-distribution.md +28 -18
- package/docs/official-first-020-rc1.md +28 -0
- package/lib/client.js +8 -5
- package/lib/client.js.map +1 -1
- package/lib/index.js +144 -90
- package/lib/routed-web.js +1 -1
- package/lib/{search-routing-DqLKem1c.js → search-routing-C1o895V6.js} +29 -2
- package/lib/types/compatibility.d.ts +5 -5
- package/lib/types/config.d.ts +3 -0
- package/lib/types/pi-provider-bridge.d.ts +1 -1
- package/lib/types/route-ownership.d.ts +1 -1
- package/lib/types/serialize.d.ts +8 -11
- package/lib/types/settings-reader.d.ts +11 -0
- package/package.json +44 -43
- package/scripts/check-search-composition.mjs +2 -2
package/lib/client.js
CHANGED
|
@@ -6070,7 +6070,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6070
6070
|
const [draft, setDraft] = (0, react.useState)({
|
|
6071
6071
|
primary: "auto",
|
|
6072
6072
|
provider: DEEPSEEK_SEARCH_PROVIDER,
|
|
6073
|
-
legacy: true
|
|
6073
|
+
legacy: true,
|
|
6074
|
+
routingNamespace: WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE
|
|
6074
6075
|
});
|
|
6075
6076
|
const [override, setOverride] = (0, react.useState)({ model: "" });
|
|
6076
6077
|
const [providers, setProviders] = (0, react.useState)([]);
|
|
@@ -6103,9 +6104,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6103
6104
|
setMessage("Could not load search settings. Reload settings to retry.");
|
|
6104
6105
|
return;
|
|
6105
6106
|
}
|
|
6106
|
-
const routing = result.value.namespaces.find((entry) => entry.ns === WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE);
|
|
6107
6107
|
const copilot = result.value.namespaces.find((entry) => entry.ns === GITHUB_COPILOT_SETTINGS_NAMESPACE);
|
|
6108
|
-
const
|
|
6108
|
+
const routing = result.value.namespaces.find((entry) => entry.ns === WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE);
|
|
6109
|
+
const copilotValue = record$1(copilot?.value);
|
|
6110
|
+
const routingValue = record$1(routing?.value);
|
|
6109
6111
|
const normalized = normalizeWebSearchRouting({
|
|
6110
6112
|
searchProvider: typeof routingValue.searchProvider === "string" ? routingValue.searchProvider : void 0,
|
|
6111
6113
|
searchMode: routingValue.searchMode === "fixed" ? "fixed" : "auto",
|
|
@@ -6115,7 +6117,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6115
6117
|
primary: normalized.primaryProvider,
|
|
6116
6118
|
provider: normalized.defaultProvider,
|
|
6117
6119
|
legacy: normalized.legacy,
|
|
6118
|
-
routingRevision: revisionOf(routing?.revision)
|
|
6120
|
+
routingRevision: revisionOf(routing?.revision),
|
|
6121
|
+
routingNamespace: WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE
|
|
6119
6122
|
});
|
|
6120
6123
|
setOverride({
|
|
6121
6124
|
model: typeof copilotValue.searchModel === "string" ? copilotValue.searchModel.trim() : "",
|
|
@@ -6170,7 +6173,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6170
6173
|
setSaving("routing");
|
|
6171
6174
|
setMessage("");
|
|
6172
6175
|
try {
|
|
6173
|
-
const result = await props.settings.mutate(
|
|
6176
|
+
const result = await props.settings.mutate(draft.routingNamespace, [{
|
|
6174
6177
|
op: "set",
|
|
6175
6178
|
path: ["searchProvider"],
|
|
6176
6179
|
value: primary
|