@codyswann/lisa 1.0.0 → 1.0.5

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 (280) hide show
  1. package/README.md +244 -36
  2. package/all/copy-overwrite/.claude/README.md +1 -3
  3. package/all/copy-overwrite/.claude/REFERENCE.md +519 -0
  4. package/all/copy-overwrite/.claude/agents/skill-evaluator.md +7 -7
  5. package/all/copy-overwrite/.claude/agents/test-coverage-agent.md +17 -0
  6. package/all/copy-overwrite/.claude/commands/git/commit.md +9 -5
  7. package/all/copy-overwrite/.claude/commands/git/submit-pr.md +1 -1
  8. package/all/copy-overwrite/.claude/commands/lisa/review-implementation.md +209 -0
  9. package/all/copy-overwrite/.claude/commands/project/add-test-coverage.md +58 -0
  10. package/all/copy-overwrite/.claude/commands/project/archive.md +1 -1
  11. package/all/copy-overwrite/.claude/commands/project/complete-task.md +53 -1
  12. package/all/copy-overwrite/.claude/commands/project/debrief.md +12 -23
  13. package/all/copy-overwrite/.claude/commands/project/execute.md +33 -77
  14. package/all/copy-overwrite/.claude/commands/project/fix-linter-error.md +87 -0
  15. package/all/copy-overwrite/.claude/commands/project/implement.md +24 -28
  16. package/all/copy-overwrite/.claude/commands/project/lower-code-complexity.md +30 -55
  17. package/all/copy-overwrite/.claude/commands/project/plan.md +87 -242
  18. package/all/copy-overwrite/.claude/commands/project/reduce-max-lines-per-function.md +76 -0
  19. package/all/copy-overwrite/.claude/commands/project/reduce-max-lines.md +75 -0
  20. package/all/copy-overwrite/.claude/commands/project/research.md +86 -188
  21. package/all/copy-overwrite/.claude/commands/project/review.md +19 -38
  22. package/all/copy-overwrite/.claude/commands/project/setup.md +1 -1
  23. package/all/copy-overwrite/.claude/commands/project/verify.md +62 -25
  24. package/all/copy-overwrite/.claude/commands/pull-request/review.md +25 -7
  25. package/all/copy-overwrite/.claude/commands/tasks/load.md +63 -0
  26. package/all/copy-overwrite/.claude/commands/tasks/sync.md +84 -0
  27. package/all/copy-overwrite/.claude/hooks/README.md +75 -0
  28. package/all/copy-overwrite/.claude/hooks/check-tired-boss.sh +61 -0
  29. package/all/copy-overwrite/.claude/hooks/debug-hook.sh +47 -0
  30. package/all/copy-overwrite/.claude/hooks/notify-ntfy.sh +2 -0
  31. package/all/copy-overwrite/.claude/hooks/sync-tasks.sh +95 -0
  32. package/all/copy-overwrite/.claude/{skills/coding-philosophy/SKILL.md → rules/coding-philosophy.md} +93 -70
  33. package/all/copy-overwrite/.claude/settings.json +35 -14
  34. package/all/copy-overwrite/.claude/skills/prompt-complexity-scorer/SKILL.md +41 -9
  35. package/all/copy-overwrite/.claude/skills/skill-creator/scripts/init_skill.py +2 -0
  36. package/all/copy-overwrite/.claude/skills/skill-creator/scripts/package_skill.py +2 -0
  37. package/all/copy-overwrite/.claude/skills/skill-creator/scripts/quick_validate.py +2 -0
  38. package/all/copy-overwrite/.safety-net.json +25 -0
  39. package/all/copy-overwrite/CLAUDE.md +8 -30
  40. package/all/copy-overwrite/HUMAN.md +517 -17
  41. package/all/create-only/.claude/rules/PROJECT_RULES.md +9 -0
  42. package/all/create-only/scripts/setup-deploy-key.sh +190 -0
  43. package/all/deletions.json +5 -0
  44. package/cdk/copy-overwrite/.github/workflows/ci.yml +142 -0
  45. package/cdk/copy-overwrite/.github/workflows/deploy.yml +59 -0
  46. package/cdk/copy-overwrite/eslint.cdk.ts +175 -0
  47. package/cdk/copy-overwrite/eslint.config.ts +51 -0
  48. package/cdk/copy-overwrite/eslint.slow.config.ts +80 -0
  49. package/cdk/copy-overwrite/knip.json +53 -0
  50. package/cdk/copy-overwrite/tsconfig.eslint.json +11 -0
  51. package/cdk/merge/package.json +17 -1
  52. package/dist/cli/index.d.ts +3 -2
  53. package/dist/cli/index.d.ts.map +1 -1
  54. package/dist/cli/index.js +83 -64
  55. package/dist/cli/index.js.map +1 -1
  56. package/dist/cli/prompts.d.ts +17 -3
  57. package/dist/cli/prompts.d.ts.map +1 -1
  58. package/dist/cli/prompts.js +52 -16
  59. package/dist/cli/prompts.js.map +1 -1
  60. package/dist/core/config.d.ts +13 -4
  61. package/dist/core/config.d.ts.map +1 -1
  62. package/dist/core/config.js +17 -9
  63. package/dist/core/config.js.map +1 -1
  64. package/dist/core/git-service.d.ts +40 -0
  65. package/dist/core/git-service.d.ts.map +1 -0
  66. package/dist/core/git-service.js +52 -0
  67. package/dist/core/git-service.js.map +1 -0
  68. package/dist/core/index.d.ts +3 -3
  69. package/dist/core/index.js +3 -3
  70. package/dist/core/lisa.d.ts +124 -7
  71. package/dist/core/lisa.d.ts.map +1 -1
  72. package/dist/core/lisa.js +423 -221
  73. package/dist/core/lisa.js.map +1 -1
  74. package/dist/core/manifest.d.ts +5 -1
  75. package/dist/core/manifest.d.ts.map +1 -1
  76. package/dist/core/manifest.js +22 -16
  77. package/dist/core/manifest.js.map +1 -1
  78. package/dist/detection/detector.interface.d.ts +1 -1
  79. package/dist/detection/detectors/cdk.d.ts +6 -1
  80. package/dist/detection/detectors/cdk.d.ts.map +1 -1
  81. package/dist/detection/detectors/cdk.js +16 -8
  82. package/dist/detection/detectors/cdk.js.map +1 -1
  83. package/dist/detection/detectors/expo.d.ts +6 -1
  84. package/dist/detection/detectors/expo.d.ts.map +1 -1
  85. package/dist/detection/detectors/expo.js +13 -8
  86. package/dist/detection/detectors/expo.js.map +1 -1
  87. package/dist/detection/detectors/nestjs.d.ts +7 -2
  88. package/dist/detection/detectors/nestjs.d.ts.map +1 -1
  89. package/dist/detection/detectors/nestjs.js +17 -9
  90. package/dist/detection/detectors/nestjs.js.map +1 -1
  91. package/dist/detection/detectors/npm-package.d.ts +6 -1
  92. package/dist/detection/detectors/npm-package.d.ts.map +1 -1
  93. package/dist/detection/detectors/npm-package.js +9 -4
  94. package/dist/detection/detectors/npm-package.js.map +1 -1
  95. package/dist/detection/detectors/typescript.d.ts +6 -1
  96. package/dist/detection/detectors/typescript.d.ts.map +1 -1
  97. package/dist/detection/detectors/typescript.js +12 -7
  98. package/dist/detection/detectors/typescript.js.map +1 -1
  99. package/dist/detection/index.d.ts +13 -3
  100. package/dist/detection/index.d.ts.map +1 -1
  101. package/dist/detection/index.js +17 -7
  102. package/dist/detection/index.js.map +1 -1
  103. package/dist/errors/index.d.ts +66 -2
  104. package/dist/errors/index.d.ts.map +1 -1
  105. package/dist/errors/index.js +89 -17
  106. package/dist/errors/index.js.map +1 -1
  107. package/dist/index.js +3 -3
  108. package/dist/index.js.map +1 -1
  109. package/dist/logging/console-logger.d.ts +21 -1
  110. package/dist/logging/console-logger.d.ts.map +1 -1
  111. package/dist/logging/console-logger.js +26 -6
  112. package/dist/logging/console-logger.js.map +1 -1
  113. package/dist/logging/index.d.ts +3 -3
  114. package/dist/logging/index.js +2 -2
  115. package/dist/logging/logger.interface.d.ts +1 -1
  116. package/dist/logging/silent-logger.d.ts +21 -1
  117. package/dist/logging/silent-logger.d.ts.map +1 -1
  118. package/dist/logging/silent-logger.js +20 -0
  119. package/dist/logging/silent-logger.js.map +1 -1
  120. package/dist/strategies/copy-contents.d.ts +47 -6
  121. package/dist/strategies/copy-contents.d.ts.map +1 -1
  122. package/dist/strategies/copy-contents.js +99 -49
  123. package/dist/strategies/copy-contents.js.map +1 -1
  124. package/dist/strategies/copy-overwrite.d.ts +10 -2
  125. package/dist/strategies/copy-overwrite.d.ts.map +1 -1
  126. package/dist/strategies/copy-overwrite.js +17 -9
  127. package/dist/strategies/copy-overwrite.js.map +1 -1
  128. package/dist/strategies/create-only.d.ts +10 -2
  129. package/dist/strategies/create-only.d.ts.map +1 -1
  130. package/dist/strategies/create-only.js +14 -6
  131. package/dist/strategies/create-only.js.map +1 -1
  132. package/dist/strategies/index.d.ts +17 -7
  133. package/dist/strategies/index.d.ts.map +1 -1
  134. package/dist/strategies/index.js +19 -9
  135. package/dist/strategies/index.js.map +1 -1
  136. package/dist/strategies/merge.d.ts +10 -2
  137. package/dist/strategies/merge.d.ts.map +1 -1
  138. package/dist/strategies/merge.js +21 -21
  139. package/dist/strategies/merge.js.map +1 -1
  140. package/dist/strategies/strategy.interface.d.ts +1 -1
  141. package/dist/strategies/strategy.interface.d.ts.map +1 -1
  142. package/dist/transaction/backup.d.ts +15 -1
  143. package/dist/transaction/backup.d.ts.map +1 -1
  144. package/dist/transaction/backup.js +47 -12
  145. package/dist/transaction/backup.js.map +1 -1
  146. package/dist/transaction/index.d.ts +3 -3
  147. package/dist/transaction/index.js +2 -2
  148. package/dist/transaction/transaction.d.ts +25 -2
  149. package/dist/transaction/transaction.d.ts.map +1 -1
  150. package/dist/transaction/transaction.js +25 -2
  151. package/dist/transaction/transaction.js.map +1 -1
  152. package/dist/utils/file-operations.d.ts +21 -0
  153. package/dist/utils/file-operations.d.ts.map +1 -1
  154. package/dist/utils/file-operations.js +48 -12
  155. package/dist/utils/file-operations.js.map +1 -1
  156. package/dist/utils/index.d.ts +3 -3
  157. package/dist/utils/index.js +3 -3
  158. package/dist/utils/json-utils.d.ts +12 -0
  159. package/dist/utils/json-utils.d.ts.map +1 -1
  160. package/dist/utils/json-utils.js +17 -5
  161. package/dist/utils/json-utils.js.map +1 -1
  162. package/dist/utils/path-utils.d.ts +11 -0
  163. package/dist/utils/path-utils.d.ts.map +1 -1
  164. package/dist/utils/path-utils.js +12 -1
  165. package/dist/utils/path-utils.js.map +1 -1
  166. package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +5 -0
  167. package/eslint-plugin-code-organization/index.js +5 -0
  168. package/eslint-plugin-code-organization/rules/enforce-statement-order.js +5 -0
  169. package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/scripts/validate_atomic_structure.py +2 -0
  170. package/expo/copy-overwrite/.claude/skills/container-view-pattern/scripts/create_component.py +2 -0
  171. package/expo/copy-overwrite/.claude/skills/container-view-pattern/scripts/validate_component.py +2 -0
  172. package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/scripts/validate_cross_platform.py +2 -0
  173. package/expo/copy-overwrite/.claude/skills/directory-structure/scripts/validate_structure.py +2 -0
  174. package/expo/copy-overwrite/.claude/skills/expo-router-best-practices/scripts/generate-route.py +2 -0
  175. package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/scripts/validate_styling.py +2 -41
  176. package/{typescript → expo}/copy-overwrite/.github/workflows/build.yml +3 -0
  177. package/expo/copy-overwrite/.github/workflows/ci.yml +36 -0
  178. package/{typescript → expo}/copy-overwrite/.github/workflows/deploy.yml +22 -26
  179. package/{typescript → expo}/copy-overwrite/.github/workflows/lighthouse.yml +4 -1
  180. package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/plugin-index.test.js +5 -0
  181. package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/require-memo-in-view.test.js +5 -0
  182. package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/single-component-per-file.test.js +5 -0
  183. package/expo/copy-overwrite/eslint-plugin-component-structure/index.js +5 -0
  184. package/expo/copy-overwrite/eslint-plugin-component-structure/rules/enforce-component-structure.js +5 -0
  185. package/expo/copy-overwrite/eslint-plugin-component-structure/rules/no-return-in-view.js +6 -1
  186. package/expo/copy-overwrite/eslint-plugin-component-structure/rules/require-memo-in-view.js +5 -0
  187. package/expo/copy-overwrite/eslint-plugin-component-structure/rules/single-component-per-file.js +5 -0
  188. package/expo/copy-overwrite/eslint-plugin-ui-standards/README.md +0 -68
  189. package/expo/copy-overwrite/eslint-plugin-ui-standards/index.js +5 -3
  190. package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-classname-outside-ui.js +5 -0
  191. package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-direct-rn-imports.js +5 -0
  192. package/expo/copy-overwrite/eslint.config.ts +53 -0
  193. package/expo/copy-overwrite/eslint.expo.ts +330 -0
  194. package/expo/copy-overwrite/eslint.slow.config.ts +86 -0
  195. package/expo/copy-overwrite/knip.json +132 -0
  196. package/expo/copy-overwrite/lighthouserc.js +27 -0
  197. package/expo/copy-overwrite/tsconfig.eslint.json +25 -0
  198. package/expo/create-only/lighthouserc-config.json +6 -1
  199. package/expo/merge/package.json +16 -3
  200. package/nestjs/copy-overwrite/.claude/skills/nestjs-rules/SKILL.md +1 -1
  201. package/{typescript → nestjs}/copy-overwrite/.github/k6/README.md +2 -2
  202. package/{typescript → nestjs}/copy-overwrite/.github/k6/examples/customer-deploy-integration.yml +3 -0
  203. package/{typescript → nestjs}/copy-overwrite/.github/k6/examples/data-driven-test.js +5 -0
  204. package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/load.js +6 -2
  205. package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/smoke.js +5 -0
  206. package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/soak.js +5 -0
  207. package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/spike.js +5 -0
  208. package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/stress.js +5 -0
  209. package/{typescript → nestjs}/copy-overwrite/.github/k6/scripts/api-test.js +5 -0
  210. package/{typescript → nestjs}/copy-overwrite/.github/k6/scripts/default-test.js +5 -0
  211. package/nestjs/copy-overwrite/.github/workflows/ci.yml +29 -0
  212. package/nestjs/copy-overwrite/.github/workflows/deploy.yml +291 -0
  213. package/{typescript → nestjs}/copy-overwrite/.github/workflows/load-test.yml +3 -0
  214. package/nestjs/copy-overwrite/eslint.config.ts +53 -0
  215. package/nestjs/copy-overwrite/eslint.nestjs.ts +178 -0
  216. package/nestjs/merge/package.json +11 -3
  217. package/package.json +34 -40
  218. package/typescript/copy-contents/.husky/pre-commit +1 -1
  219. package/typescript/copy-contents/.husky/pre-push +99 -118
  220. package/typescript/copy-overwrite/.claude/hooks/format-on-edit.sh +2 -0
  221. package/typescript/copy-overwrite/.claude/hooks/install_pkgs.sh +3 -11
  222. package/typescript/copy-overwrite/.claude/hooks/lint-on-edit.sh +2 -0
  223. package/typescript/copy-overwrite/.claude/hooks/sg-scan-on-edit.sh +68 -0
  224. package/typescript/copy-overwrite/.claude/settings.json +79 -0
  225. package/typescript/copy-overwrite/.claude/skills/jsdoc-best-practices/SKILL.md +44 -0
  226. package/typescript/copy-overwrite/.github/README.md +49 -1
  227. package/typescript/copy-overwrite/.github/dependabot.yml +3 -0
  228. package/typescript/copy-overwrite/.github/workflows/ci.yml +7 -29
  229. package/typescript/copy-overwrite/.github/workflows/claude.yml +3 -0
  230. package/typescript/copy-overwrite/.github/workflows/create-github-issue-on-failure.yml +6 -4
  231. package/typescript/copy-overwrite/.github/workflows/create-issue-on-failure.yml +176 -0
  232. package/typescript/copy-overwrite/.github/workflows/create-jira-issue-on-failure.yml +3 -1
  233. package/typescript/copy-overwrite/.github/workflows/create-sentry-issue-on-failure.yml +3 -1
  234. package/typescript/copy-overwrite/.github/workflows/lint-slow.yml +40 -0
  235. package/typescript/copy-overwrite/.github/workflows/quality.yml +151 -38
  236. package/typescript/copy-overwrite/.github/workflows/release.yml +3 -0
  237. package/typescript/copy-overwrite/.gitleaksignore +3 -0
  238. package/typescript/copy-overwrite/.lintstagedrc.json +6 -0
  239. package/typescript/copy-overwrite/.prettierignore +2 -1
  240. package/typescript/copy-overwrite/.yamllint +2 -0
  241. package/typescript/copy-overwrite/ast-grep/rule-tests/.gitkeep +3 -0
  242. package/typescript/copy-overwrite/ast-grep/rules/.gitkeep +3 -0
  243. package/typescript/copy-overwrite/ast-grep/utils/.gitkeep +3 -0
  244. package/typescript/copy-overwrite/{commitlint.config.js → commitlint.config.cjs} +5 -0
  245. package/typescript/copy-overwrite/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +5 -0
  246. package/typescript/copy-overwrite/eslint-plugin-code-organization/index.js +5 -0
  247. package/typescript/copy-overwrite/eslint-plugin-code-organization/rules/enforce-statement-order.js +5 -0
  248. package/typescript/copy-overwrite/eslint.base.ts +430 -0
  249. package/typescript/copy-overwrite/eslint.config.ts +52 -0
  250. package/typescript/copy-overwrite/eslint.ignore.config.json +19 -2
  251. package/typescript/copy-overwrite/eslint.slow.config.ts +69 -0
  252. package/typescript/copy-overwrite/eslint.typescript.ts +142 -0
  253. package/typescript/copy-overwrite/knip.json +64 -0
  254. package/typescript/copy-overwrite/sgconfig.yml +11 -0
  255. package/typescript/copy-overwrite/tsconfig.eslint.json +9 -0
  256. package/typescript/create-only/eslint.config.local.ts +24 -0
  257. package/typescript/{copy-overwrite/eslint.thresholds.config.json → create-only/eslint.thresholds.json} +1 -1
  258. package/typescript/github-rulesets/base.json +2 -75
  259. package/typescript/merge/.claude/settings.json +160 -0
  260. package/typescript/merge/package.json +35 -34
  261. package/all/copy-overwrite/.claude/commands/rules/format-md.md +0 -72
  262. package/all/copy-overwrite/.claude/skills/coding-philosophy/references/function-structure.md +0 -416
  263. package/all/copy-overwrite/.claude/skills/coding-philosophy/references/immutable-patterns.md +0 -316
  264. package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-inline-styles.js +0 -73
  265. package/expo/copy-overwrite/eslint.config.mjs +0 -560
  266. package/lisa.sh +0 -35
  267. package/typescript/copy-overwrite/eslint.config.mjs +0 -390
  268. /package/{all/create-only/PROJECT_RULES.md → cdk/copy-overwrite/.github/workflows/.keep} +0 -0
  269. /package/{typescript → nestjs}/copy-overwrite/.github/k6/BROWSER_TESTING_NOTE.md +0 -0
  270. /package/{typescript → nestjs}/copy-overwrite/.github/k6/INTEGRATION_GUIDE.md +0 -0
  271. /package/{typescript → nestjs}/copy-overwrite/.github/k6/SCENARIO_SELECTION_GUIDE.md +0 -0
  272. /package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/load.json +0 -0
  273. /package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/smoke.json +0 -0
  274. /package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/soak.json +0 -0
  275. /package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/spike.json +0 -0
  276. /package/{typescript → nestjs}/copy-overwrite/.github/k6/scenarios/stress.json +0 -0
  277. /package/{typescript → nestjs}/copy-overwrite/.github/k6/thresholds/normal.json +0 -0
  278. /package/{typescript → nestjs}/copy-overwrite/.github/k6/thresholds/relaxed.json +0 -0
  279. /package/{typescript → nestjs}/copy-overwrite/.github/k6/thresholds/strict.json +0 -0
  280. /package/{typescript → nestjs}/copy-overwrite/.github/workflows/k6-load-test-README.md +0 -0
