@huaweidevtools/aishell-dsh-client-credentials 0.0.1-beta.8 → 0.0.1-beta.9

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.
Files changed (2) hide show
  1. package/lib/index.js +21 -6
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -2528,13 +2528,28 @@ function apply(ctx, config) {
2528
2528
  path: [LOGIN_OUTCOME_FIELD],
2529
2529
  value: encodeOutcome(outcome)
2530
2530
  }]);
2531
- if (outcome?.kind === "succeeded") {
2532
- announceCredentialsChanged();
2533
- const pending = pendingForm;
2534
- if (pending !== void 0) {
2535
- pendingForm = void 0;
2536
- pending.settle({ kind: "submitted" });
2531
+ if (outcome?.kind !== "succeeded") return;
2532
+ recordStatus([
2533
+ {
2534
+ op: "set",
2535
+ path: ["credentialsStored"],
2536
+ value: true
2537
+ },
2538
+ {
2539
+ op: "set",
2540
+ path: ["accessKeyIdHint"],
2541
+ value: outcome.accountName
2542
+ },
2543
+ {
2544
+ op: "unset",
2545
+ path: ["lastError"]
2537
2546
  }
2547
+ ]);
2548
+ announceCredentialsChanged();
2549
+ const pending = pendingForm;
2550
+ if (pending !== void 0) {
2551
+ pendingForm = void 0;
2552
+ pending.settle({ kind: "submitted" });
2538
2553
  }
2539
2554
  }
2540
2555
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huaweidevtools/aishell-dsh-client-credentials",
3
3
  "description": "AI Shell credentials — chip-opened web form for storing Huawei Cloud AK/SK in the credential store",
4
- "version": "0.0.1-beta.8",
4
+ "version": "0.0.1-beta.9",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
- "@huaweidevtools/aishell-dsh-credentials-store": "0.0.1-beta.8"
44
+ "@huaweidevtools/aishell-dsh-credentials-store": "0.0.1-beta.9"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@deepseek-ai/cordis": "^4.0.4",