@awebai/claude-channel 1.4.4 → 1.4.7
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/.claude-plugin/plugin.json +1 -1
- package/dist/index.js +8 -1
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -25691,7 +25691,9 @@ async function resolveConfig(workdir) {
|
|
|
25691
25691
|
const certificate = await loadConfiguredTeamCertificate(workdir, teamID, certPath);
|
|
25692
25692
|
const identity = await readYAML(identityPath);
|
|
25693
25693
|
const did = computeDIDKey(getPublicKey(signingKey));
|
|
25694
|
-
const
|
|
25694
|
+
const identityStableID = (identity?.stable_id || "").trim();
|
|
25695
|
+
const certificateStableID = (certificate.member_did_aw || "").trim();
|
|
25696
|
+
const stableID = certificateStableID || identityStableID;
|
|
25695
25697
|
const address = (certificate.member_address || "").trim() || (identity?.address || "").trim();
|
|
25696
25698
|
const registryURL = (identity?.registry_url || "").trim();
|
|
25697
25699
|
if ((identity?.did || "").trim() && did !== identity?.did?.trim()) {
|
|
@@ -26403,6 +26405,11 @@ var SenderTrustManager = class {
|
|
|
26403
26405
|
if (!recipientDID || !selfDID) {
|
|
26404
26406
|
return status;
|
|
26405
26407
|
}
|
|
26408
|
+
if (recipientDID.startsWith("did:aw:")) {
|
|
26409
|
+
if (recipientStableID)
|
|
26410
|
+
return status;
|
|
26411
|
+
return selfStableID ? "identity_mismatch" : status;
|
|
26412
|
+
}
|
|
26406
26413
|
return recipientDID === selfDID ? status : "identity_mismatch";
|
|
26407
26414
|
}
|
|
26408
26415
|
async checkStableIdentityRegistry(status, trustAddress, fromDID, fromStableID) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awebai/claude-channel",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "rm -rf dist && tsc -p tsconfig.json --noEmit && npx esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js",
|
|
18
18
|
"sync-plugin-version": "node -e \"const p=JSON.parse(require('fs').readFileSync('.claude-plugin/plugin.json','utf8')); p.version=require('./package.json').version; require('fs').writeFileSync('.claude-plugin/plugin.json',JSON.stringify(p,null,2)+'\\n')\"",
|
|
19
|
-
"
|
|
19
|
+
"test:package": "node scripts/check-package-dist.mjs",
|
|
20
|
+
"prepack": "npm run build && npm run sync-plugin-version && npm run test:package",
|
|
21
|
+
"prepublishOnly": "npm run prepack",
|
|
20
22
|
"test": "vitest run --exclude test/integration.test.ts",
|
|
21
23
|
"test:integration": "vitest run test/integration.test.ts",
|
|
22
24
|
"start": "tsx src/index.ts"
|