mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Remove the legacy plan2code-loop CLI
AI Assisted
This commit is contained in:
1 parent
d7abcd2ac6
commit
c8d12a3d99
89 files changed
+449
-3189
No files matched your search
@@ -212,8 +212,8 @@ export function rel(root, p) {
|
||||
|
||||
/* ------------------------------------------------- planning-file patterns */
|
||||
|
||||
// The loop completion markers. The loop scans specs/ for them, so no planning
|
||||
// file may contain one. The one copy every skill script checks against.
|
||||
// The loop completion markers, reserved outright so nothing under specs/ can
|
||||
// fake a finished run. The one copy every skill script checks against.
|
||||
export const LOOP_TOKENS = /\b(TASK_COMPLETE|PHASE_COMPLETE|ALL_TASKS_COMPLETE|IMPLEMENTATION_COMPLETE|SPEC_COMPLETE|WORK_COMPLETE)\b/;
|
||||
|
||||
// The metrics collector's own scrape patterns (plan2code-metrics/src/collector.ts).
|
||||
|
||||
@@ -773,7 +773,7 @@ const CONFIDENCE_HITS = ["overall confidence with %", "confidence table cell"];
|
||||
|
||||
function proseChecks(text, file, add, { allowConfidence = false } = {}) {
|
||||
const m = text.match(LOOP_TOKENS);
|
||||
if (m) add("error", file, "loop-token", `contains the loop completion token ${m[0]} (the loop scans specs/ for these)`);
|
||||
if (m) add("error", file, "loop-token", `contains the loop completion token ${m[0]} (reserved; these never belong under specs/)`);
|
||||
for (const h of scrapeHits(text.replace(METRICS_COMMENT_RE, ""))) {
|
||||
if (allowConfidence && CONFIDENCE_HITS.some((name) => h.startsWith(`${name}:`))) continue;
|
||||
add("error", file, "metric-word", `metrics-scraper bait (${h}); hyphenate the label or reword`);
|
||||
|
||||
Reference in new issue
Block a user