UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines • 3.64 kB
//!src/state/openclaw-state-db-contract.ts const STATE_DATABASE_LIFECYCLE_KEY=Symbol.for(`openclaw.stateDatabaseLifecycle`);const STATE_MIGRATION_VERSIONS=[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28];const DOCTOR_OWNED_STATE_TABLES=[`agent_deletion_journal`];const FIRST_USE_STATE_TABLES=[`durable_background_processes`,`sandbox_persistent_execs`,`user_profile_identities`,`user_background_images`,`local_workspace_projections`,`local_workspace_manifest_nodes`,`local_workspace_tree_packs`,`local_workspace_source_path_sets`,`update_runs`,`session_repository_workspaces`,`github_repository_publication_requests`,`github_publication_session_lifecycles`,`skill_library_entries`,`skill_library_revisions`,`skill_library_events`,`skill_library_uploads`,`github_personal_publication_requests`,`cron_job_runtime_authorities`,`cron_run_trigger_state_retirements`,`execution_identity_contexts`,`mcp_oauth_pending_authorizations`,`node_worker_launch_containers`,`node_worker_launch_boots`,`node_worker_launch_cleanup`,`node_worker_launch_process_scopes`,`node_worker_launches`,`node_worker_prepared_workspaces`,`node_worker_turns`,`operator_approval_execution_identities`,`operator_approval_standing_grants`,`operator_approval_standing_grant_generations`,`web_push_approval_deliveries`,`execution_decision_facts`,`execution_owner_lifecycle_bindings`,`outbound_message_execution_bindings`,`outbound_message_progress`];const FIRST_USE_STATE_INDEXES=[`idx_sandbox_persistent_execs_container`,`idx_sandbox_persistent_execs_container_name`,`idx_sandbox_persistent_execs_source`,`idx_user_profile_identities_profile_id`,`idx_user_profile_identities_authorization`,`idx_update_runs_created`,`idx_update_runs_active`,`idx_github_repository_publication_shared_request`,`idx_github_repository_publication_personal_request`,`idx_github_personal_publication_owner_session`,`idx_github_personal_publication_pending`,`idx_node_worker_launches_terminal_completed`,`idx_node_worker_turns_terminal_completed`,`idx_node_worker_turns_active_owner`,`idx_operator_approval_standing_grants_binding`,`idx_web_push_approval_deliveries_subscription`,`execution_identity_contexts_run_created_idx`,`execution_decision_facts_cursor_id_idx`,`execution_decision_facts_context_occurred_idx`,`execution_decision_facts_run_occurred_idx`,`outbound_message_execution_bindings_execution_event_idx`,`outbound_message_progress_occurred_idx`,`outbound_message_progress_run_occurred_idx`];const LAZY_ADDITIVE_STATE_TABLES=[...FIRST_USE_STATE_TABLES,`agent_provenance`,`cron_run_receipts`,`config_revision_keys`,`secret_store_entries`,`projects`,`worktree_templates`,`user_preferences`,`device_pair_setup_completions`,`github_publication_requests`,`device_pairing_join_codes`,`device_pairing_browser_requests`,`skill_workshop_changes`,`worker_environment_ssh_fallback_ports`,`worker_session_placement_moves`];const LAZY_ADDITIVE_STATE_INDEXES=[...FIRST_USE_STATE_INDEXES,`cron_run_receipts_cursor_id_idx`,`idx_cron_run_receipts_active_job`,`idx_cron_run_receipts_job_history`,`idx_github_publication_requests_pending`,`secret_store_entries_live_idx`,`skill_workshop_changes_cursor_id_idx`,`idx_skill_workshop_changes_agent_time`];const OPENCLAW_SQLITE_BUSY_TIMEOUT_MS=5e3;const OPENCLAW_DATABASE_SCHEMA_DOCS_URL=`https://docs.openclaw.ai/reference/database-schemas`;export{LAZY_ADDITIVE_STATE_TABLES as a,STATE_DATABASE_LIFECYCLE_KEY as c,LAZY_ADDITIVE_STATE_INDEXES as i,STATE_MIGRATION_VERSIONS as l,FIRST_USE_STATE_INDEXES as n,OPENCLAW_DATABASE_SCHEMA_DOCS_URL as o,FIRST_USE_STATE_TABLES as r,OPENCLAW_SQLITE_BUSY_TIMEOUT_MS as s,DOCTOR_OWNED_STATE_TABLES as t};