larness 0.6.2 → 0.7.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.
Files changed (56) hide show
  1. package/apps/server/dist/{address-DpgJ0siq.js → address-B-gPq4hH.js} +2 -2
  2. package/apps/server/dist/cli.js +6 -6
  3. package/apps/server/dist/{client-CoxHAiNW.js → client-DmQOZ_VJ.js} +1 -1
  4. package/apps/server/dist/{client-CBpatu1B.js → client-nSfUt-Xw.js} +1 -1
  5. package/apps/server/dist/{doctor-rpwPrkoS.js → doctor--QI8obs_.js} +1 -1
  6. package/apps/server/dist/doctor-BWQ8wPEo.js +1 -0
  7. package/apps/server/dist/doctor.js +1 -1
  8. package/apps/server/dist/index.js +52 -10
  9. package/apps/server/dist/{inspect-DUe_-Yma.js → inspect-Dz79med6.js} +6 -1
  10. package/apps/server/dist/{lifecycle-CAl_1GBj.js → lifecycle-0-9eT-gl.js} +4 -4
  11. package/apps/server/dist/{managed-CpNf_iJZ.js → managed-FpQ4FjRh.js} +1 -1
  12. package/apps/server/dist/{status-C0hriYPD.js → status-Bv7nxvzW.js} +2 -2
  13. package/apps/server/dist/{status-B6kiOT0f.js → status-E5SdreUc.js} +2 -2
  14. package/apps/server/dist/status.js +1 -1
  15. package/apps/server/dist/{supervisor-BvHyiN7Z.js → supervisor-eW8XSzXm.js} +3 -3
  16. package/apps/server/dist/tui.js +5 -5
  17. package/apps/server/dist/{unlock-hrRXYx4L.js → unlock-ik1568g3.js} +4 -4
  18. package/apps/server/drizzle/0001_auth.sql +109 -109
  19. package/apps/server/drizzle/0002_projects.sql +12 -12
  20. package/apps/server/drizzle/0003_workspace.sql +80 -80
  21. package/apps/server/drizzle/0004_models.sql +30 -30
  22. package/apps/server/drizzle/0005_resources.sql +54 -54
  23. package/apps/server/drizzle/0006_commands.sql +23 -23
  24. package/apps/server/drizzle/0007_terminals.sql +41 -41
  25. package/apps/server/drizzle/0008_resource_actions.sql +23 -23
  26. package/apps/server/drizzle/0010_services.sql +31 -31
  27. package/apps/web/dist/assets/{FileEditor-Do8GmXIr.js → FileEditor-DvUvGBju.js} +1 -1
  28. package/apps/web/dist/assets/{FileViewer-B8gY_ZI6.js → FileViewer-DuLi65JA.js} +1 -1
  29. package/apps/web/dist/assets/{cssMode-CS6aED9d.js → cssMode-BFtqV8eS.js} +1 -1
  30. package/apps/web/dist/assets/{editor.api-D6oPGpkQ.js → editor.api-B-Hf6DWT.js} +1 -1
  31. package/apps/web/dist/assets/{freemarker2-W5te7pKn.js → freemarker2-QsBG6rLF.js} +1 -1
  32. package/apps/web/dist/assets/{handlebars-FfsnqgOd.js → handlebars-BIDqo3ET.js} +1 -1
  33. package/apps/web/dist/assets/{html-B6aDARpM.js → html-BoeVeWBr.js} +1 -1
  34. package/apps/web/dist/assets/{htmlMode-DtVB7XbC.js → htmlMode-pBOumAql.js} +1 -1
  35. package/apps/web/dist/assets/{index-CoZNwLtg.js → index-BcXxWUCA.js} +2 -2
  36. package/apps/web/dist/assets/{javascript-DOCYuHY6.js → javascript-z49fO24y.js} +1 -1
  37. package/apps/web/dist/assets/{jsonMode-3TlHPyqo.js → jsonMode-CcjrUe-N.js} +1 -1
  38. package/apps/web/dist/assets/{liquid-Bto78Uut.js → liquid-Bel5uheg.js} +1 -1
  39. package/apps/web/dist/assets/{lspLanguageFeatures-DNfY34nV.js → lspLanguageFeatures-BqS1Q85I.js} +1 -1
  40. package/apps/web/dist/assets/main-B0YUBq2Q.js +157 -0
  41. package/apps/web/dist/assets/main-B6xFa89X.css +1 -0
  42. package/apps/web/dist/assets/{mdx-C7pB8lGC.js → mdx-m5Iaur5H.js} +1 -1
  43. package/apps/web/dist/assets/{monaco-C4Y-n5xH.js → monaco-b438wjl8.js} +3 -3
  44. package/apps/web/dist/assets/{python-BsYUorQU.js → python-tC-5HtXS.js} +1 -1
  45. package/apps/web/dist/assets/{razor-BD2nf1Tj.js → razor-DmUARTT5.js} +1 -1
  46. package/apps/web/dist/assets/{tsMode-CajpaWj3.js → tsMode-BUABwVTd.js} +1 -1
  47. package/apps/web/dist/assets/{typescript-CAwp5Hth.js → typescript-sTt0HE01.js} +1 -1
  48. package/apps/web/dist/assets/{workers-DQDsBekN.js → workers-D6L1Qkzp.js} +1 -1
  49. package/apps/web/dist/assets/{xml-VeRYpQOb.js → xml-asYBWpFY.js} +1 -1
  50. package/apps/web/dist/assets/{yaml-gvfBPNHx.js → yaml-DWoILemf.js} +1 -1
  51. package/apps/web/dist/favicon.svg +4 -4
  52. package/apps/web/dist/index.html +1 -1
  53. package/package.json +1 -1
  54. package/apps/server/dist/doctor-CGNZt_v3.js +0 -1
  55. package/apps/web/dist/assets/main-BQi_aSBl.js +0 -157
  56. package/apps/web/dist/assets/main-Dveg9bRJ.css +0 -1
