dsh-github-copilot 0.4.0-alpha.117 → 0.4.0-alpha.118

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/index.js CHANGED
@@ -2998,7 +2998,7 @@ function createAccountProvider(descriptors, guard, baseURL) {
2998
2998
  var package_default = {
2999
2999
  name: "dsh-github-copilot",
3000
3000
  description: "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
3001
- version: "0.4.0-alpha.117",
3001
+ version: "0.4.0-alpha.118",
3002
3002
  publishConfig: {
3003
3003
  "access": "public",
3004
3004
  "registry": "https://registry.npmjs.org/",
@@ -8731,7 +8731,15 @@ let GitHubCopilotAuthorizationController = (() => {
8731
8731
  this.modelPreferenceFailure = void 0;
8732
8732
  const saved = view();
8733
8733
  const readback = field === "excludedModelIds" ? saved.excludedModelIds : saved.highCostModelIds;
8734
- if (!saved.writable || readback === void 0 || readback.length !== next.length || readback.some((id, index) => id !== next[index])) this.modelPreferenceFailure = "COPILOT_MODEL_EXCLUSION_SAVE_FAILED";
8734
+ if (!saved.writable || readback === void 0 || readback.length !== next.length || readback.some((id, index) => id !== next[index])) {
8735
+ this.modelPreferenceFailure = "COPILOT_MODEL_EXCLUSION_SAVE_FAILED";
8736
+ return {
8737
+ ...saved,
8738
+ state: "error",
8739
+ error: this.modelPreferenceFailure
8740
+ };
8741
+ }
8742
+ return saved;
8735
8743
  } catch (cause) {
8736
8744
  const record = object$3(cause);
8737
8745
  this.modelPreferenceFailure = record?.code === "SETTINGS_CONFLICT" || cause instanceof Error && /conflict/i.test(cause.message) ? "COPILOT_MODEL_EXCLUSION_CONFLICT" : "COPILOT_MODEL_EXCLUSION_SAVE_FAILED";
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.117",
4
+ "version": "0.4.0-alpha.118",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/",