specweave 0.30.12 → 0.30.14

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 (127) hide show
  1. package/.claude-plugin/marketplace.json +0 -11
  2. package/CLAUDE.md +1 -1
  3. package/bin/fix-marketplace-errors.sh +1 -1
  4. package/dist/src/cli/commands/init.d.ts.map +1 -1
  5. package/dist/src/cli/commands/init.js +13 -0
  6. package/dist/src/cli/commands/init.js.map +1 -1
  7. package/dist/src/cli/helpers/ado-area-selector.d.ts.map +1 -1
  8. package/dist/src/cli/helpers/ado-area-selector.js +13 -0
  9. package/dist/src/cli/helpers/ado-area-selector.js.map +1 -1
  10. package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -1
  11. package/dist/src/cli/helpers/issue-tracker/index.js +7 -2
  12. package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -1
  13. package/dist/src/cli/helpers/issue-tracker/sync-config-writer.d.ts +7 -0
  14. package/dist/src/cli/helpers/issue-tracker/sync-config-writer.d.ts.map +1 -1
  15. package/dist/src/cli/helpers/issue-tracker/sync-config-writer.js +33 -2
  16. package/dist/src/cli/helpers/issue-tracker/sync-config-writer.js.map +1 -1
  17. package/dist/src/cli/workers/clone-worker.js +19 -3
  18. package/dist/src/cli/workers/clone-worker.js.map +1 -1
  19. package/dist/src/core/living-docs/board-matcher.d.ts +120 -0
  20. package/dist/src/core/living-docs/board-matcher.d.ts.map +1 -0
  21. package/dist/src/core/living-docs/board-matcher.js +466 -0
  22. package/dist/src/core/living-docs/board-matcher.js.map +1 -0
  23. package/dist/src/core/living-docs/foundation-builder.js +1 -1
  24. package/dist/src/core/living-docs/foundation-builder.js.map +1 -1
  25. package/dist/src/core/living-docs/living-docs-sync.d.ts +19 -8
  26. package/dist/src/core/living-docs/living-docs-sync.d.ts.map +1 -1
  27. package/dist/src/core/living-docs/living-docs-sync.js +148 -52
  28. package/dist/src/core/living-docs/living-docs-sync.js.map +1 -1
  29. package/dist/src/core/living-docs/suggestions-generator.js +1 -1
  30. package/dist/src/core/living-docs/suggestions-generator.js.map +1 -1
  31. package/dist/src/core/living-docs/umbrella-detector.d.ts +4 -0
  32. package/dist/src/core/living-docs/umbrella-detector.d.ts.map +1 -1
  33. package/dist/src/core/living-docs/umbrella-detector.js +20 -1
  34. package/dist/src/core/living-docs/umbrella-detector.js.map +1 -1
  35. package/dist/src/core/living-docs/workitem-matcher.js +5 -5
  36. package/dist/src/core/living-docs/workitem-matcher.js.map +1 -1
  37. package/dist/src/importers/item-converter.d.ts +4 -0
  38. package/dist/src/importers/item-converter.d.ts.map +1 -1
  39. package/dist/src/importers/item-converter.js +4 -0
  40. package/dist/src/importers/item-converter.js.map +1 -1
  41. package/dist/src/init/repo/types.d.ts +1 -1
  42. package/dist/src/living-docs/enterprise-analyzer.d.ts.map +1 -1
  43. package/dist/src/living-docs/enterprise-analyzer.js +70 -19
  44. package/dist/src/living-docs/enterprise-analyzer.js.map +1 -1
  45. package/dist/src/living-docs/epic-id-allocator.d.ts +4 -0
  46. package/dist/src/living-docs/epic-id-allocator.d.ts.map +1 -1
  47. package/dist/src/living-docs/epic-id-allocator.js +4 -0
  48. package/dist/src/living-docs/epic-id-allocator.js.map +1 -1
  49. package/dist/src/living-docs/fs-id-allocator.d.ts +4 -0
  50. package/dist/src/living-docs/fs-id-allocator.d.ts.map +1 -1
  51. package/dist/src/living-docs/fs-id-allocator.js +4 -0
  52. package/dist/src/living-docs/fs-id-allocator.js.map +1 -1
  53. package/dist/src/living-docs/smart-doc-organizer.d.ts +114 -0
  54. package/dist/src/living-docs/smart-doc-organizer.d.ts.map +1 -0
  55. package/dist/src/living-docs/smart-doc-organizer.js +535 -0
  56. package/dist/src/living-docs/smart-doc-organizer.js.map +1 -0
  57. package/package.json +13 -13
  58. package/plugins/PLUGINS-INDEX.md +2 -3
  59. package/plugins/specweave/commands/specweave-judge.md +265 -0
  60. package/plugins/specweave/commands/specweave-organize-docs.md +185 -0
  61. package/plugins/specweave/hooks/hooks.json +3 -3
  62. package/plugins/specweave/hooks/universal/hook-wrapper.cmd +26 -0
  63. package/plugins/specweave/hooks/universal/hook-wrapper.sh +67 -0
  64. package/plugins/specweave-ado/commands/{specweave-ado-close-workitem.md → close.md} +9 -5
  65. package/plugins/specweave-ado/commands/{specweave-ado-create-workitem.md → create.md} +9 -5
  66. package/plugins/specweave-ado/commands/pull.md +459 -0
  67. package/plugins/specweave-ado/commands/push.md +361 -0
  68. package/plugins/specweave-ado/commands/{specweave-ado-status.md → status.md} +12 -0
  69. package/plugins/specweave-ado/commands/{specweave-ado-sync.md → sync.md} +64 -3
  70. package/plugins/specweave-ado/hooks/README.md +1 -1
  71. package/plugins/specweave-docs/commands/build.md +158 -0
  72. package/plugins/specweave-docs/commands/{docs-generate.md → generate.md} +10 -5
  73. package/plugins/specweave-docs/commands/health.md +268 -0
  74. package/plugins/specweave-docs/commands/{docs-init.md → init.md} +11 -6
  75. package/plugins/specweave-docs/commands/organize.md +184 -0
  76. package/plugins/specweave-docs/commands/preview.md +138 -0
  77. package/plugins/specweave-docs/skills/preview/SKILL.md +105 -0
  78. package/plugins/specweave-github/agents/user-story-updater/AGENT.md +1 -1
  79. package/plugins/specweave-github/commands/{specweave-github-close-issue.md → close.md} +2 -2
  80. package/plugins/specweave-github/commands/{specweave-github-create-issue.md → create.md} +2 -2
  81. package/plugins/specweave-github/commands/pull.md +142 -0
  82. package/plugins/specweave-github/commands/push.md +154 -0
  83. package/plugins/specweave-github/commands/{specweave-github-sync.md → sync.md} +19 -5
  84. package/plugins/specweave-github/commands/{specweave-github-update-user-story.md → update-user-story.md} +1 -1
  85. package/plugins/specweave-github/hooks/README.md +1 -1
  86. package/plugins/specweave-jira/commands/pull.md +164 -0
  87. package/plugins/specweave-jira/commands/push.md +170 -0
  88. package/plugins/specweave-jira/commands/{specweave-jira-sync.md → sync.md} +18 -3
  89. package/plugins/specweave-jira/hooks/README.md +1 -1
  90. package/plugins/specweave-kafka/README.md +20 -0
  91. package/plugins/specweave-kafka/benchmarks/kafka-throughput.benchmark.ts +551 -0
  92. package/plugins/specweave-kafka/examples/README.md +191 -0
  93. package/plugins/specweave-kafka/examples/avro-schema-registry/.env.example +8 -0
  94. package/plugins/specweave-kafka/examples/avro-schema-registry/README.md +69 -0
  95. package/plugins/specweave-kafka/examples/avro-schema-registry/consumer.js +37 -0
  96. package/plugins/specweave-kafka/examples/avro-schema-registry/package.json +14 -0
  97. package/plugins/specweave-kafka/examples/avro-schema-registry/producer.js +57 -0
  98. package/plugins/specweave-kafka/examples/exactly-once-semantics/.env.example +5 -0
  99. package/plugins/specweave-kafka/examples/exactly-once-semantics/README.md +30 -0
  100. package/plugins/specweave-kafka/examples/exactly-once-semantics/eos-pipeline.js +79 -0
  101. package/plugins/specweave-kafka/examples/exactly-once-semantics/package.json +11 -0
  102. package/plugins/specweave-kafka/examples/kafka-streams-app/.env.example +4 -0
  103. package/plugins/specweave-kafka/examples/kafka-streams-app/README.md +30 -0
  104. package/plugins/specweave-kafka/examples/kafka-streams-app/package.json +11 -0
  105. package/plugins/specweave-kafka/examples/kafka-streams-app/windowed-aggregation.js +66 -0
  106. package/plugins/specweave-kafka/examples/n8n-workflow/README.md +54 -0
  107. package/plugins/specweave-kafka/examples/n8n-workflow/docker-compose.yml +19 -0
  108. package/plugins/specweave-kafka/examples/n8n-workflow/kafka-to-slack.json +50 -0
  109. package/plugins/specweave-kafka/examples/simple-producer-consumer/.env.example +15 -0
  110. package/plugins/specweave-kafka/examples/simple-producer-consumer/README.md +183 -0
  111. package/plugins/specweave-kafka/examples/simple-producer-consumer/consumer.js +60 -0
  112. package/plugins/specweave-kafka/examples/simple-producer-consumer/docker-compose.yml +30 -0
  113. package/plugins/specweave-kafka/examples/simple-producer-consumer/package.json +18 -0
  114. package/plugins/specweave-kafka/examples/simple-producer-consumer/producer.js +52 -0
  115. package/plugins/specweave-release/commands/specweave-release-npm.md +26 -239
  116. package/plugins/specweave-docs-preview/.claude-plugin/plugin.json +0 -21
  117. package/plugins/specweave-docs-preview/commands/build.md +0 -489
  118. package/plugins/specweave-docs-preview/commands/preview.md +0 -355
  119. package/plugins/specweave-docs-preview/skills/docs-preview/SKILL.md +0 -386
  120. /package/plugins/specweave-ado/commands/{specweave-ado-clone-repos.md → clone.md} +0 -0
  121. /package/plugins/specweave-ado/commands/{specweave-ado-import-areas.md → import-areas.md} +0 -0
  122. /package/plugins/specweave-ado/commands/{specweave-ado-import-projects.md → import-projects.md} +0 -0
  123. /package/plugins/specweave-github/commands/{specweave-github-cleanup-duplicates.md → cleanup-duplicates.md} +0 -0
  124. /package/plugins/specweave-github/commands/{specweave-github-reconcile.md → reconcile.md} +0 -0
  125. /package/plugins/specweave-github/commands/{specweave-github-status.md → status.md} +0 -0
  126. /package/plugins/specweave-jira/commands/{specweave-jira-import-boards.md → import-boards.md} +0 -0
  127. /package/plugins/specweave-jira/commands/{specweave-jira-import-projects.md → import-projects-full.md} +0 -0
