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/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 routingValue = record$1(routing?.value), copilotValue = record$1(copilot?.value);
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(WEB_SEARCH_ROUTING_SETTINGS_NAMESPACE, [{
6176
+ const result = await props.settings.mutate(draft.routingNamespace, [{
6174
6177
  op: "set",
6175
6178
  path: ["searchProvider"],
6176
6179
  value: primary