@rasensio/aidlc 1.50.0 → 1.51.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.
package/README.md CHANGED
@@ -292,9 +292,9 @@ This repository is a pnpm workspace:
292
292
 
293
293
  ```
294
294
  aidlc/
295
- ├── docs/ # How AIDLC works — nine prose pages on why each subsystem exists
296
295
  ├── packages/
297
- │ ├── content/ # @rasensio/aidlc-content — skills, templates, guidance, capabilities
296
+ │ ├── content/ # @rasensio/aidlc-content — skills, templates, guidance, capabilities,
297
+ │ │ # and docs/: nine prose pages on why each subsystem exists
298
298
  │ ├── cli/ # @rasensio/aidlc — CLI tool (npm package)
299
299
  │ └── website/ # @rasensio/aidlc-website — documentation website (Next.js)
300
300
  ├── ci/ # CI pipeline configuration
@@ -313,19 +313,21 @@ aidlc/
313
313
 
314
314
  ## How this repo works
315
315
 
316
- Reference docs tell you *what* a command does. [**`docs/`**](https://github.com/rasensio/aidlc/blob/main/docs/README.md) tells you *why the subsystem exists and what breaks without it* — nine pages, written for a person trying to understand the system and for an agent about to change it. Read the relevant page before modifying a subsystem: several of these designs look arbitrary until you know which bug bought them.
316
+ Reference docs tell you *what* a command does. [**`packages/content/docs/`**](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/README.md) tells you *why the subsystem exists and what breaks without it* — nine pages, written for a person trying to understand the system and for an agent about to change it. Read the relevant page before modifying a subsystem: several of these designs look arbitrary until you know which bug bought them.
317
+
318
+ The pages ship inside `@rasensio/aidlc-content`, so a project that installed AIDLC can read them without this repository: `aidlc explain` lists them and `aidlc explain <topic>` prints one. Nothing is copied into your project.
317
319
 
318
320
  | Page | What it covers |
319
321
  |---|---|
320
- | [lifecycle.md](https://github.com/rasensio/aidlc/blob/main/docs/lifecycle.md) | Instances, templates, scope, phases, gates, amendments |
321
- | [state-and-concurrency.md](https://github.com/rasensio/aidlc/blob/main/docs/state-and-concurrency.md) | State files, claims, the registry, worktrees |
322
- | [roadmap.md](https://github.com/rasensio/aidlc/blob/main/docs/roadmap.md) | Capture, triage, promote, and the GitHub Issues projection |
323
- | [reviews-and-guidance.md](https://github.com/rasensio/aidlc/blob/main/docs/reviews-and-guidance.md) | Adversarial review, guidance layers, context docs, the constitution |
324
- | [cost-tracking.md](https://github.com/rasensio/aidlc/blob/main/docs/cost-tracking.md) | What a feature cost, and how the number is attributed |
325
- | [metrics.md](https://github.com/rasensio/aidlc/blob/main/docs/metrics.md) | Change failure rate, lead times, true cost |
326
- | [knowledge-graph.md](https://github.com/rasensio/aidlc/blob/main/docs/knowledge-graph.md) | Persistent codebase memory for agents |
327
- | [skills-and-platforms.md](https://github.com/rasensio/aidlc/blob/main/docs/skills-and-platforms.md) | One canonical skill body, six platform packagings |
328
- | [hygiene-and-compliance.md](https://github.com/rasensio/aidlc/blob/main/docs/hygiene-and-compliance.md) | `aidlc doctor`, compliance packs |
322
+ | [lifecycle.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/lifecycle.md) | Instances, templates, scope, phases, gates, amendments |
323
+ | [state-and-concurrency.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/state-and-concurrency.md) | State files, claims, the registry, worktrees |
324
+ | [roadmap.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/roadmap.md) | Capture, triage, promote, and the GitHub Issues projection |
325
+ | [reviews-and-guidance.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/reviews-and-guidance.md) | Adversarial review, guidance layers, context docs, the constitution |
326
+ | [cost-tracking.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/cost-tracking.md) | What a feature cost, and how the number is attributed |
327
+ | [metrics.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/metrics.md) | Change failure rate, lead times, true cost |
328
+ | [knowledge-graph.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/knowledge-graph.md) | Persistent codebase memory for agents |
329
+ | [skills-and-platforms.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/skills-and-platforms.md) | One canonical skill body, six platform packagings |
330
+ | [hygiene-and-compliance.md](https://github.com/rasensio/aidlc/blob/main/packages/content/docs/hygiene-and-compliance.md) | `aidlc doctor`, compliance packs |
329
331
 
330
332
  ## Development
331
333
 
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAcH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+BpC;;;;;;GAMG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAuCtC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,MAAM,GAAG,SAA2B,GAC1C,OAAO,CAQT"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAcH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgCpC;;;;;;GAMG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAwCtC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,MAAM,GAAG,SAA2B,GAC1C,OAAO,CAQT"}
package/dist/cli.js CHANGED
@@ -33,6 +33,7 @@ import { registerCrossCheck } from './commands/cross-check.js';
33
33
  import { registerDiscover } from './commands/discover.js';
34
34
  import { registerAddAction } from './commands/add-action.js';
35
35
  import { registerDocs } from './commands/docs.js';
36
+ import { registerExplain } from './commands/explain.js';
36
37
  import { registerReview } from './commands/review.js';
37
38
  import { registerUpdate } from './commands/update.js';
38
39
  import { registerKnowledge } from './commands/knowledge.js';
@@ -75,6 +76,7 @@ export function buildProgram() {
75
76
  registerDiscover(program);
76
77
  registerAddAction(program);
77
78
  registerDocs(program);
79
+ registerExplain(program);
78
80
  registerReview(program);
79
81
  registerUpdate(program);
80
82
  registerKnowledge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why a subsystem exists, from the installed package.
3
+ *
4
+ * **Why this command exists.** The explanation pages used to sit at this repo's
5
+ * root, which npm never publishes, so a project that installed AIDLC could not
6
+ * read them at all. They now ship inside `@rasensio/aidlc-content`, and this
7
+ * command is the read path: it prints a page from wherever the package was
8
+ * installed. Nothing is copied into the project — a copy in fifty projects is
9
+ * fifty versions of the truth, the reason `glossary.ts` gives for the same choice
10
+ * (docs-unreachable-from-installed-projects DD-1).
11
+ *
12
+ * Not `aidlc docs <topic>`: `docs` already writes `.aidlc/ONBOARDING.md`, and one
13
+ * name doing two unrelated things depending on an argument is a trap (DD-2).
14
+ *
15
+ * Reads the content package and nothing else — no project root, no state — so it
16
+ * works in a directory that has never seen `aidlc init` (AC-10).
17
+ *
18
+ * Requirements: docs-unreachable-from-installed-projects/AC-5 … AC-10
19
+ */
20
+ import type { Command } from 'commander';
21
+ export declare function registerExplain(program: Command): void;
22
+ //# sourceMappingURL=explain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explain.d.ts","sourceRoot":"","sources":["../../src/commands/explain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuBzC,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAStD"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * `aidlc explain [topic]` — read why a subsystem exists, from the installed package.
3
+ *
4
+ * **Why this command exists.** The explanation pages used to sit at this repo's
5
+ * root, which npm never publishes, so a project that installed AIDLC could not
6
+ * read them at all. They now ship inside `@rasensio/aidlc-content`, and this
7
+ * command is the read path: it prints a page from wherever the package was
8
+ * installed. Nothing is copied into the project — a copy in fifty projects is
9
+ * fifty versions of the truth, the reason `glossary.ts` gives for the same choice
10
+ * (docs-unreachable-from-installed-projects DD-1).
11
+ *
12
+ * Not `aidlc docs <topic>`: `docs` already writes `.aidlc/ONBOARDING.md`, and one
13
+ * name doing two unrelated things depending on an argument is a trap (DD-2).
14
+ *
15
+ * Reads the content package and nothing else — no project root, no state — so it
16
+ * works in a directory that has never seen `aidlc init` (AC-10).
17
+ *
18
+ * Requirements: docs-unreachable-from-installed-projects/AC-5 … AC-10
19
+ */
20
+ import { findDocTopic, loadDocTopics, readDocPage } from '@rasensio/aidlc-content';
21
+ function runList() {
22
+ const topics = loadDocTopics();
23
+ const width = Math.max(...topics.map((t) => t.id.length));
24
+ const lines = topics.map((t) => ` ${t.id.padEnd(width)} ${t.title}`);
25
+ lines.push('', 'Read one with: aidlc explain <topic>');
26
+ process.stdout.write(`${lines.join('\n')}\n`);
27
+ }
28
+ function runShow(query) {
29
+ const topic = findDocTopic(query);
30
+ if (!topic) {
31
+ const ids = loadDocTopics().map((t) => t.id).join(', ');
32
+ process.stderr.write(`Unknown topic "${query}". Topics: ${ids}.\n`);
33
+ process.exitCode = 1;
34
+ return;
35
+ }
36
+ const page = readDocPage(topic);
37
+ process.stdout.write(page.endsWith('\n') ? page : `${page}\n`);
38
+ }
39
+ export function registerExplain(program) {
40
+ program
41
+ .command('explain')
42
+ .description('Explain why a part of AIDLC works the way it does (lists topics, or prints one)')
43
+ .argument('[topic]', 'Topic id, or a command a topic covers (e.g. claim)')
44
+ .action((topic) => {
45
+ if (topic === undefined)
46
+ runList();
47
+ else
48
+ runShow(topic);
49
+ });
50
+ }
51
+ //# sourceMappingURL=explain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explain.js","sourceRoot":"","sources":["../../src/commands/explain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnF,SAAS,OAAO;IACd,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE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AyB,EAAE,EAAE;QACpC,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;;YAC9B,OAAO,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -30,7 +30,7 @@ export interface MenuEntry {
30
30
  readonly delegatesArgs?: true;
31
31
  }
32
32
  /**
33
- * The 12 menu entries, in display order: setup → begin → resume → inspect →
33
+ * The 14 menu entries, in display order: setup → begin → resume → inspect →
34
34
  * maintain (interactive-cli-menu/AC-32).
35
35
  */
36
36
  export declare const ROSTER: readonly MenuEntry[];
@@ -1 +1 @@
1
- {"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../src/menu/roster.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,wEAAwE;AACxE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AAE/E,MAAM,WAAW,SAAS;IACxB,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC;CAC/B;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,SAAS,EAkBtC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsCvD,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAM7C,CAAC"}
1
+ {"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../src/menu/roster.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,wEAAwE;AACxE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AAE/E,MAAM,WAAW,SAAS;IACxB,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC;CAC/B;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,SAAS,EAqBtC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsCvD,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAM7C,CAAC"}
@@ -16,7 +16,7 @@
16
16
  * @module
17
17
  */
18
18
  /**
19
- * The 12 menu entries, in display order: setup → begin → resume → inspect →
19
+ * The 14 menu entries, in display order: setup → begin → resume → inspect →
20
20
  * maintain (interactive-cli-menu/AC-32).
21
21
  */
22
22
  export const ROSTER = [
@@ -32,6 +32,9 @@ export const ROSTER = [
32
32
  // a group. It reads no project state, so it is safe for the menu to offer in any
33
33
  // project (first-run-gaps/AC-26).
34
34
  { path: ['templates'], bucket: 'inspect', label: 'Show workflow templates' },
35
+ // Rostered for the same reason as `templates`: bare `aidlc explain` lists the
36
+ // topics and reads no project state (docs-unreachable-from-installed-projects/AC-12).
37
+ { path: ['explain'], bucket: 'inspect', label: 'Explain how AIDLC works' },
35
38
  { path: ['cost'], bucket: 'inspect', label: 'Cost report' },
36
39
  { path: ['metrics'], bucket: 'inspect', label: 'Project metrics' },
37
40
  { path: ['knowledge', 'query'], bucket: 'inspect', label: 'Search project knowledge' },
@@ -1 +1 @@
1
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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": "1.50.0"
34
+ "@rasensio/aidlc-content": "1.51.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "22.15.32",