@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.
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +5 -3
- package/dist/index.js +12 -4
- package/package.json +1 -1
package/.mcp.json
CHANGED
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:
|
|
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
|
|
26728
|
-
|
|
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
|
|