@ixo/asks-mcp 2.0.0 → 2.0.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.
- package/dist/asks-mcp.mjs +19 -3
- package/package.json +1 -1
package/dist/asks-mcp.mjs
CHANGED
|
@@ -266879,6 +266879,21 @@ var init_takeBack = __esm({
|
|
|
266879
266879
|
}
|
|
266880
266880
|
});
|
|
266881
266881
|
|
|
266882
|
+
// ../../app/lib/cashout/words.ts
|
|
266883
|
+
function waysFor(list7, country) {
|
|
266884
|
+
const shown2 = list7.filter((one) => one.reason !== "not_in_country");
|
|
266885
|
+
const fits = STRIPE_COUNTRIES.has(country) ? "stripe_bank" : "yellowcard_bank";
|
|
266886
|
+
const bank = shown2.filter((one) => one.method.endsWith("_bank")).sort((a, b) => Number(b.enabled !== false) - Number(a.enabled !== false) || Number(b.method === fits) - Number(a.method === fits))[0];
|
|
266887
|
+
return shown2.filter((one) => !one.method.endsWith("_bank") || one === bank);
|
|
266888
|
+
}
|
|
266889
|
+
var STRIPE_COUNTRIES;
|
|
266890
|
+
var init_words = __esm({
|
|
266891
|
+
"../../app/lib/cashout/words.ts"() {
|
|
266892
|
+
"use strict";
|
|
266893
|
+
STRIPE_COUNTRIES = new Set("AT BE BG CY CZ DE DK EE ES FI FR GR HR HU IE IS IT LI LT LU LV MT NL NO PL PT RO SE SI SK US GB CA CH".split(" "));
|
|
266894
|
+
}
|
|
266895
|
+
});
|
|
266896
|
+
|
|
266882
266897
|
// src/cashout.ts
|
|
266883
266898
|
var cashout_exports = {};
|
|
266884
266899
|
__export(cashout_exports, {
|
|
@@ -266887,7 +266902,7 @@ __export(cashout_exports, {
|
|
|
266887
266902
|
identityLine: () => identityLine
|
|
266888
266903
|
});
|
|
266889
266904
|
function whyOff(one) {
|
|
266890
|
-
if (one.enabled === false) return one.reason === "
|
|
266905
|
+
if (one.enabled === false) return one.reason === "coming_soon" ? "coming soon" : "busy right now, try later";
|
|
266891
266906
|
if (one.provider === "yellowcard-worker" || one.method.startsWith("yellowcard")) return "coming soon";
|
|
266892
266907
|
return null;
|
|
266893
266908
|
}
|
|
@@ -266931,7 +266946,7 @@ async function cashOut(deps, input) {
|
|
|
266931
266946
|
if (!country || !/^[A-Z]{2}$/.test(country)) return [`You have $${available.toFixed(2)} to cash out.`, kycLine, 'Which country are you in? (Ask the person; then call cash_out with country, like "NG" or "DE".)'].filter(Boolean).join("\n");
|
|
266932
266947
|
const info = await call2(deps, `/api/cashout/info?country=${country}`);
|
|
266933
266948
|
if (info.status !== 200) return said3(info);
|
|
266934
|
-
const methods = (info.body.methods ?? []).filter((one) => WAYS[one.method]).sort((a, b) => ORDER2.indexOf(a.method) - ORDER2.indexOf(b.method));
|
|
266949
|
+
const methods = waysFor(info.body.methods ?? [], country).filter((one) => WAYS[one.method]).sort((a, b) => ORDER2.indexOf(a.method) - ORDER2.indexOf(b.method));
|
|
266935
266950
|
const fee = info.body.fee;
|
|
266936
266951
|
if (!methods.some((one) => !whyOff(one))) return `We can't send money to ${country} yet.`;
|
|
266937
266952
|
const chosen2 = methods.find((one) => one.method === input.method && !whyOff(one));
|
|
@@ -267004,6 +267019,7 @@ var init_cashout = __esm({
|
|
|
267004
267019
|
"use strict";
|
|
267005
267020
|
init_accountProof();
|
|
267006
267021
|
init_inviteProof();
|
|
267022
|
+
init_words();
|
|
267007
267023
|
WAYS = {
|
|
267008
267024
|
stripe_bank: "To your bank account (through Stripe)",
|
|
267009
267025
|
yellowcard_bank: "To your bank account (through Yellow Card)",
|
|
@@ -292380,7 +292396,7 @@ import { randomBytes as randomBytes7 } from "node:crypto";
|
|
|
292380
292396
|
// package.json
|
|
292381
292397
|
var package_default = {
|
|
292382
292398
|
name: "@ixo/asks-mcp",
|
|
292383
|
-
version: "2.0.
|
|
292399
|
+
version: "2.0.1",
|
|
292384
292400
|
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.",
|
|
292385
292401
|
license: "Apache-2.0",
|
|
292386
292402
|
repository: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/asks-mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.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": {
|