@@ -1,24 +1,34 @@
1
- import type { ProjectType } from '../core/config.js';
2
- import type { IProjectTypeDetector } from './detector.interface.js';
3
- export type { IProjectTypeDetector } from './detector.interface.js';
1
+ import type { ProjectType } from "../core/config.js";
2
+ import type { IProjectTypeDetector } from "./detector.interface.js";
3
+ export type { IProjectTypeDetector } from "./detector.interface.js";
4
4
  /**
5
5
  * Registry for project type detectors
6
6
  */
7
7
  export declare class DetectorRegistry {
8
8
  private readonly detectors;
9
+ /**
10
+ * Initialize detector registry with provided or default detectors
11
+ * @param detectors - Optional array of detectors (uses defaults if omitted)
12
+ */
9
13
  constructor(detectors?: readonly IProjectTypeDetector[]);
10
14
  /**
11
15
  * Detect all project types in the given directory
16
+ * @param destDir - Project directory to scan
17
+ * @returns Array of detected project types
12
18
  */
13
19
  detectAll(destDir: string): Promise<ProjectType[]>;
14
20
  /**
15
21
  * Expand detected types to include parent types and order correctly
22
+ *
16
23
  * Child types (expo, nestjs, cdk) automatically include their parent (typescript)
24
+ * @param detectedTypes - Project types to expand
25
+ * @returns Ordered array with parent types included
17
26
  */
18
27
  expandAndOrderTypes(detectedTypes: readonly ProjectType[]): ProjectType[];
19
28
  }
20
29
  /**
21
30
  * Create default detector registry
31
+ * @returns New DetectorRegistry instance with all default detectors
22
32
  */
23
33
  export declare function createDetectorRegistry(): DetectorRegistry;
24
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/detection/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAOpE,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkC;gBAEhD,SAAS,CAAC,EAAE,SAAS,oBAAoB,EAAE;IAUvD;;OAEG;IACG,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAYxD;;;OAGG;IACH,mBAAmB,CAAC,aAAa,EAAE,SAAS,WAAW,EAAE,GAAG,WAAW,EAAE;CAgB1E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,gBAAgB,CAEzD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/detection/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAOpE,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkC;IAE5D;;;OAGG;gBACS,SAAS,CAAC,EAAE,SAAS,oBAAoB,EAAE;IAUvD;;;;OAIG;IACG,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAYxD;;;;;;OAMG;IACH,mBAAmB,CAAC,aAAa,EAAE,SAAS,WAAW,EAAE,GAAG,WAAW,EAAE;CAgB1E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,gBAAgB,CAEzD"}
@@ -1,14 +1,18 @@
1
- import { PROJECT_TYPE_HIERARCHY, PROJECT_TYPE_ORDER } from '../core/config.js';
2
- import { TypeScriptDetector } from './detectors/typescript.js';
3
- import { ExpoDetector } from './detectors/expo.js';
4
- import { NestJSDetector } from './detectors/nestjs.js';
5
- import { CDKDetector } from './detectors/cdk.js';
6
- import { NpmPackageDetector } from './detectors/npm-package.js';
1
+ import { PROJECT_TYPE_HIERARCHY, PROJECT_TYPE_ORDER } from "../core/config.js";
2
+ import { TypeScriptDetector } from "./detectors/typescript.js";
3
+ import { ExpoDetector } from "./detectors/expo.js";
4
+ import { NestJSDetector } from "./detectors/nestjs.js";
5
+ import { CDKDetector } from "./detectors/cdk.js";
6
+ import { NpmPackageDetector } from "./detectors/npm-package.js";
7
7
  /**
8
8
  * Registry for project type detectors
9
9
  */
