Skip to content

Commit 5a8749a

Browse files
jmorrellclaude
andcommitted
Move wrangler.toml to test fixtures and update stale AGENTS.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bd27d7e commit 5a8749a

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

AGENTS.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @jmorrell/jsonrpc
22

3-
Last verified: 2026-02-15
3+
Last verified: 2026-02-16
44

55
## Tech Stack
66

@@ -28,18 +28,17 @@ Last verified: 2026-02-15
2828

2929
- `src/core.ts` - Shared types, error classes, and transport-agnostic JSON-RPC 2.0 engine (wire format types, type guards, request/response builders, RpcProtocolError, RPC processor)
3030
- `src/http-batch.ts` - HTTP batch transport: newHttpBatchRpcResponse (server) + newHttpBatchRpcSession (client with auto-batching)
31-
- `src/session.ts` - Bidirectional RPC over message transports (defines session-specific types: RpcMessageTransport, RpcSessionOptions, RpcSession)
31+
- `src/session.ts` - Bidirectional RPC over message transports (defines session-specific types: RpcTransport, RpcSessionOptions, RpcSession)
3232
- `src/websocket.ts` - WebSocket transport: newWorkersWebSocketRpcResponse (server, fire-and-forget) + newWorkersWebSocketRpcSession (server, bidirectional with typed remote proxy) + newWebSocketRpcSession (client with Disposable proxy)
3333
- `src/__tests__/` - Test files
3434
- `src/__tests__/fixtures/worker.ts` - Test worker entry point for Workers runtime tests
35-
- `docs/` - Design documents and implementation plans
36-
- `wrangler.toml` - Minimal Workers config for test worker
35+
- `src/__tests__/fixtures/wrangler.toml` - Minimal Workers config for test worker
3736

3837
## Package Entry Points
3938

4039
Single public entry point via index.ts:
4140

42-
- `@jmorrell/jsonrpc` - newHttpBatchRpcResponse, newHttpBatchRpcSession, newWorkersWebSocketRpcResponse, newWorkersWebSocketRpcSession, newWebSocketRpcSession, newWorkersRpcResponse, RpcError, RpcProtocolError
41+
- `@jmorrell/jsonrpc` - newHttpBatchRpcResponse, newHttpBatchRpcSession, newWorkersWebSocketRpcResponse, newWorkersWebSocketRpcSession, newWebSocketRpcSession, newWorkersRpcResponse, RpcSession, processRpc, RpcError, RpcProtocolError (plus type exports: RpcRequestFn, RpcFetchOptions, RpcClientOptions, RpcTransport, RpcSessionOptions, RpcHandlerOptions, RpcProtocolErrorCode, PromisifyMethods, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccessResponse, JsonRpcErrorResponse)
4342

4443
## Conventions
4544

@@ -56,5 +55,5 @@ Single public entry point via index.ts:
5655
- http-batch.ts: imports from core.ts
5756
- session.ts: imports from core.ts
5857
- websocket.ts: imports from core.ts and session.ts
59-
- index.ts: re-exports from http-batch.ts, websocket.ts, and core.ts
60-
- No cross-imports between http-batch, session, and websocket
58+
- index.ts: re-exports from http-batch.ts, session.ts, websocket.ts, and core.ts
59+
- No cross-imports between http-batch and session; websocket.ts may import from session.ts
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
name = "jsonrpc-test"
2-
main = "src/__tests__/fixtures/worker.ts"
2+
main = "worker.ts"
33
compatibility_date = "2024-12-01"

vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export default defineConfig({
2222
poolOptions: {
2323
workers: {
2424
main: "src/__tests__/fixtures/worker.ts",
25+
wrangler: {
26+
configPath: "src/__tests__/fixtures/wrangler.toml",
27+
},
2528
},
2629
},
2730
},

0 commit comments

Comments
 (0)