@nuanu-ai/agentify 0.2.4 → 0.2.6
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 +12 -8
- package/dist/client.d.ts +10 -5
- package/dist/client.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ const agentify = createClient({
|
|
|
34
34
|
|
|
35
35
|
There are two addresses, one per world. At `https://test.agentify.ad` you
|
|
36
36
|
build: payments settle on a test chain and the money there is not real. At
|
|
37
|
-
`https://
|
|
37
|
+
`https://agentify.ad` you sell, and it is. A key issued in one does not
|
|
38
38
|
open the other, and the key says which one you are holding: `csk_test_` for the
|
|
39
39
|
first, `csk_live_` for the second. This package picks neither address for you,
|
|
40
40
|
and the worker's first log line names the one it started against and whether
|
|
@@ -107,17 +107,21 @@ in files.
|
|
|
107
107
|
That is one half of checking yourself. The other half — whether your handler
|
|
108
108
|
holds against a real order, and against that same order arriving twice — is a
|
|
109
109
|
test purchase on the test site rather than anything this command can do; the
|
|
110
|
-
[quickstart](https://
|
|
110
|
+
[quickstart](https://agentify.ad/docs/quickstart) walks you through one.
|
|
111
111
|
|
|
112
112
|
## Where the rest of it is written
|
|
113
113
|
|
|
114
114
|
The merchant documentation is public. [The first test
|
|
115
|
-
sale](https://
|
|
116
|
-
a test purchase your side runs end to end
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
wrong](https://
|
|
115
|
+
sale](https://agentify.ad/docs/quickstart) walks from an empty project to
|
|
116
|
+
a test purchase your side runs end to end. Beside it are [the product
|
|
117
|
+
card](https://agentify.ad/docs/cards) field by field, [orders and fulfillment
|
|
118
|
+
modes](https://agentify.ad/docs/orders) for delivering later rather than in
|
|
119
|
+
the answer to the purchase, and [what can go
|
|
120
|
+
wrong](https://agentify.ad/docs/failures). For whoever decides whether to
|
|
121
|
+
connect at all, [Connecting to Agentify](https://agentify.ad/docs/),
|
|
122
|
+
[Money](https://agentify.ad/docs/money) and the [common
|
|
123
|
+
questions](https://agentify.ad/docs/faq) are written for the owner rather
|
|
124
|
+
than the engineer.
|
|
121
125
|
|
|
122
126
|
## Versions
|
|
123
127
|
|
package/dist/client.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface ClientOptions {
|
|
|
72
72
|
readonly apiKey: string | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* Where the gateway is: `https://test.agentify.ad` while the merchant
|
|
75
|
-
* is building, `https://
|
|
75
|
+
* is building, `https://agentify.ad` once they are live.
|
|
76
76
|
*
|
|
77
77
|
* Optional, and there is deliberately no default behind it. Both addresses
|
|
78
78
|
* are settled and this package still refuses to pick one, because which of
|
|
@@ -241,11 +241,16 @@ export interface OrdersNamespace {
|
|
|
241
241
|
*/
|
|
242
242
|
get(orderId: string): Promise<LiveOrderWithStatus>;
|
|
243
243
|
/**
|
|
244
|
-
* Orders and the states they are in; with `open`, only
|
|
245
|
-
*
|
|
244
|
+
* Orders and the states they are in; with `open`, only the ones this worker
|
|
245
|
+
* should walk.
|
|
246
246
|
*
|
|
247
|
-
* The list is what a process reads after a restart:
|
|
248
|
-
*
|
|
247
|
+
* The list is what a process reads after a restart: the orders it was handed
|
|
248
|
+
* and has not finished, each able to be delivered or refused on the spot,
|
|
249
|
+
* together with the two that stay open once the purchase itself is over — an
|
|
250
|
+
* order owing a refund, and one delivered that was never paid for. An order
|
|
251
|
+
* that was priced and never paid is not on it. That one never reached the
|
|
252
|
+
* handler, and making the goods for it would be making them for a purchase
|
|
253
|
+
* that did not happen; it stays readable by its identifier through `get`.
|
|
249
254
|
*/
|
|
250
255
|
list(query?: {
|
|
251
256
|
readonly open?: boolean;
|
package/dist/client.js
CHANGED
|
@@ -292,7 +292,7 @@ export const createClient = (options) => {
|
|
|
292
292
|
};
|
|
293
293
|
const reachable = () => {
|
|
294
294
|
if (gateway.baseUrl === "") {
|
|
295
|
-
throw new TypeError("this client has no gateway address: pass baseUrl to createClient — https://test.agentify.ad while you are building, https://
|
|
295
|
+
throw new TypeError("this client has no gateway address: pass baseUrl to createClient — https://test.agentify.ad while you are building, https://agentify.ad once you are live. There is no default on purpose: which of the two you talk to is the difference between a sale and a rehearsal, and an address this package chose for you would point somebody's production at the wrong one without a word");
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuanu-ai/agentify",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Sell your existing products to AI agents: publish product cards to an x402 storefront and fill the paid orders from your own service.",
|
|
6
6
|
"keywords": [
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"stablecoin-payments",
|
|
12
12
|
"usdc"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://
|
|
14
|
+
"homepage": "https://agentify.ad/docs/",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"vitest": "^4.1.11",
|
|
43
|
-
"@agentify/
|
|
43
|
+
"@agentify/core": "0.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsc -p tsconfig.build.json",
|