truecourse 0.1.8 → 0.1.10
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/cli.mjs +6437 -5439
- package/db/migrations/0001_abnormal_random.sql +13 -0
- package/db/migrations/0002_slippery_fallen_one.sql +2 -0
- package/db/migrations/0003_yielding_mad_thinker.sql +2 -0
- package/db/migrations/0004_eager_luckman.sql +18 -0
- package/db/migrations/0005_lying_baron_strucker.sql +31 -0
- package/db/migrations/0006_whole_shadowcat.sql +38 -0
- package/db/migrations/0007_fair_katie_power.sql +1 -0
- package/db/migrations/0008_medical_la_nuit.sql +1 -0
- package/db/migrations/meta/0001_snapshot.json +1583 -0
- package/db/migrations/meta/0002_snapshot.json +1583 -0
- package/db/migrations/meta/0003_snapshot.json +1602 -0
- package/db/migrations/meta/0004_snapshot.json +1715 -0
- package/db/migrations/meta/0005_snapshot.json +1913 -0
- package/db/migrations/meta/0006_snapshot.json +1949 -0
- package/db/migrations/meta/0007_snapshot.json +1955 -0
- package/db/migrations/meta/0008_snapshot.json +1955 -0
- package/db/migrations/meta/_journal.json +56 -0
- package/package.json +4 -1
- package/public/assets/index-C2Uus2fb.css +1 -0
- package/public/assets/index-C4emO2oc.js +621 -0
- package/public/index.html +2 -2
- package/server.mjs +147036 -70403
- package/public/assets/index-2JAhA9Km.js +0 -386
- package/public/assets/index-vuAqJRVb.css +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
ALTER TABLE "analyses" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "conversations" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "conversations" ALTER COLUMN "updated_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
4
|
+
ALTER TABLE "databases" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "diff_checks" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
6
|
+
ALTER TABLE "messages" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
7
|
+
ALTER TABLE "repos" ALTER COLUMN "last_analyzed_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
8
|
+
ALTER TABLE "repos" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
9
|
+
ALTER TABLE "repos" ALTER COLUMN "updated_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
10
|
+
ALTER TABLE "rules" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
11
|
+
ALTER TABLE "rules" ALTER COLUMN "updated_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
12
|
+
ALTER TABLE "services" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;--> statement-breakpoint
|
|
13
|
+
ALTER TABLE "violations" ALTER COLUMN "created_at" SET DATA TYPE timestamp with time zone;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
ALTER TABLE "diff_checks" ADD COLUMN "diff_analysis_id" uuid;--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "diff_checks" ADD CONSTRAINT "diff_checks_diff_analysis_id_analyses_id_fk" FOREIGN KEY ("diff_analysis_id") REFERENCES "public"."analyses"("id") ON DELETE set null ON UPDATE no action;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
CREATE TABLE "code_violations" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"analysis_id" uuid NOT NULL,
|
|
4
|
+
"file_path" text NOT NULL,
|
|
5
|
+
"line_start" integer NOT NULL,
|
|
6
|
+
"line_end" integer NOT NULL,
|
|
7
|
+
"column_start" integer NOT NULL,
|
|
8
|
+
"column_end" integer NOT NULL,
|
|
9
|
+
"rule_key" text NOT NULL,
|
|
10
|
+
"severity" text NOT NULL,
|
|
11
|
+
"title" text NOT NULL,
|
|
12
|
+
"content" text NOT NULL,
|
|
13
|
+
"snippet" text NOT NULL,
|
|
14
|
+
"fix_prompt" text,
|
|
15
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
16
|
+
);
|
|
17
|
+
--> statement-breakpoint
|
|
18
|
+
ALTER TABLE "code_violations" ADD CONSTRAINT "code_violations_analysis_id_analyses_id_fk" FOREIGN KEY ("analysis_id") REFERENCES "public"."analyses"("id") ON DELETE cascade ON UPDATE no action;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
CREATE TABLE "flow_steps" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"flow_id" uuid NOT NULL,
|
|
4
|
+
"step_order" integer NOT NULL,
|
|
5
|
+
"source_service" text NOT NULL,
|
|
6
|
+
"source_module" text NOT NULL,
|
|
7
|
+
"source_method" text NOT NULL,
|
|
8
|
+
"target_service" text NOT NULL,
|
|
9
|
+
"target_module" text NOT NULL,
|
|
10
|
+
"target_method" text NOT NULL,
|
|
11
|
+
"step_type" text NOT NULL,
|
|
12
|
+
"data_description" text,
|
|
13
|
+
"is_async" boolean DEFAULT false NOT NULL,
|
|
14
|
+
"is_conditional" boolean DEFAULT false NOT NULL
|
|
15
|
+
);
|
|
16
|
+
--> statement-breakpoint
|
|
17
|
+
CREATE TABLE "flows" (
|
|
18
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
19
|
+
"analysis_id" uuid NOT NULL,
|
|
20
|
+
"name" text NOT NULL,
|
|
21
|
+
"description" text,
|
|
22
|
+
"entry_service" text NOT NULL,
|
|
23
|
+
"entry_method" text NOT NULL,
|
|
24
|
+
"category" text NOT NULL,
|
|
25
|
+
"trigger" text NOT NULL,
|
|
26
|
+
"step_count" integer DEFAULT 0 NOT NULL,
|
|
27
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
28
|
+
);
|
|
29
|
+
--> statement-breakpoint
|
|
30
|
+
ALTER TABLE "flow_steps" ADD CONSTRAINT "flow_steps_flow_id_flows_id_fk" FOREIGN KEY ("flow_id") REFERENCES "public"."flows"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
31
|
+
ALTER TABLE "flows" ADD CONSTRAINT "flows_analysis_id_analyses_id_fk" FOREIGN KEY ("analysis_id") REFERENCES "public"."analyses"("id") ON DELETE cascade ON UPDATE no action;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
CREATE TABLE "deterministic_violations" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"analysis_id" uuid NOT NULL,
|
|
4
|
+
"rule_key" text NOT NULL,
|
|
5
|
+
"category" text NOT NULL,
|
|
6
|
+
"title" text NOT NULL,
|
|
7
|
+
"description" text NOT NULL,
|
|
8
|
+
"severity" text NOT NULL,
|
|
9
|
+
"service_name" text NOT NULL,
|
|
10
|
+
"module_name" text,
|
|
11
|
+
"method_name" text,
|
|
12
|
+
"file_path" text,
|
|
13
|
+
"related_module_name" text,
|
|
14
|
+
"related_service_name" text,
|
|
15
|
+
"is_dependency_violation" boolean DEFAULT false NOT NULL,
|
|
16
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
17
|
+
);
|
|
18
|
+
--> statement-breakpoint
|
|
19
|
+
ALTER TABLE "diff_checks" DISABLE ROW LEVEL SECURITY;--> statement-breakpoint
|
|
20
|
+
ALTER TABLE "layer_dependencies" DISABLE ROW LEVEL SECURITY;--> statement-breakpoint
|
|
21
|
+
DROP TABLE "diff_checks" CASCADE;--> statement-breakpoint
|
|
22
|
+
DROP TABLE "layer_dependencies" CASCADE;--> statement-breakpoint
|
|
23
|
+
ALTER TABLE "code_violations" ADD COLUMN "status" text DEFAULT 'new' NOT NULL;--> statement-breakpoint
|
|
24
|
+
ALTER TABLE "code_violations" ADD COLUMN "first_seen_analysis_id" uuid;--> statement-breakpoint
|
|
25
|
+
ALTER TABLE "code_violations" ADD COLUMN "first_seen_at" timestamp with time zone;--> statement-breakpoint
|
|
26
|
+
ALTER TABLE "code_violations" ADD COLUMN "previous_code_violation_id" uuid;--> statement-breakpoint
|
|
27
|
+
ALTER TABLE "code_violations" ADD COLUMN "resolved_at" timestamp with time zone;--> statement-breakpoint
|
|
28
|
+
ALTER TABLE "rules" ADD COLUMN "is_dependency_violation" boolean DEFAULT false NOT NULL;--> statement-breakpoint
|
|
29
|
+
ALTER TABLE "violations" ADD COLUMN "status" text DEFAULT 'new' NOT NULL;--> statement-breakpoint
|
|
30
|
+
ALTER TABLE "violations" ADD COLUMN "deterministic_violation_id" uuid;--> statement-breakpoint
|
|
31
|
+
ALTER TABLE "violations" ADD COLUMN "first_seen_analysis_id" uuid;--> statement-breakpoint
|
|
32
|
+
ALTER TABLE "violations" ADD COLUMN "first_seen_at" timestamp with time zone;--> statement-breakpoint
|
|
33
|
+
ALTER TABLE "violations" ADD COLUMN "previous_violation_id" uuid;--> statement-breakpoint
|
|
34
|
+
ALTER TABLE "violations" ADD COLUMN "resolved_at" timestamp with time zone;--> statement-breakpoint
|
|
35
|
+
ALTER TABLE "deterministic_violations" ADD CONSTRAINT "deterministic_violations_analysis_id_analyses_id_fk" FOREIGN KEY ("analysis_id") REFERENCES "public"."analyses"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
36
|
+
ALTER TABLE "code_violations" ADD CONSTRAINT "code_violations_first_seen_analysis_id_analyses_id_fk" FOREIGN KEY ("first_seen_analysis_id") REFERENCES "public"."analyses"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
37
|
+
ALTER TABLE "violations" ADD CONSTRAINT "violations_deterministic_violation_id_deterministic_violations_id_fk" FOREIGN KEY ("deterministic_violation_id") REFERENCES "public"."deterministic_violations"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
38
|
+
ALTER TABLE "violations" ADD CONSTRAINT "violations_first_seen_analysis_id_analyses_id_fk" FOREIGN KEY ("first_seen_analysis_id") REFERENCES "public"."analyses"("id") ON DELETE set null ON UPDATE no action;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "violations" ADD COLUMN "rule_key" text;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "violations" ALTER COLUMN "rule_key" SET NOT NULL;
|