ironbackend 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 IronBackend Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+
3
+ import('../dist/index.js').catch(err => {
4
+ console.error('Failed to load IronBackend CLI:', err.message);
5
+ process.exit(1);
6
+ });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * AI Tools Registry
3
+ * Defines supported AI coding assistants and their configuration output paths
4
+ */
5
+ export interface AIToolConfig {
6
+ id: string;
7
+ name: string;
8
+ description: string;
9
+ outputPath: string;
10
+ /** File format: 'mdc' for Cursor rules, 'md' for standard markdown */
11
+ format: 'mdc' | 'md';
12
+ /** Globs pattern for file matching (used in some formats) */
13
+ globs?: string[];
14
+ }
15
+ /**
16
+ * All supported AI coding tools
17
+ */
18
+ export declare const AI_TOOLS: AIToolConfig[];
19
+ /**
20
+ * Get AI tool by ID
21
+ */
22
+ export declare function getAITool(id: string): AIToolConfig | undefined;
23
+ /**
24
+ * Get all AI tool IDs
25
+ */
26
+ export declare function getAIToolIds(): string[];
27
+ /**
28
+ * Generate content for specific AI tool format
29
+ */
30
+ export declare function formatForAITool(tool: AIToolConfig, content: string): string;
31
+ //# sourceMappingURL=ai-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-tools.d.ts","sourceRoot":"","sources":["../src/ai-tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,MAAM,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,YAAY,EAiElC,CAAC;AAEF;;GAEG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAE9D;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAc3E"}
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ /**
3
+ * AI Tools Registry
4
+ * Defines supported AI coding assistants and their configuration output paths
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.AI_TOOLS = void 0;
8
+ exports.getAITool = getAITool;
9
+ exports.getAIToolIds = getAIToolIds;
10
+ exports.formatForAITool = formatForAITool;
11
+ /**
12
+ * All supported AI coding tools
13
+ */
14
+ exports.AI_TOOLS = [
15
+ {
16
+ id: 'claude',
17
+ name: 'Claude Code',
18
+ description: 'Anthropic Claude Code (CLI & IDE)',
19
+ outputPath: 'CLAUDE.md',
20
+ format: 'md'
21
+ },
22
+ {
23
+ id: 'cursor',
24
+ name: 'Cursor',
25
+ description: 'Cursor IDE with .mdc rules',
26
+ outputPath: '.cursor/rules/ironbackend.mdc',
27
+ format: 'mdc',
28
+ globs: ['**/*.ts', '**/*.js', '**/*.py', '**/*.java', '**/*.cs', '**/*.go']
29
+ },
30
+ {
31
+ id: 'windsurf',
32
+ name: 'Windsurf',
33
+ description: 'Codeium Windsurf IDE',
34
+ outputPath: '.windsurfrules',
35
+ format: 'md'
36
+ },
37
+ {
38
+ id: 'antigravity',
39
+ name: 'Antigravity',
40
+ description: 'Google Antigravity coding assistant',
41
+ outputPath: '.gemini/settings/prompts.md',
42
+ format: 'md'
43
+ },
44
+ {
45
+ id: 'copilot',
46
+ name: 'GitHub Copilot',
47
+ description: 'GitHub Copilot with custom instructions',
48
+ outputPath: '.github/copilot-instructions.md',
49
+ format: 'md'
50
+ },
51
+ {
52
+ id: 'kiro',
53
+ name: 'Kiro',
54
+ description: 'AWS Kiro IDE',
55
+ outputPath: '.kiro/rules.md',
56
+ format: 'md'
57
+ },
58
+ {
59
+ id: 'codex',
60
+ name: 'Codex',
61
+ description: 'OpenAI Codex CLI',
62
+ outputPath: 'AGENTS.md',
63
+ format: 'md'
64
+ },
65
+ {
66
+ id: 'gemini',
67
+ name: 'Gemini CLI',
68
+ description: 'Google Gemini CLI',
69
+ outputPath: 'GEMINI.md',
70
+ format: 'md'
71
+ },
72
+ {
73
+ id: 'trae',
74
+ name: 'Trae',
75
+ description: 'Trae AI IDE',
76
+ outputPath: '.trae/rules.md',
77
+ format: 'md'
78
+ }
79
+ ];
80
+ /**
81
+ * Get AI tool by ID
82
+ */
83
+ function getAITool(id) {
84
+ return exports.AI_TOOLS.find(tool => tool.id === id);
85
+ }
86
+ /**
87
+ * Get all AI tool IDs
88
+ */
89
+ function getAIToolIds() {
90
+ return exports.AI_TOOLS.map(tool => tool.id);
91
+ }
92
+ /**
93
+ * Generate content for specific AI tool format
94
+ */
95
+ function formatForAITool(tool, content) {
96
+ if (tool.format === 'mdc') {
97
+ // Cursor MDC format with frontmatter
98
+ const globs = tool.globs || ['**/*'];
99
+ return `---
100
+ description: IronBackend - Backend Architecture Intelligence
101
+ globs: ${JSON.stringify(globs)}
102
+ ---
103
+
104
+ ${content}`;
105
+ }
106
+ // Standard markdown format
107
+ return content;
108
+ }
109
+ //# sourceMappingURL=ai-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-tools.js","sourceRoot":"","sources":["../src/ai-tools.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAsFH,8BAEC;AAKD,oCAEC;AAKD,0CAcC;AArGD;;GAEG;AACU,QAAA,QAAQ,GAAmB;IACpC;QACI,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,mCAAmC;QAChD,UAAU,EAAE,WAAW;QACvB,MAAM,EAAE,IAAI;KACf;IACD;QACI,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,4BAA4B;QACzC,UAAU,EAAE,+BAA+B;QAC3C,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC;KAC9E;IACD;QACI,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,sBAAsB;QACnC,UAAU,EAAE,gBAAgB;QAC5B,MAAM,EAAE,IAAI;KACf;IACD;QACI,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,qCAAqC;QAClD,UAAU,EAAE,6BAA6B;QACzC,MAAM,EAAE,IAAI;KACf;IACD;QACI,EAAE,EAAE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R,CAAC;IAED,2BAA2B;IAC3B,OAAO,OAAO,CAAC;AACnB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Doctor Command
3
+ * Validate IronBackend configuration
4
+ */
5
+ import { Command } from 'commander';
6
+ /**
7
+ * Create the doctor command
8
+ */
9
+ export declare function createDoctorCommand(): Command;
10
+ //# sourceMappingURL=doctor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAepC;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAW7C"}
@@ -0,0 +1,290 @@
1
+ "use strict";
2
+ /**
3
+ * Doctor Command
4
+ * Validate IronBackend configuration
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
19
+ }) : function(o, v) {
20
+ o["default"] = v;
21
+ });
22
+ var __importStar = (this && this.__importStar) || (function () {
23
+ var ownKeys = function(o) {
24
+ ownKeys = Object.getOwnPropertyNames || function (o) {
25
+ var ar = [];
26
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27
+ return ar;
28
+ };
29
+ return ownKeys(o);
30
+ };
31
+ return function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ })();
39
+ var __importDefault = (this && this.__importDefault) || function (mod) {
40
+ return (mod && mod.__esModule) ? mod : { "default": mod };
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.createDoctorCommand = createDoctorCommand;
44
+ const commander_1 = require("commander");
45
+ const fs = __importStar(require("fs"));
46
+ const path = __importStar(require("path"));
47
+ const chalk_1 = __importDefault(require("chalk"));
48
+ const core_1 = require("@ironbackend/core");
49
+ const IRONBACKEND_DIR = '.ironbackend';
50
+ const CONFIG_FILE = 'config.json';
51
+ /**
52
+ * Create the doctor command
53
+ */
54
+ function createDoctorCommand() {
55
+ const cmd = new commander_1.Command('doctor');
56
+ cmd
57
+ .description('Validate IronBackend configuration and check for issues')
58
+ .option('-v, --verbose', 'Show detailed output')
59
+ .action(async (options) => {
60
+ await runDoctor(options);
61
+ });
62
+ return cmd;
63
+ }
64
+ async function runDoctor(options) {
65
+ console.log(chalk_1.default.bold.blue('\n🩺 IronBackend Doctor\n'));
66
+ const checks = [];
67
+ const cwd = process.cwd();
68
+ // Check 1: .ironbackend directory exists
69
+ const ironbackendPath = path.join(cwd, IRONBACKEND_DIR);
70
+ if (fs.existsSync(ironbackendPath)) {
71
+ checks.push({
72
+ name: 'Configuration directory',
73
+ status: 'pass',
74
+ message: '.ironbackend/ directory exists'
75
+ });
76
+ }
77
+ else {
78
+ checks.push({
79
+ name: 'Configuration directory',
80
+ status: 'fail',
81
+ message: '.ironbackend/ directory not found. Run: ironbackend init'
82
+ });
83
+ }
84
+ // Check 2: config.json exists and is valid
85
+ const configPath = path.join(ironbackendPath, CONFIG_FILE);
86
+ let config = null;
87
+ if (fs.existsSync(configPath)) {
88
+ try {
89
+ config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
90
+ checks.push({
91
+ name: 'Configuration file',
92
+ status: 'pass',
93
+ message: 'config.json is valid JSON'
94
+ });
95
+ }
96
+ catch (e) {
97
+ checks.push({
98
+ name: 'Configuration file',
99
+ status: 'fail',
100
+ message: 'config.json is invalid JSON'
101
+ });
102
+ }
103
+ }
104
+ else {
105
+ checks.push({
106
+ name: 'Configuration file',
107
+ status: 'fail',
108
+ message: 'config.json not found'
109
+ });
110
+ }
111
+ // Check 3: Version compatibility
112
+ if (config) {
113
+ if (config.version === core_1.VERSION) {
114
+ checks.push({
115
+ name: 'Version',
116
+ status: 'pass',
117
+ message: `Version ${config.version} is current`
118
+ });
119
+ }
120
+ else {
121
+ checks.push({
122
+ name: 'Version',
123
+ status: 'warn',
124
+ message: `Config version ${config.version} differs from CLI version ${core_1.VERSION}`
125
+ });
126
+ }
127
+ }
128
+ // Check 4: Style is valid
129
+ if (config && config.style) {
130
+ const style = (0, core_1.getStyle)(config.style);
131
+ if (style) {
132
+ checks.push({
133
+ name: 'Architecture style',
134
+ status: 'pass',
135
+ message: `Style "${style.name}" is valid`
136
+ });
137
+ }
138
+ else {
139
+ checks.push({
140
+ name: 'Architecture style',
141
+ status: 'fail',
142
+ message: `Unknown style: ${config.style}. Available: ${(0, core_1.getStyleIds)().join(', ')}`
143
+ });
144
+ }
145
+ }
146
+ else if (config) {
147
+ checks.push({
148
+ name: 'Architecture style',
149
+ status: 'warn',
150
+ message: 'No style selected. Run: ironbackend select style <name>'
151
+ });
152
+ }
153
+ // Check 5: Stack is valid
154
+ if (config && config.stack) {
155
+ const stack = (0, core_1.getStack)(config.stack);
156
+ if (stack) {
157
+ checks.push({
158
+ name: 'Tech stack',
159
+ status: 'pass',
160
+ message: `Stack "${stack.name}" is valid`
161
+ });
162
+ }
163
+ else {
164
+ checks.push({
165
+ name: 'Tech stack',
166
+ status: 'fail',
167
+ message: `Unknown stack: ${config.stack}. Available: ${(0, core_1.getStackIds)().join(', ')}`
168
+ });
169
+ }
170
+ }
171
+ else if (config) {
172
+ checks.push({
173
+ name: 'Tech stack',
174
+ status: 'warn',
175
+ message: 'No stack selected. Run: ironbackend select stack <name>'
176
+ });
177
+ }
178
+ // Check 6: Prompts directory exists
179
+ const promptsPath = path.join(ironbackendPath, 'prompts');
180
+ if (fs.existsSync(promptsPath)) {
181
+ const promptFiles = fs.readdirSync(promptsPath);
182
+ if (promptFiles.length > 0) {
183
+ checks.push({
184
+ name: 'Prompt files',
185
+ status: 'pass',
186
+ message: `${promptFiles.length} prompt files generated`
187
+ });
188
+ }
189
+ else {
190
+ checks.push({
191
+ name: 'Prompt files',
192
+ status: 'warn',
193
+ message: 'Prompts directory is empty. Run: ironbackend export prompts'
194
+ });
195
+ }
196
+ }
197
+ else {
198
+ checks.push({
199
+ name: 'Prompt files',
200
+ status: 'warn',
201
+ message: 'Prompts directory not found'
202
+ });
203
+ }
204
+ // Check 7: Cursor integration
205
+ const cursorRulesPath = path.join(cwd, '.cursor', 'rules', 'ironbackend.mdc');
206
+ if (fs.existsSync(cursorRulesPath)) {
207
+ checks.push({
208
+ name: 'Cursor integration',
209
+ status: 'pass',
210
+ message: '.cursor/rules/ironbackend.mdc exists'
211
+ });
212
+ }
213
+ else {
214
+ checks.push({
215
+ name: 'Cursor integration',
216
+ status: 'warn',
217
+ message: 'Cursor rules not found. Run: ironbackend export prompts'
218
+ });
219
+ }
220
+ // Check 8: Prompts are up to date
221
+ if (config && config.style && config.stack && config.updatedAt) {
222
+ const systemPromptPath = path.join(promptsPath, 'system-prompt.md');
223
+ if (fs.existsSync(systemPromptPath)) {
224
+ const promptStat = fs.statSync(systemPromptPath);
225
+ const configDate = new Date(config.updatedAt);
226
+ if (promptStat.mtime >= configDate) {
227
+ checks.push({
228
+ name: 'Prompt freshness',
229
+ status: 'pass',
230
+ message: 'Prompts are up to date'
231
+ });
232
+ }
233
+ else {
234
+ checks.push({
235
+ name: 'Prompt freshness',
236
+ status: 'warn',
237
+ message: 'Prompts may be outdated. Run: ironbackend export prompts'
238
+ });
239
+ }
240
+ }
241
+ }
242
+ // Print results
243
+ console.log(chalk_1.default.bold('Checks:\n'));
244
+ let passCount = 0;
245
+ let warnCount = 0;
246
+ let failCount = 0;
247
+ for (const check of checks) {
248
+ let icon;
249
+ let color;
250
+ switch (check.status) {
251
+ case 'pass':
252
+ icon = '✓';
253
+ color = chalk_1.default.green;
254
+ passCount++;
255
+ break;
256
+ case 'warn':
257
+ icon = '⚠';
258
+ color = chalk_1.default.yellow;
259
+ warnCount++;
260
+ break;
261
+ case 'fail':
262
+ icon = '✗';
263
+ color = chalk_1.default.red;
264
+ failCount++;
265
+ break;
266
+ }
267
+ console.log(color(` ${icon} ${check.name}`));
268
+ if (options.verbose || check.status !== 'pass') {
269
+ console.log(chalk_1.default.gray(` ${check.message}`));
270
+ }
271
+ }
272
+ // Summary
273
+ console.log(chalk_1.default.bold('\nSummary:'));
274
+ console.log(chalk_1.default.green(` ✓ ${passCount} passed`));
275
+ if (warnCount > 0)
276
+ console.log(chalk_1.default.yellow(` ⚠ ${warnCount} warnings`));
277
+ if (failCount > 0)
278
+ console.log(chalk_1.default.red(` ✗ ${failCount} failed`));
279
+ if (failCount > 0) {
280
+ console.log(chalk_1.default.red('\n❌ Some checks failed. Fix the issues above.'));
281
+ process.exit(1);
282
+ }
283
+ else if (warnCount > 0) {
284
+ console.log(chalk_1.default.yellow('\n⚠️ Some warnings found. Consider addressing them.'));
285
+ }
286
+ else {
287
+ console.log(chalk_1.default.green('\n✅ All checks passed!'));
288
+ }
289
+ }
290
+ //# sourceMappingURL=doctor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBH,kDAWC;AA7BD,yCAAoC;AACpC,uCAAyB;AACzB,2CAA6B;AAC7B,kDAA0B;AAC1B,4CAA0F;AAE1F,MAAM,eAAe,GAAG,cAAc,CAAC;AACvC,MAAM,WAAW,GAAG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AAK,CAAC,MAAM,CAAC,sDAAsD,CAAC,CAAC,CAAC;IACtF,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACvD,CAAC;AACL,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Export Command
3
+ * Export prompts to various formats
4
+ */
5
+ import { Command } from 'commander';
6
+ /**
7
+ * Create the export command
8
+ */
9
+ export declare function createExportCommand(): Command;
10
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/commands/export.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAyB7C"}