@@ -1,81 +1,81 @@
1
- CREATE TABLE `agent_events` (
2
- `id` text PRIMARY KEY NOT NULL,
3
- `session_id` text NOT NULL,
4
- `turn_id` text,
5
- `seq` integer NOT NULL,
6
- `type` text NOT NULL,
7
- `payload_json` text DEFAULT '{}' NOT NULL,
8
- `created_at` integer NOT NULL,
9
- FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE cascade,
10
- FOREIGN KEY (`turn_id`) REFERENCES `turns`(`id`) ON UPDATE no action ON DELETE cascade
11
- );
12
- --> statement-breakpoint
13
- CREATE UNIQUE INDEX `agent_events_session_seq_unique` ON `agent_events` (`session_id`,`seq`);--> statement-breakpoint
14
- CREATE TABLE `approvals` (
15
- `id` text PRIMARY KEY NOT NULL,
16
- `turn_id` text NOT NULL,
17
- `tool_call_id` text NOT NULL,
18
- `tool_name` text NOT NULL,
19
- `risk` text NOT NULL,
20
- `status` text DEFAULT 'pending' NOT NULL,
21
- `scope_json` text DEFAULT '{}' NOT NULL,
22
- `params_hash` text NOT NULL,
23
- `expires_at` integer NOT NULL,
24
- `decided_at` integer,
25
- `decided_by` text,
26
- `created_at` integer NOT NULL,
27
- FOREIGN KEY (`turn_id`) REFERENCES `turns`(`id`) ON UPDATE no action ON DELETE cascade
28
- );
29
- --> statement-breakpoint
30
- CREATE INDEX `idx_approvals_turn_status` ON `approvals` (`turn_id`,`status`);--> statement-breakpoint
31
- CREATE INDEX `idx_approvals_expiry` ON `approvals` (`expires_at`);--> statement-breakpoint
32
- CREATE TABLE `resource_locks` (
33
- `id` text PRIMARY KEY NOT NULL,
34
- `resource_type` text NOT NULL,
35
- `resource_id` text NOT NULL,
36
- `owner` text NOT NULL,
37
- `execution_id` text NOT NULL,
38
- `fencing_token` integer NOT NULL,
39
- `expires_at` integer NOT NULL,
40
- `heartbeat_at` integer NOT NULL,
41
- `created_at` integer NOT NULL
42
- );
43
- --> statement-breakpoint
44
- CREATE UNIQUE INDEX `resource_locks_resource_unique` ON `resource_locks` (`resource_type`,`resource_id`);--> statement-breakpoint
45
- CREATE INDEX `idx_resource_locks_expiry` ON `resource_locks` (`expires_at`);--> statement-breakpoint
46
- CREATE TABLE `sessions` (
47
- `id` text PRIMARY KEY NOT NULL,
48
- `project_id` text,
49
- `workspace_path` text NOT NULL,
50
- `title` text NOT NULL,
51
- `status` text DEFAULT 'active' NOT NULL,
52
- `model_profile_id` text,
53
- `approval_policy_id` text DEFAULT 'standard' NOT NULL,
54
- `created_at` integer NOT NULL,
55
- `updated_at` integer NOT NULL,
56
- `last_activity_at` integer NOT NULL,
57
- FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE set null
58
- );
59
- --> statement-breakpoint
60
- CREATE INDEX `idx_sessions_project_updated` ON `sessions` (`project_id`,`updated_at`);--> statement-breakpoint
61
- CREATE INDEX `idx_sessions_updated` ON `sessions` (`updated_at`);--> statement-breakpoint
62
- CREATE TABLE `turns` (
63
- `id` text PRIMARY KEY NOT NULL,
64
- `session_id` text NOT NULL,
65
- `model_profile_id` text,
66
- `provider` text,
67
- `model` text,
68
- `status` text NOT NULL,
69
- `input_json` text NOT NULL,
70
- `usage_json` text,
71
- `error_json` text,
72
- `idempotency_key` text,
73
- `created_at` integer NOT NULL,
74
- `started_at` integer,
75
- `ended_at` integer,
76
- FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE cascade
77
- );
78
- --> statement-breakpoint
79
- CREATE UNIQUE INDEX `turns_session_idempotency_unique` ON `turns` (`session_id`,`idempotency_key`);--> statement-breakpoint
80
- CREATE INDEX `idx_turns_session_created` ON `turns` (`session_id`,`created_at`);--> statement-breakpoint
1
+ CREATE TABLE `agent_events` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `session_id` text NOT NULL,
4
+ `turn_id` text,
5
+ `seq` integer NOT NULL,
6
+ `type` text NOT NULL,
7
+ `payload_json` text DEFAULT '{}' NOT NULL,
8
+ `created_at` integer NOT NULL,
9
+ FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE cascade,
10
+ FOREIGN KEY (`turn_id`) REFERENCES `turns`(`id`) ON UPDATE no action ON DELETE cascade
11
+ );
12
+ --> statement-breakpoint
13
+ CREATE UNIQUE INDEX `agent_events_session_seq_unique` ON `agent_events` (`session_id`,`seq`);--> statement-breakpoint
14
+ CREATE TABLE `approvals` (
15
+ `id` text PRIMARY KEY NOT NULL,
16
+ `turn_id` text NOT NULL,
17
+ `tool_call_id` text NOT NULL,
18
+ `tool_name` text NOT NULL,
19
+ `risk` text NOT NULL,
20
+ `status` text DEFAULT 'pending' NOT NULL,
21
+ `scope_json` text DEFAULT '{}' NOT NULL,
22
+ `params_hash` text NOT NULL,
23
+ `expires_at` integer NOT NULL,
24
+ `decided_at` integer,
25
+ `decided_by` text,
26
+ `created_at` integer NOT NULL,
27
+ FOREIGN KEY (`turn_id`) REFERENCES `turns`(`id`) ON UPDATE no action ON DELETE cascade
28
+ );
29
+ --> statement-breakpoint
30
+ CREATE INDEX `idx_approvals_turn_status` ON `approvals` (`turn_id`,`status`);--> statement-breakpoint
31
+ CREATE INDEX `idx_approvals_expiry` ON `approvals` (`expires_at`);--> statement-breakpoint
32
+ CREATE TABLE `resource_locks` (
33
+ `id` text PRIMARY KEY NOT NULL,
34
+ `resource_type` text NOT NULL,
35
+ `resource_id` text NOT NULL,
36
+ `owner` text NOT NULL,
37
+ `execution_id` text NOT NULL,
38
+ `fencing_token` integer NOT NULL,
39
+ `expires_at` integer NOT NULL,
40
+ `heartbeat_at` integer NOT NULL,
41
+ `created_at` integer NOT NULL
42
+ );
43
+ --> statement-breakpoint
44
+ CREATE UNIQUE INDEX `resource_locks_resource_unique` ON `resource_locks` (`resource_type`,`resource_id`);--> statement-breakpoint
45
+ CREATE INDEX `idx_resource_locks_expiry` ON `resource_locks` (`expires_at`);--> statement-breakpoint
46
+ CREATE TABLE `sessions` (
47
+ `id` text PRIMARY KEY NOT NULL,
48
+ `project_id` text,
49
+ `workspace_path` text NOT NULL,
50
+ `title` text NOT NULL,
51
+ `status` text DEFAULT 'active' NOT NULL,
52
+ `model_profile_id` text,
53
+ `approval_policy_id` text DEFAULT 'standard' NOT NULL,
54
+ `created_at` integer NOT NULL,
55
+ `updated_at` integer NOT NULL,
56
+ `last_activity_at` integer NOT NULL,
57
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE set null
58
+ );
59
+ --> statement-breakpoint
60
+ CREATE INDEX `idx_sessions_project_updated` ON `sessions` (`project_id`,`updated_at`);--> statement-breakpoint
61
+ CREATE INDEX `idx_sessions_updated` ON `sessions` (`updated_at`);--> statement-breakpoint
62
+ CREATE TABLE `turns` (
63
+ `id` text PRIMARY KEY NOT NULL,
64
+ `session_id` text NOT NULL,
65
+ `model_profile_id` text,
66
+ `provider` text,
67
+ `model` text,
68
+ `status` text NOT NULL,
69
+ `input_json` text NOT NULL,
70
+ `usage_json` text,
71
+ `error_json` text,
72
+ `idempotency_key` text,
73
+ `created_at` integer NOT NULL,
74
+ `started_at` integer,
75
+ `ended_at` integer,
76
+ FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE cascade
77
+ );
78
+ --> statement-breakpoint
79
+ CREATE UNIQUE INDEX `turns_session_idempotency_unique` ON `turns` (`session_id`,`idempotency_key`);--> statement-breakpoint
80
+ CREATE INDEX `idx_turns_session_created` ON `turns` (`session_id`,`created_at`);--> statement-breakpoint
81
81
  CREATE INDEX `idx_turns_session_status` ON `turns` (`session_id`,`status`);
