@panorama-ai/gateway 2.30.279 → 2.31.37

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 (123) hide show
  1. package/README.md +51 -65
  2. package/dist/cli-args.d.ts +0 -2
  3. package/dist/cli-args.d.ts.map +1 -1
  4. package/dist/cli-args.js +0 -8
  5. package/dist/cli-args.js.map +1 -1
  6. package/dist/database.types.d.ts +119 -760
  7. package/dist/database.types.d.ts.map +1 -1
  8. package/dist/database.types.js.map +1 -1
  9. package/dist/drive-sync/config.d.ts +14 -0
  10. package/dist/drive-sync/config.d.ts.map +1 -0
  11. package/dist/drive-sync/config.js +45 -0
  12. package/dist/drive-sync/config.js.map +1 -0
  13. package/dist/drive-sync/drive-sync-filesystem.d.ts.map +1 -0
  14. package/dist/drive-sync/drive-sync-filesystem.js.map +1 -0
  15. package/dist/drive-sync/drive-sync-planner.d.ts.map +1 -0
  16. package/dist/drive-sync/drive-sync-planner.js.map +1 -0
  17. package/dist/drive-sync/drive-sync-remote-planner.d.ts.map +1 -0
  18. package/dist/drive-sync/drive-sync-remote-planner.js.map +1 -0
  19. package/dist/{managed-runtime → drive-sync}/drive-sync-scheduler.d.ts +12 -11
  20. package/dist/drive-sync/drive-sync-scheduler.d.ts.map +1 -0
  21. package/dist/{managed-runtime → drive-sync}/drive-sync-scheduler.js +7 -5
  22. package/dist/drive-sync/drive-sync-scheduler.js.map +1 -0
  23. package/dist/drive-sync/drive-sync-state-applier.d.ts.map +1 -0
  24. package/dist/drive-sync/drive-sync-state-applier.js.map +1 -0
  25. package/dist/drive-sync/drive-sync-transfer.d.ts.map +1 -0
  26. package/dist/drive-sync/drive-sync-transfer.js.map +1 -0
  27. package/dist/{managed-runtime → drive-sync}/drive-sync.d.ts +29 -12
  28. package/dist/drive-sync/drive-sync.d.ts.map +1 -0
  29. package/dist/{managed-runtime → drive-sync}/drive-sync.js +64 -28
  30. package/dist/drive-sync/drive-sync.js.map +1 -0
  31. package/dist/{managed-runtime → drive-sync}/runtime-utils.d.ts +2 -2
  32. package/dist/drive-sync/runtime-utils.d.ts.map +1 -0
  33. package/dist/{managed-runtime → drive-sync}/runtime-utils.js +1 -1
  34. package/dist/drive-sync/runtime-utils.js.map +1 -0
  35. package/dist/gateway-local-runtime.d.ts +7 -1
  36. package/dist/gateway-local-runtime.d.ts.map +1 -1
  37. package/dist/gateway-local-runtime.js +26 -5
  38. package/dist/gateway-local-runtime.js.map +1 -1
  39. package/dist/gateway-state.d.ts +4 -0
  40. package/dist/gateway-state.d.ts.map +1 -1
  41. package/dist/gateway-state.js +6 -2
  42. package/dist/gateway-state.js.map +1 -1
  43. package/dist/index.js +2177 -3627
  44. package/dist/index.js.map +4 -4
  45. package/dist/local-runtime/drive-sync-supervisor.d.ts +14 -0
  46. package/dist/local-runtime/drive-sync-supervisor.d.ts.map +1 -0
  47. package/dist/local-runtime/drive-sync-supervisor.js +79 -0
  48. package/dist/local-runtime/drive-sync-supervisor.js.map +1 -0
  49. package/dist/local-runtime/shutdown-supervisor.d.ts +1 -0
  50. package/dist/local-runtime/shutdown-supervisor.d.ts.map +1 -1
  51. package/dist/local-runtime/shutdown-supervisor.js +5 -2
  52. package/dist/local-runtime/shutdown-supervisor.js.map +1 -1
  53. package/package.json +6 -6
  54. package/dist/managed-runtime/config.d.ts +0 -33
  55. package/dist/managed-runtime/config.d.ts.map +0 -1
  56. package/dist/managed-runtime/config.js +0 -111
  57. package/dist/managed-runtime/config.js.map +0 -1
  58. package/dist/managed-runtime/control-client.d.ts +0 -66
  59. package/dist/managed-runtime/control-client.d.ts.map +0 -1
  60. package/dist/managed-runtime/control-client.js +0 -142
  61. package/dist/managed-runtime/control-client.js.map +0 -1
  62. package/dist/managed-runtime/dependencies.d.ts +0 -19
  63. package/dist/managed-runtime/dependencies.d.ts.map +0 -1
  64. package/dist/managed-runtime/dependencies.js +0 -30
  65. package/dist/managed-runtime/dependencies.js.map +0 -1
  66. package/dist/managed-runtime/drive-sync-filesystem.d.ts.map +0 -1
  67. package/dist/managed-runtime/drive-sync-filesystem.js.map +0 -1
  68. package/dist/managed-runtime/drive-sync-planner.d.ts.map +0 -1
  69. package/dist/managed-runtime/drive-sync-planner.js.map +0 -1
  70. package/dist/managed-runtime/drive-sync-remote-planner.d.ts.map +0 -1
  71. package/dist/managed-runtime/drive-sync-remote-planner.js.map +0 -1
  72. package/dist/managed-runtime/drive-sync-scheduler.d.ts.map +0 -1
  73. package/dist/managed-runtime/drive-sync-scheduler.js.map +0 -1
  74. package/dist/managed-runtime/drive-sync-state-applier.d.ts.map +0 -1
  75. package/dist/managed-runtime/drive-sync-state-applier.js.map +0 -1
  76. package/dist/managed-runtime/drive-sync-transfer.d.ts.map +0 -1
  77. package/dist/managed-runtime/drive-sync-transfer.js.map +0 -1
  78. package/dist/managed-runtime/drive-sync.d.ts.map +0 -1
  79. package/dist/managed-runtime/drive-sync.js.map +0 -1
  80. package/dist/managed-runtime/execution-dispatcher.d.ts +0 -25
  81. package/dist/managed-runtime/execution-dispatcher.d.ts.map +0 -1
  82. package/dist/managed-runtime/execution-dispatcher.js +0 -155
  83. package/dist/managed-runtime/execution-dispatcher.js.map +0 -1
  84. package/dist/managed-runtime/heartbeat.d.ts +0 -7
  85. package/dist/managed-runtime/heartbeat.d.ts.map +0 -1
  86. package/dist/managed-runtime/heartbeat.js +0 -44
  87. package/dist/managed-runtime/heartbeat.js.map +0 -1
  88. package/dist/managed-runtime/host-state.d.ts +0 -15
  89. package/dist/managed-runtime/host-state.d.ts.map +0 -1
  90. package/dist/managed-runtime/host-state.js +0 -50
  91. package/dist/managed-runtime/host-state.js.map +0 -1
  92. package/dist/managed-runtime/realtime.d.ts +0 -25
  93. package/dist/managed-runtime/realtime.d.ts.map +0 -1
  94. package/dist/managed-runtime/realtime.js +0 -189
  95. package/dist/managed-runtime/realtime.js.map +0 -1
  96. package/dist/managed-runtime/runtime-utils.d.ts.map +0 -1
  97. package/dist/managed-runtime/runtime-utils.js.map +0 -1
  98. package/dist/managed-runtime/shell-execution.d.ts +0 -33
  99. package/dist/managed-runtime/shell-execution.d.ts.map +0 -1
  100. package/dist/managed-runtime/shell-execution.js +0 -186
  101. package/dist/managed-runtime/shell-execution.js.map +0 -1
  102. package/dist/managed-runtime/step-result.d.ts +0 -22
  103. package/dist/managed-runtime/step-result.d.ts.map +0 -1
  104. package/dist/managed-runtime/step-result.js +0 -252
  105. package/dist/managed-runtime/step-result.js.map +0 -1
  106. package/dist/managed-runtime/wake-signal.d.ts +0 -5
  107. package/dist/managed-runtime/wake-signal.d.ts.map +0 -1
  108. package/dist/managed-runtime/wake-signal.js +0 -29
  109. package/dist/managed-runtime/wake-signal.js.map +0 -1
  110. package/dist/managed-runtime.d.ts +0 -8
  111. package/dist/managed-runtime.d.ts.map +0 -1
  112. package/dist/managed-runtime.js +0 -268
  113. package/dist/managed-runtime.js.map +0 -1
  114. /package/dist/{managed-runtime → drive-sync}/drive-sync-filesystem.d.ts +0 -0
  115. /package/dist/{managed-runtime → drive-sync}/drive-sync-filesystem.js +0 -0
  116. /package/dist/{managed-runtime → drive-sync}/drive-sync-planner.d.ts +0 -0
  117. /package/dist/{managed-runtime → drive-sync}/drive-sync-planner.js +0 -0
  118. /package/dist/{managed-runtime → drive-sync}/drive-sync-remote-planner.d.ts +0 -0
  119. /package/dist/{managed-runtime → drive-sync}/drive-sync-remote-planner.js +0 -0
  120. /package/dist/{managed-runtime → drive-sync}/drive-sync-state-applier.d.ts +0 -0
  121. /package/dist/{managed-runtime → drive-sync}/drive-sync-state-applier.js +0 -0
  122. /package/dist/{managed-runtime → drive-sync}/drive-sync-transfer.d.ts +0 -0
  123. /package/dist/{managed-runtime → drive-sync}/drive-sync-transfer.js +0 -0
