wave3d-agent-sdk 0.2.17 → 0.2.18

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/dist/cli.js CHANGED
@@ -42532,8 +42532,8 @@ function normalizeWaveGenieAssetUploadRequest(request) {
42532
42532
 
42533
42533
  // ../../src/lib/waveStudio/aiAssist/bridge/localAgentSdkContract.ts
42534
42534
  var WAVE3D_AGENT_SDK_PACKAGE_NAME = "wave3d-agent-sdk";
42535
- var WAVE3D_AGENT_SDK_REQUIRED_VERSION = "0.2.17";
42536
- var WAVE3D_AGENT_SDK_REQUIRED_BUILD = "agent-sdk-20260627.3";
42535
+ var WAVE3D_AGENT_SDK_REQUIRED_VERSION = "0.2.18";
42536
+ var WAVE3D_AGENT_SDK_REQUIRED_BUILD = "agent-sdk-20260627.4";
42537
42537
  var WAVE3D_AGENT_SDK_PACKAGE_SPEC = `${WAVE3D_AGENT_SDK_PACKAGE_NAME}@${WAVE3D_AGENT_SDK_REQUIRED_VERSION}`;
42538
42538
  var WAVE3D_AGENT_SDK_START_COMMAND = `npx -y ${WAVE3D_AGENT_SDK_PACKAGE_SPEC} start`;
42539
42539
  var WAVE3D_AGENT_SDK_TOKEN_ENV_VAR = "WAVE3D_MCP_TOKEN";
@@ -44738,7 +44738,7 @@ var WAVE_MCP_TOOL_CATALOG_GUIDE = [
44738
44738
  '- `get_wave_mcp_health` (aliases `mcp_health`, `mcp_status`): read-only self diagnostic for endpoint kind, SDK version/build, tool catalog hash/count, onboarding, session/VFS, and WaveEngine SDK Cache state. Use when the agent asks "am I local/cloud/current/cached?" or any MCP state is unclear.',
44739
44739
  "- `get_wave_tool_map`: stable complete concrete MCP tool menu grouped by family plus policy flags. Use only when `tools/list` feels truncated or unclear.",
44740
44740
  `- Transport topology rule: same-machine agents should run \`${WAVE3D_AGENT_SDK_START_COMMAND}\`, check /health, and update/restart SDK if version is stale, tools are missing, or SDK prints secrets; after Copy-to-Agent, restart with \`${WAVE3D_AGENT_SDK_TOKEN_PRESERVING_START_COMMAND}\` using the current MCP_TOKEN value without printing it so the copied local pairing secret still works. Current SDK start self-heals localhost SDK peers: reuse current same-token, replace verified stale/different-token SDK, refuse non-SDK port owners. After restart recheck /health and tools/list. Same-machine stale/missing tools/401-with-Gateway-success means repair local SDK first, not HTTP Gateway first. Same-machine HTTP Gateway is degraded fallback only after SDK cannot run, update, or adopt; never use it because it is familiar, already authenticated, or avoids SDK repair. Different-machine/cloud/sandbox agents should use \`MCP_HTTP_GATEWAY_FALLBACK_URL\` directly. Stale SDK/cache are local setup issues, not fallback triggers; wrong-machine localhost is a topology mismatch.`,
44741
- "- `recover_wave_connection`: direct Observe recovery tool. Call after onboarding required, session missing, command timeout/lease expired, mirror not ready, hosted proxy/cache failure, local/HTTP Gateway confusion, or sleeping-tab symptoms. It returns exact next action: re-onboard, get session, wake tab, update/restart SDK, wait mirror, retry, use HTTP Gateway fallback, or ask fresh Copy to Agent.",
44741
+ "- `recover_wave_connection`: direct Observe recovery tool. Call after onboarding required, session missing, command timeout/lease expired, mirror not ready, hosted proxy/cache failure, local/HTTP Gateway confusion, or sleeping-tab symptoms. It returns exact next action: re-onboard, get session, focus Studio tab, update/restart SDK, wait mirror, retry, use HTTP Gateway fallback, or ask fresh Copy to Agent.",
44742
44742
  '- WaveEngine SDK Cache: normal skill/API lookup lives inside the local `wave3d-agent-sdk` SDK package. Update/restart SDK when SDK is stale or missing. HTTP Gateway is Studio-ops-only and does not provide cloud skill/API lookup. If local SDK cannot work because sandbox/no filesystem/no Node/npm/user refusal/refresh failure, explicitly accept degraded fallback with `waveEngineSdkFallbackMode:"studio_ops_only"`, a valid `waveEngineSdkUnavailableReason`, and `studioOpsOnlyFallbackAccepted:true`; warn user skill/API lookup requires local SDK repair. This is retrieval cache, not WaveEngine Agent SDK transport. Never treat SDK cache failure as local transport failure. Keep Priority 1 role, guardrails, workflow, assets/VFS/hot-reload rules, prompt version, and prompt hash in active LLM context.',
44743
44743
  "- Work-mode rule: Observe reads directly; Operate direct Studio commands directly; Author/Diagnose routes through `start_wave_task`; General avoids Wave tools. Operate tools include run/hot reload, save/share, VFS create/rename/delete exact files, asset upload/rename/delete exact assets, new project, project rename, and open project by exact projectId.",
44744
44744
  "- `start_wave_task`: begin one Author/Diagnose route for code behavior/content changes, debugging, local SDK skill/API lookup, semantic/direct code edits, and multi-step investigations. Use `code.direct_edit` for exact power-user receiver/method/action commands; use `code.semantic_guess_edit` only when changing an existing API call/argument/literal/value already visible in code; use `code.author` for normal/uncertain authoring and any new code/API/pattern choice. If the user request is irrelevant/too broad, use `agent.general` and guide the user toward one concrete Wave milestone.",
@@ -44858,7 +44858,7 @@ var LOCAL_HOSTED_TOKEN_PREFIX = "wgbt.";
44858
44858
  var CORPUS_CACHE_DIR_ENV = "WAVE3D_AGENT_CACHE_DIR";
44859
44859
  var MAX_CORPUS_ZIP_BYTES = 50 * 1024 * 1024;
44860
44860
  var MAX_CORPUS_EXTRACTED_BYTES = 100 * 1024 * 1024;
44861
- var LOCAL_SESSION_NOT_FOUND_MESSAGE = "WaveEngine Agent SDK HTTP is alive, but no Wave Studio browser tab is paired with this MCP_TOKEN local secret. Live Studio tools need the Wave Studio tab open with Room -> MCP started/adopted. Refresh/reopen Wave Studio or restart MCP in the tab, then retry this same local endpoint and pairing secret. Do not treat this as WaveEngine SDK Cache failure.";
44861
+ var LOCAL_SESSION_NOT_FOUND_MESSAGE = "WaveEngine Agent SDK HTTP is alive, but no Wave Studio browser tab is paired with this MCP_TOKEN local secret yet. Keep Wave Studio open/focused and retry this same localhost endpoint once; Studio silently re-registers copied local tokens after SDK restart. If it still has no paired tab, call recover_wave_connection before asking the user to reopen/start MCP. Do not treat this as WaveEngine SDK Cache failure.";
44862
44862
  var HOSTED_BROWSER_COMMAND_PENDING_NOTE = ' If this browser-backed command returns `status: "pending"` with `requestId`, poll `get_wave_command_result`; otherwise do not poll command results.';
44863
44863
  var LOCAL_BROWSER_COMMAND_PENDING_NOTE = " Local browser-backed commands wait for the Studio browser result directly on this transport.";
44864
44864
 
@@ -46536,8 +46536,8 @@ async function enqueueBrowserCommand(input) {
46536
46536
  {
46537
46537
  likelyCause: "WaveEngine Agent SDK HTTP is alive, but the Wave Studio browser tab is asleep, closed, not polling commands, or has not adopted this token.",
46538
46538
  recovery: [
46539
- "Wake/refresh the Wave Studio tab.",
46540
- "Open Room -> MCP and verify the session is live.",
46539
+ "Focus or refresh the Wave Studio tab.",
46540
+ "Verify the MCP orb/session is live in Wave Studio.",
46541
46541
  "If using same-machine local transport, keep WaveEngine Agent SDK running and retry the same MCP_URL/token.",
46542
46542
  "If the browser was hibernated for a long time, stop/start MCP in Studio and copy a fresh agent message."
46543
46543
  ]
@@ -50461,8 +50461,9 @@ function localConnectionRecoveryResult(args, context) {
50461
50461
  state = "no_paired_studio_tab";
50462
50462
  nextAction = "WaveEngine Agent SDK HTTP is alive, but no Wave Studio tab is paired with this MCP_TOKEN local secret yet. Keep Wave Studio open and focused briefly; Studio silently re-registers copied local tokens after SDK restart. Then call get_wave_session again. Ask user to reopen/start MCP only if the Studio tab is closed, sleeping, or MCP is disabled.";
50463
50463
  nextTool = "get_wave_session";
50464
- requiresUserAction = true;
50464
+ requiresUserAction = false;
50465
50465
  steps.push("Do not switch to SDK cache or query tools as a transport fix.");
50466
+ steps.push("Retry get_wave_session on the same localhost endpoint before asking user for action; silent re-registration may complete without visible UI work.");
50466
50467
  } else if (lastErrorCode === "command_timeout" || lastErrorCode === "command_lease_expired" || symptom.toLowerCase().includes("hang") || symptom.toLowerCase().includes("timeout") || !selectedSessionReady) {
50467
50468
  state = "browser_tab_not_polling";
50468
50469
  nextAction = "Wave Studio tab is paired but not actively polling commands, or browser-backed command timed out. Ask user to focus/wake the tab and verify MCP is live; retry the same tool once on the same local endpoint and MCP_TOKEN pairing secret.";
@@ -51113,7 +51114,7 @@ async function callReadTool(name, args, context) {
51113
51114
  taskRouteId: activeRoute.taskRouteId,
51114
51115
  phase: activeRoute.phase
51115
51116
  } : null,
51116
- nextAction: !onboardingAccepted ? "Call get_wave_agent_onboarding, accept_wave_agent_onboarding, tools/list, get_wave_session, then list_wave_files." : sessions.length === 0 ? "No paired Studio tab visible. Keep Wave Studio open, restart MCP in the tab if needed, then call recover_wave_connection." : waveEngineSdkCache.ready === false ? "Live Studio tools can still work. If unfamiliar authoring needs skill/API lookup, update/restart SDK or run the bundled SDK repair command; otherwise accept Studio-ops-only fallback." : "MCP looks healthy. Continue with get_wave_session/list_wave_files or the user task."
51117
+ nextAction: !onboardingAccepted ? "Call get_wave_agent_onboarding, accept_wave_agent_onboarding, tools/list, get_wave_session, then list_wave_files." : sessions.length === 0 ? "No paired Studio tab visible yet. Keep Wave Studio open/focused and retry get_wave_session once; Studio silently re-registers copied local tokens after SDK restart. If still empty, call recover_wave_connection before asking user to reopen/start MCP." : waveEngineSdkCache.ready === false ? "Live Studio tools can still work. If unfamiliar authoring needs skill/API lookup, update/restart SDK or run the bundled SDK repair command; otherwise accept Studio-ops-only fallback." : "MCP looks healthy. Continue with get_wave_session/list_wave_files or the user task."
51117
51118
  });
51118
51119
  }
51119
51120
  if (name === "get_wave_tool_map") {
@@ -3,6 +3,6 @@
3
3
  Bundled public-safe WaveEngine SDK lookup cache for wave3d-agent-sdk.
4
4
  Generated from sanitized public API/skill corpus during package build.
5
5
 
6
- cacheKey: 2026-06-24.4.Caxh_cF-78aBZP6RFsiBS_gQxZlDGO0D
7
- bundleHash: Caxh_cF-78aBZP6RFsiBS_gQxZlDGO0D
8
- zip: wave-engine-sdk-2026-06-24.4.Caxh_cF-78aBZP6RFsiBS_gQxZlDGO0D.zip
6
+ cacheKey: 2026-06-24.4.XzX9B1TKZxfBe83hiiEtaBe9NhBhsosU
7
+ bundleHash: XzX9B1TKZxfBe83hiiEtaBe9NhBhsosU
8
+ zip: wave-engine-sdk-2026-06-24.4.XzX9B1TKZxfBe83hiiEtaBe9NhBhsosU.zip
@@ -1,21 +1,21 @@
1
1
  {
2
- "version": "2026-06-24.4.Caxh_cF-78aBZP6RFsiBS_gQxZlDGO0D",
2
+ "version": "2026-06-24.4.XzX9B1TKZxfBe83hiiEtaBe9NhBhsosU",
3
3
  "formatVersion": "2026-06-24.4",
4
- "cacheKey": "2026-06-24.4.Caxh_cF-78aBZP6RFsiBS_gQxZlDGO0D",
5
- "bundleFileName": "wave-engine-sdk-2026-06-24.4.Caxh_cF-78aBZP6RFsiBS_gQxZlDGO0D.zip",
6
- "bundleHash": "Caxh_cF-78aBZP6RFsiBS_gQxZlDGO0D",
4
+ "cacheKey": "2026-06-24.4.XzX9B1TKZxfBe83hiiEtaBe9NhBhsosU",
5
+ "bundleFileName": "wave-engine-sdk-2026-06-24.4.XzX9B1TKZxfBe83hiiEtaBe9NhBhsosU.zip",
6
+ "bundleHash": "XzX9B1TKZxfBe83hiiEtaBe9NhBhsosU",
7
7
  "generatedAt": "2026-06-06T00:00:00.000Z",
8
8
  "sourceVersions": {
9
9
  "onboarding": {
10
10
  "promptVersion": "2026-06-22.1",
11
- "promptHash": "0DLryCmrd1QIYP-32CEyNd5Heiev6_Lr"
11
+ "promptHash": "mjWFpEG4f9pRdka8SVaMIxQRrlQW4On5"
12
12
  },
13
13
  "apiHandbook": {
14
14
  "version": "1",
15
15
  "contentHash": "58fdedcd747f52b9"
16
16
  },
17
17
  "waveSkillCorpusHash": "ol6UwQmeF1EZGOW3uz8NWVzESWOrkc7P",
18
- "sdkLookupCorpusHash": "OFDTR_fo2zM-8iXgejSBgj0rQK12V5to"
18
+ "sdkLookupCorpusHash": "HTDNf3sAzkonZ_y9F5FndOVOHf22tyRf"
19
19
  },
20
20
  "cacheContract": {
21
21
  "llmContextCacheOnly": [
@@ -35,7 +35,7 @@
35
35
  "searchDocuments"
36
36
  ],
37
37
  "rule": "Priority 1 always-on sections must stay in LLM chat/system context. The WaveEngine SDK local cache is public-safe retrieval data, never the only memory for core policy.",
38
- "defaultRefreshCommand": "npx -y wave3d-agent-sdk@0.2.17 cache refresh",
38
+ "defaultRefreshCommand": "npx -y wave3d-agent-sdk@0.2.18 cache refresh",
39
39
  "refreshRule": "When using WaveEngine SDK local cache, compare cacheKey, bundleHash, and sourceVersions before trusting local lookup. If any value differs, update the SDK package or reinstall its bundled SDK cache and rebuild local indexes. Do not fetch a remote SDK zip.",
40
40
  "onlineFallback": "HTTP Gateway does not provide cloud API lookup. If local Node/npm or cache is refused/unavailable, use only concrete Studio operations and already-known code; repair the local WaveEngine SDK before unfamiliar API authoring."
41
41
  },
@@ -51,7 +51,7 @@
51
51
  "mediaType": "application/json",
52
52
  "role": "lookup-guide",
53
53
  "bytes": 1311,
54
- "hash": "FDpb8-vDxfyK6mu1ke6-auN2h64806k1"
54
+ "hash": "WAfMaXKRj0GfMFAgCUBcQ6gBqrcqD8TP"
55
55
  },
56
56
  {
57
57
  "path": "skills/wave-skills.jsonl",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave3d-agent-sdk",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "WaveEngine Agent SDK for same-machine Wave Studio MCP plus bundled WaveEngine lookup.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",