@@ -1,30 +1,30 @@
1
- CREATE TABLE `credential_profiles` (
2
- `id` text PRIMARY KEY NOT NULL,
3
- `provider` text NOT NULL,
4
- `label` text NOT NULL,
5
- `secret_ref` text NOT NULL,
6
- `created_at` integer NOT NULL,
7
- FOREIGN KEY (`secret_ref`) REFERENCES `secrets`(`id`) ON UPDATE no action ON DELETE cascade
8
- );
9
- --> statement-breakpoint
10
- CREATE INDEX `idx_credential_profiles_provider` ON `credential_profiles` (`provider`);--> statement-breakpoint
11
- CREATE TABLE `model_profiles` (
12
- `id` text PRIMARY KEY NOT NULL,
13
- `label` text NOT NULL,
14
- `provider` text NOT NULL,
15
- `model` text NOT NULL,
16
- `credential_profile_id` text,
17
- `endpoint` text,
18
- `capabilities_json` text DEFAULT '{}' NOT NULL,
19
- `created_at` integer NOT NULL,
20
- FOREIGN KEY (`credential_profile_id`) REFERENCES `credential_profiles`(`id`) ON UPDATE no action ON DELETE set null
21
- );
22
- --> statement-breakpoint
23
- CREATE INDEX `idx_model_profiles_provider` ON `model_profiles` (`provider`);--> statement-breakpoint
24
- CREATE TABLE `secrets` (
25
- `id` text PRIMARY KEY NOT NULL,
26
- `ciphertext` text NOT NULL,
27
- `nonce` text NOT NULL,
28
- `tag` text NOT NULL,
29
- `created_at` integer NOT NULL
30
- );
1
+ CREATE TABLE `credential_profiles` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `provider` text NOT NULL,
4
+ `label` text NOT NULL,
5
+ `secret_ref` text NOT NULL,
6
+ `created_at` integer NOT NULL,
7
+ FOREIGN KEY (`secret_ref`) REFERENCES `secrets`(`id`) ON UPDATE no action ON DELETE cascade
8
+ );
9
+ --> statement-breakpoint
10
+ CREATE INDEX `idx_credential_profiles_provider` ON `credential_profiles` (`provider`);--> statement-breakpoint
11
+ CREATE TABLE `model_profiles` (
12
+ `id` text PRIMARY KEY NOT NULL,
13
+ `label` text NOT NULL,
14
+ `provider` text NOT NULL,
15
+ `model` text NOT NULL,
16
+ `credential_profile_id` text,
17
+ `endpoint` text,
18
+ `capabilities_json` text DEFAULT '{}' NOT NULL,
19
+ `created_at` integer NOT NULL,
20
+ FOREIGN KEY (`credential_profile_id`) REFERENCES `credential_profiles`(`id`) ON UPDATE no action ON DELETE set null
21
+ );
22
+ --> statement-breakpoint
23
+ CREATE INDEX `idx_model_profiles_provider` ON `model_profiles` (`provider`);--> statement-breakpoint
24
+ CREATE TABLE `secrets` (
25
+ `id` text PRIMARY KEY NOT NULL,
26
+ `ciphertext` text NOT NULL,
27
+ `nonce` text NOT NULL,
28
+ `tag` text NOT NULL,
29
+ `created_at` integer NOT NULL
30
+ );
@@ -1,54 +1,54 @@
1
- CREATE TABLE `file_versions` (
2
- `scope_key` text NOT NULL,
3
- `path` text NOT NULL,
4
- `real_path` text NOT NULL,
5
- `version_hash` text NOT NULL,
6
- `size` integer NOT NULL,
7
- `mtime` integer NOT NULL,
8
- `updated_at` integer NOT NULL
9
- );
10
- --> statement-breakpoint
11
- CREATE UNIQUE INDEX `file_versions_scope_path` ON `file_versions` (`scope_key`,`path`);--> statement-breakpoint
12
- CREATE TABLE `resource_events` (
13
- `id` text PRIMARY KEY NOT NULL,
14
- `stream_id` text NOT NULL,
15
- `seq` integer NOT NULL,
16
- `type` text NOT NULL,
17
- `payload_json` text NOT NULL,
18
- `created_at` integer NOT NULL,
19
- FOREIGN KEY (`stream_id`) REFERENCES `resource_streams`(`stream_id`) ON UPDATE no action ON DELETE no action
20
- );
21
- --> statement-breakpoint
22
- CREATE UNIQUE INDEX `resource_events_stream_seq` ON `resource_events` (`stream_id`,`seq`);--> statement-breakpoint
23
- CREATE TABLE `resource_operations` (
24
- `id` text PRIMARY KEY NOT NULL,
25
- `scope_key` text NOT NULL,
26
- `root_real_path` text NOT NULL,
27
- `kind` text NOT NULL,
28
- `status` text NOT NULL,
29
- `params_hash` text NOT NULL,
30
- `idempotency_key` text NOT NULL,
31
- `client_session_id` text NOT NULL,
32
- `path` text NOT NULL,
33
- `expected_version` text NOT NULL,
34
- `target_version` text NOT NULL,
35
- `lock_id` text NOT NULL,
36
- `fencing_token` integer NOT NULL,
37
- `result_json` text,
38
- `error_code` text,
39
- `created_at` integer NOT NULL,
40
- `updated_at` integer NOT NULL
41
- );
42
- --> statement-breakpoint
43
- CREATE UNIQUE INDEX `resource_operations_client_kind_key` ON `resource_operations` (`client_session_id`,`kind`,`idempotency_key`);--> statement-breakpoint
44
- CREATE INDEX `resource_operations_status` ON `resource_operations` (`status`);--> statement-breakpoint
45
- CREATE TABLE `resource_streams` (
46
- `stream_id` text PRIMARY KEY NOT NULL,
47
- `last_seq` integer DEFAULT 0 NOT NULL
48
- );
49
- --> statement-breakpoint
50
- ALTER TABLE `resource_locks` ADD `root_real_path` text;
51
- --> statement-breakpoint
52
- UPDATE `resource_locks` SET `root_real_path` = (
53
- SELECT `real_path` FROM `projects` WHERE `projects`.`id` = `resource_locks`.`resource_id`
54
- ) WHERE `resource_type` = 'project';
1
+ CREATE TABLE `file_versions` (
2
+ `scope_key` text NOT NULL,
3
+ `path` text NOT NULL,
4
+ `real_path` text NOT NULL,
5
+ `version_hash` text NOT NULL,
6
+ `size` integer NOT NULL,
7
+ `mtime` integer NOT NULL,
8
+ `updated_at` integer NOT NULL
9
+ );
10
+ --> statement-breakpoint
11
+ CREATE UNIQUE INDEX `file_versions_scope_path` ON `file_versions` (`scope_key`,`path`);--> statement-breakpoint
12
+ CREATE TABLE `resource_events` (
13
+ `id` text PRIMARY KEY NOT NULL,
14
+ `stream_id` text NOT NULL,
15
+ `seq` integer NOT NULL,
16
+ `type` text NOT NULL,
17
+ `payload_json` text NOT NULL,
18
+ `created_at` integer NOT NULL,
19
+ FOREIGN KEY (`stream_id`) REFERENCES `resource_streams`(`stream_id`) ON UPDATE no action ON DELETE no action
20
+ );
21
+ --> statement-breakpoint
22
+ CREATE UNIQUE INDEX `resource_events_stream_seq` ON `resource_events` (`stream_id`,`seq`);--> statement-breakpoint
23
+ CREATE TABLE `resource_operations` (
24
+ `id` text PRIMARY KEY NOT NULL,
25
+ `scope_key` text NOT NULL,
26
+ `root_real_path` text NOT NULL,
27
+ `kind` text NOT NULL,
28
+ `status` text NOT NULL,
29
+ `params_hash` text NOT NULL,
30
+ `idempotency_key` text NOT NULL,
31
+ `client_session_id` text NOT NULL,
32
+ `path` text NOT NULL,
33
+ `expected_version` text NOT NULL,
34
+ `target_version` text NOT NULL,
35
+ `lock_id` text NOT NULL,
36
+ `fencing_token` integer NOT NULL,
37
+ `result_json` text,
38
+ `error_code` text,
39
+ `created_at` integer NOT NULL,
40
+ `updated_at` integer NOT NULL
41
+ );
42
+ --> statement-breakpoint
43
+ CREATE UNIQUE INDEX `resource_operations_client_kind_key` ON `resource_operations` (`client_session_id`,`kind`,`idempotency_key`);--> statement-breakpoint
44
+ CREATE INDEX `resource_operations_status` ON `resource_operations` (`status`);--> statement-breakpoint
45
+ CREATE TABLE `resource_streams` (
46
+ `stream_id` text PRIMARY KEY NOT NULL,
47
+ `last_seq` integer DEFAULT 0 NOT NULL
48
+ );
49
+ --> statement-breakpoint
50
+ ALTER TABLE `resource_locks` ADD `root_real_path` text;
51
+ --> statement-breakpoint
52
+ UPDATE `resource_locks` SET `root_real_path` = (
53
+ SELECT `real_path` FROM `projects` WHERE `projects`.`id` = `resource_locks`.`resource_id`
54
+ ) WHERE `resource_type` = 'project';
@@ -1,24 +1,24 @@
1
- CREATE TABLE `command_executions` (
2
- `id` text PRIMARY KEY NOT NULL,
3
- `operation_id` text NOT NULL,
4
- `project_id` text,
5
- `workspace_session_id` text,
6
- `session_id` text NOT NULL,
7
- `turn_id` text NOT NULL,
8
- `tool_call_id` text NOT NULL,
9
- `policy_snapshot_id` text NOT NULL,
10
- `params_hash` text NOT NULL,
11
- `status` text NOT NULL,
12
- `exit_code` integer,
13
- `reason_code` text,
14
- `truncated` integer DEFAULT false NOT NULL,
15
- `process_identity_json` text,
16
- `output_cursor` integer DEFAULT 0 NOT NULL,
17
- `created_at` integer NOT NULL,
18
- `started_at` integer,
19
- `ended_at` integer,
20
- FOREIGN KEY (`operation_id`) REFERENCES `resource_operations`(`id`) ON UPDATE no action ON DELETE no action
21
- );
22
- --> statement-breakpoint
23
- CREATE UNIQUE INDEX `command_executions_operation` ON `command_executions` (`operation_id`);--> statement-breakpoint
1
+ CREATE TABLE `command_executions` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `operation_id` text NOT NULL,
4
+ `project_id` text,
5
+ `workspace_session_id` text,
6
+ `session_id` text NOT NULL,
7
+ `turn_id` text NOT NULL,
8
+ `tool_call_id` text NOT NULL,
9
+ `policy_snapshot_id` text NOT NULL,
10
+ `params_hash` text NOT NULL,
11
+ `status` text NOT NULL,
12
+ `exit_code` integer,
13
+ `reason_code` text,
14
+ `truncated` integer DEFAULT false NOT NULL,
15
+ `process_identity_json` text,
16
+ `output_cursor` integer DEFAULT 0 NOT NULL,
17
+ `created_at` integer NOT NULL,
18
+ `started_at` integer,
19
+ `ended_at` integer,
20
+ FOREIGN KEY (`operation_id`) REFERENCES `resource_operations`(`id`) ON UPDATE no action ON DELETE no action
21
+ );
22
+ --> statement-breakpoint
23
+ CREATE UNIQUE INDEX `command_executions_operation` ON `command_executions` (`operation_id`);--> statement-breakpoint
24
24
  CREATE INDEX `command_executions_status` ON `command_executions` (`status`);
