@ixo/asks-mcp 1.12.1-dev.2 → 1.12.2-dev.1

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.
Files changed (2) hide show
  1. package/dist/asks-mcp.mjs +13 -1
  2. package/package.json +1 -1
package/dist/asks-mcp.mjs CHANGED
@@ -259519,6 +259519,7 @@ __export(connect_exports, {
259519
259519
  markSigned: () => markSigned,
259520
259520
  ownAnswer: () => ownAnswer,
259521
259521
  receiptWithOurs: () => receiptWithOurs,
259522
+ unchosenNote: () => unchosenNote,
259522
259523
  workOf: () => workOf
259523
259524
  });
259524
259525
  function noteIgnored(agent, pinned, others, log) {
@@ -259558,6 +259559,9 @@ async function actingOrWhy(agent, reads2 = chainReads, pins2 = keyPins, log = st
259558
259559
  }
259559
259560
  return { acting, problem: null, candidates: standing };
259560
259561
  }
259562
+ function unchosenNote(standing) {
259563
+ return !standing.acting && standing.candidates.length ? `This posts as this key, not as a person. ${candidateWords(standing.candidates)} Then preview again: it posts as them, with their final OK.` : null;
259564
+ }
259561
259565
  function candidateWords(candidates) {
259562
259566
  if (!candidates.length) return null;
259563
259567
  return `Not acting for anyone: ${candidates.length === 1 ? "an account has" : `${candidates.length} accounts have`} connected this key (${list5(candidates)}), and none has been chosen. Anybody can grant to a public address, so ask the person which is theirs and call connect_account with principal set to it (or principal: "self" to stay as this key and stop being asked).`;
@@ -292286,7 +292290,7 @@ import { randomBytes as randomBytes7 } from "node:crypto";
292286
292290
  // package.json
292287
292291
  var package_default = {
292288
292292
  name: "@ixo/asks-mcp",
292289
- version: "1.12.1-dev.2",
292293
+ version: "1.12.2-dev.1",
292290
292294
  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.",
292291
292295
  license: "Apache-2.0",
292292
292296
  repository: {
@@ -294357,6 +294361,7 @@ async function build2(options, server2, parts) {
294357
294361
  const actingOrWhy2 = late2("connect", "actingOrWhy");
294358
294362
  const actingWords2 = late2("connect", "actingWords");
294359
294363
  const candidateWords2 = late2("connect", "candidateWords");
294364
+ const unchosenNote2 = late2("connect", "unchosenNote");
294360
294365
  const connectAs2 = late2("connect", "connectAs");
294361
294366
  const connectLink2 = late2("connect", "connectLink");
294362
294367
  const disconnect2 = late2("connect", "disconnect");
@@ -294529,6 +294534,9 @@ To go ahead, call again with confirm: "${token}".`;
294529
294534
  ${said3.join("\n")}`;
294530
294535
  };
294531
294536
  const principal2 = async () => actingFor2(await address2());
294537
+ const unchosen = async () => {
294538
+ return unchosenNote2(await actingOrWhy2(await address2()));
294539
+ };
294532
294540
  let desk = null;
294533
294541
  const laneKit = async () => {
294534
294542
  const lanes = await Promise.resolve().then(() => (init_privateLane(), privateLane_exports));
@@ -295161,6 +295169,7 @@ Never open it yourself.`);
295161
295169
  const cannot = await unjudged();
295162
295170
  if (cannot) return text4(cannot);
295163
295171
  const acting = card ? null : await principal2();
295172
+ const pick2 = acting || card || confirm ? null : await unchosen();
295164
295173
  const { hqPlan: hqPlan2, evaluationPrice: evaluationPrice2, oracleSigner: oracleSigner2, orgDefaultOracle: orgDefaultOracle2, orgFundsRefusal: orgFundsRefusal2, rewardCoin: rewardCoin2 } = await Promise.resolve().then(() => (init_hq(), hq_exports));
295165
295174
  const coin = card ? FEE_DENOM : rewardCoin2(void 0, NETWORK2);
295166
295175
  if (typeof coin !== "string") return text4(`Refused: ${coin.refused}. Nothing was posted and nothing was spent.`);
@@ -295340,6 +295349,7 @@ ${orgCosts}` } : { total: onChain.total, what: perCheck ? `${onChain.what}. Revi
295340
295349
  const notes = confirm ? [] : [
295341
295350
  /* By card the person posts as themselves at the link; and a hosted server has no connection to name. */
295342
295351
  card ? null : actingNote(acting),
295352
+ pick2,
295343
295353
  expert ? expertNote(expert) : checkingNote(terms, acting?.principal ?? null),
295344
295354
  expert ? null : orgAsk ? `Reviewed by ${await oracleWordsFor({ did: orgAsk.oracle.did, address: orgAsk.oracle.address })}.` : reviewer && reviewer !== CHECKER ? `Reviewed by ${await oracleWordsFor({ address: reviewer })}.` : reviewer ? `Checked by asks.world verifier, ${feeWords(perCheck ? perCheck.price : legBase)} per check.` : null,
295345
295355
  doorWords(door2.access, door2.invite.length),
@@ -296758,6 +296768,7 @@ The call: ${linkOf(draft.posted)}`);
296758
296768
  if (marketplace && "refused" in marketplace) return text4(`Refused: ${marketplace.refused} Nothing was posted.`);
296759
296769
  const sponsor = marketplace?.sponsor ?? null;
296760
296770
  const acting = card || plain_key && review ? null : await principal2();
296771
+ const pick2 = acting || card || confirm ? null : await unchosen();
296761
296772
  if (!acting && !plain_key && !card) {
296762
296773
  return text4(`Not connected. A call uses the connected account as its poster and funding source. Ask them to open this link, sign in with Google and tap Connect, then call connect_account:
296763
296774
  ${await codeLink(review)}
@@ -296807,6 +296818,7 @@ Then call post_call again. Nothing was posted.`);
296807
296818
  ...moneySentence ? [moneySentence] : plan.share ? [`Of that, the network's share is ${pays(shareTotal, coinSymbol)} if every spot is paid (${shareWords2(plan.share, "today")}), on top of what each person receives: ${pays(plan.legs.find((one) => one.leg === "entries").payBase, coinSymbol)} for each passing entry.`] : [],
296808
296819
  `Next: ${LEG_WORDS[next]}, locking ${callLocks(leg.escrowBase, leg.feeBase, coinSymbol)}, plus a small network fee.`,
296809
296820
  actingNote(acting) ?? (review ? "Posting from your own account (this key), not the person's account; the AI decides each report alone, with no final OK from the person." : `Posting as this key, ${poster}.`),
296821
+ ...pick2 ? [pick2] : [],
296810
296822
  `Spent today (call): ${spentWords("call", coinSymbol)}. Every tool together: ${spentAllWords()}.`,
296811
296823
  ...call2.capWords(plan.legs.filter((one) => !draft.posted[one.leg]), CAP_BASE, coinSymbol, NETWORK2),
296812
296824
  ...call2.balanceWarnings(held2, { totalBase: plan.totalBase, feeTotal, symbol: coinSymbol, network: NETWORK2, feeWords }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/asks-mcp",
3
- "version": "1.12.1-dev.2",
3
+ "version": "1.12.2-dev.1",
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": {