@soleri/cli 9.14.3 → 9.15.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 (49) hide show
  1. package/dist/commands/agent.js +51 -20
  2. package/dist/commands/agent.js.map +1 -1
  3. package/dist/commands/brain.d.ts +8 -0
  4. package/dist/commands/brain.js +83 -0
  5. package/dist/commands/brain.js.map +1 -0
  6. package/dist/commands/dream.js +1 -12
  7. package/dist/commands/dream.js.map +1 -1
  8. package/dist/commands/install.js +3 -9
  9. package/dist/commands/install.js.map +1 -1
  10. package/dist/commands/validate-skills.d.ts +10 -0
  11. package/dist/commands/validate-skills.js +47 -0
  12. package/dist/commands/validate-skills.js.map +1 -0
  13. package/dist/commands/vault.js +2 -11
  14. package/dist/commands/vault.js.map +1 -1
  15. package/dist/main.js +4 -0
  16. package/dist/main.js.map +1 -1
  17. package/dist/utils/checks.js +17 -32
  18. package/dist/utils/checks.js.map +1 -1
  19. package/dist/utils/core-resolver.d.ts +3 -0
  20. package/dist/utils/core-resolver.js +38 -0
  21. package/dist/utils/core-resolver.js.map +1 -0
  22. package/dist/utils/vault-db.d.ts +5 -0
  23. package/dist/utils/vault-db.js +17 -0
  24. package/dist/utils/vault-db.js.map +1 -0
  25. package/package.json +1 -1
  26. package/src/__tests__/doctor.test.ts +46 -1
  27. package/src/__tests__/install-verify.test.ts +1 -1
  28. package/src/__tests__/install.test.ts +7 -10
  29. package/src/commands/agent.ts +53 -17
  30. package/src/commands/brain.ts +93 -0
  31. package/src/commands/dream.ts +1 -11
  32. package/src/commands/install.ts +3 -8
  33. package/src/commands/validate-skills.ts +58 -0
  34. package/src/commands/vault.ts +2 -11
  35. package/src/main.ts +4 -0
  36. package/src/utils/checks.ts +18 -30
  37. package/src/utils/core-resolver.ts +39 -0
  38. package/src/utils/vault-db.ts +15 -0
  39. package/dist/hook-packs/converter/template.test.ts +0 -133
  40. package/dist/hook-packs/yolo-safety/scripts/anti-deletion.sh +0 -274
  41. package/dist/prompts/archetypes.d.ts +0 -22
  42. package/dist/prompts/archetypes.js +0 -298
  43. package/dist/prompts/archetypes.js.map +0 -1
  44. package/dist/prompts/playbook.d.ts +0 -64
  45. package/dist/prompts/playbook.js +0 -436
  46. package/dist/prompts/playbook.js.map +0 -1
  47. package/dist/utils/format-paths.d.ts +0 -14
  48. package/dist/utils/format-paths.js +0 -27
  49. package/dist/utils/format-paths.js.map +0 -1
