@aicgen/aicgen 1.0.0-beta.1 → 1.0.0-beta.2

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 (136) hide show
  1. package/.vs/ProjectSettings.json +2 -2
  2. package/.vs/VSWorkspaceState.json +15 -15
  3. package/.vs/aicgen.slnx/v18/DocumentLayout.json +53 -53
  4. package/assets/icon.svg +33 -33
  5. package/bun.lock +0 -43
  6. package/data/architecture/microservices/api-gateway.md +56 -56
  7. package/data/devops/observability.md +73 -73
  8. package/dist/index.js +9299 -9299
  9. package/package.json +2 -2
  10. package/.claude/agents/architecture-reviewer.md +0 -88
  11. package/.claude/agents/guideline-checker.md +0 -73
  12. package/.claude/agents/security-auditor.md +0 -108
  13. package/.claude/guidelines/api-design.md +0 -645
  14. package/.claude/guidelines/architecture.md +0 -2503
  15. package/.claude/guidelines/best-practices.md +0 -618
  16. package/.claude/guidelines/code-style.md +0 -304
  17. package/.claude/guidelines/design-patterns.md +0 -573
  18. package/.claude/guidelines/devops.md +0 -226
  19. package/.claude/guidelines/error-handling.md +0 -413
  20. package/.claude/guidelines/language.md +0 -782
  21. package/.claude/guidelines/performance.md +0 -706
  22. package/.claude/guidelines/security.md +0 -583
  23. package/.claude/guidelines/testing.md +0 -568
  24. package/.claude/settings.json +0 -98
  25. package/.claude/settings.local.json +0 -8
  26. package/.eslintrc.json +0 -28
  27. package/.github/workflows/release.yml +0 -180
  28. package/.github/workflows/test.yml +0 -81
  29. package/CONTRIBUTING.md +0 -821
  30. package/dist/commands/init.d.ts +0 -8
  31. package/dist/commands/init.d.ts.map +0 -1
  32. package/dist/commands/init.js +0 -46
  33. package/dist/commands/init.js.map +0 -1
  34. package/dist/config/profiles.d.ts +0 -4
  35. package/dist/config/profiles.d.ts.map +0 -1
  36. package/dist/config/profiles.js +0 -30
  37. package/dist/config/profiles.js.map +0 -1
  38. package/dist/config/settings.d.ts +0 -7
  39. package/dist/config/settings.d.ts.map +0 -1
  40. package/dist/config/settings.js +0 -7
  41. package/dist/config/settings.js.map +0 -1
  42. package/dist/index.d.ts +0 -3
  43. package/dist/index.d.ts.map +0 -1
  44. package/dist/index.js.map +0 -1
  45. package/dist/models/guideline.d.ts +0 -15
  46. package/dist/models/guideline.d.ts.map +0 -1
  47. package/dist/models/guideline.js +0 -2
  48. package/dist/models/guideline.js.map +0 -1
  49. package/dist/models/preference.d.ts +0 -9
  50. package/dist/models/preference.d.ts.map +0 -1
  51. package/dist/models/preference.js +0 -2
  52. package/dist/models/preference.js.map +0 -1
  53. package/dist/models/profile.d.ts +0 -9
  54. package/dist/models/profile.d.ts.map +0 -1
  55. package/dist/models/profile.js +0 -2
  56. package/dist/models/profile.js.map +0 -1
  57. package/dist/models/project.d.ts +0 -13
  58. package/dist/models/project.d.ts.map +0 -1
  59. package/dist/models/project.js +0 -2
  60. package/dist/models/project.js.map +0 -1
  61. package/dist/services/ai/anthropic.d.ts +0 -7
  62. package/dist/services/ai/anthropic.d.ts.map +0 -1
  63. package/dist/services/ai/anthropic.js +0 -39
  64. package/dist/services/ai/anthropic.js.map +0 -1
  65. package/dist/services/generator.d.ts +0 -2
  66. package/dist/services/generator.d.ts.map +0 -1
  67. package/dist/services/generator.js +0 -4
  68. package/dist/services/generator.js.map +0 -1
  69. package/dist/services/learner.d.ts +0 -2
  70. package/dist/services/learner.d.ts.map +0 -1
  71. package/dist/services/learner.js +0 -4
  72. package/dist/services/learner.js.map +0 -1
  73. package/dist/services/scanner.d.ts +0 -3
  74. package/dist/services/scanner.d.ts.map +0 -1
  75. package/dist/services/scanner.js +0 -54
  76. package/dist/services/scanner.js.map +0 -1
  77. package/dist/utils/errors.d.ts +0 -15
  78. package/dist/utils/errors.d.ts.map +0 -1
  79. package/dist/utils/errors.js +0 -27
  80. package/dist/utils/errors.js.map +0 -1
  81. package/dist/utils/file.d.ts +0 -7
  82. package/dist/utils/file.d.ts.map +0 -1
  83. package/dist/utils/file.js +0 -32
  84. package/dist/utils/file.js.map +0 -1
  85. package/dist/utils/logger.d.ts +0 -6
  86. package/dist/utils/logger.d.ts.map +0 -1
  87. package/dist/utils/logger.js +0 -17
  88. package/dist/utils/logger.js.map +0 -1
  89. package/dist/utils/path.d.ts +0 -6
  90. package/dist/utils/path.d.ts.map +0 -1
  91. package/dist/utils/path.js +0 -14
  92. package/dist/utils/path.js.map +0 -1
  93. package/docs/planning/memory-lane.md +0 -83
  94. package/packaging/linux/aicgen.spec +0 -23
  95. package/packaging/linux/control +0 -9
  96. package/packaging/macos/scripts/postinstall +0 -12
  97. package/packaging/windows/setup.nsi +0 -92
  98. package/scripts/add-categories.ts +0 -87
  99. package/scripts/build-binary.ts +0 -46
  100. package/scripts/embed-data.ts +0 -105
  101. package/scripts/generate-version.ts +0 -150
  102. package/scripts/test-decompress.ts +0 -27
  103. package/scripts/test-extract.ts +0 -31
  104. package/src/__tests__/services/assistant-file-writer.test.ts +0 -400
  105. package/src/__tests__/services/guideline-loader.test.ts +0 -281
  106. package/src/__tests__/services/tarball-extraction.test.ts +0 -125
  107. package/src/commands/add-guideline.ts +0 -296
  108. package/src/commands/clear.ts +0 -61
  109. package/src/commands/guideline-selector.ts +0 -123
  110. package/src/commands/init.ts +0 -645
  111. package/src/commands/quick-add.ts +0 -586
  112. package/src/commands/remove-guideline.ts +0 -152
  113. package/src/commands/stats.ts +0 -49
  114. package/src/commands/update.ts +0 -240
  115. package/src/config.ts +0 -82
  116. package/src/embedded-data.ts +0 -1492
  117. package/src/index.ts +0 -67
  118. package/src/models/profile.ts +0 -24
  119. package/src/models/project.ts +0 -43
  120. package/src/services/assistant-file-writer.ts +0 -612
  121. package/src/services/config-generator.ts +0 -150
  122. package/src/services/config-manager.ts +0 -70
  123. package/src/services/data-source.ts +0 -248
  124. package/src/services/first-run-init.ts +0 -148
  125. package/src/services/guideline-loader.ts +0 -311
  126. package/src/services/hook-generator.ts +0 -178
  127. package/src/services/subagent-generator.ts +0 -310
  128. package/src/utils/banner.ts +0 -66
  129. package/src/utils/errors.ts +0 -27
  130. package/src/utils/file.ts +0 -67
  131. package/src/utils/formatting.ts +0 -172
  132. package/src/utils/logger.ts +0 -89
  133. package/src/utils/path.ts +0 -17
  134. package/src/utils/wizard-state.ts +0 -132
  135. package/tsconfig.json +0 -25
  136. /package/{CLAUDE.md → claude.md} +0 -0
package/src/index.ts DELETED
@@ -1,67 +0,0 @@
1
- #!/usr/bin/env node
2
- import { Command } from 'commander';
3
- import { initCommand } from './commands/init.js';
4
- import { statsCommand } from './commands/stats.js';
5
- import { updateCommand } from './commands/update.js';
6
- import { addGuidelineCommand } from './commands/add-guideline.js';
7
- import { removeGuidelineCommand } from './commands/remove-guideline.js';
8
- import { quickAddCommand } from './commands/quick-add.js';
9
- import { clearCommand } from './commands/clear.js';
10
- import { showBanner } from './utils/banner.js';
11
- import { CONFIG } from './config.js';
12
-
13
- const program = new Command();
14
-
15
- // Show banner before help or when no command given
16
- if (process.argv.length === 2 || process.argv.includes('-h') || process.argv.includes('--help')) {
17
- showBanner();
18
- }
19
-
20
- program
21
- .name(CONFIG.APP_NAME)
22
- .description('Generate tailored coding guidelines for AI assistants')
23
- .version(CONFIG.APP_VERSION);
24
-
25
- program
26
- .command('init')
27
- .description('Initialize AI configuration in current project')
28
- .option('-a, --assistant <name>', 'AI assistant (claude-code|copilot|antigravity)')
29
- .option('-l, --level <level>', 'Instruction level (basic|standard|expert|full)')
30
- .option('--architecture <type>', 'Architecture (modular-monolith|microservices|refactor|layered)')
31
- .option('-f, --force', 'Overwrite existing configuration')
32
- .option('--dry-run', 'Preview files without writing')
33
- .action(initCommand);
34
-
35
- program
36
- .command('stats')
37
- .description('Show statistics about available guidelines')
38
- .action(statsCommand);
39
-
40
- program
41
- .command('update')
42
- .description('Update guidelines from GitHub')
43
- .option('-f, --force', 'Force update even if already up to date')
44
- .action(updateCommand);
45
-
46
- program
47
- .command('add-guideline')
48
- .description('Add a custom guideline interactively')
49
- .action(addGuidelineCommand);
50
-
51
- program
52
- .command('remove-guideline')
53
- .description('Remove custom guidelines')
54
- .action(removeGuidelineCommand);
55
-
56
- program
57
- .command('quick-add')
58
- .description('Quickly add guidelines to existing configuration')
59
- .action(quickAddCommand);
60
-
61
- program
62
- .command('clear')
63
- .description('Remove all AI configurations from the project')
64
- .option('-f, --force', 'Skip confirmation prompt')
65
- .action(clearCommand);
66
-
67
- program.parse();
@@ -1,24 +0,0 @@
1
- import { AIAssistant, Language, ProjectType } from './project.js';
2
-
3
- export type InstructionLevel = 'basic' | 'standard' | 'expert' | 'full';
4
- export type ArchitectureType =
5
- | 'layered'
6
- | 'modular-monolith'
7
- | 'microservices'
8
- | 'event-driven'
9
- | 'hexagonal'
10
- | 'clean-architecture'
11
- | 'ddd'
12
- | 'serverless'
13
- | 'other';
14
- export type DatasourceType = 'sql' | 'nosql' | 'none';
15
-
16
- export interface ProfileSelection {
17
- assistant: AIAssistant;
18
- language: Language;
19
- level: InstructionLevel;
20
- architecture: ArchitectureType;
21
- projectType: ProjectType;
22
- projectName: string;
23
- datasource: DatasourceType;
24
- }
@@ -1,43 +0,0 @@
1
- export type Language =
2
- | 'typescript'
3
- | 'javascript'
4
- | 'python'
5
- | 'go'
6
- | 'rust'
7
- | 'java'
8
- | 'csharp'
9
- | 'ruby'
10
- | 'unknown';
11
-
12
- export type ProjectType =
13
- | 'web'
14
- | 'api'
15
- | 'cli'
16
- | 'library'
17
- | 'desktop'
18
- | 'mobile'
19
- | 'other';
20
-
21
- export type AIAssistant =
22
- | 'claude-code'
23
- | 'copilot'
24
- | 'gemini'
25
- | 'antigravity'
26
- | 'codex';
27
-
28
- export type PackageManager =
29
- | 'npm'
30
- | 'yarn'
31
- | 'pnpm'
32
- | 'bun'
33
- | 'pip'
34
- | 'poetry'
35
- | 'cargo'
36
- | 'go'
37
- | 'unknown';
38
-
39
- export interface DetectedProject {
40
- name: string;
41
- language: Language;
42
- hasExistingConfig: boolean;
43
- }