@obolos_tech/cli 0.3.3 → 0.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/README.md +35 -1
- package/dist/commands/anp.d.ts +277 -0
- package/dist/commands/anp.js +440 -0
- package/dist/commands/anp.js.map +1 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.js +34 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/jobs.d.ts +111 -0
- package/dist/commands/jobs.js +294 -0
- package/dist/commands/jobs.js.map +1 -0
- package/dist/commands/listings.d.ts +128 -0
- package/dist/commands/listings.js +246 -0
- package/dist/commands/listings.js.map +1 -0
- package/dist/commands/marketplace.d.ts +87 -0
- package/dist/commands/marketplace.js +133 -0
- package/dist/commands/marketplace.js.map +1 -0
- package/dist/commands/reputation.d.ts +27 -0
- package/dist/commands/reputation.js +114 -0
- package/dist/commands/reputation.js.map +1 -0
- package/dist/commands/setup.d.ts +78 -0
- package/dist/commands/setup.js +133 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/wallet.d.ts +30 -0
- package/dist/commands/wallet.js +66 -0
- package/dist/commands/wallet.js.map +1 -0
- package/dist/index.d.ts +4 -24
- package/dist/index.js +61 -2516
- package/dist/index.js.map +1 -1
- package/dist/registry.d.ts +53 -0
- package/dist/registry.js +39 -0
- package/dist/registry.js.map +1 -0
- package/dist/runtime/acp.d.ts +162 -0
- package/dist/runtime/acp.js +132 -0
- package/dist/runtime/acp.js.map +1 -0
- package/dist/runtime/anp.d.ts +214 -0
- package/dist/runtime/anp.js +255 -0
- package/dist/runtime/anp.js.map +1 -0
- package/dist/runtime/argv.d.ts +18 -0
- package/dist/runtime/argv.js +114 -0
- package/dist/runtime/argv.js.map +1 -0
- package/dist/runtime/config.d.ts +14 -0
- package/dist/runtime/config.js +34 -0
- package/dist/runtime/config.js.map +1 -0
- package/dist/runtime/dispatch.d.ts +13 -0
- package/dist/runtime/dispatch.js +123 -0
- package/dist/runtime/dispatch.js.map +1 -0
- package/dist/runtime/display.d.ts +21 -0
- package/dist/runtime/display.js +68 -0
- package/dist/runtime/display.js.map +1 -0
- package/dist/runtime/errors.d.ts +19 -0
- package/dist/runtime/errors.js +23 -0
- package/dist/runtime/errors.js.map +1 -0
- package/dist/runtime/http.d.ts +9 -0
- package/dist/runtime/http.js +36 -0
- package/dist/runtime/http.js.map +1 -0
- package/dist/runtime/output.d.ts +19 -0
- package/dist/runtime/output.js +12 -0
- package/dist/runtime/output.js.map +1 -0
- package/dist/runtime/payment.d.ts +21 -0
- package/dist/runtime/payment.js +91 -0
- package/dist/runtime/payment.js.map +1 -0
- package/dist/runtime/wallet.d.ts +32 -0
- package/dist/runtime/wallet.js +44 -0
- package/dist/runtime/wallet.js.map +1 -0
- package/dist/schema/json-schema.d.ts +10 -0
- package/dist/schema/json-schema.js +34 -0
- package/dist/schema/json-schema.js.map +1 -0
- package/dist/schema/zod-shape.d.ts +9 -0
- package/dist/schema/zod-shape.js +36 -0
- package/dist/schema/zod-shape.js.map +1 -0
- package/package.json +46 -4
- package/scripts/lint-stdout-purity.mjs +62 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Obolos CLI
|
|
2
2
|
|
|
3
|
-
**Search, browse, and call x402 APIs from the terminal.**
|
|
3
|
+
**Search, browse, and call x402 APIs from the terminal. Manage ACP jobs and ANP negotiations — including signed in-job messaging — without leaving your shell.**
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npx @obolos/cli search "token price"
|
|
@@ -10,6 +10,8 @@ npx @obolos/cli call ext-abc123 --body '{"symbol":"ETH"}'
|
|
|
10
10
|
|
|
11
11
|
## Commands
|
|
12
12
|
|
|
13
|
+
### Marketplace
|
|
14
|
+
|
|
13
15
|
| Command | Description |
|
|
14
16
|
|---------|-------------|
|
|
15
17
|
| `obolos search [query]` | Search APIs by keyword |
|
|
@@ -19,6 +21,38 @@ npx @obolos/cli call ext-abc123 --body '{"symbol":"ETH"}'
|
|
|
19
21
|
| `obolos balance` | Check wallet USDC balance |
|
|
20
22
|
| `obolos setup-mcp` | Show MCP server setup instructions |
|
|
21
23
|
|
|
24
|
+
### Jobs (ACP)
|
|
25
|
+
|
|
26
|
+
| Command | Description |
|
|
27
|
+
|---------|-------------|
|
|
28
|
+
| `obolos job create` | Create a new ACP job with title, description, and budget |
|
|
29
|
+
| `obolos job list` | List jobs (filter by status: open, funded, submitted, completed) |
|
|
30
|
+
| `obolos job info <id>` | Get full job details and current state |
|
|
31
|
+
|
|
32
|
+
### ANP Negotiation
|
|
33
|
+
|
|
34
|
+
| Command | Description |
|
|
35
|
+
|---------|-------------|
|
|
36
|
+
| `obolos anp list` | List ANP listings (filter by status) |
|
|
37
|
+
| `obolos anp bid <listing_id>` | Submit a signed bid on a listing |
|
|
38
|
+
| `obolos anp accept <bid_id>` | Accept a bid (creates signed acceptance document) |
|
|
39
|
+
| `obolos anp settle <acceptance_id>` | Settle an accepted negotiation on-chain |
|
|
40
|
+
|
|
41
|
+
### ANP In-Job Messaging (IML)
|
|
42
|
+
|
|
43
|
+
Once a job is funded, IML commands let both parties communicate, amend scope, and track milestones — all with EIP-712 signatures and content-addressed storage. No message can be repudiated.
|
|
44
|
+
|
|
45
|
+
| Command | Description |
|
|
46
|
+
|---------|-------------|
|
|
47
|
+
| `obolos anp message <job_id>` | Send a signed in-job message |
|
|
48
|
+
| `obolos anp thread <job_id>` | View the full job thread (messages, amendments, checkpoints) |
|
|
49
|
+
| `obolos anp amend <job_id>` | Propose a scope or price amendment |
|
|
50
|
+
| `obolos anp accept-amend <job_id>` | Accept a pending amendment |
|
|
51
|
+
| `obolos anp checkpoint <job_id>` | Submit a milestone checkpoint for review |
|
|
52
|
+
| `obolos anp approve-cp <job_id>` | Approve a submitted checkpoint |
|
|
53
|
+
| `obolos anp amendments <job_id>` | List all amendments on a job |
|
|
54
|
+
| `obolos anp checkpoints <job_id>` | List all checkpoints on a job |
|
|
55
|
+
|
|
22
56
|
## Environment Variables
|
|
23
57
|
|
|
24
58
|
| Variable | Required | Description |
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ANP commands (Agent Negotiation Protocol): list, info, create, bid, accept, verify.
|
|
3
|
+
* Advanced primitives (message/thread/amend/checkpoint) remain on the legacy
|
|
4
|
+
* path until this group stabilizes.
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from '../registry.js';
|
|
7
|
+
export declare const anpListCmd: Command<{
|
|
8
|
+
status: {
|
|
9
|
+
type: "string";
|
|
10
|
+
description: string;
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
limit: {
|
|
14
|
+
type: "number";
|
|
15
|
+
description: string;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
listings: any;
|
|
20
|
+
total: any;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const anpInfoCmd: Command<{
|
|
23
|
+
cid: {
|
|
24
|
+
type: "string";
|
|
25
|
+
description: string;
|
|
26
|
+
positional: number;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
}, any>;
|
|
30
|
+
export declare const anpCreateCmd: Command<{
|
|
31
|
+
title: {
|
|
32
|
+
type: "string";
|
|
33
|
+
description: string;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
description: {
|
|
37
|
+
type: "string";
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
'min-budget': {
|
|
41
|
+
type: "number";
|
|
42
|
+
description: string;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
'max-budget': {
|
|
46
|
+
type: "number";
|
|
47
|
+
description: string;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
deadline: {
|
|
51
|
+
type: "string";
|
|
52
|
+
description: string;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
duration: {
|
|
56
|
+
type: "string";
|
|
57
|
+
description: string;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
evaluator: {
|
|
61
|
+
type: "string";
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
cid: any;
|
|
66
|
+
signer: any;
|
|
67
|
+
signature: any;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const anpBidCmd: Command<{
|
|
70
|
+
cid: {
|
|
71
|
+
type: "string";
|
|
72
|
+
description: string;
|
|
73
|
+
positional: number;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
price: {
|
|
77
|
+
type: "number";
|
|
78
|
+
description: string;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
delivery: {
|
|
82
|
+
type: "string";
|
|
83
|
+
description: string;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
message: {
|
|
87
|
+
type: "string";
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
cid: any;
|
|
92
|
+
listingCid: string;
|
|
93
|
+
price: number;
|
|
94
|
+
signer: any;
|
|
95
|
+
signature: any;
|
|
96
|
+
}>;
|
|
97
|
+
export declare const anpAcceptCmd: Command<{
|
|
98
|
+
cid: {
|
|
99
|
+
type: "string";
|
|
100
|
+
description: string;
|
|
101
|
+
positional: number;
|
|
102
|
+
required: true;
|
|
103
|
+
};
|
|
104
|
+
bid: {
|
|
105
|
+
type: "string";
|
|
106
|
+
description: string;
|
|
107
|
+
required: true;
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
cid: any;
|
|
111
|
+
listingCid: string;
|
|
112
|
+
bidCid: string;
|
|
113
|
+
signer: any;
|
|
114
|
+
signature: any;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const anpVerifyCmd: Command<{
|
|
117
|
+
cid: {
|
|
118
|
+
type: "string";
|
|
119
|
+
description: string;
|
|
120
|
+
positional: number;
|
|
121
|
+
required: true;
|
|
122
|
+
};
|
|
123
|
+
}, any>;
|
|
124
|
+
export declare const anpMessageCmd: Command<{
|
|
125
|
+
job: {
|
|
126
|
+
type: "string";
|
|
127
|
+
description: string;
|
|
128
|
+
positional: number;
|
|
129
|
+
required: true;
|
|
130
|
+
};
|
|
131
|
+
message: {
|
|
132
|
+
type: "string";
|
|
133
|
+
description: string;
|
|
134
|
+
required: true;
|
|
135
|
+
};
|
|
136
|
+
role: {
|
|
137
|
+
type: "string";
|
|
138
|
+
description: string;
|
|
139
|
+
enum: string[];
|
|
140
|
+
default: string;
|
|
141
|
+
};
|
|
142
|
+
}, {
|
|
143
|
+
cid: any;
|
|
144
|
+
jobId: string;
|
|
145
|
+
role: string;
|
|
146
|
+
signer: any;
|
|
147
|
+
}>;
|
|
148
|
+
export declare const anpThreadCmd: Command<{
|
|
149
|
+
job: {
|
|
150
|
+
type: "string";
|
|
151
|
+
description: string;
|
|
152
|
+
positional: number;
|
|
153
|
+
required: true;
|
|
154
|
+
};
|
|
155
|
+
}, {
|
|
156
|
+
jobId: string;
|
|
157
|
+
messages: any;
|
|
158
|
+
}>;
|
|
159
|
+
export declare const anpAmendCmd: Command<{
|
|
160
|
+
job: {
|
|
161
|
+
type: "string";
|
|
162
|
+
description: string;
|
|
163
|
+
positional: number;
|
|
164
|
+
required: true;
|
|
165
|
+
};
|
|
166
|
+
'bid-hash': {
|
|
167
|
+
type: "string";
|
|
168
|
+
description: string;
|
|
169
|
+
required: true;
|
|
170
|
+
};
|
|
171
|
+
reason: {
|
|
172
|
+
type: "string";
|
|
173
|
+
description: string;
|
|
174
|
+
required: true;
|
|
175
|
+
};
|
|
176
|
+
price: {
|
|
177
|
+
type: "number";
|
|
178
|
+
description: string;
|
|
179
|
+
};
|
|
180
|
+
delivery: {
|
|
181
|
+
type: "string";
|
|
182
|
+
description: string;
|
|
183
|
+
};
|
|
184
|
+
'scope-delta': {
|
|
185
|
+
type: "string";
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
}, {
|
|
189
|
+
cid: any;
|
|
190
|
+
jobId: string;
|
|
191
|
+
price: number;
|
|
192
|
+
delivery: string;
|
|
193
|
+
reason: string;
|
|
194
|
+
}>;
|
|
195
|
+
export declare const anpAcceptAmendCmd: Command<{
|
|
196
|
+
job: {
|
|
197
|
+
type: "string";
|
|
198
|
+
description: string;
|
|
199
|
+
positional: number;
|
|
200
|
+
required: true;
|
|
201
|
+
};
|
|
202
|
+
amendment: {
|
|
203
|
+
type: "string";
|
|
204
|
+
description: string;
|
|
205
|
+
required: true;
|
|
206
|
+
};
|
|
207
|
+
}, {
|
|
208
|
+
cid: any;
|
|
209
|
+
jobId: string;
|
|
210
|
+
amendmentCid: string;
|
|
211
|
+
}>;
|
|
212
|
+
export declare const anpAmendmentsCmd: Command<{
|
|
213
|
+
job: {
|
|
214
|
+
type: "string";
|
|
215
|
+
description: string;
|
|
216
|
+
positional: number;
|
|
217
|
+
required: true;
|
|
218
|
+
};
|
|
219
|
+
}, {
|
|
220
|
+
jobId: string;
|
|
221
|
+
amendments: any;
|
|
222
|
+
}>;
|
|
223
|
+
export declare const anpCheckpointCmd: Command<{
|
|
224
|
+
job: {
|
|
225
|
+
type: "string";
|
|
226
|
+
description: string;
|
|
227
|
+
positional: number;
|
|
228
|
+
required: true;
|
|
229
|
+
};
|
|
230
|
+
deliverable: {
|
|
231
|
+
type: "string";
|
|
232
|
+
description: string;
|
|
233
|
+
required: true;
|
|
234
|
+
};
|
|
235
|
+
milestone: {
|
|
236
|
+
type: "number";
|
|
237
|
+
description: string;
|
|
238
|
+
default: number;
|
|
239
|
+
};
|
|
240
|
+
notes: {
|
|
241
|
+
type: "string";
|
|
242
|
+
description: string;
|
|
243
|
+
};
|
|
244
|
+
}, {
|
|
245
|
+
cid: any;
|
|
246
|
+
jobId: string;
|
|
247
|
+
milestone: number;
|
|
248
|
+
}>;
|
|
249
|
+
export declare const anpApproveCpCmd: Command<{
|
|
250
|
+
job: {
|
|
251
|
+
type: "string";
|
|
252
|
+
description: string;
|
|
253
|
+
positional: number;
|
|
254
|
+
required: true;
|
|
255
|
+
};
|
|
256
|
+
checkpoint: {
|
|
257
|
+
type: "string";
|
|
258
|
+
description: string;
|
|
259
|
+
required: true;
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
cid: any;
|
|
263
|
+
jobId: string;
|
|
264
|
+
checkpointCid: string;
|
|
265
|
+
}>;
|
|
266
|
+
export declare const anpCheckpointsCmd: Command<{
|
|
267
|
+
job: {
|
|
268
|
+
type: "string";
|
|
269
|
+
description: string;
|
|
270
|
+
positional: number;
|
|
271
|
+
required: true;
|
|
272
|
+
};
|
|
273
|
+
}, {
|
|
274
|
+
jobId: string;
|
|
275
|
+
checkpoints: any;
|
|
276
|
+
}>;
|
|
277
|
+
export declare const anpCommands: Command[];
|