@aicgen/aicgen 1.0.0-beta.2 → 1.0.1

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 (39) hide show
  1. package/.agent/rules/api-design.md +649 -0
  2. package/.agent/rules/architecture.md +2507 -0
  3. package/.agent/rules/best-practices.md +622 -0
  4. package/.agent/rules/code-style.md +308 -0
  5. package/.agent/rules/design-patterns.md +577 -0
  6. package/.agent/rules/devops.md +230 -0
  7. package/.agent/rules/error-handling.md +417 -0
  8. package/.agent/rules/instructions.md +28 -0
  9. package/.agent/rules/language.md +786 -0
  10. package/.agent/rules/performance.md +710 -0
  11. package/.agent/rules/security.md +587 -0
  12. package/.agent/rules/testing.md +572 -0
  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/AGENTS.md +9 -11
  21. package/bun.lock +755 -4
  22. package/claude.md +2 -2
  23. package/config.example.yml +129 -0
  24. package/config.yml +38 -0
  25. package/data/guideline-mappings.yml +128 -0
  26. package/data/language/dart/async.md +289 -0
  27. package/data/language/dart/basics.md +280 -0
  28. package/data/language/dart/error-handling.md +355 -0
  29. package/data/language/dart/index.md +10 -0
  30. package/data/language/dart/testing.md +352 -0
  31. package/data/language/swift/basics.md +477 -0
  32. package/data/language/swift/concurrency.md +654 -0
  33. package/data/language/swift/error-handling.md +679 -0
  34. package/data/language/swift/swiftui-mvvm.md +795 -0
  35. package/data/language/swift/testing.md +708 -0
  36. package/data/version.json +10 -8
  37. package/dist/index.js +50295 -29101
  38. package/jest.config.js +46 -0
  39. package/package.json +13 -2
package/jest.config.js ADDED
@@ -0,0 +1,46 @@
1
+ /** @type {import('jest').Config} */
2
+ export default {
3
+ preset: 'ts-jest/presets/default-esm',
4
+ testEnvironment: 'node',
5
+ extensionsToTreatAsEsm: ['.ts'],
6
+ moduleNameMapper: {
7
+ '^(\\.{1,2}/.*)\\.js$': '$1',
8
+ },
9
+ transform: {
10
+ '^.+\\.ts$': [
11
+ 'ts-jest',
12
+ {
13
+ useESM: true,
14
+ tsconfig: {
15
+ module: 'ESNext',
16
+ target: 'ES2022',
17
+ esModuleInterop: true,
18
+ }
19
+ },
20
+ ],
21
+ },
22
+ testMatch: [
23
+ '**/__tests__/**/*.ts',
24
+ '**/*.test.ts',
25
+ '**/*.spec.ts'
26
+ ],
27
+ modulePathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/node_modules/'],
28
+ transformIgnorePatterns: ['node_modules/'],
29
+ collectCoverageFrom: [
30
+ 'src/**/*.ts',
31
+ '!src/**/*.d.ts',
32
+ '!src/**/*.test.ts',
33
+ '!src/**/*.spec.ts',
34
+ '!src/**/index.ts'
35
+ ],
36
+ coverageThreshold: {
37
+ global: {
38
+ branches: 80,
39
+ functions: 80,
40
+ lines: 80,
41
+ statements: 80
42
+ }
43
+ },
44
+ coverageDirectory: 'coverage',
45
+ verbose: true
46
+ };
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@aicgen/aicgen",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.1",
4
4
  "description": "AI Config Generator - Automated AI assistant configuration for your projects",
5
5
  "keywords": [
6
6
  "ai",
7
7
  "cli",
8
8
  "code-generator",
9
9
  "claude",
10
+ "gemini",
11
+ "openai",
10
12
  "config",
11
13
  "assistant"
12
14
  ],
@@ -35,18 +37,24 @@
35
37
  "build:all": "bun run build:binary:windows && bun run build:binary:linux && bun run build:binary:macos",
36
38
  "dev": "bun --watch src/index.ts",
37
39
  "start": "bun src/index.ts",
38
- "test": "bun test",
40
+ "test": "jest",
41
+ "test:watch": "jest --watch",
42
+ "test:coverage": "jest --coverage",
39
43
  "typecheck": "tsc --noEmit",
40
44
  "lint": "eslint src --ext .ts",
41
45
  "format": "prettier --write src"
42
46
  },
43
47
  "dependencies": {
48
+ "@anthropic-ai/sdk": "^0.71.2",
49
+ "@google/generative-ai": "^0.24.1",
44
50
  "@inquirer/checkbox": "^5.0.2",
45
51
  "@inquirer/prompts": "^6.0.1",
46
52
  "chalk": "^5.3.0",
47
53
  "commander": "^12.1.0",
48
54
  "decompress": "^4.2.1",
49
55
  "decompress-targz": "^4.1.1",
56
+ "fast-glob": "^3.3.3",
57
+ "openai": "^6.15.0",
50
58
  "ora": "^8.1.1",
51
59
  "winston": "^3.19.0",
52
60
  "yaml": "^2.6.1"
@@ -54,11 +62,14 @@
54
62
  "devDependencies": {
55
63
  "@types/bun": "^1.1.13",
56
64
  "@types/decompress": "^4.2.7",
65
+ "@types/jest": "^30.0.0",
57
66
  "@types/node": "^20.17.9",
58
67
  "@typescript-eslint/eslint-plugin": "^6.21.0",
59
68
  "@typescript-eslint/parser": "^6.21.0",
60
69
  "eslint": "^8.57.1",
70
+ "jest": "^30.2.0",
61
71
  "prettier": "^3.4.2",
72
+ "ts-jest": "^29.4.6",
62
73
  "typescript": "^5.7.2"
63
74
  }
64
75
  }