@@ -1,42 +1,42 @@
1
- CREATE TABLE `terminal_leases` (
2
- `terminal_id` text PRIMARY KEY NOT NULL,
3
- `generation` integer DEFAULT 0 NOT NULL,
4
- `owner_type` text,
5
- `owner_client_session_id` text,
6
- `owner_connection_id` text,
7
- `owner_session_id` text,
8
- `owner_turn_id` text,
9
- `owner_execution_id` text,
10
- `expires_at` integer DEFAULT 0 NOT NULL,
11
- `heartbeat_at` integer DEFAULT 0 NOT NULL,
12
- `input_sequence` integer DEFAULT 0 NOT NULL,
13
- FOREIGN KEY (`terminal_id`) REFERENCES `terminals`(`id`) ON UPDATE no action ON DELETE no action
14
- );
15
- --> statement-breakpoint
16
- CREATE TABLE `terminals` (
17
- `id` text PRIMARY KEY NOT NULL,
18
- `operation_id` text NOT NULL,
19
- `project_id` text,
20
- `workspace_session_id` text,
21
- `source_session_id` text,
22
- `cwd` text NOT NULL,
23
- `shell` text NOT NULL,
24
- `mode` text NOT NULL,
25
- `role` text,
26
- `launch_params_json` text,
27
- `launch_params_hash` text,
28
- `created_by_turn_id` text,
29
- `status` text NOT NULL,
30
- `process_identity_json` text,
31
- `reason_code` text,
32
- `output_cursor` integer DEFAULT 0 NOT NULL,
33
- `created_at` integer NOT NULL,
34
- `started_at` integer,
35
- `ended_at` integer,
36
- `exit_code` integer,
37
- FOREIGN KEY (`operation_id`) REFERENCES `resource_operations`(`id`) ON UPDATE no action ON DELETE no action
38
- );
39
- --> statement-breakpoint
40
- CREATE UNIQUE INDEX `terminals_operation` ON `terminals` (`operation_id`);--> statement-breakpoint
41
- CREATE INDEX `terminals_status` ON `terminals` (`status`);--> statement-breakpoint
1
+ CREATE TABLE `terminal_leases` (
2
+ `terminal_id` text PRIMARY KEY NOT NULL,
3
+ `generation` integer DEFAULT 0 NOT NULL,
4
+ `owner_type` text,
5
+ `owner_client_session_id` text,
6
+ `owner_connection_id` text,
7
+ `owner_session_id` text,
8
+ `owner_turn_id` text,
9
+ `owner_execution_id` text,
10
+ `expires_at` integer DEFAULT 0 NOT NULL,
11
+ `heartbeat_at` integer DEFAULT 0 NOT NULL,
12
+ `input_sequence` integer DEFAULT 0 NOT NULL,
13
+ FOREIGN KEY (`terminal_id`) REFERENCES `terminals`(`id`) ON UPDATE no action ON DELETE no action
14
+ );
15
+ --> statement-breakpoint
16
+ CREATE TABLE `terminals` (
17
+ `id` text PRIMARY KEY NOT NULL,
18
+ `operation_id` text NOT NULL,
19
+ `project_id` text,
20
+ `workspace_session_id` text,
21
+ `source_session_id` text,
22
+ `cwd` text NOT NULL,
23
+ `shell` text NOT NULL,
24
+ `mode` text NOT NULL,
25
+ `role` text,
26
+ `launch_params_json` text,
27
+ `launch_params_hash` text,
28
+ `created_by_turn_id` text,
29
+ `status` text NOT NULL,
30
+ `process_identity_json` text,
31
+ `reason_code` text,
32
+ `output_cursor` integer DEFAULT 0 NOT NULL,
33
+ `created_at` integer NOT NULL,
34
+ `started_at` integer,
35
+ `ended_at` integer,
36
+ `exit_code` integer,
37
+ FOREIGN KEY (`operation_id`) REFERENCES `resource_operations`(`id`) ON UPDATE no action ON DELETE no action
38
+ );
39
+ --> statement-breakpoint
40
+ CREATE UNIQUE INDEX `terminals_operation` ON `terminals` (`operation_id`);--> statement-breakpoint
41
+ CREATE INDEX `terminals_status` ON `terminals` (`status`);--> statement-breakpoint
42
42
  CREATE UNIQUE INDEX `terminals_active_role` ON `terminals` (`project_id`,`role`) WHERE "terminals"."mode" = 'dev' AND "terminals"."status" IN ('CREATED', 'RUNNING', 'STOPPING');
