@rasensio/aidlc 1.7.0 → 1.8.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 (92) hide show
  1. package/dist/cli.js +5 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/doctor.d.ts +27 -0
  4. package/dist/commands/doctor.d.ts.map +1 -0
  5. package/dist/commands/doctor.js +97 -0
  6. package/dist/commands/doctor.js.map +1 -0
  7. package/dist/commands/status.js +5 -9
  8. package/dist/commands/status.js.map +1 -1
  9. package/dist/commands/update.d.ts.map +1 -1
  10. package/dist/commands/update.js +11 -29
  11. package/dist/commands/update.js.map +1 -1
  12. package/dist/concurrency/claim-store.d.ts +10 -0
  13. package/dist/concurrency/claim-store.d.ts.map +1 -1
  14. package/dist/concurrency/claim-store.js +30 -0
  15. package/dist/concurrency/claim-store.js.map +1 -1
  16. package/dist/concurrency/gitattributes.d.ts +6 -0
  17. package/dist/concurrency/gitattributes.d.ts.map +1 -1
  18. package/dist/concurrency/gitattributes.js +13 -4
  19. package/dist/concurrency/gitattributes.js.map +1 -1
  20. package/dist/concurrency/registry.d.ts +4 -1
  21. package/dist/concurrency/registry.d.ts.map +1 -1
  22. package/dist/concurrency/registry.js +14 -6
  23. package/dist/concurrency/registry.js.map +1 -1
  24. package/dist/cost/recorder.d.ts +8 -0
  25. package/dist/cost/recorder.d.ts.map +1 -1
  26. package/dist/cost/recorder.js +41 -0
  27. package/dist/cost/recorder.js.map +1 -1
  28. package/dist/cost/sessions.d.ts +10 -2
  29. package/dist/cost/sessions.d.ts.map +1 -1
  30. package/dist/cost/sessions.js +26 -4
  31. package/dist/cost/sessions.js.map +1 -1
  32. package/dist/doctor/context.d.ts +7 -0
  33. package/dist/doctor/context.d.ts.map +1 -0
  34. package/dist/doctor/context.js +16 -0
  35. package/dist/doctor/context.js.map +1 -0
  36. package/dist/doctor/git.d.ts +17 -0
  37. package/dist/doctor/git.d.ts.map +1 -0
  38. package/dist/doctor/git.js +43 -0
  39. package/dist/doctor/git.js.map +1 -0
  40. package/dist/doctor/migrations/cost-gitignore.d.ts +11 -0
  41. package/dist/doctor/migrations/cost-gitignore.d.ts.map +1 -0
  42. package/dist/doctor/migrations/cost-gitignore.js +38 -0
  43. package/dist/doctor/migrations/cost-gitignore.js.map +1 -0
  44. package/dist/doctor/migrations/gitattributes.d.ts +8 -0
  45. package/dist/doctor/migrations/gitattributes.d.ts.map +1 -0
  46. package/dist/doctor/migrations/gitattributes.js +31 -0
  47. package/dist/doctor/migrations/gitattributes.js.map +1 -0
  48. package/dist/doctor/migrations/index.d.ts +10 -0
  49. package/dist/doctor/migrations/index.d.ts.map +1 -0
  50. package/dist/doctor/migrations/index.js +26 -0
  51. package/dist/doctor/migrations/index.js.map +1 -0
  52. package/dist/doctor/migrations/knowledge-gitignore.d.ts +12 -0
  53. package/dist/doctor/migrations/knowledge-gitignore.d.ts.map +1 -0
  54. package/dist/doctor/migrations/knowledge-gitignore.js +44 -0
  55. package/dist/doctor/migrations/knowledge-gitignore.js.map +1 -0
  56. package/dist/doctor/migrations/nested-gitignore.d.ts +14 -0
  57. package/dist/doctor/migrations/nested-gitignore.d.ts.map +1 -0
  58. package/dist/doctor/migrations/nested-gitignore.js +35 -0
  59. package/dist/doctor/migrations/nested-gitignore.js.map +1 -0
  60. package/dist/doctor/migrations/prune-cost-locks.d.ts +8 -0
  61. package/dist/doctor/migrations/prune-cost-locks.d.ts.map +1 -0
  62. package/dist/doctor/migrations/prune-cost-locks.js +28 -0
  63. package/dist/doctor/migrations/prune-cost-locks.js.map +1 -0
  64. package/dist/doctor/migrations/prune-registry.d.ts +11 -0
  65. package/dist/doctor/migrations/prune-registry.d.ts.map +1 -0
  66. package/dist/doctor/migrations/prune-registry.js +48 -0
  67. package/dist/doctor/migrations/prune-registry.js.map +1 -0
  68. package/dist/doctor/migrations/prune-session-stash.d.ts +8 -0
  69. package/dist/doctor/migrations/prune-session-stash.d.ts.map +1 -0
  70. package/dist/doctor/migrations/prune-session-stash.js +28 -0
  71. package/dist/doctor/migrations/prune-session-stash.js.map +1 -0
  72. package/dist/doctor/migrations/shipped-actions.d.ts +8 -0
  73. package/dist/doctor/migrations/shipped-actions.d.ts.map +1 -0
  74. package/dist/doctor/migrations/shipped-actions.js +32 -0
  75. package/dist/doctor/migrations/shipped-actions.js.map +1 -0
  76. package/dist/doctor/migrations/untrack-cost-ephemera.d.ts +14 -0
  77. package/dist/doctor/migrations/untrack-cost-ephemera.d.ts.map +1 -0
  78. package/dist/doctor/migrations/untrack-cost-ephemera.js +60 -0
  79. package/dist/doctor/migrations/untrack-cost-ephemera.js.map +1 -0
  80. package/dist/doctor/runner.d.ts +22 -0
  81. package/dist/doctor/runner.d.ts.map +1 -0
  82. package/dist/doctor/runner.js +99 -0
  83. package/dist/doctor/runner.js.map +1 -0
  84. package/dist/doctor/types.d.ts +66 -0
  85. package/dist/doctor/types.d.ts.map +1 -0
  86. package/dist/doctor/types.js +11 -0
  87. package/dist/doctor/types.js.map +1 -0
  88. package/dist/events/shipped-actions.d.ts +7 -0
  89. package/dist/events/shipped-actions.d.ts.map +1 -1
  90. package/dist/events/shipped-actions.js +14 -5
  91. package/dist/events/shipped-actions.js.map +1 -1
  92. package/package.json +2 -2
