Skip to content

Commit c01ac3b

Browse files
committed
refactor(rules): rename rules/report to rules/check-summary
The module is the summary check sends to reconcile. Renaming it frees "report" for the taskless report command.
1 parent c5715a9 commit c01ac3b

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎openspec/changes/streamlined-onboarding-report/tasks.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
## 2. Rename rules/report → rules/check-summary (PR 2)
1111

12-
- [ ] 2.1 `git mv packages/cli/src/rules/report.ts packages/cli/src/rules/check-summary.ts` and update importers (`plan-check.ts`, `recover.ts`, `verdicts.ts`, `test/verdicts.test.ts`, `test/check-snapshot.test.ts`). Verify `grep -rn "rules/report" packages/cli` is empty and `pnpm --filter @taskless/cli test` passes.
13-
- [ ] 2.2 Run `pnpm typecheck` and `pnpm lint`; both pass.
12+
- [x] 2.1 `git mv packages/cli/src/rules/report.ts packages/cli/src/rules/check-summary.ts` and update importers (`plan-check.ts`, `recover.ts`, `verdicts.ts`, `test/verdicts.test.ts`, `test/check-snapshot.test.ts`). Verify `grep -rn "rules/report" packages/cli` is empty and `pnpm --filter @taskless/cli test` passes.
13+
- [x] 2.2 Run `pnpm typecheck` and `pnpm lint`; both pass.
1414

1515
## 3. taskless report (PR 3)
1616

‎packages/cli/src/rules/plan-check.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getCliPrefix } from "../util/package-manager";
1010
import { orgNotFoundRemedy } from "./generate";
1111
import type { EngineName } from "./layout";
1212
import { recoveryAdvice } from "./recovery-advice";
13-
import { reportRules } from "./report";
13+
import { reportRules } from "./check-summary";
1414
import type { RunDirectory } from "./run-directory";
1515
import { RUN_SCRIPTS_WARNING } from "./runtime/harness";
1616
import { discoverRuntimeRulesIn, type RuntimeRule } from "./runtime/discover";

‎packages/cli/src/rules/recover.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { ruleFilePath } from "./engines";
2020
import { writeServedRule } from "./files";
2121
import { orgNotFoundMessage } from "./generate";
2222
import { isKnownEngine, type EngineName } from "./layout";
23-
import { reportRules } from "./report";
23+
import { reportRules } from "./check-summary";
2424
import { openRun } from "./run-directory";
2525
import { takeSnapshot } from "./snapshot";
2626
import { verifyServedRule } from "./verify-delivery";

‎packages/cli/src/rules/verdicts.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { isRecord } from "../util/is-record";
33
import type { EngineName } from "./layout";
44
import { isKnownEngine } from "./layout";
55
import type { Recovery } from "./recovery-advice";
6-
import type { ReportedRule } from "./report";
6+
import type { ReportedRule } from "./check-summary";
77

88
/**
99
* Turning a v2 reconcile answer into what `check` does with each rule.

‎packages/cli/test/check-snapshot.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { afterEach, beforeEach, describe, expect, it } from "vitest";
1515

1616
import { assembleEngineConfigs } from "../src/rules/assemble";
1717
import { runEngines } from "../src/rules/dispatch";
18-
import { reportRules } from "../src/rules/report";
18+
import { reportRules } from "../src/rules/check-summary";
1919
import { openRun, type RunDirectory } from "../src/rules/run-directory";
2020
import type { CheckResult } from "../src/types/check";
2121
import { canonicalHash } from "../src/rules/rule-hash";

‎packages/cli/test/verdicts.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it } from "vitest";
22

3-
import type { ReportedRule } from "../src/rules/report";
3+
import type { ReportedRule } from "../src/rules/check-summary";
44
import { recoveryAdvice } from "../src/rules/recovery-advice";
55
import { applyVerdicts, NOT_IN_PLAN_REASON } from "../src/rules/verdicts";
66

0 commit comments

Comments
 (0)