@@ -1,24 +1,24 @@
1
- CREATE TABLE `resource_actions` (
2
- `id` text PRIMARY KEY NOT NULL,
3
- `operation_id` text NOT NULL,
4
- `project_id` text NOT NULL,
5
- `kind` text NOT NULL,
6
- `risk` text NOT NULL,
7
- `status` text NOT NULL,
8
- `params_json` text NOT NULL,
9
- `params_hash` text NOT NULL,
10
- `snapshot_hash` text NOT NULL,
11
- `requested_by` text NOT NULL,
12
- `decided_by` text,
13
- `expires_at` integer NOT NULL,
14
- `decided_at` integer,
15
- `started_at` integer,
16
- `ended_at` integer,
17
- `result_json` text,
18
- `created_at` integer NOT NULL,
19
- FOREIGN KEY (`operation_id`) REFERENCES `resource_operations`(`id`) ON UPDATE no action ON DELETE no action,
20
- FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE no action
21
- );
22
- --> statement-breakpoint
23
- CREATE UNIQUE INDEX `resource_actions_operation` ON `resource_actions` (`operation_id`);--> statement-breakpoint
1
+ CREATE TABLE `resource_actions` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `operation_id` text NOT NULL,
4
+ `project_id` text NOT NULL,
5
+ `kind` text NOT NULL,
6
+ `risk` text NOT NULL,
7
+ `status` text NOT NULL,
8
+ `params_json` text NOT NULL,
9
+ `params_hash` text NOT NULL,
10
+ `snapshot_hash` text NOT NULL,
11
+ `requested_by` text NOT NULL,
12
+ `decided_by` text,
13
+ `expires_at` integer NOT NULL,
14
+ `decided_at` integer,
15
+ `started_at` integer,
16
+ `ended_at` integer,
17
+ `result_json` text,
18
+ `created_at` integer NOT NULL,
19
+ FOREIGN KEY (`operation_id`) REFERENCES `resource_operations`(`id`) ON UPDATE no action ON DELETE no action,
20
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE no action
21
+ );
22
+ --> statement-breakpoint
23
+ CREATE UNIQUE INDEX `resource_actions_operation` ON `resource_actions` (`operation_id`);--> statement-breakpoint
24
24
  CREATE INDEX `resource_actions_project_status` ON `resource_actions` (`project_id`,`status`);