@@ -9,6 +9,13 @@
9
9
  import { type InferredAction } from '../commands/add-action.js';
10
10
  /** Actions shipped with the framework. */
11
11
  export declare const SHIPPED_ACTIONS: InferredAction[];
12
+ /**
13
+ * Shipped-action ids not yet present in actions.yaml. Read-only half of
14
+ * installShippedActions, shared with `aidlc doctor` (update-spring-clean
15
+ * AC-13). Malformed actions.yaml → [] — report clean rather than risk a
16
+ * clobbering append.
17
+ */
18
+ export declare function pendingShippedActions(actionsPath: string): string[];
12
19
  /**
13
20
  * Install shipped actions into actions.yaml, skipping any id that already
14
21
  * exists. Returns the ids actually installed.
@@ -1 +1 @@
1
- {"version":3,"file":"shipped-actions.d.ts","sourceRoot":"","sources":["../../src/events/shipped-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG9E,0CAA0C;AAC1C,eAAO,MAAM,eAAe,EAAE,cAAc,EAS3C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAmBnE"}
1
+ {"version":3,"file":"shipped-actions.d.ts","sourceRoot":"","sources":["../../src/events/shipped-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG9E,0CAA0C;AAC1C,eAAO,MAAM,eAAe,EAAE,cAAc,EAS3C,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAWnE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CASnE"}
@@ -20,10 +20,12 @@ export const SHIPPED_ACTIONS = [
20
20
  },
21
21
  ];
22
22
  /**
23
- * Install shipped actions into actions.yaml, skipping any id that already
24
- * exists. Returns the ids actually installed.
23
+ * Shipped-action ids not yet present in actions.yaml. Read-only half of
24
+ * installShippedActions, shared with `aidlc doctor` (update-spring-clean
25
+ * AC-13). Malformed actions.yaml → [] — report clean rather than risk a
26
+ * clobbering append.
25
27
  */
26
- export function installShippedActions(actionsPath) {
28
+ export function pendingShippedActions(actionsPath) {
27
29
  let existingIds = new Set();
28
30
  if (existsSync(actionsPath)) {
29
31
  try {
@@ -31,13 +33,20 @@ export function installShippedActions(actionsPath) {
31
33
  existingIds = new Set((config?.actions ?? []).map((a) => a.id));
32
34
  }
33
35
  catch {
34
- // Malformed actions.yaml: do not risk clobbering it with an append.
35
36
  return [];
36
37
  }
37
38
  }
39
+ return SHIPPED_ACTIONS.filter((a) => !existingIds.has(a.id)).map((a) => a.id);
40
+ }
41
+ /**
42
+ * Install shipped actions into actions.yaml, skipping any id that already
43
+ * exists. Returns the ids actually installed.
44
+ */
45
+ export function installShippedActions(actionsPath) {
46
+ const pending = new Set(pendingShippedActions(actionsPath));
38
47
  const installed = [];
39
48
  for (const action of SHIPPED_ACTIONS) {
40
- if (existingIds.has(action.id))
49
+ if (!pending.has(action.id))
41
50
  continue;
42
51
  appendAction(actionsPath, action);
43
52
  installed.push(action.id);
@@ -1 +1 @@
1
- {"version":3,"file":"shipped-actions.js","sourceRoot":"","sources":["../../src/events/shipped-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAuB,MAAM,2BAA2B,CAAC;AAG9E,0CAA0C;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAqB;IAC/C;QACE,EAAE,EAAE,2BAA2B;QAC/B,KAAK,EAAE,sBAAsB;QAC7B,GAAG,EAAE,eAAe;QACpB,QAAQ,EAAE,KAAK;QACf,WAAW,EACT,0HAA0H;KAC7H;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,WAAmB;IACvD,IAAI,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,IAAI,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAkB,CAAC;YAC7E,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClE,CAAC;QAAC,MAAM,CAAC;YACP,oEAAoE;YACpE,O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CAAC,CAAC,CAAC;QAClE,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IACD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAChF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,WAAmB;IACvD,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5D,MAAM,SAAS,GAAa,EAAE,CAAC;IAC/B,KAAK,MAAM,MAAM,IAAI,eAAe,EAAE,CAAC;QACrC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YAAE,SAAS;QACtC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAClC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "AI Development Lifecycle Framework — structured lifecycle guidance for AI coding agents across platforms",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",
@@ -24,7 +24,7 @@
24
24
  "commander": "15.0.0",
25
25
  "picomatch": "4.0.5",
26
26
  "yaml": "2.9.0",
27
- "@rasensio/aidlc-content": "1.7.0"
27
+ "@rasensio/aidlc-content": "1.8.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "22.15.32",