Skip to content

Commit 0853e26

Browse files
author
Mark Pollack
committed
TypeScript interop agent and client: every catalogue step on stdio, HTTP and WebSocket
programs/node/interop/{agent,client,sdk}.mjs on the TypeScript SDK's app API (acp.agent()/acp.client()), launched by programs/node/launch/{build,agent,client}.sh. The agent serves stdio (ndJsonStream) or one AcpServer for Streamable HTTP and WebSocket; the client spawns the stdio agent with child_process.spawn and relays its stderr. All 65 stable steps and the unstable session.fork pass against the TypeScript agent on every transport. expectations/typescript.json declares the one TypeScript-client cell failure: session/delete of an unknown id is posted session-scoped and the Java agent answers 404. The legacy ts-client.mjs and ts-server.mjs are unchanged.
1 parent 3c83fd4 commit 0853e26

7 files changed

Lines changed: 1878 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"comment": "Expected failures of cells with a TypeScript client or agent (programs/node). See README.md in this directory.",
3+
"expectations": [
4+
{
5+
"step": "session.delete",
6+
"when": { "client": "typescript", "agent": "java", "transport": "http" },
7+
"contains": "404",
8+
"see": "spec:rfds/streamable-http-websocket-transport.mdx:124,306-310",
9+
"reason": "The TypeScript client posts session/delete session-scoped (Acp-Session-Id: no-such-session, protocol.ts:13) and the Java agent answers 404 for a session it does not know; the RFD's POST tree has no such 404 and the catalogue expects a silent success"
10+
}
11+
]
12+
}

‎integration-testing/programs/node/interop/agent.mjs‎

Lines changed: 627 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)