wave-code 1.5.1 → 1.6.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.
Files changed (39) hide show
  1. package/README.md +3 -2
  2. package/bin/wave-code.js +2 -0
  3. package/dist/bundle/wave.mjs +735 -686
  4. package/package.json +8 -10
  5. package/src/cli.tsx +59 -3
  6. package/src/components/App.tsx +13 -13
  7. package/src/components/ChatInterface.tsx +4 -2
  8. package/src/components/InputBox.tsx +6 -3
  9. package/src/components/McpManager.tsx +26 -0
  10. package/src/components/MessageBlockItem.tsx +14 -2
  11. package/src/components/Notifications.tsx +6 -3
  12. package/src/components/RemoteControlView.tsx +1 -1
  13. package/src/contexts/useChat.tsx +88 -43
  14. package/src/daemon/commands.ts +266 -44
  15. package/src/daemon/daemonLog.ts +132 -0
  16. package/src/daemon/socketPath.ts +123 -0
  17. package/src/daemon-cli.ts +19 -6
  18. package/src/hooks/useExitSignals.ts +83 -0
  19. package/src/hooks/useRemoteControl.ts +16 -4
  20. package/src/index.ts +6 -0
  21. package/src/print-cli.ts +20 -10
  22. package/src/remote/hostIdentity.ts +1 -0
  23. package/src/remote/imagePreview.ts +182 -0
  24. package/src/remote/messageWindow.ts +5 -4
  25. package/src/remote/notificationCoalescer.ts +2 -2
  26. package/src/remote/relayClient.ts +1 -1
  27. package/src/remote/remoteControlCliHost.ts +46 -8
  28. package/src/remote/remoteControlService.ts +75 -18
  29. package/src/remote/remoteNotifications.ts +31 -9
  30. package/src/remote/textPreview.ts +155 -0
  31. package/src/stdio/agentBridge.ts +407 -72
  32. package/src/stdio/daemonServer.ts +49 -33
  33. package/src/stdio/hostSlashCommands.ts +9 -4
  34. package/src/stdio/startupStage.ts +22 -0
  35. package/src/stdio/uiPayload.ts +49 -0
  36. package/src/stdio-cli.ts +9 -1
  37. package/src/utils/argvCompat.ts +23 -0
  38. package/src/utils/printOutput.ts +1 -1
  39. package/src/utils/worktree.ts +222 -16
package/README.md CHANGED
@@ -42,8 +42,9 @@ export WAVE_FAST_MODEL="MiniMax-M2.7-highspeed"
42
42
  ### Optional Environment Variables
43
43
 
44
44
  ```bash
45
- # Token limit (optional, defaults to 96000)
46
- export WAVE_MAX_INPUT_TOKENS="96000"
45
+ # Context window in tokens — the input + output budget of one request
46
+ # (optional, defaults to 200000)
47
+ export WAVE_CONTEXT_WINDOW="200000"
47
48
  ```
48
49
 
49
50
  ## Usage
package/bin/wave-code.js CHANGED
@@ -26,6 +26,8 @@ if (process.argv.slice(2).some((a) => versionArgs.includes(a))) {
26
26
  // process as a bundled Electron app (bin index 0 instead of 1) and keeps the
27
27
  // script path in argv → `Unknown argument: <script>`. Mark the process as the
28
28
  // default Electron app so yargs parses argv exactly like plain node would.
29
+ // The bundle carries the same guard (src/utils/argvCompat.ts) for hosts that
30
+ // run dist/bundle/wave.mjs directly via WAVE_CLI_PATH; keep both.
29
31
  if (process.versions.electron && process.env.ELECTRON_RUN_AS_NODE === "1") {
30
32
  process.defaultApp = true;
31
33
  }