@fuzdev/fuz_app 0.175.0 → 0.177.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/README.md +6 -4
- package/dist/actions/CLAUDE.md +10 -8
- package/dist/actions/action_bridge.d.ts.map +1 -1
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_dispatcher.d.ts.map +1 -1
- package/dist/actions/action_event.d.ts.map +1 -1
- package/dist/actions/action_event_data.d.ts +37 -255
- package/dist/actions/action_event_data.d.ts.map +1 -1
- package/dist/actions/action_event_helpers.d.ts.map +1 -1
- package/dist/actions/action_event_types.d.ts +2 -2
- package/dist/actions/action_event_types.d.ts.map +1 -1
- package/dist/actions/action_registry.d.ts.map +1 -1
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_spec.d.ts +3 -3
- package/dist/actions/action_spec.d.ts.map +1 -1
- package/dist/actions/action_types.d.ts.map +1 -1
- package/dist/actions/broadcast_api.d.ts.map +1 -1
- package/dist/actions/cancel.d.ts +5 -13
- package/dist/actions/cancel.d.ts.map +1 -1
- package/dist/actions/compile_action_registry.d.ts.map +1 -1
- package/dist/actions/connection_closer.d.ts.map +1 -1
- package/dist/actions/connection_registry.d.ts.map +1 -1
- package/dist/actions/frontend_rpc_client.d.ts.map +1 -1
- package/dist/actions/heartbeat.d.ts +2 -2
- package/dist/actions/heartbeat.d.ts.map +1 -1
- package/dist/actions/peer_ping.d.ts +16 -56
- package/dist/actions/peer_ping.d.ts.map +1 -1
- package/dist/actions/peer_request.d.ts.map +1 -1
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/protocol.d.ts.map +1 -1
- package/dist/actions/register_action_ws.d.ts.map +1 -1
- package/dist/actions/rpc_client.d.ts.map +1 -1
- package/dist/actions/socket.svelte.d.ts.map +1 -1
- package/dist/actions/transports.d.ts.map +1 -1
- package/dist/actions/transports_http.d.ts.map +1 -1
- package/dist/actions/transports_ws.d.ts.map +1 -1
- package/dist/actions/ws_endpoint_spec.d.ts.map +1 -1
- package/dist/actions/ws_outbound_writer.d.ts +8 -8
- package/dist/actions/ws_outbound_writer.d.ts.map +1 -1
- package/dist/actions/ws_outbound_writer.js +8 -11
- package/dist/actions/ws_socket_session.d.ts.map +1 -1
- package/dist/auth/CLAUDE.md +1 -1
- package/dist/auth/account_action_specs.d.ts +114 -591
- package/dist/auth/account_action_specs.d.ts.map +1 -1
- package/dist/auth/account_actions.d.ts.map +1 -1
- package/dist/auth/account_queries.d.ts.map +1 -1
- package/dist/auth/account_route_schema.d.ts +66 -360
- package/dist/auth/account_route_schema.d.ts.map +1 -1
- package/dist/auth/account_routes.d.ts.map +1 -1
- package/dist/auth/account_schema.d.ts +82 -463
- package/dist/auth/account_schema.d.ts.map +1 -1
- package/dist/auth/actor_lookup_action_specs.d.ts +25 -164
- package/dist/auth/actor_lookup_action_specs.d.ts.map +1 -1
- package/dist/auth/actor_lookup_actions.d.ts.map +1 -1
- package/dist/auth/actor_lookup_queries.d.ts.map +1 -1
- package/dist/auth/actor_search_action_specs.d.ts +27 -165
- package/dist/auth/actor_search_action_specs.d.ts.map +1 -1
- package/dist/auth/actor_search_actions.d.ts.map +1 -1
- package/dist/auth/actor_search_queries.d.ts.map +1 -1
- package/dist/auth/admin_action_specs.d.ts +355 -2575
- package/dist/auth/admin_action_specs.d.ts.map +1 -1
- package/dist/auth/admin_actions.d.ts.map +1 -1
- package/dist/auth/all_action_spec_registries.d.ts.map +1 -1
- package/dist/auth/all_cell_actions.d.ts.map +1 -1
- package/dist/auth/api_token.d.ts +1 -1
- package/dist/auth/api_token.d.ts.map +1 -1
- package/dist/auth/api_token_queries.d.ts.map +1 -1
- package/dist/auth/app_settings_queries.d.ts.map +1 -1
- package/dist/auth/app_settings_schema.d.ts +9 -37
- package/dist/auth/app_settings_schema.d.ts.map +1 -1
- package/dist/auth/audit_emitter.d.ts.map +1 -1
- package/dist/auth/audit_log_ddl.d.ts.map +1 -1
- package/dist/auth/audit_log_queries.d.ts.map +1 -1
- package/dist/auth/audit_log_route_schema.d.ts +2 -11
- package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_routes.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.d.ts +164 -728
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/auth_ddl.d.ts.map +1 -1
- package/dist/auth/auth_guard_resolver.d.ts.map +1 -1
- package/dist/auth/bearer_auth.d.ts.map +1 -1
- package/dist/auth/bootstrap_account.d.ts.map +1 -1
- package/dist/auth/bootstrap_route_schema.d.ts +18 -102
- package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/cell_action_helpers.d.ts.map +1 -1
- package/dist/auth/cell_action_specs.d.ts +826 -5965
- package/dist/auth/cell_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_actions.d.ts.map +1 -1
- package/dist/auth/cell_audit_action_specs.d.ts +40 -280
- package/dist/auth/cell_audit_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_audit_actions.d.ts.map +1 -1
- package/dist/auth/cell_audit_events.d.ts.map +1 -1
- package/dist/auth/cell_audit_metadata.d.ts +18 -84
- package/dist/auth/cell_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_authorize.d.ts.map +1 -1
- package/dist/auth/cell_data_schema.d.ts +3 -9
- package/dist/auth/cell_data_schema.d.ts.map +1 -1
- package/dist/auth/cell_field_action_specs.d.ts +96 -663
- package/dist/auth/cell_field_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_field_actions.d.ts.map +1 -1
- package/dist/auth/cell_field_audit_metadata.d.ts +8 -44
- package/dist/auth/cell_field_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_grant_action_specs.d.ts +141 -1008
- package/dist/auth/cell_grant_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_grant_actions.d.ts.map +1 -1
- package/dist/auth/cell_grant_audit_metadata.d.ts +25 -179
- package/dist/auth/cell_grant_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_item_action_specs.d.ts +129 -903
- package/dist/auth/cell_item_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_item_actions.d.ts.map +1 -1
- package/dist/auth/cell_item_audit_metadata.d.ts +12 -61
- package/dist/auth/cell_item_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_ref_admission.d.ts.map +1 -1
- package/dist/auth/cell_relation_list_limit.d.ts +1 -1
- package/dist/auth/cell_relation_list_limit.d.ts.map +1 -1
- package/dist/auth/cell_relation_visibility.d.ts.map +1 -1
- package/dist/auth/cell_steward.d.ts.map +1 -1
- package/dist/auth/cleanup.d.ts.map +1 -1
- package/dist/auth/credential_deadline.d.ts.map +1 -1
- package/dist/auth/credential_type_schema.d.ts +1 -1
- package/dist/auth/credential_type_schema.d.ts.map +1 -1
- package/dist/auth/daemon_token.d.ts +1 -1
- package/dist/auth/daemon_token.d.ts.map +1 -1
- package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
- package/dist/auth/deps.d.ts.map +1 -1
- package/dist/auth/fail_floor.d.ts.map +1 -1
- package/dist/auth/grant_path_schema.d.ts +1 -1
- package/dist/auth/grant_path_schema.d.ts.map +1 -1
- package/dist/auth/invite_queries.d.ts.map +1 -1
- package/dist/auth/invite_schema.d.ts +18 -84
- package/dist/auth/invite_schema.d.ts.map +1 -1
- package/dist/auth/keyring.d.ts +1 -1
- package/dist/auth/keyring.d.ts.map +1 -1
- package/dist/auth/keyring.js +1 -1
- package/dist/auth/middleware.d.ts.map +1 -1
- package/dist/auth/migrations.d.ts.map +1 -1
- package/dist/auth/name_schema.d.ts.map +1 -1
- package/dist/auth/password.d.ts +2 -2
- package/dist/auth/password.d.ts.map +1 -1
- package/dist/auth/password_argon2.d.ts.map +1 -1
- package/dist/auth/request_context.d.ts.map +1 -1
- package/dist/auth/resolved_auth.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_action_specs.d.ts +318 -2134
- package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_ddl.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_notifications.d.ts +202 -1284
- package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_schema.d.ts +17 -81
- package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
- package/dist/auth/role_grant_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_sql.d.ts.map +1 -1
- package/dist/auth/role_schema.d.ts +1 -1
- package/dist/auth/role_schema.d.ts.map +1 -1
- package/dist/auth/scope_kind_schema.d.ts +1 -1
- package/dist/auth/scope_kind_schema.d.ts.map +1 -1
- package/dist/auth/self_service_role_action_specs.d.ts +16 -58
- package/dist/auth/self_service_role_action_specs.d.ts.map +1 -1
- package/dist/auth/self_service_role_actions.d.ts.map +1 -1
- package/dist/auth/session_cookie.d.ts.map +1 -1
- package/dist/auth/session_middleware.d.ts.map +1 -1
- package/dist/auth/session_queries.d.ts.map +1 -1
- package/dist/auth/signup_route_schema.d.ts +11 -57
- package/dist/auth/signup_route_schema.d.ts.map +1 -1
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/standard_action_specs.d.ts.map +1 -1
- package/dist/auth/standard_rpc_actions.d.ts.map +1 -1
- package/dist/auth/token_lifetime.d.ts +6 -29
- package/dist/auth/token_lifetime.d.ts.map +1 -1
- package/dist/auth/token_scope.d.ts +16 -78
- package/dist/auth/token_scope.d.ts.map +1 -1
- package/dist/crypto.d.ts.map +1 -1
- package/dist/db/CLAUDE.md +9 -0
- package/dist/db/assert_row.d.ts.map +1 -1
- package/dist/db/cell_audit_queries.d.ts.map +1 -1
- package/dist/db/cell_ddl.d.ts.map +1 -1
- package/dist/db/cell_field_queries.d.ts.map +1 -1
- package/dist/db/cell_grant_queries.d.ts.map +1 -1
- package/dist/db/cell_item_queries.d.ts.map +1 -1
- package/dist/db/cell_moderation.d.ts.map +1 -1
- package/dist/db/cell_queries.d.ts.map +1 -1
- package/dist/db/cell_view_sql.d.ts.map +1 -1
- package/dist/db/create_db.d.ts.map +1 -1
- package/dist/db/db.d.ts.map +1 -1
- package/dist/db/db_checkout_error.d.ts.map +1 -1
- package/dist/db/db_pg.d.ts.map +1 -1
- package/dist/db/db_pglet.d.ts.map +1 -1
- package/dist/db/db_pglite.d.ts.map +1 -1
- package/dist/db/fact_ddl.d.ts.map +1 -1
- package/dist/db/fact_disk_storage.d.ts +3 -2
- package/dist/db/fact_disk_storage.d.ts.map +1 -1
- package/dist/db/fact_disk_storage.js +2 -1
- package/dist/db/fact_holder_queries.d.ts.map +1 -1
- package/dist/db/fact_queries.d.ts.map +1 -1
- package/dist/db/fact_store.d.ts.map +1 -1
- package/dist/db/fact_store_errors.d.ts.map +1 -1
- package/dist/db/file_fact_url.d.ts +1 -6
- package/dist/db/file_fact_url.d.ts.map +1 -1
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/pg_error.d.ts.map +1 -1
- package/dist/db/postgres_url.d.ts +95 -0
- package/dist/db/postgres_url.d.ts.map +1 -0
- package/dist/db/postgres_url.js +167 -0
- package/dist/db/query_deps.d.ts.map +1 -1
- package/dist/db/schema_ready.d.ts.map +1 -1
- package/dist/db/sql_columns.d.ts.map +1 -1
- package/dist/db/sql_identifier.d.ts.map +1 -1
- package/dist/db/status.d.ts.map +1 -1
- package/dist/dev/setup.d.ts +101 -33
- package/dist/dev/setup.d.ts.map +1 -1
- package/dist/dev/setup.js +174 -71
- package/dist/env/dotenv.d.ts +1 -1
- package/dist/env/dotenv.d.ts.map +1 -1
- package/dist/env/dotenv.js +2 -3
- package/dist/env/env_schemas.d.ts.map +1 -1
- package/dist/env/load.d.ts.map +1 -1
- package/dist/env/mask.d.ts.map +1 -1
- package/dist/env/update_env_variable.d.ts.map +1 -1
- package/dist/hono_context.d.ts.map +1 -1
- package/dist/http/CLAUDE.md +1 -1
- package/dist/http/auth_shape.d.ts +1 -1
- package/dist/http/auth_shape.d.ts.map +1 -1
- package/dist/http/body_limit.d.ts +10 -16
- package/dist/http/body_limit.d.ts.map +1 -1
- package/dist/http/body_limit.js +10 -16
- package/dist/http/body_limit_schema.d.ts.map +1 -1
- package/dist/http/client_ip.d.ts.map +1 -1
- package/dist/http/common_routes.d.ts.map +1 -1
- package/dist/http/db_routes.d.ts.map +1 -1
- package/dist/http/dev_route_error_check.d.ts.map +1 -1
- package/dist/http/error_schemas.d.ts +31 -151
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/health_schema.d.ts +2 -6
- package/dist/http/health_schema.d.ts.map +1 -1
- package/dist/http/host.d.ts.map +1 -1
- package/dist/http/ip_canonical.d.ts.map +1 -1
- package/dist/http/json_text.d.ts.map +1 -1
- package/dist/http/jsonrpc.d.ts +42 -181
- package/dist/http/jsonrpc.d.ts.map +1 -1
- package/dist/http/jsonrpc_errors.d.ts.map +1 -1
- package/dist/http/jsonrpc_helpers.d.ts.map +1 -1
- package/dist/http/middleware_spec.d.ts.map +1 -1
- package/dist/http/origin.d.ts +2 -2
- package/dist/http/origin.d.ts.map +1 -1
- package/dist/http/origin_wildcard.d.ts.map +1 -1
- package/dist/http/pending_effects.d.ts.map +1 -1
- package/dist/http/proxy.d.ts.map +1 -1
- package/dist/http/route_error_check.d.ts.map +1 -1
- package/dist/http/route_errors.d.ts.map +1 -1
- package/dist/http/route_result.d.ts.map +1 -1
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/schema_helpers.d.ts.map +1 -1
- package/dist/http/simple_request.d.ts.map +1 -1
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/http/surface_query.d.ts.map +1 -1
- package/dist/periodic.d.ts.map +1 -1
- package/dist/primitive_schemas.d.ts +10 -30
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/rate_limiter.d.ts +1 -1
- package/dist/rate_limiter.d.ts.map +1 -1
- package/dist/realtime/audit_log_sse.d.ts.map +1 -1
- package/dist/realtime/outbound_budget.d.ts.map +1 -1
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse_constants.d.ts.map +1 -1
- package/dist/realtime/sse_registry.d.ts.map +1 -1
- package/dist/runtime/deps.d.ts +81 -45
- package/dist/runtime/deps.d.ts.map +1 -1
- package/dist/runtime/deps.js +7 -2
- package/dist/runtime/fs.d.ts.map +1 -1
- package/dist/runtime/mock.d.ts +63 -16
- package/dist/runtime/mock.d.ts.map +1 -1
- package/dist/runtime/mock.js +75 -35
- package/dist/runtime/node.d.ts +3 -2
- package/dist/runtime/node.d.ts.map +1 -1
- package/dist/runtime/node.js +20 -72
- package/dist/runtime/process_id.d.ts +24 -0
- package/dist/runtime/process_id.d.ts.map +1 -0
- package/dist/runtime/process_id.js +27 -0
- package/dist/runtime/secure_file.d.ts +8 -30
- package/dist/runtime/secure_file.d.ts.map +1 -1
- package/dist/runtime/secure_file.js +23 -51
- package/dist/schema_issues.d.ts +6 -18
- package/dist/schema_issues.d.ts.map +1 -1
- package/dist/schema_meta.d.ts.map +1 -1
- package/dist/sensitivity.d.ts.map +1 -1
- package/dist/server/app_backend.d.ts.map +1 -1
- package/dist/server/app_error_handler.d.ts.map +1 -1
- package/dist/server/app_server.d.ts +2 -2
- package/dist/server/app_server.d.ts.map +1 -1
- package/dist/server/app_server_context.d.ts.map +1 -1
- package/dist/server/env.d.ts +11 -33
- package/dist/server/env.d.ts.map +1 -1
- package/dist/server/fact_security_headers.d.ts.map +1 -1
- package/dist/server/serve_fact_route.d.ts.map +1 -1
- package/dist/server/startup.d.ts.map +1 -1
- package/dist/server/static.d.ts +1 -1
- package/dist/server/static.d.ts.map +1 -1
- package/dist/server/surface_route.d.ts.map +1 -1
- package/dist/server/x_accel.d.ts +3 -7
- package/dist/server/x_accel.d.ts.map +1 -1
- package/dist/testing/CLAUDE.md +28 -27
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/adversarial_404.d.ts.map +1 -1
- package/dist/testing/adversarial_headers.d.ts.map +1 -1
- package/dist/testing/adversarial_input.d.ts.map +1 -1
- package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
- package/dist/testing/app_server.d.ts.map +1 -1
- package/dist/testing/assert_dev_env.d.ts.map +1 -1
- package/dist/testing/assertions.d.ts.map +1 -1
- package/dist/testing/attack_surface.d.ts.map +1 -1
- package/dist/testing/audit_completeness.d.ts.map +1 -1
- package/dist/testing/audit_drift_guard.d.ts.map +1 -1
- package/dist/testing/auth_apps.d.ts.map +1 -1
- package/dist/testing/connection_closer_helpers.d.ts.map +1 -1
- package/dist/testing/cross_backend/account_lifecycle.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest.d.ts +19 -95
- package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest_parity.d.ts.map +1 -1
- package/dist/testing/cross_backend/actor_lookup.d.ts.map +1 -1
- package/dist/testing/cross_backend/app_settings.d.ts.map +1 -1
- package/dist/testing/cross_backend/audit_cross_helpers.d.ts.map +1 -1
- package/dist/testing/cross_backend/backend_config.d.ts +7 -7
- package/dist/testing/cross_backend/backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/bench/bench_report.d.ts +2 -2
- package/dist/testing/cross_backend/bench/bench_report.d.ts.map +1 -1
- package/dist/testing/cross_backend/bench/bench_report.js +2 -2
- package/dist/testing/cross_backend/bench/run_cross_impl_bench.d.ts.map +1 -1
- package/dist/testing/cross_backend/bench/scenario.d.ts.map +1 -1
- package/dist/testing/cross_backend/body_size.d.ts.map +1 -1
- package/dist/testing/cross_backend/body_size_smuggling.d.ts.map +1 -1
- package/dist/testing/cross_backend/body_size_smuggling.js +1 -4
- package/dist/testing/cross_backend/bootstrap_backend.d.ts +1 -1
- package/dist/testing/cross_backend/bootstrap_backend.d.ts.map +1 -1
- package/dist/testing/cross_backend/build_test_backend_paths.d.ts.map +1 -1
- package/dist/testing/cross_backend/capabilities.d.ts +2 -2
- package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
- package/dist/testing/cross_backend/cargo_binary.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_gated_create.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_grant_role.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_grant_steward.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_moderate.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_ref_admission.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_rpc_auth.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/cookie_attributes.d.ts.map +1 -1
- package/dist/testing/cross_backend/create_cross_backend_global_setup.d.ts +2 -2
- package/dist/testing/cross_backend/create_cross_backend_global_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/create_cross_backend_global_setup.js +1 -1
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts +2 -2
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/credential_deadline.d.ts.map +1 -1
- package/dist/testing/cross_backend/credential_header_robustness.d.ts.map +1 -1
- package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_backend_configs.d.ts +1 -1
- package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_backend_configs.js +4 -4
- package/dist/testing/cross_backend/default_secrets.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/differential.d.ts +2 -2
- package/dist/testing/cross_backend/differential.d.ts.map +1 -1
- package/dist/testing/cross_backend/differential.js +6 -6
- package/dist/testing/cross_backend/differential_normalize.d.ts.map +1 -1
- package/dist/testing/cross_backend/fact_serving.d.ts.map +1 -1
- package/dist/testing/cross_backend/fact_serving.js +1 -1
- package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
- package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
- package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
- package/dist/testing/cross_backend/make_cross_backend_project.d.ts +2 -2
- package/dist/testing/cross_backend/make_cross_backend_project.d.ts.map +1 -1
- package/dist/testing/cross_backend/make_cross_backend_project.js +1 -1
- package/dist/testing/cross_backend/method_coverage.d.ts.map +1 -1
- package/dist/testing/cross_backend/narrowed_api_token.d.ts.map +1 -1
- package/dist/testing/cross_backend/origin.d.ts.map +1 -1
- package/dist/testing/cross_backend/origin_conformance.d.ts +44 -294
- package/dist/testing/cross_backend/origin_conformance.d.ts.map +1 -1
- package/dist/testing/cross_backend/origin_conformance.json +1 -1
- package/dist/testing/cross_backend/origin_scope.d.ts.map +1 -1
- package/dist/testing/cross_backend/peer_ping_ws.d.ts.map +1 -1
- package/dist/testing/cross_backend/postgres_database.d.ts +7 -21
- package/dist/testing/cross_backend/postgres_database.d.ts.map +1 -1
- package/dist/testing/cross_backend/postgres_database.js +24 -35
- package/dist/testing/cross_backend/provided_context.d.ts.map +1 -1
- package/dist/testing/cross_backend/query_shape.d.ts.map +1 -1
- package/dist/testing/cross_backend/ready.d.ts.map +1 -1
- package/dist/testing/cross_backend/revocation_drivers.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_enumeration.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_notification_ws.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_participation.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_role_grammar.d.ts.map +1 -1
- package/dist/testing/cross_backend/rpc_adversarial.d.ts.map +1 -1
- package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
- package/dist/testing/cross_backend/session_cookie_codec.d.ts.map +1 -1
- package/dist/testing/cross_backend/setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/simple_request.d.ts.map +1 -1
- package/dist/testing/cross_backend/spawn_backend.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
- package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/standard.d.ts.map +1 -1
- package/dist/testing/cross_backend/test_cell_gated_create_authorize.d.ts.map +1 -1
- package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_origin_check.d.ts +24 -136
- package/dist/testing/cross_backend/testing_origin_check.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +92 -627
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_bun.js +10 -12
- package/dist/testing/cross_backend/testing_server_core.d.ts +13 -17
- package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_core.js +1 -1
- package/dist/testing/cross_backend/testing_server_node.d.ts.map +1 -1
- package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
- package/dist/testing/cross_backend/token_scope_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts +7 -17
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/ts_spine_backend_config.js +0 -51
- package/dist/testing/cross_backend/wire_shapes.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_action_rate_limit.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_connection_cap.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_endpoint.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_envelope.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_inbound_dispatch.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_outbound_overflow.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_outbound_overflow.js +2 -2
- package/dist/testing/cross_backend/ws_role_gated.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/xfail.d.ts.map +1 -1
- package/dist/testing/daemon_info.d.ts +17 -24
- package/dist/testing/daemon_info.d.ts.map +1 -1
- package/dist/testing/daemon_info.js +11 -8
- package/dist/testing/daemon_token_rotation.d.ts.map +1 -1
- package/dist/testing/data_exposure.d.ts.map +1 -1
- package/dist/testing/db.d.ts.map +1 -1
- package/dist/testing/db_entities.d.ts.map +1 -1
- package/dist/testing/entities.d.ts.map +1 -1
- package/dist/testing/error_coverage.d.ts.map +1 -1
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/middleware.d.ts.map +1 -1
- package/dist/testing/middleware_gate_probes.d.ts.map +1 -1
- package/dist/testing/middleware_gate_probes.js +2 -2
- package/dist/testing/rate_limiting.d.ts.map +1 -1
- package/dist/testing/resolved_auth.d.ts.map +1 -1
- package/dist/testing/role_grant_helpers.d.ts.map +1 -1
- package/dist/testing/round_trip.d.ts.map +1 -1
- package/dist/testing/rpc_attack_surface.d.ts.map +1 -1
- package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_round_trip.d.ts.map +1 -1
- package/dist/testing/schema_generators.d.ts.map +1 -1
- package/dist/testing/schema_introspect.d.ts +52 -380
- package/dist/testing/schema_introspect.d.ts.map +1 -1
- package/dist/testing/schema_parity.d.ts.map +1 -1
- package/dist/testing/schema_ready_fixture.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/stubs.d.ts.map +1 -1
- package/dist/testing/surface_invariants.d.ts.map +1 -1
- package/dist/testing/test_credentials.d.ts.map +1 -1
- package/dist/testing/test_origin.d.ts.map +1 -1
- package/dist/testing/token_scope_fixtures.d.ts.map +1 -1
- package/dist/testing/transports/bootstrap.d.ts.map +1 -1
- package/dist/testing/transports/fetch_transport.d.ts.map +1 -1
- package/dist/testing/transports/raw_http.d.ts.map +1 -1
- package/dist/testing/transports/sse_frame_reader.d.ts.map +1 -1
- package/dist/testing/transports/sse_transport.d.ts.map +1 -1
- package/dist/testing/transports/ws_client.d.ts.map +1 -1
- package/dist/testing/transports/ws_raw_client.d.ts.map +1 -1
- package/dist/testing/transports/ws_transport.d.ts.map +1 -1
- package/dist/testing/ws_round_trip.d.ts.map +1 -1
- package/dist/timestamp.d.ts.map +1 -1
- package/dist/ui/AccountSessions.svelte.d.ts.map +1 -1
- package/dist/ui/AdminAccounts.svelte.d.ts.map +1 -1
- package/dist/ui/AdminAuditLog.svelte.d.ts.map +1 -1
- package/dist/ui/AdminInvites.svelte.d.ts.map +1 -1
- package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
- package/dist/ui/AdminRoleGrantHistory.svelte.d.ts.map +1 -1
- package/dist/ui/AdminSessions.svelte.d.ts.map +1 -1
- package/dist/ui/AdminSettings.svelte.d.ts.map +1 -1
- package/dist/ui/AdminSurface.svelte.d.ts.map +1 -1
- package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
- package/dist/ui/CLAUDE.md +3 -195
- package/dist/ui/ConfirmButton.svelte.d.ts.map +1 -1
- package/dist/ui/Datatable.svelte.d.ts.map +1 -1
- package/dist/ui/LoginForm.svelte.d.ts.map +1 -1
- package/dist/ui/LogoutButton.svelte.d.ts.map +1 -1
- package/dist/ui/OpenSignupToggle.svelte.d.ts.map +1 -1
- package/dist/ui/PopoverButton.svelte.d.ts.map +1 -1
- package/dist/ui/RoleGrantOfferForm.svelte +1 -1
- package/dist/ui/RoleGrantOfferForm.svelte.d.ts.map +1 -1
- package/dist/ui/RoleGrantOfferHistory.svelte.d.ts.map +1 -1
- package/dist/ui/RoleGrantOfferInbox.svelte +4 -4
- package/dist/ui/RoleGrantOfferInbox.svelte.d.ts.map +1 -1
- package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
- package/dist/ui/SurfaceExplorer.svelte.d.ts.map +1 -1
- package/dist/ui/account_sessions_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_accounts_state.svelte.d.ts +5 -5
- package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_rpc_adapters.d.ts.map +1 -1
- package/dist/ui/admin_sessions_state.svelte.d.ts.map +1 -1
- package/dist/ui/app_settings_state.svelte.d.ts.map +1 -1
- package/dist/ui/async_slot.svelte.d.ts.map +1 -1
- package/dist/ui/audit_log_state.svelte.d.ts.map +1 -1
- package/dist/ui/auth_state.svelte.d.ts.map +1 -1
- package/dist/ui/backend_probe.svelte.d.ts.map +1 -1
- package/dist/ui/datatable.d.ts.map +1 -1
- package/dist/ui/form_state.svelte.d.ts.map +1 -1
- package/dist/ui/format_scope.d.ts.map +1 -1
- package/dist/ui/keyed_async_slot.svelte.d.ts.map +1 -1
- package/dist/ui/popover.svelte.d.ts +1 -1
- package/dist/ui/popover.svelte.d.ts.map +1 -1
- package/dist/ui/popover.svelte.js +1 -1
- package/dist/ui/position_helpers.d.ts.map +1 -1
- package/dist/ui/role_grant_offers_state.svelte.d.ts +5 -5
- package/dist/ui/role_grant_offers_state.svelte.d.ts.map +1 -1
- package/dist/ui/table_state.svelte.d.ts.map +1 -1
- package/dist/ui/ui_fetch.d.ts.map +1 -1
- package/dist/ui/ui_format.d.ts.map +1 -1
- package/package.json +10 -15
- package/dist/runtime/deno.d.ts +0 -21
- package/dist/runtime/deno.d.ts.map +0 -1
- package/dist/runtime/deno.js +0 -191
- package/dist/testing/cross_backend/testing_server_deno.d.ts +0 -5
- package/dist/testing/cross_backend/testing_server_deno.d.ts.map +0 -1
- package/dist/testing/cross_backend/testing_server_deno.js +0 -38
- package/dist/ui/AppShell.svelte +0 -448
- package/dist/ui/AppShell.svelte.d.ts +0 -135
- package/dist/ui/AppShell.svelte.d.ts.map +0 -1
- package/dist/ui/ColumnLayout.svelte +0 -185
- package/dist/ui/ColumnLayout.svelte.d.ts +0 -60
- package/dist/ui/ColumnLayout.svelte.d.ts.map +0 -1
- package/dist/ui/MenuLink.svelte +0 -45
- package/dist/ui/MenuLink.svelte.d.ts +0 -30
- package/dist/ui/MenuLink.svelte.d.ts.map +0 -1
- package/dist/ui/sidebar_state.svelte.d.ts +0 -113
- package/dist/ui/sidebar_state.svelte.d.ts.map +0 -1
- package/dist/ui/sidebar_state.svelte.js +0 -125
package/dist/runtime/mock.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import { assert_secure_mode, assert_secure_size } from './secure_file.js';
|
|
11
|
+
import { assert_process_id } from './process_id.js';
|
|
11
12
|
/**
|
|
12
13
|
* Create a mock `RuntimeDeps` for testing.
|
|
13
14
|
*
|
|
@@ -25,7 +26,6 @@ import { assert_secure_mode, assert_secure_size } from './secure_file.js';
|
|
|
25
26
|
*
|
|
26
27
|
* await some_function(runtime);
|
|
27
28
|
*
|
|
28
|
-
* assert.strictEqual(runtime.command_calls.length, 1);
|
|
29
29
|
* assert.deepStrictEqual(runtime.exit_calls, [0]);
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
@@ -36,10 +36,8 @@ export const create_mock_runtime = (args = []) => {
|
|
|
36
36
|
const mock_fs_modes = new Map();
|
|
37
37
|
const mock_dirs = new Set();
|
|
38
38
|
const exit_calls = [];
|
|
39
|
-
const
|
|
40
|
-
const command_inherit_calls = [];
|
|
39
|
+
const mock_processes = new Map();
|
|
41
40
|
const stdout_writes = [];
|
|
42
|
-
const mock_command_results = new Map();
|
|
43
41
|
const fetch_calls = [];
|
|
44
42
|
const mock_fetch_responses = new Map();
|
|
45
43
|
let stdin_buffer = null;
|
|
@@ -51,10 +49,8 @@ export const create_mock_runtime = (args = []) => {
|
|
|
51
49
|
mock_fs_modes,
|
|
52
50
|
mock_dirs,
|
|
53
51
|
exit_calls,
|
|
54
|
-
|
|
55
|
-
command_inherit_calls,
|
|
52
|
+
mock_processes,
|
|
56
53
|
stdout_writes,
|
|
57
|
-
mock_command_results,
|
|
58
54
|
fetch_calls,
|
|
59
55
|
mock_fetch_responses,
|
|
60
56
|
get stdin_buffer() {
|
|
@@ -75,6 +71,10 @@ export const create_mock_runtime = (args = []) => {
|
|
|
75
71
|
exit_calls.push(code);
|
|
76
72
|
throw new MockExitError(code);
|
|
77
73
|
},
|
|
74
|
+
probe_process: (pid) => {
|
|
75
|
+
assert_process_id(pid);
|
|
76
|
+
return mock_processes.get(pid) ?? 'not_found';
|
|
77
|
+
},
|
|
78
78
|
// === Local File System ===
|
|
79
79
|
stat: async (path) => {
|
|
80
80
|
const bytes = mock_fs_bytes.get(path);
|
|
@@ -307,30 +307,6 @@ export const create_mock_runtime = (args = []) => {
|
|
|
307
307
|
}
|
|
308
308
|
throw new TypeError(`fetch failed (no mock for ${url})`);
|
|
309
309
|
},
|
|
310
|
-
// === Local Commands ===
|
|
311
|
-
run_command: async (cmd, args, options) => {
|
|
312
|
-
command_calls.push(options ? { cmd, args, options } : { cmd, args });
|
|
313
|
-
const key = `${cmd} ${args.join(' ')}`;
|
|
314
|
-
const mocked = mock_command_results.get(key);
|
|
315
|
-
if (mocked) {
|
|
316
|
-
if (options?.timeout_ms !== undefined && mocked.timed_out === undefined) {
|
|
317
|
-
return { ...mocked, timed_out: false };
|
|
318
|
-
}
|
|
319
|
-
return mocked;
|
|
320
|
-
}
|
|
321
|
-
const result = { success: true, code: 0, stdout: '', stderr: '' };
|
|
322
|
-
if (options?.timeout_ms !== undefined)
|
|
323
|
-
result.timed_out = false;
|
|
324
|
-
return result;
|
|
325
|
-
},
|
|
326
|
-
run_command_inherit: async (cmd, args) => {
|
|
327
|
-
command_inherit_calls.push({ cmd, args });
|
|
328
|
-
const key = `${cmd} ${args.join(' ')}`;
|
|
329
|
-
const mocked = mock_command_results.get(key);
|
|
330
|
-
if (mocked)
|
|
331
|
-
return mocked.code;
|
|
332
|
-
return 0;
|
|
333
|
-
},
|
|
334
310
|
// === Terminal I/O ===
|
|
335
311
|
stdout_write: async (data) => {
|
|
336
312
|
stdout_writes.push(new TextDecoder().decode(data));
|
|
@@ -352,7 +328,7 @@ export const create_mock_runtime = (args = []) => {
|
|
|
352
328
|
/**
|
|
353
329
|
* Reset a mock runtime to initial state.
|
|
354
330
|
*
|
|
355
|
-
* @mutates runtime - clears all mock state (env, fs, dirs, exit/
|
|
331
|
+
* @mutates runtime - clears all mock state (env, fs, modes, dirs, processes, exit/stdout/fetch call records, fetch responses, stdin buffer)
|
|
356
332
|
*/
|
|
357
333
|
export const reset_mock_runtime = (runtime) => {
|
|
358
334
|
runtime.mock_env.clear();
|
|
@@ -360,14 +336,78 @@ export const reset_mock_runtime = (runtime) => {
|
|
|
360
336
|
runtime.mock_fs_bytes.clear();
|
|
361
337
|
runtime.mock_dirs.clear();
|
|
362
338
|
runtime.exit_calls.length = 0;
|
|
363
|
-
runtime.
|
|
364
|
-
runtime.
|
|
339
|
+
runtime.mock_fs_modes.clear();
|
|
340
|
+
runtime.mock_processes.clear();
|
|
365
341
|
runtime.stdout_writes.length = 0;
|
|
366
|
-
runtime.mock_command_results.clear();
|
|
367
342
|
runtime.fetch_calls.length = 0;
|
|
368
343
|
runtime.mock_fetch_responses.clear();
|
|
369
344
|
runtime.stdin_buffer = null;
|
|
370
345
|
};
|
|
346
|
+
/**
|
|
347
|
+
* Create a fake `Program` for testing a helper that runs one.
|
|
348
|
+
*
|
|
349
|
+
* Each call is recorded on `calls`, then answered by `respond`; with no
|
|
350
|
+
* `respond`, every call exits 0 with empty output. `respond` may throw, as a
|
|
351
|
+
* program that can't start does.
|
|
352
|
+
*
|
|
353
|
+
* @param respond - the output for a call's arguments
|
|
354
|
+
* @returns the fake program
|
|
355
|
+
*
|
|
356
|
+
* @example
|
|
357
|
+
* ```ts
|
|
358
|
+
* const git = create_mock_program((args) =>
|
|
359
|
+
* args[0] === 'status' ? mock_program_exit(0, '', 'clean') : mock_program_exit(1, 'unknown')
|
|
360
|
+
* );
|
|
361
|
+
* assert.strictEqual((await git.out(['status'])).stdout, 'clean');
|
|
362
|
+
* assert.deepStrictEqual(git.calls, [['status']]);
|
|
363
|
+
* ```
|
|
364
|
+
*/
|
|
365
|
+
export const create_mock_program = (respond = () => mock_program_exit(0)) => {
|
|
366
|
+
const calls = [];
|
|
367
|
+
return {
|
|
368
|
+
calls,
|
|
369
|
+
out: async (args) => {
|
|
370
|
+
calls.push([...args]);
|
|
371
|
+
return respond(args);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* Create a fake `ProgramFactory` for testing a helper that makes its program
|
|
377
|
+
* with extra environment: every call records its `env` and returns `program`.
|
|
378
|
+
*
|
|
379
|
+
* @param program - the program to hand out, `null` for one that isn't installed
|
|
380
|
+
* @returns the fake factory
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* ```ts
|
|
384
|
+
* const createdb = create_mock_program_factory();
|
|
385
|
+
* await create_database({createdb}, 'postgres://app:pw@localhost/app');
|
|
386
|
+
* assert.deepStrictEqual(createdb.envs, [{PGPASSWORD: 'pw'}]);
|
|
387
|
+
* assert.strictEqual(createdb.program?.calls.length, 1);
|
|
388
|
+
* ```
|
|
389
|
+
*/
|
|
390
|
+
export const create_mock_program_factory = (program = create_mock_program()) => {
|
|
391
|
+
const envs = [];
|
|
392
|
+
const factory = (env) => {
|
|
393
|
+
envs.push({ ...env });
|
|
394
|
+
return program;
|
|
395
|
+
};
|
|
396
|
+
return Object.assign(factory, { envs, program });
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* A program output that exited with `code`.
|
|
400
|
+
*
|
|
401
|
+
* @param code - the exit code
|
|
402
|
+
* @param stderr - what the program wrote to stderr
|
|
403
|
+
* @param stdout - what the program wrote to stdout
|
|
404
|
+
*/
|
|
405
|
+
export const mock_program_exit = (code, stderr = '', stdout = '') => ({
|
|
406
|
+
kind: 'exited',
|
|
407
|
+
code,
|
|
408
|
+
stdout,
|
|
409
|
+
stderr
|
|
410
|
+
});
|
|
371
411
|
/**
|
|
372
412
|
* Set stdin buffer for simulating user input.
|
|
373
413
|
*
|
package/dist/runtime/node.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Node.js implementation of `RuntimeDeps`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Backed by Node.js APIs. Used for running servers on Node and Bun (which
|
|
5
|
+
* implements the `node:*` surface this module touches) and for tests (vitest
|
|
6
|
+
* runs in Node).
|
|
6
7
|
*
|
|
7
8
|
* @module
|
|
8
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/lib/runtime/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,WAAW,CAAC;AAIzD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC/B,OAAM,aAAa,CAAC,MAAM,CAAyB,KACjD,WA0ID,CAAC"}
|
package/dist/runtime/node.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Node.js implementation of `RuntimeDeps`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Backed by Node.js APIs. Used for running servers on Node and Bun (which
|
|
5
|
+
* implements the `node:*` surface this module touches) and for tests (vitest
|
|
6
|
+
* runs in Node).
|
|
6
7
|
*
|
|
7
8
|
* @module
|
|
8
9
|
*/
|
|
9
10
|
import { Buffer } from 'node:buffer';
|
|
10
|
-
import { spawn } from 'node:child_process';
|
|
11
11
|
import { createReadStream, createWriteStream } from 'node:fs';
|
|
12
12
|
import { stat, mkdir, readFile, readdir, writeFile, rename, rm, open } from 'node:fs/promises';
|
|
13
13
|
import process from 'node:process';
|
|
14
14
|
import { Readable } from 'node:stream';
|
|
15
15
|
import { pipeline } from 'node:stream/promises';
|
|
16
16
|
import { load_secure_file_node } from './secure_file.js';
|
|
17
|
+
import { assert_process_id } from './process_id.js';
|
|
17
18
|
/**
|
|
18
19
|
* Create a `RuntimeDeps` backed by Node.js APIs.
|
|
19
20
|
*
|
|
@@ -31,6 +32,21 @@ export const create_node_runtime = (args = process.argv.slice(2)) => ({
|
|
|
31
32
|
args,
|
|
32
33
|
cwd: () => process.cwd(),
|
|
33
34
|
exit: (code) => process.exit(code),
|
|
35
|
+
probe_process: (pid) => {
|
|
36
|
+
assert_process_id(pid);
|
|
37
|
+
try {
|
|
38
|
+
process.kill(pid, 0);
|
|
39
|
+
return 'running';
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
const code = error.code;
|
|
43
|
+
if (code === 'ESRCH')
|
|
44
|
+
return 'not_found';
|
|
45
|
+
if (code === 'EPERM')
|
|
46
|
+
return 'not_permitted';
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
},
|
|
34
50
|
// === Local File System ===
|
|
35
51
|
stat: async (path) => {
|
|
36
52
|
try {
|
|
@@ -58,7 +74,7 @@ export const create_node_runtime = (args = process.argv.slice(2)) => ({
|
|
|
58
74
|
read_file_stream: async (path) => {
|
|
59
75
|
// `createReadStream` is lazy — a missing file surfaces as a stream `error`
|
|
60
76
|
// event at consume time, not at the call. `stat` first so we honor the
|
|
61
|
-
// interface's eager-throw contract (matching
|
|
77
|
+
// interface's eager-throw contract (matching the mock).
|
|
62
78
|
await stat(path);
|
|
63
79
|
return Readable.toWeb(createReadStream(path));
|
|
64
80
|
},
|
|
@@ -107,74 +123,6 @@ export const create_node_runtime = (args = process.argv.slice(2)) => ({
|
|
|
107
123
|
remove: (path, options) => rm(path, options),
|
|
108
124
|
// === HTTP ===
|
|
109
125
|
fetch: globalThis.fetch,
|
|
110
|
-
// === Local Commands ===
|
|
111
|
-
run_command: (cmd, args, options) => {
|
|
112
|
-
return new Promise((resolve) => {
|
|
113
|
-
const proc = spawn(cmd, args, {
|
|
114
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
115
|
-
cwd: options?.cwd
|
|
116
|
-
});
|
|
117
|
-
const stdout_chunks = [];
|
|
118
|
-
const stderr_chunks = [];
|
|
119
|
-
let timed_out = false;
|
|
120
|
-
let done = false;
|
|
121
|
-
const finish = (result) => {
|
|
122
|
-
if (done)
|
|
123
|
-
return;
|
|
124
|
-
done = true;
|
|
125
|
-
if (timer !== null)
|
|
126
|
-
clearTimeout(timer);
|
|
127
|
-
if (options?.signal)
|
|
128
|
-
options.signal.removeEventListener('abort', on_abort);
|
|
129
|
-
resolve(result);
|
|
130
|
-
};
|
|
131
|
-
const on_abort = () => {
|
|
132
|
-
proc.kill();
|
|
133
|
-
};
|
|
134
|
-
const timer = options?.timeout_ms !== undefined
|
|
135
|
-
? setTimeout(() => {
|
|
136
|
-
timed_out = true;
|
|
137
|
-
proc.kill();
|
|
138
|
-
}, options.timeout_ms)
|
|
139
|
-
: null;
|
|
140
|
-
if (options?.signal) {
|
|
141
|
-
if (options.signal.aborted)
|
|
142
|
-
proc.kill();
|
|
143
|
-
else
|
|
144
|
-
options.signal.addEventListener('abort', on_abort, { once: true });
|
|
145
|
-
}
|
|
146
|
-
proc.stdout.on('data', (chunk) => stdout_chunks.push(chunk));
|
|
147
|
-
proc.stderr.on('data', (chunk) => stderr_chunks.push(chunk));
|
|
148
|
-
proc.on('error', (error) => {
|
|
149
|
-
finish({
|
|
150
|
-
success: false,
|
|
151
|
-
code: 1,
|
|
152
|
-
stdout: '',
|
|
153
|
-
stderr: `Failed to execute command: ${error.message}`
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
proc.on('close', (code) => {
|
|
157
|
-
const result = {
|
|
158
|
-
success: code === 0 && !timed_out,
|
|
159
|
-
code: code ?? 1,
|
|
160
|
-
stdout: Buffer.concat(stdout_chunks).toString('utf-8').trim(),
|
|
161
|
-
stderr: Buffer.concat(stderr_chunks).toString('utf-8').trim()
|
|
162
|
-
};
|
|
163
|
-
if (options?.timeout_ms !== undefined)
|
|
164
|
-
result.timed_out = timed_out;
|
|
165
|
-
finish(result);
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
},
|
|
169
|
-
run_command_inherit: (cmd, args) => {
|
|
170
|
-
return new Promise((resolve) => {
|
|
171
|
-
const proc = spawn(cmd, args, {
|
|
172
|
-
stdio: 'inherit'
|
|
173
|
-
});
|
|
174
|
-
proc.on('error', () => resolve(1));
|
|
175
|
-
proc.on('close', (code) => resolve(code ?? 1));
|
|
176
|
-
});
|
|
177
|
-
},
|
|
178
126
|
// === Terminal I/O ===
|
|
179
127
|
stdout_write: async (data) => {
|
|
180
128
|
return new Promise((resolve, reject) => {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process ID validation shared by the `probe_process` implementations and
|
|
3
|
+
* their callers.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
/** The largest process ID: `pid_t` is a signed 32-bit integer. */
|
|
8
|
+
export declare const PROCESS_ID_MAX = 2147483647;
|
|
9
|
+
/**
|
|
10
|
+
* Whether `pid` names one process: a positive integer within `pid_t` range.
|
|
11
|
+
* 0 and negative numbers name process groups (`kill(0, …)` signals the
|
|
12
|
+
* caller's own group, `kill(-1, …)` every process it may signal).
|
|
13
|
+
*
|
|
14
|
+
* @param pid - the candidate process ID
|
|
15
|
+
*/
|
|
16
|
+
export declare const is_process_id: (pid: number) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Refuse a `pid` that doesn't name one process (`is_process_id`).
|
|
19
|
+
*
|
|
20
|
+
* @param pid - the candidate process ID
|
|
21
|
+
* @throws RangeError when `pid` is not a positive integer within `pid_t` range
|
|
22
|
+
*/
|
|
23
|
+
export declare const assert_process_id: (pid: number) => void;
|
|
24
|
+
//# sourceMappingURL=process_id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process_id.d.ts","sourceRoot":"","sources":["../../src/lib/runtime/process_id.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,kEAAkE;AAClE,eAAO,MAAM,cAAc,aAAgB,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,OACc,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,IAI/C,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process ID validation shared by the `probe_process` implementations and
|
|
3
|
+
* their callers.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
/** The largest process ID: `pid_t` is a signed 32-bit integer. */
|
|
8
|
+
export const PROCESS_ID_MAX = 2_147_483_647;
|
|
9
|
+
/**
|
|
10
|
+
* Whether `pid` names one process: a positive integer within `pid_t` range.
|
|
11
|
+
* 0 and negative numbers name process groups (`kill(0, …)` signals the
|
|
12
|
+
* caller's own group, `kill(-1, …)` every process it may signal).
|
|
13
|
+
*
|
|
14
|
+
* @param pid - the candidate process ID
|
|
15
|
+
*/
|
|
16
|
+
export const is_process_id = (pid) => Number.isInteger(pid) && pid > 0 && pid <= PROCESS_ID_MAX;
|
|
17
|
+
/**
|
|
18
|
+
* Refuse a `pid` that doesn't name one process (`is_process_id`).
|
|
19
|
+
*
|
|
20
|
+
* @param pid - the candidate process ID
|
|
21
|
+
* @throws RangeError when `pid` is not a positive integer within `pid_t` range
|
|
22
|
+
*/
|
|
23
|
+
export const assert_process_id = (pid) => {
|
|
24
|
+
if (!is_process_id(pid)) {
|
|
25
|
+
throw new RangeError(`not a process ID: ${pid} (a positive integer up to ${PROCESS_ID_MAX})`);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
@@ -10,14 +10,11 @@
|
|
|
10
10
|
* ratifies the shape zap produces; a hand-placed `0644` file fails at boot
|
|
11
11
|
* instead of being read.
|
|
12
12
|
*
|
|
13
|
-
* The
|
|
14
|
-
* `create_node_runtime().read_secure_file`)
|
|
15
|
-
*
|
|
16
|
-
* the
|
|
17
|
-
*
|
|
18
|
-
* `assert_secure_mode` / `assert_secure_size` / `read_secure_bounded` helpers,
|
|
19
|
-
* and the mock through the mode and size ones, so the checks — and their
|
|
20
|
-
* operator-facing messages — can't drift between runtimes.
|
|
13
|
+
* The real implementation lives here (`load_secure_file_node`, wired as
|
|
14
|
+
* `create_node_runtime().read_secure_file`), and the mock honors the mode/size
|
|
15
|
+
* checks over its in-memory map (it has no file types). Both refuse through
|
|
16
|
+
* the shared `assert_secure_mode` / `assert_secure_size` helpers, so the
|
|
17
|
+
* checks — and their operator-facing messages — can't drift between them.
|
|
21
18
|
*
|
|
22
19
|
* @module
|
|
23
20
|
*/
|
|
@@ -27,19 +24,12 @@
|
|
|
27
24
|
* `MAX_SECURE_FILE_SIZE`.
|
|
28
25
|
*/
|
|
29
26
|
export declare const MAX_SECURE_FILE_SIZE = 4096;
|
|
30
|
-
/**
|
|
31
|
-
* Refuse anything but a regular file — a FIFO, device node, socket, or
|
|
32
|
-
* directory at the secret's path.
|
|
33
|
-
*
|
|
34
|
-
* @throws Error naming the path
|
|
35
|
-
*/
|
|
36
|
-
export declare const assert_secure_regular_file: (path: string, is_file: boolean) => void;
|
|
37
27
|
/**
|
|
38
28
|
* Refuse any group/other-accessible mode (only `0600`/`0400` pass).
|
|
39
29
|
*
|
|
40
|
-
* Callers own the platform gating:
|
|
41
|
-
* modes aren't meaningful (
|
|
42
|
-
*
|
|
30
|
+
* Callers own the platform gating: `load_secure_file_node` skips the check
|
|
31
|
+
* where modes aren't meaningful (Windows); the mock checks its simulated modes
|
|
32
|
+
* unconditionally.
|
|
43
33
|
*
|
|
44
34
|
* @throws Error naming the path, the offending mode, and the `chmod` fix
|
|
45
35
|
*/
|
|
@@ -50,18 +40,6 @@ export declare const assert_secure_mode: (path: string, mode: number) => void;
|
|
|
50
40
|
* @throws Error naming the path, the size, and the cap
|
|
51
41
|
*/
|
|
52
42
|
export declare const assert_secure_size: (path: string, size: number) => void;
|
|
53
|
-
/**
|
|
54
|
-
* Drain `read_chunk` into a cap-bounded buffer.
|
|
55
|
-
*
|
|
56
|
-
* Reads up to cap + 1 bytes so a file growing between stat and read is still
|
|
57
|
-
* caught (the stat-time size check alone races). `read_chunk` fills the given
|
|
58
|
-
* target from the file's current position and returns the bytes read
|
|
59
|
-
* (`null`/`0` = EOF) — the seam that lets the Node and Deno handle APIs share
|
|
60
|
-
* one loop.
|
|
61
|
-
*
|
|
62
|
-
* @throws Error when more than `MAX_SECURE_FILE_SIZE` bytes arrive
|
|
63
|
-
*/
|
|
64
|
-
export declare const read_secure_bounded: (path: string, read_chunk: (target: Uint8Array) => Promise<number | null>) => Promise<Uint8Array>;
|
|
65
43
|
/**
|
|
66
44
|
* Read a secret file with fail-loud checks (Node implementation).
|
|
67
45
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secure_file.d.ts","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"secure_file.d.ts","sourceRoot":"","sources":["../../src/lib/runtime/secure_file.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAUzC;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,MAAM,MAAM,KAAG,IAM/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,MAAM,MAAM,KAAG,IAI/D,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,UAAU,CAkC5E,CAAC"}
|
|
@@ -10,14 +10,11 @@
|
|
|
10
10
|
* ratifies the shape zap produces; a hand-placed `0644` file fails at boot
|
|
11
11
|
* instead of being read.
|
|
12
12
|
*
|
|
13
|
-
* The
|
|
14
|
-
* `create_node_runtime().read_secure_file`)
|
|
15
|
-
*
|
|
16
|
-
* the
|
|
17
|
-
*
|
|
18
|
-
* `assert_secure_mode` / `assert_secure_size` / `read_secure_bounded` helpers,
|
|
19
|
-
* and the mock through the mode and size ones, so the checks — and their
|
|
20
|
-
* operator-facing messages — can't drift between runtimes.
|
|
13
|
+
* The real implementation lives here (`load_secure_file_node`, wired as
|
|
14
|
+
* `create_node_runtime().read_secure_file`), and the mock honors the mode/size
|
|
15
|
+
* checks over its in-memory map (it has no file types). Both refuse through
|
|
16
|
+
* the shared `assert_secure_mode` / `assert_secure_size` helpers, so the
|
|
17
|
+
* checks — and their operator-facing messages — can't drift between them.
|
|
21
18
|
*
|
|
22
19
|
* @module
|
|
23
20
|
*/
|
|
@@ -37,23 +34,12 @@ export const MAX_SECURE_FILE_SIZE = 4096;
|
|
|
37
34
|
* The mock runtime checks unconditionally — its modes are simulated.
|
|
38
35
|
*/
|
|
39
36
|
const modes_apply = process.platform !== 'win32';
|
|
40
|
-
/**
|
|
41
|
-
* Refuse anything but a regular file — a FIFO, device node, socket, or
|
|
42
|
-
* directory at the secret's path.
|
|
43
|
-
*
|
|
44
|
-
* @throws Error naming the path
|
|
45
|
-
*/
|
|
46
|
-
export const assert_secure_regular_file = (path, is_file) => {
|
|
47
|
-
if (!is_file) {
|
|
48
|
-
throw new Error(`not a regular file: ${path}`);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
37
|
/**
|
|
52
38
|
* Refuse any group/other-accessible mode (only `0600`/`0400` pass).
|
|
53
39
|
*
|
|
54
|
-
* Callers own the platform gating:
|
|
55
|
-
* modes aren't meaningful (
|
|
56
|
-
*
|
|
40
|
+
* Callers own the platform gating: `load_secure_file_node` skips the check
|
|
41
|
+
* where modes aren't meaningful (Windows); the mock checks its simulated modes
|
|
42
|
+
* unconditionally.
|
|
57
43
|
*
|
|
58
44
|
* @throws Error naming the path, the offending mode, and the `chmod` fix
|
|
59
45
|
*/
|
|
@@ -72,29 +58,6 @@ export const assert_secure_size = (path, size) => {
|
|
|
72
58
|
throw new Error(`secure file too large: ${path} (${size} bytes, max ${MAX_SECURE_FILE_SIZE})`);
|
|
73
59
|
}
|
|
74
60
|
};
|
|
75
|
-
/**
|
|
76
|
-
* Drain `read_chunk` into a cap-bounded buffer.
|
|
77
|
-
*
|
|
78
|
-
* Reads up to cap + 1 bytes so a file growing between stat and read is still
|
|
79
|
-
* caught (the stat-time size check alone races). `read_chunk` fills the given
|
|
80
|
-
* target from the file's current position and returns the bytes read
|
|
81
|
-
* (`null`/`0` = EOF) — the seam that lets the Node and Deno handle APIs share
|
|
82
|
-
* one loop.
|
|
83
|
-
*
|
|
84
|
-
* @throws Error when more than `MAX_SECURE_FILE_SIZE` bytes arrive
|
|
85
|
-
*/
|
|
86
|
-
export const read_secure_bounded = async (path, read_chunk) => {
|
|
87
|
-
const buffer = new Uint8Array(MAX_SECURE_FILE_SIZE + 1);
|
|
88
|
-
let total = 0;
|
|
89
|
-
while (total < buffer.length) {
|
|
90
|
-
const n = await read_chunk(buffer.subarray(total));
|
|
91
|
-
if (n === null || n === 0)
|
|
92
|
-
break;
|
|
93
|
-
total += n;
|
|
94
|
-
}
|
|
95
|
-
assert_secure_size(path, total);
|
|
96
|
-
return buffer.subarray(0, total);
|
|
97
|
-
};
|
|
98
61
|
/**
|
|
99
62
|
* Read a secret file with fail-loud checks (Node implementation).
|
|
100
63
|
*
|
|
@@ -128,15 +91,24 @@ export const load_secure_file_node = async (path) => {
|
|
|
128
91
|
}
|
|
129
92
|
try {
|
|
130
93
|
const s = await handle.stat();
|
|
131
|
-
|
|
94
|
+
if (!s.isFile())
|
|
95
|
+
throw new Error(`not a regular file: ${path}`);
|
|
132
96
|
if (modes_apply)
|
|
133
97
|
assert_secure_mode(path, s.mode);
|
|
134
98
|
assert_secure_size(path, s.size);
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
99
|
+
// read up to cap + 1 bytes so a file growing between stat and read is
|
|
100
|
+
// still caught (the stat-time size check alone races); `position: null`
|
|
101
|
+
// reads sequentially from the handle's own cursor
|
|
102
|
+
const buffer = new Uint8Array(MAX_SECURE_FILE_SIZE + 1);
|
|
103
|
+
let total = 0;
|
|
104
|
+
while (total < buffer.length) {
|
|
105
|
+
const { bytesRead } = await handle.read(buffer, total, buffer.length - total, null);
|
|
106
|
+
if (bytesRead === 0)
|
|
107
|
+
break;
|
|
108
|
+
total += bytesRead;
|
|
109
|
+
}
|
|
110
|
+
assert_secure_size(path, total);
|
|
111
|
+
return buffer.subarray(0, total);
|
|
140
112
|
}
|
|
141
113
|
finally {
|
|
142
114
|
await handle.close();
|
package/dist/schema_issues.d.ts
CHANGED
|
@@ -70,29 +70,17 @@ export declare const is_schema_validation_error: (err: unknown) => err is Schema
|
|
|
70
70
|
*
|
|
71
71
|
* Loose: a client reads it, and a newer server may add fields.
|
|
72
72
|
*/
|
|
73
|
-
export declare const WireIssue: import("@fuzdev/fuz_schema/schema.ts").
|
|
74
|
-
kind: string;
|
|
75
|
-
path: (string | number)[];
|
|
76
|
-
expected: string;
|
|
77
|
-
received: string;
|
|
78
|
-
message: string;
|
|
79
|
-
} & Record<string, unknown>, {
|
|
80
|
-
kind: string;
|
|
81
|
-
path: (string | number)[];
|
|
82
|
-
expected: string;
|
|
83
|
-
received: string;
|
|
84
|
-
message: string;
|
|
85
|
-
} & Record<string, unknown>, "loose_object", {
|
|
73
|
+
export declare const WireIssue: import("@fuzdev/fuz_schema/schema.ts").LooseObjectSchema<{
|
|
86
74
|
/** The fuz_schema kind of the check that failed, or `unknown_key` / `missing_key`. */
|
|
87
|
-
kind: import("@fuzdev/fuz_schema/schema.ts").
|
|
75
|
+
kind: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
|
|
88
76
|
/** Keys from the root value to the one that failed, outermost first. */
|
|
89
|
-
path: import("@fuzdev/fuz_schema/schema.ts").
|
|
77
|
+
path: import("@fuzdev/fuz_schema/schema.ts").ArraySchema<import("@fuzdev/fuz_schema/schema.ts").UnionSchema<readonly [import("@fuzdev/fuz_schema/schema.ts").StringSchema, import("@fuzdev/fuz_schema/schema.ts").NumberSchema]>>;
|
|
90
78
|
/** Describes what was expected, as fuz_schema writes it. */
|
|
91
|
-
expected: import("@fuzdev/fuz_schema/schema.ts").
|
|
79
|
+
expected: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
|
|
92
80
|
/** The type of the value that failed: `'null'`, `'array'`, `'NaN'`, `'Infinity'`, `'-Infinity'`, or its `typeof`. */
|
|
93
|
-
received: import("@fuzdev/fuz_schema/schema.ts").
|
|
81
|
+
received: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
|
|
94
82
|
/** The issue as text, `format_issue`'s. */
|
|
95
|
-
message: import("@fuzdev/fuz_schema/schema.ts").
|
|
83
|
+
message: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
|
|
96
84
|
}>;
|
|
97
85
|
export type WireIssue = Infer<typeof WireIssue>;
|
|
98
86
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema_issues.d.ts","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"schema_issues.d.ts","sourceRoot":"","sources":["../src/lib/schema_issues.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAMN,WAAW,EAGX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,MAAM,8BAA8B,CAAC;AAEtC;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,SAAS,CAG5B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,WAAW,KAAG,OAC8B,CAAC;AAEtF,gFAAgF;AAChF,MAAM,WAAW,gBAAgB;IAChC,yEAAyE;IACzE,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACjC,wBAAwB;IACxB,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC/B,QAAQ,aAAa,CAAC,WAAW,CAAC,KAChC,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAO5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,aAAa,CAAC,WAAW,CAAC,KAAG,MAC/B,CAAC;AAErC;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,WACtC,CAAC;AAE5B;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;IACrB,sFAAsF;;IAEtF,wEAAwE;;IAExE,4DAA4D;;IAE5D,qHAAqH;;IAErH,2CAA2C;;EAE1C,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,aAAa,CAAC,WAAW,CAAC,KAAG,KAAK,CAAC,SAAS,CAO/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema_meta.d.ts","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"schema_meta.d.ts","sourceRoot":"","sources":["../src/lib/schema_meta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAW3E,OAAO,QAAQ,4BAA4B,CAAC;IAC3C,UAAU,UAAU;QACnB;;;;;;;;;;;;;;;;;;;WAmBG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB;;;;;;;;;;WAUG;QACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;QACtC;;;;WAIG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;KACnB;CACD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GAAI,QAAQ,SAAS,KAAG,OAGlE,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,0BAA0B,GAAI,QAAQ,SAAS,KAAG,OAG9D,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,GAClC,cAAc,SAAS,EACvB,MAAM,aAAa,CAAC,WAAW,CAAC,KAC9B,MAAM,GAAG,SAYX,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,6BAA6B,GACzC,cAAc,SAAS,EACvB,QAAQ,aAAa,CAAC,WAAW,CAAC,EAClC,OAAO,OAAO,KACZ,MAAM,GAAG,SAKX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sensitivity.d.ts","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"sensitivity.d.ts","sourceRoot":"","sources":["../src/lib/sensitivity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAI9D;;;;;;;;;GASG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEhD,OAAO,QAAQ,4BAA4B,CAAC;IAC3C,UAAU,UAAU;QACnB;;;;WAIG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;KAC1B;CACD;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,GAAI,QAAQ,SAAS,KAAG,WAAW,GAAG,SAOzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_backend.d.ts","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"app_backend.d.ts","sourceRoot":"","sources":["../../src/lib/server/app_backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAkB,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKjG;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,oIAAoI;IACpI,QAAQ,CAAC,iBAAiB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC3D,iEAAiE;IACjE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,EAAE,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,KAAK,YAAY,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,EAAE,YACF,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACvC;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;IACxD,qBAAqB;IACrB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,iFAAiF;IACjF,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,6EAA6E;IAC7E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;;;;;;;;;;;;;OAkBG;IACH,aAAa,EAAE,YAAY,CAAC;IAC5B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,cAAc,CAAC;IACnC;;;;;;;;;;;;;OAaG;IACH,oBAAoB,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACzD;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;;;OAOG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACtC;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,GAAU,SAAS,uBAAuB,KAAG,OAAO,CAAC,UAAU,CAyD7F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_error_handler.d.ts","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"app_error_handler.d.ts","sourceRoot":"","sources":["../../src/lib/server/app_error_handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAKtD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,KAAK,MAAM,KAAG,YAad,CAAC"}
|
|
@@ -330,10 +330,10 @@ export interface AppServerOptions {
|
|
|
330
330
|
* A factory rather than the helper itself because Node's adapter needs
|
|
331
331
|
* the app: `@hono/node-ws` has no module-level helper, only
|
|
332
332
|
* `createNodeWebSocket({app})`, and `create_app_server` is what builds
|
|
333
|
-
* the app.
|
|
333
|
+
* the app. Bun's ignores the argument:
|
|
334
334
|
*
|
|
335
335
|
* ```ts
|
|
336
|
-
* import {upgradeWebSocket} from '@hono/
|
|
336
|
+
* import {upgradeWebSocket} from '@hono/bun';
|
|
337
337
|
* create_upgrade_websocket: () => upgradeWebSocket,
|
|
338
338
|
* ```
|
|
339
339
|
*
|