@awebai/claude-channel 1.3.0 → 1.3.2

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.3.0",
4
+ "version": "1.3.2",
5
5
  "author": {
6
6
  "name": "awebai"
7
7
  },
package/.mcp.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
- "aweb": {
3
- "command": "node",
4
- "args": ["${CLAUDE_PLUGIN_ROOT}/dist/index.js"]
2
+ "mcpServers": {
3
+ "aweb": {
4
+ "command": "node",
5
+ "args": ["${CLAUDE_PLUGIN_ROOT}/dist/index.js"]
6
+ }
5
7
  }
6
8
  }
package/dist/index.js CHANGED
@@ -25163,6 +25163,7 @@ async function resolveConfig(workdir) {
25163
25163
  const did = computeDIDKey(getPublicKey(signingKey));
25164
25164
  const stableID = (identity?.stable_id || "").trim() || (certificate.member_did_aw || "").trim();
25165
25165
  const address = (certificate.member_address || "").trim() || (identity?.address || "").trim();
25166
+ const registryURL = (identity?.registry_url || "").trim();
25166
25167
  if ((identity?.did || "").trim() && did !== identity?.did?.trim()) {
25167
25168
  throw new Error("identity.yaml did does not match .aw/signing.key");
25168
25169
  }
@@ -25182,6 +25183,7 @@ async function resolveConfig(workdir) {
25182
25183
  address,
25183
25184
  alias,
25184
25185
  teamID,
25186
+ registryURL,
25185
25187
  signingKey,
25186
25188
  teamCertificateHeader: encodeTeamCertificateHeader(certificate)
25187
25189
  };
@@ -26681,7 +26683,7 @@ async function main() {
26681
26683
  });
26682
26684
  const pinStore = await loadPinStore();
26683
26685
  const registry2 = new RegistryResolver(fetch, void 0, void 0, {
26684
- fallbackRegistryURL: embeddedRegistryFallbackURL(config2.baseURL)
26686
+ fallbackRegistryURL: resolveRegistryFallbackURL(config2.baseURL, config2.registryURL)
26685
26687
  });
26686
26688
  const trust = new SenderTrustManager(
26687
26689
  client,
@@ -26724,8 +26726,13 @@ Control events (type="control") are operational signals. On "pause", stop curren
26724
26726
  abort.signal
26725
26727
  );
26726
26728
  }
26727
- function embeddedRegistryFallbackURL(baseURL) {
26728
- return (process.env.AWID_REGISTRY_URL || "").trim().toLowerCase() === "local" ? baseURL : void 0;
26729
+ function resolveRegistryFallbackURL(baseURL, identityRegistryURL = "") {
26730
+ const envRegistryURL = (process.env.AWID_REGISTRY_URL || "").trim();
26731
+ if (envRegistryURL) {
26732
+ return envRegistryURL.toLowerCase() === "local" ? baseURL : envRegistryURL;
26733
+ }
26734
+ const configuredRegistryURL = identityRegistryURL.trim();
26735
+ return configuredRegistryURL || void 0;
26729
26736
  }
26730
26737
  async function startEventLoop(mcp, client, pinStore, trust, self, signal) {
26731
26738
  const dispatched = /* @__PURE__ */ new Set();
@@ -26932,7 +26939,8 @@ if (isDirectExecution(import.meta.url)) {
26932
26939
  }
26933
26940
  export {
26934
26941
  dispatchEvent,
26935
- isDirectExecution
26942
+ isDirectExecution,
26943
+ resolveRegistryFallbackURL
26936
26944
  };
26937
26945
  /*! Bundled license information:
26938
26946
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awebai/claude-channel",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": "./dist/index.js",