wave3d-agent-sdk 0.2.0
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 +95 -0
- package/dist/cli.js +52582 -0
- package/dist/sdk/README.md +8 -0
- package/dist/sdk/manifest.json +156 -0
- package/dist/sdk/wave-engine-sdk-2026-06-17.1.kOFA72bP4l9iaGUE47CDlVZgrEJjicSL.zip +0 -0
- package/package.json +31 -0
package/README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# wave3d-agent-sdk
|
|
2
|
+
|
|
3
|
+
WaveEngine Agent SDK for same-machine Wave Studio MCP plus bundled WaveEngine lookup.
|
|
4
|
+
|
|
5
|
+
This package has two jobs:
|
|
6
|
+
|
|
7
|
+
- `start`: long-running live MCP transport for same-machine Studio reads/writes.
|
|
8
|
+
- bundled WaveEngine SDK Cache: local skill/API/example lookup, auto-prepared by `start`, `cache status`, and `cache search`.
|
|
9
|
+
|
|
10
|
+
Do not use SDK cache commands to switch MCP transport. Do not treat SDK cache failure as WaveEngine Agent SDK transport failure.
|
|
11
|
+
|
|
12
|
+
Vocabulary:
|
|
13
|
+
|
|
14
|
+
- WaveEngine Agent SDK: same-machine live MCP transport from `wave3d-agent-sdk start`.
|
|
15
|
+
- HTTP Gateway: Wave Studio Next/Vercel MCP transport for remote/cloud/sandbox fallback Studio operations.
|
|
16
|
+
- WaveEngine SDK Cache: package-bundled public-safe skill/API/example lookup data.
|
|
17
|
+
- MCP Session: paired Wave Studio browser session and bearer-token state.
|
|
18
|
+
- VFS Mirror: HTTP Gateway read/edit snapshot. Local SDK live reads/writes use browser VFS.
|
|
19
|
+
- Project: user workspace content. Reading a project is not opening/replacing live workspace.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx -y wave3d-agent-sdk@0.2.0 start
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Check SDK build before trusting a running SDK process:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npx -y wave3d-agent-sdk@0.2.0 --version
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The package bundles the WaveEngine SDK lookup corpus. No normal session needs a separate protected zip download.
|
|
32
|
+
|
|
33
|
+
## Recommended Agent Flow
|
|
34
|
+
|
|
35
|
+
Wave Studio Copy to Agent defaults same-machine live MCP transport to this SDK:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npx -y wave3d-agent-sdk@0.2.0 start
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Agents choose topology first:
|
|
42
|
+
|
|
43
|
+
- Same computer as Wave Studio browser: try copied localhost `MCP_URL`, call `self_check_wave_mcp` with copied `expectedVersion` and `expectedBuildHash`, and restart exact SDK command from Copy to Agent if SDK is stale, missing tools, or prints bearer tokens before fallback.
|
|
44
|
+
- Different machine, remote container, cloud agent, sandbox without shell/Node/npm, or localhost points to agent machine instead of user browser machine: use `MCP_HTTP_GATEWAY_FALLBACK_URL` directly. Do not start WaveEngine Agent SDK on wrong machine.
|
|
45
|
+
|
|
46
|
+
Call `get_wave_mcp_health` (aliases: `mcp_health`, `mcp_status`) whenever transport, SDK, or session status is unclear. It reports endpoint kind, SDK version/build, tool catalog hash/count, paired sessions, and WaveEngine SDK Cache state.
|
|
47
|
+
|
|
48
|
+
Use `MCP_HTTP_GATEWAY_FALLBACK_URL` only for topology mismatch, remote/sandboxed runtime, or an SDK runtime that cannot run/update/adopt after same-machine repair. HTTP Gateway is for Studio operations. It does not provide cloud API lookup.
|
|
49
|
+
|
|
50
|
+
For unfamiliar authoring, use the local SDK tools:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npx -y wave3d-agent-sdk@0.2.0 cache search "continuous left rotation"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`cache refresh` without MCP arguments reinstalls the bundled SDK into `~/.wave3d/agent-cache`:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx -y wave3d-agent-sdk@0.2.0 cache refresh
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Old `cache refresh --mcp-url <url> --token <token>` arguments are ignored. Normal users update the npm package; no separate zip download exists.
|
|
63
|
+
|
|
64
|
+
Wave Studio MCP uses an Agent Behavior Harness. Assessment tools stay open so agents can inspect session/files/assets/skills/diagnostics when needed, but clear user requests should start a route early with `start_wave_task`. Exact API lookup and mutating tools require `start_wave_task`, a `taskRouteId`, and `advance_wave_task` when moving into lookup, execute, or verify phases. For exact power-user commands, classify `code.direct_edit`; for obvious current-code pattern changes, classify `code.semantic_guess_edit`. These fast lanes skip broad skill/API lookup, not taskRouteId, deterministic edits, hot reload, or verification.
|
|
65
|
+
|
|
66
|
+
## Commands
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
wave3d-agent-sdk --version
|
|
70
|
+
wave3d-agent-sdk start
|
|
71
|
+
wave3d-agent-sdk doctor
|
|
72
|
+
wave3d-agent-sdk cache status
|
|
73
|
+
wave3d-agent-sdk cache refresh
|
|
74
|
+
wave3d-agent-sdk cache search "rotate around left"
|
|
75
|
+
wave3d-agent-sdk cache clear
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`start` runs the WaveEngine Agent SDK on `127.0.0.1:47231` by default. Wave Studio uses it when reachable from same computer; different-machine/cloud/sandbox agents should use HTTP Gateway instead of starting SDK on wrong machine.
|
|
79
|
+
|
|
80
|
+
`start` exposes same-machine live Studio tool surface, including project save/share/new/open/rename, VFS edits, preview run/hot reload, screenshots, runtime diagnostics, entity snapshots, runtime markers, and `get_wave_runtime_performance_snapshot` for FPS/tick-rate/scene-weight/heap telemetry. Local `tools/list` mirrors HTTP Gateway tool catalog plus SDK session discovery extras; if a hosted tool is missing locally, SDK process is stale or broken. Restart it with exact package version in Copy to Agent.
|
|
81
|
+
|
|
82
|
+
`cache refresh` validates and extracts the bundled WaveEngine SDK zip under `~/.wave3d/agent-cache`, then builds a MiniSearch index. It never fetches a remote SDK zip.
|
|
83
|
+
|
|
84
|
+
## Security Defaults
|
|
85
|
+
|
|
86
|
+
- SDK listens on `127.0.0.1` by default.
|
|
87
|
+
- Non-loopback hosts require `--allow-network` and should only be used on trusted network.
|
|
88
|
+
- Studio browser routes require trusted Wave Studio `Origin` header.
|
|
89
|
+
- Bundled SDK files are hash-checked, path-sanitized, and size-bounded before extraction.
|
|
90
|
+
- Legacy remote SDK download arguments are ignored; bundled SDK files are the only supported source.
|
|
91
|
+
- `cache clear` refuses dangerous paths and unmarked custom cache directories.
|
|
92
|
+
|
|
93
|
+
## Token Safety
|
|
94
|
+
|
|
95
|
+
Treat Wave Studio MCP bearer tokens as secrets. Prefer passing them through `WAVE3D_MCP_TOKEN` or `WAVESTUDIO_MCP_TOKEN` rather than shell history when possible.
|