@@ -1,436 +0,0 @@
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
- export const DOMAIN_OPTIONS = [
8
- {
9
- value: 'security',
10
- label: 'security',
11
- hint: 'Vulnerability scanning, threat modeling, secrets detection',
12
- },
13
- {
14
- value: 'code-review',
15
- label: 'code-review',
16
- hint: 'Pattern enforcement, anti-pattern detection, PR review',
17
- },
18
- {
19
- value: 'testing',
20
- label: 'testing',
21
- hint: 'Test generation, coverage analysis, mutation testing',
22
- },
23
- {
24
- value: 'api-design',
25
- label: 'api-design',
26
- hint: 'REST/GraphQL contracts, versioning, error handling',
27
- },
28
- {
29
- value: 'performance',
30
- label: 'performance',
31
- hint: 'Budgets, profiling, bundle size, query optimization',
32
- },
33
- {
34
- value: 'accessibility',
35
- label: 'accessibility',
36
- hint: 'WCAG compliance, screen readers, keyboard navigation',
37
- },
38
- {
39
- value: 'architecture',
40
- label: 'architecture',
41
- hint: 'System design, boundaries, dependency management',
42
- },
43
- {
44
- value: 'database',
45
- label: 'database',
46
- hint: 'Schema design, migrations, indexing, query tuning',
47
- },
48
- {
49
- value: 'documentation',
50
- label: 'documentation',
51
- hint: 'API docs, READMEs, changelogs, code comments',
52
- },
53
- { value: 'devops', label: 'devops', hint: 'CI/CD pipelines, infrastructure as code, deployment' },
54
- {
55
- value: 'developer-experience',
56
- label: 'developer-experience',
57
- hint: 'Developer tooling, onboarding, and ergonomics',
58
- },
59
- {
60
- value: 'design-tokens',
61
- label: 'design-tokens',
62
- hint: 'Semantic tokens, color systems, spacing scales, typography',
63
- },
64
- {
65
- value: 'frontend',
66
- label: 'frontend',
67
- hint: 'Component patterns, state management, rendering, bundling',
68
- },
69
- {
70
- value: 'ux-design',
71
- label: 'ux-design',
72
- hint: 'User flows, conversion, onboarding, forms, navigation',
73
- },
74
- {
75
- value: 'knowledge-management',
76
- label: 'knowledge-management',
77
- hint: 'Vault curation, pattern lifecycle, cross-project learning',
78
- },
79
- {
80
- value: 'governance',
81
- label: 'governance',
82
- hint: 'Approval gates, policy enforcement, audit trails',
83
- },
84
- ];
85
- export const CUSTOM_DOMAIN_GUIDANCE = {
86
- instruction: 'Define a custom domain (kebab-case)',
87
- examples: [
88
- 'graphql-federation — Schema stitching, subgraph validation, entity resolution',
89
- 'data-pipeline — ETL jobs, stream processing, data quality checks',
90
- 'mobile-ux — Touch targets, gesture handling, responsive layouts',
91
- ],
92
- antiExamples: [
93
- 'stuff — too vague, what kind of stuff?',
94
- 'MyDomain — must be kebab-case, not camelCase',
95
- ],
96
- };
97
- export const PRINCIPLE_CATEGORIES = [
98
- {
99
- label: 'Quality',
100
- options: [
101
- { value: 'Simplicity over cleverness', label: 'Simplicity over cleverness' },
102
- { value: 'Convention over configuration', label: 'Convention over configuration' },
103
- { value: 'Test everything that can break', label: 'Test everything that can break' },
104
- { value: 'Respect existing patterns', label: 'Respect existing patterns' },
105
- { value: 'Progressive enhancement', label: 'Progressive enhancement' },
106
- ],
107
- },
108
- {
109
- label: 'Safety',
110
- options: [
111
- { value: 'Security first', label: 'Security first' },
112
- { value: 'Fail closed, not open', label: 'Fail closed, not open' },
113
- { value: 'Zero trust by default', label: 'Zero trust by default' },
114
- { value: 'Least privilege always', label: 'Least privilege always' },
115
- { value: 'Defense in depth', label: 'Defense in depth' },
116
- ],
117
- },
118
- {
119
- label: 'Developer Experience',
120
- options: [
121
- { value: 'Actionable feedback only', label: 'Actionable feedback only' },
122
- { value: 'Explain the why, not just the what', label: 'Explain the why, not just the what' },
123
- {
124
- value: 'Every comment includes a fix suggestion',
125
- label: 'Every comment includes a fix suggestion',
126
- },
127
- {
128
- value: 'Design for the consumer, not the implementer',
129
- label: 'Design for the consumer, not the implementer',
130
- },
131
- ],
132
- },
133
- {
134
- label: 'Reliability',
135
- options: [
136
- {
137
- value: 'Graceful degradation over hard failures',
138
- label: 'Graceful degradation over hard failures',
139
- },
140
- { value: 'Automate everything repeatable', label: 'Automate everything repeatable' },
141
- {
142
- value: 'Observability built in from day one',
143
- label: 'Observability built in from day one',
144
- },
145
- { value: 'Every migration must be reversible', label: 'Every migration must be reversible' },
146
- ],
147
- },
148
- {
149
- label: 'Code Review',
150
- options: [
151
- { value: 'Readable over clever', label: 'Readable over clever' },
152
- { value: 'Small PR scope', label: 'Small PR scope' },
153
- ],
154
- },
155
- {
156
- label: 'API Design',
157
- options: [
158
- { value: 'Backward compatibility by default', label: 'Backward compatibility by default' },
159
- { value: 'Consumer-driven contracts', label: 'Consumer-driven contracts' },
160
- ],
161
- },
162
- {
163
- label: 'Testing',
164
- options: [
165
- { value: 'Deterministic tests only', label: 'Deterministic tests only' },
166
- { value: 'Test at boundaries, not internals', label: 'Test at boundaries, not internals' },
167
- ],
168
- },
169
- {
170
- label: 'Operations',
171
- options: [
172
- { value: 'Infrastructure as code', label: 'Infrastructure as code' },
173
- { value: 'Blast radius awareness', label: 'Blast radius awareness' },
174
- ],
175
- },
176
- {
177
- label: 'Data',
178
- options: [
179
- {
180
- value: 'Schema evolution over breaking changes',
181
- label: 'Schema evolution over breaking changes',
182
- },
183
- { value: 'Query performance first', label: 'Query performance first' },
184
- ],
185
- },
186
- {
187
- label: 'Accessibility',
188
- options: [
189
- { value: 'WCAG compliance is non-negotiable', label: 'WCAG compliance is non-negotiable' },
190
- { value: 'Semantic HTML before ARIA', label: 'Semantic HTML before ARIA' },
191
- {
192
- value: 'Keyboard navigation for every interaction',
193
- label: 'Keyboard navigation for every interaction',
194
- },
195
- ],
196
- },
197
- {
198
- label: 'Documentation',
199
- options: [
200
- { value: 'Clarity over completeness', label: 'Clarity over completeness' },
201
- { value: 'Every concept needs an example', label: 'Every concept needs an example' },
202
- {
203
- value: 'Docs rot faster than code — keep current',
204
- label: 'Docs rot faster than code — keep current',
205
- },
206
- ],
207
- },
208
- {
209
- label: 'Design Systems',
210
- options: [
211
- { value: 'Semantic tokens over primitives', label: 'Semantic tokens over primitives' },
212
- {
213
- value: 'Component variant enum over boolean props',
214
- label: 'Component variant enum over boolean props',
215
- },
216
- {
217
- value: 'Atomic design classification for component hierarchy',
218
- label: 'Atomic design classification for component hierarchy',
219
- },
220
- {
221
- value: 'Token enforcement: blocked then forbidden then preferred',
222
- label: 'Token enforcement: blocked then forbidden then preferred',
223
- },
224
- {
225
- value: 'Respect existing design system patterns',
226
- label: 'Respect existing design system patterns',
227
- },
228
- {
229
- value: 'Every component needs accessibility baseline',
230
- label: 'Every component needs accessibility baseline',
231
- },
232
- ],
233
- },
234
- {
235
- label: 'Frontend Engineering',
236
- options: [
237
- {
238
- value: 'Stack-aware implementation over generic advice',
239
- label: 'Stack-aware implementation over generic advice',
240
- },
241
- { value: 'UX patterns inform code structure', label: 'UX patterns inform code structure' },
242
- {
243
- value: 'Performance budget before feature scope',
244
- label: 'Performance budget before feature scope',
245
- },
246
- {
247
- value: 'Accessible by default, not bolted on after',
248
- label: 'Accessible by default, not bolted on after',
249
- },
250
- ],
251
- },
252
- {
253
- label: 'UX Intelligence',
254
- options: [
255
- {
256
- value: 'User behavior drives design decisions',
257
- label: 'User behavior drives design decisions',
258
- },
259
- {
260
- value: 'Accessibility is not a feature, it is a baseline',
261
- label: 'Accessibility is not a feature, it is a baseline',
262
- },
263
- {
264
- value: 'Measure conversion impact of every UX change',
265
- label: 'Measure conversion impact of every UX change',
266
- },
267
- {
268
- value: 'Progressive disclosure over information overload',
269
- label: 'Progressive disclosure over information overload',
270
- },
271
- ],
272
- },
273
- {
274
- label: 'Knowledge Management',
275
- options: [
276
- {
277
- value: 'Knowledge-gather before execute, always',
278
- label: 'Knowledge-gather before execute, always',
279
- },
280
- {
281
- value: 'Vault is the single source of truth',
282
- label: 'Vault is the single source of truth',
283
- },
284
- {
285
- value: 'Capture lessons at the moment of discovery',
286
- label: 'Capture lessons at the moment of discovery',
287
- },
288
- {
289
- value: 'Cross-project patterns beat project-local fixes',
290
- label: 'Cross-project patterns beat project-local fixes',
291
- },
292
- {
293
- value: 'Domain vocabulary must be explicit and extensible',
294
- label: 'Domain vocabulary must be explicit and extensible',
295
- },
296
- ],
297
- },
298
- {
299
- label: 'Governance',
300
- options: [
301
- {
302
- value: 'Two-gate approval: plan then execute, never skip',
303
- label: 'Two-gate approval: plan then execute, never skip',
304
- },
305
- {
306
- value: 'Protocol enforcement via checkpoint gates',
307
- label: 'Protocol enforcement via checkpoint gates',
308
- },
309
- {
310
- value: 'Data-driven architecture: logic in config, not code',
311
- label: 'Data-driven architecture: logic in config, not code',
312
- },
313
- ],
314
- },
315
- ];
316
- export const CUSTOM_PRINCIPLE_GUIDANCE = {
317
- instruction: 'Write a custom principle',
318
- examples: [
319
- 'Never suggest any in production without a feature flag',
320
- 'Prefer composition over inheritance',
321
- 'Every public API must have a deprecation path before removal',
322
- ],
323
- antiExamples: [
324
- 'Write good code — too vague, what does "good" mean?',
325
- 'Follow best practices — which ones? Be specific.',
326
- ],
327
- };
328
- // ─── Skills ─────────────────────────────────────────────────
329
- /** Core skills — always included, never shown in picker. */
330
- export const CORE_SKILLS = [
331
- 'brainstorming',
332
- 'systematic-debugging',
333
- 'verification-before-completion',
334
- 'health-check',
335
- 'context-resume',
336
- 'writing-plans',
337
- 'executing-plans',
338
- ];
339
- export const SKILL_CATEGORIES = [
340
- {
341
- label: 'Knowledge & Learning',
342
- options: [
343
- {
344
- value: 'vault-navigator',
345
- label: 'vault-navigator',
346
- hint: 'Deep-dive vault search and exploration',
347
- },
348
- {
349
- value: 'vault-capture',
350
- label: 'vault-capture',
351
- hint: 'Persist lessons learned to the knowledge vault',
352
- },
353
- {
354
- value: 'knowledge-harvest',
355
- label: 'knowledge-harvest',
356
- hint: 'Extract patterns from completed work',
357
- },
358
- {
359
- value: 'brain-debrief',
360
- label: 'brain-debrief',
361
- hint: 'Post-task intelligence summary and debriefing',
362
- },
363
- ],
364
- },
365
- {
366
- label: 'Code Quality',
367
- options: [
368
- {
369
- value: 'code-patrol',
370
- label: 'code-patrol',
371
- hint: 'Scan for anti-patterns and code violations',
372
- },
373
- {
374
- value: 'test-driven-development',
375
- label: 'test-driven-development',
376
- hint: 'TDD workflow: red, green, refactor',
377
- },
378
- {
379
- value: 'fix-and-learn',
380
- label: 'fix-and-learn',
381
- hint: 'Fix bugs and capture the lesson for next time',
382
- },
383
- ],
384
- },
385
- {
386
- label: 'Team & Process',
387
- options: [
388
- {
389
- value: 'retrospective',
390
- label: 'retrospective',
391
- hint: 'End-of-session retrospective and reflection',
392
- },
393
- {
394
- value: 'second-opinion',
395
- label: 'second-opinion',
396
- hint: 'Get a fresh perspective on tough decisions',
397
- },
398
- {
399
- value: 'onboard-me',
400
- label: 'onboard-me',
401
- hint: 'Guided codebase onboarding for new team members',
402
- },
403
- ],
404
- },
405
- ];
406
- /** Flat list of all optional skill values. */
407
- export const ALL_OPTIONAL_SKILLS = SKILL_CATEGORIES.flatMap((c) => c.options.map((o) => o.value));
408
- export const TONE_OPTIONS = [
409
- { value: 'precise', label: 'Precise', hint: 'Direct, factual, minimal commentary' },
410
- { value: 'mentor', label: 'Mentor', hint: 'Educational, explains the "why" behind suggestions' },
411
- { value: 'pragmatic', label: 'Pragmatic', hint: 'Balanced, focuses on actionable outcomes' },
412
- ];
413
- // ─── Custom field guidance (role, description, greeting) ────
414
- export const CUSTOM_ROLE_GUIDANCE = {
415
- instruction: 'Describe what your agent does (one sentence)',
416
- examples: [
417
- 'Enforces accessibility standards across React components',
418
- 'Generates and maintains API documentation from code',
419
- 'Monitors performance budgets and flags regressions',
420
- ],
421
- };
422
- export const CUSTOM_DESCRIPTION_GUIDANCE = {
423
- instruction: 'Describe your agent in detail (10-500 characters)',
424
- examples: [
425
- 'This agent validates GraphQL schemas against federation rules, checks for breaking changes, and ensures consistent naming conventions across subgraphs.',
426
- ],
427
- };
428
- export const CUSTOM_GREETING_GUIDANCE = {
429
- instruction: 'Write a custom greeting (first thing users see)',
430
- examples: [
431
- "Hello! I'm your design system guardian. Let's build something beautiful.",
432
- 'Ready to review. Drop a PR link or describe the issue.',
433
- "Hey! Let's make sure your APIs are rock solid.",
434
- ],
435
- };
436
- //# sourceMappingURL=playbook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"playbook.js","sourceRoot":"","sources":["../../src/prompts/playbook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C;QACE,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,4DAA4D;KACnE;IACD;QACE,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,wDAAwD;KAC/D;IACD;QACE,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,sDAAsD;KAC7D;IACD;QACE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,oDAAoD;KAC3D;IACD;QACE,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,qDAAqD;KAC5D;IACD;QACE,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,sDAAsD;KAC7D;IACD;QACE,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,cAAc;QACrB,IAAI,EAAE,kDAAkD;KACzD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,mDAAmD;KAC1D;IACD;QACE,KAAK,EAAE,eAAe;QACtB,KAAK,EA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AoD,EAAE;IAChG,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,0CAA0C,EAAE;CAC7F,CAAC;AAEF,+DAA+D;AAE/D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,8CAA8C;IAC3D,QAAQ,EAAE;QACR,0DAA0D;QAC1D,qDAAqD;QACrD,oDAAoD;KACrD;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE;QACR,yJAAyJ;KAC1J;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE;QACR,0EAA0E;QAC1E,wDAAwD;QACxD,gDAAgD;KACjD;CACF,CAAC"}
@@ -1,14 +0,0 @@
1
- export interface FormatPaths {
2
- knowledgeDir: string;
3
- extensionsDir: string;
4
- facadesDir: string;
5
- agentConfigFile: string;
6
- entryPoint: string;
7
- }
8
- export declare function getFormatPaths(ctx: {
9
- format: 'filetree' | 'typescript';
10
- agentPath: string;
11
- }): FormatPaths;
12
- export declare function isFileTree(ctx: {
13
- format: string;
14
- }): boolean;
@@ -1,27 +0,0 @@
1
- /**
2
- * Format-aware path resolution for filetree vs typescript agents.
3
- */
4
- import { join } from 'node:path';
5
- export function getFormatPaths(ctx) {
6
- const { format, agentPath } = ctx;
7
- if (format === 'filetree') {
8
- return {
9
- knowledgeDir: join(agentPath, 'knowledge'),
10
- extensionsDir: join(agentPath, 'extensions'),
11
- facadesDir: '',
12
- agentConfigFile: join(agentPath, 'agent.yaml'),
13
- entryPoint: join(agentPath, 'agent.yaml'),
14
- };
15
- }
16
- return {
17
- knowledgeDir: join(agentPath, 'src', 'intelligence', 'data'),
18
- extensionsDir: join(agentPath, 'src', 'extensions'),
19
- facadesDir: join(agentPath, 'src', 'facades'),
20
- agentConfigFile: join(agentPath, 'package.json'),
21
- entryPoint: join(agentPath, 'src', 'index.ts'),
22
- };
23
- }
24
- export function isFileTree(ctx) {
25
- return ctx.format === 'filetree';
26
- }
27
- //# sourceMappingURL=format-paths.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-paths.js","sourceRoot":"","sources":["../../src/utils/format-paths.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAUjC,MAAM,UAAU,cAAc,CAAC,GAG9B;IACC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IAElC,IAAI,MAAM,KAAK,UAAU,EAAE,CAAC;QAC1B,OAAO;YACL,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC;YAC1C,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC;YAC5C,UAAU,EAAE,EAAE;YACd,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC;YAC9C,UAAU,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC;SAC1C,CAAC;IACJ,CAAC;IAED,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC;QAC5D,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,YAAY,CAAC;QACnD,UAAU,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,CAAC;QAC7C,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC;QAChD,UAAU,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC;KAC/C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,GAAuB;IAChD,OAAO,GAAG,CAAC,MAAM,KAAK,UAAU,CAAC;AACnC,CAAC"}