@awebai/claude-channel 1.4.7 → 1.4.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aweb-channel",
3
3
  "description": "aweb agent coordination channel — receive mail, chat, tasks, and control signals from your agent team in real time.",
4
- "version": "1.4.7",
4
+ "version": "1.4.9",
5
5
  "author": {
6
6
  "name": "awebai"
7
7
  },
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Juan Reyero
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -26135,14 +26135,14 @@ function verifyDidKeyResolution(resolution, cached2, nowMs) {
26135
26135
  return { outcome: "HARD_ERROR", error: "log_head seq must be >= 1" };
26136
26136
  }
26137
26137
  if (head.seq === 1) {
26138
- if (head.operation !== "create") {
26139
- return { outcome: "HARD_ERROR", error: "seq=1 requires create operation" };
26138
+ if (head.operation !== "create" && head.operation !== "register_did") {
26139
+ return { outcome: "HARD_ERROR", error: "seq=1 requires create/register_did operation" };
26140
26140
  }
26141
26141
  if (head.prev_entry_hash != null) {
26142
26142
  return { outcome: "HARD_ERROR", error: "seq=1 requires null prev_entry_hash" };
26143
26143
  }
26144
26144
  if (head.previous_did_key != null) {
26145
- return { outcome: "HARD_ERROR", error: "create requires null previous_did_key" };
26145
+ return { outcome: "HARD_ERROR", error: "seq=1 requires null previous_did_key" };
26146
26146
  }
26147
26147
  } else {
26148
26148
  if (!head.prev_entry_hash || !isLowerHex(head.prev_entry_hash)) {
@@ -26408,7 +26408,10 @@ var SenderTrustManager = class {
26408
26408
  if (recipientDID.startsWith("did:aw:")) {
26409
26409
  if (recipientStableID)
26410
26410
  return status;
26411
- return selfStableID ? "identity_mismatch" : status;
26411
+ if (selfStableID) {
26412
+ return recipientDID.toLowerCase() === selfStableID.toLowerCase() ? status : "identity_mismatch";
26413
+ }
26414
+ return status;
26412
26415
  }
26413
26416
  return recipientDID === selfDID ? status : "identity_mismatch";
26414
26417
  }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@awebai/claude-channel",
3
- "version": "1.4.7",
3
+ "version": "1.4.9",
4
+ "mcpName": "io.github.awebai/channel",
4
5
  "license": "MIT",
5
6
  "type": "module",
6
7
  "main": "./dist/index.js",