@aiconstructions/claude-kit 1.0.0 → 1.1.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/src/prompts.js CHANGED
@@ -1,122 +1,124 @@
1
- // src/prompts.js
2
-
3
- export const FRAMEWORK_OPTIONS = {
4
- mobile: [
5
- { name: 'Expo + React Native + NativeWind', value: 'expo-rn-nativewind' },
6
- { name: 'Flutter', value: 'flutter' }
7
- ],
8
- web: [
9
- { name: 'React + Vite + Tailwind CSS', value: 'react-vite-tailwind' },
10
- { name: 'Next.js', value: 'nextjs' },
11
- { name: 'Nuxt.js', value: 'nuxtjs' },
12
- { name: 'Svelte', value: 'svelte' }
13
- ],
14
- backend: [
15
- { name: 'Python + FastAPI + SQLAlchemy', value: 'fastapi-sqlalchemy' },
16
- { name: 'Python + Django', value: 'django' },
17
- { name: 'Node.js + Express', value: 'express' },
18
- { name: 'Node.js + NestJS', value: 'nestjs' }
19
- ]
20
- };
21
-
22
- export const INTEGRATION_OPTIONS = [
23
- { name: 'GitHub Actions (CI/CD)', value: 'cicd', checked: true },
24
- { name: 'AWS (EC2, RDS, S3, CloudFront)', value: 'aws' },
25
- { name: 'Asana', value: 'asana' },
26
- { name: 'n8n (automation)', value: 'n8n' }
27
- ];
28
-
29
- export const PLUGIN_OPTIONS = [
30
- { name: 'Superpowers (skills & workflows)', value: 'superpowers', checked: true },
31
- { name: 'GSD (Get Shit Done)', value: 'gsd', checked: true },
32
- { name: 'ui-ux-pro-max (design intelligence)', value: 'uiUxProMax', checked: true }
33
- ];
34
-
35
- export function buildPromptConfig() {
36
- return [
37
- {
38
- type: 'input',
39
- name: 'projectName',
40
- message: 'Project name:',
41
- default: 'my-app',
42
- validate: (input) => {
43
- if (!input.trim()) return 'Project name is required';
44
- if (/[^a-zA-Z0-9-_]/.test(input)) return 'Use only letters, numbers, hyphens, underscores';
45
- return true;
46
- }
47
- },
48
- {
49
- type: 'checkbox',
50
- name: 'modules',
51
- message: 'Select your modules:',
52
- choices: [
53
- { name: 'Mobile', value: 'mobile' },
54
- { name: 'Web', value: 'web' },
55
- { name: 'Backend', value: 'backend' }
56
- ],
57
- validate: (input) => input.length > 0 ? true : 'Select at least one module'
58
- },
59
- {
60
- type: 'list',
61
- name: 'mobileFramework',
62
- message: 'Mobile framework:',
63
- choices: FRAMEWORK_OPTIONS.mobile,
64
- when: (answers) => answers.modules.includes('mobile')
65
- },
66
- {
67
- type: 'list',
68
- name: 'webFramework',
69
- message: 'Web framework:',
70
- choices: FRAMEWORK_OPTIONS.web,
71
- when: (answers) => answers.modules.includes('web')
72
- },
73
- {
74
- type: 'list',
75
- name: 'backendFramework',
76
- message: 'Backend framework:',
77
- choices: FRAMEWORK_OPTIONS.backend,
78
- when: (answers) => answers.modules.includes('backend')
79
- },
80
- {
81
- type: 'checkbox',
82
- name: 'integrations',
83
- message: 'Integrations:',
84
- choices: INTEGRATION_OPTIONS
85
- },
86
- {
87
- type: 'checkbox',
88
- name: 'plugins',
89
- message: 'Install plugins:',
90
- choices: PLUGIN_OPTIONS
91
- }
92
- ];
93
- }
94
-
95
- export function normalizeAnswers(answers) {
96
- const hasMobile = answers.modules.includes('mobile');
97
- const hasWeb = answers.modules.includes('web');
98
- const hasBackend = answers.modules.includes('backend');
99
-
100
- return {
101
- projectName: answers.projectName,
102
- modules: {
103
- mobile: hasMobile,
104
- web: hasWeb,
105
- backend: hasBackend
106
- },
107
- mobileFramework: answers.mobileFramework || null,
108
- webFramework: answers.webFramework || null,
109
- backendFramework: answers.backendFramework || null,
110
- integrations: {
111
- cicd: answers.integrations.includes('cicd'),
112
- aws: answers.integrations.includes('aws'),
113
- asana: answers.integrations.includes('asana'),
114
- n8n: answers.integrations.includes('n8n')
115
- },
116
- plugins: {
117
- superpowers: answers.plugins.includes('superpowers'),
118
- gsd: answers.plugins.includes('gsd'),
119
- uiUxProMax: answers.plugins.includes('uiUxProMax')
120
- }
121
- };
122
- }
1
+ // src/prompts.js
2
+
3
+ export const FRAMEWORK_OPTIONS = {
4
+ mobile: [
5
+ { name: 'Expo + React Native + NativeWind', value: 'expo-rn-nativewind' },
6
+ { name: 'Flutter', value: 'flutter' }
7
+ ],
8
+ web: [
9
+ { name: 'React + Vite + Tailwind CSS', value: 'react-vite-tailwind' },
10
+ { name: 'Next.js', value: 'nextjs' },
11
+ { name: 'Nuxt.js', value: 'nuxtjs' },
12
+ { name: 'Svelte', value: 'svelte' }
13
+ ],
14
+ backend: [
15
+ { name: 'Python + FastAPI + SQLAlchemy', value: 'fastapi-sqlalchemy' },
16
+ { name: 'Python + Django', value: 'django' },
17
+ { name: 'Node.js + Express', value: 'express' },
18
+ { name: 'Node.js + NestJS', value: 'nestjs' }
19
+ ]
20
+ };
21
+
22
+ export const INTEGRATION_OPTIONS = [
23
+ { name: 'GitHub Actions (CI/CD)', value: 'cicd', checked: true },
24
+ { name: 'AWS (EC2, RDS, S3, CloudFront)', value: 'aws' },
25
+ { name: 'Asana', value: 'asana' },
26
+ { name: 'n8n (automation)', value: 'n8n' }
27
+ ];
28
+
29
+ export const PLUGIN_OPTIONS = [
30
+ { name: 'Superpowers (skills & workflows)', value: 'superpowers', checked: true },
31
+ { name: 'GSD (Get Shit Done)', value: 'gsd', checked: true },
32
+ { name: 'ui-ux-pro-max (design intelligence)', value: 'uiUxProMax', checked: true },
33
+ { name: 'claude-video /watch (video analysis; needs yt-dlp + ffmpeg)', value: 'watch', checked: true }
34
+ ];
35
+
36
+ export function buildPromptConfig() {
37
+ return [
38
+ {
39
+ type: 'input',
40
+ name: 'projectName',
41
+ message: 'Project name:',
42
+ default: 'my-app',
43
+ validate: (input) => {
44
+ if (!input.trim()) return 'Project name is required';
45
+ if (/[^a-zA-Z0-9-_]/.test(input)) return 'Use only letters, numbers, hyphens, underscores';
46
+ return true;
47
+ }
48
+ },
49
+ {
50
+ type: 'checkbox',
51
+ name: 'modules',
52
+ message: 'Select your modules:',
53
+ choices: [
54
+ { name: 'Mobile', value: 'mobile' },
55
+ { name: 'Web', value: 'web' },
56
+ { name: 'Backend', value: 'backend' }
57
+ ],
58
+ validate: (input) => input.length > 0 ? true : 'Select at least one module'
59
+ },
60
+ {
61
+ type: 'list',
62
+ name: 'mobileFramework',
63
+ message: 'Mobile framework:',
64
+ choices: FRAMEWORK_OPTIONS.mobile,
65
+ when: (answers) => answers.modules.includes('mobile')
66
+ },
67
+ {
68
+ type: 'list',
69
+ name: 'webFramework',
70
+ message: 'Web framework:',
71
+ choices: FRAMEWORK_OPTIONS.web,
72
+ when: (answers) => answers.modules.includes('web')
73
+ },
74
+ {
75
+ type: 'list',
76
+ name: 'backendFramework',
77
+ message: 'Backend framework:',
78
+ choices: FRAMEWORK_OPTIONS.backend,
79
+ when: (answers) => answers.modules.includes('backend')
80
+ },
81
+ {
82
+ type: 'checkbox',
83
+ name: 'integrations',
84
+ message: 'Integrations:',
85
+ choices: INTEGRATION_OPTIONS
86
+ },
87
+ {
88
+ type: 'checkbox',
89
+ name: 'plugins',
90
+ message: 'Install plugins:',
91
+ choices: PLUGIN_OPTIONS
92
+ }
93
+ ];
94
+ }
95
+
96
+ export function normalizeAnswers(answers) {
97
+ const hasMobile = answers.modules.includes('mobile');
98
+ const hasWeb = answers.modules.includes('web');
99
+ const hasBackend = answers.modules.includes('backend');
100
+
101
+ return {
102
+ projectName: answers.projectName,
103
+ modules: {
104
+ mobile: hasMobile,
105
+ web: hasWeb,
106
+ backend: hasBackend
107
+ },
108
+ mobileFramework: answers.mobileFramework || null,
109
+ webFramework: answers.webFramework || null,
110
+ backendFramework: answers.backendFramework || null,
111
+ integrations: {
112
+ cicd: answers.integrations.includes('cicd'),
113
+ aws: answers.integrations.includes('aws'),
114
+ asana: answers.integrations.includes('asana'),
115
+ n8n: answers.integrations.includes('n8n')
116
+ },
117
+ plugins: {
118
+ superpowers: answers.plugins.includes('superpowers'),
119
+ gsd: answers.plugins.includes('gsd'),
120
+ uiUxProMax: answers.plugins.includes('uiUxProMax'),
121
+ watch: answers.plugins.includes('watch')
122
+ }
123
+ };
124
+ }