@@ -369,18 +369,12 @@ export type Database = {
369
369
  id: string;
370
370
  job_id: string;
371
371
  last_error: string | null;
372
- lease_acquired_at: string | null;
373
- lease_expires_at: string | null;
374
- lease_heartbeat_at: string | null;
375
- lease_owner: string | null;
376
372
  logs: Json;
377
373
  next_tool_index: number;
378
374
  pending_tool_calls: Json;
379
- phase_generation: number;
380
375
  planned_at: string | null;
381
376
  progress_log_id: string | null;
382
377
  soft_pacing_delay_seconds: number;
383
- started_wake_generation: number | null;
384
378
  state: string;
385
379
  team_id: string;
386
380
  tool_calls: Json;
@@ -402,18 +396,12 @@ export type Database = {
402
396
  id?: string;
403
397
  job_id: string;
404
398
  last_error?: string | null;
405
- lease_acquired_at?: string | null;
406
- lease_expires_at?: string | null;
407
- lease_heartbeat_at?: string | null;
408
- lease_owner?: string | null;
409
399
  logs?: Json;
410
400
  next_tool_index?: number;
411
401
  pending_tool_calls?: Json;
412
- phase_generation?: number;
413
402
  planned_at?: string | null;
414
403
  progress_log_id?: string | null;
415
404
  soft_pacing_delay_seconds?: number;
416
- started_wake_generation?: number | null;
417
405
  state?: string;
418
406
  team_id: string;
419
407
  tool_calls?: Json;
@@ -435,18 +423,12 @@ export type Database = {
435
423
  id?: string;
436
424
  job_id?: string;
437
425
  last_error?: string | null;
438
- lease_acquired_at?: string | null;
439
- lease_expires_at?: string | null;
440
- lease_heartbeat_at?: string | null;
441
- lease_owner?: string | null;
442
426
  logs?: Json;
443
427
  next_tool_index?: number;
444
428
  pending_tool_calls?: Json;
445
- phase_generation?: number;
446
429
  planned_at?: string | null;
447
430
  progress_log_id?: string | null;
448
431
  soft_pacing_delay_seconds?: number;
449
- started_wake_generation?: number | null;
450
432
  state?: string;
451
433
  team_id?: string;
452
434
  tool_calls?: Json;
@@ -529,7 +511,6 @@ export type Database = {
529
511
  id: string;
530
512
  job_id: string;
531
513
  metadata: Json;
532
- runtime: string;
533
514
  started_at: string;
534
515
  status: string;
535
516
  summary_long: string | null;
@@ -546,7 +527,6 @@ export type Database = {
546
527
  id?: string;
547
528
  job_id: string;
548
529
  metadata?: Json;
549
- runtime?: string;
550
530
  started_at?: string;
551
531
  status?: string;
552
532
  summary_long?: string | null;
@@ -563,7 +543,6 @@ export type Database = {
563
543
  id?: string;
564
544
  job_id?: string;
565
545
  metadata?: Json;
566
- runtime?: string;
567
546
  started_at?: string;
568
547
  status?: string;
569
548
  summary_long?: string | null;
@@ -1029,7 +1008,6 @@ export type Database = {
1029
1008
  };
1030
1009
  agents: {
1031
1010
  Row: {
1032
- agent_runtime: string;
1033
1011
  agent_state: string;
1034
1012
  created_at: string;
1035
1013
  created_by: string;
@@ -1045,14 +1023,11 @@ export type Database = {
1045
1023
  pause_reason: string | null;
1046
1024
  scheduled_resume_at: string | null;
1047
1025
  scheduled_resume_source_run_id: string | null;
1048
- scheduled_resume_wake_generation: number | null;
1049
1026
  system_template_slug: string | null;
1050
1027
  team_id: string;
1051
1028
  updated_at: string | null;
1052
- wake_generation: number;
1053
1029
  };
1054
1030
  Insert: {
1055
- agent_runtime?: string;
1056
1031
  agent_state?: string;
1057
1032
  created_at?: string;
1058
1033
  created_by: string;
@@ -1068,14 +1043,11 @@ export type Database = {
1068
1043
  pause_reason?: string | null;
1069
1044
  scheduled_resume_at?: string | null;
1070
1045
  scheduled_resume_source_run_id?: string | null;
1071
- scheduled_resume_wake_generation?: number | null;
1072
1046
  system_template_slug?: string | null;
1073
1047
  team_id: string;
1074
1048
  updated_at?: string | null;
1075
- wake_generation?: number;
1076
1049
  };
1077
1050
  Update: {
1078
- agent_runtime?: string;
1079
1051
  agent_state?: string;
1080
1052
  created_at?: string;
1081
1053
  created_by?: string;
@@ -1091,11 +1063,9 @@ export type Database = {
1091
1063
  pause_reason?: string | null;
1092
1064
  scheduled_resume_at?: string | null;
1093
1065
  scheduled_resume_source_run_id?: string | null;
1094
- scheduled_resume_wake_generation?: number | null;
1095
1066
  system_template_slug?: string | null;
1096
1067
  team_id?: string;
1097
1068
  updated_at?: string | null;
1098
- wake_generation?: number;
1099
1069
  };
1100
1070
  Relationships: [
1101
1071
  {
@@ -2075,6 +2045,7 @@ export type Database = {
2075
2045
  status: string;
2076
2046
  team_id: string;
2077
2047
  updated_at: string;
2048
+ vm_id: string | null;
2078
2049
  };
2079
2050
  Insert: {
2080
2051
  agent_id?: string | null;
@@ -2087,6 +2058,7 @@ export type Database = {
2087
2058
  status?: string;
2088
2059
  team_id: string;
2089
2060
  updated_at?: string;
2061
+ vm_id?: string | null;
2090
2062
  };
2091
2063
  Update: {
2092
2064
  agent_id?: string | null;
@@ -2099,6 +2071,7 @@ export type Database = {
2099
2071
  status?: string;
2100
2072
  team_id?: string;
2101
2073
  updated_at?: string;
2074
+ vm_id?: string | null;
2102
2075
  };
2103
2076
  Relationships: [
2104
2077
  {
@@ -2121,6 +2094,13 @@ export type Database = {
2121
2094
  isOneToOne: false;
2122
2095
  referencedRelation: "teams";
2123
2096
  referencedColumns: ["id"];
2097
+ },
2098
+ {
2099
+ foreignKeyName: "drive_sync_clients_vm_id_fkey";
2100
+ columns: ["vm_id"];
2101
+ isOneToOne: false;
2102
+ referencedRelation: "team_resources";
2103
+ referencedColumns: ["id"];
2124
2104
  }
2125
2105
  ];
2126
2106
  };
@@ -2918,369 +2898,6 @@ export type Database = {
2918
2898
  };
2919
2899
  Relationships: [];
2920
2900
  };
2921
- linux_agent_executions: {
2922
- Row: {
2923
- agent_id: string;
2924
- claim_token: string | null;
2925
- claimed_by: string | null;
2926
- command: string;
2927
- completed_at: string | null;
2928
- control_signal: string | null;
2929
- created_at: string;
2930
- cycle_id: string | null;
2931
- dispatched_at: string | null;
2932
- duration_ms: number | null;
2933
- error: string | null;
2934
- exit_code: number | null;
2935
- host_attempt_generation: number | null;
2936
- host_id: string | null;
2937
- id: string;
2938
- metadata: Json;
2939
- requested_at: string;
2940
- run_id: string | null;
2941
- run_step_id: string | null;
2942
- started_at: string | null;
2943
- status: string;
2944
- stderr: string | null;
2945
- stderr_bytes: number;
2946
- stderr_overflow_ref: string | null;
2947
- stderr_preview: string | null;
2948
- stdout: string | null;
2949
- stdout_bytes: number;
2950
- stdout_overflow_ref: string | null;
2951
- stdout_preview: string | null;
2952
- updated_at: string;
2953
- worker_job_id: string | null;
2954
- };
2955
- Insert: {
2956
- agent_id: string;
2957
- claim_token?: string | null;
2958
- claimed_by?: string | null;
2959
- command: string;
2960
- completed_at?: string | null;
2961
- control_signal?: string | null;
2962
- created_at?: string;
2963
- cycle_id?: string | null;
2964
- dispatched_at?: string | null;
2965
- duration_ms?: number | null;
2966
- error?: string | null;
2967
- exit_code?: number | null;
2968
- host_attempt_generation?: number | null;
2969
- host_id?: string | null;
2970
- id?: string;
2971
- metadata?: Json;
2972
- requested_at?: string;
2973
- run_id?: string | null;
2974
- run_step_id?: string | null;
2975
- started_at?: string | null;
2976
- status?: string;
2977
- stderr?: string | null;
2978
- stderr_bytes?: number;
2979
- stderr_overflow_ref?: string | null;
2980
- stderr_preview?: string | null;
2981
- stdout?: string | null;
2982
- stdout_bytes?: number;
2983
- stdout_overflow_ref?: string | null;
2984
- stdout_preview?: string | null;
2985
- updated_at?: string;
2986
- worker_job_id?: string | null;
2987
- };
2988
- Update: {
2989
- agent_id?: string;
2990
- claim_token?: string | null;
2991
- claimed_by?: string | null;
2992
- command?: string;
2993
- completed_at?: string | null;
2994
- control_signal?: string | null;
2995
- created_at?: string;
2996
- cycle_id?: string | null;
2997
- dispatched_at?: string | null;
2998
- duration_ms?: number | null;
2999
- error?: string | null;
3000
- exit_code?: number | null;
3001
- host_attempt_generation?: number | null;
3002
- host_id?: string | null;
3003
- id?: string;
3004
- metadata?: Json;
3005
- requested_at?: string;
3006
- run_id?: string | null;
3007
- run_step_id?: string | null;
3008
- started_at?: string | null;
3009
- status?: string;
3010
- stderr?: string | null;
3011
- stderr_bytes?: number;
3012
- stderr_overflow_ref?: string | null;
3013
- stderr_preview?: string | null;
3014
- stdout?: string | null;
3015
- stdout_bytes?: number;
3016
- stdout_overflow_ref?: string | null;
3017
- stdout_preview?: string | null;
3018
- updated_at?: string;
3019
- worker_job_id?: string | null;
3020
- };
3021
- Relationships: [
3022
- {
3023
- foreignKeyName: "linux_agent_executions_agent_id_fkey";
3024
- columns: ["agent_id"];
3025
- isOneToOne: false;
3026
- referencedRelation: "agent_full";
3027
- referencedColumns: ["id"];
3028
- },
3029
- {
3030
- foreignKeyName: "linux_agent_executions_agent_id_fkey";
3031
- columns: ["agent_id"];
3032
- isOneToOne: false;
3033
- referencedRelation: "agents";
3034
- referencedColumns: ["id"];
3035
- },
3036
- {
3037
- foreignKeyName: "linux_agent_executions_cycle_id_fkey";
3038
- columns: ["cycle_id"];
3039
- isOneToOne: false;
3040
- referencedRelation: "agent_cycles";
3041
- referencedColumns: ["id"];
3042
- },
3043
- {
3044
- foreignKeyName: "linux_agent_executions_cycle_id_fkey";
3045
- columns: ["cycle_id"];
3046
- isOneToOne: false;
3047
- referencedRelation: "debug_cycle_facts";
3048
- referencedColumns: ["cycle_id"];
3049
- },
3050
- {
3051
- foreignKeyName: "linux_agent_executions_host_id_fkey";
3052
- columns: ["host_id"];
3053
- isOneToOne: false;
3054
- referencedRelation: "linux_agent_hosts";
3055
- referencedColumns: ["id"];
3056
- },
3057
- {
3058
- foreignKeyName: "linux_agent_executions_run_id_fkey";
3059
- columns: ["run_id"];
3060
- isOneToOne: false;
3061
- referencedRelation: "agent_cycle_runs";
3062
- referencedColumns: ["id"];
3063
- },
3064
- {
3065
- foreignKeyName: "linux_agent_executions_run_id_fkey";
3066
- columns: ["run_id"];
3067
- isOneToOne: false;
3068
- referencedRelation: "debug_cycle_facts";
3069
- referencedColumns: ["run_id"];
3070
- },
3071
- {
3072
- foreignKeyName: "linux_agent_executions_run_id_fkey";
3073
- columns: ["run_id"];
3074
- isOneToOne: false;
3075
- referencedRelation: "debug_tool_call_facts";
3076
- referencedColumns: ["run_id"];
3077
- },
3078
- {
3079
- foreignKeyName: "linux_agent_executions_run_step_id_fkey";
3080
- columns: ["run_step_id"];
3081
- isOneToOne: false;
3082
- referencedRelation: "agent_cycle_run_steps";
3083
- referencedColumns: ["id"];
3084
- },
3085
- {
3086
- foreignKeyName: "linux_agent_executions_run_step_id_fkey";
3087
- columns: ["run_step_id"];
3088
- isOneToOne: false;
3089
- referencedRelation: "debug_tool_call_facts";
3090
- referencedColumns: ["step_id"];
3091
- }
3092
- ];
3093
- };
3094
- linux_agent_hosts: {
3095
- Row: {
3096
- agent_id: string;
3097
- allocation_state: string;
3098
- attempt_generation: number;
3099
- cli_auth_token_created_at: string | null;
3100
- cli_auth_token_hash: string | null;
3101
- created_at: string;
3102
- desired_power_state: string;
3103
- error: string | null;
3104
- host_control_token_created_at: string | null;
3105
- host_control_token_hash: string | null;
3106
- host_identifier: string | null;
3107
- id: string;
3108
- image_ref: string | null;
3109
- last_heartbeat_at: string | null;
3110
- metadata: Json;
3111
- provider: string;
3112
- provisioning_started_at: string | null;
3113
- ready_at: string | null;
3114
- runtime_id: string | null;
3115
- runtime_state: string;
3116
- started_at: string | null;
3117
- status: string;
3118
- stopped_at: string | null;
3119
- updated_at: string;
3120
- };
3121
- Insert: {
3122
- agent_id: string;
3123
- allocation_state?: string;
3124
- attempt_generation?: number;
3125
- cli_auth_token_created_at?: string | null;
3126
- cli_auth_token_hash?: string | null;
3127
- created_at?: string;
3128
- desired_power_state?: string;
3129
- error?: string | null;
3130
- host_control_token_created_at?: string | null;
3131
- host_control_token_hash?: string | null;
3132
- host_identifier?: string | null;
3133
- id?: string;
3134
- image_ref?: string | null;
3135
- last_heartbeat_at?: string | null;
3136
- metadata?: Json;
3137
- provider?: string;
3138
- provisioning_started_at?: string | null;
3139
- ready_at?: string | null;
3140
- runtime_id?: string | null;
3141
- runtime_state?: string;
3142
- started_at?: string | null;
3143
- status?: string;
3144
- stopped_at?: string | null;
3145
- updated_at?: string;
3146
- };
3147
- Update: {
3148
- agent_id?: string;
3149
- allocation_state?: string;
3150
- attempt_generation?: number;
3151
- cli_auth_token_created_at?: string | null;
3152
- cli_auth_token_hash?: string | null;
3153
- created_at?: string;
3154
- desired_power_state?: string;
3155
- error?: string | null;
3156
- host_control_token_created_at?: string | null;
3157
- host_control_token_hash?: string | null;
3158
- host_identifier?: string | null;
3159
- id?: string;
3160
- image_ref?: string | null;
3161
- last_heartbeat_at?: string | null;
3162
- metadata?: Json;
3163
- provider?: string;
3164
- provisioning_started_at?: string | null;
3165
- ready_at?: string | null;
3166
- runtime_id?: string | null;
3167
- runtime_state?: string;
3168
- started_at?: string | null;
3169
- status?: string;
3170
- stopped_at?: string | null;
3171
- updated_at?: string;
3172
- };
3173
- Relationships: [
3174
- {
3175
- foreignKeyName: "linux_agent_hosts_agent_id_fkey";
3176
- columns: ["agent_id"];
3177
- isOneToOne: true;
3178
- referencedRelation: "agent_full";
3179
- referencedColumns: ["id"];
3180
- },
3181
- {
3182
- foreignKeyName: "linux_agent_hosts_agent_id_fkey";
3183
- columns: ["agent_id"];
3184
- isOneToOne: true;
3185
- referencedRelation: "agents";
3186
- referencedColumns: ["id"];
3187
- }
3188
- ];
3189
- };
3190
- linux_host_operations: {
3191
- Row: {
3192
- agent_id: string;
3193
- attempt_count: number;
3194
- canceled_at: string | null;
3195
- completed_at: string | null;
3196
- created_at: string;
3197
- error: string | null;
3198
- host_id: string;
3199
- id: string;
3200
- idempotency_key: string;
3201
- lease_acquired_at: string | null;
3202
- lease_expires_at: string | null;
3203
- lease_owner: string | null;
3204
- operation_type: string;
3205
- reason: string;
3206
- request_payload: Json;
3207
- requested_by: string | null;
3208
- result_payload: Json | null;
3209
- stale_at: string | null;
3210
- started_at: string | null;
3211
- status: string;
3212
- updated_at: string;
3213
- };
3214
- Insert: {
3215
- agent_id: string;
3216
- attempt_count?: number;
3217
- canceled_at?: string | null;
3218
- completed_at?: string | null;
3219
- created_at?: string;
3220
- error?: string | null;
3221
- host_id: string;
3222
- id?: string;
3223
- idempotency_key: string;
3224
- lease_acquired_at?: string | null;
3225
- lease_expires_at?: string | null;
3226
- lease_owner?: string | null;
3227
- operation_type: string;
3228
- reason: string;
3229
- request_payload?: Json;
3230
- requested_by?: string | null;
3231
- result_payload?: Json | null;
3232
- stale_at?: string | null;
3233
- started_at?: string | null;
3234
- status?: string;
3235
- updated_at?: string;
3236
- };
3237
- Update: {
3238
- agent_id?: string;
3239
- attempt_count?: number;
3240
- canceled_at?: string | null;
3241
- completed_at?: string | null;
3242
- created_at?: string;
3243
- error?: string | null;
3244
- host_id?: string;
3245
- id?: string;
3246
- idempotency_key?: string;
3247
- lease_acquired_at?: string | null;
3248
- lease_expires_at?: string | null;
3249
- lease_owner?: string | null;
3250
- operation_type?: string;
3251
- reason?: string;
3252
- request_payload?: Json;
3253
- requested_by?: string | null;
3254
- result_payload?: Json | null;
3255
- stale_at?: string | null;
3256
- started_at?: string | null;
3257
- status?: string;
3258
- updated_at?: string;
3259
- };
3260
- Relationships: [
3261
- {
3262
- foreignKeyName: "linux_host_operations_agent_id_fkey";
3263
- columns: ["agent_id"];
3264
- isOneToOne: false;
3265
- referencedRelation: "agent_full";
3266
- referencedColumns: ["id"];
3267
- },
3268
- {
3269
- foreignKeyName: "linux_host_operations_agent_id_fkey";
3270
- columns: ["agent_id"];
3271
- isOneToOne: false;
3272
- referencedRelation: "agents";
3273
- referencedColumns: ["id"];
3274
- },
3275
- {
3276
- foreignKeyName: "linux_host_operations_host_id_fkey";
3277
- columns: ["host_id"];
3278
- isOneToOne: false;
3279
- referencedRelation: "linux_agent_hosts";
3280
- referencedColumns: ["id"];
3281
- }
3282
- ];
3283
- };
3284
2901
  log_embeddings: {
3285
2902
  Row: {
3286
2903
  agent_id: string;
@@ -6517,6 +6134,7 @@ export type Database = {
6517
6134
  created_at: string;
6518
6135
  cycle_id: string | null;
6519
6136
  id: string;
6137
+ idempotency_key: string | null;
6520
6138
  parameters: Json;
6521
6139
  parent_tool_call_id: string | null;
6522
6140
  resolved_tool_name: string | null;
@@ -6530,6 +6148,7 @@ export type Database = {
6530
6148
  created_at?: string;
6531
6149
  cycle_id?: string | null;
6532
6150
  id?: string;
6151
+ idempotency_key?: string | null;
6533
6152
  parameters: Json;
6534
6153
  parent_tool_call_id?: string | null;
6535
6154
  resolved_tool_name?: string | null;
@@ -6543,6 +6162,7 @@ export type Database = {
6543
6162
  created_at?: string;
6544
6163
  cycle_id?: string | null;
6545
6164
  id?: string;
6165
+ idempotency_key?: string | null;
6546
6166
  parameters?: Json;
6547
6167
  parent_tool_call_id?: string | null;
6548
6168
  resolved_tool_name?: string | null;
@@ -6645,100 +6265,7 @@ export type Database = {
6645
6265
  }
6646
6266
  ];
6647
6267
  };
6648
- tool_invocations: {
6649
- Row: {
6650
- agent_id: string;
6651
- completed_at: string | null;
6652
- created_at: string;
6653
- cycle_id: string | null;
6654
- host_attempt_generation: number | null;
6655
- host_id: string | null;
6656
- id: string;
6657
- input: Json;
6658
- metadata: Json;
6659
- result: Json | null;
6660
- source: string;
6661
- started_at: string | null;
6662
- status: string;
6663
- system_error: string | null;
6664
- tool_id: string;
6665
- tool_name: string;
6666
- };
6667
- Insert: {
6668
- agent_id: string;
6669
- completed_at?: string | null;
6670
- created_at?: string;
6671
- cycle_id?: string | null;
6672
- host_attempt_generation?: number | null;
6673
- host_id?: string | null;
6674
- id?: string;
6675
- input?: Json;
6676
- metadata?: Json;
6677
- result?: Json | null;
6678
- source?: string;
6679
- started_at?: string | null;
6680
- status?: string;
6681
- system_error?: string | null;
6682
- tool_id: string;
6683
- tool_name: string;
6684
- };
6685
- Update: {
6686
- agent_id?: string;
6687
- completed_at?: string | null;
6688
- created_at?: string;
6689
- cycle_id?: string | null;
6690
- host_attempt_generation?: number | null;
6691
- host_id?: string | null;
6692
- id?: string;
6693
- input?: Json;
6694
- metadata?: Json;
6695
- result?: Json | null;
6696
- source?: string;
6697
- started_at?: string | null;
6698
- status?: string;
6699
- system_error?: string | null;
6700
- tool_id?: string;
6701
- tool_name?: string;
6702
- };
6703
- Relationships: [
6704
- {
6705
- foreignKeyName: "tool_invocations_agent_id_fkey";
6706
- columns: ["agent_id"];
6707
- isOneToOne: false;
6708
- referencedRelation: "agent_full";
6709
- referencedColumns: ["id"];
6710
- },
6711
- {
6712
- foreignKeyName: "tool_invocations_agent_id_fkey";
6713
- columns: ["agent_id"];
6714
- isOneToOne: false;
6715
- referencedRelation: "agents";
6716
- referencedColumns: ["id"];
6717
- },
6718
- {
6719
- foreignKeyName: "tool_invocations_cycle_id_fkey";
6720
- columns: ["cycle_id"];
6721
- isOneToOne: false;
6722
- referencedRelation: "agent_cycles";
6723
- referencedColumns: ["id"];
6724
- },
6725
- {
6726
- foreignKeyName: "tool_invocations_cycle_id_fkey";
6727
- columns: ["cycle_id"];
6728
- isOneToOne: false;
6729
- referencedRelation: "debug_cycle_facts";
6730
- referencedColumns: ["cycle_id"];
6731
- },
6732
- {
6733
- foreignKeyName: "tool_invocations_host_id_fkey";
6734
- columns: ["host_id"];
6735
- isOneToOne: false;
6736
- referencedRelation: "linux_agent_hosts";
6737
- referencedColumns: ["id"];
6738
- }
6739
- ];
6740
- };
6741
- tool_registry_versions: {
6268
+ tool_registry_versions: {
6742
6269
  Row: {
6743
6270
  id: string;
6744
6271
  is_current: boolean | null;
@@ -7682,6 +7209,68 @@ export type Database = {
7682
7209
  }
7683
7210
  ];
7684
7211
  };
7212
+ workflow_start_requests: {
7213
+ Row: {
7214
+ attempt_count: number;
7215
+ completed_at: string | null;
7216
+ created_at: string;
7217
+ dedupe_key: string;
7218
+ id: string;
7219
+ last_error: string | null;
7220
+ payload: Json;
7221
+ request_kind: string;
7222
+ started_at: string | null;
7223
+ status: string;
7224
+ task_queue: string;
7225
+ team_id: string | null;
7226
+ updated_at: string;
7227
+ workflow_id: string;
7228
+ workflow_type: string;
7229
+ };
7230
+ Insert: {
7231
+ attempt_count?: number;
7232
+ completed_at?: string | null;
7233
+ created_at?: string;
7234
+ dedupe_key: string;
7235
+ id?: string;
7236
+ last_error?: string | null;
7237
+ payload?: Json;
7238
+ request_kind: string;
7239
+ started_at?: string | null;
7240
+ status?: string;
7241
+ task_queue: string;
7242
+ team_id?: string | null;
7243
+ updated_at?: string;
7244
+ workflow_id: string;
7245
+ workflow_type: string;
7246
+ };
7247
+ Update: {
7248
+ attempt_count?: number;
7249
+ completed_at?: string | null;
7250
+ created_at?: string;
7251
+ dedupe_key?: string;
7252
+ id?: string;
7253
+ last_error?: string | null;
7254
+ payload?: Json;
7255
+ request_kind?: string;
7256
+ started_at?: string | null;
7257
+ status?: string;
7258
+ task_queue?: string;
7259
+ team_id?: string | null;
7260
+ updated_at?: string;
7261
+ workflow_id?: string;
7262
+ workflow_type?: string;
7263
+ };
7264
+ Relationships: [
7265
+ {
7266
+ foreignKeyName: "workflow_start_requests_team_id_fkey";
7267
+ columns: ["team_id"];
7268
+ isOneToOne: false;
7269
+ referencedRelation: "teams";
7270
+ referencedColumns: ["id"];
7271
+ }
7272
+ ];
7273
+ };
7685
7274
  };
7686
7275
  Views: {
7687
7276
  agent_cycle_cache_stats: {
@@ -7778,7 +7367,6 @@ export type Database = {
7778
7367
  agent_full: {
7779
7368
  Row: {
7780
7369
  action_summary: string | null;
7781
- agent_runtime: string | null;
7782
7370
  agent_state: string | null;
7783
7371
  auto_model_selection: boolean | null;
7784
7372
  context: string | null;
@@ -7817,7 +7405,6 @@ export type Database = {
7817
7405
  rpm_last_updated_at: string | null;
7818
7406
  scheduled_resume_at: string | null;
7819
7407
  scheduled_resume_source_run_id: string | null;
7820
- scheduled_resume_wake_generation: number | null;
7821
7408
  search_provider_fallbacks: Json | null;
7822
7409
  search_provider_id: string | null;
7823
7410
  summary_chunk_chars: number | null;
@@ -7825,7 +7412,6 @@ export type Database = {
7825
7412
  system_template_slug: string | null;
7826
7413
  team_id: string | null;
7827
7414
  updated_at: string | null;
7828
- wake_generation: number | null;
7829
7415
  web_read_content_provider_fallbacks: Json | null;
7830
7416
  web_read_content_provider_id: string | null;
7831
7417
  web_read_html_provider_fallbacks: Json | null;
@@ -7929,7 +7515,6 @@ export type Database = {
7929
7515
  Row: {
7930
7516
  agent_id: string | null;
7931
7517
  agent_name: string | null;
7932
- agent_runtime: string | null;
7933
7518
  available_tools_count: number | null;
7934
7519
  billing_mode: string | null;
7935
7520
  blocked_at: string | null;
@@ -8013,7 +7598,6 @@ export type Database = {
8013
7598
  Row: {
8014
7599
  agent_id: string | null;
8015
7600
  agent_name: string | null;
8016
- agent_runtime: string | null;
8017
7601
  api_calls_count: number | null;
8018
7602
  attempt_id: string | null;
8019
7603
  completed_at: string | null;
@@ -8581,6 +8165,12 @@ export type Database = {
8581
8165
  p_payload?: Json;
8582
8166
  };
8583
8167
  Returns: Json;
8168
+ } | {
8169
+ Args: {
8170
+ p_identifier: string;
8171
+ p_payload: Json;
8172
+ };
8173
+ Returns: Json;
8584
8174
  };
8585
8175
  agent_can_access_conversation: {
8586
8176
  Args: {
@@ -8907,23 +8497,6 @@ export type Database = {
8907
8497
  wake_generation: number;
8908
8498
  }[];
8909
8499
  };
8910
- claim_due_agent_resume_with_planner: {
8911
- Args: {
8912
- p_agent_id: string;
8913
- p_flags?: Json;
8914
- p_max_attempts?: number;
8915
- p_priority?: number;
8916
- p_triggered_by?: string;
8917
- };
8918
- Returns: {
8919
- claimed: boolean;
8920
- enqueue_accepted: boolean;
8921
- enqueue_created: boolean;
8922
- job_id: number;
8923
- reason: string;
8924
- wake_generation: number;
8925
- }[];
8926
- };
8927
8500
  claim_model_cache_entry_creation: {
8928
8501
  Args: {
8929
8502
  p_agent_id: string;
@@ -9011,35 +8584,6 @@ export type Database = {
9011
8584
  };
9012
8585
  Returns: number;
9013
8586
  };
9014
- complete_linux_agent_execution: {
9015
- Args: {
9016
- p_claim_token: string;
9017
- p_control_signal?: string;
9018
- p_duration_ms?: number;
9019
- p_error?: string;
9020
- p_execution_id: string;
9021
- p_execution_metadata?: Json;
9022
- p_execution_status: string;
9023
- p_exit_code?: number;
9024
- p_stderr?: string;
9025
- p_stderr_bytes?: number;
9026
- p_stderr_overflow_ref?: string;
9027
- p_stderr_preview?: string;
9028
- p_stdout?: string;
9029
- p_stdout_bytes?: number;
9030
- p_stdout_overflow_ref?: string;
9031
- p_stdout_preview?: string;
9032
- p_step_error?: string;
9033
- p_step_result?: Json;
9034
- p_step_status?: string;
9035
- p_step_uncertainty_reason?: string;
9036
- };
9037
- Returns: {
9038
- agent_id: string;
9039
- run_id: string;
9040
- step_updated: boolean;
9041
- }[];
9042
- };
9043
8587
  complete_model_cache_entry_creation: {
9044
8588
  Args: {
9045
8589
  p_agent_id: string;
@@ -9125,6 +8669,14 @@ export type Database = {
9125
8669
  isSetofReturn: true;
9126
8670
  };
9127
8671
  };
8672
+ copy_agent_home_drive: {
8673
+ Args: {
8674
+ p_actor_user_id?: string;
8675
+ p_source_agent_id: string;
8676
+ p_target_agent_id: string;
8677
+ };
8678
+ Returns: Json;
8679
+ };
9128
8680
  create_agent_event: {
9129
8681
  Args: {
9130
8682
  p_actor?: string;
@@ -9329,58 +8881,6 @@ export type Database = {
9329
8881
  };
9330
8882
  Returns: Json;
9331
8883
  };
9332
- create_linux_agent_execution_if_runnable: {
9333
- Args: {
9334
- p_agent_id: string;
9335
- p_command: string;
9336
- p_cycle_id: string;
9337
- p_host_attempt_generation: number;
9338
- p_host_id: string;
9339
- p_metadata?: Json;
9340
- p_run_id: string;
9341
- p_run_step_id: string;
9342
- p_worker_job_id: string;
9343
- };
9344
- Returns: {
9345
- agent_id: string;
9346
- claim_token: string | null;
9347
- claimed_by: string | null;
9348
- command: string;
9349
- completed_at: string | null;
9350
- control_signal: string | null;
9351
- created_at: string;
9352
- cycle_id: string | null;
9353
- dispatched_at: string | null;
9354
- duration_ms: number | null;
9355
- error: string | null;
9356
- exit_code: number | null;
9357
- host_attempt_generation: number | null;
9358
- host_id: string | null;
9359
- id: string;
9360
- metadata: Json;
9361
- requested_at: string;
9362
- run_id: string | null;
9363
- run_step_id: string | null;
9364
- started_at: string | null;
9365
- status: string;
9366
- stderr: string | null;
9367
- stderr_bytes: number;
9368
- stderr_overflow_ref: string | null;
9369
- stderr_preview: string | null;
9370
- stdout: string | null;
9371
- stdout_bytes: number;
9372
- stdout_overflow_ref: string | null;
9373
- stdout_preview: string | null;
9374
- updated_at: string;
9375
- worker_job_id: string | null;
9376
- };
9377
- SetofOptions: {
9378
- from: "*";
9379
- to: "linux_agent_executions";
9380
- isOneToOne: true;
9381
- isSetofReturn: false;
9382
- };
9383
- };
9384
8884
  create_message: {
9385
8885
  Args: {
9386
8886
  p_agent_id: string;
@@ -9744,54 +9244,6 @@ export type Database = {
9744
9244
  };
9745
9245
  Returns: string;
9746
9246
  };
9747
- dispatch_linux_agent_execution: {
9748
- Args: {
9749
- p_agent_id: string;
9750
- p_claim_token?: string;
9751
- p_claimed_by: string;
9752
- p_host_attempt_generation: number;
9753
- p_host_id: string;
9754
- };
9755
- Returns: {
9756
- agent_id: string;
9757
- claim_token: string | null;
9758
- claimed_by: string | null;
9759
- command: string;
9760
- completed_at: string | null;
9761
- control_signal: string | null;
9762
- created_at: string;
9763
- cycle_id: string | null;
9764
- dispatched_at: string | null;
9765
- duration_ms: number | null;
9766
- error: string | null;
9767
- exit_code: number | null;
9768
- host_attempt_generation: number | null;
9769
- host_id: string | null;
9770
- id: string;
9771
- metadata: Json;
9772
- requested_at: string;
9773
- run_id: string | null;
9774
- run_step_id: string | null;
9775
- started_at: string | null;
9776
- status: string;
9777
- stderr: string | null;
9778
- stderr_bytes: number;
9779
- stderr_overflow_ref: string | null;
9780
- stderr_preview: string | null;
9781
- stdout: string | null;
9782
- stdout_bytes: number;
9783
- stdout_overflow_ref: string | null;
9784
- stdout_preview: string | null;
9785
- updated_at: string;
9786
- worker_job_id: string | null;
9787
- };
9788
- SetofOptions: {
9789
- from: "*";
9790
- to: "linux_agent_executions";
9791
- isOneToOne: true;
9792
- isSetofReturn: false;
9793
- };
9794
- };
9795
9247
  drive_entry_name: {
9796
9248
  Args: {
9797
9249
  p_path: string;
@@ -9832,6 +9284,23 @@ export type Database = {
9832
9284
  };
9833
9285
  Returns: string[];
9834
9286
  };
9287
+ emit_agent_stop_request: {
9288
+ Args: {
9289
+ p_agent_id: string;
9290
+ };
9291
+ Returns: string;
9292
+ };
9293
+ emit_agent_wake_request: {
9294
+ Args: {
9295
+ p_agent_id: string;
9296
+ p_flags?: Json;
9297
+ p_run_at?: string;
9298
+ p_trigger_type: string;
9299
+ p_triggered_by: string;
9300
+ p_wake_behavior?: string;
9301
+ };
9302
+ Returns: string;
9303
+ };
9835
9304
  emit_drive_change_batch_resource_event: {
9836
9305
  Args: {
9837
9306
  p_batch_id: string;
@@ -10044,6 +9513,13 @@ export type Database = {
10044
9513
  isSetofReturn: false;
10045
9514
  };
10046
9515
  };
9516
+ ensure_agent_home_drive: {
9517
+ Args: {
9518
+ p_agent_id: string;
9519
+ p_created_by?: string;
9520
+ };
9521
+ Returns: Json;
9522
+ };
10047
9523
  ensure_agent_peer_conversation: {
10048
9524
  Args: {
10049
9525
  p_source_agent_id: string;
@@ -10865,7 +10341,6 @@ export type Database = {
10865
10341
  };
10866
10342
  Returns: {
10867
10343
  action_summary: string | null;
10868
- agent_runtime: string | null;
10869
10344
  agent_state: string | null;
10870
10345
  auto_model_selection: boolean | null;
10871
10346
  context: string | null;
@@ -10904,7 +10379,6 @@ export type Database = {
10904
10379
  rpm_last_updated_at: string | null;
10905
10380
  scheduled_resume_at: string | null;
10906
10381
  scheduled_resume_source_run_id: string | null;
10907
- scheduled_resume_wake_generation: number | null;
10908
10382
  search_provider_fallbacks: Json | null;
10909
10383
  search_provider_id: string | null;
10910
10384
  summary_chunk_chars: number | null;
@@ -10912,7 +10386,6 @@ export type Database = {
10912
10386
  system_template_slug: string | null;
10913
10387
  team_id: string | null;
10914
10388
  updated_at: string | null;
10915
- wake_generation: number | null;
10916
10389
  web_read_content_provider_fallbacks: Json | null;
10917
10390
  web_read_content_provider_id: string | null;
10918
10391
  web_read_html_provider_fallbacks: Json | null;
@@ -11309,38 +10782,6 @@ export type Database = {
11309
10782
  isSetofReturn: false;
11310
10783
  };
11311
10784
  };
11312
- interrupt_linux_agent_executions: {
11313
- Args: {
11314
- p_agent_id: string;
11315
- p_control_signal?: string;
11316
- p_execution_error?: string;
11317
- p_execution_metadata?: Json;
11318
- p_pending_step_status?: string;
11319
- p_running_step_status?: string;
11320
- p_step_error?: string;
11321
- p_step_result?: Json;
11322
- p_step_uncertainty_reason?: string;
11323
- };
11324
- Returns: {
11325
- applied_step_status: string;
11326
- execution_id: string;
11327
- previous_execution_status: string;
11328
- run_id: string;
11329
- run_step_id: string;
11330
- }[];
11331
- };
11332
- interrupt_tool_invocations: {
11333
- Args: {
11334
- p_agent_id: string;
11335
- p_invocation_metadata?: Json;
11336
- p_system_error?: string;
11337
- };
11338
- Returns: {
11339
- applied_status: string;
11340
- previous_status: string;
11341
- tool_invocation_id: string;
11342
- }[];
11343
- };
11344
10785
  invite_team_member: {
11345
10786
  Args: {
11346
10787
  p_email: string;
@@ -11356,13 +10797,6 @@ export type Database = {
11356
10797
  };
11357
10798
  Returns: boolean;
11358
10799
  };
11359
- is_current_linux_host_runtime: {
11360
- Args: {
11361
- p_attempt_generation: number;
11362
- p_host_id: string;
11363
- };
11364
- Returns: boolean;
11365
- };
11366
10800
  is_dev_access_allowed: {
11367
10801
  Args: never;
11368
10802
  Returns: boolean;
@@ -11948,13 +11382,11 @@ export type Database = {
11948
11382
  Args: {
11949
11383
  p_agent_id: string;
11950
11384
  p_pause_reason?: string;
11951
- p_started_wake_generation?: number;
11952
11385
  };
11953
11386
  Returns: {
11954
11387
  agent_state: string;
11955
11388
  reason: string;
11956
11389
  recovered: boolean;
11957
- wake_generation: number;
11958
11390
  }[];
11959
11391
  };
11960
11392
  recover_external_event_for_retry: {
@@ -11967,15 +11399,6 @@ export type Database = {
11967
11399
  };
11968
11400
  Returns: Json;
11969
11401
  };
11970
- recover_orphaned_agent_jobs: {
11971
- Args: never;
11972
- Returns: {
11973
- agent_id: string;
11974
- log_created: boolean;
11975
- orphan_reason: string;
11976
- recovered_job_id: number;
11977
- }[];
11978
- };
11979
11402
  recover_stale_operation_idempotency_record: {
11980
11403
  Args: {
11981
11404
  p_expected_request_hash?: string;
@@ -12085,6 +11508,7 @@ export type Database = {
12085
11508
  p_host_id?: string;
12086
11509
  p_metadata?: Json;
12087
11510
  p_team_id: string;
11511
+ p_vm_id?: string;
12088
11512
  };
12089
11513
  Returns: {
12090
11514
  agent_id: string | null;
@@ -12097,6 +11521,7 @@ export type Database = {
12097
11521
  status: string;
12098
11522
  team_id: string;
12099
11523
  updated_at: string;
11524
+ vm_id: string | null;
12100
11525
  };
12101
11526
  SetofOptions: {
12102
11527
  from: "*";
@@ -12230,19 +11655,6 @@ export type Database = {
12230
11655
  isSetofReturn: false;
12231
11656
  };
12232
11657
  };
12233
- request_linux_host_runtime_intent: {
12234
- Args: {
12235
- p_agent_id: string;
12236
- p_allocation_state?: string;
12237
- p_desired_power_state?: string;
12238
- p_priority?: number;
12239
- p_queue_name?: string;
12240
- p_reason?: string;
12241
- p_request_payload?: Json;
12242
- p_requested_by?: string;
12243
- };
12244
- Returns: Json;
12245
- };
12246
11658
  request_vm_operation: {
12247
11659
  Args: {
12248
11660
  p_idempotency_key?: string;
@@ -12612,52 +12024,6 @@ export type Database = {
12612
12024
  };
12613
12025
  Returns: boolean;
12614
12026
  };
12615
- start_linux_agent_execution: {
12616
- Args: {
12617
- p_claim_token: string;
12618
- p_claimed_by: string;
12619
- p_execution_id: string;
12620
- };
12621
- Returns: {
12622
- agent_id: string;
12623
- claim_token: string | null;
12624
- claimed_by: string | null;
12625
- command: string;
12626
- completed_at: string | null;
12627
- control_signal: string | null;
12628
- created_at: string;
12629
- cycle_id: string | null;
12630
- dispatched_at: string | null;
12631
- duration_ms: number | null;
12632
- error: string | null;
12633
- exit_code: number | null;
12634
- host_attempt_generation: number | null;
12635
- host_id: string | null;
12636
- id: string;
12637
- metadata: Json;
12638
- requested_at: string;
12639
- run_id: string | null;
12640
- run_step_id: string | null;
12641
- started_at: string | null;
12642
- status: string;
12643
- stderr: string | null;
12644
- stderr_bytes: number;
12645
- stderr_overflow_ref: string | null;
12646
- stderr_preview: string | null;
12647
- stdout: string | null;
12648
- stdout_bytes: number;
12649
- stdout_overflow_ref: string | null;
12650
- stdout_preview: string | null;
12651
- updated_at: string;
12652
- worker_job_id: string | null;
12653
- };
12654
- SetofOptions: {
12655
- from: "*";
12656
- to: "linux_agent_executions";
12657
- isOneToOne: true;
12658
- isSetofReturn: false;
12659
- };
12660
- };
12661
12027
  switch_team: {
12662
12028
  Args: {
12663
12029
  p_team_id: string;
@@ -12761,16 +12127,6 @@ export type Database = {
12761
12127
  };
12762
12128
  Returns: Json;
12763
12129
  };
12764
- unlock_stuck_agent_jobs: {
12765
- Args: never;
12766
- Returns: {
12767
- agent_id: string;
12768
- locked_duration: string;
12769
- log_created: boolean;
12770
- stuck_reason: string;
12771
- unlocked_job_id: number;
12772
- }[];
12773
- };
12774
12130
  update_agent: {
12775
12131
  Args: {
12776
12132
  p_agent_id: string;
@@ -12994,6 +12350,7 @@ export type Database = {
12994
12350
  p_mime_type?: string;
12995
12351
  p_path: string;
12996
12352
  p_size_bytes: number;
12353
+ p_source_operation?: string;
12997
12354
  p_source_operation_id?: string;
12998
12355
  p_source_type?: string;
12999
12356
  p_storage_key: string;
@@ -13028,8 +12385,10 @@ export type Database = {
13028
12385
  p_drive_id: string;
13029
12386
  p_expected_version_id?: string;
13030
12387
  p_mime_type?: string;
12388
+ p_operation_metadata?: Json;
13031
12389
  p_path: string;
13032
12390
  p_size_bytes: number;
12391
+ p_source_operation?: string;
13033
12392
  p_source_operation_id?: string;
13034
12393
  p_storage_key: string;
13035
12394
  p_version_id: string;