@infandev/agent-kit 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 (229) hide show
  1. package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  2. package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  3. package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  4. package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  5. package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
  6. package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  7. package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
  8. package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  9. package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  10. package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  11. package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  12. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  13. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  14. package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  15. package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  16. package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  17. package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  18. package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  19. package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  20. package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  21. package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  22. package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  23. package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  24. package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
  25. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  26. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  27. package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
  28. package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
  29. package/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
  30. package/.agent/ARCHITECTURE.md +289 -0
  31. package/.agent/agents/backend-specialist.md +263 -0
  32. package/.agent/agents/code-archaeologist.md +106 -0
  33. package/.agent/agents/database-architect.md +226 -0
  34. package/.agent/agents/debugger.md +225 -0
  35. package/.agent/agents/devops-engineer.md +242 -0
  36. package/.agent/agents/documentation-writer.md +104 -0
  37. package/.agent/agents/explorer-agent.md +73 -0
  38. package/.agent/agents/frontend-specialist.md +593 -0
  39. package/.agent/agents/game-developer.md +162 -0
  40. package/.agent/agents/mobile-developer.md +377 -0
  41. package/.agent/agents/orchestrator.md +440 -0
  42. package/.agent/agents/penetration-tester.md +188 -0
  43. package/.agent/agents/performance-optimizer.md +187 -0
  44. package/.agent/agents/product-manager.md +112 -0
  45. package/.agent/agents/product-owner.md +95 -0
  46. package/.agent/agents/project-planner.md +419 -0
  47. package/.agent/agents/qa-automation-engineer.md +103 -0
  48. package/.agent/agents/security-auditor.md +170 -0
  49. package/.agent/agents/seo-specialist.md +111 -0
  50. package/.agent/agents/test-engineer.md +158 -0
  51. package/.agent/mcp_config.json +24 -0
  52. package/.agent/rules/GEMINI.md +284 -0
  53. package/.agent/scripts/auto_preview.py +148 -0
  54. package/.agent/scripts/checklist.py +217 -0
  55. package/.agent/scripts/session_manager.py +120 -0
  56. package/.agent/scripts/verify_all.py +327 -0
  57. package/.agent/skills/agent-ops/SKILL.md +72 -0
  58. package/.agent/skills/agent-ops/scripts/export_ide_rules.py +131 -0
  59. package/.agent/skills/agent-ops/scripts/registry.py +125 -0
  60. package/.agent/skills/api-patterns/SKILL.md +81 -0
  61. package/.agent/skills/api-patterns/api-style.md +42 -0
  62. package/.agent/skills/api-patterns/auth.md +24 -0
  63. package/.agent/skills/api-patterns/documentation.md +26 -0
  64. package/.agent/skills/api-patterns/graphql.md +41 -0
  65. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  66. package/.agent/skills/api-patterns/response.md +37 -0
  67. package/.agent/skills/api-patterns/rest.md +40 -0
  68. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  69. package/.agent/skills/api-patterns/security-testing.md +122 -0
  70. package/.agent/skills/api-patterns/trpc.md +41 -0
  71. package/.agent/skills/api-patterns/versioning.md +22 -0
  72. package/.agent/skills/app-builder/SKILL.md +75 -0
  73. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  74. package/.agent/skills/app-builder/feature-building.md +53 -0
  75. package/.agent/skills/app-builder/project-detection.md +34 -0
  76. package/.agent/skills/app-builder/scaffolding.md +118 -0
  77. package/.agent/skills/app-builder/tech-stack.md +41 -0
  78. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  79. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  80. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  81. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  82. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  83. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  84. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  85. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  86. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  87. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  88. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  89. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  90. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  91. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  92. package/.agent/skills/architecture/SKILL.md +55 -0
  93. package/.agent/skills/architecture/context-discovery.md +43 -0
  94. package/.agent/skills/architecture/examples.md +94 -0
  95. package/.agent/skills/architecture/pattern-selection.md +68 -0
  96. package/.agent/skills/architecture/patterns-reference.md +50 -0
  97. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  98. package/.agent/skills/bash-linux/SKILL.md +199 -0
  99. package/.agent/skills/behavioral-modes/SKILL.md +242 -0
  100. package/.agent/skills/brainstorming/SKILL.md +163 -0
  101. package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  102. package/.agent/skills/clean-code/SKILL.md +201 -0
  103. package/.agent/skills/code-review-checklist/SKILL.md +109 -0
  104. package/.agent/skills/database-design/SKILL.md +52 -0
  105. package/.agent/skills/database-design/database-selection.md +43 -0
  106. package/.agent/skills/database-design/indexing.md +39 -0
  107. package/.agent/skills/database-design/migrations.md +48 -0
  108. package/.agent/skills/database-design/optimization.md +36 -0
  109. package/.agent/skills/database-design/orm-selection.md +30 -0
  110. package/.agent/skills/database-design/schema-design.md +56 -0
  111. package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  112. package/.agent/skills/deployment-procedures/SKILL.md +241 -0
  113. package/.agent/skills/doc.md +177 -0
  114. package/.agent/skills/documentation-templates/SKILL.md +194 -0
  115. package/.agent/skills/frontend-design/SKILL.md +452 -0
  116. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  117. package/.agent/skills/frontend-design/color-system.md +311 -0
  118. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  119. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  120. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  121. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  122. package/.agent/skills/frontend-design/typography-system.md +345 -0
  123. package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
  124. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  125. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  126. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  127. package/.agent/skills/game-development/SKILL.md +167 -0
  128. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  129. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  130. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  131. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  132. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  133. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  134. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  135. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  136. package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  137. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  138. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  139. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  140. package/.agent/skills/intelligent-routing/SKILL.md +335 -0
  141. package/.agent/skills/lint-and-validate/SKILL.md +45 -0
  142. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
  143. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  144. package/.agent/skills/mcp-builder/SKILL.md +176 -0
  145. package/.agent/skills/mobile-design/SKILL.md +394 -0
  146. package/.agent/skills/mobile-design/decision-trees.md +516 -0
  147. package/.agent/skills/mobile-design/mobile-backend.md +491 -0
  148. package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  149. package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  150. package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  151. package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  152. package/.agent/skills/mobile-design/mobile-performance.md +767 -0
  153. package/.agent/skills/mobile-design/mobile-testing.md +356 -0
  154. package/.agent/skills/mobile-design/mobile-typography.md +433 -0
  155. package/.agent/skills/mobile-design/platform-android.md +666 -0
  156. package/.agent/skills/mobile-design/platform-ios.md +561 -0
  157. package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  158. package/.agent/skills/mobile-design/touch-psychology.md +537 -0
  159. package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
  160. package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  161. package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  162. package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  163. package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  164. package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  165. package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  166. package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  167. package/.agent/skills/nextjs-react-expert/9-cache-components.md +103 -0
  168. package/.agent/skills/nextjs-react-expert/SKILL.md +293 -0
  169. package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  170. package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
  171. package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  172. package/.agent/skills/parallel-agents/SKILL.md +175 -0
  173. package/.agent/skills/performance-profiling/SKILL.md +143 -0
  174. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  175. package/.agent/skills/plan-writing/SKILL.md +152 -0
  176. package/.agent/skills/powershell-windows/SKILL.md +167 -0
  177. package/.agent/skills/python-patterns/SKILL.md +441 -0
  178. package/.agent/skills/red-team-tactics/SKILL.md +199 -0
  179. package/.agent/skills/rust-pro/SKILL.md +176 -0
  180. package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
  181. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  182. package/.agent/skills/server-management/SKILL.md +161 -0
  183. package/.agent/skills/systematic-debugging/SKILL.md +109 -0
  184. package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
  185. package/.agent/skills/tdd-workflow/SKILL.md +149 -0
  186. package/.agent/skills/testing-patterns/SKILL.md +178 -0
  187. package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  188. package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  189. package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  190. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  191. package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
  192. package/.agent/skills/webapp-testing/SKILL.md +187 -0
  193. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  194. package/.agent/workflows/brainstorm.md +113 -0
  195. package/.agent/workflows/create.md +59 -0
  196. package/.agent/workflows/debug.md +103 -0
  197. package/.agent/workflows/deploy.md +176 -0
  198. package/.agent/workflows/enhance.md +63 -0
  199. package/.agent/workflows/orchestrate.md +237 -0
  200. package/.agent/workflows/plan.md +89 -0
  201. package/.agent/workflows/preview.md +81 -0
  202. package/.agent/workflows/status.md +86 -0
  203. package/.agent/workflows/test.md +144 -0
  204. package/.agent/workflows/ui-ux-pro-max.md +296 -0
  205. package/.cursor/rules/backend-specialist.mdc +266 -0
  206. package/.cursor/rules/code-archaeologist.mdc +109 -0
  207. package/.cursor/rules/database-architect.mdc +229 -0
  208. package/.cursor/rules/debugger.mdc +230 -0
  209. package/.cursor/rules/devops-engineer.mdc +245 -0
  210. package/.cursor/rules/documentation-writer.mdc +107 -0
  211. package/.cursor/rules/explorer-agent.mdc +76 -0
  212. package/.cursor/rules/frontend-specialist.mdc +596 -0
  213. package/.cursor/rules/game-developer.mdc +165 -0
  214. package/.cursor/rules/mobile-developer.mdc +380 -0
  215. package/.cursor/rules/orchestrator.mdc +443 -0
  216. package/.cursor/rules/penetration-tester.mdc +191 -0
  217. package/.cursor/rules/performance-optimizer.mdc +190 -0
  218. package/.cursor/rules/product-manager.mdc +115 -0
  219. package/.cursor/rules/product-owner.mdc +98 -0
  220. package/.cursor/rules/project-planner.mdc +422 -0
  221. package/.cursor/rules/qa-automation-engineer.mdc +106 -0
  222. package/.cursor/rules/security-auditor.mdc +173 -0
  223. package/.cursor/rules/seo-specialist.mdc +114 -0
  224. package/.cursor/rules/test-engineer.mdc +161 -0
  225. package/.windsurfrules +3 -0
  226. package/AGENTS.md +4301 -0
  227. package/README.md +83 -0
  228. package/bin/cli.js +100 -0
  229. package/package.json +35 -0
