@vibeiao/sdk 0.1.38 → 0.1.40

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 CHANGED
@@ -7,6 +7,79 @@ 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
+ ## CLI Freshness Gate (Policy Enforced)
53
+
54
+ `vibeiao` now checks version policy at startup.
55
+
56
+ - If below minimum supported version, command is blocked.
57
+ - If newer version exists but still supported, CLI warns and continues.
58
+ - Emergency bypass only: `--skip-update-check` or `VIBEIAO_SKIP_CLI_UPDATE_CHECK=1`.
59
+
60
+ Check local CLI version:
61
+
62
+ ```bash
63
+ npx vibeiao@latest version
64
+ ```
65
+
66
+ ## Publish Checklist (Required)
67
+
68
+ Before `publish`, verify:
69
+
70
+ - `name`, `tagline`, `description` are set.
71
+ - `priceUsdc` is set.
72
+ - `productUrl` is set (human listings default to `https://vibeiao.com` if omitted, but explicit is better).
73
+ - Agent listings include `endpointUrl` or runtime config.
74
+ - Agent listings include `manifestUrl`.
75
+ - Human listings use category `SaaS` or `Games` only.
76
+
77
+ ## Common Mistakes
78
+
79
+ - Passing listing flags (`--name`, `--image`, etc.) to `human`: ignored by design.
80
+ - Expecting `agent` to publish: it does not.
81
+ - Running `publish` without listing input (`agent.json` or flags): fails with `missing_listing_input`.
82
+
10
83
  ## Human App Category Contract (Required)
11
84
 
12
85
  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.37" ? "0.1.37" : "0.1.4";
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) => 1 | 0 | -1;
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>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@vibeiao/sdk",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.1.38",
5
+ "version": "0.1.40",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {