@exaudeus/workrail 0.2.5-beta.2 → 0.2.5-beta.3
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
|
@@ -24,7 +24,23 @@
|
|
|
24
24
|
"Use each function's definition as the authoritative checklist for how to perform the step and what to produce (doc updates, context vars).",
|
|
25
25
|
"Document I/O: create/update the file at reviewDocPath using file-writing tools. If the agent cannot write files, output the exact doc content with the intended path so the user can save it.",
|
|
26
26
|
"If a function requires inputs that are missing, state exactly what is missing and pause. Otherwise, do not ask for confirmation.",
|
|
27
|
-
"If prompt text and a function definition conflict, prefer the function definition for the how, and the step prompt for the what."
|
|
27
|
+
"If prompt text and a function definition conflict, prefer the function definition for the how, and the step prompt for the what.",
|
|
28
|
+
"collectNits(): From the current pass, extract 'Nit:' or Minor items; append to nitFindings {title, details, filePath, line, analysisDepth}; maintain nitsCount.",
|
|
29
|
+
"prepareNitAppendix(): Group nitFindings by file; format 'filePath:line - short desc'; write markdown to nitAppendix; set nitAppendixReady=true.",
|
|
30
|
+
"discoverModulePatterns(): Compute moduleRoot (nearest common ancestor of changed files, clamped to package/src); scan only moduleRoot to build patternCatalog + patternExamples (naming, DI, errors, logging, tests, layout).",
|
|
31
|
+
"consolidatePatternFindings(): Compare changes to patternCatalog (scoped to moduleRoot); produce patternFindings + grouped patternAppendix; set patternAppendixReady=true.",
|
|
32
|
+
"initReviewDoc(): Create live Markdown at project root; filename '<YYYY-MM-DD>--<ticket-or-branch>--mr-review.md'; insert section markers; set reviewDocPath; if no file I/O, output full doc and path.",
|
|
33
|
+
"upsertSection(): Upsert under a known section marker; never duplicate sections; keep formatting concise.",
|
|
34
|
+
"appendChangedFileRow(): Append/update Changed Files table row: File | +/- | Summary | Risk.",
|
|
35
|
+
"appendFinding(): Append finding under severity (Critical/Major/Minor) with path:line, 1–2-line rationale, optional tiny diff.",
|
|
36
|
+
"appendPatternResult(): Append Pattern Adherence row (Check | Result | Note); add brief per-file deviations.",
|
|
37
|
+
"appendNit(): Append Nit grouped by file: 'path:line — nit text'.",
|
|
38
|
+
"appendMRComment(): Append copy-ready MR comment: file:line, short title, rationale, optional tiny diff.",
|
|
39
|
+
"logRevision(): Append timestamped message to the Revision Log describing the update.",
|
|
40
|
+
"discoverHygieneSignals(): In moduleRoot, scan changed files + neighbors for: disabled/skipped/focused tests; no-assert tests; commented-out code; stale/misleading comments; TODO/FIXME/HACK/BUG w/o ticket or stale; pattern inconsistencies; ad-hoc debug prints; obvious unused/unreachable.",
|
|
41
|
+
"consolidateHygieneFindings(): Cap total ≤10 and ≤3 per category; dedupe; group by file; elevate Major only for clearly risky cases; produce category counts and capped items.",
|
|
42
|
+
"appendHygieneFinding(): Append hygiene bullet grouped by file: 'path:line — short note (≤2 lines)'; if duplicated in Nits, reference '(linked in Nits)'.",
|
|
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."
|
|
28
44
|
],
|
|
29
45
|
"functionDefinitions": [
|
|
30
46
|
{
|