package/README.md ADDED
@@ -0,0 +1,83 @@
1
+ # 🚀 @infandev/agent-kit
2
+ ### The High-Fidelity Universal AI Ruleset Compiler
3
+
4
+ **Antigravity Agent Kit** is the "Operating System" for AI-native development. It standardizes agentic reasoning, cross-IDE portability, and high-fidelity specialist personas into a single, unified codebase in your repo.
5
+
6
+ ---
7
+
8
+ ## 🧠 The Core Driver: TNbN
9
+ Unlike generic AI instructions, this kit enforces the **Think Node-by-Node (TNbN)** reasoning protocol across all platforms:
10
+
11
+ 1. **🌳 State Node**: Declare the target and assumptions.
12
+ 2. **🔍 Verify Node**: Use filesystem tools to confirm state **before** acting.
13
+ 3. **🛠️ Act Node**: Perform the modification.
14
+ 4. **✅ Confirm Node**: Verify the result with a final tool call.
15
+
16
+ ---
17
+
18
+ ## ⚡ Quick Start
19
+
20
+ Bootstrap your project with high-fidelity agents and native IDE support in one command:
21
+
22
+ ```bash
23
+ npx @infandev/agent-kit init --all
24
+ ```
25
+
26
+ This command:
27
+ 1. **Installs** the `.agent/` master brain in your project.
28
+ 2. **Compiles** native `.cursor/rules/*.mdc` files for Cursor.
29
+ 3. **Generates** `AGENTS.md` and `.windsurfrules` for Windsurf.
30
+
31
+ ---
32
+
33
+ ## 🏗️ Project Structure: Single Source of Truth
34
+
35
+ The `.agent/` folder is your **Universal Hub**. Edit once, sync everywhere.
36
+
37
+ - **`.agent/rules/`**: Global logic (TNbN, Socratic Gates, Clean Code).
38
+ - **`.agent/agents/`**: 20+ specialized personas (Frontend, Backend, DevOps, Security).
39
+ - **`.agent/skills/`**: Modular tool intelligence (Registry, App-Builder, TDD).
40
+
41
+ ---
42
+
43
+ ## 🛠️ CLI Commands & Flags
44
+
45
+ ### **1. Initialization**
46
+ ```bash
47
+ # Basic setup
48
+ npx @infandev/agent-kit init
49
+
50
+ # Setup + IDE native rule generation
51
+ npx @infandev/agent-kit init --cursor
52
+ npx @infandev/agent-kit init --windsurf
53
+ npx @infandev/agent-kit init --all
54
+ ```
55
+
56
+ ### **2. Compilation (Sync)**
57
+ Run this after tweaking rules in `.agent/` to refresh your IDE configurations.
58
+ ```bash
59
+ npx @infandev/agent-kit compile --cursor
60
+ npx @infandev/agent-kit compile --windsurf
61
+ npx @infandev/agent-kit compile --all
62
+ ```
63
+
64
+ ---
65
+
66
+ ## 🎨 Supported IDEs
67
+
68
+ - **Cursor**: Full support for `.mdc` interactive rules with optimized glob triggers.
69
+ - **Windsurf**: Consolidated persona awareness via `AGENTS.md`.
70
+ - **Cline / Generic**: Universal instruction sets in `.agent/`.
71
+
72
+ ---
73
+
74
+ ## 🏆 Why use Antigravity?
75
+
76
+ - **Zero Hallucination**: TNbN forces the AI to "Check the File First" before making claims.
77
+ - **Cross-IDE Portability**: Your project intelligence follows the repo, not the editor.
78
+ - **Scale-Ready**: Add your own project-specific agents to the `.agent/agents/` folder and re-run the compiler.
79
+
80
+ ---
81
+
82
+ ### **License**
83
+ MIT © 2026 [Infantex AI](https://github.com/infantex)
package/bin/cli.js ADDED
@@ -0,0 +1,100 @@
1
+ #!/usr/bin/env node
2
+ const { execSync } = require('child_process');
3
+ const path = require('path');
4
+ const fs = require('fs');
5
+
6
+ /**
7
+ * Antigravity Agent Kit - CLI Wrapper
8
+ * npx @infandev/agent-kit [command] [options]
9
+ */
10
+
11
+ const args = process.argv.slice(2);
12
+ const command = args[0];
13
+
14
+ // Help Output
15
+ if (!command || command === '--help' || command === '-h') {
16
+ console.log(`
17
+ 🚀 @infandev/agent-kit - Antigravity Agent OS
18
+ -----------------------------------------------
19
+ Usage: npx @infandev/agent-kit <command> [options]
20
+
21
+ Commands:
22
+ init 🔥 Bootstrap the .agent kit (supports native flags!)
23
+ compile ⚡ Sync .agent master rules to native IDE formats
24
+
25
+ Options (for both init and compile):
26
+ --cursor 🎯 Export for Cursor (.mdc)
27
+ --windsurf 🌊 Export for Windsurf (AGENTS.md)
28
+ --all 🌟 Export for all platforms
29
+ `);
30
+ process.exit(0);
31
+ }
32
+
33
+ // Resolver for internal paths
34
+ const PACKAGE_ROOT = path.join(__dirname, '..');
35
+ const COMPILER_PATH = path.join(PACKAGE_ROOT, '.agent/skills/agent-ops/scripts/export_ide_rules.py');
36
+
37
+ /**
38
+ * Shared: Run the Python Compiler Engine
39
+ */
40
+ function runCompiler(flags) {
41
+ if (!flags || flags.trim() === '') {
42
+ console.log('⚠️ Warning: No target platform specified (e.g., --cursor). Skip compilation.');
43
+ return;
44
+ }
45
+ console.log(`⚡ Compiling native rules ${flags}...`);
46
+ try {
47
+ execSync(`python3 "${COMPILER_PATH}" ${flags}`, { stdio: 'inherit' });
48
+ console.log('✨ Architecture Sync complete.');
49
+ } catch (err) {
50
+ console.error('❌ Compilation failed:', err.message);
51
+ }
52
+ }
53
+
54
+ /**
55
+ * Command: init
56
+ * Bootstraps the .agent folder and optionally compiles for platforms.
57
+ */
58
+ if (command === 'init') {
59
+ const targetDir = path.join(process.cwd(), '.agent');
60
+ const platformFlags = args.slice(1).join(' ');
61
+
62
+ if (fs.existsSync(targetDir)) {
63
+ console.error('⚠️ Warning: .agent directory already exists in this project.');
64
+ } else {
65
+ console.log('📦 Initializing Antigravity Agent Kit...');
66
+ const sourceDir = path.join(PACKAGE_ROOT, '.agent');
67
+
68
+ try {
69
+ if (process.platform === 'win32') {
70
+ execSync(`xcopy "${sourceDir}" "${targetDir}" /E /I /H /Y`, { stdio: 'inherit' });
71
+ } else {
72
+ execSync(`cp -R "${sourceDir}" "${targetDir}"`, { stdio: 'inherit' });
73
+ }
74
+ console.log('✅ Successfully bootstrapped .agent kit.');
75
+ } catch (err) {
76
+ console.error('❌ Failed to initialize kit:', err.message);
77
+ process.exit(1);
78
+ }
79
+ }
80
+
81
+ // Option A Support: Immediate compilation if flags were provided
82
+ if (platformFlags) {
83
+ runCompiler(platformFlags);
84
+ } else {
85
+ console.log('👉 Tip: Run "npx @infandev/agent-kit compile --all" later to generate IDE rules.');
86
+ }
87
+ }
88
+
89
+ /**
90
+ * Command: compile
91
+ * Reruns the internal Python-based rule compiler.
92
+ */
93
+ else if (command === 'compile') {
94
+ const platformFlags = args.slice(1).join(' ');
95
+ runCompiler(platformFlags);
96
+ }
97
+
98
+ else {
99
+ console.log(`Unknown command: ${command}. Use --help for available commands.`);
100
+ }
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@infandev/agent-kit",
3
+ "version": "1.0.0",
4
+ "description": "Infandev Agent Kit: Universal AI Ruleset Compiler",
5
+ "bin": {
6
+ "agent-kit": "./bin/cli.js"
7
+ },
8
+ "scripts": {
9
+ "test": "echo \"Error: no test specified\" && exit 1"
10
+ },
11
+ "keywords": [
12
+ "ai",
13
+ "agent",
14
+ "cursor",
15
+ "windsurf",
16
+ "antigravity",
17
+ "tnbn"
18
+ ],
19
+ "author": "daniel",
20
+ "license": "MIT",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/infantex/agent-kit.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/infantex/agent-kit/issues"
27
+ },
28
+ "homepage": "https://github.com/infantex/agent-kit#readme",
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "engines": {
33
+ "node": ">=18.0.0"
34
+ }
35
+ }