@aicgen/aicgen 1.0.0-beta.1 → 1.0.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 (160) hide show
  1. package/{.claude/guidelines → .agent/rules}/api-design.md +5 -1
  2. package/{.claude/guidelines → .agent/rules}/architecture.md +5 -1
  3. package/{.claude/guidelines → .agent/rules}/best-practices.md +5 -1
  4. package/{.claude/guidelines → .agent/rules}/code-style.md +5 -1
  5. package/{.claude/guidelines → .agent/rules}/design-patterns.md +5 -1
  6. package/{.claude/guidelines → .agent/rules}/devops.md +5 -1
  7. package/{.claude/guidelines → .agent/rules}/error-handling.md +5 -1
  8. package/.agent/rules/instructions.md +28 -0
  9. package/{.claude/guidelines → .agent/rules}/language.md +5 -1
  10. package/{.claude/guidelines → .agent/rules}/performance.md +5 -1
  11. package/{.claude/guidelines → .agent/rules}/security.md +5 -1
  12. package/{.claude/guidelines → .agent/rules}/testing.md +5 -1
  13. package/.agent/workflows/add-documentation.md +10 -0
  14. package/.agent/workflows/generate-integration-tests.md +10 -0
  15. package/.agent/workflows/generate-unit-tests.md +11 -0
  16. package/.agent/workflows/performance-audit.md +11 -0
  17. package/.agent/workflows/refactor-extract-module.md +12 -0
  18. package/.agent/workflows/security-audit.md +12 -0
  19. package/.gemini/instructions.md +4843 -0
  20. package/.vs/ProjectSettings.json +2 -2
  21. package/.vs/VSWorkspaceState.json +15 -15
  22. package/.vs/aicgen.slnx/v18/DocumentLayout.json +53 -53
  23. package/AGENTS.md +9 -11
  24. package/assets/icon.svg +33 -33
  25. package/bun.lock +734 -26
  26. package/{CLAUDE.md → claude.md} +2 -2
  27. package/config.example.yml +129 -0
  28. package/config.yml +38 -0
  29. package/data/architecture/microservices/api-gateway.md +56 -56
  30. package/data/devops/observability.md +73 -73
  31. package/data/guideline-mappings.yml +128 -0
  32. package/data/language/dart/async.md +289 -0
  33. package/data/language/dart/basics.md +280 -0
  34. package/data/language/dart/error-handling.md +355 -0
  35. package/data/language/dart/index.md +10 -0
  36. package/data/language/dart/testing.md +352 -0
  37. package/data/language/swift/basics.md +477 -0
  38. package/data/language/swift/concurrency.md +654 -0
  39. package/data/language/swift/error-handling.md +679 -0
  40. package/data/language/swift/swiftui-mvvm.md +795 -0
  41. package/data/language/swift/testing.md +708 -0
  42. package/data/version.json +10 -8
  43. package/dist/index.js +50153 -28959
  44. package/jest.config.js +46 -0
  45. package/package.json +14 -3
  46. package/.claude/agents/architecture-reviewer.md +0 -88
  47. package/.claude/agents/guideline-checker.md +0 -73
  48. package/.claude/agents/security-auditor.md +0 -108
  49. package/.claude/settings.json +0 -98
  50. package/.claude/settings.local.json +0 -8
  51. package/.eslintrc.json +0 -28
  52. package/.github/workflows/release.yml +0 -180
  53. package/.github/workflows/test.yml +0 -81
  54. package/CONTRIBUTING.md +0 -821
  55. package/dist/commands/init.d.ts +0 -8
  56. package/dist/commands/init.d.ts.map +0 -1
  57. package/dist/commands/init.js +0 -46
  58. package/dist/commands/init.js.map +0 -1
  59. package/dist/config/profiles.d.ts +0 -4
  60. package/dist/config/profiles.d.ts.map +0 -1
  61. package/dist/config/profiles.js +0 -30
  62. package/dist/config/profiles.js.map +0 -1
  63. package/dist/config/settings.d.ts +0 -7
  64. package/dist/config/settings.d.ts.map +0 -1
  65. package/dist/config/settings.js +0 -7
  66. package/dist/config/settings.js.map +0 -1
  67. package/dist/index.d.ts +0 -3
  68. package/dist/index.d.ts.map +0 -1
  69. package/dist/index.js.map +0 -1
  70. package/dist/models/guideline.d.ts +0 -15
  71. package/dist/models/guideline.d.ts.map +0 -1
  72. package/dist/models/guideline.js +0 -2
  73. package/dist/models/guideline.js.map +0 -1
  74. package/dist/models/preference.d.ts +0 -9
  75. package/dist/models/preference.d.ts.map +0 -1
  76. package/dist/models/preference.js +0 -2
  77. package/dist/models/preference.js.map +0 -1
  78. package/dist/models/profile.d.ts +0 -9
  79. package/dist/models/profile.d.ts.map +0 -1
  80. package/dist/models/profile.js +0 -2
  81. package/dist/models/profile.js.map +0 -1
  82. package/dist/models/project.d.ts +0 -13
  83. package/dist/models/project.d.ts.map +0 -1
  84. package/dist/models/project.js +0 -2
  85. package/dist/models/project.js.map +0 -1
  86. package/dist/services/ai/anthropic.d.ts +0 -7
  87. package/dist/services/ai/anthropic.d.ts.map +0 -1
  88. package/dist/services/ai/anthropic.js +0 -39
  89. package/dist/services/ai/anthropic.js.map +0 -1
  90. package/dist/services/generator.d.ts +0 -2
  91. package/dist/services/generator.d.ts.map +0 -1
  92. package/dist/services/generator.js +0 -4
  93. package/dist/services/generator.js.map +0 -1
  94. package/dist/services/learner.d.ts +0 -2
  95. package/dist/services/learner.d.ts.map +0 -1
  96. package/dist/services/learner.js +0 -4
  97. package/dist/services/learner.js.map +0 -1
  98. package/dist/services/scanner.d.ts +0 -3
  99. package/dist/services/scanner.d.ts.map +0 -1
  100. package/dist/services/scanner.js +0 -54
  101. package/dist/services/scanner.js.map +0 -1
  102. package/dist/utils/errors.d.ts +0 -15
  103. package/dist/utils/errors.d.ts.map +0 -1
  104. package/dist/utils/errors.js +0 -27
  105. package/dist/utils/errors.js.map +0 -1
  106. package/dist/utils/file.d.ts +0 -7
  107. package/dist/utils/file.d.ts.map +0 -1
  108. package/dist/utils/file.js +0 -32
  109. package/dist/utils/file.js.map +0 -1
  110. package/dist/utils/logger.d.ts +0 -6
  111. package/dist/utils/logger.d.ts.map +0 -1
  112. package/dist/utils/logger.js +0 -17
  113. package/dist/utils/logger.js.map +0 -1
  114. package/dist/utils/path.d.ts +0 -6
  115. package/dist/utils/path.d.ts.map +0 -1
  116. package/dist/utils/path.js +0 -14
  117. package/dist/utils/path.js.map +0 -1
  118. package/docs/planning/memory-lane.md +0 -83
  119. package/packaging/linux/aicgen.spec +0 -23
  120. package/packaging/linux/control +0 -9
  121. package/packaging/macos/scripts/postinstall +0 -12
  122. package/packaging/windows/setup.nsi +0 -92
  123. package/scripts/add-categories.ts +0 -87
  124. package/scripts/build-binary.ts +0 -46
  125. package/scripts/embed-data.ts +0 -105
  126. package/scripts/generate-version.ts +0 -150
  127. package/scripts/test-decompress.ts +0 -27
  128. package/scripts/test-extract.ts +0 -31
  129. package/src/__tests__/services/assistant-file-writer.test.ts +0 -400
  130. package/src/__tests__/services/guideline-loader.test.ts +0 -281
  131. package/src/__tests__/services/tarball-extraction.test.ts +0 -125
  132. package/src/commands/add-guideline.ts +0 -296
  133. package/src/commands/clear.ts +0 -61
  134. package/src/commands/guideline-selector.ts +0 -123
  135. package/src/commands/init.ts +0 -645
  136. package/src/commands/quick-add.ts +0 -586
  137. package/src/commands/remove-guideline.ts +0 -152
  138. package/src/commands/stats.ts +0 -49
  139. package/src/commands/update.ts +0 -240
  140. package/src/config.ts +0 -82
  141. package/src/embedded-data.ts +0 -1492
  142. package/src/index.ts +0 -67
  143. package/src/models/profile.ts +0 -24
  144. package/src/models/project.ts +0 -43
  145. package/src/services/assistant-file-writer.ts +0 -612
  146. package/src/services/config-generator.ts +0 -150
  147. package/src/services/config-manager.ts +0 -70
  148. package/src/services/data-source.ts +0 -248
  149. package/src/services/first-run-init.ts +0 -148
  150. package/src/services/guideline-loader.ts +0 -311
  151. package/src/services/hook-generator.ts +0 -178
  152. package/src/services/subagent-generator.ts +0 -310
  153. package/src/utils/banner.ts +0 -66
  154. package/src/utils/errors.ts +0 -27
  155. package/src/utils/file.ts +0 -67
  156. package/src/utils/formatting.ts +0 -172
  157. package/src/utils/logger.ts +0 -89
  158. package/src/utils/path.ts +0 -17
  159. package/src/utils/wizard-state.ts +0 -132
  160. package/tsconfig.json +0 -25