@@ -1,32 +1,32 @@
1
- CREATE TABLE `services` (
2
- `id` text PRIMARY KEY NOT NULL,
3
- `operation_id` text NOT NULL,
4
- `project_id` text NOT NULL,
5
- `source_session_id` text,
6
- `terminal_id` text NOT NULL,
7
- `name` text NOT NULL,
8
- `kind` text NOT NULL,
9
- `status` text NOT NULL,
10
- `terminal_execution_id` text NOT NULL,
11
- `endpoint_generation` integer NOT NULL,
12
- `endpoint_host` text NOT NULL,
13
- `endpoint_port` integer NOT NULL,
14
- `endpoint_protocol` text NOT NULL,
15
- `identity_json` text NOT NULL,
16
- `reason_code` text,
17
- `created_at` integer NOT NULL,
18
- `updated_at` integer NOT NULL,
19
- `ended_at` integer,
20
- FOREIGN KEY (`operation_id`) REFERENCES `resource_operations`(`id`) ON UPDATE no action ON DELETE no action,
21
- FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE no action,
22
- FOREIGN KEY (`terminal_id`) REFERENCES `terminals`(`id`) ON UPDATE no action ON DELETE no action,
23
- CONSTRAINT "services_status" CHECK("services"."status" IN ('REGISTERING', 'STARTING', 'RUNNING', 'UNKNOWN', 'UNREGISTERED')),
24
- CONSTRAINT "services_host" CHECK("services"."endpoint_host" IN ('127.0.0.1', '::1')),
25
- CONSTRAINT "services_port" CHECK("services"."endpoint_port" BETWEEN 1 AND 65535),
26
- CONSTRAINT "services_protocol" CHECK("services"."endpoint_protocol" = 'http')
27
- );
28
- --> statement-breakpoint
29
- CREATE UNIQUE INDEX `services_operation` ON `services` (`operation_id`);--> statement-breakpoint
30
- CREATE INDEX `services_project_status` ON `services` (`project_id`,`status`);--> statement-breakpoint
31
- CREATE INDEX `services_terminal` ON `services` (`terminal_id`);--> statement-breakpoint
1
+ CREATE TABLE `services` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `operation_id` text NOT NULL,
4
+ `project_id` text NOT NULL,
5
+ `source_session_id` text,
6
+ `terminal_id` text NOT NULL,
7
+ `name` text NOT NULL,
8
+ `kind` text NOT NULL,
9
+ `status` text NOT NULL,
10
+ `terminal_execution_id` text NOT NULL,
11
+ `endpoint_generation` integer NOT NULL,
12
+ `endpoint_host` text NOT NULL,
13
+ `endpoint_port` integer NOT NULL,
14
+ `endpoint_protocol` text NOT NULL,
15
+ `identity_json` text NOT NULL,
16
+ `reason_code` text,
17
+ `created_at` integer NOT NULL,
18
+ `updated_at` integer NOT NULL,
19
+ `ended_at` integer,
20
+ FOREIGN KEY (`operation_id`) REFERENCES `resource_operations`(`id`) ON UPDATE no action ON DELETE no action,
21
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE no action,
22
+ FOREIGN KEY (`terminal_id`) REFERENCES `terminals`(`id`) ON UPDATE no action ON DELETE no action,
23
+ CONSTRAINT "services_status" CHECK("services"."status" IN ('REGISTERING', 'STARTING', 'RUNNING', 'UNKNOWN', 'UNREGISTERED')),
24
+ CONSTRAINT "services_host" CHECK("services"."endpoint_host" IN ('127.0.0.1', '::1')),
25
+ CONSTRAINT "services_port" CHECK("services"."endpoint_port" BETWEEN 1 AND 65535),
26
+ CONSTRAINT "services_protocol" CHECK("services"."endpoint_protocol" = 'http')
27
+ );
28
+ --> statement-breakpoint
29
+ CREATE UNIQUE INDEX `services_operation` ON `services` (`operation_id`);--> statement-breakpoint
30
+ CREATE INDEX `services_project_status` ON `services` (`project_id`,`status`);--> statement-breakpoint
31
+ CREATE INDEX `services_terminal` ON `services` (`terminal_id`);--> statement-breakpoint
32
32
  CREATE UNIQUE INDEX `services_active_endpoint` ON `services` (`terminal_id`,`endpoint_host`,`endpoint_port`) WHERE "services"."status" IN ('REGISTERING', 'STARTING', 'RUNNING');
