@ixo/asks-mcp 1.5.0-dev.20 → 1.5.0

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/dist/asks-mcp.mjs CHANGED
@@ -7559,6 +7559,7 @@ __export(env_exports, {
7559
7559
  askDeedClassDid: () => askDeedClassDid,
7560
7560
  askProtocolDidIfConfigured: () => askProtocolDidIfConfigured,
7561
7561
  askShape: () => askShape,
7562
+ callProtocolDid: () => callProtocolDid,
7562
7563
  chainEndpointsFor: () => chainEndpointsFor,
7563
7564
  deedClassDid: () => deedClassDid,
7564
7565
  domainIndexerUrl: () => domainIndexerUrl,
@@ -7624,7 +7625,7 @@ function verifiableClaimClassDid() {
7624
7625
  if (!did4) throw new Error(`the protocol/verifiableClaim class on ${network()} is not confirmed; set NEXT_PUBLIC_VC_CLASS_DID`);
7625
7626
  return did4;
7626
7627
  }
7627
- var RELAYER_NAMES, QI_SPACE, YOMA, ENDPOINTS, chainEndpointsFor, relayerNodeFor, isRelayerName, rpcUrl, restUrl, faucetUrl, graphqlUrl, explicitRelayerDid, deedClassDid, askProtocolDidIfConfigured, askDeedClassDid, verifiableClaimClassDidIfConfigured, matrixHomeserver, domainIndexerUrl, askShape;
7628
+ var RELAYER_NAMES, QI_SPACE, YOMA, ENDPOINTS, chainEndpointsFor, relayerNodeFor, isRelayerName, rpcUrl, restUrl, faucetUrl, graphqlUrl, explicitRelayerDid, deedClassDid, askProtocolDidIfConfigured, PUBLISHED_ASK_PROTOCOLS, callProtocolDid, askDeedClassDid, verifiableClaimClassDidIfConfigured, matrixHomeserver, domainIndexerUrl, askShape;
7628
7629
  var init_env = __esm({
7629
7630
  "../../packages/openhands-sdk/src/chain/env.ts"() {
7630
7631
  "use strict";
@@ -7705,6 +7706,8 @@ var init_env = __esm({
7705
7706
  if (did4 !== null && !/^did:ixo:entity:[0-9a-f]{32}$/.test(did4)) throw new Error(`NEXT_PUBLIC_ASK_PROTOCOL_DID is ${JSON.stringify(did4)}; it must be an entity DID`);
7706
7707
  return did4;
7707
7708
  };
7709
+ PUBLISHED_ASK_PROTOCOLS = { testnet: "did:ixo:entity:b2376f5dc303507773359715095a1a00", mainnet: "did:ixo:entity:9af1d34f13e645d25681ba88c5fc9a95" };
7710
+ callProtocolDid = () => askProtocolDidIfConfigured() ?? PUBLISHED_ASK_PROTOCOLS[network()] ?? null;
7708
7711
  askDeedClassDid = () => askProtocolDidIfConfigured() ?? deedClassDid();
7709
7712
  verifiableClaimClassDidIfConfigured = () => givenConfig().verifiableClaimClassDid ?? (hasEnv() ? firstSet(process.env.NEXT_PUBLIC_VC_CLASS_DID) : void 0) ?? ENDPOINTS[network()].verifiableClaimClassDid;
7710
7713
  matrixHomeserver = () => (givenConfig().matrixHomeserver ?? (hasEnv() ? firstSet(process.env.NEXT_PUBLIC_MATRIX_HOMESERVER) : void 0) ?? ENDPOINTS[network()].matrixHomeserver).replace(/\/+$/, "");
@@ -261929,7 +261932,7 @@ async function missingDelegations(granter, grantee, msgs) {
261929
261932
  return msgs.filter((msg) => !held.has(msg));
261930
261933
  }
261931
261934
  async function createCampaignProtocols(actor, campaign, hooks = {}) {
261932
- const askProtocol = askProtocolDidIfConfigured();
261935
+ const askProtocol = callProtocolDid();
261933
261936
  if (!askProtocol) throw new Error("a campaign protocol is classed under the Openhands Ask: set NEXT_PUBLIC_ASK_PROTOCOL_DID (scripts/publish-protocols.ts prints it)");
261934
261937
  const title = campaign.title.trim();
261935
261938
  if (!title) throw new Error("a campaign needs a title");
@@ -291293,7 +291296,7 @@ import { randomBytes as randomBytes7 } from "node:crypto";
291293
291296
  // package.json
291294
291297
  var package_default = {
291295
291298
  name: "@ixo/asks-mcp",
291296
- version: "1.5.0-dev.20",
291299
+ version: "1.5.0",
291297
291300
  description: "The Openhands Network MCP server: read the board, answer asks, post work and get paid on the ixo chain, with a key of its own on your machine.",
291298
291301
  license: "Apache-2.0",
291299
291302
  repository: {
@@ -295082,7 +295085,7 @@ tx ${result.transactionHash}${leftWords}`);
295082
295085
  return text4(
295083
295086
  await createCampaign(args, {
295084
295087
  acting: acting ? { principal: acting.principal } : null,
295085
- notReady: () => env.askProtocolDidIfConfigured() ? null : (console.error("asks-mcp: a campaign is classed under the asks.world Ask, and neither NEXT_PUBLIC_ASK_PROTOCOL_DID nor the site's /api/config names one"), "this asks.world site isn't set up to run campaigns yet; IXO needs to finish its setup"),
295088
+ notReady: () => env.callProtocolDid() ? null : (console.error("asks-mcp: a campaign is classed under the asks.world Ask, and neither NEXT_PUBLIC_ASK_PROTOCOL_DID nor the site's /api/config names one"), "this asks.world site isn't set up to run campaigns yet; IXO needs to finish its setup"),
295086
295089
  missingGrants: (msgs) => participant.missingDelegations(acting.principal, mine, msgs),
295087
295090
  readFile: async (path) => new Uint8Array(await (await import("node:fs/promises")).readFile(path)),
295088
295091
  uploadRubric: async (bytes3, contentType3) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/asks-mcp",
3
- "version": "1.5.0-dev.20",
3
+ "version": "1.5.0",
4
4
  "description": "The Openhands Network MCP server: read the board, answer asks, post work and get paid on the ixo chain, with a key of its own on your machine.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {