larness 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +205 -2
- package/app.js +131 -0
- package/apps/server/dist/address-UO6lb2Hx.js +95 -0
- package/apps/server/dist/client-DGXcZxzL.js +121 -0
- package/apps/server/dist/doctor-CTealIcx.js +131 -0
- package/apps/server/dist/doctor.js +13 -0
- package/apps/server/dist/index.js +25481 -0
- package/apps/server/dist/lock-8kmtcopF.js +102 -0
- package/apps/server/dist/managed-CHal_mk1.js +216 -0
- package/apps/server/dist/paths-Bp1nTSw3.js +2434 -0
- package/apps/server/dist/status-Dyecl2ni.js +50 -0
- package/apps/server/dist/status.js +31 -0
- package/apps/server/dist/tui.js +1628 -0
- package/apps/server/drizzle/0001_auth.sql +110 -0
- package/apps/server/drizzle/0002_projects.sql +13 -0
- package/apps/server/drizzle/0003_workspace.sql +81 -0
- package/apps/server/drizzle/0004_models.sql +30 -0
- package/apps/server/drizzle/0005_resources.sql +54 -0
- package/apps/server/drizzle/0006_commands.sql +24 -0
- package/apps/server/drizzle/0007_terminals.sql +42 -0
- package/apps/server/drizzle/0008_resource_actions.sql +24 -0
- package/apps/server/drizzle/0009_terminal_title.sql +1 -0
- package/apps/server/drizzle/0010_services.sql +32 -0
- package/apps/server/drizzle/0011_deployments.sql +88 -0
- package/apps/server/drizzle/0012_deployment_authorizations.sql +67 -0
- package/apps/server/drizzle/0013_service_ops.sql +64 -0
- package/apps/server/drizzle/0014_service_actions.sql +36 -0
- package/apps/server/drizzle/0015_model_catalog.sql +17 -0
- package/apps/server/drizzle/0016_multi_provider.sql +2 -0
- package/apps/server/drizzle/0017_model_visibility.sql +10 -0
- package/apps/server/drizzle/0018_model_defaults.sql +9 -0
- package/apps/server/drizzle/0019_credential_endpoint.sql +1 -0
- package/apps/server/drizzle/0020_compatible_context.sql +1 -0
- package/apps/server/drizzle/0021_context_summaries.sql +13 -0
- package/apps/server/drizzle/0022_scheduler.sql +58 -0
- package/apps/server/drizzle/meta/0001_snapshot.json +705 -0
- package/apps/server/drizzle/meta/0002_snapshot.json +784 -0
- package/apps/server/drizzle/meta/0003_snapshot.json +1300 -0
- package/apps/server/drizzle/meta/0004_snapshot.json +1489 -0
- package/apps/server/drizzle/meta/0005_snapshot.json +1794 -0
- package/apps/server/drizzle/meta/0006_snapshot.json +1953 -0
- package/apps/server/drizzle/meta/0007_snapshot.json +2232 -0
- package/apps/server/drizzle/meta/0008_snapshot.json +2391 -0
- package/apps/server/drizzle/meta/0009_snapshot.json +2398 -0
- package/apps/server/drizzle/meta/0010_snapshot.json +2601 -0
- package/apps/server/drizzle/meta/0015_snapshot.json +4332 -0
- package/apps/server/drizzle/meta/0016_snapshot.json +4346 -0
- package/apps/server/drizzle/meta/0017_snapshot.json +4408 -0
- package/apps/server/drizzle/meta/0018_snapshot.json +4468 -0
- package/apps/server/drizzle/meta/0019_snapshot.json +4475 -0
- package/apps/server/drizzle/meta/0020_snapshot.json +4482 -0
- package/apps/server/drizzle/meta/0021_snapshot.json +4565 -0
- package/apps/server/drizzle/meta/0022_snapshot.json +4960 -0
- package/apps/server/drizzle/meta/_journal.json +160 -0
- package/apps/server/package.json +57 -0
- package/apps/web/dist/assets/FileEditor-DpVfk7t3.js +1 -0
- package/apps/web/dist/assets/FileViewer-Bv5VYaA3.js +1 -0
- package/apps/web/dist/assets/abap-DLDM7-KI.js +1 -0
- package/apps/web/dist/assets/apex-DNDY2TF8.js +1 -0
- package/apps/web/dist/assets/azcli-Y6nb8tq_.js +1 -0
- package/apps/web/dist/assets/bat-BwHxbl9M.js +1 -0
- package/apps/web/dist/assets/bicep-CFznDFnq.js +2 -0
- package/apps/web/dist/assets/cameligo-Bf6VGUru.js +1 -0
- package/apps/web/dist/assets/clojure-Dnu-v4kV.js +1 -0
- package/apps/web/dist/assets/codicon-DF1abBS2.ttf +0 -0
- package/apps/web/dist/assets/coffee-Bd8akH9Z.js +1 -0
- package/apps/web/dist/assets/cpp-BbWJElDN.js +1 -0
- package/apps/web/dist/assets/csharp-Co3qMtFm.js +1 -0
- package/apps/web/dist/assets/csp-D-4FJmMZ.js +1 -0
- package/apps/web/dist/assets/css-DdJfP1eB.js +3 -0
- package/apps/web/dist/assets/css.worker-C_6RgliQ.js +97 -0
- package/apps/web/dist/assets/cssMode-EHCHSzzL.js +1 -0
- package/apps/web/dist/assets/cypher-cTPe9QuQ.js +1 -0
- package/apps/web/dist/assets/dart-BOtBlQCF.js +1 -0
- package/apps/web/dist/assets/dockerfile-BG73LgW2.js +1 -0
- package/apps/web/dist/assets/ecl-BEgZUVRK.js +1 -0
- package/apps/web/dist/assets/editor.worker-D1TDBLlL.js +30 -0
- package/apps/web/dist/assets/elixir-BkW5O-1t.js +1 -0
- package/apps/web/dist/assets/flow9-BeJ5waoc.js +1 -0
- package/apps/web/dist/assets/freemarker2-CYDUi4bR.js +3 -0
- package/apps/web/dist/assets/fsharp-PahG7c26.js +1 -0
- package/apps/web/dist/assets/go-acbASCJo.js +1 -0
- package/apps/web/dist/assets/graphql-BxJiqAUM.js +1 -0
- package/apps/web/dist/assets/handlebars-Bl5r-XBz.js +1 -0
- package/apps/web/dist/assets/hcl-DtV1sZF8.js +1 -0
- package/apps/web/dist/assets/html-Dimr8AuT.js +1 -0
- package/apps/web/dist/assets/html.worker-CLyYFd_g.js +474 -0
- package/apps/web/dist/assets/htmlMode-DbKEQN5e.js +1 -0
- package/apps/web/dist/assets/index-CiO_U1kt.js +158 -0
- package/apps/web/dist/assets/index-Cn8Mc6ux.css +1 -0
- package/apps/web/dist/assets/ini-Kd9XrMLS.js +1 -0
- package/apps/web/dist/assets/java-CXBNlu9o.js +1 -0
- package/apps/web/dist/assets/javascript-CAsmnqI3.js +1 -0
- package/apps/web/dist/assets/json.worker-BggoxaER.js +62 -0
- package/apps/web/dist/assets/jsonMode-FAO7KTW2.js +7 -0
- package/apps/web/dist/assets/julia-cl7-CwDS.js +1 -0
- package/apps/web/dist/assets/kotlin-s7OhZKlX.js +1 -0
- package/apps/web/dist/assets/less-9HpZscsL.js +2 -0
- package/apps/web/dist/assets/lexon-OrD6JF1K.js +1 -0
- package/apps/web/dist/assets/liquid-5H_43_EZ.js +1 -0
- package/apps/web/dist/assets/lspLanguageFeatures-DnuYc3pX.js +4 -0
- package/apps/web/dist/assets/lua-Cyyb5UIc.js +1 -0
- package/apps/web/dist/assets/m3-B8OfTtLu.js +1 -0
- package/apps/web/dist/assets/markdown-BFxVWTOG.js +1 -0
- package/apps/web/dist/assets/mdx-DJvtDn95.js +1 -0
- package/apps/web/dist/assets/mips-CiqrrVzr.js +1 -0
- package/apps/web/dist/assets/monaco-BEZSi3GX.js +1005 -0
- package/apps/web/dist/assets/monaco-Ced-qlZg.css +1 -0
- package/apps/web/dist/assets/msdax-DmeGPVcC.js +1 -0
- package/apps/web/dist/assets/mysql-C_tMU-Nz.js +1 -0
- package/apps/web/dist/assets/objective-c-BDtDVThU.js +1 -0
- package/apps/web/dist/assets/pascal-vHIfCaH5.js +1 -0
- package/apps/web/dist/assets/pascaligo-DtZ0uQbO.js +1 -0
- package/apps/web/dist/assets/perl-Ub6l9XKa.js +1 -0
- package/apps/web/dist/assets/pgsql-BlNEE0v7.js +1 -0
- package/apps/web/dist/assets/php-BBUBE1dy.js +1 -0
- package/apps/web/dist/assets/pla-DSh2-awV.js +1 -0
- package/apps/web/dist/assets/postiats-CocnycG-.js +1 -0
- package/apps/web/dist/assets/powerquery-tScXyioY.js +1 -0
- package/apps/web/dist/assets/powershell-COWaemsV.js +1 -0
- package/apps/web/dist/assets/protobuf-Brw8urJB.js +2 -0
- package/apps/web/dist/assets/pug-8SOpv6rk.js +1 -0
- package/apps/web/dist/assets/python-D4581wh8.js +1 -0
- package/apps/web/dist/assets/qsharp-Bw9ernYp.js +1 -0
- package/apps/web/dist/assets/r-j7ic8hl3.js +1 -0
- package/apps/web/dist/assets/razor-Cob92s3y.js +1 -0
- package/apps/web/dist/assets/redis-Bu5POkcn.js +1 -0
- package/apps/web/dist/assets/redshift-Bs9aos_-.js +1 -0
- package/apps/web/dist/assets/restructuredtext-CqXO7rUv.js +1 -0
- package/apps/web/dist/assets/ruby-zBfavPgS.js +1 -0
- package/apps/web/dist/assets/rust-BzKRNQWT.js +1 -0
- package/apps/web/dist/assets/sb-BBc9UKZt.js +1 -0
- package/apps/web/dist/assets/scala-D9hQfWCl.js +1 -0
- package/apps/web/dist/assets/scheme-BPhDTwHR.js +1 -0
- package/apps/web/dist/assets/scss-CBJaRo0y.js +3 -0
- package/apps/web/dist/assets/shell-DiJ1NA_G.js +1 -0
- package/apps/web/dist/assets/solidity-Db0IVjzk.js +1 -0
- package/apps/web/dist/assets/sophia-CnS9iZB_.js +1 -0
- package/apps/web/dist/assets/sparql-CJmd_6j2.js +1 -0
- package/apps/web/dist/assets/sql-ClhHkBeG.js +1 -0
- package/apps/web/dist/assets/st-CHwy0fLd.js +1 -0
- package/apps/web/dist/assets/swift-CnmFD0ga.js +1 -0
- package/apps/web/dist/assets/systemverilog-Bs9z6M-B.js +1 -0
- package/apps/web/dist/assets/tcl-Dm6ycUr_.js +1 -0
- package/apps/web/dist/assets/ts.worker-BrLZGe_E.js +67722 -0
- package/apps/web/dist/assets/tsMode-WJsr57wC.js +11 -0
- package/apps/web/dist/assets/twig-Csy3S7wG.js +1 -0
- package/apps/web/dist/assets/typescript-8M7GiCNW.js +1 -0
- package/apps/web/dist/assets/typespec-Btyra-wh.js +1 -0
- package/apps/web/dist/assets/vb-Db0cS2oM.js +1 -0
- package/apps/web/dist/assets/wgsl-BTesnYfV.js +298 -0
- package/apps/web/dist/assets/workers-FOC7l7Wh.js +1 -0
- package/apps/web/dist/assets/xml-Hm5ZZqOZ.js +1 -0
- package/apps/web/dist/assets/yaml-E7sEyvM5.js +1 -0
- package/apps/web/dist/favicon.svg +4 -0
- package/apps/web/dist/index.html +15 -0
- package/docs/README.md +26 -0
- package/docs/guides/install.md +63 -0
- package/package.json +94 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
CREATE TABLE `service_action_authorizations` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`target_id` text NOT NULL,
|
|
4
|
+
`project_id` text NOT NULL,
|
|
5
|
+
`action` text NOT NULL,
|
|
6
|
+
`actor_type` text NOT NULL,
|
|
7
|
+
`actor_id` text NOT NULL,
|
|
8
|
+
`client_session_id` text,
|
|
9
|
+
`session_id` text,
|
|
10
|
+
`turn_id` text,
|
|
11
|
+
`policy` text NOT NULL,
|
|
12
|
+
`policy_snapshot_id` text NOT NULL,
|
|
13
|
+
`status` text NOT NULL,
|
|
14
|
+
`artifact_hash` text NOT NULL,
|
|
15
|
+
`version` text NOT NULL,
|
|
16
|
+
`scope_json` text NOT NULL,
|
|
17
|
+
`scope_hash` text NOT NULL,
|
|
18
|
+
`request_key` text NOT NULL,
|
|
19
|
+
`expires_at` integer NOT NULL,
|
|
20
|
+
`decided_at` integer,
|
|
21
|
+
`decided_by` text,
|
|
22
|
+
`consumed_at` integer,
|
|
23
|
+
`consume_key` text,
|
|
24
|
+
`reason_code` text,
|
|
25
|
+
`created_at` integer NOT NULL,
|
|
26
|
+
FOREIGN KEY (`target_id`) REFERENCES `deployment_targets`(`id`) ON UPDATE no action ON DELETE no action,
|
|
27
|
+
FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE no action,
|
|
28
|
+
CONSTRAINT "service_action_authorizations_action" CHECK(`service_action_authorizations`.`action` IN ('start', 'stop', 'restart', 'recover')),
|
|
29
|
+
CONSTRAINT "service_action_authorizations_status" CHECK(`service_action_authorizations`.`status` IN ('PENDING', 'AUTHORIZED', 'DENIED', 'EXPIRED', 'REVOKED', 'CONSUMED')),
|
|
30
|
+
CONSTRAINT "service_action_authorizations_artifact_hash" CHECK(length(`service_action_authorizations`.`artifact_hash`) = 64),
|
|
31
|
+
CONSTRAINT "service_action_authorizations_scope_hash" CHECK(length(`service_action_authorizations`.`scope_hash`) = 64)
|
|
32
|
+
);
|
|
33
|
+
--> statement-breakpoint
|
|
34
|
+
CREATE UNIQUE INDEX `service_action_authorizations_request` ON `service_action_authorizations` (`request_key`);--> statement-breakpoint
|
|
35
|
+
CREATE INDEX `service_action_authorizations_target_status` ON `service_action_authorizations` (`target_id`,`status`);--> statement-breakpoint
|
|
36
|
+
CREATE INDEX `service_action_authorizations_status_expires` ON `service_action_authorizations` (`status`,`expires_at`);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
-- M5-1a: official model catalog cache and per-turn model snapshots.
|
|
2
|
+
-- Only additive; existing model_profiles / credential_profiles rows are preserved.
|
|
3
|
+
CREATE TABLE `model_catalog_cache` (
|
|
4
|
+
`credential_profile_id` text PRIMARY KEY NOT NULL,
|
|
5
|
+
`provider` text NOT NULL,
|
|
6
|
+
`endpoint` text NOT NULL,
|
|
7
|
+
`models_json` text DEFAULT '[]' NOT NULL,
|
|
8
|
+
`synced_at` integer,
|
|
9
|
+
`last_attempt_at` integer,
|
|
10
|
+
`last_error_code` text,
|
|
11
|
+
FOREIGN KEY (`credential_profile_id`) REFERENCES `credential_profiles`(`id`) ON UPDATE no action ON DELETE cascade
|
|
12
|
+
);
|
|
13
|
+
--> statement-breakpoint
|
|
14
|
+
ALTER TABLE `sessions` ADD `model` text;--> statement-breakpoint
|
|
15
|
+
ALTER TABLE `sessions` ADD `thinking` text;--> statement-breakpoint
|
|
16
|
+
ALTER TABLE `turns` ADD `thinking` text;--> statement-breakpoint
|
|
17
|
+
ALTER TABLE `turns` ADD `context_window` integer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
CREATE TABLE `model_visibility` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`credential_profile_id` text NOT NULL,
|
|
4
|
+
`model_id` text NOT NULL,
|
|
5
|
+
`visible` integer DEFAULT 1 NOT NULL,
|
|
6
|
+
`updated_at` integer NOT NULL,
|
|
7
|
+
FOREIGN KEY (`credential_profile_id`) REFERENCES `credential_profiles`(`id`) ON UPDATE no action ON DELETE cascade
|
|
8
|
+
);
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
CREATE UNIQUE INDEX `model_visibility_credential_model` ON `model_visibility` (`credential_profile_id`,`model_id`);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
CREATE TABLE `model_defaults` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`credential_profile_id` text NOT NULL,
|
|
4
|
+
`model` text NOT NULL,
|
|
5
|
+
`thinking` text NOT NULL,
|
|
6
|
+
`updated_at` integer NOT NULL,
|
|
7
|
+
FOREIGN KEY (`credential_profile_id`) REFERENCES `credential_profiles`(`id`) ON UPDATE no action ON DELETE cascade,
|
|
8
|
+
CONSTRAINT "model_defaults_single_row" CHECK("model_defaults"."id" = 'default')
|
|
9
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `credential_profiles` ADD `endpoint` text;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `credential_profiles` ADD `context_window` integer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
CREATE TABLE `session_context_summaries` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`session_id` text NOT NULL,
|
|
4
|
+
`covered_up_to_seq` integer NOT NULL,
|
|
5
|
+
`summary` text NOT NULL,
|
|
6
|
+
`tokens_before` integer NOT NULL,
|
|
7
|
+
`tokens_after` integer NOT NULL,
|
|
8
|
+
`degraded` integer DEFAULT 0 NOT NULL,
|
|
9
|
+
`created_at` integer NOT NULL,
|
|
10
|
+
FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE cascade
|
|
11
|
+
);
|
|
12
|
+
--> statement-breakpoint
|
|
13
|
+
CREATE INDEX `idx_context_summaries_session` ON `session_context_summaries` (`session_id`,`created_at`);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
CREATE TABLE `scheduled_job_runs` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`job_id` text NOT NULL,
|
|
4
|
+
`trigger` text NOT NULL,
|
|
5
|
+
`status` text NOT NULL,
|
|
6
|
+
`scheduled_for` integer NOT NULL,
|
|
7
|
+
`started_at` integer,
|
|
8
|
+
`ended_at` integer,
|
|
9
|
+
`duration_ms` integer,
|
|
10
|
+
`session_id` text,
|
|
11
|
+
`turn_id` text,
|
|
12
|
+
`exit_code` integer,
|
|
13
|
+
`output` text,
|
|
14
|
+
`error_code` text,
|
|
15
|
+
`error_message` text,
|
|
16
|
+
`created_at` integer NOT NULL,
|
|
17
|
+
FOREIGN KEY (`job_id`) REFERENCES `scheduled_jobs`(`id`) ON UPDATE no action ON DELETE cascade,
|
|
18
|
+
FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE set null,
|
|
19
|
+
FOREIGN KEY (`turn_id`) REFERENCES `turns`(`id`) ON UPDATE no action ON DELETE set null
|
|
20
|
+
);
|
|
21
|
+
--> statement-breakpoint
|
|
22
|
+
CREATE INDEX `idx_scheduled_job_runs_job` ON `scheduled_job_runs` (`job_id`,`created_at`);--> statement-breakpoint
|
|
23
|
+
CREATE INDEX `idx_scheduled_job_runs_status` ON `scheduled_job_runs` (`status`,`created_at`);--> statement-breakpoint
|
|
24
|
+
CREATE TABLE `scheduled_jobs` (
|
|
25
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
26
|
+
`name` text NOT NULL,
|
|
27
|
+
`project_id` text,
|
|
28
|
+
`kind` text NOT NULL,
|
|
29
|
+
`schedule_type` text NOT NULL,
|
|
30
|
+
`cron_expression` text,
|
|
31
|
+
`interval_seconds` integer,
|
|
32
|
+
`timezone` text NOT NULL,
|
|
33
|
+
`enabled` integer DEFAULT true NOT NULL,
|
|
34
|
+
`overlap_policy` text DEFAULT 'skip' NOT NULL,
|
|
35
|
+
`missed_policy` text DEFAULT 'skip' NOT NULL,
|
|
36
|
+
`timeout_seconds` integer DEFAULT 600 NOT NULL,
|
|
37
|
+
`script_source` text,
|
|
38
|
+
`agent_prompt` text,
|
|
39
|
+
`agent_model` text,
|
|
40
|
+
`agent_credential_profile_id` text,
|
|
41
|
+
`agent_thinking` text,
|
|
42
|
+
`agent_approval_policy` text,
|
|
43
|
+
`session_id` text,
|
|
44
|
+
`next_run_at` integer,
|
|
45
|
+
`last_run_at` integer,
|
|
46
|
+
`last_status` text,
|
|
47
|
+
`created_at` integer NOT NULL,
|
|
48
|
+
`updated_at` integer NOT NULL,
|
|
49
|
+
`archived_at` integer,
|
|
50
|
+
FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade,
|
|
51
|
+
FOREIGN KEY (`agent_credential_profile_id`) REFERENCES `credential_profiles`(`id`) ON UPDATE no action ON DELETE set null,
|
|
52
|
+
FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE set null
|
|
53
|
+
);
|
|
54
|
+
--> statement-breakpoint
|
|
55
|
+
CREATE INDEX `idx_scheduled_jobs_due` ON `scheduled_jobs` (`enabled`,`archived_at`,`next_run_at`);--> statement-breakpoint
|
|
56
|
+
CREATE INDEX `idx_scheduled_jobs_project` ON `scheduled_jobs` (`project_id`,`updated_at`);--> statement-breakpoint
|
|
57
|
+
ALTER TABLE `sessions` ADD `origin` text DEFAULT 'user' NOT NULL;--> statement-breakpoint
|
|
58
|
+
CREATE INDEX `idx_sessions_origin` ON `sessions` (`origin`,`updated_at`);
|