10
10
  export class DetectorRegistry {
11
11
  detectors;
12
+ /**
13
+ * Initialize detector registry with provided or default detectors
14
+ * @param detectors - Optional array of detectors (uses defaults if omitted)
15
+ */
12
16
  constructor(detectors) {
13
17
  this.detectors = detectors ?? [
14
18
  new TypeScriptDetector(),
@@ -20,6 +24,8 @@ export class DetectorRegistry {
20
24
  }
21
25
  /**
22
26
  * Detect all project types in the given directory
27
+ * @param destDir - Project directory to scan
28
+ * @returns Array of detected project types
23
29
  */
24
30
  async detectAll(destDir) {
25
31
  const detectedTypes = [];
@@ -32,7 +38,10 @@ export class DetectorRegistry {
32
38
  }
33
39
  /**
34
40
  * Expand detected types to include parent types and order correctly
41
+ *
35
42
  * Child types (expo, nestjs, cdk) automatically include their parent (typescript)
43
+ * @param detectedTypes - Project types to expand
44
+ * @returns Ordered array with parent types included
36
45
  */
37
46
  expandAndOrderTypes(detectedTypes) {
38
47
  const allTypes = new Set();
@@ -45,11 +54,12 @@ export class DetectorRegistry {
45
54
  }
46
55
  }
47
56
  // Return in canonical order (typescript first, then others)
48
- return PROJECT_TYPE_ORDER.filter((type) => allTypes.has(type));
57
+ return PROJECT_TYPE_ORDER.filter(type => allTypes.has(type));
49
58
  }
50
59
  }
51
60
  /**
52
61
  * Create default detector registry
62
+ * @returns New DetectorRegistry instance with all default detectors
53
63
  */
54
64
  export function createDetectorRegistry() {
55
65
  return new DetectorRegistry();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/detection/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,kB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AAC;YACpC,CAAC;QACH,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CAAC,aAAqC;QACvD,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAe,CAAC;QAExC,2CAA2C;QAC3C,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;YACjC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAEnB,MAAM,MAAM,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;YAC5C,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACzB,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;QAED,4DAA4D;QAC5D,OAAO,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,IAAI,gBAAgB,EAAE,CAAC;AAChC,CAAC"}
@@ -3,6 +3,11 @@
3
3
  */
4
4
  export declare class LisaError extends Error {
5
5
  readonly code: string;
6
+ /**
7
+ * Base Lisa error with error code
8
+ * @param message - Error message description
9
+ * @param code - Machine-readable error code
10
+ */
6
11
  constructor(message: string, code: string);
7
12
  }
8
13
  /**
@@ -10,6 +15,10 @@ export declare class LisaError extends Error {
10
15
  */
11
16
  export declare class DestinationNotFoundError extends LisaError {
12
17
  readonly path: string;
18
+ /**
19
+ * Thrown when destination directory path does not exist
20
+ * @param path - Path that was not found
21
+ */
13
22
  constructor(path: string);
14
23
  }
15
24
  /**
@@ -17,6 +26,10 @@ export declare class DestinationNotFoundError extends LisaError {
17
26
  */
18
27
  export declare class DestinationNotDirectoryError extends LisaError {
19
28
  readonly path: string;
29
+ /**
30
+ * Thrown when destination path exists but is not a directory
31
+ * @param path - Path that is not a directory
32
+ */
20
33
  constructor(path: string);
21
34
  }
22
35
  /**
@@ -25,6 +38,11 @@ export declare class DestinationNotDirectoryError extends LisaError {
25
38
  export declare class JsonParseError extends LisaError {
26
39
  readonly filePath: string;
27
40
  readonly originalError: Error;
41
+ /**
42
+ * Thrown when JSON file parsing fails
43
+ * @param filePath - Path to the JSON file that failed to parse
44
+ * @param originalError - Underlying parsing error
45
+ */
28
46
  constructor(filePath: string, originalError: Error);
29
47
  }
30
48
  /**
@@ -33,6 +51,11 @@ export declare class JsonParseError extends LisaError {
33
51
  export declare class JsonMergeError extends LisaError {
34
52
  readonly filePath: string;
35
53
  readonly reason: string;
54
+ /**
55
+ * Thrown when JSON merge operation fails
56
+ * @param filePath - Path to the JSON file that failed to merge
57
+ * @param reason - Description of why the merge failed
58
+ */
36
59
  constructor(filePath: string, reason: string);
37
60
  }
38
61
  /**
@@ -42,21 +65,36 @@ export declare class FileOperationError extends LisaError {
42
65
  readonly operation: string;
43
66
  readonly filePath: string;
44
67
  readonly originalError: Error;
68
+ /**
69
+ * Thrown when a file operation (read/write/copy) fails
70
+ * @param operation - Name of the operation that failed
71
+ * @param filePath - Path to the file involved in the operation
72
+ * @param originalError - Underlying file system error
73
+ */
45
74
  constructor(operation: string, filePath: string, originalError: Error);
46
75
  }