@@ -1,386 +0,0 @@
1
- ---
2
- name: docs-preview
3
- description: Documentation preview expert for Docusaurus integration. Launches interactive preview server for SpecWeave living documentation with hot reload, auto-generated sidebar, and Mermaid diagrams. Activates for preview docs, view documentation, Docusaurus server, docs UI, documentation website, local docs server, hot reload docs, static site build.
4
- ---
5
-
6
- # Documentation Preview Skill
7
-
8
- Expert in launching and managing Docusaurus documentation preview for SpecWeave projects.
9
-
10
- ## What I Do
11
-
12
- I help you preview and build your SpecWeave living documentation with Docusaurus:
13
-
14
- ### 1. Interactive Preview
15
- - Launch local development server (default port: 3015)
16
- - Auto-generate sidebar from folder structure
17
- - Hot reload - edit markdown, see changes instantly
18
- - Mermaid diagram rendering
19
- - Mobile-responsive UI
20
- - Search functionality
21
-
22
- ### 2. Static Site Building
23
- - Build production-ready static site
24
- - Output to `.specweave/docs-site-internal/build/`
25
- - Ready for deployment to any static host
26
- - Optimized for performance
27
-
28
- ### 3. Smart Setup
29
- - Lazy installation (only installs when first used)
30
- - Checks Node.js version (18+ required)
31
- - Installs Docusaurus dependencies automatically
32
- - Configures from `.specweave/config.json` settings
33
-
34
- ## Available Commands
35
-
36
- ### Preview Documentation
37
- ```bash
38
- /specweave-docs-preview:preview
39
- ```
40
-
41
- **What it does:**
42
- 1. Checks if Docusaurus is installed (installs if needed)
43
- 2. Generates sidebar from `.specweave/docs/internal/` structure
44
- 3. Starts development server on port 3015 (configurable)
45
- 4. Opens browser automatically
46
- 5. Enables hot reload
47
-
48
- **Configuration** (`.specweave/config.json`):
49
- ```json
50
- {
51
- "documentation": {
52
- "preview": {
53
- "enabled": true,
54
- "autoInstall": false,
55
- "port": 3015,
56
- "openBrowser": true,
57
- "theme": "default",
58
- "excludeFolders": ["legacy", "node_modules"]
59
- }
60
- }
61
- }
62
- ```
63
-
64
- **Example session:**
65
- ```
66
- User: "Can I preview my documentation?"
67
- You: "Yes! I'll launch the Docusaurus preview server for you."
68
- [Run: /specweave-docs-preview:preview]
69
-
70
- Output:
71
- 📚 Setting up documentation preview...
72
- ✓ Node.js version check passed (v20.0.0)
73
- ✓ Docusaurus already installed
74
- ✓ Sidebar generated (42 documents, 8 categories)
75
- ✓ Server started on http://localhost:3015
76
-
77
- 🌐 Documentation available at: http://localhost:3015
78
- 🔄 Hot reload enabled - edit docs and see changes instantly
79
- 💡 Press Ctrl+C to stop the server
80
- ```
81
-
82
- ### Build Static Site
83
- ```bash
84
- /specweave-docs-preview:build
85
- ```
86
-
87
- **What it does:**
88
- 1. Checks if Docusaurus is installed
89
- 2. Runs production build
90
- 3. Outputs to `.specweave/docs-site-internal/build/`
91
- 4. Shows build stats and output path
92
-
93
- **Example session:**
94
- ```
95
- User: "Build my docs for deployment"
96
- You: "I'll build the static documentation site."
97
- [Run: /specweave-docs-preview:build]
98
-
99
- Output:
100
- 📦 Building static documentation site...
101
- ✓ Build complete!
102
- 📁 Output: /project/.specweave/docs-site-internal/build/
103
-
104
- To deploy:
105
- 1. Copy build/ folder to your static host
106
- 2. Or use: npx serve build/
107
- ```
108
-
109
- ## When to Use This Skill
110
-
111
- ### Activate for questions like:
112
- - "How do I preview my documentation?"
113
- - "Show me my docs in a UI"
114
- - "Launch Docusaurus server"
115
- - "View my living documentation"
116
- - "Start docs preview"
117
- - "Build static docs site"
118
- - "Hot reload documentation"
119
- - "Documentation website"
120
-
121
- ### Common workflows:
122
-
123
- **1. First-time preview:**
124
- ```
125
- User: "I want to preview my docs"
126
- You: "I'll set up the documentation preview with Docusaurus.
127
- This will install dependencies (takes ~30 seconds first time)."
128
- [Run: /specweave-docs-preview:preview]
129
- ```
130
-
131
- **2. Already running:**
132
- ```
133
- User: "Preview my docs"
134
- You: "Checking if Docusaurus is running..."
135
- [If running: "Documentation server already running at http://localhost:3015"]
136
- [If not: Run /specweave-docs-preview:preview]
137
- ```
138
-
139
- **3. Build for deployment:**
140
- ```
141
- User: "I need to deploy my docs"
142
- You: "I'll build the static site for deployment."
143
- [Run: /specweave-docs-preview:build]
144
- "Once built, you can deploy the build/ folder to:"
145
- "• Netlify, Vercel, GitHub Pages"
146
- "• Any static host (Nginx, Apache, S3)"
147
- "• Or test locally with: npx serve build/"
148
- ```
149
-
150
- ## Architecture
151
-
152
- ### Folder Structure
153
- ```
154
- .specweave/
155
- ├── docs/
156
- │ └── internal/ ← Source documentation
157
- │ ├── strategy/
158
- │ ├── specs/
159
- │ ├── architecture/
160
- │ └── ...
161
- └── docs-site-internal/ ← Docusaurus installation
162
- ├── docs/ ← Symlinked to internal/
163
- ├── src/
164
- ├── build/ ← Static output
165
- ├── docusaurus.config.js
166
- ├── sidebars.js ← Auto-generated
167
- └── package.json
168
- ```
169
-
170
- ### Sidebar Auto-Generation
171
-
172
- The sidebar is generated from your folder structure:
173
-
174
- **Input** (`.specweave/docs/internal/`):
175
- ```
176
- internal/
177
- ├── strategy/
178
- │ ├── prd-001.md
179
- │ └── okrs.md
180
- ├── specs/
181
- │ ├── spec-001-auth.md
182
- │ └── spec-002-payments.md
183
- └── architecture/
184
- ├── hld-system.md
185
- └── adr/
186
- └── 0001-database-choice.md
187
- ```
188
-
189
- **Output** (`sidebars.js`):
190
- ```javascript
191
- {
192
- docs: [
193
- {
194
- type: 'category',
195
- label: 'Strategy',
196
- items: ['strategy/prd-001', 'strategy/okrs']
197
- },
198
- {
199
- type: 'category',
200
- label: 'Specs',
201
- items: ['specs/spec-001-auth', 'specs/spec-002-payments']
202
- },
203
- {
204
- type: 'category',
205
- label: 'Architecture',
206
- items: [
207
- 'architecture/hld-system',
208
- {
209
- type: 'category',
210
- label: 'ADR',
211
- items: ['architecture/adr/0001-database-choice']
212
- }
213
- ]
214
- }
215
- ]
216
- }
217
- ```
218
-
219
- ## Configuration Options
220
-
221
- ### Port Selection
222
- ```json
223
- {
224
- "documentation": {
225
- "preview": {
226
- "port": 3015
227
- }
228
- }
229
- }
230
- ```
231
-
232
- **Why 3015?**
233
- - Port 3000 = React/Next.js/Vite dev servers (conflict!)
234
- - Port 3015 = Internal docs (SpecWeave default)
235
- - Port 3016 = Reserved for public docs (future)
236
-
237
- ### Theme Selection
238
- ```json
239
- {
240
- "documentation": {
241
- "preview": {
242
- "theme": "default"
243
- }
244
- }
245
- }
246
- ```
247
-
248
- **Available themes:**
249
- - `default` - SpecWeave blue theme
250
- - `classic` - Docusaurus default theme
251
- - `dark` - Dark mode theme
252
-
253
- ### Exclude Folders
254
- ```json
255
- {
256
- "documentation": {
257
- "preview": {
258
- "excludeFolders": ["legacy", "node_modules", "archive"]
259
- }
260
- }
261
- }
262
- ```
263
-
264
- ## Troubleshooting
265
-
266
- ### Port already in use
267
- ```
268
- Error: Port 3015 is already in use
269
- Solution: Change port in config or stop other service
270
- ```
271
-
272
- ### Node.js version
273
- ```
274
- Error: Node.js 18+ required
275
- Solution: Update Node.js (nvm install 20)
276
- ```
277
-
278
- ### Mermaid diagrams not rendering
279
- ```
280
- Issue: Diagrams show as code blocks
281
- Solution: Use ```mermaid code fences (built-in support)
282
- ```
283
-
284
- ### Build fails
285
- ```
286
- Error: Build failed
287
- Check:
288
- 1. All markdown files have valid frontmatter
289
- 2. No broken internal links
290
- 3. Run preview first to catch errors early
291
- ```
292
-
293
- ## Best Practices
294
-
295
- ### 1. Use Preview During Development
296
- - Start preview server: `/specweave-docs-preview:preview`
297
- - Edit markdown files in `.specweave/docs/internal/`
298
- - See changes instantly (hot reload)
299
- - No need to rebuild
300
-
301
- ### 2. Build Before Deployment
302
- - Always build before deploying
303
- - Test build output locally: `npx serve build/`
304
- - Check all pages render correctly
305
- - Verify search works
306
-
307
- ### 3. Keep Docs Organized
308
- - Follow SpecWeave folder structure
309
- - Use meaningful file names
310
- - Add frontmatter to markdown files:
311
- ```markdown
312
- ---
313
- title: User Authentication
314
- sidebar_position: 1
315
- ---
316
- ```
317
-
318
- ### 4. Optimize for Search
319
- - Use descriptive headings
320
- - Include keywords naturally
321
- - Add alt text to images
322
- - Keep URL structure clean
323
-
324
- ## Example: Complete Workflow
325
-
326
- ```bash
327
- # 1. Preview docs locally
328
- /specweave-docs-preview:preview
329
- # → Opens http://localhost:3015
330
- # → Edit files, see changes instantly
331
-
332
- # 2. Build for production
333
- /specweave-docs-preview:build
334
- # → Outputs to .specweave/docs-site-internal/build/
335
-
336
- # 3. Deploy (example with Netlify)
337
- cd .specweave/docs-site-internal
338
- npx netlify deploy --dir=build --prod
339
- ```
340
-
341
- ## Integration with SpecWeave
342
-
343
- ### Living Documentation Sync
344
- Documentation preview integrates with SpecWeave's living docs:
345
-
346
- 1. **After increment completion:**
347
- - `spec.md` synced to `.specweave/docs/internal/specs/`
348
- - Preview updates automatically (hot reload)
349
-
350
- 2. **Architecture decisions:**
351
- - ADRs created in `.specweave/docs/internal/architecture/adr/`
352
- - Instantly visible in preview
353
-
354
- 3. **Multi-project support:**
355
- - Each project gets its own docs folder
356
- - Preview shows all projects in sidebar
357
-
358
- ## Commands Summary
359
-
360
- | Command | Purpose | When to Use |
361
- |---------|---------|-------------|
362
- | `/specweave-docs-preview:preview` | Launch dev server | During development, hot reload |
363
- | `/specweave-docs-preview:build` | Build static site | Before deployment, production |
364
-
365
- ## Technical Details
366
-
367
- ### Under the Hood
368
- - **Framework:** Docusaurus 3.0
369
- - **React version:** 18+
370
- - **Build tool:** Webpack 5
371
- - **Markdown:** MDX support
372
- - **Diagrams:** Mermaid.js
373
- - **Search:** Algolia DocSearch (optional)
374
-
375
- ### Performance
376
- - **Install time:** ~30 seconds (first time only)
377
- - **Build time:** ~5-10 seconds (small docs)
378
- - **Hot reload:** <1 second
379
- - **Static site:** Fully optimized, lighthouse 100
380
-
381
- ## See Also
382
-
383
- - **specweave-docs** skill - General documentation workflows
384
- - **spec-generator** skill - Generate living docs specs
385
- - **sync-docs** skill - Sync docs after increments
386
- - **Docusaurus docs:** https://docusaurus.io