truecourse 0.1.7 → 0.1.9

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 (38) hide show
  1. package/cli.mjs +7 -7
  2. package/db/migrations/0001_abnormal_random.sql +13 -0
  3. package/db/migrations/0002_slippery_fallen_one.sql +2 -0
  4. package/db/migrations/0003_yielding_mad_thinker.sql +2 -0
  5. package/db/migrations/meta/0001_snapshot.json +1583 -0
  6. package/db/migrations/meta/0002_snapshot.json +1583 -0
  7. package/db/migrations/meta/0003_snapshot.json +1602 -0
  8. package/db/migrations/meta/_journal.json +21 -0
  9. package/package.json +1 -1
  10. package/public/assets/index-B_clh7JM.css +1 -0
  11. package/public/assets/index-BcQKBiyG.js +386 -0
  12. package/public/index.html +29 -12
  13. package/server.mjs +84155 -11383
  14. package/public/404.html +0 -12
  15. package/public/_next/static/chunks/381-85180243c39f893f.js +0 -1
  16. package/public/_next/static/chunks/552-6917726d81ee49a3.js +0 -1
  17. package/public/_next/static/chunks/572-f3883e9a1f12af9b.js +0 -1
  18. package/public/_next/static/chunks/597-bdc49f9b0afbcc65.js +0 -1
  19. package/public/_next/static/chunks/7273c211-cf17e181dbeacc49.js +0 -1
  20. package/public/_next/static/chunks/a51c26f2-8f567e78114a65f0.js +0 -1
  21. package/public/_next/static/chunks/app/_not-found/page-7ce89933d9d660c3.js +0 -1
  22. package/public/_next/static/chunks/app/layout-7b61f0cc08a2b70c.js +0 -1
  23. package/public/_next/static/chunks/app/page-cfec34672a92b197.js +0 -1
  24. package/public/_next/static/chunks/app/repos/[[...slug]]/page-775a75a81164bb72.js +0 -1
  25. package/public/_next/static/chunks/framework-56b72e8a5f911564.js +0 -1
  26. package/public/_next/static/chunks/main-19f32cbfea665136.js +0 -1
  27. package/public/_next/static/chunks/main-app-11a30c55aba12d50.js +0 -1
  28. package/public/_next/static/chunks/pages/_app-23d1cfabc23fb6da.js +0 -1
  29. package/public/_next/static/chunks/pages/_error-647008f4bf4249c2.js +0 -1
  30. package/public/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  31. package/public/_next/static/chunks/webpack-f20a7a6e701c70d8.js +0 -1
  32. package/public/_next/static/css/599369d853c61df7.css +0 -31
  33. package/public/_next/static/css/bfb5d4bf473c84ea.css +0 -1
  34. package/public/_next/static/kOyPn8D2uazBrGUJ8aHW-/_buildManifest.js +0 -1
  35. package/public/_next/static/kOyPn8D2uazBrGUJ8aHW-/_ssgManifest.js +0 -1
  36. package/public/index.txt +0 -19
  37. package/public/repos.html +0 -12
  38. package/public/repos.txt +0 -17
package/cli.mjs CHANGED
@@ -12296,10 +12296,10 @@ function renderDiffResults(result) {
12296
12296
  console.log(` \x1B[33m\u26A0 Results may be stale \u2014 baseline analysis has changed.\x1B[0m`);
12297
12297
  console.log("");
12298
12298
  }
12299
- if (result.newInsights.length > 0) {
12300
- console.log(` NEW ISSUES (${result.newInsights.length})`);
12299
+ if (result.newViolations.length > 0) {
12300
+ console.log(` NEW ISSUES (${result.newViolations.length})`);
12301
12301
  console.log(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
12302
- for (const v3 of result.newInsights) {
12302
+ for (const v3 of result.newViolations) {
12303
12303
  const icon = severityIcon(v3.severity);
12304
12304
  const color = severityColor(v3.severity);
12305
12305
  const label = v3.severity.toUpperCase();
@@ -12321,10 +12321,10 @@ function renderDiffResults(result) {
12321
12321
  console.log(" None");
12322
12322
  console.log("");
12323
12323
  }
12324
- if (result.resolvedInsights.length > 0) {
12325
- console.log(` RESOLVED (${result.resolvedInsights.length})`);
12324
+ if (result.resolvedViolations.length > 0) {
12325
+ console.log(` RESOLVED (${result.resolvedViolations.length})`);
12326
12326
  console.log(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
12327
- for (const v3 of result.resolvedInsights) {
12327
+ for (const v3 of result.resolvedViolations) {
12328
12328
  const target = buildTargetPath(v3);
12329
12329
  const color = severityColor(v3.severity);
12330
12330
  const label = v3.severity.toUpperCase();
@@ -12455,7 +12455,7 @@ async function runAnalyze() {
12455
12455
  const violations = await res.json();
12456
12456
  renderViolations(violations);
12457
12457
  const repoUrl = `${serverUrl}/repos/${repo.id}`;
12458
- const link = `\x1B[4m\x1B[34m${repoUrl}\x1B[0m`;
12458
+ const link = `\x1B[4m\x1B[38;5;75m${repoUrl}\x1B[0m`;
12459
12459
  fe(`Open ${link} to see violations and architecture diagrams in the UI`);
12460
12460
  } catch (err) {
12461
12461
  spinner.stop("Analysis failed");
@@ -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" RENAME COLUMN "resolved_insight_ids" TO "resolved_violation_ids";--> statement-breakpoint
2
+ ALTER TABLE "diff_checks" RENAME COLUMN "new_insights" TO "new_violations";
@@ -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;