@rasensio/aidlc 2.12.0 → 2.14.0

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 (54) hide show
  1. package/dist/autopilot/answers.d.ts +85 -0
  2. package/dist/autopilot/answers.d.ts.map +1 -0
  3. package/dist/autopilot/answers.js +249 -0
  4. package/dist/autopilot/answers.js.map +1 -0
  5. package/dist/autopilot/decisions.d.ts +4 -2
  6. package/dist/autopilot/decisions.d.ts.map +1 -1
  7. package/dist/autopilot/decisions.js +5 -3
  8. package/dist/autopilot/decisions.js.map +1 -1
  9. package/dist/autopilot/driver.d.ts +12 -1
  10. package/dist/autopilot/driver.d.ts.map +1 -1
  11. package/dist/autopilot/driver.js +24 -16
  12. package/dist/autopilot/driver.js.map +1 -1
  13. package/dist/autopilot/open-decisions.d.ts +17 -0
  14. package/dist/autopilot/open-decisions.d.ts.map +1 -1
  15. package/dist/autopilot/open-decisions.js +45 -1
  16. package/dist/autopilot/open-decisions.js.map +1 -1
  17. package/dist/autopilot/pending.d.ts +122 -0
  18. package/dist/autopilot/pending.d.ts.map +1 -0
  19. package/dist/autopilot/pending.js +534 -0
  20. package/dist/autopilot/pending.js.map +1 -0
  21. package/dist/autopilot/state.d.ts +9 -0
  22. package/dist/autopilot/state.d.ts.map +1 -1
  23. package/dist/autopilot/state.js.map +1 -1
  24. package/dist/autopilot/wait.d.ts +36 -0
  25. package/dist/autopilot/wait.d.ts.map +1 -0
  26. package/dist/autopilot/wait.js +39 -0
  27. package/dist/autopilot/wait.js.map +1 -0
  28. package/dist/commands/autopilot.d.ts +11 -0
  29. package/dist/commands/autopilot.d.ts.map +1 -1
  30. package/dist/commands/autopilot.js +180 -14
  31. package/dist/commands/autopilot.js.map +1 -1
  32. package/dist/commands/roadmap.d.ts +9 -0
  33. package/dist/commands/roadmap.d.ts.map +1 -1
  34. package/dist/commands/roadmap.js +42 -0
  35. package/dist/commands/roadmap.js.map +1 -1
  36. package/dist/doctor/migrations/index.d.ts.map +1 -1
  37. package/dist/doctor/migrations/index.js +3 -0
  38. package/dist/doctor/migrations/index.js.map +1 -1
  39. package/dist/doctor/migrations/roadmap-merged-items.d.ts +19 -0
  40. package/dist/doctor/migrations/roadmap-merged-items.d.ts.map +1 -0
  41. package/dist/doctor/migrations/roadmap-merged-items.js +79 -0
  42. package/dist/doctor/migrations/roadmap-merged-items.js.map +1 -0
  43. package/dist/events/event-bus.d.ts.map +1 -1
  44. package/dist/events/event-bus.js +42 -0
  45. package/dist/events/event-bus.js.map +1 -1
  46. package/dist/roadmap/merged.d.ts +86 -0
  47. package/dist/roadmap/merged.d.ts.map +1 -0
  48. package/dist/roadmap/merged.js +170 -0
  49. package/dist/roadmap/merged.js.map +1 -0
  50. package/dist/roadmap/triage.d.ts +46 -0
  51. package/dist/roadmap/triage.d.ts.map +1 -0
  52. package/dist/roadmap/triage.js +134 -0
  53. package/dist/roadmap/triage.js.map +1 -0
  54. package/package.json +2 -2
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Roadmap items merged into a carrier, and filing them once the carrier is done
3
+ * (merged-items-leave-hold).
4
+ *
5
+ * Merging keeps the backlog small: the merged item is parked in `hold/` with a reason saying
6
+ * "merged into <carrier id>", and the carrier gains a `## Merged from <id>` section carrying its
7
+ * criteria. Nothing moved the merged item when the carrier finished, so `hold/` filled with
8
+ * delivered work — 27 of 51 holds in fieldmodel-apps, 13 of them for carriers already in `done/`.
9
+ *
10
+ * Shared by the `roadmap-done` action and the two doctor migrations so they cannot disagree about
11
+ * what a merge is (design DD-1). Pure over items and text apart from `carrierDocs`, which reads one
12
+ * file, and `fileMerged`, whose only write is `moveItem`.
13
+ *
14
+ * @module
15
+ */
16
+ import { readFileSync } from 'node:fs';
17
+ import { join } from 'node:path';
18
+ import { lastHoldEntry } from './misfiled.js';
19
+ import { frontmatter, itemBody, listStatusAt, moveItem, roadmapRoots } from './paths.js';
20
+ /** An item id as items write it; the trailing `-` of one cut by punctuation is trimmed after. */
21
+ const ID = 'item-[a-z0-9][a-z0-9-]*';
22
+ /** "merged into" anywhere in a hold reason: `parked — merged into item-x; …` is the newer shape. */
23
+ const REASON_RE = new RegExp(`merged into\\s+\`?(${ID})`, 'i');
24
+ /**
25
+ * A body line opening with "Merged" and saying "into <id>" in the same sentence, past a blockquote
26
+ * marker and emphasis (merged-items-leave-hold/AC-16): fieldmodel-apps writes both
27
+ * ``Merged into `item-x`, where …`` and ``> **Merged 2026-09-17** into `item-x` (backlog)``.
28
+ */
29
+ const BODY_RE = new RegExp(`^[>*_\\s]*merged\\b[^.\\n]{0,40}?\\binto\\s+[\`*]*(${ID})`, 'i');
30
+ /** A `promoted_to` safe to join into a state path (requirements NFR, safety). */
31
+ const INSTANCE_RE = /^[a-z0-9][a-z0-9-]*$/;
32
+ function trimId(id) {
33
+ return id.replace(/-+$/, '').toLowerCase();
34
+ }
35
+ /**
36
+ * The carrier id a `hold/` item names, or null when it is not merged
37
+ * (merged-items-leave-hold/AC-1, AC-3, AC-15, AC-16).
38
+ *
39
+ * The last `hold` entry's reason decides. Only when it has no reason is the body read, and then
40
+ * only its first non-blank line: older stubs wrote the merge there and left the entry bare. A
41
+ * reason that says something else is never overridden by the body (AC-3) — it is a later decision
42
+ * than whatever the body was first written to say.
43
+ */
44
+ export function carrierOf(raw) {
45
+ const fm = frontmatter(raw);
46
+ if (fm === null)
47
+ return null;
48
+ const reason = lastHoldEntry(fm.data)?.reason;
49
+ if (typeof reason === 'string' && reason.trim() !== '') {
50
+ const match = REASON_RE.exec(reason);
51
+ return match === null ? null : trimId(match[1]);
52
+ }
53
+ const first = itemBody(raw)
54
+ .split('\n')
55
+ .find((line) => line.trim() !== '');
56
+ if (first === undefined)
57
+ return null;
58
+ const match = BODY_RE.exec(first);
59
+ return match === null ? null : trimId(match[1]);
60
+ }
61
+ function escapeRegExp(text) {
62
+ return text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
63
+ }
64
+ /**
65
+ * True when `doc` has a "Merged from <mergedId>" heading at any level (merged-items-leave-hold/AC-4).
66
+ *
67
+ * The lookahead stops `item-a` being recorded by a heading for `item-ab`.
68
+ */
69
+ export function recordsMerge(doc, mergedId) {
70
+ const re = new RegExp(`^#{1,6}\\s+merged from\\s+\`?${escapeRegExp(mergedId)}\`?(?![a-z0-9-])`, 'im');
71
+ return re.test(doc);
72
+ }
73
+ /**
74
+ * The texts a carrier may record its merges in: its item file, and the `roadmap-item.md` of the
75
+ * instance it is promoted to (merged-items-leave-hold/AC-4). The instance's copy is where a
76
+ * carrier's criteria are read during its build, so a section added there counts.
77
+ */
78
+ export function carrierDocs(projectRoot, carrier) {
79
+ const docs = [carrier.raw];
80
+ if (carrier.promotedTo !== null && INSTANCE_RE.test(carrier.promotedTo)) {
81
+ try {
82
+ docs.push(readFileSync(join(projectRoot, '.aidlc', 'state', carrier.promotedTo, 'roadmap-item.md'), 'utf8'));
83
+ }
84
+ catch {
85
+ // no copy: the item file is still checked
86
+ }
87
+ }
88
+ return docs;
89
+ }
90
+ /**
91
+ * Split `hold` items merged into one of `carriers` (id → docs) by whether the merge is recorded
92
+ * (merged-items-leave-hold/AC-4, AC-13).
93
+ *
94
+ * An item merged into a carrier not in the map is left out: its carrier is still open, parked, or
95
+ * gone, and none of those is a reason to touch it. An item with no id cannot be named by a heading,
96
+ * so it is unrecorded. Input order is kept, and `listStatusAt` sorts by file name.
97
+ */
98
+ export function planMerged(hold, carriers) {
99
+ const plan = { recorded: [], unrecorded: [] };
100
+ for (const item of hold) {
101
+ const carrier = carrierOf(item.raw);
102
+ if (carrier === null)
103
+ continue;
104
+ const docs = carriers.get(carrier);
105
+ if (docs === undefined)
106
+ continue;
107
+ const id = item.id;
108
+ const recorded = id !== null && docs.some((doc) => recordsMerge(doc, id));
109
+ (recorded ? plan.recorded : plan.unrecorded).push({ item, carrier });
110
+ }
111
+ return plan;
112
+ }
113
+ /**
114
+ * `carriers` keyed by lowercased id, with their docs; items without an id are left out. Two files
115
+ * sharing an id pool their docs.
116
+ */
117
+ export function carrierMap(projectRoot, carriers) {
118
+ const map = new Map();
119
+ for (const item of carriers) {
120
+ if (item.id === null)
121
+ continue;
122
+ const id = item.id.toLowerCase();
123
+ map.set(id, [...(map.get(id) ?? []), ...carrierDocs(projectRoot, item)]);
124
+ }
125
+ return map;
126
+ }
127
+ /** Every item in `done/` under `root` as a carrier (merged-items-leave-hold/AC-11, AC-12). */
128
+ export function doneCarriers(projectRoot, root) {
129
+ return carrierMap(projectRoot, listStatusAt(root, 'done'));
130
+ }
131
+ /**
132
+ * Every distinct `hold/` item across `roadmapRoots(cwd)`, this working tree first — the lookup
133
+ * `findAllByPromotedTo` makes, deduped by file name for the reason it records: a worktree holds its
134
+ * own copy of every committed item, and the completing branch's copy is the one about to be committed.
135
+ */
136
+ export function holdAcross(cwd) {
137
+ const seen = new Set();
138
+ const items = [];
139
+ for (const root of roadmapRoots(cwd)) {
140
+ for (const item of listStatusAt(root, 'hold')) {
141
+ if (seen.has(item.filename))
142
+ continue;
143
+ seen.add(item.filename);
144
+ items.push(item);
145
+ }
146
+ }
147
+ return items;
148
+ }
149
+ /** The reason on a merged item's `done` entry (merged-items-leave-hold/AC-6). */
150
+ export function mergedDoneReason(carrier) {
151
+ return `merged into ${carrier}, which is done`;
152
+ }
153
+ /**
154
+ * Move each item to `done/` with a history entry naming its carrier, trying every one before
155
+ * reporting (merged-items-leave-hold/AC-6, AC-10) — the rule `roadmap-done` follows for carriers.
156
+ */
157
+ export function fileMerged(items, cwd, at) {
158
+ const filing = { moved: [], failed: [] };
159
+ for (const entry of items) {
160
+ try {
161
+ moveItem(entry.item, cwd, 'done', at, mergedDoneReason(entry.carrier));
162
+ filing.moved.push(entry);
163
+ }
164
+ catch (err) {
165
+ filing.failed.push({ entry, message: err.message });
166
+ }
167
+ }
168
+ return filing;
169
+ }
170
+ //# sourceMappingURL=merged.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merged.js","sourceRoot":"","sources":["../../src/roadmap/merged.ts"],"names":[],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AAI,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACvE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACtB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAG,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Triage from the command line: move an `inbox/` item to `backlog/` with its rank and run
3
+ * mode, or to `hold/` parked or declined (autopilot-watcher-asks-person/AC-31..AC-33).
4
+ *
5
+ * The roadmap skill triaged by moving files and editing frontmatter by hand. The autopilot
6
+ * watcher applies a person's triage answer with one command, and a hand edit is the step
7
+ * an agent was seen fumbling (the reason `roadmap park` and `roadmap rank` exist), so the
8
+ * three writes live here: the `run:` line and the history entry in one write before the
9
+ * rename, then the rank through `planRank`, which renumbers the others.
10
+ *
11
+ * Every refusal is decided before the first write. Reads and writes the PRIMARY checkout's
12
+ * roadmap, like every lookup that decides status.
13
+ *
14
+ * @module
15
+ */
16
+ import { type RunMode } from './next.js';
17
+ import { type RoadmapItem } from './paths.js';
18
+ export declare const TRIAGE_TARGETS: readonly ["backlog", "park", "decline"];
19
+ export type TriageTarget = (typeof TRIAGE_TARGETS)[number];
20
+ export interface TriageOptions {
21
+ rank?: number;
22
+ run?: RunMode;
23
+ reason?: string;
24
+ /** ISO date for the history entry. */
25
+ at: string;
26
+ }
27
+ export type TriageResult = {
28
+ ok: true;
29
+ file: string;
30
+ lines: string[];
31
+ } | {
32
+ ok: false;
33
+ detail: string;
34
+ };
35
+ /**
36
+ * Set an item's `run:` line, editing the frontmatter as text as `setPriorityLine` does; with
37
+ * none, it is added as the last frontmatter line.
38
+ *
39
+ * @returns The new contents, or null when there is no frontmatter.
40
+ */
41
+ export declare function setRunLine(raw: string, run: RunMode): string | null;
42
+ /** The reason of the item's last history entry, or null. */
43
+ export declare function lastReason(item: RoadmapItem): string | null;
44
+ /** Move `ref` to `to`, refusing before any write (AC-31, AC-32, AC-33). */
45
+ export declare function triageItem(cwd: string, ref: string, to: TriageTarget, opts: TriageOptions): TriageResult;
46
+ //# sourceMappingURL=triage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triage.d.ts","sourceRoot":"","sources":["../../src/roadmap/triage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAqE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAGjH,eAAO,MAAM,cAAc,yCAA0C,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAMvG;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAanE;AASD,4DAA4D;AAC5D,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAK3D;AAWD,2EAA2E;AAC3E,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,YAAY,CAyDxG"}
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Triage from the command line: move an `inbox/` item to `backlog/` with its rank and run
3
+ * mode, or to `hold/` parked or declined (autopilot-watcher-asks-person/AC-31..AC-33).
4
+ *
5
+ * The roadmap skill triaged by moving files and editing frontmatter by hand. The autopilot
6
+ * watcher applies a person's triage answer with one command, and a hand edit is the step
7
+ * an agent was seen fumbling (the reason `roadmap park` and `roadmap rank` exist), so the
8
+ * three writes live here: the `run:` line and the history entry in one write before the
9
+ * rename, then the rank through `planRank`, which renumbers the others.
10
+ *
11
+ * Every refusal is decided before the first write. Reads and writes the PRIMARY checkout's
12
+ * roadmap, like every lookup that decides status.
13
+ *
14
+ * @module
15
+ */
16
+ import { readItemFields } from './item-fields.js';
17
+ import { parsePriority } from './next.js';
18
+ import { frontmatter, listStatusAt, moveItem, primaryCheckout, roadmapRoot } from './paths.js';
19
+ import { applyRank, planRank } from './rank.js';
20
+ export const TRIAGE_TARGETS = ['backlog', 'park', 'decline'];
21
+ const PARKED = 'parked — ';
22
+ const DECLINED = 'declined — ';
23
+ const DATE_PREFIX_RE = /^\d{8}-/;
24
+ /**
25
+ * Set an item's `run:` line, editing the frontmatter as text as `setPriorityLine` does; with
26
+ * none, it is added as the last frontmatter line.
27
+ *
28
+ * @returns The new contents, or null when there is no frontmatter.
29
+ */
30
+ export function setRunLine(raw, run) {
31
+ const fm = frontmatter(raw);
32
+ if (!fm)
33
+ return null;
34
+ const lines = fm.text.split('\n');
35
+ const at = lines.findIndex((l) => /^run:/.test(l));
36
+ if (at === -1) {
37
+ // `fm.text` ends with a newline, so the last element is empty: insert before it.
38
+ lines.splice(lines.length - 1, 0, `run: ${run}`);
39
+ }
40
+ else {
41
+ const comment = /\s+#.*$/.exec(lines[at].slice('run:'.length));
42
+ lines[at] = `run: ${run}${comment ? comment[0] : ''}`;
43
+ }
44
+ return `${raw.slice(0, fm.start)}${lines.join('\n')}${raw.slice(fm.end)}`;
45
+ }
46
+ /** Compared against names listed from disk, never joined into a path. */
47
+ function names(item, ref) {
48
+ const stem = item.filename.replace(/\.md$/, '');
49
+ const wanted = ref.replace(/\.md$/, '');
50
+ return wanted === stem || wanted === stem.replace(DATE_PREFIX_RE, '') || ref === item.id;
51
+ }
52
+ /** The reason of the item's last history entry, or null. */
53
+ export function lastReason(item) {
54
+ const history = frontmatter(item.raw)?.data.history;
55
+ if (!Array.isArray(history) || history.length === 0)
56
+ return null;
57
+ const last = history[history.length - 1];
58
+ return typeof last?.reason === 'string' ? last.reason : null;
59
+ }
60
+ function declared(cwd, field) {
61
+ const fields = readItemFields(primaryCheckout(cwd));
62
+ return fields.kind === 'ok' && fields.fields.some((f) => f.name === field);
63
+ }
64
+ function prefixed(reason, prefix) {
65
+ return reason.startsWith(prefix) ? reason : `${prefix}${reason}`;
66
+ }
67
+ /** Move `ref` to `to`, refusing before any write (AC-31, AC-32, AC-33). */
68
+ export function triageItem(cwd, ref, to, opts) {
69
+ if (!TRIAGE_TARGETS.includes(to)) {
70
+ return { ok: false, detail: `triage moves to ${TRIAGE_TARGETS.join(', ')} — not ${JSON.stringify(to)}` };
71
+ }
72
+ const root = roadmapRoot(cwd);
73
+ const inbox = listStatusAt(root, 'inbox').filter((i) => names(i, ref));
74
+ // Only decline takes a held item, and only a parked one: a declined item has had its answer.
75
+ const held = to === 'decline' ? listStatusAt(root, 'hold').filter((i) => names(i, ref) && (lastReason(i) ?? '').startsWith(PARKED)) : [];
76
+ const found = [...inbox, ...held];
77
+ if (found.length > 1)
78
+ return { ok: false, detail: `${JSON.stringify(ref)} matches more than one item: ${found.map((i) => i.filename).join(', ')}` };
79
+ if (found.length === 0) {
80
+ const where = to === 'decline' ? 'inbox/ or parked in hold/' : 'inbox/';
81
+ return { ok: false, detail: `no item in ${where} matches ${JSON.stringify(ref)} (by file name or id)` };
82
+ }
83
+ const item = found[0];
84
+ if (to !== 'backlog') {
85
+ if (opts.rank !== undefined || opts.run !== undefined)
86
+ return { ok: false, detail: '--rank and --run apply to backlog only' };
87
+ const reason = (opts.reason ?? '').trim();
88
+ if (reason === '')
89
+ return { ok: false, detail: 'a reason is required — a held item with no reason cannot be told parked from declined' };
90
+ const full = prefixed(reason, to === 'park' ? PARKED : DECLINED);
91
+ const file = moveItem(item, cwd, 'hold', opts.at, full);
92
+ return { ok: true, file, lines: [`${to === 'park' ? 'parked' : 'declined'} ${item.filename}: ${file}`, ` reason: ${full}`] };
93
+ }
94
+ if (opts.reason !== undefined)
95
+ return { ok: false, detail: '--reason applies to park and decline only' };
96
+ if (opts.run !== undefined && opts.run !== 'autopilot' && opts.run !== 'attended') {
97
+ return { ok: false, detail: `--run must be autopilot or attended, not ${JSON.stringify(opts.run)}` };
98
+ }
99
+ if (opts.run !== undefined && !declared(cwd, 'run'))
100
+ return { ok: false, detail: 'this project does not declare `run` in roadmap.item_fields' };
101
+ if (opts.rank !== undefined) {
102
+ if (!Number.isInteger(opts.rank) || opts.rank < 1)
103
+ return { ok: false, detail: `rank must be a positive integer, got ${JSON.stringify(opts.rank)}` };
104
+ if (!declared(cwd, 'priority'))
105
+ return { ok: false, detail: 'this project does not declare `priority` in roadmap.item_fields' };
106
+ // planRank refuses a malformed rank it would renumber around; checked here so it cannot
107
+ // refuse after the move.
108
+ for (const b of listStatusAt(root, 'backlog')) {
109
+ if (parsePriority(frontmatter(b.raw)?.data.priority) === 'bad') {
110
+ return { ok: false, detail: `backlog/${b.filename} has a priority that is not a positive integer — fix it before ranking` };
111
+ }
112
+ }
113
+ }
114
+ let raw = item.raw;
115
+ if (opts.run !== undefined) {
116
+ const withRun = setRunLine(raw, opts.run);
117
+ if (withRun === null)
118
+ return { ok: false, detail: `${item.filename} has no frontmatter to write run: into` };
119
+ raw = withRun;
120
+ }
121
+ const file = moveItem({ ...item, raw }, cwd, 'backlog', opts.at);
122
+ const lines = [`moved ${item.filename} to backlog: ${file}`];
123
+ if (opts.run !== undefined)
124
+ lines.push(` run: ${opts.run}`);
125
+ if (opts.rank !== undefined) {
126
+ const plan = planRank(cwd, item.filename, String(opts.rank));
127
+ if (!plan.ok)
128
+ return { ok: false, detail: `moved to backlog, but not ranked: ${plan.detail}` };
129
+ applyRank(plan);
130
+ lines.push(` rank: ${plan.rank}`);
131
+ }
132
+ return { ok: true, file, lines };
133
+ }
134
+ //# sourceMappingURL=triage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triage.js","sourceRoot":"","sources":["../../src/roadmap/triage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAgB,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAC;AACjH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAatE,MAAM,MAAM,GAAG,WAAW,CAAC;AAC3B,MAAM,QAAQ,GAAG,aAAa,CAAC;AAC/B,MAAM,cAAc,GAAG,SAAS,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,GAAW,EAAE,GAAY;IAClD,MAAM,EAAE,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE;QAAE,OAAO,IAAI,CAAC;IACrB,MAAM,KAAK,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAA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,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IACjE,MAAM,KAAK,GAAG,CAAC,SAAS,IAAI,CAAC,QAAQ,gBAAgB,IAAI,EAAE,CAAC,CAAC;IAC7D,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS;QAAE,KAAK,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7D,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7D,IAAI,CAAC,IAAI,CAAC,EAAE;YAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,qCAAqC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;QAC/F,SAAS,CAAC,IAAI,CAAC,CAAC;QAChB,KAAK,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc",
3
- "version": "2.12.0",
3
+ "version": "2.14.0",
4
4
  "description": "AI Development Lifecycle Framework — structured lifecycle guidance for AI coding agents across platforms",
5
5
  "homepage": "https://aidlc.rodrigoasensio.com",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  "commander": "15.0.0",
32
32
  "picomatch": "4.0.5",
33
33
  "yaml": "2.9.0",
34
- "@rasensio/aidlc-content": "2.12.0"
34
+ "@rasensio/aidlc-content": "2.14.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "22.15.32",