@exaudeus/workrail 0.2.5-beta.3 → 0.2.5-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "0.2.5-beta.3",
3
+ "version": "0.2.5-beta.4",
4
4
  "description": "MCP server for structured workflow orchestration and step-by-step task guidance",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -42,88 +42,6 @@
42
42
  "appendHygieneFinding(): Append hygiene bullet grouped by file: 'path:line — short note (≤2 lines)'; if duplicated in Nits, reference '(linked in Nits)'.",
43
43
  "finalizeReviewDocument(): Trivial: brief summary approve, light hygiene (≤2), quick nits, status=Final, log. Non-trivial: exec summary (3 positives, 3 risks, recommendation), dedupe/sort findings, ensure sections + curated comments for Critical/Major, status=Final, log."
44
44
  ],
45
- "functionDefinitions": [
46
- {
47
- "name": "collectNits",
48
- "definition": "From the current analysis pass, extract items labeled 'Nit:' or clearly Minor suggestions. Append them to a running array `nitFindings` with entries: { title, details, filePath, line, analysisDepth }. Maintain `nitsCount`.",
49
- "scope": "workflow"
50
- },
51
- {
52
- "name": "prepareNitAppendix",
53
- "definition": "Aggregate `nitFindings` into a concise appendix grouped by file. Format each bullet as: `filePath:line - short description`. Produce markdown in `nitAppendix` and set `nitAppendixReady = true`.",
54
- "scope": "workflow"
55
- },
56
- {
57
- "name": "discoverModulePatterns",
58
- "definition": "Determine `moduleRoot` as the nearest common ancestor of changed files (clamped to the package or src subtree). Scan only within `moduleRoot` to build `patternCatalog` and `patternExamples` (naming, dependency injection, error handling, logging, test style, file layout).",
59
- "scope": "workflow"
60
- },
61
- {
62
- "name": "consolidatePatternFindings",
63
- "definition": "Compare MR changes against `patternCatalog` scoped to `moduleRoot`. Produce `patternFindings` and a grouped `patternAppendix` (by directory/file), and set `patternAppendixReady = true`.",
64
- "scope": "workflow"
65
- },
66
- {
67
- "name": "initReviewDoc",
68
- "definition": "Create a live Markdown report at project root. Determine filename as `<YYYY-MM-DD>--<ticket-or-branch>--mr-review.md` (ticket preferred, else branch, else `mr-unknown`). Initialize sections with stable markers and write header metadata. Set `reviewDocPath`.",
69
- "scope": "workflow"
70
- },
71
- {
72
- "name": "upsertSection",
73
- "definition": "Upsert content under a known section marker in the Markdown doc without duplicating sections. Maintain concise, scannable formatting.",
74
- "scope": "workflow"
75
- },
76
- {
77
- "name": "appendChangedFileRow",
78
- "definition": "Append or update a row in the Changed Files table with columns: File | +/- | Summary | Risk.",
79
- "scope": "workflow"
80
- },
81
- {
82
- "name": "appendFinding",
83
- "definition": "Append a finding grouped by severity (Critical/Major/Minor). Each entry includes path:line, 1–2 lines rationale, optional tiny diff.",
84
- "scope": "workflow"
85
- },
86
- {
87
- "name": "appendPatternResult",
88
- "definition": "Append a Pattern Adherence row (Check | Result | Note) and brief per-file deviations.",
89
- "scope": "workflow"
90
- },
91
- {
92
- "name": "appendNit",
93
- "definition": "Append a Nit entry grouped by file: `path:line — nit text`.",
94
- "scope": "workflow"
95
- },
96
- {
97
- "name": "appendMRComment",
98
- "definition": "Append a copy-ready MR comment block with file:line, short title, rationale, and optional tiny diff snippet.",
99
- "scope": "workflow"
100
- },
101
- {
102
- "name": "logRevision",
103
- "definition": "Append a timestamped line to the Revision Log describing the update (e.g., 'Added Depth 1 results').",
104
- "scope": "workflow"
105
- },
106
- {
107
- "name": "discoverHygieneSignals",
108
- "definition": "Within `moduleRoot`, scan changed files and immediate neighbors for generic hygiene signals: disabled/skipped/focused tests; tests with no assertions; commented-out code; stale/misleading comments; TODO/FIXME/HACK/BUG without ticket/reference or clearly stale; high-density TODOs; naming/DI/logging/error handling inconsistencies vs local `patternCatalog`; ad-hoc debug prints; obvious unused identifiers/unreachable code.",
109
- "scope": "workflow"
110
- },
111
- {
112
- "name": "consolidateHygieneFindings",
113
- "definition": "Consolidate hygiene signals with caps: total ≤10, per-category ≤3; dedupe similar items; group by file; elevate severity to Major only for clearly risky cases (e.g., focused tests, tests with no assertions). Produce category counts and a capped item list.",
114
- "scope": "workflow"
115
- },
116
- {
117
- "name": "appendHygieneFinding",
118
- "definition": "Append a hygiene bullet to the live doc grouped by file: `path:line — short note (≤ 2 lines)`. Avoid duplication with Nit items; reference '(linked in Nits)' instead of repeating if needed.",
119
- "scope": "workflow"
120
- },
121
- {
122
- "name": "finalizeReviewDocument",
123
- "definition": "Finalize the live review document. If `complexity == 'Trivial'`: write a brief executive summary (approve), do light hygiene (≤2) and quick nit sweep, set status=Final, log revision. Otherwise: write full executive summary (3 positives, 3 risks, recommendation), dedupe/sort findings, ensure sections (patterns, deviations, tests/docs, ideas, nits, MR comments), ensure Critical/Major coverage with curated MR comments, set status=Final, log revision.",
124
- "scope": "workflow"
125
- }
126
- ],
127
45
  "steps": [
128
46
  {
129
47
  "id": "phase-0-triage",