@microvac/db 0.0.0-stage → 0.1.0-rc.15
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/__tests__/response-capture-bundle-fixture.d.ts +22 -0
- package/dist/__tests__/response-capture-bundle-fixture.d.ts.map +1 -0
- package/dist/__tests__/response-capture-bundle-fixture.js +98 -0
- package/dist/__tests__/response-capture-bundle-fixture.js.map +1 -0
- package/dist/adapter-auth-sessions-schema.test.d.ts +2 -0
- package/dist/adapter-auth-sessions-schema.test.d.ts.map +1 -0
- package/dist/adapter-auth-sessions-schema.test.js +107 -0
- package/dist/adapter-auth-sessions-schema.test.js.map +1 -0
- package/dist/after-transaction-commit.test.d.ts +2 -0
- package/dist/after-transaction-commit.test.d.ts.map +1 -0
- package/dist/after-transaction-commit.test.js +88 -0
- package/dist/after-transaction-commit.test.js.map +1 -0
- package/dist/agent-wakeup-requests-schema.test.d.ts +2 -0
- package/dist/agent-wakeup-requests-schema.test.d.ts.map +1 -0
- package/dist/agent-wakeup-requests-schema.test.js +24 -0
- package/dist/agent-wakeup-requests-schema.test.js.map +1 -0
- package/dist/backup-lib-binary.test.d.ts +2 -0
- package/dist/backup-lib-binary.test.d.ts.map +1 -0
- package/dist/backup-lib-binary.test.js +71 -0
- package/dist/backup-lib-binary.test.js.map +1 -0
- package/dist/backup-lib.d.ts +44 -0
- package/dist/backup-lib.d.ts.map +1 -0
- package/dist/backup-lib.js +966 -0
- package/dist/backup-lib.js.map +1 -0
- package/dist/backup-lib.test.d.ts +2 -0
- package/dist/backup-lib.test.d.ts.map +1 -0
- package/dist/backup-lib.test.js +564 -0
- package/dist/backup-lib.test.js.map +1 -0
- package/dist/backup.d.ts +2 -0
- package/dist/backup.d.ts.map +1 -0
- package/dist/backup.js +77 -0
- package/dist/backup.js.map +1 -0
- package/dist/chat-telegram-draft-ids-migration.test.d.ts +2 -0
- package/dist/chat-telegram-draft-ids-migration.test.d.ts.map +1 -0
- package/dist/chat-telegram-draft-ids-migration.test.js +71 -0
- package/dist/chat-telegram-draft-ids-migration.test.js.map +1 -0
- package/dist/chat-tenant-foreign-keys.test.d.ts +2 -0
- package/dist/chat-tenant-foreign-keys.test.d.ts.map +1 -0
- package/dist/chat-tenant-foreign-keys.test.js +140 -0
- package/dist/chat-tenant-foreign-keys.test.js.map +1 -0
- package/dist/check-migration-numbering.d.ts +2 -0
- package/dist/check-migration-numbering.d.ts.map +1 -0
- package/dist/check-migration-numbering.js +64 -0
- package/dist/check-migration-numbering.js.map +1 -0
- package/dist/check-migration-safety.d.ts +27 -0
- package/dist/check-migration-safety.d.ts.map +1 -0
- package/dist/check-migration-safety.js +811 -0
- package/dist/check-migration-safety.js.map +1 -0
- package/dist/check-migration-safety.test.d.ts +2 -0
- package/dist/check-migration-safety.test.d.ts.map +1 -0
- package/dist/check-migration-safety.test.js +391 -0
- package/dist/check-migration-safety.test.js.map +1 -0
- package/dist/checkpoint-pool.test.d.ts +2 -0
- package/dist/checkpoint-pool.test.d.ts.map +1 -0
- package/dist/checkpoint-pool.test.js +42 -0
- package/dist/checkpoint-pool.test.js.map +1 -0
- package/dist/client-disconnect-replay.test.d.ts +2 -0
- package/dist/client-disconnect-replay.test.d.ts.map +1 -0
- package/dist/client-disconnect-replay.test.js +182 -0
- package/dist/client-disconnect-replay.test.js.map +1 -0
- package/dist/client-options.test.d.ts +2 -0
- package/dist/client-options.test.d.ts.map +1 -0
- package/dist/client-options.test.js +93 -0
- package/dist/client-options.test.js.map +1 -0
- package/dist/client-teardown-registry.test.d.ts +2 -0
- package/dist/client-teardown-registry.test.d.ts.map +1 -0
- package/dist/client-teardown-registry.test.js +124 -0
- package/dist/client-teardown-registry.test.js.map +1 -0
- package/dist/client.d.ts +183 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +1398 -0
- package/dist/client.js.map +1 -0
- package/dist/client.test.d.ts +2 -0
- package/dist/client.test.d.ts.map +1 -0
- package/dist/client.test.js +188 -0
- package/dist/client.test.js.map +1 -0
- package/dist/connection-reuse-census.test.d.ts +2 -0
- package/dist/connection-reuse-census.test.d.ts.map +1 -0
- package/dist/connection-reuse-census.test.js +62 -0
- package/dist/connection-reuse-census.test.js.map +1 -0
- package/dist/dedicated-connection-admission.test.d.ts +2 -0
- package/dist/dedicated-connection-admission.test.d.ts.map +1 -0
- package/dist/dedicated-connection-admission.test.js +228 -0
- package/dist/dedicated-connection-admission.test.js.map +1 -0
- package/dist/dedicated-connection-pool.test.d.ts +2 -0
- package/dist/dedicated-connection-pool.test.d.ts.map +1 -0
- package/dist/dedicated-connection-pool.test.js +172 -0
- package/dist/dedicated-connection-pool.test.js.map +1 -0
- package/dist/embedded-postgres-error.d.ts +9 -0
- package/dist/embedded-postgres-error.d.ts.map +1 -0
- package/dist/embedded-postgres-error.js +78 -0
- package/dist/embedded-postgres-error.js.map +1 -0
- package/dist/embedded-postgres-error.test.d.ts +2 -0
- package/dist/embedded-postgres-error.test.d.ts.map +1 -0
- package/dist/embedded-postgres-error.test.js +34 -0
- package/dist/embedded-postgres-error.test.js.map +1 -0
- package/dist/embedded-postgres-lifecycle.d.ts +16 -0
- package/dist/embedded-postgres-lifecycle.d.ts.map +1 -0
- package/dist/embedded-postgres-lifecycle.js +43 -0
- package/dist/embedded-postgres-lifecycle.js.map +1 -0
- package/dist/embedded-postgres-lifecycle.test.d.ts +2 -0
- package/dist/embedded-postgres-lifecycle.test.d.ts.map +1 -0
- package/dist/embedded-postgres-lifecycle.test.js +64 -0
- package/dist/embedded-postgres-lifecycle.test.js.map +1 -0
- package/dist/embedded-postgres-native.d.ts +3 -0
- package/dist/embedded-postgres-native.d.ts.map +1 -0
- package/dist/embedded-postgres-native.js +83 -0
- package/dist/embedded-postgres-native.js.map +1 -0
- package/dist/embedded-postgres-native.test.d.ts +2 -0
- package/dist/embedded-postgres-native.test.d.ts.map +1 -0
- package/dist/embedded-postgres-native.test.js +49 -0
- package/dist/embedded-postgres-native.test.js.map +1 -0
- package/dist/environment-custom-images-schema.test.d.ts +2 -0
- package/dist/environment-custom-images-schema.test.d.ts.map +1 -0
- package/dist/environment-custom-images-schema.test.js +26 -0
- package/dist/environment-custom-images-schema.test.js.map +1 -0
- package/dist/external-objects-schema.test.d.ts +2 -0
- package/dist/external-objects-schema.test.d.ts.map +1 -0
- package/dist/external-objects-schema.test.js +46 -0
- package/dist/external-objects-schema.test.js.map +1 -0
- package/dist/heartbeat-workspace-companion-index.test.d.ts +2 -0
- package/dist/heartbeat-workspace-companion-index.test.d.ts.map +1 -0
- package/dist/heartbeat-workspace-companion-index.test.js +64 -0
- package/dist/heartbeat-workspace-companion-index.test.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/lazy-transaction-queries.d.ts +26 -0
- package/dist/lazy-transaction-queries.d.ts.map +1 -0
- package/dist/lazy-transaction-queries.js +63 -0
- package/dist/lazy-transaction-queries.js.map +1 -0
- package/dist/lazy-transaction-queries.test.d.ts +2 -0
- package/dist/lazy-transaction-queries.test.d.ts.map +1 -0
- package/dist/lazy-transaction-queries.test.js +358 -0
- package/dist/lazy-transaction-queries.test.js.map +1 -0
- package/dist/migrate.d.ts +2 -0
- package/dist/migrate.d.ts.map +1 -0
- package/dist/migrate.js +25 -0
- package/dist/migrate.js.map +1 -0
- package/dist/migration-compatibility.d.ts +353 -0
- package/dist/migration-compatibility.d.ts.map +1 -0
- package/dist/migration-compatibility.js +677 -0
- package/dist/migration-compatibility.js.map +1 -0
- package/dist/migration-compatibility.test.d.ts +2 -0
- package/dist/migration-compatibility.test.d.ts.map +1 -0
- package/dist/migration-compatibility.test.js +351 -0
- package/dist/migration-compatibility.test.js.map +1 -0
- package/dist/migration-runtime.d.ts +7 -0
- package/dist/migration-runtime.d.ts.map +1 -0
- package/dist/migration-runtime.js +159 -0
- package/dist/migration-runtime.js.map +1 -0
- package/dist/migration-safety-baseline.d.ts +135 -0
- package/dist/migration-safety-baseline.d.ts.map +1 -0
- package/dist/migration-safety-baseline.js +150 -0
- package/dist/migration-safety-baseline.js.map +1 -0
- package/dist/migration-snapshot-drift.test.d.ts +2 -0
- package/dist/migration-snapshot-drift.test.d.ts.map +1 -0
- package/dist/migration-snapshot-drift.test.js +56 -0
- package/dist/migration-snapshot-drift.test.js.map +1 -0
- package/dist/migration-status.d.ts +2 -0
- package/dist/migration-status.d.ts.map +1 -0
- package/dist/migration-status.js +55 -0
- package/dist/migration-status.js.map +1 -0
- package/dist/migrations/0000_mature_masked_marvel.sql +208 -0
- package/dist/migrations/0001_fast_northstar.sql +87 -0
- package/dist/migrations/0002_big_zaladane.sql +1 -0
- package/dist/migrations/0003_shallow_quentin_quire.sql +5 -0
- package/dist/migrations/0004_issue_identifiers.sql +28 -0
- package/dist/migrations/0005_chief_luke_cage.sql +19 -0
- package/dist/migrations/0006_overjoyed_mister_sinister.sql +36 -0
- package/dist/migrations/0007_new_quentin_quire.sql +20 -0
- package/dist/migrations/0008_amused_zzzax.sql +1 -0
- package/dist/migrations/0009_fast_jackal.sql +36 -0
- package/dist/migrations/0010_stale_justin_hammer.sql +37 -0
- package/dist/migrations/0011_windy_corsair.sql +18 -0
- package/dist/migrations/0012_perpetual_ser_duncan.sql +2 -0
- package/dist/migrations/0013_dashing_wasp.sql +4 -0
- package/dist/migrations/0014_many_mikhail_rasputin.sql +135 -0
- package/dist/migrations/0015_project_color_archived.sql +2 -0
- package/dist/migrations/0016_agent_icon.sql +1 -0
- package/dist/migrations/0017_tiresome_gabe_jones.sql +51 -0
- package/dist/migrations/0018_flat_sleepwalker.sql +26 -0
- package/dist/migrations/0019_public_victor_mancha.sql +18 -0
- package/dist/migrations/0020_white_anita_blake.sql +1 -0
- package/dist/migrations/0021_chief_vindicator.sql +1 -0
- package/dist/migrations/0022_company_brand_color.sql +1 -0
- package/dist/migrations/0023_fair_lethal_legion.sql +3 -0
- package/dist/migrations/0024_far_beast.sql +2 -0
- package/dist/migrations/0025_nasty_salo.sql +15 -0
- package/dist/migrations/0026_lying_pete_wisdom.sql +39 -0
- package/dist/migrations/0027_tranquil_tenebrous.sql +2 -0
- package/dist/migrations/0028_harsh_goliath.sql +54 -0
- package/dist/migrations/0029_plugin_tables.sql +177 -0
- package/dist/migrations/0030_rich_magneto.sql +12 -0
- package/dist/migrations/0031_zippy_magma.sql +51 -0
- package/dist/migrations/0032_pretty_doctor_octopus.sql +102 -0
- package/dist/migrations/0033_shiny_black_tarantula.sql +2 -0
- package/dist/migrations/0034_fat_dormammu.sql +2 -0
- package/dist/migrations/0035_marvelous_satana.sql +91 -0
- package/dist/migrations/0036_cheerful_nitro.sql +9 -0
- package/dist/migrations/0037_friendly_eddie_brock.sql +29 -0
- package/dist/migrations/0038_careless_iron_monger.sql +5 -0
- package/dist/migrations/0039_fat_magneto.sql +161 -0
- package/dist/migrations/0040_eager_shotgun.sql +5 -0
- package/dist/migrations/0041_curly_maria_hill.sql +1 -0
- package/dist/migrations/0042_spotty_the_renegades.sql +26 -0
- package/dist/migrations/0043_reflective_captain_universe.sql +6 -0
- package/dist/migrations/0044_illegal_toad.sql +56 -0
- package/dist/migrations/0045_workable_shockwave.sql +17 -0
- package/dist/migrations/0046_smooth_sentinels.sql +11 -0
- package/dist/migrations/0047_overjoyed_groot.sql +102 -0
- package/dist/migrations/0048_flashy_marrow.sql +1 -0
- package/dist/migrations/0049_flawless_abomination.sql +21 -0
- package/dist/migrations/0050_stiff_luckman.sql +1 -0
- package/dist/migrations/0051_young_korg.sql +5 -0
- package/dist/migrations/0052_mushy_trauma.sql +26 -0
- package/dist/migrations/0053_sharp_wild_child.sql +18 -0
- package/dist/migrations/0054_draft_routines.sql +2 -0
- package/dist/migrations/0055_kind_weapon_omega.sql +1 -0
- package/dist/migrations/0056_spooky_ultragirl.sql +22 -0
- package/dist/migrations/0057_tidy_join_requests.sql +57 -0
- package/dist/migrations/0058_wealthy_starbolt.sql +6 -0
- package/dist/migrations/0059_plugin_database_namespaces.sql +41 -0
- package/dist/migrations/0060_orange_annihilus.sql +50 -0
- package/dist/migrations/0061_lively_thor_girl.sql +3 -0
- package/dist/migrations/0062_routine_run_dispatch_fingerprint.sql +9 -0
- package/dist/migrations/0063_issue_thread_interactions.sql +65 -0
- package/dist/migrations/0064_issue_thread_interaction_idempotency.sql +4 -0
- package/dist/migrations/0065_environments.sql +50 -0
- package/dist/migrations/0066_issue_tree_holds.sql +107 -0
- package/dist/migrations/0067_agent_default_environment.sql +3 -0
- package/dist/migrations/0068_environment_local_driver_unique.sql +2 -0
- package/dist/migrations/0069_liveness_recovery_dedupe.sql +13 -0
- package/dist/migrations/0070_active_run_output_watchdog.sql +70 -0
- package/dist/migrations/0071_default_hire_approval_off.sql +1 -0
- package/dist/migrations/0072_large_sandman.sql +6 -0
- package/dist/migrations/0073_shiny_salo.sql +1 -0
- package/dist/migrations/0074_striped_genesis.sql +4 -0
- package/dist/migrations/0075_cultured_sebastian_shaw.sql +7 -0
- package/dist/migrations/0076_useful_elektra.sql +29 -0
- package/dist/migrations/0077_unusual_karnak.sql +140 -0
- package/dist/migrations/0078_white_darwin.sql +3 -0
- package/dist/migrations/0079_company_search_document_indexes.sql +2 -0
- package/dist/migrations/0080_company_search_fuzzystrmatch.sql +1 -0
- package/dist/migrations/0081_optimal_dormammu.sql +1 -0
- package/dist/migrations/0082_dry_vision.sql +124 -0
- package/dist/migrations/0083_company_secret_provider_configs.sql +51 -0
- package/dist/migrations/0084_issue_recovery_actions.sql +64 -0
- package/dist/migrations/0085_tranquil_the_executioner.sql +8 -0
- package/dist/migrations/0086_routine_env_runtime_contract.sql +8 -0
- package/dist/migrations/0087_backfill_environment_manage_human_defaults.sql +29 -0
- package/dist/migrations/0088_backfill_principal_access_compatibility.sql +75 -0
- package/dist/migrations/0089_cloud_upstreams.sql +71 -0
- package/dist/migrations/0090_resource_memberships.sql +55 -0
- package/dist/migrations/0091_old_swarm.sql +189 -0
- package/dist/migrations/0092_mighty_puma.sql +28 -0
- package/dist/migrations/0093_giant_green_goblin.sql +6 -0
- package/dist/migrations/0094_backfill_archived_company_agent_pauses.sql +10 -0
- package/dist/migrations/0095_issue_comment_tombstones.sql +15 -0
- package/dist/migrations/0096_document_annotation_issue_comment_links.sql +7 -0
- package/dist/migrations/0097_low_trust_source_trust.sql +4 -0
- package/dist/migrations/0098_project_icon.sql +1 -0
- package/dist/migrations/0099_skills_store_foundation.sql +121 -0
- package/dist/migrations/0100_skill_install_count_backfill.sql +3 -0
- package/dist/migrations/0101_plugin_company_id_tenant_isolation.sql +14 -0
- package/dist/migrations/0102_managed_sandbox_dedup_index.sql +33 -0
- package/dist/migrations/0103_agent_error_reason.sql +1 -0
- package/dist/migrations/0104_issue_watchdogs.sql +90 -0
- package/dist/migrations/0105_instance_scoped_environments.sql +170 -0
- package/dist/migrations/0106_external_object_references.sql +106 -0
- package/dist/migrations/0107_external_object_display_metadata.sql +5 -0
- package/dist/migrations/0108_workspace_operations_issue_id.sql +41 -0
- package/dist/migrations/0109_routine_description_annotations.sql +170 -0
- package/dist/migrations/0110_document_company_cascade.sql +31 -0
- package/dist/migrations/0111_backfill_skill_create_human_defaults.sql +29 -0
- package/dist/migrations/0112_rename_skill_create_permission_key.sql +30 -0
- package/dist/migrations/0113_pipeline_foundation.sql +335 -0
- package/dist/migrations/0114_pipeline_case_issue_unlinked_event.sql +3 -0
- package/dist/migrations/0115_pipeline_routine_origin.sql +3 -0
- package/dist/migrations/0116_pipeline_upstream_drift_event.sql +3 -0
- package/dist/migrations/0117_pipeline_transition_forced_event.sql +3 -0
- package/dist/migrations/0118_pipeline_case_agent_fanout.sql +3 -0
- package/dist/migrations/0119_pipeline_drift_acknowledged_event.sql +3 -0
- package/dist/migrations/0120_pipeline_stage_working_primitives.sql +19 -0
- package/dist/migrations/0121_pipeline_automation_retry_effects.sql +43 -0
- package/dist/migrations/0122_pipeline_case_documents.sql +28 -0
- package/dist/migrations/0123_document_annotation_source_trust.sql +1 -0
- package/dist/migrations/0124_agent_api_key_scope_config.sql +1 -0
- package/dist/migrations/0125_environment_custom_image_templates.sql +147 -0
- package/dist/migrations/0127_environment_custom_images_instance_scoped.sql +106 -0
- package/dist/migrations/0128_user_specific_secrets.sql +178 -0
- package/dist/migrations/0129_agent_api_key_responsible_user.sql +41 -0
- package/dist/migrations/0131_repair_run_responsible_user_context_refs.sql +67 -0
- package/dist/migrations/0132_issue_comment_derived_attribution_fast.sql +82 -0
- package/dist/migrations/0133_resource_membership_stars.sql +7 -0
- package/dist/migrations/0134_run_responsible_user_invariant.sql +211 -0
- package/dist/migrations/0135_repair_run_responsible_user_updated_at_sweep.sql +84 -0
- package/dist/migrations/0136_acpx_default_engine_migration.sql +97 -0
- package/dist/migrations/0137_skill_studio_server_foundation.sql +76 -0
- package/dist/migrations/0138_skill_studio_run_retention.sql +5 -0
- package/dist/migrations/0139_skill_studio_run_templates.sql +44 -0
- package/dist/migrations/0140_built_in_managed_resources.sql +43 -0
- package/dist/migrations/0141_heartbeat_runs_company_created_at_index.sql +2 -0
- package/dist/migrations/0142_company_search_sort_indexes.sql +3 -0
- package/dist/migrations/0143_cases_foundation.sql +248 -0
- package/dist/migrations/0144_case_document_annotations.sql +31 -0
- package/dist/migrations/0145_inbox_dismissal_snooze_kind.sql +15 -0
- package/dist/migrations/0146_routine_activity_gate.sql +3 -0
- package/dist/migrations/0147_cost_event_status.sql +1 -0
- package/dist/migrations/0148_tool_access_mcp_connections.sql +126 -0
- package/dist/migrations/0149_agent_access_phase2_contracts.sql +612 -0
- package/dist/migrations/0150_tool_invocation_catalog_snapshots.sql +2 -0
- package/dist/migrations/0151_tool_gateway_sessions.sql +38 -0
- package/dist/migrations/0152_tool_connection_application_no_cascade.sql +18 -0
- package/dist/migrations/0153_tool_stdio_command_templates.sql +32 -0
- package/dist/migrations/0154_tool_oauth_states.sql +36 -0
- package/dist/migrations/0155_tool_oauth_state_actor_binding.sql +5 -0
- package/dist/migrations/0156_tool_oauth_state_session_binding.sql +1 -0
- package/dist/migrations/0157_tool_profile_new_tools_review.sql +1 -0
- package/dist/migrations/0158_tool_invocation_connected_mcp_metadata.sql +4 -0
- package/dist/migrations/0159_named_mcp_gateways.sql +72 -0
- package/dist/migrations/0160_mcp_gateway_contract_expansion.sql +176 -0
- package/dist/migrations/0161_environment_custom_image_company_scope_repair.sql +8 -0
- package/dist/migrations/0162_tool_runtime_metric_counters.sql +27 -0
- package/dist/migrations/0163_secret_binding_projection_class.sql +2 -0
- package/dist/migrations/0164_plugin_config_company_scope.sql +117 -0
- package/dist/migrations/0165_connection_token_issuances.sql +64 -0
- package/dist/migrations/0166_smoke_lab_results.sql +51 -0
- package/dist/migrations/0167_environment_custom_image_instance_scope_cleanup.sql +32 -0
- package/dist/migrations/0168_tool_connection_installs.sql +56 -0
- package/dist/migrations/0169_tool_gateway_protocol_rate_limit_counters.sql +43 -0
- package/dist/migrations/0170_company_skill_policies.sql +12 -0
- package/dist/migrations/0171_issue_create_idempotency_keys.sql +19 -0
- package/dist/migrations/0172_inbox_archive_agent_policies.sql +42 -0
- package/dist/migrations/0173_inbox_policy_agent_cleanup.sql +22 -0
- package/dist/migrations/0174_folders.sql +46 -0
- package/dist/migrations/0175_nested_skill_folders.sql +232 -0
- package/dist/migrations/0176_issue_create_idempotency_key_expiry.sql +2 -0
- package/dist/migrations/0177_activity_log_responsible_user.sql +10 -0
- package/dist/migrations/0178_summary_slots.sql +37 -0
- package/dist/migrations/0179_summary_slot_failure_reason.sql +1 -0
- package/dist/migrations/0180_decision_training_examples.sql +23 -0
- package/dist/migrations/0181_decision_training_retention_policy.sql +2 -0
- package/dist/migrations/0182_connections_v3_schema_core.sql +74 -0
- package/dist/migrations/0183_connection_user_authorization_state.sql +6 -0
- package/dist/migrations/0184_routable_blocked.sql +3 -0
- package/dist/migrations/0185_status_cards.sql +111 -0
- package/dist/migrations/0186_status_card_compile_provenance.sql +3 -0
- package/dist/migrations/0187_status_card_pending_change_hash.sql +1 -0
- package/dist/migrations/0188_status_card_generation_issue_index.sql +1 -0
- package/dist/migrations/0189_status_card_agent.sql +6 -0
- package/dist/migrations/0190_status_card_single_prompt.sql +2 -0
- package/dist/migrations/0191_status_card_mentioned_issue_ids.sql +1 -0
- package/dist/migrations/0192_task_watchdog_stop_snapshots.sql +2 -0
- package/dist/migrations/0193_document_memberships.sql +15 -0
- package/dist/migrations/0194_company_skill_releases.sql +4 -0
- package/dist/migrations/0195_built_in_agent_unique_marker.sql +53 -0
- package/dist/migrations/0196_drop_cloud_upstream_tables.sql +9 -0
- package/dist/migrations/0197_decisions_v1.sql +106 -0
- package/dist/migrations/0198_decision_queues_and_triage.sql +161 -0
- package/dist/migrations/0199_decision_queue_composite_key.sql +10 -0
- package/dist/migrations/0200_yellow_maria_hill.sql +64 -0
- package/dist/migrations/0201_concerned_captain_midlands.sql +1 -0
- package/dist/migrations/0202_eminent_marvel_zombies.sql +1 -0
- package/dist/migrations/0203_interaction_resolver_governance.sql +8 -0
- package/dist/migrations/0204_interaction_addressee.sql +6 -0
- package/dist/migrations/0205_narrow_shiva.sql +10 -0
- package/dist/migrations/0206_review_path_recovery_idempotency_index.sql +2 -0
- package/dist/migrations/0207_moaning_amazoness.sql +94 -0
- package/dist/migrations/0208_keen_sharon_carter.sql +1 -0
- package/dist/migrations/0209_heartbeat_context_snapshot_indexes.sql +4 -0
- package/dist/migrations/0210_heartbeat_context_taskkey_index.sql +1 -0
- package/dist/migrations/0211_bright_morg.sql +1 -0
- package/dist/migrations/0212_onboarding_first_task_unique.sql +3 -0
- package/dist/migrations/0213_complete_mystique.sql +24 -0
- package/dist/migrations/0214_lively_lord_tyger.sql +22 -0
- package/dist/migrations/0215_flat_daimon_hellstrom.sql +1 -0
- package/dist/migrations/0216_company_onboarding_seeds.sql +42 -0
- package/dist/migrations/0217_yielding_starbolt.sql +21 -0
- package/dist/migrations/0218_mushy_jack_murdock.sql +38 -0
- package/dist/migrations/0219_runtime_service_exposure.sql +3 -0
- package/dist/migrations/0220_execution_workspace_runtime_leases.sql +26 -0
- package/dist/migrations/0221_swift_justin_hammer.sql +20 -0
- package/dist/migrations/0222_orphan_cleanup_env_reference_survives_delete.sql +4 -0
- package/dist/migrations/0223_robust_zaladane.sql +6 -0
- package/dist/migrations/0224_unified_adapter_auth_sessions.sql +18 -0
- package/dist/migrations/0225_drop_claude_setup_token_sessions.sql +5 -0
- package/dist/migrations/0226_tan_colossus.sql +2 -0
- package/dist/migrations/0227_modern_pandemic.sql +410 -0
- package/dist/migrations/0228_nasty_grim_reaper.sql +59 -0
- package/dist/migrations/0229_drop_company_brand_color_and_attachment_max_bytes.sql +7 -0
- package/dist/migrations/0230_better_auth_account_issuer.sql +23 -0
- package/dist/migrations/0231_remove_app_connection_wide_includes.sql +10 -0
- package/dist/migrations/0232_fixed_hannibal_king.sql +202 -0
- package/dist/migrations/0233_living_dreaming_celestial.sql +13 -0
- package/dist/migrations/0234_provider_trace_records.sql +31 -0
- package/dist/migrations/0235_heartbeat_run_event_sequence_uniqueness.sql +28 -0
- package/dist/migrations/0236_remove_cheap_model_profiles.sql +108 -0
- package/dist/migrations/0237_clammy_colonel_america.sql +52 -0
- package/dist/migrations/0238_graceful_infant_terrible.sql +7 -0
- package/dist/migrations/0239_sturdy_santa_claus.sql +38 -0
- package/dist/migrations/0240_pink_fantastic_four.sql +25 -0
- package/dist/migrations/0241_conscious_adam_destine.sql +1 -0
- package/dist/migrations/0242_wide_lightspeed.sql +1 -0
- package/dist/migrations/0243_sleepy_metal_master.sql +1 -0
- package/dist/migrations/0244_organic_meltdown.sql +1 -0
- package/dist/migrations/0245_misty_nightshade.sql +3 -0
- package/dist/migrations/0246_nostalgic_medusa.sql +19 -0
- package/dist/migrations/0247_even_moon_knight.sql +2 -0
- package/dist/migrations/0248_small_manta.sql +36 -0
- package/dist/migrations/0249_fast_silverclaw.sql +33 -0
- package/dist/migrations/0250_exotic_dakota_north.sql +2 -0
- package/dist/migrations/0251_narrow_mastermind.sql +1 -0
- package/dist/migrations/0252_friendly_kate_bishop.sql +1 -0
- package/dist/migrations/0253_real_firebrand.sql +1 -0
- package/dist/migrations/0254_military_calypso.sql +3 -0
- package/dist/migrations/0255_previous_captain_america.sql +290 -0
- package/dist/migrations/0256_married_king_cobra.sql +3 -0
- package/dist/migrations/0257_bizarre_the_hunter.sql +8 -0
- package/dist/migrations/0258_typical_sauron.sql +2 -0
- package/dist/migrations/0259_tan_chat.sql +1 -0
- package/dist/migrations/0260_chat_interaction_wakeup_idempotency.sql +106 -0
- package/dist/migrations/0261_faulty_iceman.sql +4 -0
- package/dist/migrations/0262_lying_avengers.sql +3 -0
- package/dist/migrations/0263_nebulous_iron_lad.sql +3 -0
- package/dist/migrations/0264_cynical_hellcat.sql +3 -0
- package/dist/migrations/0265_chat_interaction_wakeup_provenance.sql +80 -0
- package/dist/migrations/0266_brave_living_mummy.sql +56 -0
- package/dist/migrations/0267_warm_wild_child.sql +8 -0
- package/dist/migrations/0268_lively_runaways.sql +1 -0
- package/dist/migrations/0269_fearless_young_avengers.sql +15 -0
- package/dist/migrations/0270_harsh_queen_noir.sql +12 -0
- package/dist/migrations/0271_woozy_silver_surfer.sql +1 -0
- package/dist/migrations/0272_light_kate_bishop.sql +98 -0
- package/dist/migrations/0273_aromatic_moondragon.sql +3 -0
- package/dist/migrations/0274_agent_chat.sql +33 -0
- package/dist/migrations/0275_easy_dragon_man.sql +5 -0
- package/dist/migrations/0276_hard_mandroid.sql +77 -0
- package/dist/migrations/0277_uneven_lady_deathstrike.sql +47 -0
- package/dist/migrations/0278_nappy_colonel_america.sql +6 -0
- package/dist/migrations/0279_tired_deathstrike.sql +3 -0
- package/dist/migrations/0280_unique_genesis.sql +11 -0
- package/dist/migrations/0281_true_boom_boom.sql +14 -0
- package/dist/migrations/0282_colossal_shocker.sql +2 -0
- package/dist/migrations/0283_jittery_psynapse.sql +81 -0
- package/dist/migrations/0284_petite_genesis.sql +1 -0
- package/dist/migrations/0285_heavy_oracle.sql +1 -0
- package/dist/migrations/0286_complete_alice.sql +13 -0
- package/dist/migrations/0287_serious_tinkerer.sql +61 -0
- package/dist/migrations/0288_glorious_jamie_braddock.sql +36 -0
- package/dist/migrations/0289_drop_user_keyboard_shortcuts.sql +5 -0
- package/dist/migrations/0290_browser_use_cloud.sql +155 -0
- package/dist/migrations/0291_conscious_secret_warriors.sql +119 -0
- package/dist/migrations/0292_powerful_devos.sql +1 -0
- package/dist/migrations/0293_broad_rattler.sql +1 -0
- package/dist/migrations/0294_chilly_marvel_apes.sql +1 -0
- package/dist/migrations/0295_public_captain_cross.sql +21 -0
- package/dist/migrations/0296_stiff_thaddeus_ross.sql +25 -0
- package/dist/migrations/0297_foamy_swordsman.sql +14 -0
- package/dist/migrations/0298_connection_agent_instructions.sql +16 -0
- package/dist/migrations/0299_absent_ser_duncan.sql +64 -0
- package/dist/migrations/0300_chunky_chamber.sql +3 -0
- package/dist/migrations/0301_lumpy_maria_hill.sql +157 -0
- package/dist/migrations/0302_colossal_otto_octavius.sql +24 -0
- package/dist/migrations/0303_supreme_garia.sql +1 -0
- package/dist/migrations/0304_curvy_shadow_king.sql +27 -0
- package/dist/migrations/0305_chubby_vin_gonzales.sql +7 -0
- package/dist/migrations/0306_familiar_titania.sql +4 -0
- package/dist/migrations/0307_cool_naoko.sql +3 -0
- package/dist/migrations/0308_whole_steel_serpent.sql +20 -0
- package/dist/migrations/0309_loving_the_hood.sql +73 -0
- package/dist/migrations/0310_agent_commentary.sql +33 -0
- package/dist/migrations/0311_mcp_file_transfers.sql +48 -0
- package/dist/migrations/0312_easy_eternity.sql +232 -0
- package/dist/migrations/0313_private_task_access.sql +278 -0
- package/dist/migrations/0314_private_task_draft_assets.sql +28 -0
- package/dist/migrations/0315_rapid_emma_frost.sql +44 -0
- package/dist/migrations/0316_premium_slayback.sql +81 -0
- package/dist/migrations/0317_messy_famine.sql +189 -0
- package/dist/migrations/0318_strong_blacklash.sql +24 -0
- package/dist/migrations/0319_heavy_captain_midlands.sql +15 -0
- package/dist/migrations/0320_daily_onslaught.sql +16 -0
- package/dist/migrations/0321_acoustic_human_fly.sql +1 -0
- package/dist/migrations/0322_reflective_kree.sql +98 -0
- package/dist/migrations/0323_petite_shockwave.sql +4 -0
- package/dist/migrations/0324_long_franklin_storm.sql +153 -0
- package/dist/migrations/0325_aberrant_machine_man.sql +6 -0
- package/dist/migrations/0326_blushing_screwball.sql +17 -0
- package/dist/migrations/0327_sad_proteus.sql +23 -0
- package/dist/migrations/0328_chunky_mentallo.sql +52 -0
- package/dist/migrations/0329_free_wolf_cub.sql +18 -0
- package/dist/migrations/0330_spooky_white_tiger.sql +7 -0
- package/dist/migrations/0331_panoramic_spyke.sql +74 -0
- package/dist/migrations/0332_little_night_nurse.sql +1 -0
- package/dist/migrations/0333_normal_wild_pack.sql +2 -0
- package/dist/migrations/0334_rare_slipstream.sql +15 -0
- package/dist/migrations/0335_absurd_bulldozer.sql +39 -0
- package/dist/migrations/0336_big_crystal.sql +48 -0
- package/dist/migrations/0337_exotic_proemial_gods.sql +16 -0
- package/dist/migrations/0338_absurd_vengeance.sql +20 -0
- package/dist/migrations/0339_luxuriant_iron_monger.sql +21 -0
- package/dist/migrations/0340_open_warlock.sql +2 -0
- package/dist/migrations/0341_abnormal_bucky.sql +78 -0
- package/dist/migrations/0342_dry_shen.sql +7 -0
- package/dist/migrations/0343_new_mentor.sql +14 -0
- package/dist/migrations/0344_wide_blue_marvel.sql +62 -0
- package/dist/migrations/0345_luxuriant_carmella_unuscione.sql +9 -0
- package/dist/migrations/0346_cloudy_whiplash.sql +2 -0
- package/dist/migrations/0347_flippant_imperial_guard.sql +77 -0
- package/dist/migrations/0348_agent_skill_runtime_hooks.sql +166 -0
- package/dist/migrations/0349_oval_dragon_lord.sql +377 -0
- package/dist/migrations/0350_friendly_rhodey.sql +5 -0
- package/dist/migrations/0351_hard_albert_cleary.sql +3 -0
- package/dist/migrations/0352_special_warbound.sql +1 -0
- package/dist/migrations/0353_skinny_gamma_corps.sql +12 -0
- package/dist/migrations/0354_agent_connection_assignment_hooks.sql +184 -0
- package/dist/migrations/0355_agent_tool_definition_hooks.sql +108 -0
- package/dist/migrations/0356_agent_connector_access_hooks.sql +175 -0
- package/dist/migrations/0357_naive_wolfpack.sql +21 -0
- package/dist/migrations/0358_issue_assignment_status_version.sql +14 -0
- package/dist/migrations/0359_commentary_view_human_defaults.sql +24 -0
- package/dist/migrations/0360_retained_workspace_recovery_index.sql +6 -0
- package/dist/migrations/0361_mighty_dracula.sql +4 -0
- package/dist/migrations/0362_large_roughhouse.sql +66 -0
- package/dist/migrations/0363_steady_storm.sql +102 -0
- package/dist/migrations/0364_clear_maria_hill.sql +2 -0
- package/dist/migrations/0365_naive_shatterstar.sql +3 -0
- package/dist/migrations/0366_superb_adam_warlock.sql +16 -0
- package/dist/migrations/0367_noisy_lilandra.sql +19 -0
- package/dist/migrations/0368_abandoned_bucky.sql +1 -0
- package/dist/migrations/0369_late_logan.sql +13 -0
- package/dist/migrations/0370_flimsy_lord_tyger.sql +21 -0
- package/dist/migrations/0371_furry_red_shift.sql +19 -0
- package/dist/migrations/0372_mature_the_initiative.sql +59 -0
- package/dist/migrations/0373_wandering_mongu.sql +2 -0
- package/dist/migrations/0374_rare_wolfpack.sql +3 -0
- package/dist/migrations/0375_short_mercury.sql +2 -0
- package/dist/migrations/0376_clear_committed_native_recovery_state.sql +3 -0
- package/dist/migrations/0377_clear_settled_native_run_process_identity.sql +43 -0
- package/dist/migrations/0378_environment_skill_runtime_hooks.sql +111 -0
- package/dist/migrations/0379_white_giant_girl.sql +3 -0
- package/dist/migrations/0380_broken_aqueduct.sql +1 -0
- package/dist/migrations/0381_mean_scream.sql +1 -0
- package/dist/migrations/0382_narrow_the_executioner.sql +1 -0
- package/dist/migrations/0383_tool_review_company_expiry.sql +1 -0
- package/dist/migrations/0384_funny_adam_warlock.sql +1 -0
- package/dist/migrations/0385_open_madame_web.sql +1 -0
- package/dist/migrations/0386_steady_epoch.sql +1 -0
- package/dist/migrations/0387_boring_professor_monster.sql +1 -0
- package/dist/migrations/0388_ambitious_micromax.sql +1 -0
- package/dist/migrations/0389_brave_hulk.sql +1 -0
- package/dist/migrations/0390_salty_killraven.sql +1 -0
- package/dist/migrations/0391_third_roulette.sql +1 -0
- package/dist/migrations/0392_small_frightful_four.sql +1 -0
- package/dist/migrations/0393_open_grandmaster.sql +1 -0
- package/dist/migrations/0394_conscious_whizzer.sql +17 -0
- package/dist/migrations/0395_tranquil_firestar.sql +1 -0
- package/dist/migrations/0396_tan_paladin.sql +31 -0
- package/dist/migrations/0397_known_madrox.sql +1 -0
- package/dist/migrations/0398_yielding_random.sql +1 -0
- package/dist/migrations/0399_ambitious_onslaught.sql +1 -0
- package/dist/migrations/0400_absent_phantom_reporter.sql +5 -0
- package/dist/migrations/0401_yummy_ultimates.sql +3 -0
- package/dist/migrations/0402_ancient_malice.sql +2 -0
- package/dist/migrations/0403_natural_cerise.sql +5 -0
- package/dist/migrations/0404_tense_silver_sable.sql +9 -0
- package/dist/migrations/0405_harsh_avengers.sql +24 -0
- package/dist/migrations/0406_zippy_war_machine.sql +1 -0
- package/dist/migrations/0407_greedy_star_brand.sql +6 -0
- package/dist/migrations/0408_short_red_skull.sql +5 -0
- package/dist/migrations/0409_uneven_zuras.sql +5 -0
- package/dist/migrations/0410_freezing_kinsey_walden.sql +1 -0
- package/dist/migrations/0411_real_scrambler.sql +2 -0
- package/dist/migrations/0412_tearful_squadron_supreme.sql +3 -0
- package/dist/migrations/0413_tired_kronos.sql +1 -0
- package/dist/migrations/0414_closed_edwin_jarvis.sql +1 -0
- package/dist/migrations/0415_zippy_zemo.sql +81 -0
- package/dist/migrations/0416_salty_domino.sql +6 -0
- package/dist/migrations/0417_chunky_red_hulk.sql +19 -0
- package/dist/migrations/0418_curved_lady_mastermind.sql +33 -0
- package/dist/migrations/0419_slippery_impossible_man.sql +24 -0
- package/dist/migrations/0420_broad_johnny_storm.sql +1 -0
- package/dist/migrations/0421_bright_skaar.sql +27 -0
- package/dist/migrations/0422_eminent_darwin.sql +13 -0
- package/dist/migrations/0423_agent_config_read_defaults.sql +37 -0
- package/dist/migrations/0424_routine_creation_run.sql +1 -0
- package/dist/migrations/0425_awesome_living_lightning.sql +1 -0
- package/dist/migrations/0426_absent_guardian.sql +39 -0
- package/dist/migrations/0427_ordinary_xavin.sql +1 -0
- package/dist/migrations/0428_retained_admitted_project_sets.sql +22 -0
- package/dist/migrations/0429_high_freak.sql +15 -0
- package/dist/migrations/0430_regular_red_skull.sql +13 -0
- package/dist/migrations/0431_magenta_vanisher.sql +2 -0
- package/dist/migrations/0432_strong_mole_man.sql +2 -0
- package/dist/migrations/0433_workspace_defaults.sql +2 -0
- package/dist/migrations/0434_brave_leo.sql +3 -0
- package/dist/migrations/0435_premium_puff_adder.sql +1 -0
- package/dist/migrations/0436_legal_reavers.sql +1 -0
- package/dist/migrations/0437_workable_oracle.sql +1 -0
- package/dist/migrations/0438_mighty_outlaw_kid.sql +27 -0
- package/dist/migrations/0439_cultured_impossible_man.sql +1 -0
- package/dist/migrations/0440_flippant_the_leader.sql +28 -0
- package/dist/migrations/0441_lucky_chameleon.sql +1 -0
- package/dist/migrations/0442_low_salo.sql +1 -0
- package/dist/migrations/0443_native_warm_follow_up_default.sql +31 -0
- package/dist/migrations/0444_github_access_refresh_runtime_bookkeeping.sql +114 -0
- package/dist/migrations/0445_native_accepted_result_lease_index.sql +1 -0
- package/dist/migrations/0446_native_lease_holder.sql +3 -0
- package/dist/migrations/0447_legacy_controller_process.sql +2 -0
- package/dist/migrations/0448_agent_harness_verified_digest.sql +2 -0
- package/dist/migrations/0449_controller_instances.sql +15 -0
- package/dist/migrations/0450_petite_frightful_four.sql +1 -0
- package/dist/migrations/0451_budget_resume_claims.sql +18 -0
- package/dist/migrations/0452_secret_proposal_secret_cascade.sql +3 -0
- package/dist/migrations/0453_curious_ben_parker.sql +1 -0
- package/dist/migrations/0454_lumpy_ronan.sql +1 -0
- package/dist/migrations/0455_pending_budget_cancellation_index.sql +2 -0
- package/dist/migrations/0456_chat_review_lookup_indexes.sql +4 -0
- package/dist/migrations/0457_native_session_run_index.sql +1 -0
- package/dist/migrations/0458_chat_admission_issue_index.sql +1 -0
- package/dist/migrations/0459_environment_lease_backup_scope_index.sql +1 -0
- package/dist/migrations/0460_workspace_activity_context_index.sql +1 -0
- package/dist/migrations/0461_created_from_legacy_origin_run_index.sql +1 -0
- package/dist/migrations/0462_plugin_lifecycle_resource_cursors.sql +31 -0
- package/dist/migrations/0463_gateway_token_pending_reveal.sql +1 -0
- package/dist/migrations/0464_project_environment.sql +7 -0
- package/dist/migrations/0465_better_auth_account_identity.sql +3 -0
- package/dist/migrations/0466_drop_project_environment.sql +2 -0
- package/dist/migrations/0467_fair_human_torch.sql +2 -0
- package/dist/migrations/0468_busy_wendell_rand.sql +1 -0
- package/dist/migrations/0469_zippy_photon.sql +5 -0
- package/dist/migrations/0470_heartbeat_runs_queued_created_index.sql +1 -0
- package/dist/migrations/0471_controller_instances_dispatch_marker.sql +2 -0
- package/dist/migrations/0472_runner_api_capture_pending_deletes.sql +2 -0
- package/dist/migrations/0473_elite_kat_farrell.sql +29 -0
- package/dist/migrations/0474_milky_wolf_cub.sql +39 -0
- package/dist/migrations/0475_sandbox_creation_owner_unresolved.sql +3 -0
- package/dist/migrations/0476_wakeup_request_run_index.sql +1 -0
- package/dist/migrations/0477_friendly_toro.sql +3 -0
- package/dist/migrations/0478_jazzy_vertigo.sql +49 -0
- package/dist/migrations/0479_short_darkstar.sql +1 -0
- package/dist/migrations/0480_lazy_lethal_legion.sql +17 -0
- package/dist/migrations/0481_round_pet_avengers.sql +2 -0
- package/dist/migrations/0482_aberrant_rumiko_fujikawa.sql +7 -0
- package/dist/migrations/0483_busy_tombstone.sql +30 -0
- package/dist/migrations/0484_certain_zemo.sql +1 -0
- package/dist/migrations/0485_moaning_ultimatum.sql +16 -0
- package/dist/migrations/0486_heartbeat_runs_company_finished_index.sql +1 -0
- package/dist/migrations/0487_heartbeat_runs_settled_process_indexes.sql +5 -0
- package/dist/migrations/0488_issue_recovery_full_passes.sql +18 -0
- package/dist/migrations/0489_real_sage.sql +14 -0
- package/dist/migrations/0490_nappy_chat.sql +21 -0
- package/dist/migrations/0491_common_gambit.sql +27 -0
- package/dist/migrations/0492_hesitant_ultimo.sql +45 -0
- package/dist/migrations/0493_chilly_jamie_braddock.sql +43 -0
- package/dist/migrations/0494_misty_squadron_sinister.sql +3 -0
- package/dist/migrations/0495_tiny_rage.sql +39 -0
- package/dist/migrations/0496_broken_dorian_gray.sql +59 -0
- package/dist/migrations/0497_purple_lady_bullseye.sql +24 -0
- package/dist/migrations/0498_quiet_hardball.sql +18 -0
- package/dist/migrations/0499_numerous_whizzer.sql +8 -0
- package/dist/migrations/0500_funny_malcolm_colcord.sql +80 -0
- package/dist/migrations/0501_charming_living_lightning.sql +35 -0
- package/dist/migrations/0502_dapper_hedge_knight.sql +2 -0
- package/dist/migrations/0503_melted_meggan.sql +21 -0
- package/dist/migrations/0504_lucky_pepper_potts.sql +23 -0
- package/dist/migrations/0505_nice_rawhide_kid.sql +2 -0
- package/dist/migrations/0506_nappy_agent_brand.sql +2 -0
- package/dist/migrations/0507_special_kang.sql +2 -0
- package/dist/migrations/0508_normal_riptide.sql +3 -0
- package/dist/migrations/0509_recover_exhausted_github_responses.sql +11 -0
- package/dist/migrations/0510_clear_speedball.sql +17 -0
- package/dist/migrations/0511_simple_the_hunter.sql +51 -0
- package/dist/migrations/meta/_journal.json +3576 -0
- package/dist/pipelines-schema.test.d.ts +2 -0
- package/dist/pipelines-schema.test.d.ts.map +1 -0
- package/dist/pipelines-schema.test.js +205 -0
- package/dist/pipelines-schema.test.js.map +1 -0
- package/dist/postgres-connection-recovery.test.d.ts +2 -0
- package/dist/postgres-connection-recovery.test.d.ts.map +1 -0
- package/dist/postgres-connection-recovery.test.js +50 -0
- package/dist/postgres-connection-recovery.test.js.map +1 -0
- package/dist/postgres-queue-pool.test.d.ts +2 -0
- package/dist/postgres-queue-pool.test.d.ts.map +1 -0
- package/dist/postgres-queue-pool.test.js +37 -0
- package/dist/postgres-queue-pool.test.js.map +1 -0
- package/dist/postgres-queue.test.d.ts +2 -0
- package/dist/postgres-queue.test.d.ts.map +1 -0
- package/dist/postgres-queue.test.js +144 -0
- package/dist/postgres-queue.test.js.map +1 -0
- package/dist/postgres-receive-buffer.test.d.ts +2 -0
- package/dist/postgres-receive-buffer.test.d.ts.map +1 -0
- package/dist/postgres-receive-buffer.test.js +28 -0
- package/dist/postgres-receive-buffer.test.js.map +1 -0
- package/dist/prepared-queries-postgres.test.d.ts +2 -0
- package/dist/prepared-queries-postgres.test.d.ts.map +1 -0
- package/dist/prepared-queries-postgres.test.js +361 -0
- package/dist/prepared-queries-postgres.test.js.map +1 -0
- package/dist/prepared-queries.d.ts +24 -0
- package/dist/prepared-queries.d.ts.map +1 -0
- package/dist/prepared-queries.js +162 -0
- package/dist/prepared-queries.js.map +1 -0
- package/dist/response-capture-bundle.test.d.ts +2 -0
- package/dist/response-capture-bundle.test.d.ts.map +1 -0
- package/dist/response-capture-bundle.test.js +56 -0
- package/dist/response-capture-bundle.test.js.map +1 -0
- package/dist/response-capture-postgres.test.d.ts +2 -0
- package/dist/response-capture-postgres.test.d.ts.map +1 -0
- package/dist/response-capture-postgres.test.js +276 -0
- package/dist/response-capture-postgres.test.js.map +1 -0
- package/dist/response-capture.d.ts +44 -0
- package/dist/response-capture.d.ts.map +1 -0
- package/dist/response-capture.js +456 -0
- package/dist/response-capture.js.map +1 -0
- package/dist/response-capture.test.d.ts +2 -0
- package/dist/response-capture.test.d.ts.map +1 -0
- package/dist/response-capture.test.js +317 -0
- package/dist/response-capture.test.js.map +1 -0
- package/dist/run-event-payload.d.ts +30 -0
- package/dist/run-event-payload.d.ts.map +1 -0
- package/dist/run-event-payload.js +57 -0
- package/dist/run-event-payload.js.map +1 -0
- package/dist/run-event-payload.test.d.ts +2 -0
- package/dist/run-event-payload.test.d.ts.map +1 -0
- package/dist/run-event-payload.test.js +46 -0
- package/dist/run-event-payload.test.js.map +1 -0
- package/dist/runtime-config.d.ts +16 -0
- package/dist/runtime-config.d.ts.map +1 -0
- package/dist/runtime-config.js +168 -0
- package/dist/runtime-config.js.map +1 -0
- package/dist/runtime-config.test.d.ts +2 -0
- package/dist/runtime-config.test.d.ts.map +1 -0
- package/dist/runtime-config.test.js +111 -0
- package/dist/runtime-config.test.js.map +1 -0
- package/dist/schema/accounting.d.ts +1335 -0
- package/dist/schema/accounting.d.ts.map +1 -0
- package/dist/schema/accounting.js +125 -0
- package/dist/schema/accounting.js.map +1 -0
- package/dist/schema/activity_log.d.ts +214 -0
- package/dist/schema/activity_log.d.ts.map +1 -0
- package/dist/schema/activity_log.js +35 -0
- package/dist/schema/activity_log.js.map +1 -0
- package/dist/schema/adapter_auth_sessions.d.ts +377 -0
- package/dist/schema/adapter_auth_sessions.d.ts.map +1 -0
- package/dist/schema/adapter_auth_sessions.js +88 -0
- package/dist/schema/adapter_auth_sessions.js.map +1 -0
- package/dist/schema/agent_api_keys.d.ts +204 -0
- package/dist/schema/agent_api_keys.d.ts.map +1 -0
- package/dist/schema/agent_api_keys.js +19 -0
- package/dist/schema/agent_api_keys.js.map +1 -0
- package/dist/schema/agent_commentary.d.ts +181 -0
- package/dist/schema/agent_commentary.d.ts.map +1 -0
- package/dist/schema/agent_commentary.js +24 -0
- package/dist/schema/agent_commentary.js.map +1 -0
- package/dist/schema/agent_config_revisions.d.ts +201 -0
- package/dist/schema/agent_config_revisions.d.ts.map +1 -0
- package/dist/schema/agent_config_revisions.js +20 -0
- package/dist/schema/agent_config_revisions.js.map +1 -0
- package/dist/schema/agent_file_roots.d.ts +107 -0
- package/dist/schema/agent_file_roots.d.ts.map +1 -0
- package/dist/schema/agent_file_roots.js +14 -0
- package/dist/schema/agent_file_roots.js.map +1 -0
- package/dist/schema/agent_identity_keys.d.ts +131 -0
- package/dist/schema/agent_identity_keys.d.ts.map +1 -0
- package/dist/schema/agent_identity_keys.js +20 -0
- package/dist/schema/agent_identity_keys.js.map +1 -0
- package/dist/schema/agent_instruction_revisions.d.ts +740 -0
- package/dist/schema/agent_instruction_revisions.d.ts.map +1 -0
- package/dist/schema/agent_instruction_revisions.js +92 -0
- package/dist/schema/agent_instruction_revisions.js.map +1 -0
- package/dist/schema/agent_memberships.d.ts +144 -0
- package/dist/schema/agent_memberships.d.ts.map +1 -0
- package/dist/schema/agent_memberships.js +19 -0
- package/dist/schema/agent_memberships.js.map +1 -0
- package/dist/schema/agent_runtime_state.d.ts +248 -0
- package/dist/schema/agent_runtime_state.d.ts.map +1 -0
- package/dist/schema/agent_runtime_state.js +23 -0
- package/dist/schema/agent_runtime_state.js.map +1 -0
- package/dist/schema/agent_setup_progress.d.ts +248 -0
- package/dist/schema/agent_setup_progress.d.ts.map +1 -0
- package/dist/schema/agent_setup_progress.js +33 -0
- package/dist/schema/agent_setup_progress.js.map +1 -0
- package/dist/schema/agent_task_sessions.d.ts +569 -0
- package/dist/schema/agent_task_sessions.d.ts.map +1 -0
- package/dist/schema/agent_task_sessions.js +51 -0
- package/dist/schema/agent_task_sessions.js.map +1 -0
- package/dist/schema/agent_wakeup_requests.d.ts +333 -0
- package/dist/schema/agent_wakeup_requests.d.ts.map +1 -0
- package/dist/schema/agent_wakeup_requests.js +85 -0
- package/dist/schema/agent_wakeup_requests.js.map +1 -0
- package/dist/schema/agents.d.ts +615 -0
- package/dist/schema/agents.d.ts.map +1 -0
- package/dist/schema/agents.js +47 -0
- package/dist/schema/agents.js.map +1 -0
- package/dist/schema/ai_connection_defaults.d.ts +132 -0
- package/dist/schema/ai_connection_defaults.d.ts.map +1 -0
- package/dist/schema/ai_connection_defaults.js +28 -0
- package/dist/schema/ai_connection_defaults.js.map +1 -0
- package/dist/schema/ai_connection_routing.d.ts +448 -0
- package/dist/schema/ai_connection_routing.d.ts.map +1 -0
- package/dist/schema/ai_connection_routing.js +37 -0
- package/dist/schema/ai_connection_routing.js.map +1 -0
- package/dist/schema/ai_provider_defaults.d.ts +114 -0
- package/dist/schema/ai_provider_defaults.d.ts.map +1 -0
- package/dist/schema/ai_provider_defaults.js +19 -0
- package/dist/schema/ai_provider_defaults.js.map +1 -0
- package/dist/schema/ai_subscriptions.d.ts +619 -0
- package/dist/schema/ai_subscriptions.d.ts.map +1 -0
- package/dist/schema/ai_subscriptions.js +61 -0
- package/dist/schema/ai_subscriptions.js.map +1 -0
- package/dist/schema/announcement_dismissals.d.ts +83 -0
- package/dist/schema/announcement_dismissals.d.ts.map +1 -0
- package/dist/schema/announcement_dismissals.js +15 -0
- package/dist/schema/announcement_dismissals.js.map +1 -0
- package/dist/schema/approval_comments.d.ts +144 -0
- package/dist/schema/approval_comments.d.ts.map +1 -0
- package/dist/schema/approval_comments.js +19 -0
- package/dist/schema/approval_comments.js.map +1 -0
- package/dist/schema/approvals.d.ts +214 -0
- package/dist/schema/approvals.d.ts.map +1 -0
- package/dist/schema/approvals.js +22 -0
- package/dist/schema/approvals.js.map +1 -0
- package/dist/schema/assets.d.ts +212 -0
- package/dist/schema/assets.d.ts.map +1 -0
- package/dist/schema/assets.js +22 -0
- package/dist/schema/assets.js.map +1 -0
- package/dist/schema/auth.d.ts +624 -0
- package/dist/schema/auth.d.ts.map +1 -0
- package/dist/schema/auth.js +47 -0
- package/dist/schema/auth.js.map +1 -0
- package/dist/schema/automatic_run_brakes.d.ts +216 -0
- package/dist/schema/automatic_run_brakes.d.ts.map +1 -0
- package/dist/schema/automatic_run_brakes.js +17 -0
- package/dist/schema/automatic_run_brakes.js.map +1 -0
- package/dist/schema/board_api_keys.d.ts +144 -0
- package/dist/schema/board_api_keys.d.ts.map +1 -0
- package/dist/schema/board_api_keys.js +16 -0
- package/dist/schema/board_api_keys.js.map +1 -0
- package/dist/schema/browser_use.d.ts +745 -0
- package/dist/schema/browser_use.d.ts.map +1 -0
- package/dist/schema/browser_use.js +104 -0
- package/dist/schema/browser_use.js.map +1 -0
- package/dist/schema/budget_evaluation_work.d.ts +94 -0
- package/dist/schema/budget_evaluation_work.d.ts.map +1 -0
- package/dist/schema/budget_evaluation_work.js +15 -0
- package/dist/schema/budget_evaluation_work.js.map +1 -0
- package/dist/schema/budget_incidents.d.ts +297 -0
- package/dist/schema/budget_incidents.d.ts.map +1 -0
- package/dist/schema/budget_incidents.js +29 -0
- package/dist/schema/budget_incidents.js.map +1 -0
- package/dist/schema/budget_policies.d.ts +348 -0
- package/dist/schema/budget_policies.d.ts.map +1 -0
- package/dist/schema/budget_policies.js +31 -0
- package/dist/schema/budget_policies.js.map +1 -0
- package/dist/schema/budget_resume_claims.d.ts +201 -0
- package/dist/schema/budget_resume_claims.d.ts.map +1 -0
- package/dist/schema/budget_resume_claims.js +28 -0
- package/dist/schema/budget_resume_claims.js.map +1 -0
- package/dist/schema/built_in_managed_resources.d.ts +197 -0
- package/dist/schema/built_in_managed_resources.d.ts.map +1 -0
- package/dist/schema/built_in_managed_resources.js +22 -0
- package/dist/schema/built_in_managed_resources.js.map +1 -0
- package/dist/schema/cases.d.ts +1792 -0
- package/dist/schema/cases.d.ts.map +1 -0
- package/dist/schema/cases.js +197 -0
- package/dist/schema/cases.js.map +1 -0
- package/dist/schema/chat_channels.d.ts +3090 -0
- package/dist/schema/chat_channels.d.ts.map +1 -0
- package/dist/schema/chat_channels.js +651 -0
- package/dist/schema/chat_channels.js.map +1 -0
- package/dist/schema/chat_completion_deliveries.d.ts +308 -0
- package/dist/schema/chat_completion_deliveries.d.ts.map +1 -0
- package/dist/schema/chat_completion_deliveries.js +33 -0
- package/dist/schema/chat_completion_deliveries.js.map +1 -0
- package/dist/schema/chat_discord_command_owners.d.ts +93 -0
- package/dist/schema/chat_discord_command_owners.d.ts.map +1 -0
- package/dist/schema/chat_discord_command_owners.js +19 -0
- package/dist/schema/chat_discord_command_owners.js.map +1 -0
- package/dist/schema/chat_github.d.ts +842 -0
- package/dist/schema/chat_github.d.ts.map +1 -0
- package/dist/schema/chat_github.js +120 -0
- package/dist/schema/chat_github.js.map +1 -0
- package/dist/schema/chat_slack_manager_grants.d.ts +268 -0
- package/dist/schema/chat_slack_manager_grants.d.ts.map +1 -0
- package/dist/schema/chat_slack_manager_grants.js +26 -0
- package/dist/schema/chat_slack_manager_grants.js.map +1 -0
- package/dist/schema/chat_slack_registrations.d.ts +304 -0
- package/dist/schema/chat_slack_registrations.d.ts.map +1 -0
- package/dist/schema/chat_slack_registrations.js +29 -0
- package/dist/schema/chat_slack_registrations.js.map +1 -0
- package/dist/schema/chat_teams_file_transfers.d.ts +639 -0
- package/dist/schema/chat_teams_file_transfers.d.ts.map +1 -0
- package/dist/schema/chat_teams_file_transfers.js +86 -0
- package/dist/schema/chat_teams_file_transfers.js.map +1 -0
- package/dist/schema/chat_telegram_draft_ids.d.ts +2 -0
- package/dist/schema/chat_telegram_draft_ids.d.ts.map +1 -0
- package/dist/schema/chat_telegram_draft_ids.js +14 -0
- package/dist/schema/chat_telegram_draft_ids.js.map +1 -0
- package/dist/schema/chat_voice_callbacks.d.ts +128 -0
- package/dist/schema/chat_voice_callbacks.d.ts.map +1 -0
- package/dist/schema/chat_voice_callbacks.js +18 -0
- package/dist/schema/chat_voice_callbacks.js.map +1 -0
- package/dist/schema/chat_voice_inbound.d.ts +512 -0
- package/dist/schema/chat_voice_inbound.d.ts.map +1 -0
- package/dist/schema/chat_voice_inbound.js +49 -0
- package/dist/schema/chat_voice_inbound.js.map +1 -0
- package/dist/schema/chat_voice_reports.d.ts +184 -0
- package/dist/schema/chat_voice_reports.d.ts.map +1 -0
- package/dist/schema/chat_voice_reports.js +24 -0
- package/dist/schema/chat_voice_reports.js.map +1 -0
- package/dist/schema/chat_voice_sessions.d.ts +730 -0
- package/dist/schema/chat_voice_sessions.d.ts.map +1 -0
- package/dist/schema/chat_voice_sessions.js +87 -0
- package/dist/schema/chat_voice_sessions.js.map +1 -0
- package/dist/schema/cli_auth_challenges.d.ts +263 -0
- package/dist/schema/cli_auth_challenges.d.ts.map +1 -0
- package/dist/schema/cli_auth_challenges.js +26 -0
- package/dist/schema/cli_auth_challenges.js.map +1 -0
- package/dist/schema/companies.d.ts +384 -0
- package/dist/schema/companies.d.ts.map +1 -0
- package/dist/schema/companies.js +43 -0
- package/dist/schema/companies.js.map +1 -0
- package/dist/schema/company_logos.d.ts +93 -0
- package/dist/schema/company_logos.d.ts.map +1 -0
- package/dist/schema/company_logos.js +14 -0
- package/dist/schema/company_logos.js.map +1 -0
- package/dist/schema/company_memberships.d.ts +144 -0
- package/dist/schema/company_memberships.d.ts.map +1 -0
- package/dist/schema/company_memberships.js +17 -0
- package/dist/schema/company_memberships.js.map +1 -0
- package/dist/schema/company_observability.d.ts +209 -0
- package/dist/schema/company_observability.d.ts.map +1 -0
- package/dist/schema/company_observability.js +16 -0
- package/dist/schema/company_observability.js.map +1 -0
- package/dist/schema/company_onboarding_seeds.d.ts +257 -0
- package/dist/schema/company_onboarding_seeds.d.ts.map +1 -0
- package/dist/schema/company_onboarding_seeds.js +35 -0
- package/dist/schema/company_onboarding_seeds.js.map +1 -0
- package/dist/schema/company_secret_bindings.d.ts +229 -0
- package/dist/schema/company_secret_bindings.d.ts.map +1 -0
- package/dist/schema/company_secret_bindings.js +24 -0
- package/dist/schema/company_secret_bindings.js.map +1 -0
- package/dist/schema/company_secret_proposals.d.ts +575 -0
- package/dist/schema/company_secret_proposals.d.ts.map +1 -0
- package/dist/schema/company_secret_proposals.js +71 -0
- package/dist/schema/company_secret_proposals.js.map +1 -0
- package/dist/schema/company_secret_provider_configs.d.ts +284 -0
- package/dist/schema/company_secret_provider_configs.d.ts.map +1 -0
- package/dist/schema/company_secret_provider_configs.js +29 -0
- package/dist/schema/company_secret_provider_configs.js.map +1 -0
- package/dist/schema/company_secret_versions.d.ts +231 -0
- package/dist/schema/company_secret_versions.d.ts.map +1 -0
- package/dist/schema/company_secret_versions.js +24 -0
- package/dist/schema/company_secret_versions.js.map +1 -0
- package/dist/schema/company_secrets.d.ts +469 -0
- package/dist/schema/company_secrets.d.ts.map +1 -0
- package/dist/schema/company_secrets.js +76 -0
- package/dist/schema/company_secrets.js.map +1 -0
- package/dist/schema/company_skill_policies.d.ts +131 -0
- package/dist/schema/company_skill_policies.d.ts.map +1 -0
- package/dist/schema/company_skill_policies.js +12 -0
- package/dist/schema/company_skill_policies.js.map +1 -0
- package/dist/schema/company_skill_sources.d.ts +1168 -0
- package/dist/schema/company_skill_sources.d.ts.map +1 -0
- package/dist/schema/company_skill_sources.js +95 -0
- package/dist/schema/company_skill_sources.js.map +1 -0
- package/dist/schema/company_skills.d.ts +2452 -0
- package/dist/schema/company_skills.d.ts.map +1 -0
- package/dist/schema/company_skills.js +207 -0
- package/dist/schema/company_skills.js.map +1 -0
- package/dist/schema/company_transfer_runs.d.ts +297 -0
- package/dist/schema/company_transfer_runs.d.ts.map +1 -0
- package/dist/schema/company_transfer_runs.js +42 -0
- package/dist/schema/company_transfer_runs.js.map +1 -0
- package/dist/schema/company_user_sidebar_preferences.d.ts +112 -0
- package/dist/schema/company_user_sidebar_preferences.d.ts.map +1 -0
- package/dist/schema/company_user_sidebar_preferences.js +15 -0
- package/dist/schema/company_user_sidebar_preferences.js.map +1 -0
- package/dist/schema/company_workload_identity_keys.d.ts +176 -0
- package/dist/schema/company_workload_identity_keys.d.ts.map +1 -0
- package/dist/schema/company_workload_identity_keys.js +29 -0
- package/dist/schema/company_workload_identity_keys.js.map +1 -0
- package/dist/schema/completion_contracts.d.ts +265 -0
- package/dist/schema/completion_contracts.d.ts.map +1 -0
- package/dist/schema/completion_contracts.js +35 -0
- package/dist/schema/completion_contracts.js.map +1 -0
- package/dist/schema/connection_event_deliveries.d.ts +291 -0
- package/dist/schema/connection_event_deliveries.d.ts.map +1 -0
- package/dist/schema/connection_event_deliveries.js +31 -0
- package/dist/schema/connection_event_deliveries.js.map +1 -0
- package/dist/schema/connection_intent_deliveries.d.ts +94 -0
- package/dist/schema/connection_intent_deliveries.d.ts.map +1 -0
- package/dist/schema/connection_intent_deliveries.js +12 -0
- package/dist/schema/connection_intent_deliveries.js.map +1 -0
- package/dist/schema/controller_instances.d.ts +222 -0
- package/dist/schema/controller_instances.d.ts.map +1 -0
- package/dist/schema/controller_instances.js +31 -0
- package/dist/schema/controller_instances.js.map +1 -0
- package/dist/schema/cost_events.d.ts +488 -0
- package/dist/schema/cost_events.d.ts.map +1 -0
- package/dist/schema/cost_events.js +55 -0
- package/dist/schema/cost_events.js.map +1 -0
- package/dist/schema/decision_models.d.ts +579 -0
- package/dist/schema/decision_models.d.ts.map +1 -0
- package/dist/schema/decision_models.js +50 -0
- package/dist/schema/decision_models.js.map +1 -0
- package/dist/schema/decision_queues.d.ts +1510 -0
- package/dist/schema/decision_queues.d.ts.map +1 -0
- package/dist/schema/decision_queues.js +164 -0
- package/dist/schema/decision_queues.js.map +1 -0
- package/dist/schema/decision_training_examples.d.ts +255 -0
- package/dist/schema/decision_training_examples.d.ts.map +1 -0
- package/dist/schema/decision_training_examples.js +27 -0
- package/dist/schema/decision_training_examples.js.map +1 -0
- package/dist/schema/decisions.d.ts +824 -0
- package/dist/schema/decisions.d.ts.map +1 -0
- package/dist/schema/decisions.js +84 -0
- package/dist/schema/decisions.js.map +1 -0
- package/dist/schema/document_annotation_anchor_snapshots.d.ts +255 -0
- package/dist/schema/document_annotation_anchor_snapshots.d.ts.map +1 -0
- package/dist/schema/document_annotation_anchor_snapshots.js +25 -0
- package/dist/schema/document_annotation_anchor_snapshots.js.map +1 -0
- package/dist/schema/document_annotation_comment_reactions.d.ts +148 -0
- package/dist/schema/document_annotation_comment_reactions.d.ts.map +1 -0
- package/dist/schema/document_annotation_comment_reactions.js +20 -0
- package/dist/schema/document_annotation_comment_reactions.js.map +1 -0
- package/dist/schema/document_annotation_comments.d.ts +285 -0
- package/dist/schema/document_annotation_comments.d.ts.map +1 -0
- package/dist/schema/document_annotation_comments.js +39 -0
- package/dist/schema/document_annotation_comments.js.map +1 -0
- package/dist/schema/document_annotation_threads.d.ts +510 -0
- package/dist/schema/document_annotation_threads.d.ts.map +1 -0
- package/dist/schema/document_annotation_threads.js +52 -0
- package/dist/schema/document_annotation_threads.js.map +1 -0
- package/dist/schema/document_memberships.d.ts +127 -0
- package/dist/schema/document_memberships.d.ts.map +1 -0
- package/dist/schema/document_memberships.js +16 -0
- package/dist/schema/document_memberships.js.map +1 -0
- package/dist/schema/document_revisions.d.ts +212 -0
- package/dist/schema/document_revisions.d.ts.map +1 -0
- package/dist/schema/document_revisions.js +23 -0
- package/dist/schema/document_revisions.js.map +1 -0
- package/dist/schema/documents.d.ts +300 -0
- package/dist/schema/documents.d.ts.map +1 -0
- package/dist/schema/documents.js +28 -0
- package/dist/schema/documents.js.map +1 -0
- package/dist/schema/dot_runner.d.ts +1033 -0
- package/dist/schema/dot_runner.d.ts.map +1 -0
- package/dist/schema/dot_runner.js +85 -0
- package/dist/schema/dot_runner.js.map +1 -0
- package/dist/schema/email.d.ts +550 -0
- package/dist/schema/email.d.ts.map +1 -0
- package/dist/schema/email.js +80 -0
- package/dist/schema/email.js.map +1 -0
- package/dist/schema/environment_custom_image_setup_sessions.d.ts +351 -0
- package/dist/schema/environment_custom_image_setup_sessions.d.ts.map +1 -0
- package/dist/schema/environment_custom_image_setup_sessions.js +39 -0
- package/dist/schema/environment_custom_image_setup_sessions.js.map +1 -0
- package/dist/schema/environment_custom_image_templates.d.ts +284 -0
- package/dist/schema/environment_custom_image_templates.d.ts.map +1 -0
- package/dist/schema/environment_custom_image_templates.js +32 -0
- package/dist/schema/environment_custom_image_templates.js.map +1 -0
- package/dist/schema/environment_leases.d.ts +333 -0
- package/dist/schema/environment_leases.d.ts.map +1 -0
- package/dist/schema/environment_leases.js +54 -0
- package/dist/schema/environment_leases.js.map +1 -0
- package/dist/schema/environments.d.ts +184 -0
- package/dist/schema/environments.d.ts.map +1 -0
- package/dist/schema/environments.js +30 -0
- package/dist/schema/environments.js.map +1 -0
- package/dist/schema/execution_admissions.d.ts +368 -0
- package/dist/schema/execution_admissions.d.ts.map +1 -0
- package/dist/schema/execution_admissions.js +63 -0
- package/dist/schema/execution_admissions.js.map +1 -0
- package/dist/schema/execution_workspace_repositories.d.ts +299 -0
- package/dist/schema/execution_workspace_repositories.d.ts.map +1 -0
- package/dist/schema/execution_workspace_repositories.js +29 -0
- package/dist/schema/execution_workspace_repositories.js.map +1 -0
- package/dist/schema/execution_workspace_repository_access.d.ts +198 -0
- package/dist/schema/execution_workspace_repository_access.d.ts.map +1 -0
- package/dist/schema/execution_workspace_repository_access.js +19 -0
- package/dist/schema/execution_workspace_repository_access.js.map +1 -0
- package/dist/schema/execution_workspace_repository_roots.d.ts +130 -0
- package/dist/schema/execution_workspace_repository_roots.d.ts.map +1 -0
- package/dist/schema/execution_workspace_repository_roots.js +15 -0
- package/dist/schema/execution_workspace_repository_roots.js.map +1 -0
- package/dist/schema/execution_workspace_restore_points.d.ts +318 -0
- package/dist/schema/execution_workspace_restore_points.d.ts.map +1 -0
- package/dist/schema/execution_workspace_restore_points.js +41 -0
- package/dist/schema/execution_workspace_restore_points.js.map +1 -0
- package/dist/schema/execution_workspace_runtime_leases.d.ts +248 -0
- package/dist/schema/execution_workspace_runtime_leases.d.ts.map +1 -0
- package/dist/schema/execution_workspace_runtime_leases.js +35 -0
- package/dist/schema/execution_workspace_runtime_leases.js.map +1 -0
- package/dist/schema/execution_workspace_snapshots.d.ts +355 -0
- package/dist/schema/execution_workspace_snapshots.d.ts.map +1 -0
- package/dist/schema/execution_workspace_snapshots.js +34 -0
- package/dist/schema/execution_workspace_snapshots.js.map +1 -0
- package/dist/schema/execution_workspaces.d.ts +418 -0
- package/dist/schema/execution_workspaces.d.ts.map +1 -0
- package/dist/schema/execution_workspaces.js +39 -0
- package/dist/schema/execution_workspaces.js.map +1 -0
- package/dist/schema/external_object_mentions.d.ts +337 -0
- package/dist/schema/external_object_mentions.d.ts.map +1 -0
- package/dist/schema/external_object_mentions.js +34 -0
- package/dist/schema/external_object_mentions.js.map +1 -0
- package/dist/schema/external_objects.d.ts +543 -0
- package/dist/schema/external_objects.d.ts.map +1 -0
- package/dist/schema/external_objects.js +43 -0
- package/dist/schema/external_objects.js.map +1 -0
- package/dist/schema/fast_responses.d.ts +662 -0
- package/dist/schema/fast_responses.d.ts.map +1 -0
- package/dist/schema/fast_responses.js +67 -0
- package/dist/schema/fast_responses.js.map +1 -0
- package/dist/schema/feedback_exports.d.ts +450 -0
- package/dist/schema/feedback_exports.d.ts.map +1 -0
- package/dist/schema/feedback_exports.js +41 -0
- package/dist/schema/feedback_exports.js.map +1 -0
- package/dist/schema/feedback_votes.d.ts +246 -0
- package/dist/schema/feedback_votes.d.ts.map +1 -0
- package/dist/schema/feedback_votes.js +25 -0
- package/dist/schema/feedback_votes.js.map +1 -0
- package/dist/schema/finance_events.d.ts +503 -0
- package/dist/schema/finance_events.d.ts.map +1 -0
- package/dist/schema/finance_events.js +48 -0
- package/dist/schema/finance_events.js.map +1 -0
- package/dist/schema/folders.d.ts +198 -0
- package/dist/schema/folders.d.ts.map +1 -0
- package/dist/schema/folders.js +29 -0
- package/dist/schema/folders.js.map +1 -0
- package/dist/schema/goals.d.ts +178 -0
- package/dist/schema/goals.d.ts.map +1 -0
- package/dist/schema/goals.js +18 -0
- package/dist/schema/goals.js.map +1 -0
- package/dist/schema/google_pending_revocations.d.ts +284 -0
- package/dist/schema/google_pending_revocations.d.ts.map +1 -0
- package/dist/schema/google_pending_revocations.js +23 -0
- package/dist/schema/google_pending_revocations.js.map +1 -0
- package/dist/schema/grok_bot.d.ts +618 -0
- package/dist/schema/grok_bot.d.ts.map +1 -0
- package/dist/schema/grok_bot.js +55 -0
- package/dist/schema/grok_bot.js.map +1 -0
- package/dist/schema/heartbeat_run_events.d.ts +299 -0
- package/dist/schema/heartbeat_run_events.d.ts.map +1 -0
- package/dist/schema/heartbeat_run_events.js +51 -0
- package/dist/schema/heartbeat_run_events.js.map +1 -0
- package/dist/schema/heartbeat_run_watchdog_decisions.d.ts +195 -0
- package/dist/schema/heartbeat_run_watchdog_decisions.d.ts.map +1 -0
- package/dist/schema/heartbeat_run_watchdog_decisions.js +22 -0
- package/dist/schema/heartbeat_run_watchdog_decisions.js.map +1 -0
- package/dist/schema/heartbeat_runs.d.ts +1419 -0
- package/dist/schema/heartbeat_runs.d.ts.map +1 -0
- package/dist/schema/heartbeat_runs.js +238 -0
- package/dist/schema/heartbeat_runs.js.map +1 -0
- package/dist/schema/inbox_dismissals.d.ts +180 -0
- package/dist/schema/inbox_dismissals.d.ts.map +1 -0
- package/dist/schema/inbox_dismissals.js +22 -0
- package/dist/schema/inbox_dismissals.js.map +1 -0
- package/dist/schema/index.d.ts +204 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +203 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/instance_settings.d.ts +131 -0
- package/dist/schema/instance_settings.d.ts.map +1 -0
- package/dist/schema/instance_settings.js +14 -0
- package/dist/schema/instance_settings.js.map +1 -0
- package/dist/schema/instance_user_roles.d.ts +93 -0
- package/dist/schema/instance_user_roles.d.ts.map +1 -0
- package/dist/schema/instance_user_roles.js +12 -0
- package/dist/schema/instance_user_roles.js.map +1 -0
- package/dist/schema/invites.d.ts +214 -0
- package/dist/schema/invites.d.ts.map +1 -0
- package/dist/schema/invites.js +20 -0
- package/dist/schema/invites.js.map +1 -0
- package/dist/schema/issue_access_grants.d.ts +161 -0
- package/dist/schema/issue_access_grants.d.ts.map +1 -0
- package/dist/schema/issue_access_grants.js +21 -0
- package/dist/schema/issue_access_grants.js.map +1 -0
- package/dist/schema/issue_approvals.d.ts +110 -0
- package/dist/schema/issue_approvals.d.ts.map +1 -0
- package/dist/schema/issue_approvals.js +19 -0
- package/dist/schema/issue_approvals.js.map +1 -0
- package/dist/schema/issue_attachments.d.ts +144 -0
- package/dist/schema/issue_attachments.d.ts.map +1 -0
- package/dist/schema/issue_attachments.js +24 -0
- package/dist/schema/issue_attachments.js.map +1 -0
- package/dist/schema/issue_comments.d.ts +465 -0
- package/dist/schema/issue_comments.d.ts.map +1 -0
- package/dist/schema/issue_comments.js +50 -0
- package/dist/schema/issue_comments.js.map +1 -0
- package/dist/schema/issue_connection_content_deletions.d.ts +279 -0
- package/dist/schema/issue_connection_content_deletions.d.ts.map +1 -0
- package/dist/schema/issue_connection_content_deletions.js +26 -0
- package/dist/schema/issue_connection_content_deletions.js.map +1 -0
- package/dist/schema/issue_create_idempotency_keys.d.ts +93 -0
- package/dist/schema/issue_create_idempotency_keys.d.ts.map +1 -0
- package/dist/schema/issue_create_idempotency_keys.js +15 -0
- package/dist/schema/issue_create_idempotency_keys.js.map +1 -0
- package/dist/schema/issue_documents.d.ts +127 -0
- package/dist/schema/issue_documents.d.ts.map +1 -0
- package/dist/schema/issue_documents.js +18 -0
- package/dist/schema/issue_documents.js.map +1 -0
- package/dist/schema/issue_execution_decisions.d.ts +212 -0
- package/dist/schema/issue_execution_decisions.d.ts.map +1 -0
- package/dist/schema/issue_execution_decisions.js +23 -0
- package/dist/schema/issue_execution_decisions.js.map +1 -0
- package/dist/schema/issue_inbox_archives.d.ts +180 -0
- package/dist/schema/issue_inbox_archives.d.ts.map +1 -0
- package/dist/schema/issue_inbox_archives.js +25 -0
- package/dist/schema/issue_inbox_archives.js.map +1 -0
- package/dist/schema/issue_labels.d.ts +76 -0
- package/dist/schema/issue_labels.d.ts.map +1 -0
- package/dist/schema/issue_labels.js +16 -0
- package/dist/schema/issue_labels.js.map +1 -0
- package/dist/schema/issue_plan_decompositions.d.ts +284 -0
- package/dist/schema/issue_plan_decompositions.d.ts.map +1 -0
- package/dist/schema/issue_plan_decompositions.js +36 -0
- package/dist/schema/issue_plan_decompositions.js.map +1 -0
- package/dist/schema/issue_question_response_deliveries.d.ts +320 -0
- package/dist/schema/issue_question_response_deliveries.d.ts.map +1 -0
- package/dist/schema/issue_question_response_deliveries.js +42 -0
- package/dist/schema/issue_question_response_deliveries.js.map +1 -0
- package/dist/schema/issue_read_states.d.ts +127 -0
- package/dist/schema/issue_read_states.d.ts.map +1 -0
- package/dist/schema/issue_read_states.js +17 -0
- package/dist/schema/issue_read_states.js.map +1 -0
- package/dist/schema/issue_recovery_actions.d.ts +456 -0
- package/dist/schema/issue_recovery_actions.d.ts.map +1 -0
- package/dist/schema/issue_recovery_actions.js +61 -0
- package/dist/schema/issue_recovery_actions.js.map +1 -0
- package/dist/schema/issue_recovery_full_passes.d.ts +147 -0
- package/dist/schema/issue_recovery_full_passes.d.ts.map +1 -0
- package/dist/schema/issue_recovery_full_passes.js +34 -0
- package/dist/schema/issue_recovery_full_passes.js.map +1 -0
- package/dist/schema/issue_reference_mentions.d.ts +180 -0
- package/dist/schema/issue_reference_mentions.d.ts.map +1 -0
- package/dist/schema/issue_reference_mentions.js +23 -0
- package/dist/schema/issue_reference_mentions.js.map +1 -0
- package/dist/schema/issue_relations.d.ts +163 -0
- package/dist/schema/issue_relations.d.ts.map +1 -0
- package/dist/schema/issue_relations.js +21 -0
- package/dist/schema/issue_relations.js.map +1 -0
- package/dist/schema/issue_thread_interaction_idempotency_keys.d.ts +111 -0
- package/dist/schema/issue_thread_interaction_idempotency_keys.d.ts.map +1 -0
- package/dist/schema/issue_thread_interaction_idempotency_keys.js +17 -0
- package/dist/schema/issue_thread_interaction_idempotency_keys.js.map +1 -0
- package/dist/schema/issue_thread_interactions.d.ts +550 -0
- package/dist/schema/issue_thread_interactions.d.ts.map +1 -0
- package/dist/schema/issue_thread_interactions.js +63 -0
- package/dist/schema/issue_thread_interactions.js.map +1 -0
- package/dist/schema/issue_tree_hold_members.d.ts +280 -0
- package/dist/schema/issue_tree_hold_members.d.ts.map +1 -0
- package/dist/schema/issue_tree_hold_members.js +29 -0
- package/dist/schema/issue_tree_hold_members.js.map +1 -0
- package/dist/schema/issue_tree_holds.d.ts +352 -0
- package/dist/schema/issue_tree_holds.d.ts.map +1 -0
- package/dist/schema/issue_tree_holds.js +31 -0
- package/dist/schema/issue_tree_holds.js.map +1 -0
- package/dist/schema/issue_watchdogs.d.ts +382 -0
- package/dist/schema/issue_watchdogs.d.ts.map +1 -0
- package/dist/schema/issue_watchdogs.js +38 -0
- package/dist/schema/issue_watchdogs.js.map +1 -0
- package/dist/schema/issue_work_products.d.ts +370 -0
- package/dist/schema/issue_work_products.d.ts.map +1 -0
- package/dist/schema/issue_work_products.js +38 -0
- package/dist/schema/issue_work_products.js.map +1 -0
- package/dist/schema/issues.d.ts +1221 -0
- package/dist/schema/issues.d.ts.map +1 -0
- package/dist/schema/issues.js +183 -0
- package/dist/schema/issues.js.map +1 -0
- package/dist/schema/join_requests.d.ts +384 -0
- package/dist/schema/join_requests.d.ts.map +1 -0
- package/dist/schema/join_requests.js +41 -0
- package/dist/schema/join_requests.js.map +1 -0
- package/dist/schema/labels.d.ts +110 -0
- package/dist/schema/labels.d.ts.map +1 -0
- package/dist/schema/labels.js +14 -0
- package/dist/schema/labels.js.map +1 -0
- package/dist/schema/link_previews.d.ts +181 -0
- package/dist/schema/link_previews.d.ts.map +1 -0
- package/dist/schema/link_previews.js +19 -0
- package/dist/schema/link_previews.js.map +1 -0
- package/dist/schema/managed_agent_profiles.d.ts +339 -0
- package/dist/schema/managed_agent_profiles.d.ts.map +1 -0
- package/dist/schema/managed_agent_profiles.js +44 -0
- package/dist/schema/managed_agent_profiles.js.map +1 -0
- package/dist/schema/muse_runner.d.ts +2390 -0
- package/dist/schema/muse_runner.d.ts.map +1 -0
- package/dist/schema/muse_runner.js +87 -0
- package/dist/schema/muse_runner.js.map +1 -0
- package/dist/schema/native_harness_backups.d.ts +180 -0
- package/dist/schema/native_harness_backups.d.ts.map +1 -0
- package/dist/schema/native_harness_backups.js +19 -0
- package/dist/schema/native_harness_backups.js.map +1 -0
- package/dist/schema/native_provider_artifacts.d.ts +274 -0
- package/dist/schema/native_provider_artifacts.d.ts.map +1 -0
- package/dist/schema/native_provider_artifacts.js +45 -0
- package/dist/schema/native_provider_artifacts.js.map +1 -0
- package/dist/schema/native_run_finalizations.d.ts +439 -0
- package/dist/schema/native_run_finalizations.d.ts.map +1 -0
- package/dist/schema/native_run_finalizations.js +118 -0
- package/dist/schema/native_run_finalizations.js.map +1 -0
- package/dist/schema/native_run_results.d.ts +248 -0
- package/dist/schema/native_run_results.d.ts.map +1 -0
- package/dist/schema/native_run_results.js +56 -0
- package/dist/schema/native_run_results.js.map +1 -0
- package/dist/schema/native_runner_checkpoints.d.ts +112 -0
- package/dist/schema/native_runner_checkpoints.d.ts.map +1 -0
- package/dist/schema/native_runner_checkpoints.js +17 -0
- package/dist/schema/native_runner_checkpoints.js.map +1 -0
- package/dist/schema/pipeline_case_events.d.ts +231 -0
- package/dist/schema/pipeline_case_events.d.ts.map +1 -0
- package/dist/schema/pipeline_case_events.js +52 -0
- package/dist/schema/pipeline_case_events.js.map +1 -0
- package/dist/schema/pipeline_cases.d.ts +1388 -0
- package/dist/schema/pipeline_cases.d.ts.map +1 -0
- package/dist/schema/pipeline_cases.js +138 -0
- package/dist/schema/pipeline_cases.js.map +1 -0
- package/dist/schema/pipelines.d.ts +500 -0
- package/dist/schema/pipelines.d.ts.map +1 -0
- package/dist/schema/pipelines.js +52 -0
- package/dist/schema/pipelines.js.map +1 -0
- package/dist/schema/plugin_company_settings.d.ts +159 -0
- package/dist/schema/plugin_company_settings.d.ts.map +1 -0
- package/dist/schema/plugin_company_settings.js +35 -0
- package/dist/schema/plugin_company_settings.js.map +1 -0
- package/dist/schema/plugin_config.d.ts +139 -0
- package/dist/schema/plugin_config.d.ts.map +1 -0
- package/dist/schema/plugin_config.js +29 -0
- package/dist/schema/plugin_config.js.map +1 -0
- package/dist/schema/plugin_connector_legacy_access.d.ts +136 -0
- package/dist/schema/plugin_connector_legacy_access.d.ts.map +1 -0
- package/dist/schema/plugin_connector_legacy_access.js +25 -0
- package/dist/schema/plugin_connector_legacy_access.js.map +1 -0
- package/dist/schema/plugin_database.d.ts +357 -0
- package/dist/schema/plugin_database.d.ts.map +1 -0
- package/dist/schema/plugin_database.js +51 -0
- package/dist/schema/plugin_database.js.map +1 -0
- package/dist/schema/plugin_entities.d.ts +230 -0
- package/dist/schema/plugin_entities.d.ts.map +1 -0
- package/dist/schema/plugin_entities.js +52 -0
- package/dist/schema/plugin_entities.js.map +1 -0
- package/dist/schema/plugin_jobs.d.ts +409 -0
- package/dist/schema/plugin_jobs.d.ts.map +1 -0
- package/dist/schema/plugin_jobs.js +87 -0
- package/dist/schema/plugin_jobs.js.map +1 -0
- package/dist/schema/plugin_lifecycle_acknowledgments.d.ts +59 -0
- package/dist/schema/plugin_lifecycle_acknowledgments.d.ts.map +1 -0
- package/dist/schema/plugin_lifecycle_acknowledgments.js +12 -0
- package/dist/schema/plugin_lifecycle_acknowledgments.js.map +1 -0
- package/dist/schema/plugin_lifecycle_resource_cursors.d.ts +118 -0
- package/dist/schema/plugin_lifecycle_resource_cursors.d.ts.map +1 -0
- package/dist/schema/plugin_lifecycle_resource_cursors.js +20 -0
- package/dist/schema/plugin_lifecycle_resource_cursors.js.map +1 -0
- package/dist/schema/plugin_logs.d.ts +142 -0
- package/dist/schema/plugin_logs.d.ts.map +1 -0
- package/dist/schema/plugin_logs.js +33 -0
- package/dist/schema/plugin_logs.js.map +1 -0
- package/dist/schema/plugin_managed_resources.d.ts +180 -0
- package/dist/schema/plugin_managed_resources.d.ts.map +1 -0
- package/dist/schema/plugin_managed_resources.js +25 -0
- package/dist/schema/plugin_managed_resources.js.map +1 -0
- package/dist/schema/plugin_state.d.ts +169 -0
- package/dist/schema/plugin_state.d.ts.map +1 -0
- package/dist/schema/plugin_state.js +68 -0
- package/dist/schema/plugin_state.js.map +1 -0
- package/dist/schema/plugin_webhooks.d.ts +256 -0
- package/dist/schema/plugin_webhooks.d.ts.map +1 -0
- package/dist/schema/plugin_webhooks.js +56 -0
- package/dist/schema/plugin_webhooks.js.map +1 -0
- package/dist/schema/plugins.d.ts +246 -0
- package/dist/schema/plugins.d.ts.map +1 -0
- package/dist/schema/plugins.js +31 -0
- package/dist/schema/plugins.js.map +1 -0
- package/dist/schema/principal_permission_grants.d.ts +163 -0
- package/dist/schema/principal_permission_grants.d.ts.map +1 -0
- package/dist/schema/principal_permission_grants.js +17 -0
- package/dist/schema/principal_permission_grants.js.map +1 -0
- package/dist/schema/project_access_members.d.ts +111 -0
- package/dist/schema/project_access_members.d.ts.map +1 -0
- package/dist/schema/project_access_members.js +18 -0
- package/dist/schema/project_access_members.js.map +1 -0
- package/dist/schema/project_goals.d.ts +93 -0
- package/dist/schema/project_goals.d.ts.map +1 -0
- package/dist/schema/project_goals.js +17 -0
- package/dist/schema/project_goals.js.map +1 -0
- package/dist/schema/project_memberships.d.ts +144 -0
- package/dist/schema/project_memberships.d.ts.map +1 -0
- package/dist/schema/project_memberships.js +19 -0
- package/dist/schema/project_memberships.js.map +1 -0
- package/dist/schema/project_workspaces.d.ts +333 -0
- package/dist/schema/project_workspaces.d.ts.map +1 -0
- package/dist/schema/project_workspaces.js +32 -0
- package/dist/schema/project_workspaces.js.map +1 -0
- package/dist/schema/projects.d.ts +421 -0
- package/dist/schema/projects.d.ts.map +1 -0
- package/dist/schema/projects.js +44 -0
- package/dist/schema/projects.js.map +1 -0
- package/dist/schema/prompt_injection_prevention.d.ts +596 -0
- package/dist/schema/prompt_injection_prevention.d.ts.map +1 -0
- package/dist/schema/prompt_injection_prevention.js +51 -0
- package/dist/schema/prompt_injection_prevention.js.map +1 -0
- package/dist/schema/provider_trace_records.d.ts +264 -0
- package/dist/schema/provider_trace_records.d.ts.map +1 -0
- package/dist/schema/provider_trace_records.js +34 -0
- package/dist/schema/provider_trace_records.js.map +1 -0
- package/dist/schema/public_mcp.d.ts +2468 -0
- package/dist/schema/public_mcp.d.ts.map +1 -0
- package/dist/schema/public_mcp.js +217 -0
- package/dist/schema/public_mcp.js.map +1 -0
- package/dist/schema/remote_agent_profiles.d.ts +238 -0
- package/dist/schema/remote_agent_profiles.d.ts.map +1 -0
- package/dist/schema/remote_agent_profiles.js +31 -0
- package/dist/schema/remote_agent_profiles.js.map +1 -0
- package/dist/schema/resource_lifecycle_events.d.ts +115 -0
- package/dist/schema/resource_lifecycle_events.d.ts.map +1 -0
- package/dist/schema/resource_lifecycle_events.js +19 -0
- package/dist/schema/resource_lifecycle_events.js.map +1 -0
- package/dist/schema/responsibilities.d.ts +818 -0
- package/dist/schema/responsibilities.d.ts.map +1 -0
- package/dist/schema/responsibilities.js +127 -0
- package/dist/schema/responsibilities.js.map +1 -0
- package/dist/schema/responsibility_dashboard_versions.d.ts +256 -0
- package/dist/schema/responsibility_dashboard_versions.d.ts.map +1 -0
- package/dist/schema/responsibility_dashboard_versions.js +45 -0
- package/dist/schema/responsibility_dashboard_versions.js.map +1 -0
- package/dist/schema/responsibility_reporting.d.ts +595 -0
- package/dist/schema/responsibility_reporting.d.ts.map +1 -0
- package/dist/schema/responsibility_reporting.js +77 -0
- package/dist/schema/responsibility_reporting.js.map +1 -0
- package/dist/schema/responsibility_summary_invocations.d.ts +389 -0
- package/dist/schema/responsibility_summary_invocations.d.ts.map +1 -0
- package/dist/schema/responsibility_summary_invocations.js +45 -0
- package/dist/schema/responsibility_summary_invocations.js.map +1 -0
- package/dist/schema/routine_documents.d.ts +127 -0
- package/dist/schema/routine_documents.d.ts.map +1 -0
- package/dist/schema/routine_documents.js +18 -0
- package/dist/schema/routine_documents.js.map +1 -0
- package/dist/schema/routines.d.ts +1628 -0
- package/dist/schema/routines.d.ts.map +1 -0
- package/dist/schema/routines.js +141 -0
- package/dist/schema/routines.js.map +1 -0
- package/dist/schema/run_identity_contexts.d.ts +248 -0
- package/dist/schema/run_identity_contexts.d.ts.map +1 -0
- package/dist/schema/run_identity_contexts.js +29 -0
- package/dist/schema/run_identity_contexts.js.map +1 -0
- package/dist/schema/runner_api_response_reservations.d.ts +127 -0
- package/dist/schema/runner_api_response_reservations.d.ts.map +1 -0
- package/dist/schema/runner_api_response_reservations.js +17 -0
- package/dist/schema/runner_api_response_reservations.js.map +1 -0
- package/dist/schema/sandbox_creation_operations.d.ts +318 -0
- package/dist/schema/sandbox_creation_operations.d.ts.map +1 -0
- package/dist/schema/sandbox_creation_operations.js +30 -0
- package/dist/schema/sandbox_creation_operations.js.map +1 -0
- package/dist/schema/secret_access_events.d.ts +382 -0
- package/dist/schema/secret_access_events.d.ts.map +1 -0
- package/dist/schema/secret_access_events.js +39 -0
- package/dist/schema/secret_access_events.js.map +1 -0
- package/dist/schema/smoke_lab.d.ts +367 -0
- package/dist/schema/smoke_lab.d.ts.map +1 -0
- package/dist/schema/smoke_lab.js +33 -0
- package/dist/schema/smoke_lab.js.map +1 -0
- package/dist/schema/status_cards.d.ts +970 -0
- package/dist/schema/status_cards.d.ts.map +1 -0
- package/dist/schema/status_cards.js +73 -0
- package/dist/schema/status_cards.js.map +1 -0
- package/dist/schema/status_decision_effects.d.ts +299 -0
- package/dist/schema/status_decision_effects.d.ts.map +1 -0
- package/dist/schema/status_decision_effects.js +41 -0
- package/dist/schema/status_decision_effects.js.map +1 -0
- package/dist/schema/status_decisions.d.ts +282 -0
- package/dist/schema/status_decisions.d.ts.map +1 -0
- package/dist/schema/status_decisions.js +49 -0
- package/dist/schema/status_decisions.js.map +1 -0
- package/dist/schema/stored_object_deletions.d.ts +163 -0
- package/dist/schema/stored_object_deletions.d.ts.map +1 -0
- package/dist/schema/stored_object_deletions.js +16 -0
- package/dist/schema/stored_object_deletions.js.map +1 -0
- package/dist/schema/summary_slots.d.ts +252 -0
- package/dist/schema/summary_slots.d.ts.map +1 -0
- package/dist/schema/summary_slots.js +32 -0
- package/dist/schema/summary_slots.js.map +1 -0
- package/dist/schema/tailscale_connections.d.ts +212 -0
- package/dist/schema/tailscale_connections.d.ts.map +1 -0
- package/dist/schema/tailscale_connections.js +21 -0
- package/dist/schema/tailscale_connections.js.map +1 -0
- package/dist/schema/tool_access.d.ts +10455 -0
- package/dist/schema/tool_access.d.ts.map +1 -0
- package/dist/schema/tool_access.js +957 -0
- package/dist/schema/tool_access.js.map +1 -0
- package/dist/schema/tool_action_deliveries.d.ts +111 -0
- package/dist/schema/tool_action_deliveries.d.ts.map +1 -0
- package/dist/schema/tool_action_deliveries.js +27 -0
- package/dist/schema/tool_action_deliveries.js.map +1 -0
- package/dist/schema/tool_connection_app_snapshots.d.ts +184 -0
- package/dist/schema/tool_connection_app_snapshots.d.ts.map +1 -0
- package/dist/schema/tool_connection_app_snapshots.js +20 -0
- package/dist/schema/tool_connection_app_snapshots.js.map +1 -0
- package/dist/schema/tool_connection_app_syncs.d.ts +215 -0
- package/dist/schema/tool_connection_app_syncs.d.ts.map +1 -0
- package/dist/schema/tool_connection_app_syncs.js +22 -0
- package/dist/schema/tool_connection_app_syncs.js.map +1 -0
- package/dist/schema/tool_connection_content_deletions.d.ts +270 -0
- package/dist/schema/tool_connection_content_deletions.d.ts.map +1 -0
- package/dist/schema/tool_connection_content_deletions.js +30 -0
- package/dist/schema/tool_connection_content_deletions.js.map +1 -0
- package/dist/schema/user_company_preferences.d.ts +127 -0
- package/dist/schema/user_company_preferences.d.ts.map +1 -0
- package/dist/schema/user_company_preferences.js +16 -0
- package/dist/schema/user_company_preferences.js.map +1 -0
- package/dist/schema/user_inbox_agent_policies.d.ts +131 -0
- package/dist/schema/user_inbox_agent_policies.d.ts.map +1 -0
- package/dist/schema/user_inbox_agent_policies.js +17 -0
- package/dist/schema/user_inbox_agent_policies.js.map +1 -0
- package/dist/schema/user_secret_declarations.d.ts +229 -0
- package/dist/schema/user_secret_declarations.d.ts.map +1 -0
- package/dist/schema/user_secret_declarations.js +31 -0
- package/dist/schema/user_secret_declarations.js.map +1 -0
- package/dist/schema/user_secret_definitions.d.ts +316 -0
- package/dist/schema/user_secret_definitions.d.ts.map +1 -0
- package/dist/schema/user_secret_definitions.js +33 -0
- package/dist/schema/user_secret_definitions.js.map +1 -0
- package/dist/schema/user_sidebar_preferences.d.ts +95 -0
- package/dist/schema/user_sidebar_preferences.d.ts.map +1 -0
- package/dist/schema/user_sidebar_preferences.js +11 -0
- package/dist/schema/user_sidebar_preferences.js.map +1 -0
- package/dist/schema/user_workspace_preferences.d.ts +129 -0
- package/dist/schema/user_workspace_preferences.d.ts.map +1 -0
- package/dist/schema/user_workspace_preferences.js +16 -0
- package/dist/schema/user_workspace_preferences.js.map +1 -0
- package/dist/schema/work_assessments.d.ts +333 -0
- package/dist/schema/work_assessments.d.ts.map +1 -0
- package/dist/schema/work_assessments.js +67 -0
- package/dist/schema/work_assessments.js.map +1 -0
- package/dist/schema/workflows.d.ts +144 -0
- package/dist/schema/workflows.d.ts.map +1 -0
- package/dist/schema/workflows.js +14 -0
- package/dist/schema/workflows.js.map +1 -0
- package/dist/schema/workspace_operations.d.ts +384 -0
- package/dist/schema/workspace_operations.d.ts.map +1 -0
- package/dist/schema/workspace_operations.js +40 -0
- package/dist/schema/workspace_operations.js.map +1 -0
- package/dist/schema/workspace_runtime_services.d.ts +523 -0
- package/dist/schema/workspace_runtime_services.d.ts.map +1 -0
- package/dist/schema/workspace_runtime_services.js +53 -0
- package/dist/schema/workspace_runtime_services.js.map +1 -0
- package/dist/statement-count.d.ts +4 -0
- package/dist/statement-count.d.ts.map +1 -0
- package/dist/statement-count.js +10 -0
- package/dist/statement-count.js.map +1 -0
- package/dist/summary-slots-schema.test.d.ts +2 -0
- package/dist/summary-slots-schema.test.d.ts.map +1 -0
- package/dist/summary-slots-schema.test.js +62 -0
- package/dist/summary-slots-schema.test.js.map +1 -0
- package/dist/table-size-estimates.d.ts +366 -0
- package/dist/table-size-estimates.d.ts.map +1 -0
- package/dist/table-size-estimates.js +153 -0
- package/dist/table-size-estimates.js.map +1 -0
- package/dist/test-embedded-postgres.d.ts +49 -0
- package/dist/test-embedded-postgres.d.ts.map +1 -0
- package/dist/test-embedded-postgres.js +636 -0
- package/dist/test-embedded-postgres.js.map +1 -0
- package/dist/test-embedded-postgres.test.d.ts +2 -0
- package/dist/test-embedded-postgres.test.d.ts.map +1 -0
- package/dist/test-embedded-postgres.test.js +536 -0
- package/dist/test-embedded-postgres.test.js.map +1 -0
- package/dist/test-postgres-admin.d.ts +8 -0
- package/dist/test-postgres-admin.d.ts.map +1 -0
- package/dist/test-postgres-admin.js +68 -0
- package/dist/test-postgres-admin.js.map +1 -0
- package/dist/test-postgres-admin.test.d.ts +2 -0
- package/dist/test-postgres-admin.test.d.ts.map +1 -0
- package/dist/test-postgres-admin.test.js +104 -0
- package/dist/test-postgres-admin.test.js.map +1 -0
- package/dist/test-postgres-command.d.ts +2 -0
- package/dist/test-postgres-command.d.ts.map +1 -0
- package/dist/test-postgres-command.js +67 -0
- package/dist/test-postgres-command.js.map +1 -0
- package/dist/test-postgres-command.test.d.ts +2 -0
- package/dist/test-postgres-command.test.d.ts.map +1 -0
- package/dist/test-postgres-command.test.js +64 -0
- package/dist/test-postgres-command.test.js.map +1 -0
- package/dist/test-postgres-owner-process.test.d.ts +2 -0
- package/dist/test-postgres-owner-process.test.d.ts.map +1 -0
- package/dist/test-postgres-owner-process.test.js +69 -0
- package/dist/test-postgres-owner-process.test.js.map +1 -0
- package/dist/test-postgres-owner.d.ts +21 -0
- package/dist/test-postgres-owner.d.ts.map +1 -0
- package/dist/test-postgres-owner.js +207 -0
- package/dist/test-postgres-owner.js.map +1 -0
- package/dist/test-postgres-owner.test.d.ts +2 -0
- package/dist/test-postgres-owner.test.d.ts.map +1 -0
- package/dist/test-postgres-owner.test.js +97 -0
- package/dist/test-postgres-owner.test.js.map +1 -0
- package/dist/test-process-tree.d.ts +6 -0
- package/dist/test-process-tree.d.ts.map +1 -0
- package/dist/test-process-tree.js +83 -0
- package/dist/test-process-tree.js.map +1 -0
- package/dist/work-signal-debug.d.ts +29 -0
- package/dist/work-signal-debug.d.ts.map +1 -0
- package/dist/work-signal-debug.js +130 -0
- package/dist/work-signal-debug.js.map +1 -0
- package/dist/work-signal-debug.test.d.ts +2 -0
- package/dist/work-signal-debug.test.d.ts.map +1 -0
- package/dist/work-signal-debug.test.js +181 -0
- package/dist/work-signal-debug.test.js.map +1 -0
- package/dist/work-signals.d.ts +46 -0
- package/dist/work-signals.d.ts.map +1 -0
- package/dist/work-signals.js +322 -0
- package/dist/work-signals.js.map +1 -0
- package/dist/work-signals.test.d.ts +2 -0
- package/dist/work-signals.test.d.ts.map +1 -0
- package/dist/work-signals.test.js +636 -0
- package/dist/work-signals.test.js.map +1 -0
- package/node_modules/async-exit-hook/index.js +171 -0
- package/node_modules/async-exit-hook/license +21 -0
- package/node_modules/async-exit-hook/package.json +66 -0
- package/node_modules/async-exit-hook/readme.md +118 -0
- package/node_modules/embedded-postgres/LICENSE.md +9 -0
- package/node_modules/embedded-postgres/README.md +191 -0
- package/node_modules/embedded-postgres/dist/binary.d.ts +7 -0
- package/node_modules/embedded-postgres/dist/binary.js +41 -0
- package/node_modules/embedded-postgres/dist/index.d.ts +58 -0
- package/node_modules/embedded-postgres/dist/index.js +366 -0
- package/node_modules/embedded-postgres/dist/types.d.ts +54 -0
- package/node_modules/embedded-postgres/dist/types.js +1 -0
- package/node_modules/embedded-postgres/package.json +59 -0
- package/node_modules/pg/LICENSE +21 -0
- package/node_modules/pg/README.md +96 -0
- package/node_modules/pg/esm/index.mjs +20 -0
- package/node_modules/pg/lib/client.js +846 -0
- package/node_modules/pg/lib/connection-parameters.js +184 -0
- package/node_modules/pg/lib/connection.js +250 -0
- package/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/node_modules/pg/lib/crypto/sasl.js +262 -0
- package/node_modules/pg/lib/crypto/utils.js +89 -0
- package/node_modules/pg/lib/defaults.js +94 -0
- package/node_modules/pg/lib/index.js +73 -0
- package/node_modules/pg/lib/native/client.js +428 -0
- package/node_modules/pg/lib/native/index.js +2 -0
- package/node_modules/pg/lib/native/query.js +167 -0
- package/node_modules/pg/lib/query.js +263 -0
- package/node_modules/pg/lib/result.js +109 -0
- package/node_modules/pg/lib/stream.js +83 -0
- package/node_modules/pg/lib/type-overrides.js +35 -0
- package/node_modules/pg/lib/utils.js +225 -0
- package/node_modules/pg/package.json +76 -0
- package/node_modules/pg-cloudflare/LICENSE +21 -0
- package/node_modules/pg-cloudflare/README.md +112 -0
- package/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/node_modules/pg-cloudflare/dist/index.d.ts +29 -0
- package/node_modules/pg-cloudflare/dist/index.js +171 -0
- package/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/node_modules/pg-cloudflare/package.json +39 -0
- package/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/node_modules/pg-cloudflare/src/index.ts +187 -0
- package/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/node_modules/pg-connection-string/LICENSE +21 -0
- package/node_modules/pg-connection-string/README.md +105 -0
- package/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/node_modules/pg-connection-string/index.d.ts +37 -0
- package/node_modules/pg-connection-string/index.js +237 -0
- package/node_modules/pg-connection-string/package.json +51 -0
- package/node_modules/pg-int8/LICENSE +13 -0
- package/node_modules/pg-int8/README.md +16 -0
- package/node_modules/pg-int8/index.js +100 -0
- package/node_modules/pg-int8/package.json +24 -0
- package/node_modules/pg-pool/LICENSE +21 -0
- package/node_modules/pg-pool/README.md +357 -0
- package/node_modules/pg-pool/esm/index.mjs +5 -0
- package/node_modules/pg-pool/index.js +517 -0
- package/node_modules/pg-pool/package.json +51 -0
- package/node_modules/pg-protocol/LICENSE +21 -0
- package/node_modules/pg-protocol/README.md +3 -0
- package/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/node_modules/pg-protocol/dist/b.js +23 -0
- package/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/node_modules/pg-protocol/dist/buffer-reader.d.ts +14 -0
- package/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/node_modules/pg-protocol/dist/buffer-writer.d.ts +21 -0
- package/node_modules/pg-protocol/dist/buffer-writer.js +113 -0
- package/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/node_modules/pg-protocol/dist/inbound-parser.test.js +538 -0
- package/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/node_modules/pg-protocol/dist/index.d.ts +5 -0
- package/node_modules/pg-protocol/dist/index.js +15 -0
- package/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/node_modules/pg-protocol/dist/messages.d.ts +161 -0
- package/node_modules/pg-protocol/dist/messages.js +160 -0
- package/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/node_modules/pg-protocol/dist/outbound-serializer.test.js +325 -0
- package/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/node_modules/pg-protocol/dist/parser.d.ts +22 -0
- package/node_modules/pg-protocol/dist/parser.js +325 -0
- package/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/node_modules/pg-protocol/dist/serializer.js +198 -0
- package/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/node_modules/pg-protocol/esm/index.js +11 -0
- package/node_modules/pg-protocol/package.json +44 -0
- package/node_modules/pg-protocol/src/b.ts +25 -0
- package/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/node_modules/pg-protocol/src/buffer-writer.ts +120 -0
- package/node_modules/pg-protocol/src/inbound-parser.test.ts +585 -0
- package/node_modules/pg-protocol/src/index.ts +11 -0
- package/node_modules/pg-protocol/src/messages.ts +262 -0
- package/node_modules/pg-protocol/src/outbound-serializer.test.ts +356 -0
- package/node_modules/pg-protocol/src/parser.ts +414 -0
- package/node_modules/pg-protocol/src/serializer.ts +286 -0
- package/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/node_modules/pg-types/.travis.yml +7 -0
- package/node_modules/pg-types/Makefile +14 -0
- package/node_modules/pg-types/README.md +75 -0
- package/node_modules/pg-types/index.d.ts +137 -0
- package/node_modules/pg-types/index.js +47 -0
- package/node_modules/pg-types/index.test-d.ts +21 -0
- package/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/node_modules/pg-types/lib/builtins.js +73 -0
- package/node_modules/pg-types/lib/textParsers.js +215 -0
- package/node_modules/pg-types/package.json +42 -0
- package/node_modules/pg-types/test/index.js +24 -0
- package/node_modules/pg-types/test/types.js +597 -0
- package/node_modules/pgpass/README.md +74 -0
- package/node_modules/pgpass/lib/helper.js +233 -0
- package/node_modules/pgpass/lib/index.js +23 -0
- package/node_modules/pgpass/package.json +41 -0
- package/node_modules/postgres-array/index.d.ts +4 -0
- package/node_modules/postgres-array/index.js +97 -0
- package/node_modules/postgres-array/license +21 -0
- package/node_modules/postgres-array/package.json +35 -0
- package/node_modules/postgres-array/readme.md +43 -0
- package/node_modules/postgres-bytea/index.js +33 -0
- package/node_modules/postgres-bytea/license +21 -0
- package/node_modules/postgres-bytea/package.json +34 -0
- package/node_modules/postgres-bytea/readme.md +34 -0
- package/node_modules/postgres-date/index.js +116 -0
- package/node_modules/postgres-date/license +21 -0
- package/node_modules/postgres-date/package.json +33 -0
- package/node_modules/postgres-date/readme.md +49 -0
- package/node_modules/postgres-interval/index.d.ts +20 -0
- package/node_modules/postgres-interval/index.js +125 -0
- package/node_modules/postgres-interval/license +21 -0
- package/node_modules/postgres-interval/package.json +36 -0
- package/node_modules/postgres-interval/readme.md +48 -0
- package/node_modules/split2/LICENSE +13 -0
- package/node_modules/split2/README.md +85 -0
- package/node_modules/split2/bench.js +27 -0
- package/node_modules/split2/index.js +141 -0
- package/node_modules/split2/package.json +39 -0
- package/node_modules/split2/test.js +409 -0
- package/node_modules/xtend/.jshintrc +30 -0
- package/node_modules/xtend/LICENSE +20 -0
- package/node_modules/xtend/README.md +32 -0
- package/node_modules/xtend/immutable.js +19 -0
- package/node_modules/xtend/mutable.js +17 -0
- package/node_modules/xtend/package.json +55 -0
- package/node_modules/xtend/test.js +103 -0
- package/package.json +60 -4
- package/README.md +0 -3
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { appendFileSync } from "node:fs";
|
|
2
|
+
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
3
|
+
import { captureWorkSignalStack, createWorkSignalDebug, parseWorkSignalDebugSpec, trimWorkSignalStack, workSignalDebug } from "./work-signal-debug.js";
|
|
4
|
+
const SOURCE_STACK = [
|
|
5
|
+
"Error",
|
|
6
|
+
" at notifyDeliveryWork (/app/server/src/services/delivery-work-notifications.ts:169:3)",
|
|
7
|
+
" at notifyIssueGraphRecovery (/app/server/src/services/issue-recovery-notifications.ts:44:5)",
|
|
8
|
+
" at process.processTicksAndRejections (node:internal/process/task_queues:104:5)",
|
|
9
|
+
" at someLibrary (/app/node_modules/postgres/src/index.js:1:1)",
|
|
10
|
+
" at writer (/app/server/src/services/writer.ts:12:7)",
|
|
11
|
+
].join("\n");
|
|
12
|
+
const BUNDLE = "file:///app/server/dist-runtime/index.mjs";
|
|
13
|
+
const BUNDLED_STACK = [
|
|
14
|
+
"Error",
|
|
15
|
+
` at notifyDeliveryWork (${BUNDLE}:91234:9)`,
|
|
16
|
+
` at notifyIssueGraphRecovery (${BUNDLE}:120456:11)`,
|
|
17
|
+
` at async notifyRunDispatch (${BUNDLE}:120501:3)`,
|
|
18
|
+
` at async PostgresJsDatabase.connection.transaction [as transaction] (${BUNDLE}:4021:22)`,
|
|
19
|
+
` at async Object.settleRunProjection (${BUNDLE}:300777:5)`,
|
|
20
|
+
` at async ${BUNDLE}:310002:17`,
|
|
21
|
+
" at process.processTicksAndRejections (node:internal/process/task_queues:104:5)",
|
|
22
|
+
].join("\n");
|
|
23
|
+
function harness(spec, options = {}) {
|
|
24
|
+
let clock = 1_000_000;
|
|
25
|
+
const lines = [];
|
|
26
|
+
const sink = vi.fn((text) => { lines.push(...text.trim().split("\n")); });
|
|
27
|
+
const captureStack = vi.fn((_entry) => options.stack ?? SOURCE_STACK);
|
|
28
|
+
const debug = createWorkSignalDebug({ spec, sink, captureStack, now: () => clock, flushIntervalMs: 0, ...options });
|
|
29
|
+
return { debug, sink, captureStack, lines, entries: () => lines.map(line => JSON.parse(line)),
|
|
30
|
+
advance: (ms) => { clock += ms; } };
|
|
31
|
+
}
|
|
32
|
+
afterEach(() => { vi.restoreAllMocks(); });
|
|
33
|
+
describe("work signal debug attribution", () => {
|
|
34
|
+
it("is a strict no-op when the flag is unset or empty", () => {
|
|
35
|
+
for (const spec of [undefined, "", " , "]) {
|
|
36
|
+
const { debug, sink, captureStack } = harness(spec);
|
|
37
|
+
const errors = vi.spyOn(globalThis, "Error");
|
|
38
|
+
const capture = vi.spyOn(Error, "captureStackTrace");
|
|
39
|
+
expect(debug.enabled).toBe(false);
|
|
40
|
+
for (let index = 0; index < 50; index++) {
|
|
41
|
+
debug.signal("stranded-assignments", "{\"companyId\":\"c\"}");
|
|
42
|
+
debug.event("stranded-assignments", "direct_wake", { queues: "a" }, "always");
|
|
43
|
+
}
|
|
44
|
+
debug.flush();
|
|
45
|
+
expect(captureStack).not.toHaveBeenCalled();
|
|
46
|
+
expect(errors).not.toHaveBeenCalled();
|
|
47
|
+
expect(capture).not.toHaveBeenCalled();
|
|
48
|
+
expect(sink).not.toHaveBeenCalled();
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
it("leaves the process-wide instance disabled when the environment does not set it", () => {
|
|
52
|
+
expect(process.env.PAPERCLIP_DEBUG_WORK_SIGNALS ?? "").toBe("");
|
|
53
|
+
expect(workSignalDebug.enabled).toBe(false);
|
|
54
|
+
});
|
|
55
|
+
it("logs only allowlisted topics", () => {
|
|
56
|
+
const { debug, entries } = harness("stranded-assignments,run-dispatch:5");
|
|
57
|
+
debug.signal("stranded-assignments", "{\"companyId\":\"c\",\"graphRunId\":\"r\"}");
|
|
58
|
+
debug.signal("issue-monitors", "{\"companyId\":\"c\"}");
|
|
59
|
+
debug.event("run-dispatch", "load", { scope: "*" });
|
|
60
|
+
debug.event("orphan-blockers", "load", { scope: "*" });
|
|
61
|
+
debug.flush();
|
|
62
|
+
expect(entries().map(entry => [entry.event, entry.topic])).toEqual([
|
|
63
|
+
["signal", "stranded-assignments"], ["load", "run-dispatch"]
|
|
64
|
+
]);
|
|
65
|
+
expect(entries()[0].hint).toBe("{\"companyId\":\"c\",\"graphRunId\":\"r\"}");
|
|
66
|
+
expect(debug.allows("run-dispatch")).toBe(true);
|
|
67
|
+
expect(debug.allows("orphan-blockers")).toBe(false);
|
|
68
|
+
});
|
|
69
|
+
it("parses per-topic sampling and ignores malformed entries", () => {
|
|
70
|
+
expect([...parseWorkSignalDebugSpec("stranded-assignments:3, run-dispatch,bad topic!, :4,x:0,live:7f3e-11,live:7f3e-12:4")])
|
|
71
|
+
.toEqual([["stranded-assignments", 3], ["run-dispatch", 20], ["x", 20], ["live:7f3e-11", 20], ["live:7f3e-12", 4]]);
|
|
72
|
+
const { debug, entries } = harness("live:7f3e-11");
|
|
73
|
+
debug.event("live:7f3e-11", "remote_notification");
|
|
74
|
+
debug.flush();
|
|
75
|
+
expect(entries()).toEqual([expect.objectContaining({ topic: "live:7f3e-11", event: "remote_notification" })]);
|
|
76
|
+
});
|
|
77
|
+
it("samples stacks one in N per topic and event, independent of other events", () => {
|
|
78
|
+
const { debug, entries, captureStack } = harness("stranded-assignments:3");
|
|
79
|
+
for (let index = 0; index < 7; index++) {
|
|
80
|
+
debug.signal("stranded-assignments", undefined);
|
|
81
|
+
debug.event("stranded-assignments", "check", { issueId: `i${index}` }, "sampled");
|
|
82
|
+
debug.event("stranded-assignments", "load", { scope: "*" }, "sampled");
|
|
83
|
+
}
|
|
84
|
+
debug.flush();
|
|
85
|
+
const signals = entries().filter(entry => entry.event === "signal");
|
|
86
|
+
expect(signals.map(entry => Boolean(entry.stack))).toEqual([true, false, false, true, false, false, true]);
|
|
87
|
+
expect(captureStack).toHaveBeenCalledTimes(9);
|
|
88
|
+
});
|
|
89
|
+
it("captures an always-on stack for direct wakes on every call", () => {
|
|
90
|
+
const { debug, entries, captureStack } = harness("stranded-assignments:20");
|
|
91
|
+
for (let index = 0; index < 3; index++)
|
|
92
|
+
debug.event("stranded-assignments", "direct_wake", { queues: "a,b" }, "always");
|
|
93
|
+
debug.flush();
|
|
94
|
+
expect(captureStack).toHaveBeenCalledTimes(3);
|
|
95
|
+
expect(entries().every(entry => Array.isArray(entry.stack) && entry.queues === "a,b")).toBe(true);
|
|
96
|
+
});
|
|
97
|
+
it("trims a source-tree stack by file and by function name", () => {
|
|
98
|
+
expect(trimWorkSignalStack(SOURCE_STACK)).toEqual([
|
|
99
|
+
"at notifyIssueGraphRecovery (/app/server/src/services/issue-recovery-notifications.ts:44:5)",
|
|
100
|
+
"at writer (/app/server/src/services/writer.ts:12:7)",
|
|
101
|
+
]);
|
|
102
|
+
const deep = ["Error", ...Array.from({ length: 30 }, (_, index) => ` at f${index} (/app/server/src/f.ts:${index}:1)`)].join("\n");
|
|
103
|
+
expect(trimWorkSignalStack(deep)).toHaveLength(10);
|
|
104
|
+
});
|
|
105
|
+
it("keeps raw bundle positions and drops wrappers by function name when every frame is in one bundled file", () => {
|
|
106
|
+
const { debug, entries } = harness("stranded-assignments:1", { stack: BUNDLED_STACK });
|
|
107
|
+
debug.signal("stranded-assignments", "{\"companyId\":\"c\",\"graphRunId\":\"r\"}");
|
|
108
|
+
debug.event("stranded-assignments", "check", { issueId: "i", companyId: "c", wake: "load", dueAt: 1 });
|
|
109
|
+
debug.event("stranded-assignments", "direct_wake", { queues: "stranded-assignments,orphan-blockers" }, "always");
|
|
110
|
+
debug.flush();
|
|
111
|
+
expect(entries()[0].stack).toEqual([
|
|
112
|
+
`at notifyIssueGraphRecovery (${BUNDLE}:120456:11)`,
|
|
113
|
+
`at async notifyRunDispatch (${BUNDLE}:120501:3)`,
|
|
114
|
+
`at async PostgresJsDatabase.connection.transaction [as transaction] (${BUNDLE}:4021:22)`,
|
|
115
|
+
`at async Object.settleRunProjection (${BUNDLE}:300777:5)`,
|
|
116
|
+
`at async ${BUNDLE}:310002:17`,
|
|
117
|
+
]);
|
|
118
|
+
if (process.env.WORK_SIGNAL_DEBUG_SAMPLE_OUT)
|
|
119
|
+
appendFileSync(process.env.WORK_SIGNAL_DEBUG_SAMPLE_OUT, entries().map(entry => JSON.stringify(entry)).join("\n") + "\n");
|
|
120
|
+
});
|
|
121
|
+
it("captures frames below the entry function with a raised and restored stack limit", () => {
|
|
122
|
+
const before = Error.stackTraceLimit;
|
|
123
|
+
function signalEntry() { return captureWorkSignalStack(signalEntry); }
|
|
124
|
+
function nest(depth) { return depth === 0 ? signalEntry() : nest(depth - 1); }
|
|
125
|
+
const stack = nest(25);
|
|
126
|
+
expect(Error.stackTraceLimit).toBe(before);
|
|
127
|
+
const frames = (stack ?? "").split("\n").slice(1);
|
|
128
|
+
expect(frames.some(frame => frame.includes("signalEntry"))).toBe(false);
|
|
129
|
+
expect(frames.filter(frame => frame.includes("nest")).length).toBeGreaterThan(before);
|
|
130
|
+
});
|
|
131
|
+
it("budgets each topic and event separately so frequent checks never drop signals", () => {
|
|
132
|
+
const { debug, entries, advance } = harness("stranded-assignments:1000", { maxLinesPerSecond: 10 });
|
|
133
|
+
let signals = 0;
|
|
134
|
+
for (let second = 0; second < 5; second++) {
|
|
135
|
+
for (let tick = 0; tick < 24; tick++) {
|
|
136
|
+
debug.event("stranded-assignments", "check", { issueId: `i${tick}` });
|
|
137
|
+
if (tick % 8 === 0) {
|
|
138
|
+
debug.signal("stranded-assignments", `h${second}-${tick}`);
|
|
139
|
+
signals++;
|
|
140
|
+
}
|
|
141
|
+
if (tick % 3 === 0)
|
|
142
|
+
debug.event("stranded-assignments", "check", { issueId: `x${tick}` });
|
|
143
|
+
advance(1000 / 24);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
debug.flush();
|
|
147
|
+
expect(entries().filter(entry => entry.event === "signal")).toHaveLength(signals);
|
|
148
|
+
expect(entries().filter(entry => entry.event === "check").length).toBeLessThanOrEqual(5 * 10 + 10);
|
|
149
|
+
const suppressed = entries().filter(entry => entry.event === "suppressed");
|
|
150
|
+
expect(suppressed).toEqual([expect.objectContaining({ topic: "stranded-assignments", suppressedEvent: "check" })]);
|
|
151
|
+
expect(suppressed[0].count).toBeGreaterThan(0);
|
|
152
|
+
});
|
|
153
|
+
it("captures no stack for a record the cap suppresses", () => {
|
|
154
|
+
const { debug, captureStack, entries } = harness("stranded-assignments:1", { maxLinesPerSecond: 3 });
|
|
155
|
+
for (let index = 0; index < 20; index++) {
|
|
156
|
+
debug.signal("stranded-assignments", undefined);
|
|
157
|
+
debug.event("stranded-assignments", "direct_wake", { queues: "a" }, "always");
|
|
158
|
+
}
|
|
159
|
+
debug.flush();
|
|
160
|
+
expect(captureStack).toHaveBeenCalledTimes(6);
|
|
161
|
+
expect(entries().filter(entry => entry.event === "suppressed").map(entry => [entry.suppressedEvent, entry.count]))
|
|
162
|
+
.toEqual([["signal", 17], ["direct_wake", 17]]);
|
|
163
|
+
});
|
|
164
|
+
it("writes nothing on the signal path and flushes later from a timer", () => {
|
|
165
|
+
vi.useFakeTimers();
|
|
166
|
+
try {
|
|
167
|
+
const sink = vi.fn();
|
|
168
|
+
const debug = createWorkSignalDebug({ spec: "stranded-assignments", sink, captureStack: () => SOURCE_STACK });
|
|
169
|
+
debug.signal("stranded-assignments", undefined);
|
|
170
|
+
expect(sink).not.toHaveBeenCalled();
|
|
171
|
+
vi.advanceTimersByTime(1000);
|
|
172
|
+
expect(sink).toHaveBeenCalledTimes(1);
|
|
173
|
+
vi.advanceTimersByTime(5000);
|
|
174
|
+
expect(sink).toHaveBeenCalledTimes(1);
|
|
175
|
+
}
|
|
176
|
+
finally {
|
|
177
|
+
vi.useRealTimers();
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
//# sourceMappingURL=work-signal-debug.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-signal-debug.test.js","sourceRoot":"","sources":["../src/work-signal-debug.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAA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a,EAAE,CAAC;QAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
type Listener = (event: "intent" | "settled", hints?: ReadonlySet<string>) => void;
|
|
2
|
+
type Connection = {
|
|
3
|
+
transaction: (...args: any[]) => Promise<any>;
|
|
4
|
+
execute: (...args: any[]) => Promise<any>;
|
|
5
|
+
};
|
|
6
|
+
/** Installed once by createDb; dedicated child pools share their owner's scope. */
|
|
7
|
+
export declare function installDatabaseWorkSignals<T extends Connection>(db: T, owner?: object): T;
|
|
8
|
+
/** Await BEFORE the queue write, on its transaction. Nested transactions work. */
|
|
9
|
+
export declare function signalDatabaseWork(connection: object, topic: string, hint?: string): Promise<void>;
|
|
10
|
+
export declare function primeDatabaseWorkTransactionId(connection: object, xid: string): void;
|
|
11
|
+
export declare const DATABASE_WORK_NOTIFICATION_MAX_BYTES = 1024;
|
|
12
|
+
export declare const DATABASE_WORK_TOPIC_NOTIFICATIONS_MAX_BYTES = 7000;
|
|
13
|
+
export declare const DATABASE_WORK_CHANNEL = "paperclip_work_v1";
|
|
14
|
+
export declare function enableDatabaseWorkNotifications(owner: object): void;
|
|
15
|
+
/**
|
|
16
|
+
* A commit-bound hint to other server processes, sent on the transaction's own connection. Unlike
|
|
17
|
+
* signalDatabaseWork it registers no local intent, so a failed transaction leaves nothing to reconcile
|
|
18
|
+
* on another pool. For writers whose correctness never depends on this hint (best-effort wakes).
|
|
19
|
+
*/
|
|
20
|
+
export declare function notifyDatabaseWorkOnCommit(connection: object, topic: string): Promise<void>;
|
|
21
|
+
export declare function databaseWorkCommitNotification(owner: object, topic: string): string | null;
|
|
22
|
+
export declare function publishDatabaseWorkSettled(owner: object, topic: string, hint?: string): void;
|
|
23
|
+
/** A post-commit invalidation hint, for already-persisted live UI state. */
|
|
24
|
+
export declare function publishDatabaseWorkHint(owner: object, topic: string): Promise<void>;
|
|
25
|
+
export declare function receiveDatabaseWorkNotification(owner: object, payload: string): void;
|
|
26
|
+
/** Reconnect can lose hints. Reconstruct existing durable queues once; no poll. */
|
|
27
|
+
export declare function reconcileDatabaseWorkNotifications(owner: object): void;
|
|
28
|
+
/**
|
|
29
|
+
* The hint a topic receives when the notification connection opens or
|
|
30
|
+
* reconnects, instead of an unscoped reload. Only a hint lost from another
|
|
31
|
+
* server is missing, so a queue that can find those writes from its own rows
|
|
32
|
+
* declares how to look. Process-local; never sent to another server.
|
|
33
|
+
*/
|
|
34
|
+
export declare function setDatabaseWorkReconnectHint(owner: object, topic: string, hint: string): void;
|
|
35
|
+
export declare function databaseWorkPending(owner: object, topic: string): boolean;
|
|
36
|
+
/** Resolve only failed transactions, on a fresh root-pool statement. Call
|
|
37
|
+
* BEFORE the queue scan so rows from a newly confirmed commit are visible.
|
|
38
|
+
* NULL means the XID aged out; it can no longer be in progress, so scanning
|
|
39
|
+
* the durable queue is sufficient even though its outcome is unavailable.
|
|
40
|
+
*/
|
|
41
|
+
export declare function reconcileDatabaseWork(owner: object, topic: string): Promise<void>;
|
|
42
|
+
/** Includes intent, outer settlement, and uncertainty-resolution changes. */
|
|
43
|
+
export declare function subscribeDatabaseWork(owner: object, topic: string, listener: Listener): () => void;
|
|
44
|
+
export declare function databaseWorkScopeKey(connection: object): object;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=work-signals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-signals.d.ts","sourceRoot":"","sources":["../src/work-signals.ts"],"names":[],"mappings":"AAOA,KAAK,QAAQ,GAAG,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAMnF,KAAK,UAAU,GAAG;IAAE,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,GAAG,I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C,KAAK,EAAE,MAAM,GAAG,IAAI,CAOtE;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAI7F;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBvF;AAED,6EAA6E;AAC7E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI,CAUlG;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE/D"}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { sql } from "drizzle-orm";
|
|
2
|
+
import { randomUUID } from "node:crypto";
|
|
3
|
+
import { workSignalDebug } from "./work-signal-debug.js";
|
|
4
|
+
const contexts = new WeakMap();
|
|
5
|
+
function publish(scope, topic, event = "settled", hints) {
|
|
6
|
+
for (const listener of scope.listeners.get(topic) ?? []) {
|
|
7
|
+
try {
|
|
8
|
+
listener(event, hints);
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
process.emitWarning(`Database work listener failed: ${String(error)}`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/** Installed once by createDb; dedicated child pools share their owner's scope. */
|
|
16
|
+
export function installDatabaseWorkSignals(db, owner) {
|
|
17
|
+
const scope = (owner && contexts.get(owner)?.scope) || { key: {}, listeners: new Map(), transactions: new Set(), root: db, notificationOrigin: randomUUID(), notify: false };
|
|
18
|
+
install(db, { scope });
|
|
19
|
+
return db;
|
|
20
|
+
}
|
|
21
|
+
function install(connection, context) {
|
|
22
|
+
contexts.set(connection, context);
|
|
23
|
+
const transaction = connection.transaction;
|
|
24
|
+
connection.transaction = async function (callback, ...options) {
|
|
25
|
+
// Nested savepoints belong to the outermost transaction. Even a released
|
|
26
|
+
// savepoint must not wake a consumer before its parent commits.
|
|
27
|
+
const state = context.transaction ?? { topics: new Set(), hints: new Map(), uncertain: false };
|
|
28
|
+
try {
|
|
29
|
+
let level;
|
|
30
|
+
const result = await transaction.call(this, async (tx) => {
|
|
31
|
+
const current = { scope: context.scope, transaction: state, pending: new Map(), settled: [] };
|
|
32
|
+
level = current;
|
|
33
|
+
install(tx, current);
|
|
34
|
+
try {
|
|
35
|
+
const value = await callback(tx);
|
|
36
|
+
current.ended = true;
|
|
37
|
+
if (!context.transaction)
|
|
38
|
+
await flushNotifications(tx, context.scope, current.pending);
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
finally {
|
|
42
|
+
current.ended = true;
|
|
43
|
+
}
|
|
44
|
+
}, ...options);
|
|
45
|
+
if (context.pending && level?.pending) {
|
|
46
|
+
for (const [topic, notification] of level.pending)
|
|
47
|
+
mergeNotification(context.pending, topic, notification);
|
|
48
|
+
}
|
|
49
|
+
if (context.transaction)
|
|
50
|
+
context.settled?.push(...level?.settled ?? []);
|
|
51
|
+
else
|
|
52
|
+
for (const [topic, hint] of level?.settled ?? [])
|
|
53
|
+
publish(context.scope, topic, "settled", hint === undefined ? undefined : new Set([hint]));
|
|
54
|
+
if (!context.transaction)
|
|
55
|
+
context.scope.transactions.delete(state);
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
if (!context.transaction) {
|
|
60
|
+
// An XID is known before the first opted-in write can execute. If
|
|
61
|
+
// acquisition itself failed there cannot be a corresponding write.
|
|
62
|
+
if (state.xid)
|
|
63
|
+
state.uncertain = true;
|
|
64
|
+
else
|
|
65
|
+
context.scope.transactions.delete(state);
|
|
66
|
+
}
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
finally {
|
|
70
|
+
if (!context.transaction)
|
|
71
|
+
for (const topic of state.topics)
|
|
72
|
+
publish(context.scope, topic, "settled", state.hints.get(topic));
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/** Await BEFORE the queue write, on its transaction. Nested transactions work. */
|
|
77
|
+
export async function signalDatabaseWork(connection, topic, hint) {
|
|
78
|
+
const context = contexts.get(connection);
|
|
79
|
+
if (!context)
|
|
80
|
+
return; // Lightweight service test doubles have no DB lifecycle.
|
|
81
|
+
const state = context.transaction;
|
|
82
|
+
if (!state)
|
|
83
|
+
throw new Error("Database work must be registered inside a transaction");
|
|
84
|
+
if (workSignalDebug.enabled)
|
|
85
|
+
workSignalDebug.signal(topic, hint, signalDatabaseWork);
|
|
86
|
+
state.topics.add(topic);
|
|
87
|
+
if (hint !== undefined) {
|
|
88
|
+
let hints = state.hints.get(topic);
|
|
89
|
+
if (!hints)
|
|
90
|
+
state.hints.set(topic, hints = new Set());
|
|
91
|
+
hints.add(hint);
|
|
92
|
+
}
|
|
93
|
+
context.scope.transactions.add(state);
|
|
94
|
+
publish(context.scope, topic, "intent", state.hints.get(topic));
|
|
95
|
+
if (!state.xid) {
|
|
96
|
+
state.xid = connection.execute(sql `select pg_current_xact_id()::text as xid`)
|
|
97
|
+
.then((rows) => rows[0].xid);
|
|
98
|
+
}
|
|
99
|
+
// Keep a failed acquisition distinguishable from an uncertain queue write.
|
|
100
|
+
try {
|
|
101
|
+
await state.xid;
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
state.xid = undefined;
|
|
105
|
+
throw error;
|
|
106
|
+
}
|
|
107
|
+
if (context.scope.notify)
|
|
108
|
+
notifyAtCommit(context, topic, hint ?? null);
|
|
109
|
+
}
|
|
110
|
+
export function primeDatabaseWorkTransactionId(connection, xid) {
|
|
111
|
+
const state = contexts.get(connection)?.transaction;
|
|
112
|
+
if (state && !state.xid)
|
|
113
|
+
state.xid = Promise.resolve(xid);
|
|
114
|
+
}
|
|
115
|
+
function notifyAtCommit(context, topic, hint) {
|
|
116
|
+
if (!validTopic(topic))
|
|
117
|
+
throw new Error("Invalid database work topic");
|
|
118
|
+
if (context.ended)
|
|
119
|
+
throw new Error("Database work was signalled after its transaction or savepoint ended");
|
|
120
|
+
let pending = context.pending.get(topic);
|
|
121
|
+
if (!pending)
|
|
122
|
+
context.pending.set(topic, pending = { hints: new Set(), unscoped: false });
|
|
123
|
+
if (hint === undefined)
|
|
124
|
+
pending.unscoped = true;
|
|
125
|
+
else if (hint !== null)
|
|
126
|
+
pending.hints.add(hint);
|
|
127
|
+
}
|
|
128
|
+
function mergeNotification(pending, topic, notification) {
|
|
129
|
+
const existing = pending.get(topic);
|
|
130
|
+
if (!existing) {
|
|
131
|
+
pending.set(topic, { hints: new Set(notification.hints), unscoped: notification.unscoped });
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
existing.unscoped ||= notification.unscoped;
|
|
135
|
+
for (const hint of notification.hints)
|
|
136
|
+
existing.hints.add(hint);
|
|
137
|
+
}
|
|
138
|
+
async function flushNotifications(connection, scope, pending) {
|
|
139
|
+
if (pending.size === 0)
|
|
140
|
+
return;
|
|
141
|
+
const payloads = [...pending].flatMap(([topic, { hints, unscoped }]) => unscoped || hints.size === 0 ? [notification(scope, topic)] : hintedNotifications(scope, topic, hints));
|
|
142
|
+
await connection.execute(sql `select pg_notify(${DATABASE_WORK_CHANNEL}, payload)
|
|
143
|
+
from jsonb_array_elements_text(${JSON.stringify(payloads)}::jsonb) as notification(payload)`);
|
|
144
|
+
}
|
|
145
|
+
export const DATABASE_WORK_NOTIFICATION_MAX_BYTES = 1024;
|
|
146
|
+
export const DATABASE_WORK_TOPIC_NOTIFICATIONS_MAX_BYTES = 7000;
|
|
147
|
+
const MAX_RECEIVED_NOTIFICATION_LENGTH = 8000;
|
|
148
|
+
function hintedNotifications(scope, topic, hints) {
|
|
149
|
+
const base = Buffer.byteLength(JSON.stringify({ version: 1, origin: scope.notificationOrigin, topic, hints: [] }));
|
|
150
|
+
const chunks = [];
|
|
151
|
+
let chunk = [], chunkBytes = base, totalBytes = 0;
|
|
152
|
+
for (const hint of hints) {
|
|
153
|
+
const bytes = Buffer.byteLength(JSON.stringify(hint));
|
|
154
|
+
if (chunk.length > 0 && chunkBytes + 1 + bytes > DATABASE_WORK_NOTIFICATION_MAX_BYTES) {
|
|
155
|
+
chunks.push(chunk);
|
|
156
|
+
totalBytes += chunkBytes;
|
|
157
|
+
chunk = [];
|
|
158
|
+
chunkBytes = base;
|
|
159
|
+
}
|
|
160
|
+
chunkBytes += chunk.length > 0 ? bytes + 1 : bytes;
|
|
161
|
+
chunk.push(hint);
|
|
162
|
+
if (chunkBytes > DATABASE_WORK_NOTIFICATION_MAX_BYTES || totalBytes + chunkBytes > DATABASE_WORK_TOPIC_NOTIFICATIONS_MAX_BYTES) {
|
|
163
|
+
return [notification(scope, topic)];
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
chunks.push(chunk);
|
|
167
|
+
return chunks.map(list => JSON.stringify({ version: 1, origin: scope.notificationOrigin, topic, hints: list }));
|
|
168
|
+
}
|
|
169
|
+
export const DATABASE_WORK_CHANNEL = "paperclip_work_v1";
|
|
170
|
+
const validTopic = (topic) => /^[a-zA-Z0-9:_-]{1,200}$/.test(topic);
|
|
171
|
+
function notification(scope, topic) {
|
|
172
|
+
if (!validTopic(topic))
|
|
173
|
+
throw new Error("Invalid database work topic");
|
|
174
|
+
return JSON.stringify({ version: 1, origin: scope.notificationOrigin, topic });
|
|
175
|
+
}
|
|
176
|
+
export function enableDatabaseWorkNotifications(owner) {
|
|
177
|
+
const scope = contexts.get(owner)?.scope;
|
|
178
|
+
if (!scope)
|
|
179
|
+
throw new Error("Database work notifications require createDb");
|
|
180
|
+
scope.notify = true;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* A commit-bound hint to other server processes, sent on the transaction's own connection. Unlike
|
|
184
|
+
* signalDatabaseWork it registers no local intent, so a failed transaction leaves nothing to reconcile
|
|
185
|
+
* on another pool. For writers whose correctness never depends on this hint (best-effort wakes).
|
|
186
|
+
*/
|
|
187
|
+
export async function notifyDatabaseWorkOnCommit(connection, topic) {
|
|
188
|
+
const context = contexts.get(connection);
|
|
189
|
+
if (!context?.scope.notify)
|
|
190
|
+
return;
|
|
191
|
+
if (!context.transaction)
|
|
192
|
+
throw new Error("Database work must be registered inside a transaction");
|
|
193
|
+
notifyAtCommit(context, topic, undefined);
|
|
194
|
+
}
|
|
195
|
+
export function databaseWorkCommitNotification(owner, topic) {
|
|
196
|
+
const scope = contexts.get(owner)?.scope;
|
|
197
|
+
return scope?.notify ? notification(scope, topic) : null;
|
|
198
|
+
}
|
|
199
|
+
export function publishDatabaseWorkSettled(owner, topic, hint) {
|
|
200
|
+
const context = contexts.get(owner);
|
|
201
|
+
if (!context)
|
|
202
|
+
return;
|
|
203
|
+
if (workSignalDebug.enabled)
|
|
204
|
+
workSignalDebug.event(topic, "settled_publish", { hint }, "sampled", publishDatabaseWorkSettled);
|
|
205
|
+
if (!context.transaction) {
|
|
206
|
+
publish(context.scope, topic, "settled", hint === undefined ? undefined : new Set([hint]));
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
if (context.ended)
|
|
210
|
+
throw new Error("Database work was signalled after its transaction or savepoint ended");
|
|
211
|
+
context.settled.push([topic, hint]);
|
|
212
|
+
if (context.scope.notify)
|
|
213
|
+
notifyAtCommit(context, topic, hint);
|
|
214
|
+
}
|
|
215
|
+
/** A post-commit invalidation hint, for already-persisted live UI state. */
|
|
216
|
+
export async function publishDatabaseWorkHint(owner, topic) {
|
|
217
|
+
const scope = contexts.get(owner)?.scope;
|
|
218
|
+
if (scope?.notify)
|
|
219
|
+
await scope.root.execute(sql `select pg_notify(${DATABASE_WORK_CHANNEL}, ${notification(scope, topic)})`);
|
|
220
|
+
}
|
|
221
|
+
export function receiveDatabaseWorkNotification(owner, payload) {
|
|
222
|
+
const scope = contexts.get(owner)?.scope;
|
|
223
|
+
if (!scope || typeof payload !== "string" || payload.length > MAX_RECEIVED_NOTIFICATION_LENGTH)
|
|
224
|
+
return;
|
|
225
|
+
let value;
|
|
226
|
+
try {
|
|
227
|
+
value = JSON.parse(payload);
|
|
228
|
+
}
|
|
229
|
+
catch {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (!value || typeof value !== "object" || typeof value.version !== "number" || !Number.isInteger(value.version)
|
|
233
|
+
|| value.version < 1 || typeof value.origin !== "string" || value.origin === scope.notificationOrigin
|
|
234
|
+
|| typeof value.topic !== "string" || !validTopic(value.topic))
|
|
235
|
+
return;
|
|
236
|
+
const hints = value.version === 1 ? receivedHints(value.hints) : undefined;
|
|
237
|
+
if (workSignalDebug.enabled) {
|
|
238
|
+
workSignalDebug.event(value.topic, "remote_notification", { hints: hints ? JSON.stringify([...hints]) : null });
|
|
239
|
+
}
|
|
240
|
+
publish(scope, value.topic, "settled", hints);
|
|
241
|
+
}
|
|
242
|
+
function receivedHints(value) {
|
|
243
|
+
if (!Array.isArray(value) || value.length === 0 || !value.every(hint => typeof hint === "string"))
|
|
244
|
+
return undefined;
|
|
245
|
+
return new Set(value);
|
|
246
|
+
}
|
|
247
|
+
/** Reconnect can lose hints. Reconstruct existing durable queues once; no poll. */
|
|
248
|
+
export function reconcileDatabaseWorkNotifications(owner) {
|
|
249
|
+
const scope = contexts.get(owner)?.scope;
|
|
250
|
+
if (scope)
|
|
251
|
+
for (const topic of scope.listeners.keys()) {
|
|
252
|
+
if (workSignalDebug.enabled)
|
|
253
|
+
workSignalDebug.event(topic, "notification_reconnect");
|
|
254
|
+
const hint = scope.reconnectHints?.get(topic);
|
|
255
|
+
publish(scope, topic, "settled", hint === undefined ? undefined : new Set([hint]));
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* The hint a topic receives when the notification connection opens or
|
|
260
|
+
* reconnects, instead of an unscoped reload. Only a hint lost from another
|
|
261
|
+
* server is missing, so a queue that can find those writes from its own rows
|
|
262
|
+
* declares how to look. Process-local; never sent to another server.
|
|
263
|
+
*/
|
|
264
|
+
export function setDatabaseWorkReconnectHint(owner, topic, hint) {
|
|
265
|
+
const scope = contexts.get(owner)?.scope;
|
|
266
|
+
if (!scope)
|
|
267
|
+
return;
|
|
268
|
+
(scope.reconnectHints ??= new Map()).set(topic, hint);
|
|
269
|
+
}
|
|
270
|
+
export function databaseWorkPending(owner, topic) {
|
|
271
|
+
return [...(contexts.get(owner)?.scope.transactions ?? [])].some(state => state.topics.has(topic));
|
|
272
|
+
}
|
|
273
|
+
/** Resolve only failed transactions, on a fresh root-pool statement. Call
|
|
274
|
+
* BEFORE the queue scan so rows from a newly confirmed commit are visible.
|
|
275
|
+
* NULL means the XID aged out; it can no longer be in progress, so scanning
|
|
276
|
+
* the durable queue is sufficient even though its outcome is unavailable.
|
|
277
|
+
*/
|
|
278
|
+
export async function reconcileDatabaseWork(owner, topic) {
|
|
279
|
+
const scope = contexts.get(owner)?.scope;
|
|
280
|
+
if (!scope)
|
|
281
|
+
return;
|
|
282
|
+
for (const state of [...scope.transactions]) {
|
|
283
|
+
if (!state.uncertain || !state.topics.has(topic) || !state.xid)
|
|
284
|
+
continue;
|
|
285
|
+
const xid = await state.xid;
|
|
286
|
+
const rows = await scope.root.execute(sql `select pg_xact_status(${xid}::xid8) as status`);
|
|
287
|
+
if (rows[0]?.status === "in progress")
|
|
288
|
+
continue;
|
|
289
|
+
if (!rows.length || ![null, "committed", "aborted"].includes(rows[0].status)) {
|
|
290
|
+
throw new Error("Unexpected database transaction status");
|
|
291
|
+
}
|
|
292
|
+
scope.transactions.delete(state);
|
|
293
|
+
for (const affected of state.topics) {
|
|
294
|
+
if (workSignalDebug.enabled)
|
|
295
|
+
workSignalDebug.event(affected, "uncertain_settled", { status: rows[0]?.status ?? null });
|
|
296
|
+
publish(scope, affected, "settled", state.hints.get(affected));
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
/** Includes intent, outer settlement, and uncertainty-resolution changes. */
|
|
301
|
+
export function subscribeDatabaseWork(owner, topic, listener) {
|
|
302
|
+
const context = contexts.get(owner);
|
|
303
|
+
if (!context)
|
|
304
|
+
throw new Error("Database work subscriptions require createDb");
|
|
305
|
+
let listeners = context.scope.listeners.get(topic);
|
|
306
|
+
if (!listeners)
|
|
307
|
+
context.scope.listeners.set(topic, listeners = new Set());
|
|
308
|
+
listeners.add(listener);
|
|
309
|
+
if (databaseWorkPending(owner, topic)) {
|
|
310
|
+
try {
|
|
311
|
+
listener("intent");
|
|
312
|
+
}
|
|
313
|
+
catch (error) {
|
|
314
|
+
process.emitWarning(`Database work listener failed: ${String(error)}`);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return () => { listeners.delete(listener); };
|
|
318
|
+
}
|
|
319
|
+
export function databaseWorkScopeKey(connection) {
|
|
320
|
+
return contexts.get(connection)?.scope.key ?? connection;
|
|
321
|
+
}
|
|
322
|
+
//# sourceMappingURL=work-signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-signals.js","sourceRoot":"","sources":["../src/work-signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAYzD,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAmB,CAAC;AAEhD,SAAS,OAAO,CAAC,KAAY,EAAE,KAAa,EAAE,KAAK,GAAyB,SAAS,EAAE,KAA2B;IAChH,KAAK,MAAM,QAAQ,IAAI,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QACxD,IAAI,CAAC;YAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAAC,CAAC;Q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