@indx-workspace/embedded 0.0.0-bootstrap → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +72 -0
- package/LICENSE +202 -0
- package/README.md +309 -0
- package/dist/bin.js +73 -0
- package/dist/launch.js +28617 -0
- package/dist/migrations/0000_init.sql +119 -0
- package/dist/migrations/0001_w2_resources.sql +177 -0
- package/dist/migrations/0002_w3_runtime_profiles.sql +34 -0
- package/dist/migrations/0003_steep_galactus.sql +91 -0
- package/dist/migrations/0004_overconfident_lake.sql +16 -0
- package/dist/migrations/0005_durable_sessions_run_tokens.sql +46 -0
- package/dist/migrations/0006_familiar_karnak.sql +2 -0
- package/dist/migrations/0007_fast_hannibal_king.sql +1 -0
- package/dist/migrations/0008_damp_nemesis.sql +31 -0
- package/dist/migrations/0009_special_thena.sql +2 -0
- package/dist/migrations/0010_little_power_pack.sql +66 -0
- package/dist/migrations/0011_goofy_storm.sql +14 -0
- package/dist/migrations/0012_legal_shatterstar.sql +14 -0
- package/dist/migrations/0013_secret_namora.sql +9 -0
- package/dist/migrations/0014_premium_vengeance.sql +16 -0
- package/dist/migrations/0015_amazing_screwball.sql +1 -0
- package/dist/migrations/0016_next_satana.sql +29 -0
- package/dist/migrations/0017_wild_the_executioner.sql +1 -0
- package/dist/migrations/0018_heavy_stone_men.sql +2 -0
- package/dist/migrations/0019_repair_legacy_run_accounting.sql +20 -0
- package/dist/migrations/0020_sparkling_nova.sql +340 -0
- package/dist/migrations/0021_slippery_sister_grimm.sql +1 -0
- package/dist/migrations/0022_warm_paibok.sql +26 -0
- package/dist/migrations/0023_colorful_shotgun.sql +2 -0
- package/dist/migrations/0024_curly_molten_man.sql +9 -0
- package/dist/migrations/0025_name_the_engine_in_stored_rows.sql +50 -0
- package/dist/migrations/0026_create_the_engine_scoped_session_state_store.sql +47 -0
- package/dist/migrations/0027_backfill_claude_session_state.sql +66 -0
- package/dist/migrations/0028_widen_the_engine_checks_to_openai_agents.sql +14 -0
- package/dist/migrations/0029_widen_the_engine_checks_to_pi.sql +14 -0
- package/dist/migrations/0030_create_the_cli_sessions_table.sql +23 -0
- package/dist/migrations/0031_widen_the_engine_checks_to_mastra.sql +17 -0
- package/dist/migrations/0032_mark_the_setup_agent.sql +7 -0
- package/dist/migrations/0033_create_the_agent_version_store.sql +41 -0
- package/dist/migrations/0034_mark_the_workspace_default_runtime_profile.sql +15 -0
- package/dist/migrations/0035_record_who_a_local_runtime_key_acts_for.sql +19 -0
- package/dist/migrations/0036_add_connector_kinds_and_the_run_tool_snapshot.sql +34 -0
- package/dist/migrations/0037_create_the_surface_session_keys.sql +20 -0
- package/dist/migrations/0038_record_feedback_on_a_run.sql +14 -0
- package/dist/migrations/0039_record_an_evaluation_of_a_version.sql +18 -0
- package/dist/migrations/0040_record_the_materialised_version.sql +23 -0
- package/dist/migrations/0041_pin_a_session_to_its_agent_version.sql +4 -0
- package/dist/migrations/0042_store_the_prompt_of_a_run.sql +1 -0
- package/dist/migrations/0043_record_every_pointer_move.sql +30 -0
- package/dist/migrations/meta/0000_snapshot.json +964 -0
- package/dist/migrations/meta/0001_snapshot.json +2278 -0
- package/dist/migrations/meta/0002_snapshot.json +2550 -0
- package/dist/migrations/meta/0003_snapshot.json +3295 -0
- package/dist/migrations/meta/0004_snapshot.json +3452 -0
- package/dist/migrations/meta/0005_snapshot.json +3921 -0
- package/dist/migrations/meta/0006_snapshot.json +3949 -0
- package/dist/migrations/meta/0007_snapshot.json +3956 -0
- package/dist/migrations/meta/0008_snapshot.json +4177 -0
- package/dist/migrations/meta/0009_snapshot.json +4177 -0
- package/dist/migrations/meta/0010_snapshot.json +3988 -0
- package/dist/migrations/meta/0011_snapshot.json +4491 -0
- package/dist/migrations/meta/0012_snapshot.json +4629 -0
- package/dist/migrations/meta/0013_snapshot.json +4646 -0
- package/dist/migrations/meta/0014_snapshot.json +4313 -0
- package/dist/migrations/meta/0015_snapshot.json +4775 -0
- package/dist/migrations/meta/0016_snapshot.json +4976 -0
- package/dist/migrations/meta/0017_snapshot.json +4982 -0
- package/dist/migrations/meta/0018_snapshot.json +4982 -0
- package/dist/migrations/meta/0019_snapshot.json +4990 -0
- package/dist/migrations/meta/0020_snapshot.json +5469 -0
- package/dist/migrations/meta/0021_snapshot.json +5475 -0
- package/dist/migrations/meta/0022_snapshot.json +5711 -0
- package/dist/migrations/meta/0023_snapshot.json +5722 -0
- package/dist/migrations/meta/0024_snapshot.json +5748 -0
- package/dist/migrations/meta/0025_snapshot.json +5748 -0
- package/dist/migrations/meta/0026_snapshot.json +6151 -0
- package/dist/migrations/meta/0027_snapshot.json +6151 -0
- package/dist/migrations/meta/0028_snapshot.json +6151 -0
- package/dist/migrations/meta/0029_snapshot.json +6151 -0
- package/dist/migrations/meta/0030_snapshot.json +6328 -0
- package/dist/migrations/meta/0031_snapshot.json +6328 -0
- package/dist/migrations/meta/0032_snapshot.json +6334 -0
- package/dist/migrations/meta/0033_snapshot.json +6615 -0
- package/dist/migrations/meta/0034_snapshot.json +6633 -0
- package/dist/migrations/meta/0035_snapshot.json +6662 -0
- package/dist/migrations/meta/0036_snapshot.json +6706 -0
- package/dist/migrations/meta/0037_snapshot.json +6816 -0
- package/dist/migrations/meta/0038_snapshot.json +6927 -0
- package/dist/migrations/meta/0039_snapshot.json +7073 -0
- package/dist/migrations/meta/0040_snapshot.json +7096 -0
- package/dist/migrations/meta/0041_snapshot.json +7119 -0
- package/dist/migrations/meta/0042_snapshot.json +7125 -0
- package/dist/migrations/meta/0043_snapshot.json +7292 -0
- package/dist/migrations/meta/_journal.json +314 -0
- package/dist/web/.next-embedded/BUILD_ID +1 -0
- package/dist/web/.next-embedded/app-path-routes-manifest.json +108 -0
- package/dist/web/.next-embedded/build-manifest.json +20 -0
- package/dist/web/.next-embedded/diagnostics/build-diagnostics.json +6 -0
- package/dist/web/.next-embedded/diagnostics/framework.json +1 -0
- package/dist/web/.next-embedded/export-marker.json +6 -0
- package/dist/web/.next-embedded/images-manifest.json +68 -0
- package/dist/web/.next-embedded/package.json +1 -0
- package/dist/web/.next-embedded/prerender-manifest.json +97 -0
- package/dist/web/.next-embedded/react-loadable-manifest.json +1 -0
- package/dist/web/.next-embedded/required-server-files.js +355 -0
- package/dist/web/.next-embedded/required-server-files.json +355 -0
- package/dist/web/.next-embedded/routes-manifest.json +786 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/api-keys/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/api-keys/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/models/new/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/models/new/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/models/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/models/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/runtimes/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/runtimes/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/settings/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/settings/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/shares/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/shares/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/users/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/admin/users/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/agents/[id]/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/agents/[id]/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/agents/new/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/agents/new/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/agents/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/agents/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/connectors/new/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/connectors/new/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/connectors/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/connectors/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/files/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/files/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/projects/[id]/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/projects/[id]/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/projects/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/projects/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/runs/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/runs/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/skills/[name]/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/skills/[name]/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/skills/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/skills/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/workspaces/page.js +1 -0
- package/dist/web/.next-embedded/server/app/(shell)/workspaces/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/_global-error/page.js +31 -0
- package/dist/web/.next-embedded/server/app/_global-error/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/_global-error.html +1 -0
- package/dist/web/.next-embedded/server/app/_global-error.meta +27 -0
- package/dist/web/.next-embedded/server/app/_global-error.rsc +14 -0
- package/dist/web/.next-embedded/server/app/_global-error.segments/_full.segment.rsc +14 -0
- package/dist/web/.next-embedded/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -0
- package/dist/web/.next-embedded/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/dist/web/.next-embedded/server/app/_not-found/page.js +1 -0
- package/dist/web/.next-embedded/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/_not-found.html +1 -0
- package/dist/web/.next-embedded/server/app/_not-found.meta +27 -0
- package/dist/web/.next-embedded/server/app/_not-found.rsc +15 -0
- package/dist/web/.next-embedded/server/app/_not-found.segments/_full.segment.rsc +15 -0
- package/dist/web/.next-embedded/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +21 -0
- package/dist/web/.next-embedded/server/app/_not-found.segments/_tree.segment.rsc +2 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/evaluations/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/evaluations/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/feedback/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/feedback/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/grants/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/grants/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/pointers/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/pointers/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/policy/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/policy/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/promote/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/promote/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/resources/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/resources/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/rollback/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/rollback/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/runs/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/runs/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/versions/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/[id]/versions/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/agents/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/api-keys/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/api-keys/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/api-keys/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/api-keys/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/audit-events/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/audit-events/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/callback/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/callback/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/cli-device/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/cli-device/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/cli-token/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/cli-token/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/cli-verify/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/cli-verify/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/cli-workspace/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/cli-workspace/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/login/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/login/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/auth/workspace/route.js +13 -0
- package/dist/web/.next-embedded/server/app/api/auth/workspace/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/connectors/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/connectors/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/connectors/[id]/test-connection/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/connectors/[id]/test-connection/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/connectors/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/connectors/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/engines/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/engines/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/files/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/files/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/files/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/files/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/invitations/[id]/accept/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/invitations/[id]/accept/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/invitations/[id]/resend/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/invitations/[id]/resend/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/invitations/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/invitations/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/invitations/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/invitations/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/me/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/me/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/memberships/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/memberships/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/memberships/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/memberships/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/metrics/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/metrics/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/model-connections/[id]/credential/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/model-connections/[id]/credential/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/model-connections/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/model-connections/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/model-connections/[id]/test/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/model-connections/[id]/test/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/model-connections/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/model-connections/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/models/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/models/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/[id]/archive/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/[id]/archive/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/[id]/restore/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/[id]/restore/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/[id]/sessions/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/[id]/sessions/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/projects/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/events/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/events/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/feedback/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/feedback/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/interrupt/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/interrupt/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/revoke-tokens/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/revoke-tokens/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runs/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runtime-connections/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runtime-connections/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runtime-profiles/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runtime-profiles/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runtime-profiles/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runtime-profiles/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runtimes/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/runtimes/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/secrets/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/secrets/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/secrets/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/secrets/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-blobs/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-blobs/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-entries/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-entries/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-streams/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-streams/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/subkeys/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/subkeys/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/transcript/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/transcript/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sessions/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/setup/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/setup/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/setup/runtime-detect/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/setup/runtime-detect/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/shares/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/shares/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/shares/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/shares/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sharing-policies/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/sharing-policies/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/skills/[name]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/skills/[name]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/skills/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/skills/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/tokens/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/tokens/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/users/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/users/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/workspaces/[id]/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/workspaces/[id]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/api/workspaces/route.js +1 -0
- package/dist/web/.next-embedded/server/app/api/workspaces/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/p/[token]/messages/route.js +1 -0
- package/dist/web/.next-embedded/server/app/p/[token]/messages/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/p/[token]/page.js +1 -0
- package/dist/web/.next-embedded/server/app/p/[token]/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/p/s/[name]/page.js +1 -0
- package/dist/web/.next-embedded/server/app/p/s/[name]/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/p/s/[name]/sessions/route.js +1 -0
- package/dist/web/.next-embedded/server/app/p/s/[name]/sessions/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/p/s/[name]/try/page.js +1 -0
- package/dist/web/.next-embedded/server/app/p/s/[name]/try/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/p/s/[name]/widget.js/route.js +156 -0
- package/dist/web/.next-embedded/server/app/p/s/[name]/widget.js/route_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/setup/page.js +1 -0
- package/dist/web/.next-embedded/server/app/setup/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app/setup.html +1 -0
- package/dist/web/.next-embedded/server/app/setup.meta +26 -0
- package/dist/web/.next-embedded/server/app/setup.rsc +16 -0
- package/dist/web/.next-embedded/server/app/setup.segments/_full.segment.rsc +16 -0
- package/dist/web/.next-embedded/server/app/setup.segments/_tree.segment.rsc +2 -0
- package/dist/web/.next-embedded/server/app/setup.segments/setup/__PAGE__.segment.rsc +22 -0
- package/dist/web/.next-embedded/server/app/signin/page.js +2 -0
- package/dist/web/.next-embedded/server/app/signin/page_client-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/app-paths-manifest.json +108 -0
- package/dist/web/.next-embedded/server/chunks/1117.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1173.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1190.js +1 -0
- package/dist/web/.next-embedded/server/chunks/121.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1231.js +8 -0
- package/dist/web/.next-embedded/server/chunks/1252.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1328.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1503.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1519.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1610.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1614.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1794.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1804.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1924.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1947.js +1 -0
- package/dist/web/.next-embedded/server/chunks/1998.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2026.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2030.js +39 -0
- package/dist/web/.next-embedded/server/chunks/2049.js +12 -0
- package/dist/web/.next-embedded/server/chunks/2192.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2208.js +3 -0
- package/dist/web/.next-embedded/server/chunks/2239.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2250.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2294.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2300.js +1 -0
- package/dist/web/.next-embedded/server/chunks/235.js +1 -0
- package/dist/web/.next-embedded/server/chunks/240.js +2 -0
- package/dist/web/.next-embedded/server/chunks/2400.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2438.js +2 -0
- package/dist/web/.next-embedded/server/chunks/2448.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2502.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2580.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2587.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2610.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2670.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2780.js +165 -0
- package/dist/web/.next-embedded/server/chunks/2792.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2857.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2884.js +1 -0
- package/dist/web/.next-embedded/server/chunks/2895.js +19 -0
- package/dist/web/.next-embedded/server/chunks/2961.js +1 -0
- package/dist/web/.next-embedded/server/chunks/3171.js +1 -0
- package/dist/web/.next-embedded/server/chunks/3222.js +2 -0
- package/dist/web/.next-embedded/server/chunks/3351.js +1 -0
- package/dist/web/.next-embedded/server/chunks/3381.js +1 -0
- package/dist/web/.next-embedded/server/chunks/3520.js +8 -0
- package/dist/web/.next-embedded/server/chunks/364.js +1 -0
- package/dist/web/.next-embedded/server/chunks/411.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4119.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4128.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4191.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4200.js +1 -0
- package/dist/web/.next-embedded/server/chunks/434.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4368.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4463.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4467.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4543.js +8 -0
- package/dist/web/.next-embedded/server/chunks/468.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4741.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4755.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4758.js +21 -0
- package/dist/web/.next-embedded/server/chunks/4870.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4877.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4888.js +1 -0
- package/dist/web/.next-embedded/server/chunks/491.js +1 -0
- package/dist/web/.next-embedded/server/chunks/4911.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5036.js +27 -0
- package/dist/web/.next-embedded/server/chunks/5052.js +134 -0
- package/dist/web/.next-embedded/server/chunks/5057.js +55 -0
- package/dist/web/.next-embedded/server/chunks/5126.js +8 -0
- package/dist/web/.next-embedded/server/chunks/5133.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5173.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5225.js +2 -0
- package/dist/web/.next-embedded/server/chunks/5277.js +324 -0
- package/dist/web/.next-embedded/server/chunks/5398.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5568.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5576.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5634.js +19 -0
- package/dist/web/.next-embedded/server/chunks/5645.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5684.js +5 -0
- package/dist/web/.next-embedded/server/chunks/5699.js +1 -0
- package/dist/web/.next-embedded/server/chunks/57.js +2 -0
- package/dist/web/.next-embedded/server/chunks/5734.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5787.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5796.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5933.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5945.js +1 -0
- package/dist/web/.next-embedded/server/chunks/5961.js +1 -0
- package/dist/web/.next-embedded/server/chunks/6445.js +55 -0
- package/dist/web/.next-embedded/server/chunks/6511.js +18 -0
- package/dist/web/.next-embedded/server/chunks/6518.js +1 -0
- package/dist/web/.next-embedded/server/chunks/6572.js +1 -0
- package/dist/web/.next-embedded/server/chunks/6672.js +2 -0
- package/dist/web/.next-embedded/server/chunks/6773.js +1 -0
- package/dist/web/.next-embedded/server/chunks/6821.js +1 -0
- package/dist/web/.next-embedded/server/chunks/6926.js +1 -0
- package/dist/web/.next-embedded/server/chunks/7090.js +25 -0
- package/dist/web/.next-embedded/server/chunks/7206.js +1 -0
- package/dist/web/.next-embedded/server/chunks/7269.js +1 -0
- package/dist/web/.next-embedded/server/chunks/7380.js +1 -0
- package/dist/web/.next-embedded/server/chunks/7395.js +1 -0
- package/dist/web/.next-embedded/server/chunks/7466.js +1 -0
- package/dist/web/.next-embedded/server/chunks/7571.js +1 -0
- package/dist/web/.next-embedded/server/chunks/769.js +1 -0
- package/dist/web/.next-embedded/server/chunks/784.js +1 -0
- package/dist/web/.next-embedded/server/chunks/7861.js +1 -0
- package/dist/web/.next-embedded/server/chunks/7944.js +1 -0
- package/dist/web/.next-embedded/server/chunks/8020.js +1 -0
- package/dist/web/.next-embedded/server/chunks/8061.js +2 -0
- package/dist/web/.next-embedded/server/chunks/822.js +1 -0
- package/dist/web/.next-embedded/server/chunks/8302.js +1 -0
- package/dist/web/.next-embedded/server/chunks/8336.js +1 -0
- package/dist/web/.next-embedded/server/chunks/8376.js +1 -0
- package/dist/web/.next-embedded/server/chunks/841.js +2 -0
- package/dist/web/.next-embedded/server/chunks/8430.js +1 -0
- package/dist/web/.next-embedded/server/chunks/8563.js +2 -0
- package/dist/web/.next-embedded/server/chunks/8576.js +193 -0
- package/dist/web/.next-embedded/server/chunks/8656.js +1 -0
- package/dist/web/.next-embedded/server/chunks/8726.js +1 -0
- package/dist/web/.next-embedded/server/chunks/8935.js +1 -0
- package/dist/web/.next-embedded/server/chunks/9260.js +1 -0
- package/dist/web/.next-embedded/server/chunks/9314.js +1 -0
- package/dist/web/.next-embedded/server/chunks/9332.js +1 -0
- package/dist/web/.next-embedded/server/chunks/9380.js +13 -0
- package/dist/web/.next-embedded/server/chunks/951.js +2 -0
- package/dist/web/.next-embedded/server/chunks/9537.js +1 -0
- package/dist/web/.next-embedded/server/chunks/9840.js +1 -0
- package/dist/web/.next-embedded/server/chunks/9913.js +1 -0
- package/dist/web/.next-embedded/server/functions-config-manifest.json +97 -0
- package/dist/web/.next-embedded/server/instrumentation.js +1 -0
- package/dist/web/.next-embedded/server/interception-route-rewrite-manifest.js +1 -0
- package/dist/web/.next-embedded/server/middleware-build-manifest.js +1 -0
- package/dist/web/.next-embedded/server/middleware-manifest.json +6 -0
- package/dist/web/.next-embedded/server/middleware-react-loadable-manifest.js +1 -0
- package/dist/web/.next-embedded/server/middleware.js +217 -0
- package/dist/web/.next-embedded/server/next-font-manifest.js +1 -0
- package/dist/web/.next-embedded/server/next-font-manifest.json +1 -0
- package/dist/web/.next-embedded/server/pages/404.html +1 -0
- package/dist/web/.next-embedded/server/pages/500.html +1 -0
- package/dist/web/.next-embedded/server/pages-manifest.json +4 -0
- package/dist/web/.next-embedded/server/prefetch-hints.json +44 -0
- package/dist/web/.next-embedded/server/server-reference-manifest.js +1 -0
- package/dist/web/.next-embedded/server/server-reference-manifest.json +1 -0
- package/dist/web/.next-embedded/server/webpack-runtime.js +1 -0
- package/dist/web/.next-embedded/static/DkxmcmiDAUutpm9e7G9xn/_buildManifest.js +1 -0
- package/dist/web/.next-embedded/static/DkxmcmiDAUutpm9e7G9xn/_ssgManifest.js +1 -0
- package/dist/web/.next-embedded/static/chunks/1000-501917027865ec48.js +52 -0
- package/dist/web/.next-embedded/static/chunks/1435-55acf1390b3a2da1.js +1 -0
- package/dist/web/.next-embedded/static/chunks/2349-3254a65053329135.js +1 -0
- package/dist/web/.next-embedded/static/chunks/2378-4ca744bf47c3dabb.js +1 -0
- package/dist/web/.next-embedded/static/chunks/2685-42c2a4f17fb6adb1.js +18 -0
- package/dist/web/.next-embedded/static/chunks/5633-9a07d4830813ece7.js +1 -0
- package/dist/web/.next-embedded/static/chunks/6365-04af34ae5b1497e3.js +1 -0
- package/dist/web/.next-embedded/static/chunks/6482-ecc9c62a178ba724.js +1 -0
- package/dist/web/.next-embedded/static/chunks/7413-3a721e7c495f89fb.js +55 -0
- package/dist/web/.next-embedded/static/chunks/9595-fea797909cd07d91.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/api-keys/page-5fe6d7717b0565f1.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/models/new/page-875800e6afa2dac3.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/models/page-7c39ee3c51034f12.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/runtimes/page-d51caeefc8b5ed98.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/settings/page-7f1874c14b33856a.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/shares/page-c194edfd7701dc77.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/users/page-463489ca2ebf664f.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/agents/[id]/page-febe3b0582c996ae.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/agents/new/page-a5ba72c5bc40b6e1.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/agents/page-89d6af2961318db8.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/connectors/new/page-b7ab59a7697ce004.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/connectors/page-be6a19d14cc78f0f.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/files/page-63febed6b4433238.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/layout-4667e8f589776bbe.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/page-2cd836e518729ee6.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/projects/[id]/page-e6bc2217623b8939.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/projects/page-3db56f853165c53c.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/runs/page-fe28919e456c3966.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/skills/[name]/page-69390975e9417783.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/skills/page-1e756149864de860.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/(shell)/workspaces/page-47afb61daed3bbb2.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/_global-error/page-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/_not-found/page-1e20f0faf42b5dab.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/evaluations/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/feedback/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/grants/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/pointers/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/policy/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/promote/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/resources/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/rollback/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/runs/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/versions/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/agents/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/api-keys/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/api-keys/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/audit-events/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/auth/callback/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/auth/cli-device/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/auth/cli-token/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/auth/cli-verify/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/auth/cli-workspace/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/auth/login/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/auth/workspace/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/connectors/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/connectors/[id]/test-connection/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/connectors/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/engines/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/files/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/files/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/invitations/[id]/accept/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/invitations/[id]/resend/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/invitations/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/invitations/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/me/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/memberships/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/memberships/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/metrics/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/model-connections/[id]/credential/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/model-connections/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/model-connections/[id]/test/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/model-connections/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/models/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/projects/[id]/archive/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/projects/[id]/restore/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/projects/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/projects/[id]/sessions/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/projects/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/events/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/feedback/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/interrupt/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/revoke-tokens/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runs/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runtime-connections/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runtime-profiles/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runtime-profiles/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/runtimes/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/secrets/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/secrets/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/state-blobs/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/state-entries/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/state-streams/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/subkeys/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/transcript/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/sessions/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/setup/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/setup/runtime-detect/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/shares/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/shares/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/sharing-policies/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/skills/[name]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/skills/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/tokens/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/users/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/workspaces/[id]/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/api/workspaces/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/layout-2f33ac5af1408328.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/p/[token]/layout-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/p/[token]/messages/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/p/[token]/page-6cd5f2bd228d80dc.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/page-3bbe19f3f8fa0cd8.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/sessions/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/try/layout-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/try/page-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/widget.js/route-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/setup/page-1ffa2012b2226832.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/signin/layout-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/app/signin/page-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/b7e071c5-1178abcc3dcc97b7.js +1 -0
- package/dist/web/.next-embedded/static/chunks/framework-bd8f371b90cbf524.js +1 -0
- package/dist/web/.next-embedded/static/chunks/main-5f1d9db627247614.js +5 -0
- package/dist/web/.next-embedded/static/chunks/main-app-736eb94d950bf794.js +1 -0
- package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/app-error-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/forbidden-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/global-error-bcd4657bc775688d.js +1 -0
- package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/not-found-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/unauthorized-259206b8559c1c4b.js +1 -0
- package/dist/web/.next-embedded/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/web/.next-embedded/static/chunks/webpack-e654bfe3f030a510.js +1 -0
- package/dist/web/.next-embedded/static/css/85d72f669bcd1172.css +1 -0
- package/dist/web/next.config.mjs +1 -0
- package/package.json +51 -3
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
CREATE TABLE "agents" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"workspace_id" uuid NOT NULL,
|
|
4
|
+
"name" text NOT NULL,
|
|
5
|
+
"instructions" text NOT NULL,
|
|
6
|
+
"model_connection_id" uuid,
|
|
7
|
+
"model" text,
|
|
8
|
+
"permissions" jsonb NOT NULL,
|
|
9
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
10
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
11
|
+
CONSTRAINT "agents_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
12
|
+
CONSTRAINT "agents_name_not_blank" CHECK (length(btrim("agents"."name")) > 0)
|
|
13
|
+
);
|
|
14
|
+
--> statement-breakpoint
|
|
15
|
+
CREATE TABLE "memberships" (
|
|
16
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
17
|
+
"workspace_id" uuid NOT NULL,
|
|
18
|
+
"user_id" uuid NOT NULL,
|
|
19
|
+
"role" text NOT NULL,
|
|
20
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
21
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
22
|
+
CONSTRAINT "memberships_workspace_user_key" UNIQUE("workspace_id","user_id"),
|
|
23
|
+
CONSTRAINT "memberships_role_valid" CHECK ("memberships"."role" in ('owner', 'admin', 'builder', 'viewer'))
|
|
24
|
+
);
|
|
25
|
+
--> statement-breakpoint
|
|
26
|
+
CREATE TABLE "model_connections" (
|
|
27
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
28
|
+
"workspace_id" uuid NOT NULL,
|
|
29
|
+
"name" text NOT NULL,
|
|
30
|
+
"provider" text NOT NULL,
|
|
31
|
+
"config" jsonb NOT NULL,
|
|
32
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
33
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
34
|
+
CONSTRAINT "model_connections_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
35
|
+
CONSTRAINT "model_connections_provider_valid" CHECK ("model_connections"."provider" in ('anthropic', 'anthropic-compatible', 'openai', 'azure-openai', 'openai-compatible'))
|
|
36
|
+
);
|
|
37
|
+
--> statement-breakpoint
|
|
38
|
+
CREATE TABLE "runs" (
|
|
39
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
40
|
+
"workspace_id" uuid NOT NULL,
|
|
41
|
+
"session_id" uuid NOT NULL,
|
|
42
|
+
"status" text DEFAULT 'queued' NOT NULL,
|
|
43
|
+
"model" text,
|
|
44
|
+
"provider" text,
|
|
45
|
+
"started_at" timestamp with time zone,
|
|
46
|
+
"ended_at" timestamp with time zone,
|
|
47
|
+
"input_tokens" integer DEFAULT 0 NOT NULL,
|
|
48
|
+
"output_tokens" integer DEFAULT 0 NOT NULL,
|
|
49
|
+
"cost_usd" numeric(14, 6) DEFAULT '0' NOT NULL,
|
|
50
|
+
"tool_calls" integer DEFAULT 0 NOT NULL,
|
|
51
|
+
"error" text,
|
|
52
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
53
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
54
|
+
CONSTRAINT "runs_status_valid" CHECK ("runs"."status" in ('queued', 'running', 'completed', 'failed', 'cancelled')),
|
|
55
|
+
CONSTRAINT "runs_provider_valid" CHECK ("runs"."provider" in ('anthropic', 'anthropic-compatible', 'openai', 'azure-openai', 'openai-compatible')),
|
|
56
|
+
CONSTRAINT "runs_ended_at_iff_terminal" CHECK (("runs"."status" in ('completed', 'failed', 'cancelled')) = ("runs"."ended_at" is not null)),
|
|
57
|
+
CONSTRAINT "runs_ended_after_started" CHECK ("runs"."ended_at" is null or "runs"."started_at" is null or "runs"."ended_at" >= "runs"."started_at"),
|
|
58
|
+
CONSTRAINT "runs_counters_non_negative" CHECK ("runs"."input_tokens" >= 0 and "runs"."output_tokens" >= 0 and "runs"."tool_calls" >= 0 and "runs"."cost_usd" >= 0)
|
|
59
|
+
);
|
|
60
|
+
--> statement-breakpoint
|
|
61
|
+
CREATE TABLE "sessions" (
|
|
62
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
63
|
+
"workspace_id" uuid NOT NULL,
|
|
64
|
+
"user_id" uuid NOT NULL,
|
|
65
|
+
"agent_id" uuid NOT NULL,
|
|
66
|
+
"claude_session_id" text,
|
|
67
|
+
"title" text,
|
|
68
|
+
"status" text DEFAULT 'active' NOT NULL,
|
|
69
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
70
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
71
|
+
CONSTRAINT "sessions_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
72
|
+
CONSTRAINT "sessions_status_valid" CHECK ("sessions"."status" in ('active', 'archived'))
|
|
73
|
+
);
|
|
74
|
+
--> statement-breakpoint
|
|
75
|
+
CREATE TABLE "users" (
|
|
76
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
77
|
+
"email" text NOT NULL,
|
|
78
|
+
"name" text NOT NULL,
|
|
79
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
80
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
81
|
+
CONSTRAINT "users_email_lowercase" CHECK ("users"."email" = lower("users"."email")),
|
|
82
|
+
CONSTRAINT "users_email_shape" CHECK ("users"."email" ~ '^[^[:space:]@]+@[^[:space:]@]+[.][^[:space:]@]+$'),
|
|
83
|
+
CONSTRAINT "users_name_not_blank" CHECK (length(btrim("users"."name")) > 0)
|
|
84
|
+
);
|
|
85
|
+
--> statement-breakpoint
|
|
86
|
+
CREATE TABLE "workspaces" (
|
|
87
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
88
|
+
"slug" text NOT NULL,
|
|
89
|
+
"name" text NOT NULL,
|
|
90
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
91
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
92
|
+
CONSTRAINT "workspaces_slug_format" CHECK ("workspaces"."slug" ~ '^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$'),
|
|
93
|
+
CONSTRAINT "workspaces_name_not_blank" CHECK (length(btrim("workspaces"."name")) > 0)
|
|
94
|
+
);
|
|
95
|
+
--> statement-breakpoint
|
|
96
|
+
ALTER TABLE "agents" ADD CONSTRAINT "agents_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
97
|
+
ALTER TABLE "agents" ADD CONSTRAINT "agents_model_connection_id_model_connections_id_fk" FOREIGN KEY ("model_connection_id") REFERENCES "public"."model_connections"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
98
|
+
ALTER TABLE "agents" ADD CONSTRAINT "agents_model_connection_workspace_fk" FOREIGN KEY ("model_connection_id","workspace_id") REFERENCES "public"."model_connections"("id","workspace_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
99
|
+
ALTER TABLE "memberships" ADD CONSTRAINT "memberships_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
100
|
+
ALTER TABLE "memberships" ADD CONSTRAINT "memberships_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
101
|
+
ALTER TABLE "model_connections" ADD CONSTRAINT "model_connections_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
102
|
+
ALTER TABLE "runs" ADD CONSTRAINT "runs_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
103
|
+
ALTER TABLE "runs" ADD CONSTRAINT "runs_session_workspace_fk" FOREIGN KEY ("session_id","workspace_id") REFERENCES "public"."sessions"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
104
|
+
ALTER TABLE "sessions" ADD CONSTRAINT "sessions_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
105
|
+
ALTER TABLE "sessions" ADD CONSTRAINT "sessions_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint
|
|
106
|
+
ALTER TABLE "sessions" ADD CONSTRAINT "sessions_agent_workspace_fk" FOREIGN KEY ("agent_id","workspace_id") REFERENCES "public"."agents"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
107
|
+
ALTER TABLE "sessions" ADD CONSTRAINT "sessions_member_workspace_fk" FOREIGN KEY ("workspace_id","user_id") REFERENCES "public"."memberships"("workspace_id","user_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
108
|
+
CREATE UNIQUE INDEX "agents_workspace_name_key" ON "agents" USING btree ("workspace_id","name");--> statement-breakpoint
|
|
109
|
+
CREATE INDEX "agents_model_connection_idx" ON "agents" USING btree ("model_connection_id");--> statement-breakpoint
|
|
110
|
+
CREATE INDEX "memberships_user_idx" ON "memberships" USING btree ("user_id");--> statement-breakpoint
|
|
111
|
+
CREATE UNIQUE INDEX "model_connections_workspace_name_key" ON "model_connections" USING btree ("workspace_id","name");--> statement-breakpoint
|
|
112
|
+
CREATE INDEX "runs_workspace_created_idx" ON "runs" USING btree ("workspace_id","created_at");--> statement-breakpoint
|
|
113
|
+
CREATE INDEX "runs_session_created_idx" ON "runs" USING btree ("session_id","created_at");--> statement-breakpoint
|
|
114
|
+
CREATE INDEX "sessions_workspace_updated_idx" ON "sessions" USING btree ("workspace_id","updated_at");--> statement-breakpoint
|
|
115
|
+
CREATE UNIQUE INDEX "sessions_workspace_claude_session_key" ON "sessions" USING btree ("workspace_id","claude_session_id");--> statement-breakpoint
|
|
116
|
+
CREATE INDEX "sessions_agent_idx" ON "sessions" USING btree ("agent_id");--> statement-breakpoint
|
|
117
|
+
CREATE INDEX "sessions_user_idx" ON "sessions" USING btree ("user_id");--> statement-breakpoint
|
|
118
|
+
CREATE UNIQUE INDEX "users_email_key" ON "users" USING btree ("email");--> statement-breakpoint
|
|
119
|
+
CREATE UNIQUE INDEX "workspaces_slug_key" ON "workspaces" USING btree ("slug");
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
CREATE TABLE "agent_files" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"workspace_id" uuid NOT NULL,
|
|
4
|
+
"agent_id" uuid NOT NULL,
|
|
5
|
+
"file_id" uuid NOT NULL,
|
|
6
|
+
"access" text NOT NULL,
|
|
7
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
8
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
9
|
+
CONSTRAINT "agent_files_workspace_agent_file_key" UNIQUE("workspace_id","agent_id","file_id"),
|
|
10
|
+
CONSTRAINT "agent_files_access_valid" CHECK ("agent_files"."access" in ('read', 'read-write'))
|
|
11
|
+
);
|
|
12
|
+
--> statement-breakpoint
|
|
13
|
+
CREATE TABLE "agent_mcp_servers" (
|
|
14
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
15
|
+
"workspace_id" uuid NOT NULL,
|
|
16
|
+
"agent_id" uuid NOT NULL,
|
|
17
|
+
"mcp_server_id" uuid NOT NULL,
|
|
18
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
19
|
+
CONSTRAINT "agent_mcp_servers_workspace_agent_server_key" UNIQUE("workspace_id","agent_id","mcp_server_id")
|
|
20
|
+
);
|
|
21
|
+
--> statement-breakpoint
|
|
22
|
+
CREATE TABLE "agent_skills" (
|
|
23
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
24
|
+
"workspace_id" uuid NOT NULL,
|
|
25
|
+
"agent_id" uuid NOT NULL,
|
|
26
|
+
"skill_id" uuid NOT NULL,
|
|
27
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
28
|
+
CONSTRAINT "agent_skills_workspace_agent_skill_key" UNIQUE("workspace_id","agent_id","skill_id")
|
|
29
|
+
);
|
|
30
|
+
--> statement-breakpoint
|
|
31
|
+
CREATE TABLE "api_keys" (
|
|
32
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
33
|
+
"workspace_id" uuid NOT NULL,
|
|
34
|
+
"name" text NOT NULL,
|
|
35
|
+
"role" text NOT NULL,
|
|
36
|
+
"key_prefix" text NOT NULL,
|
|
37
|
+
"key_hash" text NOT NULL,
|
|
38
|
+
"last_used_at" timestamp with time zone,
|
|
39
|
+
"expires_at" timestamp with time zone,
|
|
40
|
+
"revoked_at" timestamp with time zone,
|
|
41
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
42
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
43
|
+
CONSTRAINT "api_keys_role_valid" CHECK ("api_keys"."role" in ('owner', 'admin', 'builder', 'viewer')),
|
|
44
|
+
CONSTRAINT "api_keys_name_not_blank" CHECK (length(btrim("api_keys"."name")) > 0),
|
|
45
|
+
CONSTRAINT "api_keys_key_prefix_not_blank" CHECK (length(btrim("api_keys"."key_prefix")) > 0),
|
|
46
|
+
CONSTRAINT "api_keys_key_hash_not_blank" CHECK (length(btrim("api_keys"."key_hash")) > 0),
|
|
47
|
+
CONSTRAINT "api_keys_expires_after_created" CHECK ("api_keys"."expires_at" is null or "api_keys"."expires_at" > "api_keys"."created_at"),
|
|
48
|
+
CONSTRAINT "api_keys_revoked_after_created" CHECK ("api_keys"."revoked_at" is null or "api_keys"."revoked_at" >= "api_keys"."created_at")
|
|
49
|
+
);
|
|
50
|
+
--> statement-breakpoint
|
|
51
|
+
CREATE TABLE "audit_events" (
|
|
52
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
53
|
+
"workspace_id" uuid NOT NULL,
|
|
54
|
+
"actor_user_id" uuid,
|
|
55
|
+
"actor_label" text NOT NULL,
|
|
56
|
+
"action" text NOT NULL,
|
|
57
|
+
"subject_id" text,
|
|
58
|
+
"subject_label" text NOT NULL,
|
|
59
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
60
|
+
CONSTRAINT "audit_events_action_valid" CHECK ("audit_events"."action" in ('user-created', 'user-deleted', 'agent-changed', 'provider-credential-changed', 'api-key-created', 'api-key-revoked', 'connector-changed', 'permission-changed', 'runtime-profile-changed', 'project-created', 'project-deleted', 'session-published', 'public-link-revoked', 'runnable-link-stopped', 'public-sharing-policy-changed')),
|
|
61
|
+
CONSTRAINT "audit_events_actor_label_not_blank" CHECK (length(btrim("audit_events"."actor_label")) > 0),
|
|
62
|
+
CONSTRAINT "audit_events_subject_label_not_blank" CHECK (length(btrim("audit_events"."subject_label")) > 0),
|
|
63
|
+
CONSTRAINT "audit_events_subject_id_shape" CHECK ("audit_events"."subject_id" is null or "audit_events"."subject_id" ~ '^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$')
|
|
64
|
+
);
|
|
65
|
+
--> statement-breakpoint
|
|
66
|
+
CREATE TABLE "files" (
|
|
67
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
68
|
+
"workspace_id" uuid NOT NULL,
|
|
69
|
+
"path" text NOT NULL,
|
|
70
|
+
"kind" text NOT NULL,
|
|
71
|
+
"storage_key" text,
|
|
72
|
+
"size_bytes" bigint DEFAULT 0 NOT NULL,
|
|
73
|
+
"content_type" text,
|
|
74
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
75
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
76
|
+
CONSTRAINT "files_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
77
|
+
CONSTRAINT "files_kind_valid" CHECK ("files"."kind" in ('file', 'folder')),
|
|
78
|
+
CONSTRAINT "files_path_shape" CHECK ("files"."path" ~ '^[^/[:cntrl:]]+(/[^/[:cntrl:]]+)*$'),
|
|
79
|
+
CONSTRAINT "files_path_no_dot_segments" CHECK ("files"."path" !~ '(^|/)[.][.]?(/|$)'),
|
|
80
|
+
CONSTRAINT "files_storage_key_iff_file" CHECK (("files"."kind" = 'file') = ("files"."storage_key" is not null)),
|
|
81
|
+
CONSTRAINT "files_storage_key_not_blank" CHECK ("files"."storage_key" is null or length(btrim("files"."storage_key")) > 0),
|
|
82
|
+
CONSTRAINT "files_size_non_negative" CHECK ("files"."size_bytes" >= 0),
|
|
83
|
+
CONSTRAINT "files_folder_has_no_content" CHECK ("files"."kind" <> 'folder' or ("files"."size_bytes" = 0 and "files"."content_type" is null))
|
|
84
|
+
);
|
|
85
|
+
--> statement-breakpoint
|
|
86
|
+
CREATE TABLE "mcp_servers" (
|
|
87
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
88
|
+
"workspace_id" uuid NOT NULL,
|
|
89
|
+
"name" text NOT NULL,
|
|
90
|
+
"transport" text NOT NULL,
|
|
91
|
+
"command" text,
|
|
92
|
+
"args" jsonb,
|
|
93
|
+
"url" text,
|
|
94
|
+
"auth_type" text DEFAULT 'none' NOT NULL,
|
|
95
|
+
"credential_secret_id" uuid,
|
|
96
|
+
"enabled" boolean DEFAULT true NOT NULL,
|
|
97
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
98
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
99
|
+
CONSTRAINT "mcp_servers_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
100
|
+
CONSTRAINT "mcp_servers_transport_valid" CHECK ("mcp_servers"."transport" in ('stdio', 'http', 'sse')),
|
|
101
|
+
CONSTRAINT "mcp_servers_auth_type_valid" CHECK ("mcp_servers"."auth_type" in ('none', 'api-key', 'bearer', 'oauth')),
|
|
102
|
+
CONSTRAINT "mcp_servers_stdio_has_command" CHECK (("mcp_servers"."transport" = 'stdio') = ("mcp_servers"."command" is not null)),
|
|
103
|
+
CONSTRAINT "mcp_servers_remote_has_url" CHECK (("mcp_servers"."transport" in ('http', 'sse')) = ("mcp_servers"."url" is not null)),
|
|
104
|
+
CONSTRAINT "mcp_servers_args_are_stdio_only" CHECK ("mcp_servers"."args" is null or "mcp_servers"."transport" = 'stdio'),
|
|
105
|
+
CONSTRAINT "mcp_servers_command_not_blank" CHECK ("mcp_servers"."command" is null or length(btrim("mcp_servers"."command")) > 0),
|
|
106
|
+
CONSTRAINT "mcp_servers_url_shape" CHECK ("mcp_servers"."url" is null or "mcp_servers"."url" ~ '^https?://'),
|
|
107
|
+
CONSTRAINT "mcp_servers_credential_required" CHECK (("mcp_servers"."auth_type" in ('api-key', 'bearer', 'oauth')) = ("mcp_servers"."credential_secret_id" is not null)),
|
|
108
|
+
CONSTRAINT "mcp_servers_name_not_blank" CHECK (length(btrim("mcp_servers"."name")) > 0)
|
|
109
|
+
);
|
|
110
|
+
--> statement-breakpoint
|
|
111
|
+
CREATE TABLE "secrets" (
|
|
112
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
113
|
+
"workspace_id" uuid NOT NULL,
|
|
114
|
+
"name" text NOT NULL,
|
|
115
|
+
"algorithm" text NOT NULL,
|
|
116
|
+
"master_key_id" text NOT NULL,
|
|
117
|
+
"wrapped_data_key" "bytea" NOT NULL,
|
|
118
|
+
"wrapped_data_key_nonce" "bytea" NOT NULL,
|
|
119
|
+
"wrapped_data_key_tag" "bytea" NOT NULL,
|
|
120
|
+
"ciphertext" "bytea" NOT NULL,
|
|
121
|
+
"ciphertext_nonce" "bytea" NOT NULL,
|
|
122
|
+
"ciphertext_tag" "bytea" NOT NULL,
|
|
123
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
124
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
125
|
+
CONSTRAINT "secrets_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
126
|
+
CONSTRAINT "secrets_name_shape" CHECK ("secrets"."name" ~ '^[A-Z][A-Z0-9_]{0,127}$'),
|
|
127
|
+
CONSTRAINT "secrets_master_key_id_not_blank" CHECK (length(btrim("secrets"."master_key_id")) > 0),
|
|
128
|
+
CONSTRAINT "secrets_algorithm_valid" CHECK ("secrets"."algorithm" in ('aes-256-gcm')),
|
|
129
|
+
CONSTRAINT "secrets_wrapped_data_key_size" CHECK (octet_length("secrets"."wrapped_data_key") = 32),
|
|
130
|
+
CONSTRAINT "secrets_nonce_sizes" CHECK (octet_length("secrets"."wrapped_data_key_nonce") = 12 and octet_length("secrets"."ciphertext_nonce") = 12),
|
|
131
|
+
CONSTRAINT "secrets_tag_sizes" CHECK (octet_length("secrets"."wrapped_data_key_tag") = 16 and octet_length("secrets"."ciphertext_tag") = 16),
|
|
132
|
+
CONSTRAINT "secrets_ciphertext_not_empty" CHECK (octet_length("secrets"."ciphertext") > 0)
|
|
133
|
+
);
|
|
134
|
+
--> statement-breakpoint
|
|
135
|
+
CREATE TABLE "skills" (
|
|
136
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
137
|
+
"workspace_id" uuid NOT NULL,
|
|
138
|
+
"name" text NOT NULL,
|
|
139
|
+
"skill_md" text NOT NULL,
|
|
140
|
+
"enabled" boolean DEFAULT true NOT NULL,
|
|
141
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
142
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
143
|
+
CONSTRAINT "skills_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
144
|
+
CONSTRAINT "skills_name_shape" CHECK ("skills"."name" ~ '^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$'),
|
|
145
|
+
CONSTRAINT "skills_skill_md_not_blank" CHECK (length(btrim("skills"."skill_md")) > 0)
|
|
146
|
+
);
|
|
147
|
+
--> statement-breakpoint
|
|
148
|
+
ALTER TABLE "agent_files" ADD CONSTRAINT "agent_files_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
149
|
+
ALTER TABLE "agent_files" ADD CONSTRAINT "agent_files_agent_workspace_fk" FOREIGN KEY ("agent_id","workspace_id") REFERENCES "public"."agents"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
150
|
+
ALTER TABLE "agent_files" ADD CONSTRAINT "agent_files_file_workspace_fk" FOREIGN KEY ("file_id","workspace_id") REFERENCES "public"."files"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
151
|
+
ALTER TABLE "agent_mcp_servers" ADD CONSTRAINT "agent_mcp_servers_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
152
|
+
ALTER TABLE "agent_mcp_servers" ADD CONSTRAINT "agent_mcp_servers_agent_workspace_fk" FOREIGN KEY ("agent_id","workspace_id") REFERENCES "public"."agents"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
153
|
+
ALTER TABLE "agent_mcp_servers" ADD CONSTRAINT "agent_mcp_servers_server_workspace_fk" FOREIGN KEY ("mcp_server_id","workspace_id") REFERENCES "public"."mcp_servers"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
154
|
+
ALTER TABLE "agent_skills" ADD CONSTRAINT "agent_skills_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
155
|
+
ALTER TABLE "agent_skills" ADD CONSTRAINT "agent_skills_agent_workspace_fk" FOREIGN KEY ("agent_id","workspace_id") REFERENCES "public"."agents"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
156
|
+
ALTER TABLE "agent_skills" ADD CONSTRAINT "agent_skills_skill_workspace_fk" FOREIGN KEY ("skill_id","workspace_id") REFERENCES "public"."skills"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
157
|
+
ALTER TABLE "api_keys" ADD CONSTRAINT "api_keys_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
158
|
+
ALTER TABLE "audit_events" ADD CONSTRAINT "audit_events_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
159
|
+
ALTER TABLE "audit_events" ADD CONSTRAINT "audit_events_actor_user_id_users_id_fk" FOREIGN KEY ("actor_user_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
160
|
+
ALTER TABLE "files" ADD CONSTRAINT "files_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
161
|
+
ALTER TABLE "mcp_servers" ADD CONSTRAINT "mcp_servers_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
162
|
+
ALTER TABLE "mcp_servers" ADD CONSTRAINT "mcp_servers_credential_secret_workspace_fk" FOREIGN KEY ("credential_secret_id","workspace_id") REFERENCES "public"."secrets"("id","workspace_id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint
|
|
163
|
+
ALTER TABLE "secrets" ADD CONSTRAINT "secrets_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
164
|
+
ALTER TABLE "skills" ADD CONSTRAINT "skills_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
165
|
+
CREATE INDEX "agent_files_file_idx" ON "agent_files" USING btree ("file_id");--> statement-breakpoint
|
|
166
|
+
CREATE INDEX "agent_mcp_servers_server_idx" ON "agent_mcp_servers" USING btree ("mcp_server_id");--> statement-breakpoint
|
|
167
|
+
CREATE INDEX "agent_skills_skill_idx" ON "agent_skills" USING btree ("skill_id");--> statement-breakpoint
|
|
168
|
+
CREATE UNIQUE INDEX "api_keys_workspace_name_key" ON "api_keys" USING btree ("workspace_id","name");--> statement-breakpoint
|
|
169
|
+
CREATE UNIQUE INDEX "api_keys_key_hash_key" ON "api_keys" USING btree ("key_hash");--> statement-breakpoint
|
|
170
|
+
CREATE INDEX "api_keys_workspace_revoked_idx" ON "api_keys" USING btree ("workspace_id","revoked_at");--> statement-breakpoint
|
|
171
|
+
CREATE INDEX "audit_events_workspace_created_idx" ON "audit_events" USING btree ("workspace_id","created_at");--> statement-breakpoint
|
|
172
|
+
CREATE INDEX "audit_events_actor_idx" ON "audit_events" USING btree ("actor_user_id");--> statement-breakpoint
|
|
173
|
+
CREATE UNIQUE INDEX "files_workspace_path_key" ON "files" USING btree ("workspace_id","path");--> statement-breakpoint
|
|
174
|
+
CREATE UNIQUE INDEX "mcp_servers_workspace_name_key" ON "mcp_servers" USING btree ("workspace_id","name");--> statement-breakpoint
|
|
175
|
+
CREATE INDEX "mcp_servers_credential_secret_idx" ON "mcp_servers" USING btree ("credential_secret_id");--> statement-breakpoint
|
|
176
|
+
CREATE UNIQUE INDEX "secrets_workspace_name_key" ON "secrets" USING btree ("workspace_id","name");--> statement-breakpoint
|
|
177
|
+
CREATE UNIQUE INDEX "skills_workspace_name_key" ON "skills" USING btree ("workspace_id","name");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
CREATE TABLE "runtime_profiles" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"workspace_id" uuid NOT NULL,
|
|
4
|
+
"name" text NOT NULL,
|
|
5
|
+
"driver" text NOT NULL,
|
|
6
|
+
"runtime_connection_id" uuid,
|
|
7
|
+
"cpu" integer,
|
|
8
|
+
"memory_mb" integer,
|
|
9
|
+
"disk_mb" integer,
|
|
10
|
+
"network_policy" text NOT NULL,
|
|
11
|
+
"allowed_domains" jsonb,
|
|
12
|
+
"filesystem" text NOT NULL,
|
|
13
|
+
"persist_paths" jsonb,
|
|
14
|
+
"timeout_seconds" integer,
|
|
15
|
+
"idle_timeout_seconds" integer,
|
|
16
|
+
"driver_config" jsonb,
|
|
17
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
18
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
19
|
+
CONSTRAINT "runtime_profiles_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
20
|
+
CONSTRAINT "runtime_profiles_name_not_blank" CHECK (length(btrim("runtime_profiles"."name")) > 0),
|
|
21
|
+
CONSTRAINT "runtime_profiles_driver_valid" CHECK ("runtime_profiles"."driver" in ('local', 'sandbox-runtime', 'docker', 'kubernetes', 'gke-agent-sandbox', 'aca-sessions', 'aws-agentcore', 'aws-ecs', 'cloud-run-sandbox', 'external')),
|
|
22
|
+
CONSTRAINT "runtime_profiles_network_policy_valid" CHECK ("runtime_profiles"."network_policy" in ('none', 'restricted', 'open')),
|
|
23
|
+
CONSTRAINT "runtime_profiles_filesystem_valid" CHECK ("runtime_profiles"."filesystem" in ('read-only', 'read-write'))
|
|
24
|
+
);
|
|
25
|
+
--> statement-breakpoint
|
|
26
|
+
ALTER TABLE "agents" ADD COLUMN "runtime_profile_id" uuid;--> statement-breakpoint
|
|
27
|
+
ALTER TABLE "runtime_profiles" ADD CONSTRAINT "runtime_profiles_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
28
|
+
ALTER TABLE "runtime_profiles" ADD CONSTRAINT "runtime_profiles_runtime_connection_id_secrets_id_fk" FOREIGN KEY ("runtime_connection_id") REFERENCES "public"."secrets"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
29
|
+
ALTER TABLE "runtime_profiles" ADD CONSTRAINT "runtime_profiles_runtime_connection_workspace_fk" FOREIGN KEY ("runtime_connection_id","workspace_id") REFERENCES "public"."secrets"("id","workspace_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
30
|
+
CREATE UNIQUE INDEX "runtime_profiles_workspace_name_key" ON "runtime_profiles" USING btree ("workspace_id","name");--> statement-breakpoint
|
|
31
|
+
CREATE INDEX "runtime_profiles_runtime_connection_idx" ON "runtime_profiles" USING btree ("runtime_connection_id");--> statement-breakpoint
|
|
32
|
+
ALTER TABLE "agents" ADD CONSTRAINT "agents_runtime_profile_id_runtime_profiles_id_fk" FOREIGN KEY ("runtime_profile_id") REFERENCES "public"."runtime_profiles"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
33
|
+
ALTER TABLE "agents" ADD CONSTRAINT "agents_runtime_profile_workspace_fk" FOREIGN KEY ("runtime_profile_id","workspace_id") REFERENCES "public"."runtime_profiles"("id","workspace_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
34
|
+
CREATE INDEX "agents_runtime_profile_idx" ON "agents" USING btree ("runtime_profile_id");
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
CREATE TABLE "project_files" (
|
|
2
|
+
"workspace_id" uuid NOT NULL,
|
|
3
|
+
"project_id" uuid NOT NULL,
|
|
4
|
+
"file_id" uuid NOT NULL,
|
|
5
|
+
CONSTRAINT "project_files_project_id_file_id_pk" PRIMARY KEY("project_id","file_id")
|
|
6
|
+
);
|
|
7
|
+
--> statement-breakpoint
|
|
8
|
+
CREATE TABLE "project_mcp_servers" (
|
|
9
|
+
"workspace_id" uuid NOT NULL,
|
|
10
|
+
"project_id" uuid NOT NULL,
|
|
11
|
+
"mcp_server_id" uuid NOT NULL,
|
|
12
|
+
CONSTRAINT "project_mcp_servers_project_id_mcp_server_id_pk" PRIMARY KEY("project_id","mcp_server_id")
|
|
13
|
+
);
|
|
14
|
+
--> statement-breakpoint
|
|
15
|
+
CREATE TABLE "projects" (
|
|
16
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
17
|
+
"workspace_id" uuid NOT NULL,
|
|
18
|
+
"name" text NOT NULL,
|
|
19
|
+
"instructions" text,
|
|
20
|
+
"default_agent_id" uuid,
|
|
21
|
+
"visibility" text DEFAULT 'private' NOT NULL,
|
|
22
|
+
"created_by" uuid NOT NULL,
|
|
23
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
24
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
25
|
+
CONSTRAINT "projects_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
26
|
+
CONSTRAINT "projects_visibility_valid" CHECK ("projects"."visibility" in ('private', 'workspace', 'public')),
|
|
27
|
+
CONSTRAINT "projects_name_not_blank" CHECK (length(btrim("projects"."name")) > 0)
|
|
28
|
+
);
|
|
29
|
+
--> statement-breakpoint
|
|
30
|
+
CREATE TABLE "share_views" (
|
|
31
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
32
|
+
"workspace_id" uuid NOT NULL,
|
|
33
|
+
"share_id" uuid NOT NULL,
|
|
34
|
+
"visitor_key" text,
|
|
35
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
36
|
+
);
|
|
37
|
+
--> statement-breakpoint
|
|
38
|
+
CREATE TABLE "shares" (
|
|
39
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
40
|
+
"workspace_id" uuid NOT NULL,
|
|
41
|
+
"token" text NOT NULL,
|
|
42
|
+
"subject_type" text NOT NULL,
|
|
43
|
+
"subject_id" text NOT NULL,
|
|
44
|
+
"subject_label" text NOT NULL,
|
|
45
|
+
"visibility" text NOT NULL,
|
|
46
|
+
"mode" text,
|
|
47
|
+
"snapshot" jsonb,
|
|
48
|
+
"include" jsonb DEFAULT '{}'::jsonb NOT NULL,
|
|
49
|
+
"budget_cap_usd" numeric(12, 4),
|
|
50
|
+
"spent_usd" numeric(12, 4) DEFAULT '0' NOT NULL,
|
|
51
|
+
"stopped" boolean DEFAULT false NOT NULL,
|
|
52
|
+
"expires_at" timestamp with time zone,
|
|
53
|
+
"passphrase_hash" text,
|
|
54
|
+
"created_by" uuid NOT NULL,
|
|
55
|
+
"revoked_at" timestamp with time zone,
|
|
56
|
+
"suspended_at" timestamp with time zone,
|
|
57
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
58
|
+
CONSTRAINT "shares_id_workspace_key" UNIQUE("id","workspace_id"),
|
|
59
|
+
CONSTRAINT "shares_token_key" UNIQUE("token"),
|
|
60
|
+
CONSTRAINT "shares_subject_type_valid" CHECK ("shares"."subject_type" in ('agent', 'session', 'project', 'skill')),
|
|
61
|
+
CONSTRAINT "shares_visibility_valid" CHECK ("shares"."visibility" in ('private', 'workspace', 'public')),
|
|
62
|
+
CONSTRAINT "shares_mode_valid" CHECK ("shares"."mode" is null or "shares"."mode" in ('definition', 'runnable')),
|
|
63
|
+
CONSTRAINT "shares_agent_mode_only" CHECK ("shares"."mode" is null or "shares"."subject_type" = 'agent'),
|
|
64
|
+
CONSTRAINT "shares_budget_nonnegative" CHECK ("shares"."budget_cap_usd" is null or "shares"."budget_cap_usd" >= 0),
|
|
65
|
+
CONSTRAINT "shares_spend_nonnegative" CHECK ("shares"."spent_usd" >= 0),
|
|
66
|
+
CONSTRAINT "shares_subject_id_not_blank" CHECK (length(btrim("shares"."subject_id")) > 0)
|
|
67
|
+
);
|
|
68
|
+
--> statement-breakpoint
|
|
69
|
+
ALTER TABLE "sessions" ADD COLUMN "project_id" uuid;--> statement-breakpoint
|
|
70
|
+
ALTER TABLE "project_files" ADD CONSTRAINT "project_files_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
71
|
+
ALTER TABLE "project_files" ADD CONSTRAINT "project_files_project_workspace_fk" FOREIGN KEY ("project_id","workspace_id") REFERENCES "public"."projects"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
72
|
+
ALTER TABLE "project_files" ADD CONSTRAINT "project_files_file_workspace_fk" FOREIGN KEY ("file_id","workspace_id") REFERENCES "public"."files"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
73
|
+
ALTER TABLE "project_mcp_servers" ADD CONSTRAINT "project_mcp_servers_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
74
|
+
ALTER TABLE "project_mcp_servers" ADD CONSTRAINT "project_mcp_servers_project_workspace_fk" FOREIGN KEY ("project_id","workspace_id") REFERENCES "public"."projects"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
75
|
+
ALTER TABLE "project_mcp_servers" ADD CONSTRAINT "project_mcp_servers_server_workspace_fk" FOREIGN KEY ("mcp_server_id","workspace_id") REFERENCES "public"."mcp_servers"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
76
|
+
ALTER TABLE "projects" ADD CONSTRAINT "projects_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
77
|
+
ALTER TABLE "projects" ADD CONSTRAINT "projects_created_by_users_id_fk" FOREIGN KEY ("created_by") REFERENCES "public"."users"("id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint
|
|
78
|
+
ALTER TABLE "projects" ADD CONSTRAINT "projects_default_agent_workspace_fk" FOREIGN KEY ("default_agent_id","workspace_id") REFERENCES "public"."agents"("id","workspace_id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
79
|
+
ALTER TABLE "share_views" ADD CONSTRAINT "share_views_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
80
|
+
ALTER TABLE "share_views" ADD CONSTRAINT "share_views_share_workspace_fk" FOREIGN KEY ("share_id","workspace_id") REFERENCES "public"."shares"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
81
|
+
ALTER TABLE "shares" ADD CONSTRAINT "shares_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
82
|
+
ALTER TABLE "shares" ADD CONSTRAINT "shares_created_by_users_id_fk" FOREIGN KEY ("created_by") REFERENCES "public"."users"("id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint
|
|
83
|
+
ALTER TABLE "shares" ADD CONSTRAINT "shares_creator_workspace_fk" FOREIGN KEY ("workspace_id","created_by") REFERENCES "public"."memberships"("workspace_id","user_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
84
|
+
CREATE INDEX "project_files_workspace_idx" ON "project_files" USING btree ("workspace_id");--> statement-breakpoint
|
|
85
|
+
CREATE INDEX "project_mcp_servers_workspace_idx" ON "project_mcp_servers" USING btree ("workspace_id");--> statement-breakpoint
|
|
86
|
+
CREATE UNIQUE INDEX "projects_workspace_name_key" ON "projects" USING btree ("workspace_id","name");--> statement-breakpoint
|
|
87
|
+
CREATE INDEX "projects_default_agent_idx" ON "projects" USING btree ("default_agent_id");--> statement-breakpoint
|
|
88
|
+
CREATE INDEX "share_views_workspace_share_created_idx" ON "share_views" USING btree ("workspace_id","share_id","created_at");--> statement-breakpoint
|
|
89
|
+
CREATE INDEX "shares_workspace_created_idx" ON "shares" USING btree ("workspace_id","created_at");--> statement-breakpoint
|
|
90
|
+
ALTER TABLE "sessions" ADD CONSTRAINT "sessions_project_workspace_fk" FOREIGN KEY ("project_id","workspace_id") REFERENCES "public"."projects"("id","workspace_id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
91
|
+
CREATE INDEX "sessions_project_idx" ON "sessions" USING btree ("project_id");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
CREATE TABLE "run_events" (
|
|
2
|
+
"run_id" uuid NOT NULL,
|
|
3
|
+
"workspace_id" uuid NOT NULL,
|
|
4
|
+
"sequence" bigint NOT NULL,
|
|
5
|
+
"type" text NOT NULL,
|
|
6
|
+
"data" jsonb NOT NULL,
|
|
7
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
8
|
+
CONSTRAINT "run_events_pkey" PRIMARY KEY("run_id","sequence")
|
|
9
|
+
);
|
|
10
|
+
--> statement-breakpoint
|
|
11
|
+
CREATE UNIQUE INDEX "runs_id_workspace_unique" ON "runs" USING btree ("id","workspace_id");
|
|
12
|
+
--> statement-breakpoint
|
|
13
|
+
ALTER TABLE "run_events" ADD CONSTRAINT "run_events_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
14
|
+
ALTER TABLE "run_events" ADD CONSTRAINT "run_events_run_workspace_fk" FOREIGN KEY ("run_id","workspace_id") REFERENCES "public"."runs"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
15
|
+
CREATE INDEX "run_events_workspace_sequence_idx" ON "run_events" USING btree ("workspace_id","run_id","sequence");--> statement-breakpoint
|
|
16
|
+
CREATE INDEX "run_events_run_sequence_idx" ON "run_events" USING btree ("run_id","sequence");
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
CREATE TABLE "run_tokens" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"run_id" uuid NOT NULL,
|
|
4
|
+
"workspace_id" uuid NOT NULL,
|
|
5
|
+
"token_hash" text NOT NULL,
|
|
6
|
+
"expires_at" timestamp with time zone NOT NULL,
|
|
7
|
+
"revoked_at" timestamp with time zone,
|
|
8
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
9
|
+
CONSTRAINT "run_tokens_expiry_after_created" CHECK ("run_tokens"."expires_at" > "run_tokens"."created_at"),
|
|
10
|
+
CONSTRAINT "run_tokens_revoked_after_created" CHECK ("run_tokens"."revoked_at" is null or "run_tokens"."revoked_at" >= "run_tokens"."created_at")
|
|
11
|
+
);
|
|
12
|
+
--> statement-breakpoint
|
|
13
|
+
CREATE TABLE "session_messages" (
|
|
14
|
+
"workspace_id" uuid NOT NULL,
|
|
15
|
+
"project_key" text NOT NULL,
|
|
16
|
+
"session_id" uuid NOT NULL,
|
|
17
|
+
"subpath" text DEFAULT '' NOT NULL,
|
|
18
|
+
"sequence" bigint NOT NULL,
|
|
19
|
+
"position" bigint NOT NULL,
|
|
20
|
+
"entry_uuid" text,
|
|
21
|
+
"entry" jsonb NOT NULL,
|
|
22
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
23
|
+
CONSTRAINT "session_messages_pkey" PRIMARY KEY("workspace_id","project_key","session_id","subpath","sequence")
|
|
24
|
+
);
|
|
25
|
+
--> statement-breakpoint
|
|
26
|
+
CREATE TABLE "session_transcripts" (
|
|
27
|
+
"workspace_id" uuid NOT NULL,
|
|
28
|
+
"project_key" text NOT NULL,
|
|
29
|
+
"session_id" uuid NOT NULL,
|
|
30
|
+
"subpath" text DEFAULT '' NOT NULL,
|
|
31
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
32
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
33
|
+
CONSTRAINT "session_transcripts_pkey" PRIMARY KEY("workspace_id","project_key","session_id","subpath")
|
|
34
|
+
);
|
|
35
|
+
--> statement-breakpoint
|
|
36
|
+
ALTER TABLE "run_tokens" ADD CONSTRAINT "run_tokens_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
37
|
+
ALTER TABLE "run_tokens" ADD CONSTRAINT "run_tokens_run_workspace_fk" FOREIGN KEY ("run_id","workspace_id") REFERENCES "public"."runs"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
38
|
+
ALTER TABLE "session_messages" ADD CONSTRAINT "session_messages_transcript_fk" FOREIGN KEY ("workspace_id","project_key","session_id","subpath") REFERENCES "public"."session_transcripts"("workspace_id","project_key","session_id","subpath") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
39
|
+
ALTER TABLE "session_transcripts" ADD CONSTRAINT "session_transcripts_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
40
|
+
CREATE UNIQUE INDEX "run_tokens_hash_key" ON "run_tokens" USING btree ("token_hash");--> statement-breakpoint
|
|
41
|
+
CREATE INDEX "run_tokens_workspace_run_idx" ON "run_tokens" USING btree ("workspace_id","run_id");--> statement-breakpoint
|
|
42
|
+
CREATE INDEX "run_tokens_active_idx" ON "run_tokens" USING btree ("workspace_id","run_id","revoked_at","expires_at");--> statement-breakpoint
|
|
43
|
+
CREATE INDEX "session_messages_key_sequence_idx" ON "session_messages" USING btree ("workspace_id","project_key","session_id","subpath","sequence");--> statement-breakpoint
|
|
44
|
+
CREATE INDEX "session_messages_key_uuid_idx" ON "session_messages" USING btree ("workspace_id","project_key","session_id","subpath","entry_uuid","sequence");--> statement-breakpoint
|
|
45
|
+
CREATE INDEX "session_transcripts_workspace_updated_idx" ON "session_transcripts" USING btree ("workspace_id","updated_at");--> statement-breakpoint
|
|
46
|
+
CREATE INDEX "session_transcripts_project_updated_idx" ON "session_transcripts" USING btree ("project_key","updated_at");
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
ALTER TABLE "session_messages" ADD CONSTRAINT "session_messages_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "session_transcripts" ADD CONSTRAINT "session_transcripts_session_workspace_fk" FOREIGN KEY ("session_id","workspace_id") REFERENCES "public"."sessions"("id","workspace_id") ON DELETE cascade ON UPDATE no action;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "workspaces" ADD COLUMN "public_sharing_enabled" boolean DEFAULT true NOT NULL;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
CREATE TABLE "run_usage_records" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"workspace_id" uuid NOT NULL,
|
|
4
|
+
"run_id" uuid NOT NULL,
|
|
5
|
+
"provider_response_id" text NOT NULL,
|
|
6
|
+
"provider" text NOT NULL,
|
|
7
|
+
"model" text NOT NULL,
|
|
8
|
+
"input_tokens" integer NOT NULL,
|
|
9
|
+
"output_tokens" integer NOT NULL,
|
|
10
|
+
"cache_read_input_tokens" integer DEFAULT 0 NOT NULL,
|
|
11
|
+
"cache_creation_input_tokens" integer DEFAULT 0 NOT NULL,
|
|
12
|
+
"tool_calls" integer DEFAULT 0 NOT NULL,
|
|
13
|
+
"cost_usd" numeric(14, 6) NOT NULL,
|
|
14
|
+
"cost_currency" text DEFAULT 'USD' NOT NULL,
|
|
15
|
+
"price_table_version" text NOT NULL,
|
|
16
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
17
|
+
CONSTRAINT "run_usage_records_counters_non_negative" CHECK ("run_usage_records"."input_tokens" >= 0 and "run_usage_records"."output_tokens" >= 0 and "run_usage_records"."cache_read_input_tokens" >= 0 and "run_usage_records"."cache_creation_input_tokens" >= 0 and "run_usage_records"."tool_calls" >= 0 and "run_usage_records"."cost_usd" >= 0),
|
|
18
|
+
CONSTRAINT "run_usage_records_currency_usd" CHECK ("run_usage_records"."cost_currency" = 'USD')
|
|
19
|
+
);
|
|
20
|
+
--> statement-breakpoint
|
|
21
|
+
ALTER TABLE "runs" DROP CONSTRAINT "runs_counters_non_negative";--> statement-breakpoint
|
|
22
|
+
ALTER TABLE "runs" ADD COLUMN "cache_read_input_tokens" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
|
|
23
|
+
ALTER TABLE "runs" ADD COLUMN "cache_creation_input_tokens" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
|
|
24
|
+
ALTER TABLE "runs" ADD COLUMN "cost_currency" text DEFAULT 'USD' NOT NULL;--> statement-breakpoint
|
|
25
|
+
ALTER TABLE "runs" ADD COLUMN "price_table_version" text;--> statement-breakpoint
|
|
26
|
+
ALTER TABLE "run_usage_records" ADD CONSTRAINT "run_usage_records_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
27
|
+
ALTER TABLE "run_usage_records" ADD CONSTRAINT "run_usage_records_run_workspace_fk" FOREIGN KEY ("run_id","workspace_id") REFERENCES "public"."runs"("id","workspace_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
28
|
+
CREATE UNIQUE INDEX "run_usage_records_response_unique" ON "run_usage_records" USING btree ("run_id","provider_response_id");--> statement-breakpoint
|
|
29
|
+
CREATE INDEX "run_usage_records_workspace_run_idx" ON "run_usage_records" USING btree ("workspace_id","run_id");--> statement-breakpoint
|
|
30
|
+
ALTER TABLE "runs" ADD CONSTRAINT "runs_cost_currency_usd" CHECK ("runs"."cost_currency" = 'USD');--> statement-breakpoint
|
|
31
|
+
ALTER TABLE "runs" ADD CONSTRAINT "runs_counters_non_negative" CHECK ("runs"."input_tokens" >= 0 and "runs"."output_tokens" >= 0 and "runs"."cache_read_input_tokens" >= 0 and "runs"."cache_creation_input_tokens" >= 0 and "runs"."tool_calls" >= 0 and "runs"."cost_usd" >= 0);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
ALTER TABLE "runtime_profiles" DROP CONSTRAINT "runtime_profiles_driver_valid";--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "runtime_profiles" ADD CONSTRAINT "runtime_profiles_driver_valid" CHECK ("runtime_profiles"."driver" in ('local', 'sandbox-runtime', 'docker', 'kubernetes', 'gke-agent-sandbox', 'aca-sessions', 'aws-agentcore', 'aws-ecs', 'cloud-run-sandbox', 'cloud-run-service', 'external'));
|