agentcash 0.3.5 → 0.3.7
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/cjs/run-server.cjs +15151 -13301
- package/dist/esm/{chunk-NUYR6S4R.js → chunk-7E4JDDBW.js} +4 -4
- package/dist/esm/chunk-7E4JDDBW.js.map +1 -0
- package/dist/esm/{chunk-V5JYDONS.js → chunk-ED4QVIZH.js} +2 -2
- package/dist/esm/{chunk-LDXTW6MC.js → chunk-RP5AGYAT.js} +66 -40
- package/dist/esm/chunk-RP5AGYAT.js.map +1 -0
- package/dist/esm/{chunk-LXLFCKRE.js → chunk-SBLBP4FH.js} +2 -2
- package/dist/esm/{commands-N2AA3RBV.js → commands-JXKV7VMY.js} +14 -12
- package/dist/esm/commands-JXKV7VMY.js.map +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/{install-DSGWSVXN.js → install-IP2RBDST.js} +2 -2
- package/dist/esm/lib.d.ts +4 -2
- package/dist/esm/lib.js +3 -3
- package/dist/esm/{server-SCEZADBF.js → server-BEKXJWYB.js} +208 -229
- package/dist/esm/server-BEKXJWYB.js.map +1 -0
- package/dist/esm/shared/operations/index.js +3 -3
- package/package.json +4 -4
- package/dist/esm/chunk-LDXTW6MC.js.map +0 -1
- package/dist/esm/chunk-NUYR6S4R.js.map +0 -1
- package/dist/esm/commands-N2AA3RBV.js.map +0 -1
- package/dist/esm/server-SCEZADBF.js.map +0 -1
- /package/dist/esm/{chunk-V5JYDONS.js.map → chunk-ED4QVIZH.js.map} +0 -0
- /package/dist/esm/{chunk-LXLFCKRE.js.map → chunk-SBLBP4FH.js.map} +0 -0
- /package/dist/esm/{install-DSGWSVXN.js.map → install-IP2RBDST.js.map} +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -75,7 +75,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
|
|
|
75
75
|
default: "auto"
|
|
76
76
|
}),
|
|
77
77
|
async (args) => {
|
|
78
|
-
const { fetchCommand } = await import("./commands-
|
|
78
|
+
const { fetchCommand } = await import("./commands-JXKV7VMY.js");
|
|
79
79
|
await fetchCommand(
|
|
80
80
|
{
|
|
81
81
|
url: args.url,
|
|
@@ -109,7 +109,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
|
|
|
109
109
|
description: "Additional headers as JSON object"
|
|
110
110
|
}),
|
|
111
111
|
async (args) => {
|
|
112
|
-
const { checkCommand } = await import("./commands-
|
|
112
|
+
const { checkCommand } = await import("./commands-JXKV7VMY.js");
|
|
113
113
|
await checkCommand(
|
|
114
114
|
{
|
|
115
115
|
url: args.url,
|
|
@@ -129,7 +129,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
|
|
|
129
129
|
demandOption: true
|
|
130
130
|
}),
|
|
131
131
|
async (args) => {
|
|
132
|
-
const { discoverCommand } = await import("./commands-
|
|
132
|
+
const { discoverCommand } = await import("./commands-JXKV7VMY.js");
|
|
133
133
|
await discoverCommand({ url: args.url }, args);
|
|
134
134
|
}
|
|
135
135
|
).command(
|
|
@@ -140,7 +140,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
|
|
|
140
140
|
"Get wallet address, balance, and deposit link",
|
|
141
141
|
(yargs3) => yargs3,
|
|
142
142
|
async (args) => {
|
|
143
|
-
const { walletInfoCommand } = await import("./commands-
|
|
143
|
+
const { walletInfoCommand } = await import("./commands-JXKV7VMY.js");
|
|
144
144
|
await walletInfoCommand({}, args);
|
|
145
145
|
}
|
|
146
146
|
).command(
|
|
@@ -152,7 +152,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
|
|
|
152
152
|
demandOption: true
|
|
153
153
|
}),
|
|
154
154
|
async (args) => {
|
|
155
|
-
const { walletRedeemCommand } = await import("./commands-
|
|
155
|
+
const { walletRedeemCommand } = await import("./commands-JXKV7VMY.js");
|
|
156
156
|
await walletRedeemCommand({ code: args.code }, args);
|
|
157
157
|
}
|
|
158
158
|
).demandCommand(1, "You must specify a wallet subcommand").strict(),
|
|
@@ -184,7 +184,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
|
|
|
184
184
|
description: "Detailed report with context and repro steps"
|
|
185
185
|
}),
|
|
186
186
|
async (args) => {
|
|
187
|
-
const { reportErrorCommand } = await import("./commands-
|
|
187
|
+
const { reportErrorCommand } = await import("./commands-JXKV7VMY.js");
|
|
188
188
|
await reportErrorCommand(
|
|
189
189
|
{
|
|
190
190
|
tool: args.tool,
|
|
@@ -202,7 +202,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
|
|
|
202
202
|
"Start the MCP server (default when no command specified)",
|
|
203
203
|
(yargs2) => yargs2,
|
|
204
204
|
async (args) => {
|
|
205
|
-
const { serverCommand } = await import("./commands-
|
|
205
|
+
const { serverCommand } = await import("./commands-JXKV7VMY.js");
|
|
206
206
|
await serverCommand(args);
|
|
207
207
|
}
|
|
208
208
|
).command(
|
|
@@ -215,7 +215,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
|
|
|
215
215
|
default: isClaudeCode ? "claude-code" /* ClaudeCode */ : void 0
|
|
216
216
|
}),
|
|
217
217
|
async (args) => {
|
|
218
|
-
const { installMcpServer } = await import("./install-
|
|
218
|
+
const { installMcpServer } = await import("./install-IP2RBDST.js");
|
|
219
219
|
await installMcpServer(args);
|
|
220
220
|
}
|
|
221
221
|
).command(
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-KPEJO3KV.js";
|
|
5
5
|
import {
|
|
6
6
|
DIST_TAG
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SBLBP4FH.js";
|
|
8
8
|
import {
|
|
9
9
|
promptDeposit,
|
|
10
10
|
wait
|
|
@@ -701,4 +701,4 @@ var installMcpServer = async (flags) => {
|
|
|
701
701
|
export {
|
|
702
702
|
installMcpServer
|
|
703
703
|
};
|
|
704
|
-
//# sourceMappingURL=install-
|
|
704
|
+
//# sourceMappingURL=install-IP2RBDST.js.map
|
package/dist/esm/lib.d.ts
CHANGED
|
@@ -49,18 +49,20 @@ interface CheckEndpointResult {
|
|
|
49
49
|
interface CheckEndpointOptions {
|
|
50
50
|
surface: string;
|
|
51
51
|
url: string;
|
|
52
|
-
/** Methods to probe. Defaults to all
|
|
52
|
+
/** Methods to probe. Defaults to spec-defined methods, or all if no spec / probeAllMethods is set. */
|
|
53
53
|
methods?: SupportedMethod[];
|
|
54
54
|
body?: unknown;
|
|
55
55
|
headers?: Record<string, string>;
|
|
56
56
|
/** When true, include 404/405 responses in results. Useful when a specific method is targeted. */
|
|
57
57
|
includeMethodErrors?: boolean;
|
|
58
|
+
/** When true, probe all HTTP methods regardless of what the OpenAPI spec declares. */
|
|
59
|
+
probeAllMethods?: boolean;
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
60
62
|
* Probe an endpoint across one or more HTTP methods in parallel.
|
|
61
63
|
* Returns only the methods that responded with 402 or 2xx.
|
|
62
64
|
* Does not make any payment.
|
|
63
65
|
*/
|
|
64
|
-
declare function checkEndpoint({ surface, url, methods, body, headers, includeMethodErrors, }: CheckEndpointOptions): Promise<CheckEndpointResult>;
|
|
66
|
+
declare function checkEndpoint({ surface, url, methods, body, headers, includeMethodErrors, probeAllMethods, }: CheckEndpointOptions): Promise<CheckEndpointResult>;
|
|
65
67
|
|
|
66
68
|
export { type CheckEndpointOptions, type CheckEndpointResult, type DiscoveryResult, type ProbeMethodResult, SUPPORTED_METHODS, type SupportedMethod, checkEndpoint, discoverResources };
|
package/dist/esm/lib.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-ED4QVIZH.js";
|
|
2
2
|
import {
|
|
3
3
|
SUPPORTED_METHODS,
|
|
4
4
|
checkEndpoint,
|
|
5
5
|
discoverResources
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-RP5AGYAT.js";
|
|
7
|
+
import "./chunk-SBLBP4FH.js";
|
|
8
8
|
import "./chunk-PJFATGPH.js";
|
|
9
9
|
import "./chunk-ISR6DJ53.js";
|
|
10
10
|
export {
|