@@ -1,4 +1,4 @@
1
- # API Design
1
+ # API Design Rules
2
2
 
3
3
  # API Basics
4
4
 
@@ -643,3 +643,7 @@ res.setHeader('Link', '</api/v2/users>; rel="successor-version"');
643
643
  - Provide migration guides
644
644
  - Use semantic versioning for breaking changes
645
645
  - Consider backwards-compatible changes first
646
+
647
+
648
+ ---
649
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Architecture
1
+ # Architecture Rules
2
2
 
3
3
  # Service Boundaries
4
4
 
@@ -2501,3 +2501,7 @@ class FeatureFlagService implements FeatureFlags {
2501
2501
  - Test both toggle states
2502
2502
  - Limit number of active toggles
2503
2503
  - Document toggle purpose and expiration
2504
+
2505
+
2506
+ ---
2507
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Best Practices
1
+ # Best Practices Rules
2
2
 
3
3
  # Planning Best Practices
4
4
 
@@ -616,3 +616,7 @@ Closes #123
616
616
  - Use pull requests for code review
617
617
  - Delete merged branches
618
618
  - Tag releases with semantic versions
619
+
620
+
621
+ ---
622
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Code Style
1
+ # Code Style Rules
2
2
 
3
3
  # Naming Conventions
4
4
 
@@ -302,3 +302,7 @@ function processUserOrder(order: Order) {
302
302
  return calculateOrderTotal(order.items);
303
303
  }
304
304
  ```
305
+
306
+
307
+ ---
308
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Design Patterns
1
+ # Design Patterns Rules
2
2
 
3
3
  # Base Patterns
4
4
 
@@ -571,3 +571,7 @@ class AppendCommand implements Command {
571
571
  - Combine patterns when appropriate
572
572
  - Favor composition over inheritance
573
573
  - Keep implementations simple
574
+
575
+
576
+ ---
577
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # DevOps
1
+ # DevOps Rules
2
2
 
3
3
  # CI/CD Practices
4
4
 
@@ -224,3 +224,7 @@ Expose standard health endpoints:
224
224
  - **Alert on Symptoms, not Causes**: "High Error Rate" (Symptom) vs "CPU High" (Cause).
225
225
  - **Golden Signals**: Latency, Traffic, Errors, Saturation.
226
226
  - **Actionable**: Every alert should require a specific human action.
227
+
228
+
229
+ ---
230
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Error Handling
1
+ # Error Handling Rules
2
2
 
3
3
  # Error Handling Strategy
4
4
 
@@ -411,3 +411,7 @@ finally:
411
411
  if file is not null:
412
412
  await file.close()
413
413
  ```
414
+
415
+
416
+ ---
417
+ *Generated by aicgen*
@@ -0,0 +1,28 @@
1
+ # Google Antigravity Instructions
2
+
3
+ **Role:** You are an expert software engineer specialized in typescript.
4
+ **Objective:** Assist the user in building high-quality, maintainable software following strict project guidelines.
5
+
6
+ ## Rule Index
7
+
8
+ This project is governed by the following rule sets:
9
+
10
+ - **Language**: @.agent/rules/language.md
11
+ - **Architecture**: @.agent/rules/architecture.md
12
+ - **Testing**: @.agent/rules/testing.md
13
+ - **Security**: @.agent/rules/security.md
14
+ - **Performance**: @.agent/rules/performance.md
15
+ - **API Design**: @.agent/rules/api-design.md
16
+ - **Code Style**: @.agent/rules/code-style.md
17
+ - **Error Handling**: @.agent/rules/error-handling.md
18
+ - **DevOps**: @.agent/rules/devops.md
19
+ - **Best Practices**: @.agent/rules/best-practices.md
20
+ - **Design Patterns**: @.agent/rules/design-patterns.md
21
+
22
+ ## Core Principles
23
+ 1. **Act as an Agent**: Don't just answer; perform actions, verify results, and course-correct.
24
+ 2. **Follow Guidelines**: Strictly adhere to the rules linked above.
25
+ 3. **Think Step-by-Step**: Break down complex tasks into smaller, verifiable steps.
26
+
27
+ ---
28
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Language
1
+ # Language Rules
2
2
 
3
3
  # TypeScript Fundamentals
4
4
 
@@ -780,3 +780,7 @@ const processUsers = async (userIds: string[]) => {
780
780
  }
781
781
  };
