@forgeax/game 0.3.1 → 0.3.3

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
@@ -52,18 +52,32 @@ game there, binds the exact release identity, and reports the canonical root and
52
52
  host-skill result. Existing exact games are read back and bound without recreation;
53
53
  unknown non-empty directories fail closed.
54
54
 
55
+ Check the package being executed, or refresh an existing project's configured hosts:
56
+
57
+ ```bash
58
+ npx -y @forgeax/game@latest version
59
+ npx -y @forgeax/game@latest update --ide codex
60
+ ```
61
+
62
+ `update` reports the configured transition, for example
63
+ `plugin 0.3.2 -> 0.3.3`. It refreshes configuration, skills, and routing from the
64
+ package being executed; it does not independently fetch another package.
65
+
55
66
  > [!NOTE]
56
67
  > Asset3D is optional and **disabled by default**. The two commands above never contact
57
68
  > the internal asset catalog, provision the bundled platform Provider, or add
58
69
  > `asset3d-search` to the project. Enable it only in an already initialized project:
59
70
  >
60
71
  > ```bash
61
- > npx -y @forgeax/game asset3d enable --base-url <aw-gateway-or-service-url>
72
+ > npx -y @forgeax/game asset3d enable
62
73
  > ```
63
74
  >
64
- > The first enable prompts for the AW Sandbox Key with hidden input, validates it
65
- > through the packaged Provider, and stores it outside the project in a private
66
- > user credential file.
75
+ > With no override, `enable` keeps the public AW depot. On the office network, pass
76
+ > `--library ea` to select the EA depot and its local gateway. `--base-url` overrides
77
+ > only the selected library's gateway. The first enable prompts for the Sandbox Key
78
+ > with hidden input, validates it through
79
+ > the packaged Provider, and stores it outside the project in a private user
80
+ > credential file.
67
81
 
68
82
  ## Agent completion contract
69
83
 
@@ -155,28 +169,39 @@ a live unverifiable PID fails closed as `preview_ownership_unverified`.
155
169
 
156
170
  ## Asset3D installation and transaction
157
171
 
158
- Asset3D is an opt-in, project-local MCP integration for AW HybridSearch. Run it only
159
- after `init`, while connected to the internal network, using the gateway or service
160
- URL supplied by the asset-platform administrator:
172
+ Asset3D is an opt-in, project-local MCP integration for AW or EA HybridSearch. Run it
173
+ only after `init`. The no-argument command remains public-network compatible; select
174
+ EA explicitly when connected to the office network:
161
175
 
162
176
  ```bash
163
- npx -y @forgeax/game asset3d enable --base-url <aw-gateway-or-service-url>
177
+ # Public/default
178
+ npx -y @forgeax/game asset3d enable
179
+
180
+ # Office network
181
+ npx -y @forgeax/game asset3d enable --library ea
182
+
164
183
  forgeax-game asset3d doctor --json
165
184
  ```
166
185
 
167
- `--base-url` accepts either the gateway root or the full
168
- `trpc.oasismetric.omcontentserver.http` service root. It can instead be supplied by
169
- `FORGEAX_ASSET_LIBRARY_BASE_URL`. On first use, `enable` reads the key with hidden TTY
170
- input. Non-interactive automation must inject `FORGEAX_ASSET3D_AW_SANDBOX_KEY` from
171
- its secret store. The key is validated by the Provider against `HybridSearch` before
172
- the command reports success.
186
+ The library selection precedence is `--library`, then
187
+ `FORGEAX_ASSET_LIBRARY`, then `aw`. Each library selects its matching built-in
188
+ gateway. Gateway precedence is explicit `--base-url`, then
189
+ `FORGEAX_ASSET_LIBRARY_BASE_URL`, then that library's built-in service. An override
190
+ accepts either a gateway root or the full
191
+ `trpc.oasismetric.omcontentserver.http` service root. On first use, `enable` reads the
192
+ key with hidden TTY input. Non-interactive automation must inject
193
+ `FORGEAX_ASSET3D_AW_SANDBOX_KEY` from its secret store. The key is validated by the
194
+ Provider against the selected depot's `HybridSearch` before the command
195
+ reports success.
173
196
 
174
197
  The validated key is stored in
175
198
  `~/.forgeax/credentials/asset3d-aw.json` as an owned, non-symlink `0600` file. Project
