You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
acp-http-client: export type * from "@agentclientprotocol/sdk" is emitted as a value re-export in dist/index.d.ts #397
acp-http-client's published dist/index.d.ts re-exports all runtime values from @agentclientprotocol/sdk (RequestError, ClientSideConnection, AgentSideConnection, TerminalHandle, ndJsonStream, AGENT_METHODS, CLIENT_METHODS), even though dist/index.js only exports AcpHttpClient, AcpHttpError, AcpRpcError, and PROTOCOL_VERSION.
tsc exits with 0 and reports no errors, then node t.mjs fails to load:
file:///.../t.mjs:1
import { AcpHttpClient, RequestError } from "acp-http-client";
^^^^^^^^^^^^
SyntaxError: The requested module 'acp-http-client' does not provide an export named 'RequestError'
Expected behavior
Either dist/index.d.ts preserves a type-only re-export so tsc rejects importing those values from "acp-http-client", or dist/index.js re-exports them at runtime as well.
Cause
sandbox-agent/sdks/acp-http-client/src/index.ts ends with export type * from "@agentclientprotocol/sdk" followed by export { PROTOCOL_VERSION } from "@agentclientprotocol/sdk", and tsup's .d.ts bundler turns the first line into export * from '@agentclientprotocol/sdk' in dist/index.d.ts.
Versions
acp-http-client@0.5.6 (npm latest) and main (21c248b1d)
Activity
linear-code commentedon Nov 15, 2026
ACT-6571