@soleri/cli 1.6.0 → 1.8.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.
@@ -0,0 +1,301 @@
1
+ /**
2
+ * Playbook data for the guided wizard.
3
+ * Provides curated options with self-explanatory hints,
4
+ * organized by category. Each list also supports a "custom" escape hatch
5
+ * with examples and anti-examples so the user is never staring at a blank cursor.
6
+ */
7
+
8
+ // ─── Domains ────────────────────────────────────────────────
9
+
10
+ export interface DomainOption {
11
+ value: string;
12
+ label: string;
13
+ hint: string;
14
+ }
15
+
16
+ export const DOMAIN_OPTIONS: DomainOption[] = [
17
+ {
18
+ value: 'security',
19
+ label: 'security',
20
+ hint: 'Vulnerability scanning, threat modeling, secrets detection',
21
+ },
22
+ {
23
+ value: 'code-review',
24
+ label: 'code-review',
25
+ hint: 'Pattern enforcement, anti-pattern detection, PR review',
26
+ },
27
+ {
28
+ value: 'testing',
29
+ label: 'testing',
30
+ hint: 'Test generation, coverage analysis, mutation testing',
31
+ },
32
+ {
33
+ value: 'api-design',
34
+ label: 'api-design',
35
+ hint: 'REST/GraphQL contracts, versioning, error handling',
36
+ },
37
+ {
38
+ value: 'performance',
39
+ label: 'performance',
40
+ hint: 'Budgets, profiling, bundle size, query optimization',
41
+ },
42
+ {
43
+ value: 'accessibility',
44
+ label: 'accessibility',
45
+ hint: 'WCAG compliance, screen readers, keyboard navigation',
46
+ },
47
+ {
48
+ value: 'architecture',
49
+ label: 'architecture',
50
+ hint: 'System design, boundaries, dependency management',
51
+ },
52
+ {
53
+ value: 'database',
54
+ label: 'database',
55
+ hint: 'Schema design, migrations, indexing, query tuning',
56
+ },
57
+ {
58
+ value: 'documentation',
59
+ label: 'documentation',
60
+ hint: 'API docs, READMEs, changelogs, code comments',
61
+ },
62
+ { value: 'devops', label: 'devops', hint: 'CI/CD pipelines, infrastructure as code, deployment' },
63
+ ];
64
+
65
+ export const CUSTOM_DOMAIN_GUIDANCE = {
66
+ instruction: 'Define a custom domain (kebab-case)',
67
+ examples: [
68
+ 'graphql-federation — Schema stitching, subgraph validation, entity resolution',
69
+ 'data-pipeline — ETL jobs, stream processing, data quality checks',
70
+ 'mobile-ux — Touch targets, gesture handling, responsive layouts',
71
+ ],
72
+ antiExamples: [
73
+ 'stuff — too vague, what kind of stuff?',
74
+ 'MyDomain — must be kebab-case, not camelCase',
75
+ ],
76
+ };
77
+
78
+ // ─── Principles ─────────────────────────────────────────────
79
+
80
+ export interface PrincipleCategory {
81
+ label: string;
82
+ options: PrincipleOption[];
83
+ }
84
+
85
+ export interface PrincipleOption {
86
+ value: string;
87
+ label: string;
88
+ }
89
+
90
+ export const PRINCIPLE_CATEGORIES: PrincipleCategory[] = [
91
+ {
92
+ label: 'Quality',
93
+ options: [
94
+ { value: 'Simplicity over cleverness', label: 'Simplicity over cleverness' },
95
+ { value: 'Convention over configuration', label: 'Convention over configuration' },
96
+ { value: 'Test everything that can break', label: 'Test everything that can break' },
97
+ { value: 'Respect existing patterns', label: 'Respect existing patterns' },
98
+ ],
99
+ },
100
+ {
101
+ label: 'Safety',
102
+ options: [
103
+ { value: 'Security first', label: 'Security first' },
104
+ { value: 'Fail closed, not open', label: 'Fail closed, not open' },
105
+ { value: 'Zero trust by default', label: 'Zero trust by default' },
106
+ { value: 'Least privilege always', label: 'Least privilege always' },
107
+ ],
108
+ },
109
+ {
110
+ label: 'Developer Experience',
111
+ options: [
112
+ { value: 'Actionable feedback only', label: 'Actionable feedback only' },
113
+ { value: 'Explain the why, not just the what', label: 'Explain the why, not just the what' },
114
+ {
115
+ value: 'Every comment includes a fix suggestion',
116
+ label: 'Every comment includes a fix suggestion',
117
+ },
118
+ {
119
+ value: 'Design for the consumer, not the implementer',
120
+ label: 'Design for the consumer, not the implementer',
121
+ },
122
+ ],
123
+ },
124
+ {
125
+ label: 'Reliability',
126
+ options: [
127
+ {
128
+ value: 'Graceful degradation over hard failures',
129
+ label: 'Graceful degradation over hard failures',
130
+ },
131
+ { value: 'Automate everything repeatable', label: 'Automate everything repeatable' },
132
+ {
133
+ value: 'Observability built in from day one',
134
+ label: 'Observability built in from day one',
135
+ },
136
+ { value: 'Every migration must be reversible', label: 'Every migration must be reversible' },
137
+ ],
138
+ },
139
+ ];
140
+
141
+ export const CUSTOM_PRINCIPLE_GUIDANCE = {
142
+ instruction: 'Write a custom principle',
143
+ examples: [
144
+ 'Never suggest any in production without a feature flag',
145
+ 'Prefer composition over inheritance',
146
+ 'Every public API must have a deprecation path before removal',
147
+ ],
148
+ antiExamples: [
149
+ 'Write good code — too vague, what does "good" mean?',
150
+ 'Follow best practices — which ones? Be specific.',
151
+ ],
152
+ };
153
+
154
+ // ─── Skills ─────────────────────────────────────────────────
155
+
156
+ /** Core skills — always included, never shown in picker. */
157
+ export const CORE_SKILLS = [
158
+ 'brainstorming',
159
+ 'systematic-debugging',
160
+ 'verification-before-completion',
161
+ 'health-check',
162
+ 'context-resume',
163
+ ] as const;
164
+
165
+ export interface SkillCategory {
166
+ label: string;
167
+ options: SkillOption[];
168
+ }
169
+
170
+ export interface SkillOption {
171
+ value: string;
172
+ label: string;
173
+ hint: string;
174
+ }
175
+
176
+ export const SKILL_CATEGORIES: SkillCategory[] = [
177
+ {
178
+ label: 'Planning & Execution',
179
+ options: [
180
+ {
181
+ value: 'writing-plans',
182
+ label: 'writing-plans',
183
+ hint: 'Structured multi-step planning before code changes',
184
+ },
185
+ {
186
+ value: 'executing-plans',
187
+ label: 'executing-plans',
188
+ hint: 'Execute approved plans with review checkpoints',
189
+ },
190
+ ],
191
+ },
192
+ {
193
+ label: 'Knowledge & Learning',
194
+ options: [
195
+ {
196
+ value: 'vault-navigator',
197
+ label: 'vault-navigator',
198
+ hint: 'Deep-dive vault search and exploration',
199
+ },
200
+ {
201
+ value: 'vault-capture',
202
+ label: 'vault-capture',
203
+ hint: 'Persist lessons learned to the knowledge vault',
204
+ },
205
+ {
206
+ value: 'knowledge-harvest',
207
+ label: 'knowledge-harvest',
208
+ hint: 'Extract patterns from completed work',
209
+ },
210
+ {
211
+ value: 'brain-debrief',
212
+ label: 'brain-debrief',
213
+ hint: 'Post-task intelligence summary and debriefing',
214
+ },
215
+ ],
216
+ },
217
+ {
218
+ label: 'Code Quality',
219
+ options: [
220
+ {
221
+ value: 'code-patrol',
222
+ label: 'code-patrol',
223
+ hint: 'Scan for anti-patterns and code violations',
224
+ },
225
+ {
226
+ value: 'test-driven-development',
227
+ label: 'test-driven-development',
228
+ hint: 'TDD workflow: red, green, refactor',
229
+ },
230
+ {
231
+ value: 'fix-and-learn',
232
+ label: 'fix-and-learn',
233
+ hint: 'Fix bugs and capture the lesson for next time',
234
+ },
235
+ ],
236
+ },
237
+ {
238
+ label: 'Team & Process',
239
+ options: [
240
+ {
241
+ value: 'retrospective',
242
+ label: 'retrospective',
243
+ hint: 'End-of-session retrospective and reflection',
244
+ },
245
+ {
246
+ value: 'second-opinion',
247
+ label: 'second-opinion',
248
+ hint: 'Get a fresh perspective on tough decisions',
249
+ },
250
+ {
251
+ value: 'onboard-me',
252
+ label: 'onboard-me',
253
+ hint: 'Guided codebase onboarding for new team members',
254
+ },
255
+ ],
256
+ },
257
+ ];
258
+
259
+ /** Flat list of all optional skill values. */
260
+ export const ALL_OPTIONAL_SKILLS = SKILL_CATEGORIES.flatMap((c) => c.options.map((o) => o.value));
261
+
262
+ // ─── Tones ──────────────────────────────────────────────────
263
+
264
+ export interface ToneOption {
265
+ value: 'precise' | 'mentor' | 'pragmatic';
266
+ label: string;
267
+ hint: string;
268
+ }
269
+
270
+ export const TONE_OPTIONS: ToneOption[] = [
271
+ { value: 'precise', label: 'Precise', hint: 'Direct, factual, minimal commentary' },
272
+ { value: 'mentor', label: 'Mentor', hint: 'Educational, explains the "why" behind suggestions' },
273
+ { value: 'pragmatic', label: 'Pragmatic', hint: 'Balanced, focuses on actionable outcomes' },
274
+ ];
275
+
276
+ // ─── Custom field guidance (role, description, greeting) ────
277
+
278
+ export const CUSTOM_ROLE_GUIDANCE = {
279
+ instruction: 'Describe what your agent does (one sentence)',
280
+ examples: [
281
+ 'Enforces accessibility standards across React components',
282
+ 'Generates and maintains API documentation from code',
283
+ 'Monitors performance budgets and flags regressions',
284
+ ],
285
+ };
286
+
287
+ export const CUSTOM_DESCRIPTION_GUIDANCE = {
288
+ instruction: 'Describe your agent in detail (10-500 characters)',
289
+ examples: [
290
+ 'This agent validates GraphQL schemas against federation rules, checks for breaking changes, and ensures consistent naming conventions across subgraphs.',
291
+ ],
292
+ };
293
+
294
+ export const CUSTOM_GREETING_GUIDANCE = {
295
+ instruction: 'Write a custom greeting (first thing users see)',
296
+ examples: [
297
+ "Hola! I'm Salvador — your design system guardian.",
298
+ 'Ready to review. Drop a PR link or describe the issue.',
299
+ "Hey! Let's make sure your APIs are rock solid.",
300
+ ],
301
+ };