176
- `.forgeax/mcp.json` contains only the AW service URL and the credential-file path; it
177
- never contains the key or a signed asset URL. The Provider access check returns only
178
- the exact download origins required by the sandbox. Failed validation or installation
179
- rolls back a newly written credential.
199
+ `.forgeax/mcp.json` contains only the selected service URL, matching
200
+ `AW_API_DEPOT_NAME=aw|ea`, and the credential-file path; it never contains the key or
201
+ a signed asset URL. The `AW_API_*` names are the packaged Provider's legacy
202
+ environment contract. The Provider access check returns only the exact download
203
+ origins required by the sandbox. Failed validation or installation rolls back a
204
+ newly written credential.
180
205
 
181
206
  The npm package carries the digest-pinned Darwin arm64 Provider archive as an inert
182
207
  asset. `enable` reuses the exact verified Provider from
@@ -186,8 +211,14 @@ repository. Only after Provider verification and its MCP handshake succeed does
186
211
  `asset3d-search` entries into `.forgeax/mcp.json` and project the approved Asset3D
187
212
  workflow into the Agent hosts selected during `install`.
188
213
 
214
+ `enable` also registers a project-aware `asset3d-search` bridge in those hosts. The
215
+ bridge entry contains no project path or credential: on each new Agent session it
216
+ resolves the current directory's project-local Provider. In projects where Asset3D
217
+ has not been enabled, the bridge connects normally but advertises no tools. Restart
218
+ the selected Agent after the first successful `enable` so it discovers `search_asset`.
219
+
189
220
  > [!IMPORTANT]
190
- > Asset3D uses the AW-specific `X-Sandbox-Key` contract. It never reads
221
+ > Asset3D uses the shared `X-Sandbox-Key` contract. It never reads
191
222
  > `ANTHROPIC_API_KEY` or another model-provider key. Do not pass keys as command-line
192
223
  > arguments, commit the user credential file, or copy a key into project MCP config.
193
224
 
@@ -196,9 +227,10 @@ The transaction commands are normally driven by the installed Agent workflow:
196
227
  ```bash
197
228
 
198
229
  forgeax-game asset3d begin --query "weathered oak tree" --json
199
- # Call the configured asset3d-search/search_asset MCP tool with the returned output_dir.
200
- # Pass its complete TextContent JSON to commit on stdin:
201
- forgeax-game asset3d commit --execution <uuid> --provider-result-stdin --json < result.json
230
+ # Call asset3d-search/search_asset with the exact queries and returned execution UUID.
231
+ # The bridge validates the transaction, injects its private output directory, and
232
+ # stores the exact provider result for commit:
233
+ forgeax-game asset3d commit --execution <uuid> --json
202
234
 
203
235
  forgeax-game asset3d doctor --json
204
236
  forgeax-game asset3d uninstall
@@ -215,7 +247,7 @@ forgeax-game asset3d install \
215
247
  --provider-bundle ./asset3d-search-provider-<commit>-<os>-<arch>.tar.gz \
216
248
  --sha256 <archive-sha256> \
217
249
  --download-origin https://<approved-download-host>:443 \
218
- --aw-base-url <aw-gateway-or-service-url> \
250
+ --aw-base-url <ea-gateway-or-service-url> \
219
251
  --aw-credential-file /absolute/path/to/private-credential.json
220
252
  ```
221
253
 
@@ -245,6 +277,9 @@ and evidence boundaries.
245
277
  > acceptance gates.
246
278
 
247
279
  See [docs/runtime.md](docs/runtime.md) for the exact artifact and lifecycle contract.
248
- For the current Asset3D authentication update and maintainer publish checklist, see
249
- [docs/release-0.3.1.md](docs/release-0.3.1.md). The original two-command onboarding
250
- contract remains documented in [docs/release-0.3.0.md](docs/release-0.3.0.md).
280
+ For the current AW-default plus explicit EA environment contract and maintainer
281
+ publish checklist, see [docs/release-0.3.3.md](docs/release-0.3.3.md). The original AW
282
+ production default is recorded in [docs/release-0.3.2.md](docs/release-0.3.2.md), authenticated Provider
283
+ delivery is documented in [docs/release-0.3.1.md](docs/release-0.3.1.md),
284
+ and the original two-command onboarding contract remains documented in
285
+ [docs/release-0.3.0.md](docs/release-0.3.0.md).
@@ -0,0 +1 @@
1
+ 4937fe00e2b919319c70c82db53ebe359b275ed662c026153ecb97f7601262b4 vibegame-art-3d-asset-library-2.0.0.tgz