wave-code 0.19.2 → 0.19.4

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/src/acp/index.ts DELETED
@@ -1,28 +0,0 @@
1
- import { Readable, Writable } from "node:stream";
2
- import { AgentSideConnection, ndJsonStream } from "@agentclientprotocol/sdk";
3
- import { WaveAcpAgent } from "./agent.js";
4
- import { logger } from "../utils/logger.js";
5
-
6
- export async function startAcpCli() {
7
- // Redirect console.log to logger to avoid interfering with JSON-RPC over stdio
8
- console.log = (...args: unknown[]) => {
9
- logger.info(...args);
10
- };
11
-
12
- logger.info("Starting ACP bridge...");
13
-
14
- // Convert Node.js stdio to Web streams
15
- const stdin = Readable.toWeb(process.stdin) as ReadableStream<Uint8Array>;
16
- const stdout = Writable.toWeb(process.stdout) as WritableStream<Uint8Array>;
17
-
18
- // Create ACP stream
19
- const stream = ndJsonStream(stdout, stdin);
20
-
21
- // Initialize AgentSideConnection
22
- const connection = new AgentSideConnection((conn) => {
23
- return new WaveAcpAgent(conn);
24
- }, stream);
25
-
26
- // Wait for connection to close
27
- await connection.closed;
28
- }
package/src/acp-cli.ts DELETED
@@ -1,5 +0,0 @@
1
- import { startAcpCli } from "./acp/index.js";
2
-
3
- export async function runAcp() {
4
- await startAcpCli();
5
- }