@relayfx/sdk 0.0.29 → 0.0.30

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.
Files changed (31) hide show
  1. package/dist/index.js +23 -5
  2. package/dist/migrations/20260701002839_sour_cerebro/migration.sql +160 -0
  3. package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +1971 -0
  4. package/dist/migrations/20260701041134_acoustic_hulk/migration.sql +30 -0
  5. package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +2372 -0
  6. package/dist/migrations/20260701160543_condemned_stryfe/migration.sql +2 -0
  7. package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +2442 -0
  8. package/dist/migrations/20260701220315_heavy_gorgon/migration.sql +5 -0
  9. package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +2495 -0
  10. package/dist/migrations/20260701225444_polite_lord_hawal/migration.sql +24 -0
  11. package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +2821 -0
  12. package/dist/migrations/20260702030128_flaky_misty_knight/migration.sql +1 -0
  13. package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +2821 -0
  14. package/dist/migrations/20260705003847_nervous_banshee/migration.sql +11 -0
  15. package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +2954 -0
  16. package/dist/migrations/20260705012626_common_stryfe/migration.sql +31 -0
  17. package/dist/migrations/20260705012626_common_stryfe/snapshot.json +3378 -0
  18. package/dist/migrations/20260705015420_sweet_captain_marvel/migration.sql +10 -0
  19. package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +3485 -0
  20. package/dist/migrations/20260705023041_chunky_scalphunter/migration.sql +22 -0
  21. package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +3753 -0
  22. package/dist/migrations/20260705030344_short_patriot/migration.sql +11 -0
  23. package/dist/migrations/20260705030344_short_patriot/snapshot.json +3873 -0
  24. package/dist/migrations/20260705045546_heavy_ben_grimm/migration.sql +30 -0
  25. package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +4193 -0
  26. package/dist/migrations/20260706185931_regular_shadow_king/migration.sql +166 -0
  27. package/dist/migrations/20260706185931_regular_shadow_king/snapshot.json +4844 -0
  28. package/dist/migrations/20260706233300_equal_cyclops/migration.sql +3 -0
  29. package/dist/migrations/20260706233300_equal_cyclops/snapshot.json +4883 -0
  30. package/dist/types/runtime/runner/runner-runtime-service.d.ts +10 -9
  31. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ CREATE TABLE "relay_workspace_leases" (
2
+ "id" text PRIMARY KEY,
3
+ "execution_id" text NOT NULL,
4
+ "provider_key" text NOT NULL,
5
+ "sandbox_ref" text,
6
+ "latest_snapshot_ref" text,
7
+ "status" text NOT NULL,
8
+ "resume_strategy" text NOT NULL,
9
+ "region" text,
10
+ "request_json" jsonb,
11
+ "metadata_json" jsonb DEFAULT '{}' NOT NULL,
12
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
13
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
14
+ );
15
+ --> statement-breakpoint
16
+ CREATE TABLE "relay_workspace_snapshots" (
17
+ "id" text PRIMARY KEY,
18
+ "lease_id" text NOT NULL,
19
+ "execution_id" text NOT NULL,
20
+ "reason" text NOT NULL,
21
+ "snapshot_ref" text NOT NULL,
22
+ "metadata_json" jsonb DEFAULT '{}' NOT NULL,
23
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL
24
+ );
25
+ --> statement-breakpoint
26
+ CREATE UNIQUE INDEX "uq_relay_workspace_leases_active_execution" ON "relay_workspace_leases" ("execution_id") WHERE "status" not in ('released', 'failed');--> statement-breakpoint
27
+ CREATE INDEX "idx_relay_workspace_leases_execution" ON "relay_workspace_leases" ("execution_id");--> statement-breakpoint
28
+ CREATE INDEX "idx_relay_workspace_leases_status_updated" ON "relay_workspace_leases" ("status","updated_at");--> statement-breakpoint
29
+ CREATE INDEX "idx_relay_workspace_snapshots_lease" ON "relay_workspace_snapshots" ("lease_id","created_at");--> statement-breakpoint
30
+ CREATE INDEX "idx_relay_workspace_snapshots_execution" ON "relay_workspace_snapshots" ("execution_id","created_at");