782
782
  ```
783
+
784
+
785
+ ---
786
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Performance
1
+ # Performance Rules
2
2
 
3
3
  # Performance Basics
4
4
 
@@ -704,3 +704,7 @@ if (req.headers['if-none-match'] === currentEtag) {
704
704
  - Monitor cache hit rates
705
705
  - Plan for cache failures (fallback to source)
706
706
  - Avoid caching sensitive data
707
+
708
+
709
+ ---
710
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Security
1
+ # Security Rules
2
2
 
3
3
  # Injection Prevention
4
4
 
@@ -581,3 +581,7 @@ res.cookie('token', value, {
581
581
  ✅ Permissions-Policy: restrict unused features
582
582
  ✅ Secure, HttpOnly, SameSite cookies
583
583
  ```
584
+
585
+
586
+ ---
587
+ *Generated by aicgen*
@@ -1,4 +1,4 @@
1
- # Testing
1
+ # Testing Rules
2
2
 
3
3
  # Unit Testing Fundamentals
4
4
 
@@ -566,3 +566,7 @@ test "should return empty list when no users":
566
566
  - Private implementation details
567
567
  - Third-party libraries (they're already tested)
568
568
  - Getters/setters with no logic
569
+
570
+
571
+ ---
572
+ *Generated by aicgen*
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Add or update comprehensive documentation for code
3
+ ---
4
+
5
+ * Analyze the selected code for documentation needs
6
+ * Add inline documentation with clear descriptions
7
+ * Include parameter types and return value documentation
8
+ * Add usage examples for complex functions
9
+ * Follow language-specific documentation standards
10
+ * Update README.md if adding new features
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Generate integration tests for API endpoints and system components
3
+ ---
4
+
5
+ * Identify integration points (APIs, databases, services)
6
+ * Create integration test files
7
+ * Test end-to-end workflows
8
+ * Use realistic test data and fixtures
9
+ * Include proper setup and teardown
10
+ * Ensure tests are idempotent
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: Generate comprehensive unit tests for all functions and methods
3
+ ---
4
+
5
+ * Analyze the selected file or directory for testable code
6
+ * Generate test files with appropriate naming conventions
7
+ * Create test cases covering happy path, edge cases, and error handling
8
+ * Mock external dependencies appropriately
9
+ * Follow language-specific testing best practices
10
+ * Aim for >80% code coverage
11
+ * Include setup and teardown methods where needed
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: Analyze code for performance bottlenecks and optimization opportunities
3
+ ---
4
+
5
+ * Profile code to identify hotspots
6
+ * Check for N+1 queries and inefficient algorithms
7
+ * Analyze caching opportunities
8
+ * Review resource management
9
+ * Suggest specific optimizations
10
+ * Estimate performance impact
11
+ * Prioritize recommendations
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: Extract code into a separate, reusable module
3
+ ---
4
+
5
+ * Identify the code section to extract
6
+ * Analyze dependencies and determine module interface
7
+ * Create a new module file following project conventions
8
+ * Maintain original functionality and behavior
9
+ * Update imports and exports appropriately
10
+ * Ensure no circular dependencies
11
+ * Add documentation to the new module
12
+ * Verify all tests still pass
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: Perform comprehensive security audit of the codebase
3
+ ---
4
+
5
+ * Scan for common vulnerabilities (SQL injection, XSS, etc.)
6
+ * Check authentication and authorization logic
7
+ * Review input validation and sanitization
8
+ * Examine error handling for information leakage
9
+ * Verify secure handling of sensitive data
10
+ * Check third-party dependencies
11
+ * Suggest remediation steps
12
+ * Prioritize findings by severity