@@ -1 +1 @@
1
- import{n as e}from"./monaco-C4Y-n5xH.js";import{f as t,p as n}from"./editor.api-D6oPGpkQ.js";import{i as r,n as i,o as a,r as o}from"./main-BQi_aSBl.js";var s=a(r(),1),c=o();function l({identity:t,path:n,text:r,original:a,readOnly:o,onChange:s}){let{resolved:l}=i(),d=n.endsWith(`.json`)?`json`:n.endsWith(`.md`)?`markdown`:/\.[cm]?tsx?$/.test(n)?`typescript`:/\.[cm]?jsx?$/.test(n)?`javascript`:n.endsWith(`.css`)?`css`:`plaintext`,p={readOnly:o,editContext:!1,automaticLayout:!0,minimap:{enabled:!1},fontSize:12,scrollBeyondLastLine:!1,ariaLabel:`文件内容`},m=l===`dark`?`vs-dark`:`light`,h=r.startsWith(``)?``:``;return a===void 0?(0,c.jsx)(e,{height:`100%`,path:u(t),keepCurrentModel:!0,language:d,value:r.slice(h.length),theme:m,options:p,onChange:e=>{e!==void 0&&h+e!==r&&s(h+e)}}):(0,c.jsx)(f,{original:a,modified:r,language:d,theme:m})}function u(e){return`larness-file:${encodeURIComponent(e)}`}function d(e){n.getModel(t.parse(u(e)))?.dispose()}function f({original:e,modified:t,language:r,theme:i}){let a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!a.current)return;let o=n.createModel(e,r),s=n.createModel(t,r),c=n.createDiffEditor(a.current,{readOnly:!0,originalEditable:!1,automaticLayout:!0,minimap:{enabled:!1},fontSize:12,renderSideBySide:!0});return n.setTheme(i),c.setModel({original:o,modified:s}),()=>{c.setModel(null),c.dispose(),o.dispose(),s.dispose()}},[e,t,r,i]),(0,c.jsx)(`section`,{ref:a,className:`h-full w-full`,"aria-label":`磁盘与草稿差异`})}export{l as default,d as disposeFileModel,u as fileModelPath};
1
+ import{n as e}from"./monaco-b438wjl8.js";import{f as t,p as n}from"./editor.api-B-Hf6DWT.js";import{i as r,n as i,o as a,r as o}from"./main-B0YUBq2Q.js";var s=a(r(),1),c=o();function l({identity:t,path:n,text:r,original:a,readOnly:o,onChange:s}){let{resolved:l}=i(),d=n.endsWith(`.json`)?`json`:n.endsWith(`.md`)?`markdown`:/\.[cm]?tsx?$/.test(n)?`typescript`:/\.[cm]?jsx?$/.test(n)?`javascript`:n.endsWith(`.css`)?`css`:`plaintext`,p={readOnly:o,editContext:!1,automaticLayout:!0,minimap:{enabled:!1},fontSize:12,scrollBeyondLastLine:!1,ariaLabel:`文件内容`},m=l===`dark`?`vs-dark`:`light`,h=r.startsWith(``)?``:``;return a===void 0?(0,c.jsx)(e,{height:`100%`,path:u(t),keepCurrentModel:!0,language:d,value:r.slice(h.length),theme:m,options:p,onChange:e=>{e!==void 0&&h+e!==r&&s(h+e)}}):(0,c.jsx)(f,{original:a,modified:r,language:d,theme:m})}function u(e){return`larness-file:${encodeURIComponent(e)}`}function d(e){n.getModel(t.parse(u(e)))?.dispose()}function f({original:e,modified:t,language:r,theme:i}){let a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!a.current)return;let o=n.createModel(e,r),s=n.createModel(t,r),c=n.createDiffEditor(a.current,{readOnly:!0,originalEditable:!1,automaticLayout:!0,minimap:{enabled:!1},fontSize:12,renderSideBySide:!0});return n.setTheme(i),c.setModel({original:o,modified:s}),()=>{c.setModel(null),c.dispose(),o.dispose(),s.dispose()}},[e,t,r,i]),(0,c.jsx)(`section`,{ref:a,className:`h-full w-full`,"aria-label":`磁盘与草稿差异`})}export{l as default,d as disposeFileModel,u as fileModelPath};
@@ -1 +1 @@
1
- import{n as e}from"./monaco-C4Y-n5xH.js";import{n as t,r as n}from"./main-BQi_aSBl.js";var r=n();function i({doc:n}){let{resolved:i}=t();return(0,r.jsx)(e,{height:`100%`,path:n.path,defaultLanguage:n.language,value:n.content,theme:i===`dark`?`vs-dark`:`light`,options:{readOnly:!0,domReadOnly:!0,automaticLayout:!0,minimap:{enabled:!1},fontSize:12,lineHeight:19,fontFamily:`ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`,padding:{top:12,bottom:12},scrollBeyondLastLine:!1,renderLineHighlight:`none`,wordWrap:`off`,smoothScrolling:!0,overviewRulerLanes:0,hideCursorInOverviewRuler:!0,scrollbar:{verticalScrollbarSize:9,horizontalScrollbarSize:9}}})}export{i as default};
1
+ import{n as e}from"./monaco-b438wjl8.js";import{n as t,r as n}from"./main-B0YUBq2Q.js";var r=n();function i({doc:n}){let{resolved:i}=t();return(0,r.jsx)(e,{height:`100%`,path:n.path,defaultLanguage:n.language,value:n.content,theme:i===`dark`?`vs-dark`:`light`,options:{readOnly:!0,domReadOnly:!0,automaticLayout:!0,minimap:{enabled:!1},fontSize:12,lineHeight:19,fontFamily:`ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`,padding:{top:12,bottom:12},scrollBeyondLastLine:!1,renderLineHighlight:`none`,wordWrap:`off`,smoothScrolling:!0,overviewRulerLanes:0,hideCursorInOverviewRuler:!0,scrollbar:{verticalScrollbarSize:9,horizontalScrollbarSize:9}}})}export{i as default};
@@ -1 +1 @@
1
- import{t as e}from"./workers-DQDsBekN.js";import{_ as t,a as n,c as r,d as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _,v}from"./lspLanguageFeatures-DNfY34nV.js";import{m as y}from"./editor.api-D6oPGpkQ.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=e({moduleId:`vs/language/css/cssWorker`,createWorker:()=>new Worker(new URL(`/assets/css.worker-C5TGqYcS.js`,``+import.meta.url),{type:`module`}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};function S(e){let t=[],o=[],s=new x(e);t.push(s);let h=(...e)=>s.getLanguageServiceWorker(...e);function v(){let{languageId:t,modeConfiguration:s}=e;w(o),s.completionItems&&o.push(y.registerCompletionItemProvider(t,new g(h,[`/`,`-`,`:`]))),s.hovers&&o.push(y.registerHoverProvider(t,new i(h))),s.documentHighlights&&o.push(y.registerDocumentHighlightProvider(t,new f(h))),s.definitions&&o.push(y.registerDefinitionProvider(t,new d(h))),s.references&&o.push(y.registerReferenceProvider(t,new a(h))),s.documentSymbols&&o.push(y.registerDocumentSymbolProvider(t,new l(h))),s.rename&&o.push(y.registerRenameProvider(t,new p(h))),s.colors&&o.push(y.registerColorProvider(t,new c(h))),s.foldingRanges&&o.push(y.registerFoldingRangeProvider(t,new _(h))),s.diagnostics&&o.push(new m(t,h,e.onDidChange)),s.selectionRanges&&o.push(y.registerSelectionRangeProvider(t,new u(h))),s.documentFormattingEdits&&o.push(y.registerDocumentFormattingEditProvider(t,new n(h))),s.documentRangeFormattingEdits&&o.push(y.registerDocumentRangeFormattingEditProvider(t,new r(h)))}return v(),t.push(C(o)),C(t)}function C(e){return{dispose:()=>w(e)}}function w(e){for(;e.length;)e.pop().dispose()}export{g as CompletionAdapter,d as DefinitionAdapter,m as DiagnosticsAdapter,c as DocumentColorAdapter,n as DocumentFormattingEditProvider,f as DocumentHighlightAdapter,h as DocumentLinkAdapter,r as DocumentRangeFormattingEditProvider,l as DocumentSymbolAdapter,_ as FoldingRangeAdapter,i as HoverAdapter,a as ReferenceAdapter,p as RenameAdapter,u as SelectionRangeAdapter,x as WorkerManager,s as fromPosition,o as fromRange,S as setupMode,t as toRange,v as toTextEdit};
1
+ import{t as e}from"./workers-D6L1Qkzp.js";import{_ as t,a as n,c as r,d as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _,v}from"./lspLanguageFeatures-BqS1Q85I.js";import{m as y}from"./editor.api-B-Hf6DWT.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=e({moduleId:`vs/language/css/cssWorker`,createWorker:()=>new Worker(new URL(`/assets/css.worker-C5TGqYcS.js`,``+import.meta.url),{type:`module`}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};function S(e){let t=[],o=[],s=new x(e);t.push(s);let h=(...e)=>s.getLanguageServiceWorker(...e);function v(){let{languageId:t,modeConfiguration:s}=e;w(o),s.completionItems&&o.push(y.registerCompletionItemProvider(t,new g(h,[`/`,`-`,`:`]))),s.hovers&&o.push(y.registerHoverProvider(t,new i(h))),s.documentHighlights&&o.push(y.registerDocumentHighlightProvider(t,new f(h))),s.definitions&&o.push(y.registerDefinitionProvider(t,new d(h))),s.references&&o.push(y.registerReferenceProvider(t,new a(h))),s.documentSymbols&&o.push(y.registerDocumentSymbolProvider(t,new l(h))),s.rename&&o.push(y.registerRenameProvider(t,new p(h))),s.colors&&o.push(y.registerColorProvider(t,new c(h))),s.foldingRanges&&o.push(y.registerFoldingRangeProvider(t,new _(h))),s.diagnostics&&o.push(new m(t,h,e.onDidChange)),s.selectionRanges&&o.push(y.registerSelectionRangeProvider(t,new u(h))),s.documentFormattingEdits&&o.push(y.registerDocumentFormattingEditProvider(t,new n(h))),s.documentRangeFormattingEdits&&o.push(y.registerDocumentRangeFormattingEditProvider(t,new r(h)))}return v(),t.push(C(o)),C(t)}function C(e){return{dispose:()=>w(e)}}function w(e){for(;e.length;)e.pop().dispose()}export{g as CompletionAdapter,d as DefinitionAdapter,m as DiagnosticsAdapter,c as DocumentColorAdapter,n as DocumentFormattingEditProvider,f as DocumentHighlightAdapter,h as DocumentLinkAdapter,r as DocumentRangeFormattingEditProvider,l as DocumentSymbolAdapter,_ as FoldingRangeAdapter,i as HoverAdapter,a as ReferenceAdapter,p as RenameAdapter,u as SelectionRangeAdapter,x as WorkerManager,s as fromPosition,o as fromRange,S as setupMode,t as toRange,v as toTextEdit};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./index-CoZNwLtg.js";function t(){return globalThis._VSCODE_NLS_MESSAGES}function n(){return globalThis._VSCODE_NLS_LANGUAGE}var r=n()===`pseudo`||typeof document<`u`&&document.location&&typeof document.location.hash==`string`&&document.location.hash.indexOf(`pseudo=true`)>=0;function i(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[parseInt(n,10)],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),r&&(n=`[`+n.replace(/[aouei]/g,`$&$&`)+`]`),n}function a(e,t,...n){return i(typeof e==`number`?o(e,t):t,n)}function o(e,n){let r=t()?.[e];if(typeof r!=`string`){if(typeof n==`string`)return n;throw Error(`!!! NLS MISSING: ${e} !!!`)}return r}function s(e,t,...n){let r;r=typeof e==`number`?o(e,t):t;let a=i(r,n);return{value:a,original:t===r?a:i(t,n)}}function c(e,t){let n=e;typeof n.vscodeWindowId!=`number`&&Object.defineProperty(n,"vscodeWindowId",{get:()=>t})}var l=window,u,d=(class e{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}static#e=u=()=>(this.INSTANCE=new e,this)},u());function f(e,t,n){typeof t==`string`&&(t=e.matchMedia(t)),t.addEventListener(`change`,n)}function p(e){return d.INSTANCE.getZoomFactor(e)}var m=navigator.userAgent,h=m.indexOf(`Firefox`)>=0,g=m.indexOf(`AppleWebKit`)>=0,_=m.indexOf(`Chrome`)>=0,v=!_&&m.indexOf(`Safari`)>=0,y=!_&&!v&&g;m.indexOf(`Electron/`);var b=m.indexOf(`Android`)>=0,x=!1;if(typeof l.matchMedia==`function`){let e=l.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=l.matchMedia(`(display-mode: fullscreen)`);x=e.matches,f(l,e,({matches:e})=>{x&&t.matches||(x=e)})}function S(){return globalThis.MonacoEnvironment}var C=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?le.isErrorNoTelemetry(e)?new le(e.message+`
1
+ import{t as e}from"./index-BcXxWUCA.js";function t(){return globalThis._VSCODE_NLS_MESSAGES}function n(){return globalThis._VSCODE_NLS_LANGUAGE}var r=n()===`pseudo`||typeof document<`u`&&document.location&&typeof document.location.hash==`string`&&document.location.hash.indexOf(`pseudo=true`)>=0;function i(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[parseInt(n,10)],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),r&&(n=`[`+n.replace(/[aouei]/g,`$&$&`)+`]`),n}function a(e,t,...n){return i(typeof e==`number`?o(e,t):t,n)}function o(e,n){let r=t()?.[e];if(typeof r!=`string`){if(typeof n==`string`)return n;throw Error(`!!! NLS MISSING: ${e} !!!`)}return r}function s(e,t,...n){let r;r=typeof e==`number`?o(e,t):t;let a=i(r,n);return{value:a,original:t===r?a:i(t,n)}}function c(e,t){let n=e;typeof n.vscodeWindowId!=`number`&&Object.defineProperty(n,"vscodeWindowId",{get:()=>t})}var l=window,u,d=(class e{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}static#e=u=()=>(this.INSTANCE=new e,this)},u());function f(e,t,n){typeof t==`string`&&(t=e.matchMedia(t)),t.addEventListener(`change`,n)}function p(e){return d.INSTANCE.getZoomFactor(e)}var m=navigator.userAgent,h=m.indexOf(`Firefox`)>=0,g=m.indexOf(`AppleWebKit`)>=0,_=m.indexOf(`Chrome`)>=0,v=!_&&m.indexOf(`Safari`)>=0,y=!_&&!v&&g;m.indexOf(`Electron/`);var b=m.indexOf(`Android`)>=0,x=!1;if(typeof l.matchMedia==`function`){let e=l.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=l.matchMedia(`(display-mode: fullscreen)`);x=e.matches,f(l,e,({matches:e})=>{x&&t.matches||(x=e)})}function S(){return globalThis.MonacoEnvironment}var C=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?le.isErrorNoTelemetry(e)?new le(e.message+`
2
2
 
3
3
  `+e.stack):Error(e.message+`
4
4