47
76
  /**
48
77
  * Error thrown when backup/restore fails
49
78
  */
50
79
  export declare class BackupError extends LisaError {
51
- readonly operation: 'backup' | 'restore' | 'cleanup';
80
+ readonly operation: "backup" | "restore" | "cleanup";
52
81
  readonly reason: string;
53
- constructor(operation: 'backup' | 'restore' | 'cleanup', reason: string);
82
+ /**
83
+ * Thrown when backup, restore, or cleanup operation fails
84
+ * @param operation - Type of backup operation that failed
85
+ * @param reason - Description of why the operation failed
86
+ */
87
+ constructor(operation: "backup" | "restore" | "cleanup", reason: string);
54
88
  }
55
89
  /**
56
90
  * Error thrown when rollback fails
57
91
  */
58
92
  export declare class RollbackError extends LisaError {
59
93
  readonly reason: string;
94
+ /**
95
+ * Thrown when transaction rollback fails
96
+ * @param reason - Description of why rollback failed
97
+ */
60
98
  constructor(reason: string);
61
99
  }
62
100
  /**
@@ -64,6 +102,32 @@ export declare class RollbackError extends LisaError {
64
102
  */
65
103
  export declare class DependencyMissingError extends LisaError {
66
104
  readonly dependencies: readonly string[];
105
+ /**
106
+ * Thrown when required dependencies are not available
107
+ * @param dependencies - List of missing dependency names
108
+ */
67
109
  constructor(dependencies: readonly string[]);
68
110
  }
