@vibechain/os 0.2.0 → 0.2.1
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/AGENTS.md +8 -9
- package/README.md +11 -11
- package/dist/cli.js +2 -2
- package/package.json +12 -7
package/AGENTS.md
CHANGED
|
@@ -20,23 +20,22 @@ scripts, fonts, APIs, workers or wallet libraries. Bundle your dependencies/asse
|
|
|
20
20
|
Install the published package in an independent game project:
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
|
-
npm install @vibechain/os@0.2.
|
|
23
|
+
npm install @vibechain/os@0.2.1
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
To use a reviewed local SDK tarball instead, build it
|
|
26
|
+
To use a reviewed local SDK tarball instead, build it from the SDK package directory:
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
yarn pack --filename /tmp/vibechain-os-0.2.0.tgz
|
|
29
|
+
pnpm install --frozen-lockfile
|
|
30
|
+
pnpm review
|
|
31
|
+
pnpm build
|
|
32
|
+
pnpm pack --out /tmp/vibechain-os-0.2.1.tgz
|
|
34
33
|
```
|
|
35
34
|
|
|
36
35
|
In an independent game project, install that tarball:
|
|
37
36
|
|
|
38
37
|
```sh
|
|
39
|
-
npm install /tmp/vibechain-os-0.2.
|
|
38
|
+
npm install /tmp/vibechain-os-0.2.1.tgz
|
|
40
39
|
npm install --save-dev typescript esbuild
|
|
41
40
|
```
|
|
42
41
|
|
|
@@ -144,7 +143,7 @@ npx vibemarket-game pack dist my-cat-game.zip
|
|
|
144
143
|
|
|
145
144
|
Run the host from its verified checkout using its existing local stack. Use
|
|
146
145
|
`http://127.0.0.1:<port>/market/games?manage=1` (localhost also works). In the host's
|
|
147
|
-
`vibechain/` directory run `
|
|
146
|
+
`vibechain/` directory run `pnpm games:publisher-token`; paste that local operator
|
|
148
147
|
credential into Developer Studio. Do not commit/share this token. Upload the ZIP,
|
|
149
148
|
inspect permissions and collection, preview, then select **Publish to dev**.
|
|
150
149
|
Uploading never publishes automatically. Draft links are unlisted bearer links;
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Build games, tools and desktop apps for VibeMarket OS with TypeScript. Start wit
|
|
|
5
5
|
## Quickstart
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npx --yes @vibechain/os@0.2.
|
|
8
|
+
npx --yes @vibechain/os@0.2.1 init my-app
|
|
9
9
|
cd my-app
|
|
10
10
|
npm install
|
|
11
11
|
npm run build
|
|
@@ -17,7 +17,7 @@ Open the printed `http://127.0.0.1:PORT` address. Stamp Club is a complete start
|
|
|
17
17
|
The starter includes TypeScript and esbuild and pins your SDK version. To install from a downloaded SDK archive, supply its absolute path to npm and the initializer:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
npm exec --yes --package=/absolute/path/vibechain-os-0.2.
|
|
20
|
+
npm exec --yes --package=/absolute/path/vibechain-os-0.2.1.tgz -- os init my-app /absolute/path/vibechain-os-0.2.1.tgz
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
That explicit fallback keeps a `file:` archive dependency; retain the archive for later reinstalls. Use a supported Node.js release: `^22.23.4`, `^24.22.1` or `^26.12.1`.
|
|
@@ -47,7 +47,7 @@ Manifest: use schema/sdkVersion1, `permissions: []` and `collectionId: null`. Ap
|
|
|
47
47
|
|
|
48
48
|
Your app owns its intro, artwork and custom loading screen. Render those inside the app frame and call `ready()` when your initial UI is usable; readiness does not have to wait for the player to press Start. The host keeps its normal readiness deadline. Use bundled artwork and the existing asset rules.
|
|
49
49
|
|
|
50
|
-
Both `connectVibeMarketApp()` and `connectGameSdk()` expose the same completion signal
|
|
50
|
+
Both `connectVibeMarketApp()` and `connectGameSdk()` expose the same completion signal since 0.2.0:
|
|
51
51
|
|
|
52
52
|
```ts
|
|
53
53
|
await app.game.finish({ score: 42 });
|
|
@@ -55,7 +55,7 @@ await app.game.finish({ score: 42 });
|
|
|
55
55
|
|
|
56
56
|
`score` must be an integer from 0 through 1,000,000,000, with no other input fields. It is a reported game score. The host owns the final screen and Play again control. Completion is single-shot for that open controller, including suspended generations: retrying the same score acknowledges the accepted result; changing the score is rejected. The host posts acknowledgement before showing results. If the frame closes before it receives that acknowledgement, inspect the host result rather than assuming the completion failed.
|
|
57
57
|
|
|
58
|
-
Completion does not grant Cash, XP, inventory or a wallet action. The local preview and collection host report score only. An approved host may show an existing Cash award only after its own registered game policy and server reward flow confirm it; the frame cannot select a reward amount or supply proof of payment. Older hosts may not understand this additive method; use
|
|
58
|
+
Completion does not grant Cash, XP, inventory or a wallet action. The local preview and collection host report score only. An approved host may show an existing Cash award only after its own registered game policy and server reward flow confirm it; the frame cannot select a reward amount or supply proof of payment. Older hosts may not understand this additive method; use a matching 0.2.x host/preview.
|
|
59
59
|
|
|
60
60
|
## Publishing status
|
|
61
61
|
|
|
@@ -66,15 +66,15 @@ See the [SDK docs](https://vibechain.com/os/docs) for the app API and [SECURITY.
|
|
|
66
66
|
## Maintainer workflow
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
pnpm install --frozen-lockfile
|
|
70
|
+
pnpm review
|
|
71
|
+
pnpm build
|
|
72
|
+
pnpm check:package
|
|
73
|
+
pnpm release:preview --version 0.2.1
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
`
|
|
76
|
+
`pnpm build` emits JavaScript/declarations plus one bundled preview host UI. Production publishing still requires a separate reviewed service and explicit activation. The existing local upload/publish/rollback commands retain their operator-token and loopback gates. Read [SECURITY.md](SECURITY.md) before integrating any untrusted app.
|
|
77
77
|
|
|
78
78
|
## License
|
|
79
79
|
|
|
80
|
-
This package, including its bundled examples, is licensed under [MIT](LICENSE), copyright 2026 Beb, Inc. This license applies only to `@vibechain/os`; it does not relicense VibeMarket OS host code,
|
|
80
|
+
This package, including its bundled examples, is licensed under [MIT](LICENSE), copyright 2026 Beb, Inc. This license applies only to `@vibechain/os`; it does not relicense VibeMarket OS host code, other Vibechain software, other SDK packages or third-party dependencies. Their own terms continue to apply.
|
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ export async function runCli(argv, runtime = createCliRuntime()) {
|
|
|
13
13
|
if (command === "init") {
|
|
14
14
|
if (!args[0] || args.length > 2)
|
|
15
15
|
throw Error("Usage: os init <empty-directory> [sdk.tgz]");
|
|
16
|
-
runtime.log(`Created ${await createApp(args[0], args[1])}. Run npm install,
|
|
16
|
+
runtime.log(`Created ${await createApp(args[0], args[1])}. Run npm install, yarn run build, then yarn run dev there.`);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
if (command === "assets") {
|
|
@@ -57,7 +57,7 @@ export async function runCli(argv, runtime = createCliRuntime()) {
|
|
|
57
57
|
throw Error("The internal publisher only accepts loopback HTTP URLs.");
|
|
58
58
|
const token = runtime.env.VIBEMARKET_PUBLISH_TOKEN;
|
|
59
59
|
if (!token)
|
|
60
|
-
throw Error("Set VIBEMARKET_PUBLISH_TOKEN. In the host checkout run
|
|
60
|
+
throw Error("Set VIBEMARKET_PUBLISH_TOKEN. In the host checkout run pnpm games:publisher-token to provision/read it.");
|
|
61
61
|
const headers = { Authorization: `Bearer ${token}`, "X-Vibe-Publisher": "1", "Content-Type": command === "upload" ? "application/zip" : "application/json" };
|
|
62
62
|
let body;
|
|
63
63
|
if (command === "upload") {
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibechain/os",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"registry": "https://registry.npmjs.org/"
|
|
8
|
+
},
|
|
7
9
|
"homepage": "https://vibechain.com/os/docs",
|
|
8
|
-
"engines": {
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": "^22.23.4 || ^24.22.1 || ^26.12.1"
|
|
12
|
+
},
|
|
9
13
|
"type": "module",
|
|
10
14
|
"description": "Build games, tools and desktop apps for VibeMarket OS with TypeScript",
|
|
11
15
|
"types": "./dist/index.d.ts",
|
|
@@ -33,9 +37,9 @@
|
|
|
33
37
|
"scripts": {
|
|
34
38
|
"build": "tsc && esbuild src/preview-parent.ts --bundle --minify --format=esm --target=es2022 --outfile=dist/preview-ui.js",
|
|
35
39
|
"typecheck": "tsc --noEmit",
|
|
36
|
-
"review": "
|
|
40
|
+
"review": "pnpm typecheck && tsc -p examples/tsconfig.json && vitest run --coverage",
|
|
37
41
|
"check:package": "publint --pack npm && attw --pack --profile esm-only",
|
|
38
|
-
"prepublishOnly": "
|
|
42
|
+
"prepublishOnly": "pnpm review && pnpm build && pnpm check:package",
|
|
39
43
|
"release:preview": "node --experimental-strip-types ../release/src/cli.mts os",
|
|
40
44
|
"release": "node --experimental-strip-types ../release/src/cli.mts os --publish"
|
|
41
45
|
},
|
|
@@ -52,5 +56,6 @@
|
|
|
52
56
|
"three": "0.175.0",
|
|
53
57
|
"typescript": "^5.9.3",
|
|
54
58
|
"vitest": "3.2.7"
|
|
55
|
-
}
|
|
59
|
+
},
|
|
60
|
+
"packageManager": "pnpm@12.17.0"
|
|
56
61
|
}
|