@fuzdev/fuz_app 0.65.0 → 0.66.0
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/dist/actions/CLAUDE.md +65 -86
- package/dist/actions/action_codegen.d.ts +1 -1
- package/dist/actions/action_codegen.js +1 -1
- package/dist/actions/action_event_data.d.ts +1 -1
- package/dist/auth/CLAUDE.md +83 -104
- package/dist/auth/audit_log_schema.js +2 -2
- package/dist/auth/daemon_token_middleware.d.ts +15 -5
- package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
- package/dist/auth/daemon_token_middleware.js +24 -15
- package/dist/auth/invite_queries.d.ts +17 -7
- package/dist/auth/invite_queries.d.ts.map +1 -1
- package/dist/auth/invite_queries.js +19 -8
- package/dist/auth/signup_routes.d.ts +47 -1
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/signup_routes.js +103 -52
- package/dist/env/resolve.d.ts +44 -7
- package/dist/env/resolve.d.ts.map +1 -1
- package/dist/env/resolve.js +94 -27
- package/dist/http/CLAUDE.md +47 -52
- package/dist/http/jsonrpc.d.ts +23 -7
- package/dist/http/jsonrpc.d.ts.map +1 -1
- package/dist/http/jsonrpc.js +19 -3
- package/dist/http/surface.d.ts +9 -2
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/runtime/mock.d.ts +1 -1
- package/dist/runtime/mock.js +1 -1
- package/dist/testing/CLAUDE.md +659 -511
- package/dist/testing/admin_integration.d.ts +5 -5
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/admin_integration.js +95 -39
- package/dist/testing/app_server.d.ts +16 -1
- package/dist/testing/app_server.d.ts.map +1 -1
- package/dist/testing/app_server.js +18 -3
- package/dist/testing/audit_completeness.d.ts +7 -5
- package/dist/testing/audit_completeness.d.ts.map +1 -1
- package/dist/testing/audit_completeness.js +5 -9
- package/dist/testing/bootstrap_success.js +2 -2
- package/dist/testing/cross_backend/backend_config.d.ts +113 -0
- package/dist/testing/cross_backend/backend_config.d.ts.map +1 -0
- package/dist/testing/cross_backend/backend_config.js +1 -0
- package/dist/testing/cross_backend/bench/bench_report.d.ts +46 -0
- package/dist/testing/cross_backend/bench/bench_report.d.ts.map +1 -0
- package/dist/testing/cross_backend/bench/bench_report.js +83 -0
- package/dist/testing/cross_backend/bench/run_cross_impl_bench.d.ts +44 -0
- package/dist/testing/cross_backend/bench/run_cross_impl_bench.d.ts.map +1 -0
- package/dist/testing/cross_backend/bench/run_cross_impl_bench.js +38 -0
- package/dist/testing/cross_backend/bench/scenario.d.ts +57 -0
- package/dist/testing/cross_backend/bench/scenario.d.ts.map +1 -0
- package/dist/testing/cross_backend/bench/scenario.js +28 -0
- package/dist/testing/cross_backend/bootstrap_backend.d.ts +41 -0
- package/dist/testing/cross_backend/bootstrap_backend.d.ts.map +1 -0
- package/dist/testing/cross_backend/bootstrap_backend.js +34 -0
- package/dist/testing/cross_backend/build_test_backend_paths.d.ts +24 -0
- package/dist/testing/cross_backend/build_test_backend_paths.d.ts.map +1 -0
- package/dist/testing/cross_backend/build_test_backend_paths.js +33 -0
- package/dist/testing/cross_backend/capabilities.d.ts +3 -2
- package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_backend_configs.d.ts +122 -0
- package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -0
- package/dist/testing/cross_backend/default_backend_configs.js +111 -0
- package/dist/testing/cross_backend/default_secrets.d.ts +40 -0
- package/dist/testing/cross_backend/default_secrets.d.ts.map +1 -0
- package/dist/testing/cross_backend/default_secrets.js +39 -0
- package/dist/testing/cross_backend/default_spine_surface.d.ts +64 -0
- package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -0
- package/dist/testing/cross_backend/default_spine_surface.js +121 -0
- package/dist/testing/cross_backend/setup.d.ts +270 -34
- package/dist/testing/cross_backend/setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/setup.js +495 -15
- package/dist/testing/cross_backend/spawn_backend.d.ts +58 -0
- package/dist/testing/cross_backend/spawn_backend.d.ts.map +1 -0
- package/dist/testing/cross_backend/spawn_backend.js +229 -0
- package/dist/testing/cross_backend/spine_stub_backend_config.d.ts +66 -0
- package/dist/testing/cross_backend/spine_stub_backend_config.d.ts.map +1 -0
- package/dist/testing/cross_backend/spine_stub_backend_config.js +49 -0
- package/dist/testing/cross_backend/sse_round_trip.d.ts +37 -0
- package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -0
- package/dist/testing/cross_backend/sse_round_trip.js +137 -0
- package/dist/testing/cross_backend/standard.d.ts +96 -0
- package/dist/testing/cross_backend/standard.d.ts.map +1 -0
- package/dist/testing/cross_backend/standard.js +49 -0
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +171 -0
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -0
- package/dist/testing/cross_backend/testing_reset_actions.js +213 -0
- package/dist/testing/cross_backend/testing_server_bun.d.ts +5 -0
- package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -0
- package/dist/testing/cross_backend/testing_server_bun.js +59 -0
- package/dist/testing/cross_backend/testing_server_core.d.ts +140 -0
- package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -0
- package/dist/testing/cross_backend/testing_server_core.js +68 -0
- package/dist/testing/cross_backend/testing_server_deno.d.ts +5 -0
- package/dist/testing/cross_backend/testing_server_deno.d.ts.map +1 -0
- package/dist/testing/cross_backend/testing_server_deno.js +37 -0
- package/dist/testing/cross_backend/testing_server_node.d.ts +5 -0
- package/dist/testing/cross_backend/testing_server_node.d.ts.map +1 -0
- package/dist/testing/cross_backend/testing_server_node.js +50 -0
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts +72 -0
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -0
- package/dist/testing/cross_backend/ts_spine_backend_config.js +112 -0
- package/dist/testing/cross_backend/ws_round_trip.d.ts +35 -0
- package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -0
- package/dist/testing/cross_backend/ws_round_trip.js +113 -0
- package/dist/testing/data_exposure.d.ts +4 -6
- package/dist/testing/data_exposure.d.ts.map +1 -1
- package/dist/testing/data_exposure.js +1 -5
- package/dist/testing/db_entities.d.ts +18 -7
- package/dist/testing/db_entities.d.ts.map +1 -1
- package/dist/testing/db_entities.js +18 -7
- package/dist/testing/integration.d.ts +27 -6
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +93 -58
- package/dist/testing/round_trip.d.ts +4 -5
- package/dist/testing/round_trip.d.ts.map +1 -1
- package/dist/testing/round_trip.js +1 -5
- package/dist/testing/rpc_helpers.d.ts +10 -4
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +1 -1
- package/dist/testing/rpc_round_trip.d.ts +5 -5
- package/dist/testing/rpc_round_trip.d.ts.map +1 -1
- package/dist/testing/rpc_round_trip.js +1 -5
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +1 -68
- package/dist/testing/standard.d.ts +4 -5
- package/dist/testing/standard.d.ts.map +1 -1
- package/dist/testing/stubs.d.ts +10 -3
- package/dist/testing/stubs.d.ts.map +1 -1
- package/dist/testing/stubs.js +9 -2
- package/dist/testing/testing_rate_limiter.d.ts +59 -0
- package/dist/testing/testing_rate_limiter.d.ts.map +1 -0
- package/dist/testing/testing_rate_limiter.js +74 -0
- package/dist/testing/transports/bootstrap.d.ts +52 -0
- package/dist/testing/transports/bootstrap.d.ts.map +1 -0
- package/dist/testing/transports/bootstrap.js +70 -0
- package/dist/testing/transports/fetch_transport.d.ts +81 -0
- package/dist/testing/transports/fetch_transport.d.ts.map +1 -0
- package/dist/testing/transports/fetch_transport.js +74 -0
- package/dist/testing/transports/sse_frame_reader.d.ts +41 -0
- package/dist/testing/transports/sse_frame_reader.d.ts.map +1 -0
- package/dist/testing/transports/sse_frame_reader.js +84 -0
- package/dist/testing/transports/sse_transport.d.ts +54 -0
- package/dist/testing/transports/sse_transport.d.ts.map +1 -0
- package/dist/testing/transports/sse_transport.js +51 -0
- package/dist/testing/transports/ws_client.d.ts +108 -0
- package/dist/testing/transports/ws_client.d.ts.map +1 -0
- package/dist/testing/transports/ws_client.js +56 -0
- package/dist/testing/transports/ws_transport.d.ts +43 -0
- package/dist/testing/transports/ws_transport.d.ts.map +1 -0
- package/dist/testing/transports/ws_transport.js +169 -0
- package/dist/testing/ws_round_trip.d.ts +21 -103
- package/dist/testing/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/ws_round_trip.js +42 -40
- package/dist/ui/CLAUDE.md +5 -3
- package/dist/ui/MenuLink.svelte +16 -16
- package/dist/ui/MenuLink.svelte.d.ts +13 -4
- package/dist/ui/MenuLink.svelte.d.ts.map +1 -1
- package/package.json +7 -1
- package/dist/testing/transports/surface_source.d.ts +0 -51
- package/dist/testing/transports/surface_source.d.ts.map +0 -1
- package/dist/testing/transports/surface_source.js +0 -19
package/dist/http/CLAUDE.md
CHANGED
|
@@ -14,29 +14,27 @@ effects, see ../../docs/architecture.md.
|
|
|
14
14
|
|
|
15
15
|
## Module Map
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
| `http/db_routes.ts` | Generic keeper-only table browser route specs (public schema) |
|
|
34
|
-
| `http/pending_effects.ts` | `emit_after_commit` + `flush_pending_effects` + `flush_post_commit_effects` + `EmitAfterCommitContext` |
|
|
17
|
+
- `http/route_spec.ts` — `RouteSpec` + `apply_route_specs`, validation pipeline, transactions.
|
|
18
|
+
- `http/auth_shape.ts` — canonical `RouteAuth` Zod schema + cross-axis invariants + predicates.
|
|
19
|
+
- `http/error_schemas.ts` — `ERROR_*` constants, standard error shapes, `derive_error_schemas`.
|
|
20
|
+
- `http/schema_helpers.ts` — shared Zod introspection (null/strict/surface/merge/middleware-applies).
|
|
21
|
+
- `http/middleware_spec.ts` — `MiddlewareSpec` interface.
|
|
22
|
+
- `http/surface.ts` — `AppSurface`, `AppSurfaceSpec`, `generate_app_surface`, diagnostics.
|
|
23
|
+
- `http/surface_query.ts` — pure filters/groupings over `AppSurface`.
|
|
24
|
+
- `http/proxy.ts` — trusted-proxy middleware, CIDR parsing, rightmost-first XFF resolution.
|
|
25
|
+
- `http/ip_canonical.ts` — RFC 5952 IPv6 canonicalization + IPv4-mapped collapse; `IP_LITERAL_CHARS` regex.
|
|
26
|
+
- `http/origin.ts` — origin allowlist middleware with wildcard patterns (Origin-only).
|
|
27
|
+
- `http/jsonrpc.ts` — JSON-RPC 2.0 envelope schemas (MCP superset), `JsonrpcErrorCode`, `_meta`.
|
|
28
|
+
- `http/jsonrpc_errors.ts` — `ThrownJsonrpcError`, `jsonrpc_errors` throwers, HTTP-status mappings.
|
|
29
|
+
- `http/jsonrpc_helpers.ts` — message builders, type guards, input/result normalizers.
|
|
30
|
+
- `http/common_routes.ts` — health check + authenticated server-status + surface route specs.
|
|
31
|
+
- `http/db_routes.ts` — generic keeper-only table browser route specs (public schema).
|
|
32
|
+
- `http/pending_effects.ts` — `emit_after_commit` + `flush_pending_effects` + `flush_post_commit_effects` + `EmitAfterCommitContext`.
|
|
35
33
|
|
|
36
34
|
## Route Spec System
|
|
37
35
|
|
|
38
36
|
`RouteSpec` (in `http/route_spec.ts`) is the unit of the attack surface —
|
|
39
|
-
routes are **data**, registered with Hono by `apply_route_specs
|
|
37
|
+
routes are **data**, registered with Hono by `apply_route_specs` and
|
|
40
38
|
introspected by `generate_app_surface`. Same-shaped data, different
|
|
41
39
|
consumers.
|
|
42
40
|
|
|
@@ -155,8 +153,7 @@ WS); see ../../docs/architecture.md §DEV-only Output Validation.
|
|
|
155
153
|
All standard shapes use `z.looseObject` — intentional because multiple
|
|
156
154
|
producers (middleware + handler) can emit different extra fields at the
|
|
157
155
|
same status code. The `error` string literal is the contract; extra keys
|
|
158
|
-
(`required_roles`, `required_credential_types`, `retry_after`, `detail`)
|
|
159
|
-
are diagnostic.
|
|
156
|
+
(`required_roles`, `required_credential_types`, `retry_after`, `detail`) are diagnostic.
|
|
160
157
|
|
|
161
158
|
Pair every schema with the `z.infer` type export.
|
|
162
159
|
|
|
@@ -216,8 +213,7 @@ confirmation.
|
|
|
216
213
|
|
|
217
214
|
`http/schema_helpers.ts` is the canonical home for shared Zod introspection
|
|
218
215
|
— extracted to break a circular dependency between `http/route_spec.ts`
|
|
219
|
-
(
|
|
220
|
-
surface generation).
|
|
216
|
+
(input validation) and `http/surface.ts` (surface generation).
|
|
221
217
|
|
|
222
218
|
**Import `is_null_schema`, `is_strict_object_schema`, `schema_to_surface`,
|
|
223
219
|
`middleware_applies`, and `merge_error_schemas` from `http/schema_helpers.ts`,
|
|
@@ -318,8 +314,7 @@ operator configuration in practice.
|
|
|
318
314
|
### Origin allowlist — `http/origin.ts`
|
|
319
315
|
|
|
320
316
|
Origin allowlisting for locally-running services — **not** the CSRF layer.
|
|
321
|
-
CSRF is handled by `SameSite: strict` on session cookies (
|
|
322
|
-
`auth/session_middleware.ts`).
|
|
317
|
+
CSRF is handled by `SameSite: strict` on session cookies (`auth/session_middleware.ts`).
|
|
323
318
|
|
|
324
319
|
- `parse_allowed_origins(env_value)` — comma-separated patterns → `Array<RegExp>`
|
|
325
320
|
- `should_allow_origin(origin, patterns)` — case-insensitive match
|
|
@@ -344,14 +339,17 @@ protocol.
|
|
|
344
339
|
|
|
345
340
|
## JSON-RPC (`http/jsonrpc.ts`, `http/jsonrpc_errors.ts`, `http/jsonrpc_helpers.ts`)
|
|
346
341
|
|
|
347
|
-
Three files split by concern
|
|
348
|
-
schemas), `http/jsonrpc_errors.ts`
|
|
349
|
-
`http/jsonrpc_helpers.ts`
|
|
342
|
+
Three files split by concern: `http/jsonrpc.ts` declarative (envelope
|
|
343
|
+
schemas), `http/jsonrpc_errors.ts` runtime (throwable + map),
|
|
344
|
+
`http/jsonrpc_helpers.ts` plumbing (builders, guards, converters).
|
|
350
345
|
|
|
351
|
-
Follows JSON-RPC 2.0 spec
|
|
352
|
-
are
|
|
353
|
-
|
|
354
|
-
|
|
346
|
+
Follows JSON-RPC 2.0 spec with a partial **MCP superset** posture — params
|
|
347
|
+
are object-only (no positional arrays) and `_meta` / `progressToken` are
|
|
348
|
+
first-class; result is the full JSON-RPC §5 value space (object, array,
|
|
349
|
+
string, number, boolean, null) since the per-action `spec.output` is the
|
|
350
|
+
actual contract and the MCP object-only result constraint would reject any
|
|
351
|
+
spec declaring `output: z.null()` / primitives on the wire. Schemas sourced
|
|
352
|
+
from the MCP TypeScript SDK for compatibility on the params / `_meta` axis.
|
|
355
353
|
|
|
356
354
|
`_meta` is intentionally **not** envelope-validated — that lives in
|
|
357
355
|
per-action schemas so mismatches surface as `invalid_params` rather than
|
|
@@ -362,29 +360,27 @@ per-action schemas so mismatches surface as `invalid_params` rather than
|
|
|
362
360
|
Five standard codes + ten general application codes (consumers add their
|
|
363
361
|
own by casting `as JsonrpcErrorCode`):
|
|
364
362
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
| `queue_overflow` | -32009 | 429 | **Client-side** backpressure (WS reconnect queue full) |
|
|
381
|
-
| `request_cancelled` | -32010 | 499 | Caller-initiated cancellation (nginx "client closed") |
|
|
363
|
+
- `parse_error` (-32700, HTTP 400) — JSON parse failure.
|
|
364
|
+
- `invalid_request` (-32600, HTTP 400) — envelope malformed.
|
|
365
|
+
- `method_not_found` (-32601, HTTP 404) — unknown RPC method.
|
|
366
|
+
- `invalid_params` (-32602, HTTP 400) — params schema failure.
|
|
367
|
+
- `internal_error` (-32603, HTTP 500) — unhandled exception.
|
|
368
|
+
- `unauthenticated` (-32001, HTTP 401) — HTTP 401 renamed ("unauthorized" is wrong for 401).
|
|
369
|
+
- `forbidden` (-32002, HTTP 403) — authorized but denied.
|
|
370
|
+
- `not_found` (-32003, HTTP 404) — resource not found.
|
|
371
|
+
- `conflict` (-32004, HTTP 409) — uniqueness/state conflict.
|
|
372
|
+
- `validation_error` (-32005, HTTP 422) — **application-level** validation (business logic).
|
|
373
|
+
- `rate_limited` (-32006, HTTP 429) — server-side policy.
|
|
374
|
+
- `service_unavailable` (-32007, HTTP 503) — upstream down / maintenance.
|
|
375
|
+
- `timeout` (-32008, HTTP 504) — handler exceeded time budget.
|
|
376
|
+
- `queue_overflow` (-32009, HTTP 429) — **client-side** backpressure (WS reconnect queue full).
|
|
377
|
+
- `request_cancelled` (-32010, HTTP 499) — caller-initiated cancellation (nginx "client closed").
|
|
382
378
|
|
|
383
379
|
**`invalid_params` vs `validation_error`** — use `invalid_params` (standard
|
|
384
380
|
code) for Zod parse failures; reserve `validation_error` (app code) for
|
|
385
381
|
business rules.
|
|
386
382
|
|
|
387
|
-
**`rate_limited` vs `queue_overflow`** — both 429
|
|
383
|
+
**`rate_limited` vs `queue_overflow`** — both 429; reverse map
|
|
388
384
|
`HTTP_STATUS_TO_JSONRPC_ERROR_CODE[429] = rate_limited` because rate
|
|
389
385
|
limiting is the default interpretation when translating generic HTTP back
|
|
390
386
|
to a JSON-RPC code.
|
|
@@ -429,8 +425,7 @@ Both shapes used to coexist on a single `Array<PendingEffect>` discriminated
|
|
|
429
425
|
union. The shapes encode different contracts — eager pushers say "wait for
|
|
430
426
|
this work that's already started"; thunk pushers say "run this after the
|
|
431
427
|
handler returns" — and burying both behind one field made
|
|
432
|
-
`c.var.pending_effects.push(x)` ambiguous at the call site. Splitting
|
|
433
|
-
turns the field name into the contract.
|
|
428
|
+
`c.var.pending_effects.push(x)` ambiguous at the call site. Splitting turns the field name into the contract.
|
|
434
429
|
|
|
435
430
|
### Why `emit_after_commit` defers
|
|
436
431
|
|
package/dist/http/jsonrpc.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* JSON-RPC 2.0 envelope schemas for RPC dispatch and SAES transport.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Params are object-only following MCP (no positional arrays); per-action
|
|
5
|
+
* spec.input narrows further. Result is the full JSON-RPC valid value
|
|
6
|
+
* space per spec §5 ("determined by the method invoked"): object, array,
|
|
7
|
+
* string, number, boolean, or null — the per-action spec.output is the
|
|
8
|
+
* actual contract. The envelope-level loose-object-only constraint
|
|
9
|
+
* inherited from MCP would reject any action with `output: z.null()` /
|
|
10
|
+
* `z.string()` / etc. on the wire, so we relax it here while keeping
|
|
11
|
+
* MCP-superset shape on params + _meta.
|
|
12
|
+
*
|
|
5
13
|
* MCP `_meta` types (`JsonrpcMcpMeta`, `JsonrpcRequestParamsMeta`) are
|
|
6
14
|
* exported as building blocks for per-action schemas but are NOT validated
|
|
7
15
|
* at the envelope level — `_meta` content validation belongs in per-action
|
|
@@ -37,8 +45,16 @@ export type JsonrpcRequestParams = z.infer<typeof JsonrpcRequestParams>;
|
|
|
37
45
|
/** Notification params — loose object. Per-action schemas validate `_meta` content. */
|
|
38
46
|
export declare const JsonrpcNotificationParams: z.ZodObject<{}, z.core.$loose>;
|
|
39
47
|
export type JsonrpcNotificationParams = z.infer<typeof JsonrpcNotificationParams>;
|
|
40
|
-
/**
|
|
41
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Result — any JSON value per JSON-RPC 2.0 §5. Per-action `spec.output`
|
|
50
|
+
* is the actual contract; the envelope only asserts presence + JSON-ness.
|
|
51
|
+
*
|
|
52
|
+
* `z.json()` is required (not implicitly optional like `z.unknown()` /
|
|
53
|
+
* `z.any()`, which would let an error envelope `{jsonrpc, id, error}`
|
|
54
|
+
* parse successfully against the success envelope and break union
|
|
55
|
+
* discrimination).
|
|
56
|
+
*/
|
|
57
|
+
export declare const JsonrpcResult: z.ZodJSONSchema;
|
|
42
58
|
export type JsonrpcResult = z.infer<typeof JsonrpcResult>;
|
|
43
59
|
/** A request that expects a response. */
|
|
44
60
|
export declare const JsonrpcRequest: z.ZodObject<{
|
|
@@ -59,7 +75,7 @@ export type JsonrpcNotification = z.infer<typeof JsonrpcNotification>;
|
|
|
59
75
|
export declare const JsonrpcResponse: z.ZodObject<{
|
|
60
76
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
61
77
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
62
|
-
result: z.
|
|
78
|
+
result: z.ZodJSONSchema;
|
|
63
79
|
}, z.core.$loose>;
|
|
64
80
|
export type JsonrpcResponse = z.infer<typeof JsonrpcResponse>;
|
|
65
81
|
export declare const JSONRPC_PARSE_ERROR = -32700;
|
|
@@ -102,7 +118,7 @@ export type JsonrpcErrorResponse = z.infer<typeof JsonrpcErrorResponse>;
|
|
|
102
118
|
export declare const JsonrpcResponseOrError: z.ZodUnion<readonly [z.ZodObject<{
|
|
103
119
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
104
120
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
105
|
-
result: z.
|
|
121
|
+
result: z.ZodJSONSchema;
|
|
106
122
|
}, z.core.$loose>, z.ZodObject<{
|
|
107
123
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
108
124
|
id: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -126,7 +142,7 @@ export declare const JsonrpcMessage: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
126
142
|
}, z.core.$loose>, z.ZodObject<{
|
|
127
143
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
128
144
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
129
|
-
result: z.
|
|
145
|
+
result: z.ZodJSONSchema;
|
|
130
146
|
}, z.core.$loose>, z.ZodObject<{
|
|
131
147
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
132
148
|
id: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -157,7 +173,7 @@ export declare const JsonrpcMessageFromServerToClient: z.ZodUnion<readonly [z.Zo
|
|
|
157
173
|
}, z.core.$loose>, z.ZodObject<{
|
|
158
174
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
159
175
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
160
|
-
result: z.
|
|
176
|
+
result: z.ZodJSONSchema;
|
|
161
177
|
}, z.core.$loose>, z.ZodObject<{
|
|
162
178
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
163
179
|
id: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonrpc.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/http/jsonrpc.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"jsonrpc.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/http/jsonrpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,iDAAoC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,8BAA8B;AAC9B,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,4FAA4F;AAC5F,eAAO,MAAM,oBAAoB,iDAAoC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBA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1F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;mBAI3C,CAAC;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
package/dist/http/jsonrpc.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* JSON-RPC 2.0 envelope schemas for RPC dispatch and SAES transport.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Params are object-only following MCP (no positional arrays); per-action
|
|
5
|
+
* spec.input narrows further. Result is the full JSON-RPC valid value
|
|
6
|
+
* space per spec §5 ("determined by the method invoked"): object, array,
|
|
7
|
+
* string, number, boolean, or null — the per-action spec.output is the
|
|
8
|
+
* actual contract. The envelope-level loose-object-only constraint
|
|
9
|
+
* inherited from MCP would reject any action with `output: z.null()` /
|
|
10
|
+
* `z.string()` / etc. on the wire, so we relax it here while keeping
|
|
11
|
+
* MCP-superset shape on params + _meta.
|
|
12
|
+
*
|
|
5
13
|
* MCP `_meta` types (`JsonrpcMcpMeta`, `JsonrpcRequestParamsMeta`) are
|
|
6
14
|
* exported as building blocks for per-action schemas but are NOT validated
|
|
7
15
|
* at the envelope level — `_meta` content validation belongs in per-action
|
|
@@ -35,8 +43,16 @@ export const JsonrpcRequestParamsMeta = JsonrpcMcpMeta.extend({
|
|
|
35
43
|
export const JsonrpcRequestParams = z.looseObject({});
|
|
36
44
|
/** Notification params — loose object. Per-action schemas validate `_meta` content. */
|
|
37
45
|
export const JsonrpcNotificationParams = z.looseObject({});
|
|
38
|
-
/**
|
|
39
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Result — any JSON value per JSON-RPC 2.0 §5. Per-action `spec.output`
|
|
48
|
+
* is the actual contract; the envelope only asserts presence + JSON-ness.
|
|
49
|
+
*
|
|
50
|
+
* `z.json()` is required (not implicitly optional like `z.unknown()` /
|
|
51
|
+
* `z.any()`, which would let an error envelope `{jsonrpc, id, error}`
|
|
52
|
+
* parse successfully against the success envelope and break union
|
|
53
|
+
* discrimination).
|
|
54
|
+
*/
|
|
55
|
+
export const JsonrpcResult = z.json();
|
|
40
56
|
/** A request that expects a response. */
|
|
41
57
|
export const JsonrpcRequest = z.looseObject({
|
|
42
58
|
jsonrpc: z.literal(JSONRPC_VERSION),
|
package/dist/http/surface.d.ts
CHANGED
|
@@ -140,8 +140,15 @@ export interface AppSurface {
|
|
|
140
140
|
/**
|
|
141
141
|
* The surface bundled with the source specs that produced it.
|
|
142
142
|
*
|
|
143
|
-
* `AppSurface` is JSON-serializable (snapshots, UI, startup logging)
|
|
144
|
-
*
|
|
143
|
+
* `AppSurface` is JSON-serializable (snapshots, UI, startup logging) —
|
|
144
|
+
* it's the observability layer, written to disk by `gro gen` for human
|
|
145
|
+
* inspection + drift detection.
|
|
146
|
+
*
|
|
147
|
+
* `AppSurfaceSpec` is runtime-only — tests, introspection, attack
|
|
148
|
+
* surface assertions. Both in-process and cross-process tests construct
|
|
149
|
+
* an `AppSurfaceSpec` in TS via `create_test_app_surface_spec` (or a
|
|
150
|
+
* consumer equivalent); the cross-process-ness lives in the transport
|
|
151
|
+
* + per-test fixture, not the schema source.
|
|
145
152
|
*/
|
|
146
153
|
export interface AppSurfaceSpec {
|
|
147
154
|
surface: AppSurface;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/http/surface.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAC,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,eAAe,CAAC,CAAC;IACvC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;CAC7C;AAID;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GACrC,YAAY,KAAK,CAAC,cAAc,CAAC,EACjC,YAAY,MAAM,KAChB,iBAAiB,GAAG,IAQtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,CAAC,CAAC,SAAS,KAAG,KAAK,CAAC,aAAa,CAe9E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,aAAa,KAAK,CAAC,SAAS,CAAC,KAAG,KAAK,CAAC,eAAe,CAOtF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,yBAAyB,KAAG,UAoHzE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,SAAS,yBAAyB,KAAG,cAS5E,CAAC"}
|
package/dist/runtime/mock.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides a fully controllable runtime implementation for unit tests.
|
|
5
5
|
* Consumer projects can extend `MockRuntime` with project-specific helpers
|
|
6
|
-
* (e.g. `
|
|
6
|
+
* (e.g. `setup_mock_zap_config`) that stay local.
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
package/dist/runtime/mock.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides a fully controllable runtime implementation for unit tests.
|
|
5
5
|
* Consumer projects can extend `MockRuntime` with project-specific helpers
|
|
6
|
-
* (e.g. `
|
|
6
|
+
* (e.g. `setup_mock_zap_config`) that stay local.
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|