111
+ /**
112
+ * Error thrown when user aborts the operation
113
+ */
114
+ export declare class UserAbortedError extends LisaError {
115
+ readonly reason: string;
116
+ /**
117
+ * Thrown when user cancels or aborts the operation
118
+ * @param reason - Description of why the operation was aborted
119
+ */
120
+ constructor(reason?: string);
121
+ }
122
+ /**
123
+ * Error thrown when git working directory has uncommitted changes
124
+ */
125
+ export declare class DirtyGitError extends LisaError {
126
+ readonly status: string;
127
+ /**
128
+ * Thrown when git status shows uncommitted changes
129
+ * @param status - Git status output showing the changes
130
+ */
131
+ constructor(status: string);
132
+ }
69
133
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;aAGhB,IAAI,EAAE,MAAM;gBAD5B,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,MAAM;CAK/B;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,SAAS;aACzB,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM;CAIzC;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;aAC7B,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM;CAIzC;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,SAAS;aAEzB,QAAQ,EAAE,MAAM;aAChB,aAAa,EAAE,KAAK;gBADpB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,KAAK;CAKvC;AAED;;GAEG;AACH,qBAAa,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EAAE,MAAM;CAI3C"}
@@ -3,10 +3,15 @@
3
3
  */
4
4
  export class LisaError extends Error {
5
5
  code;
6
+ /**
7
+ * Base Lisa error with error code
8
+ * @param message - Error message description
9
+ * @param code - Machine-readable error code
10
+ */
6
11
  constructor(message, code) {
7
12
  super(message);
8
13
  this.code = code;
9
- this.name = 'LisaError';
14
+ this.name = "LisaError";
10
15
  }
11
16
  }
12
17
  /**
@@ -14,10 +19,14 @@ export class LisaError extends Error {
14
19
  */
15
20
  export class DestinationNotFoundError extends LisaError {
16
21
  path;
22
+ /**
23
+ * Thrown when destination directory path does not exist
24
+ * @param path - Path that was not found
25
+ */
17
26
  constructor(path) {
18
- super(`Destination path does not exist: ${path}`, 'DEST_NOT_FOUND');
27
+ super(`Destination path does not exist: ${path}`, "DEST_NOT_FOUND");
19
28
  this.path = path;
20
- this.name = 'DestinationNotFoundError';
29
+ this.name = "DestinationNotFoundError";
21
30
  }
22
31
  }
23
32
  /**
@@ -25,10 +34,14 @@ export class DestinationNotFoundError extends LisaError {
25
34
  */
26
35
  export class DestinationNotDirectoryError extends LisaError {
27
36
  path;
37
+ /**
38
+ * Thrown when destination path exists but is not a directory
39
+ * @param path - Path that is not a directory
40
+ */
28
41
  constructor(path) {
29
- super(`Destination is not a directory: ${path}`, 'DEST_NOT_DIR');
42
+ super(`Destination is not a directory: ${path}`, "DEST_NOT_DIR");
30
43
  this.path = path;
31
- this.name = 'DestinationNotDirectoryError';
44
+ this.name = "DestinationNotDirectoryError";
32
45
  }
33
46
  }
34
47
  /**
@@ -37,11 +50,16 @@ export class DestinationNotDirectoryError extends LisaError {
37
50
  export class JsonParseError extends LisaError {
38
51
  filePath;
39
52
  originalError;
53
+ /**
54
+ * Thrown when JSON file parsing fails
55
+ * @param filePath - Path to the JSON file that failed to parse
56
+ * @param originalError - Underlying parsing error
57
+ */
40
58
  constructor(filePath, originalError) {
41
- super(`Failed to parse JSON file: ${filePath}`, 'JSON_PARSE_ERROR');
59
+ super(`Failed to parse JSON file: ${filePath}`, "JSON_PARSE_ERROR");
42
60
  this.filePath = filePath;
43
61
  this.originalError = originalError;
44
- this.name = 'JsonParseError';
62
+ this.name = "JsonParseError";
45
63
  }
46
64
  }
47
65
  /**
@@ -50,11 +68,16 @@ export class JsonParseError extends LisaError {
50
68
  export class JsonMergeError extends LisaError {
51
69
  filePath;
52
70
  reason;
71
+ /**
72
+ * Thrown when JSON merge operation fails
73
+ * @param filePath - Path to the JSON file that failed to merge
74
+ * @param reason - Description of why the merge failed
75
+ */
53
76
  constructor(filePath, reason) {
54
- super(`Failed to merge JSON: ${filePath} - ${reason}`, 'JSON_MERGE_ERROR');
77
+ super(`Failed to merge JSON: ${filePath} - ${reason}`, "JSON_MERGE_ERROR");
55
78
  this.filePath = filePath;
56
79
  this.reason = reason;
57
- this.name = 'JsonMergeError';
80
+ this.name = "JsonMergeError";
58
81
  }
59
82
  }
60
83
  /**
@@ -64,12 +87,18 @@ export class FileOperationError extends LisaError {
64
87
  operation;
65
88
  filePath;
66
89
  originalError;
90
+ /**
91
+ * Thrown when a file operation (read/write/copy) fails
92
+ * @param operation - Name of the operation that failed
93
+ * @param filePath - Path to the file involved in the operation
94
+ * @param originalError - Underlying file system error
95
+ */
67
96
  constructor(operation, filePath, originalError) {
68
- super(`File operation '${operation}' failed for: ${filePath}`, 'FILE_OP_ERROR');
97
+ super(`File operation '${operation}' failed for: ${filePath}`, "FILE_OP_ERROR");
69
98
  this.operation = operation;
70
99
  this.filePath = filePath;
71
100
  this.originalError = originalError;
72
- this.name = 'FileOperationError';
101
+ this.name = "FileOperationError";
73
102
  }
