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.
- package/README.md +3 -2
- package/bin/wave-code.js +2 -0
- package/dist/bundle/wave.mjs +735 -686
- package/package.json +8 -10
- package/src/cli.tsx +59 -3
- package/src/components/App.tsx +13 -13
- package/src/components/ChatInterface.tsx +4 -2
- package/src/components/InputBox.tsx +6 -3
- package/src/components/McpManager.tsx +26 -0
- package/src/components/MessageBlockItem.tsx +14 -2
- package/src/components/Notifications.tsx +6 -3
- package/src/components/RemoteControlView.tsx +1 -1
- package/src/contexts/useChat.tsx +88 -43
- package/src/daemon/commands.ts +266 -44
- package/src/daemon/daemonLog.ts +132 -0
- package/src/daemon/socketPath.ts +123 -0
- package/src/daemon-cli.ts +19 -6
- package/src/hooks/useExitSignals.ts +83 -0
- package/src/hooks/useRemoteControl.ts +16 -4
- package/src/index.ts +6 -0
- package/src/print-cli.ts +20 -10
- package/src/remote/hostIdentity.ts +1 -0
- package/src/remote/imagePreview.ts +182 -0
- package/src/remote/messageWindow.ts +5 -4
- package/src/remote/notificationCoalescer.ts +2 -2
- package/src/remote/relayClient.ts +1 -1
- package/src/remote/remoteControlCliHost.ts +46 -8
- package/src/remote/remoteControlService.ts +75 -18
- package/src/remote/remoteNotifications.ts +31 -9
- package/src/remote/textPreview.ts +155 -0
- package/src/stdio/agentBridge.ts +407 -72
- package/src/stdio/daemonServer.ts +49 -33
- package/src/stdio/hostSlashCommands.ts +9 -4
- package/src/stdio/startupStage.ts +22 -0
- package/src/stdio/uiPayload.ts +49 -0
- package/src/stdio-cli.ts +9 -1
- package/src/utils/argvCompat.ts +23 -0
- package/src/utils/printOutput.ts +1 -1
- 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
|
-
#
|
|
46
|
-
|
|
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
|
}
|