@intentsolutions/blueprint 2.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/dist/cli.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Intent Blueprint CLI
4
+ * Generate enterprise documentation from the command line
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;GAGG"}
package/dist/cli.js ADDED
@@ -0,0 +1,270 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Intent Blueprint CLI
4
+ * Generate enterprise documentation from the command line
5
+ */
6
+ import { Command } from 'commander';
7
+ import inquirer from 'inquirer';
8
+ import chalk from 'chalk';
9
+ import ora from 'ora';
10
+ import { listTemplates, generateAllDocuments, writeDocuments, getTemplatesForScope, } from '@intentsolutions/blueprint-core';
11
+ const program = new Command();
12
+ program
13
+ .name('blueprint')
14
+ .description('Intent Blueprint - Enterprise AI Documentation Generator')
15
+ .version('2.0.0');
16
+ // Init command
17
+ program
18
+ .command('init')
19
+ .description('Initialize Intent Blueprint in your project')
20
+ .action(async () => {
21
+ console.log(chalk.blue('\n🚀 Intent Blueprint - Project Initialization\n'));
22
+ const answers = await inquirer.prompt([
23
+ {
24
+ type: 'input',
25
+ name: 'projectName',
26
+ message: 'Project name:',
27
+ validate: (input) => input.length > 0 || 'Project name is required',
28
+ },
29
+ {
30
+ type: 'input',
31
+ name: 'projectDescription',
32
+ message: 'Brief project description:',
33
+ validate: (input) => input.length > 0 || 'Description is required',
34
+ },
35
+ {
36
+ type: 'list',
37
+ name: 'scope',
38
+ message: 'Documentation scope:',
39
+ choices: [
40
+ { name: 'MVP (4 essential docs)', value: 'mvp' },
41
+ { name: 'Standard (12 core docs)', value: 'standard' },
42
+ { name: 'Comprehensive (22 docs)', value: 'comprehensive' },
43
+ ],
44
+ default: 'standard',
45
+ },
46
+ {
47
+ type: 'list',
48
+ name: 'audience',
49
+ message: 'Target audience:',
50
+ choices: [
51
+ { name: 'Startup (lean, fast)', value: 'startup' },
52
+ { name: 'Business (balanced)', value: 'business' },
53
+ { name: 'Enterprise (thorough)', value: 'enterprise' },
54
+ ],
55
+ default: 'business',
56
+ },
57
+ ]);
58
+ const spinner = ora('Generating documentation...').start();
59
+ try {
60
+ const context = {
61
+ projectName: answers.projectName,
62
+ projectDescription: answers.projectDescription,
63
+ scope: answers.scope,
64
+ audience: answers.audience,
65
+ };
66
+ const docs = generateAllDocuments(context);
67
+ const outputDir = `./docs/${answers.projectName.toLowerCase().replace(/\s+/g, '-')}`;
68
+ const files = writeDocuments(docs, outputDir);
69
+ spinner.succeed(chalk.green(`Generated ${docs.length} documents!`));
70
+ console.log(chalk.dim(`\nOutput: ${outputDir}`));
71
+ console.log(chalk.dim(`Files: ${files.length}`));
72
+ }
73
+ catch (error) {
74
+ spinner.fail(chalk.red('Failed to generate documentation'));
75
+ console.error(error);
76
+ process.exit(1);
77
+ }
78
+ });
79
+ // Generate command
80
+ program
81
+ .command('generate')
82
+ .description('Generate documentation with options')
83
+ .option('-n, --name <name>', 'Project name')
84
+ .option('-d, --description <desc>', 'Project description')
85
+ .option('-s, --scope <scope>', 'Scope: mvp, standard, comprehensive', 'standard')
86
+ .option('-a, --audience <audience>', 'Audience: startup, business, enterprise', 'business')
87
+ .option('-o, --output <dir>', 'Output directory')
88
+ .action(async (options) => {
89
+ let projectName = options.name;
90
+ let projectDescription = options.description;
91
+ if (!projectName || !projectDescription) {
92
+ const answers = await inquirer.prompt([
93
+ {
94
+ type: 'input',
95
+ name: 'projectName',
96
+ message: 'Project name:',
97
+ when: !projectName,
98
+ validate: (input) => input.length > 0 || 'Required',
99
+ },
100
+ {
101
+ type: 'input',
102
+ name: 'projectDescription',
103
+ message: 'Project description:',
104
+ when: !projectDescription,
105
+ validate: (input) => input.length > 0 || 'Required',
106
+ },
107
+ ]);
108
+ projectName = projectName || answers.projectName;
109
+ projectDescription = projectDescription || answers.projectDescription;
110
+ }
111
+ const spinner = ora('Generating documentation...').start();
112
+ try {
113
+ const context = {
114
+ projectName,
115
+ projectDescription,
116
+ scope: options.scope,
117
+ audience: options.audience,
118
+ };
119
+ const docs = generateAllDocuments(context);
120
+ const outputDir = options.output || `./docs/${projectName.toLowerCase().replace(/\s+/g, '-')}`;
121
+ const files = writeDocuments(docs, outputDir);
122
+ spinner.succeed(chalk.green(`Generated ${docs.length} documents!`));
123
+ console.log(chalk.dim(`\nOutput: ${outputDir}`));
124
+ }
125
+ catch (error) {
126
+ spinner.fail(chalk.red('Generation failed'));
127
+ console.error(error);
128
+ process.exit(1);
129
+ }
130
+ });
131
+ // Interview command
132
+ program
133
+ .command('interview')
134
+ .description('Interactive AI-guided documentation interview')
135
+ .action(async () => {
136
+ console.log(chalk.blue('\n🎤 Intent Blueprint - AI Interview Mode\n'));
137
+ console.log(chalk.dim('Answer the following questions to generate tailored documentation.\n'));
138
+ const answers = await inquirer.prompt([
139
+ {
140
+ type: 'input',
141
+ name: 'projectName',
142
+ message: chalk.cyan('What is the name of your project?'),
143
+ validate: (input) => input.length > 0 || 'Required',
144
+ },
145
+ {
146
+ type: 'editor',
147
+ name: 'projectDescription',
148
+ message: chalk.cyan('Describe your project in detail (opens editor):'),
149
+ },
150
+ {
151
+ type: 'list',
152
+ name: 'projectType',
153
+ message: chalk.cyan('What type of project is this?'),
154
+ choices: ['SaaS Web App', 'Mobile App', 'API/Backend', 'CLI Tool', 'Library/SDK', 'Desktop App', 'Other'],
155
+ },
156
+ {
157
+ type: 'checkbox',
158
+ name: 'techStack',
159
+ message: chalk.cyan('Select your tech stack:'),
160
+ choices: ['TypeScript', 'Python', 'Go', 'Rust', 'React', 'Vue', 'Node.js', 'PostgreSQL', 'MongoDB', 'Redis', 'AWS', 'GCP', 'Docker', 'Kubernetes'],
161
+ },
162
+ {
163
+ type: 'list',
164
+ name: 'scope',
165
+ message: chalk.cyan('How comprehensive should the documentation be?'),
166
+ choices: [
167
+ { name: 'MVP - Just the essentials (4 docs)', value: 'mvp' },
168
+ { name: 'Standard - Core documentation (12 docs)', value: 'standard' },
169
+ { name: 'Comprehensive - Full enterprise suite (22 docs)', value: 'comprehensive' },
170
+ ],
171
+ },
172
+ {
173
+ type: 'list',
174
+ name: 'audience',
175
+ message: chalk.cyan('Who is your target audience?'),
176
+ choices: [
177
+ { name: 'Startup - Move fast, iterate often', value: 'startup' },
178
+ { name: 'Business - Balanced approach', value: 'business' },
179
+ { name: 'Enterprise - Thorough, compliance-ready', value: 'enterprise' },
180
+ ],
181
+ },
182
+ {
183
+ type: 'input',
184
+ name: 'timeline',
185
+ message: chalk.cyan('What is your target launch timeline?'),
186
+ default: 'TBD',
187
+ },
188
+ {
189
+ type: 'input',
190
+ name: 'team',
191
+ message: chalk.cyan('How large is your team?'),
192
+ default: '1-5',
193
+ },
194
+ ]);
195
+ console.log(chalk.green('\n✅ Interview complete!\n'));
196
+ const { proceed } = await inquirer.prompt([
197
+ {
198
+ type: 'confirm',
199
+ name: 'proceed',
200
+ message: 'Generate documentation now?',
201
+ default: true,
202
+ },
203
+ ]);
204
+ if (proceed) {
205
+ const spinner = ora('Generating documentation...').start();
206
+ try {
207
+ const context = {
208
+ projectName: answers.projectName,
209
+ projectDescription: answers.projectDescription,
210
+ scope: answers.scope,
211
+ audience: answers.audience,
212
+ projectType: answers.projectType,
213
+ techStack: answers.techStack,
214
+ timeline: answers.timeline,
215
+ team: answers.team,
216
+ };
217
+ const docs = generateAllDocuments(context);
218
+ const outputDir = `./docs/${answers.projectName.toLowerCase().replace(/\s+/g, '-')}`;
219
+ const files = writeDocuments(docs, outputDir);
220
+ spinner.succeed(chalk.green(`Generated ${docs.length} documents!`));
221
+ console.log(chalk.dim(`\nOutput: ${outputDir}`));
222
+ console.log(chalk.dim(`Files: ${files.length}`));
223
+ }
224
+ catch (error) {
225
+ spinner.fail(chalk.red('Generation failed'));
226
+ console.error(error);
227
+ process.exit(1);
228
+ }
229
+ }
230
+ });
231
+ // List command
232
+ program
233
+ .command('list')
234
+ .description('List available templates')
235
+ .option('-s, --scope <scope>', 'Filter by scope: mvp, standard, comprehensive')
236
+ .action((options) => {
237
+ console.log(chalk.blue('\n📚 Available Templates\n'));
238
+ const templates = options.scope ? getTemplatesForScope(options.scope) : listTemplates();
239
+ const grouped = templates.reduce((acc, t) => {
240
+ if (!acc[t.category])
241
+ acc[t.category] = [];
242
+ acc[t.category].push(t);
243
+ return acc;
244
+ }, {});
245
+ for (const [category, temps] of Object.entries(grouped)) {
246
+ console.log(chalk.yellow(`\n${category}`));
247
+ for (const t of temps) {
248
+ console.log(` ${chalk.cyan(t.id.padEnd(25))} ${t.name}`);
249
+ }
250
+ }
251
+ console.log(chalk.dim(`\nTotal: ${templates.length} templates`));
252
+ });
253
+ // Export command (placeholder)
254
+ program
255
+ .command('export <target>')
256
+ .description('Export to GitHub, Linear, Jira, or Notion')
257
+ .option('-p, --project <name>', 'Project name')
258
+ .action((target, options) => {
259
+ console.log(chalk.yellow(`\n⚠️ Export to ${target} coming soon!\n`));
260
+ console.log(chalk.dim('For now, use the generated markdown files directly.'));
261
+ });
262
+ // Sync command (placeholder)
263
+ program
264
+ .command('sync')
265
+ .description('Bi-directional sync with project management tools')
266
+ .action(() => {
267
+ console.log(chalk.yellow('\n⚠️ Sync feature coming soon!\n'));
268
+ });
269
+ program.parse();
270
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd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;IAC1B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,MAAM,iBAAiB,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,qDAAqD,CAAC,CAAC,CAAC;AAChF,CAAC,CAAC,CAAC;AAEL,6BAA6B;AAC7B,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,mDAAmD,CAAC;KAChE,MAAM,CAAC,GAAG,EAAE;IACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC,CAAC;AACjE,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@intentsolutions/blueprint",
3
+ "version": "2.0.0",
4
+ "description": "CLI for Intent Blueprint Docs - Generate enterprise documentation with AI",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "blueprint": "./dist/cli.js"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "dev": "tsc --watch",
17
+ "clean": "rm -rf dist",
18
+ "test": "vitest",
19
+ "start": "node dist/cli.js"
20
+ },
21
+ "keywords": [
22
+ "cli",
23
+ "documentation",
24
+ "prd-generator",
25
+ "ai-documentation",
26
+ "enterprise-templates"
27
+ ],
28
+ "author": "Jeremy Longshore <jeremy@intentsolutions.io>",
29
+ "license": "Apache-2.0",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/intent-solutions-io/intent-blueprint-docs.git",
33
+ "directory": "packages/cli"
34
+ },
35
+ "dependencies": {
36
+ "@intentsolutions/blueprint-core": "*",
37
+ "commander": "^12.0.0",
38
+ "inquirer": "^9.2.0",
39
+ "chalk": "^5.3.0",
40
+ "ora": "^8.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "@types/node": "^20.0.0",
44
+ "@types/inquirer": "^9.0.0",
45
+ "typescript": "^5.3.0",
46
+ "vitest": "^1.0.0"
47
+ },
48
+ "engines": {
49
+ "node": ">=18.0.0"
50
+ }
51
+ }