74
103
  }
75
104
  /**
@@ -78,11 +107,16 @@ export class FileOperationError extends LisaError {
78
107
  export class BackupError extends LisaError {
79
108
  operation;
80
109
  reason;
110
+ /**
111
+ * Thrown when backup, restore, or cleanup operation fails
112
+ * @param operation - Type of backup operation that failed
113
+ * @param reason - Description of why the operation failed
114
+ */
81
115
  constructor(operation, reason) {
82
- super(`Backup ${operation} failed: ${reason}`, 'BACKUP_ERROR');
116
+ super(`Backup ${operation} failed: ${reason}`, "BACKUP_ERROR");
83
117
  this.operation = operation;
84
118
  this.reason = reason;
85
- this.name = 'BackupError';
119
+ this.name = "BackupError";
86
120
  }
87
121
  }
88
122
  /**
@@ -90,10 +124,14 @@ export class BackupError extends LisaError {
90
124
  */
91
125
  export class RollbackError extends LisaError {
92
126
  reason;
127
+ /**
128
+ * Thrown when transaction rollback fails
129
+ * @param reason - Description of why rollback failed
130
+ */
93
131
  constructor(reason) {
94
- super(`Rollback failed: ${reason}`, 'ROLLBACK_ERROR');
132
+ super(`Rollback failed: ${reason}`, "ROLLBACK_ERROR");
95
133
  this.reason = reason;
96
- this.name = 'RollbackError';
134
+ this.name = "RollbackError";
97
135
  }
98
136
  }
99
137
  /**
@@ -101,10 +139,44 @@ export class RollbackError extends LisaError {
101
139
  */
102
140
  export class DependencyMissingError extends LisaError {
103
141
  dependencies;
142
+ /**
143
+ * Thrown when required dependencies are not available
144
+ * @param dependencies - List of missing dependency names
145
+ */
104
146
  constructor(dependencies) {
105
- super(`Missing required dependencies: ${dependencies.join(', ')}`, 'DEP_MISSING');
147
+ super(`Missing required dependencies: ${dependencies.join(", ")}`, "DEP_MISSING");
106
148
  this.dependencies = dependencies;
107
- this.name = 'DependencyMissingError';
149
+ this.name = "DependencyMissingError";
150
+ }
151
+ }
152
+ /**
153
+ * Error thrown when user aborts the operation
154
+ */
155
+ export class UserAbortedError extends LisaError {
156
+ reason;
157
+ /**
158
+ * Thrown when user cancels or aborts the operation
159
+ * @param reason - Description of why the operation was aborted
160
+ */
161
+ constructor(reason = "User aborted the operation") {
162
+ super(reason, "USER_ABORTED");
163
+ this.reason = reason;
164
+ this.name = "UserAbortedError";
165
+ }
166
+ }
167
+ /**
168
+ * Error thrown when git working directory has uncommitted changes
169
+ */
170
+ export class DirtyGitError extends LisaError {
171
+ status;
172
+ /**
173
+ * Thrown when git status shows uncommitted changes
174
+ * @param status - Git status output showing the changes
175
+ */
176
+ constructor(status) {
177
+ super("Working directory has uncommitted changes", "DIRTY_GIT");
178
+ this.status = status;
179
+ this.name = "DirtyGitError";
108
180
  }
109
181
  }
110
182
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;IAGhB;IAFlB,YACE,OAAe,EACC,IAAY;QAE5B,KAAK,CAAC,OAAO,CAAC,CAAC;QAFC,SAAI,GAAJ,IAAI,CAAQ;QAG5B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,SAAS;IACzB;IAA5B,YAA4B,IAAY;QACtC,KAAK,CAAC,oCAAoC,IAAI,EAAE,EAAE,gBAAgB,CAAC,CAAC;QAD1C,SAAI,GAAJ,IAAI,CAAQ;QAEtC,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IACzC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,4BAA6B,SAAQ,SAAS;IAC7B;IAA5B,YAA4B,IAAY;QACtC,KAAK,CAAC,mCAAmC,IAAI,EAAE,EAAE,cAAc,CAAC,CAAC;QADvC,SAAI,GAAJ,IAAI,CAAQ;QAEtC,IAAI,CAAC,IAAI,GAAG,8BAA8B,CAAC;IAC7C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,SAAS;IAEzB;IACA;IAFlB,YACkB,QAAgB,EAChB,aAAoB;QAEpC,KAAK,CAAC,8BAA8B,QAAQ,EAAE,EAAE,kBAAkB,CAAC,CAAC;QAHpD,aAAQ,GAAR,QAAQ,CAAQ;QAChB,kBAAa,GAAb,aAAa,CAAO;QAGpC,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC/B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ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AExC,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IAKvB;IAJ5B;;;OAGG;IACH,YAA4B,YAA+B;QACzD,KAAK,CACH,kCAAkC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAC3D,aAAa,CACd,CAAC;QAJwB,iBAAY,GAAZ,YAAY,CAAmB;QAKzD,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAKjB;IAJ5B;;;OAGG;IACH,YAA4B,SAAiB,4BAA4B;QACvE,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;QADJ,WAAM,GAAN,MAAM,CAAuC;QAEvE,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,SAAS;IAKd;IAJ5B;;;OAGG;IACH,YAA4B,MAAc;QACxC,KAAK,CAAC,2CAA2C,EAAE,WAAW,CAAC,CAAC;QADtC,WAAM,GAAN,MAAM,CAAQ;QAExC,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { createProgram } from './cli/index.js';
2
+ import { createProgram } from "./cli/index.js";
3
3
  const program = createProgram();
