@forgeax/game 0.3.4 → 0.3.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 +16 -5
- package/assets/asset3d/adapter/SKILL.md +56 -0
- package/assets/asset3d/provider/{asset3d-search-provider-c181c48fbffc933a7ce9a0836f7878ca5e6d77e1-darwin-arm64.tar.gz → asset3d-search-provider-a274238712c1dced99e4aa3148a0d15904ce2a90-darwin-arm64.tar.gz} +0 -0
- package/assets/asset3d/provider/{asset3d-search-provider-c181c48fbffc933a7ce9a0836f7878ca5e6d77e1-linux-x64.tar.gz → asset3d-search-provider-a274238712c1dced99e4aa3148a0d15904ce2a90-linux-x64.tar.gz} +0 -0
- package/assets/asset3d/schemas/result-1.0.0.json +122 -3
- package/assets/skills/forgeax-game/SKILL.md +16 -3
- package/dist/main.js +391 -132
- package/docs/asset3d.md +13 -1
- package/docs/release-0.3.5.md +32 -0
- package/package.json +4 -3
package/docs/asset3d.md
CHANGED
|
@@ -137,6 +137,14 @@ has its path, byte count, and digest in the ownership manifest.
|
|
|
137
137
|
|
|
138
138
|
## Transaction protocol
|
|
139
139
|
|
|
140
|
+
For native Packs, first call `list_asset_candidates` with English queries and
|
|
141
|
+
choose a suitable returned `assetId` by name and format. This does not download
|
|
142
|
+
assets or call an auxiliary LLM. Keep the same query text in `asset3d begin`, then
|
|
143
|
+
call `search_asset` with `queries: [{content: "<query>", assetId: "<selected ID>"}]`
|
|
144
|
+
and `output_format: "asset"`. The Provider checks that the ID still belongs to the
|
|
145
|
+
live query results; an invented or stale ID fails instead of selecting another
|
|
146
|
+
asset. A GLB result does not prove native Pack support.
|
|
147
|
+
|
|
140
148
|
1. `asset3d begin` records a private journal with a new execution UUID, query digest,
|
|
141
149
|
provider identity, exact Engine identity, requested count, and the only allowed
|
|
142
150
|
quarantine root.
|
|
@@ -154,7 +162,8 @@ has its path, byte count, and digest in the ownership manifest.
|
|
|
154
162
|
6. A 30-second per-asset lock serializes publication at
|
|
155
163
|
`assets/3d/ea-3d/<safeAssetId>`. The complete prior directory is preserved as the
|
|
156
164
|
refresh/rollback snapshot.
|
|
157
|
-
7. With the game root as `cwd`, Game Plugin runs the exact released Engine CLI
|
|
165
|
+
7. With the game root as `cwd`, Game Plugin runs the exact released Engine CLI.
|
|
166
|
+
For GLB imports:
|
|
158
167
|
|
|
159
168
|
```text
|
|
160
169
|
asset add assets/3d/ea-3d/<safeAssetId> --reimport-policy semantic-only --json
|
|
@@ -166,6 +175,9 @@ has its path, byte count, and digest in the ownership manifest.
|
|
|
166
175
|
Each command must produce exactly one newline-terminated, at-most-1-MiB
|
|
167
176
|
`CommandEnvelope@1.0.0`. Game Plugin does not filter diagnostic stdout into a
|
|
168
177
|
synthetic success.
|
|
178
|
+
Native Pack sources instead use the Engine build and verified build catalog;
|
|
179
|
+
the plugin preserves the complete source closure and reads cooked scene/mesh
|
|
180
|
+
GUIDs back. It does not run `asset add` on `.pack.ts` or `.pack.json`.
|
|
169
181
|
8. Only after Engine readback succeeds does `.forgeax-asset.json` publish the provider
|
|
170
182
|
commit, origin-set digest, exact Engine version/commit, per-file role/digest/bytes,
|
|
171
183
|
Engine rows, and catalog readback. An Engine failure restores the whole previous
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @forgeax/game 0.3.5
|
|
2
|
+
|
|
3
|
+
## Compatibility repair
|
|
4
|
+
|
|
5
|
+
| Boundary | Release behavior |
|
|
6
|
+
|:--|:--|
|
|
7
|
+
| Engine SDK | Exact dependency 0.1.26, commit `f3d0db12405e168e4204e32a9cde32e0df8d87ae` |
|
|
8
|
+
| Project discovery | Recognizes strict `forge.json` v2 with `defaultScene`; does not inject the forbidden legacy `entry` field |
|
|
9
|
+
| SDK manifest | Validates the released 1.7.0 manifest and exact Engine/DevKit identities |
|
|
10
|
+
| Preview | Uses Engine-owned `--port 0` allocation instead of conflicting with another game on port 5173 |
|
|
11
|
+
| Asset3D upgrade | Refreshes existing older package-owned bridges during install/update; preserves custom configurations |
|
|
12
|
+
|
|
13
|
+
## Install or update
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx -y @forgeax/game@0.3.5 install --ide codex,cursor,claude
|
|
17
|
+
# In a genuinely empty game directory:
|
|
18
|
+
npx -y @forgeax/game@0.3.5 init
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For an existing Engine 0.1.26 project, run `update --ide codex` with this package,
|
|
22
|
+
then restart the host session. Asset3D remains opt-in with `asset3d enable`.
|
|
23
|
+
|
|
24
|
+
> [!IMPORTANT]
|
|
25
|
+
> This release pins Engine 0.1.26. It does not silently migrate games using Engine
|
|
26
|
+
> 0.1.7. Keep those games on plugin 0.3.4 until deliberately migrating through the
|
|
27
|
+
> Engine-supported workflow. Do not add `entry` to a v2 manifest to work around the
|
|
28
|
+
> old plugin's project detection.
|
|
29
|
+
|
|
30
|
+
The plugin must return Engine-owned Preview readiness and matching root/build
|
|
31
|
+
identity. A direct Engine CLI preview or a listening port alone is not MCP
|
|
32
|
+
acceptance. Asset search/import and visible gameplay require separate verification.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"packageManager": "bun@1.
|
|
2
|
+
"packageManager": "bun@1.4.0",
|
|
3
3
|
"name": "@forgeax/game",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.6",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "@forgeax/game — an MCP/CLI connector for exact released ForgeaX Engine games and Engine-owned Preview.",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"docs/release-0.3.2.md",
|
|
27
27
|
"docs/release-0.3.3.md",
|
|
28
28
|
"docs/release-0.3.4.md",
|
|
29
|
+
"docs/release-0.3.5.md",
|
|
29
30
|
"README.md"
|
|
30
31
|
],
|
|
31
32
|
"scripts": {
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
],
|
|
52
53
|
"license": "MIT",
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@forgeax/engine-sdk": "0.1.
|
|
55
|
+
"@forgeax/engine-sdk": "0.1.26",
|
|
55
56
|
"pnpm": "11.7.0"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|