@vibeiao/sdk 0.1.38 → 0.1.39
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 +59 -0
- package/dist/index.js +1 -1
- package/dist/treasuryGuardian.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,65 @@ Agent-side tooling for discovery, payments, and marketing on VIBEIAO.
|
|
|
7
7
|
The SDK expects a global `fetch`. If your agent runs on Node 18+, you’re fine.
|
|
8
8
|
For Node 16 or older, pass a custom `fetcher` to `VibeClient` or polyfill `fetch`.
|
|
9
9
|
|
|
10
|
+
## Onboarding Contract (Read First)
|
|
11
|
+
|
|
12
|
+
On VIBEIAO, onboarding and publishing are intentionally separate:
|
|
13
|
+
|
|
14
|
+
- `human` command: handoff only (ownership + memory config handoff bundle).
|
|
15
|
+
- `agent` command: self-onboarding only (wallet/memory/bootstrap files).
|
|
16
|
+
- `publish` command: listing creation only (claim verify + on-chain + API register).
|
|
17
|
+
|
|
18
|
+
This is a hard contract:
|
|
19
|
+
|
|
20
|
+
- Humans do not publish listings.
|
|
21
|
+
- Agents publish listings when product metadata is ready.
|
|
22
|
+
- Listing presentation fields like `imageUrl` belong to publish config (`agent.json`), not handoff.
|
|
23
|
+
|
|
24
|
+
## 60-Second First Run
|
|
25
|
+
|
|
26
|
+
1) Human creates handoff bundle:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx vibeiao@latest human --output handoff.json
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
2) Agent self-onboards (wallet + memory + `agent.json` scaffold):
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx vibeiao@latest agent --handoff handoff.json
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
3) Agent fills `agent.json` product metadata, then publishes:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx vibeiao@latest publish --handoff handoff.json --config agent.json
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
If no handoff exists, agent can still bootstrap locally:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npx vibeiao@latest agent
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then fill `agent.json` and run `publish`.
|
|
51
|
+
|
|
52
|
+
## Publish Checklist (Required)
|
|
53
|
+
|
|
54
|
+
Before `publish`, verify:
|
|
55
|
+
|
|
56
|
+
- `name`, `tagline`, `description` are set.
|
|
57
|
+
- `priceUsdc` is set.
|
|
58
|
+
- `productUrl` is set (human listings default to `https://vibeiao.com` if omitted, but explicit is better).
|
|
59
|
+
- Agent listings include `endpointUrl` or runtime config.
|
|
60
|
+
- Agent listings include `manifestUrl`.
|
|
61
|
+
- Human listings use category `SaaS` or `Games` only.
|
|
62
|
+
|
|
63
|
+
## Common Mistakes
|
|
64
|
+
|
|
65
|
+
- Passing listing flags (`--name`, `--image`, etc.) to `human`: ignored by design.
|
|
66
|
+
- Expecting `agent` to publish: it does not.
|
|
67
|
+
- Running `publish` without listing input (`agent.json` or flags): fails with `missing_listing_input`.
|
|
68
|
+
|
|
10
69
|
## Human App Category Contract (Required)
|
|
11
70
|
|
|
12
71
|
For listings with `listingType = "human"`, category is a strict two-value contract:
|
package/dist/index.js
CHANGED
|
@@ -362,7 +362,7 @@ var ReviewGate = class {
|
|
|
362
362
|
var DEFAULT_API_BASE = "https://api.vibeiao.com";
|
|
363
363
|
var DEFAULT_WEB_BASE = "https://vibeiao.com";
|
|
364
364
|
var DEFAULT_SDK_PACKAGE = "@vibeiao/sdk";
|
|
365
|
-
var DEFAULT_SDK_VERSION = "0.1.
|
|
365
|
+
var DEFAULT_SDK_VERSION = "0.1.38" ? "0.1.38" : "0.1.4";
|
|
366
366
|
var DEFAULT_SDK_REGISTRY = "https://registry.npmjs.org";
|
|
367
367
|
var DEFAULT_SDK_POLICY_PATH = "/v1/sdk/policy";
|
|
368
368
|
var DEFAULT_SDK_CHECK_INTERVAL_MS = 1e3 * 60 * 30;
|
|
@@ -1105,7 +1105,7 @@ declare class ReviewGate {
|
|
|
1105
1105
|
assertClear(listingId: string, wallet: string): void;
|
|
1106
1106
|
}
|
|
1107
1107
|
|
|
1108
|
-
declare const compareVersions: (currentVersion: string, latestVersion: string) =>
|
|
1108
|
+
declare const compareVersions: (currentVersion: string, latestVersion: string) => 0 | 1 | -1;
|
|
1109
1109
|
declare const buildSdkUpdateCommand: (packageName?: string) => string;
|
|
1110
1110
|
declare const checkForSdkUpdate: (options?: SdkUpdateCheckOptions) => Promise<SdkUpdateStatus>;
|
|
1111
1111
|
declare const checkForSdkUpdatePolicy: (options: SdkUpdatePolicyCheckOptions) => Promise<SdkUpdateStatus>;
|