4
- program.parseAsync().catch((error) => {
5
- console.error('Error:', error instanceof Error ? error.message : String(error));
4
+ program.parseAsync().catch(error => {
5
+ console.error("Error:", error instanceof Error ? error.message : String(error));
6
6
  process.exit(1);
7
7
  });
8
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;AAChC,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACnC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;AAChC,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACjC,OAAO,CAAC,KAAK,CACX,QAAQ,EACR,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACvD,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -1,12 +1,32 @@
1
- import type { ILogger } from './logger.interface.js';
1
+ import type { ILogger } from "./logger.interface.js";
2
2
  /**
3
3
  * Console logger with colored output
4
4
  */
5
5
  export declare class ConsoleLogger implements ILogger {
6
+ /**
7
+ * Log an info-level message with blue color
8
+ * @param message - Message to log
9
+ */
6
10
  info(message: string): void;
11
+ /**
12
+ * Log a success-level message with green color
13
+ * @param message - Message to log
14
+ */
7
15
  success(message: string): void;
16
+ /**
17
+ * Log a warning-level message with yellow color
18
+ * @param message - Message to log
19
+ */
8
20
  warn(message: string): void;
21
+ /**
22
+ * Log an error-level message with red color
23
+ * @param message - Message to log
24
+ */
9
25
  error(message: string): void;
26
+ /**
27
+ * Log a dry-run-level message with blue color
28
+ * @param message - Message to log
29
+ */
10
30
  dry(message: string): void;
11
31
  }
12
32
  //# sourceMappingURL=console-logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"console-logger.d.ts","sourceRoot":"","sources":["../../src/logging/console-logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC3C,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI9B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5B,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG3B"}
1
+ {"version":3,"file":"console-logger.d.ts","sourceRoot":"","sources":["../../src/logging/console-logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC3C;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI9B;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5B;;;OAGG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG3B"}
@@ -1,22 +1,42 @@
1
- import pc from 'picocolors';
1
+ import pc from "picocolors";
2
2
  /**
3
3
  * Console logger with colored output
4
4
  */
5
5
  export class ConsoleLogger {
6
+ /**
7
+ * Log an info-level message with blue color
8
+ * @param message - Message to log
9
+ */
6
10
  info(message) {
7
- console.log(`${pc.blue('[INFO]')} ${message}`);
11
+ console.log(`${pc.blue("[INFO]")} ${message}`);
8
12
  }
13
+ /**
14
+ * Log a success-level message with green color
15
+ * @param message - Message to log
16
+ */
9
17
  success(message) {
10
- console.log(`${pc.green('[OK]')} ${message}`);
18
+ console.log(`${pc.green("[OK]")} ${message}`);
11
19
  }
20
+ /**
21
+ * Log a warning-level message with yellow color
22
+ * @param message - Message to log
23
+ */
12
24
  warn(message) {
13
- console.log(`${pc.yellow('[WARN]')} ${message}`);
25
+ console.log(`${pc.yellow("[WARN]")} ${message}`);
14
26
  }
27
+ /**
28
+ * Log an error-level message with red color
29
+ * @param message - Message to log
30
+ */
15
31
  error(message) {
16
- console.log(`${pc.red('[ERROR]')} ${message}`);
32
+ console.log(`${pc.red("[ERROR]")} ${message}`);
17
33
  }
34
+ /**
35
+ * Log a dry-run-level message with blue color
36
+ * @param message - Message to log
37
+ */
18
38
  dry(message) {
19
- console.log(`${pc.blue('[DRY-RUN]')} ${message}`);
39
+ console.log(`${pc.blue("[DRY-RUN]")} ${message}`);
20
40
  }
21
41
  }
22
42
  //# sourceMappingURL=console-logger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"console-logger.js","sourceRoot":"","sources":["../../src/logging/console-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB,IAAI,CAAC,OAAe;QAClB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,CAAC,OAAe;QACrB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,CAAC,OAAe;QAClB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,C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IACpD,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- export type { ILogger, LogLevel } from './logger.interface.js';
2
- export { ConsoleLogger } from './console-logger.js';
3
- export { SilentLogger } from './silent-logger.js';
1
+ export type { ILogger, LogLevel } from "./logger.interface.js";
2
+ export { ConsoleLogger } from "./console-logger.js";
3
+ export { SilentLogger } from "./silent-logger.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { ConsoleLogger } from './console-logger.js';
2
- export { SilentLogger } from './silent-logger.js';
1
+ export { ConsoleLogger } from "./console-logger.js";
2
+ export { SilentLogger } from "./silent-logger.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Log levels for Lisa operations
3
3
  */
4
- export type LogLevel = 'info' | 'success' | 'warn' | 'error' | 'dry';
4
+ export type LogLevel = "info" | "success" | "warn" | "error" | "dry";
5
5
  /**
6
6
  * Interface for logging implementations
7
7
  */
@@ -1,12 +1,32 @@
1
- import type { ILogger } from './logger.interface.js';
1
+ import type { ILogger } from "./logger.interface.js";
2
2
  /**
3
3
  * Silent logger that produces no output (for testing)
4
4
  */
5
5
  export declare class SilentLogger implements ILogger {
6
+ /**
7
+ * Silently ignore info-level messages
8
+ * @param _message - Message to ignore
9
+ */
6
10
  info(_message: string): void;
11
+ /**
12
+ * Silently ignore success-level messages
13
+ * @param _message - Message to ignore
14
+ */
7
15
  success(_message: string): void;
16
+ /**
17
+ * Silently ignore warning-level messages
18
+ * @param _message - Message to ignore
19
+ */
8
20
  warn(_message: string): void;
21
+ /**
22
+ * Silently ignore error-level messages
23
+ * @param _message - Message to ignore
24
+ */
9
25
  error(_message: string): void;
26
+ /**
27
+ * Silently ignore dry-run-level messages
28
+ * @param _message - Message to ignore
29
+ */
10
30
  dry(_message: string): void;
11
31
  }
12
32
  //# sourceMappingURL=silent-logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"silent-logger.d.ts","sourceRoot":"","sources":["../../src/logging/silent-logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,qBAAa,YAAa,YAAW,OAAO;IAC1C,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI5B,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI/B,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI5B,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI7B,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAG5B"}
1
+ {"version":3,"file":"silent-logger.d.ts","sourceRoot":"","sources":["../../src/logging/silent-logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,qBAAa,YAAa,YAAW,OAAO;IAC1C;;;OAGG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI5B;;;OAGG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI/B;;;OAGG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI5B;;;OAGG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI7B;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAG5B"}