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/CHANGELOG.md +7 -0
- package/README.md +10 -6
- package/README.zh.md +10 -6
- package/deployment-baseline.json +4 -1
- package/lib/client.js +92 -26
- package/lib/client.js.map +1 -1
- package/lib/index.js +10 -2
- package/package.json +1 -1
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.
|
|
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]))
|
|
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.
|
|
4
|
+
"version": "0.4.0-alpha.118",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|