specweave 0.34.4 → 0.34.6
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/bin/fix-marketplace-errors.sh +55 -7
- package/dist/plugins/specweave-github/lib/github-feature-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync.js +3 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync.js.map +1 -1
- package/dist/src/cli/commands/init.d.ts.map +1 -1
- package/dist/src/cli/commands/init.js +11 -2
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/living-docs.js +4 -4
- package/dist/src/cli/commands/living-docs.js.map +1 -1
- package/dist/src/cli/helpers/init/brownfield-analysis.js +15 -15
- package/dist/src/cli/helpers/init/brownfield-analysis.js.map +1 -1
- package/dist/src/cli/helpers/init/living-docs-preflight.js +7 -7
- package/dist/src/cli/helpers/init/living-docs-preflight.js.map +1 -1
- package/dist/src/cli/helpers/init/plugin-installer.d.ts.map +1 -1
- package/dist/src/cli/helpers/init/plugin-installer.js +61 -9
- package/dist/src/cli/helpers/init/plugin-installer.js.map +1 -1
- package/dist/src/core/background/types.d.ts +3 -0
- package/dist/src/core/background/types.d.ts.map +1 -1
- package/dist/src/core/living-docs/delivery/delivery-generator.d.ts +58 -0
- package/dist/src/core/living-docs/delivery/delivery-generator.d.ts.map +1 -0
- package/dist/src/core/living-docs/delivery/delivery-generator.js +501 -0
- package/dist/src/core/living-docs/delivery/delivery-generator.js.map +1 -0
- package/dist/src/core/living-docs/delivery/index.d.ts +8 -0
- package/dist/src/core/living-docs/delivery/index.d.ts.map +1 -0
- package/dist/src/core/living-docs/delivery/index.js +7 -0
- package/dist/src/core/living-docs/delivery/index.js.map +1 -0
- package/dist/src/core/living-docs/diagrams/index.d.ts +8 -0
- package/dist/src/core/living-docs/diagrams/index.d.ts.map +1 -0
- package/dist/src/core/living-docs/diagrams/index.js +7 -0
- package/dist/src/core/living-docs/diagrams/index.js.map +1 -0
- package/dist/src/core/living-docs/diagrams/mermaid-generator.d.ts +103 -0
- package/dist/src/core/living-docs/diagrams/mermaid-generator.d.ts.map +1 -0
- package/dist/src/core/living-docs/diagrams/mermaid-generator.js +515 -0
- package/dist/src/core/living-docs/diagrams/mermaid-generator.js.map +1 -0
- package/dist/src/core/living-docs/enterprise/enterprise-generator.d.ts +85 -0
- package/dist/src/core/living-docs/enterprise/enterprise-generator.d.ts.map +1 -0
- package/dist/src/core/living-docs/enterprise/enterprise-generator.js +556 -0
- package/dist/src/core/living-docs/enterprise/enterprise-generator.js.map +1 -0
- package/dist/src/core/living-docs/enterprise/history-analyzer.d.ts +91 -0
- package/dist/src/core/living-docs/enterprise/history-analyzer.d.ts.map +1 -0
- package/dist/src/core/living-docs/enterprise/history-analyzer.js +321 -0
- package/dist/src/core/living-docs/enterprise/history-analyzer.js.map +1 -0
- package/dist/src/core/living-docs/enterprise/index.d.ts +18 -0
- package/dist/src/core/living-docs/enterprise/index.d.ts.map +1 -0
- package/dist/src/core/living-docs/enterprise/index.js +14 -0
- package/dist/src/core/living-docs/enterprise/index.js.map +1 -0
- package/dist/src/core/living-docs/enterprise/relationship-mapper.d.ts +58 -0
- package/dist/src/core/living-docs/enterprise/relationship-mapper.d.ts.map +1 -0
- package/dist/src/core/living-docs/enterprise/relationship-mapper.js +227 -0
- package/dist/src/core/living-docs/enterprise/relationship-mapper.js.map +1 -0
- package/dist/src/core/living-docs/enterprise/spec-loader.d.ts +161 -0
- package/dist/src/core/living-docs/enterprise/spec-loader.d.ts.map +1 -0
- package/dist/src/core/living-docs/enterprise/spec-loader.js +470 -0
- package/dist/src/core/living-docs/enterprise/spec-loader.js.map +1 -0
- package/dist/src/core/living-docs/intelligent-analyzer/inconsistency-detector.d.ts +31 -1
- package/dist/src/core/living-docs/intelligent-analyzer/inconsistency-detector.d.ts.map +1 -1
- package/dist/src/core/living-docs/intelligent-analyzer/inconsistency-detector.js +626 -14
- package/dist/src/core/living-docs/intelligent-analyzer/inconsistency-detector.js.map +1 -1
- package/dist/src/core/living-docs/intelligent-analyzer/index.d.ts +8 -0
- package/dist/src/core/living-docs/intelligent-analyzer/index.d.ts.map +1 -1
- package/dist/src/core/living-docs/intelligent-analyzer/index.js +87 -4
- package/dist/src/core/living-docs/intelligent-analyzer/index.js.map +1 -1
- package/dist/src/core/living-docs/intelligent-analyzer/types.d.ts +3 -1
- package/dist/src/core/living-docs/intelligent-analyzer/types.d.ts.map +1 -1
- package/dist/src/core/living-docs/operations/index.d.ts +8 -0
- package/dist/src/core/living-docs/operations/index.d.ts.map +1 -0
- package/dist/src/core/living-docs/operations/index.js +7 -0
- package/dist/src/core/living-docs/operations/index.js.map +1 -0
- package/dist/src/core/living-docs/operations/ops-generator.d.ts +53 -0
- package/dist/src/core/living-docs/operations/ops-generator.d.ts.map +1 -0
- package/dist/src/core/living-docs/operations/ops-generator.js +462 -0
- package/dist/src/core/living-docs/operations/ops-generator.js.map +1 -0
- package/package.json +1 -1
- package/plugins/specweave/commands/living-docs.md +168 -39
- package/plugins/specweave-github/lib/github-feature-sync.js +1 -1
- package/plugins/specweave-github/lib/github-feature-sync.ts +3 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sw:living-docs
|
|
3
|
-
description: Launch or resume Living Docs Builder independently. Generates documentation from codebase analysis with AI-powered insights.
|
|
3
|
+
description: Launch or resume Living Docs Builder independently. Generates comprehensive enterprise documentation from codebase analysis with AI-powered insights.
|
|
4
4
|
usage: /sw:living-docs [--resume <jobId>] [--depth <level>] [--priority <modules>] [--sources <folders>] [--depends-on <jobIds>] [--foreground] [--full-scan]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -17,6 +17,7 @@ Launch the Living Docs Builder independently of `specweave init`. This is essent
|
|
|
17
17
|
- **On-demand analysis** - Re-analyze codebase after major changes
|
|
18
18
|
- **Large brownfield projects** - Run targeted analysis on specific modules
|
|
19
19
|
- **CI/CD integration** - Automate documentation generation
|
|
20
|
+
- **Enterprise knowledge base** - Generate comprehensive "wikipedia-style" documentation of your entire organization
|
|
20
21
|
|
|
21
22
|
---
|
|
22
23
|
|
|
@@ -32,7 +33,7 @@ Launch the Living Docs Builder independently of `specweave init`. This is essent
|
|
|
32
33
|
| `--depends-on <jobIds>` | Wait for jobs before starting (comma-separated) |
|
|
33
34
|
| `--foreground` | Run in current session instead of background |
|
|
34
35
|
| `--force` | Force run even for greenfield projects |
|
|
35
|
-
| `--full-scan` | **Force full
|
|
36
|
+
| `--full-scan` | **Force full enterprise scan** - All 8 phases including enterprise KB, delivery/ops docs, diagrams |
|
|
36
37
|
|
|
37
38
|
---
|
|
38
39
|
|
|
@@ -67,16 +68,17 @@ Launch the Living Docs Builder independently of `specweave init`. This is essent
|
|
|
67
68
|
### Quick Analysis (Non-Interactive)
|
|
68
69
|
|
|
69
70
|
```bash
|
|
70
|
-
# Quick scan -
|
|
71
|
+
# Quick scan - basic structure + imports + tech detection + inconsistencies
|
|
71
72
|
/sw:living-docs --depth quick
|
|
72
73
|
|
|
73
|
-
# Standard analysis -
|
|
74
|
+
# Standard analysis - modules + dependencies + relationships + diagrams
|
|
74
75
|
/sw:living-docs --depth standard --priority auth,payments
|
|
75
76
|
|
|
76
77
|
# AI-powered deep analysis (FREE with MAX subscription)
|
|
77
78
|
/sw:living-docs --depth deep-native --priority core,api
|
|
78
79
|
|
|
79
|
-
#
|
|
80
|
+
# FULL ENTERPRISE SCAN - All 8 phases (A through H)
|
|
81
|
+
# Generates complete knowledge base: company history, team structure, delivery docs, diagrams
|
|
80
82
|
/sw:living-docs --full-scan
|
|
81
83
|
```
|
|
82
84
|
|
|
@@ -84,53 +86,131 @@ Launch the Living Docs Builder independently of `specweave init`. This is essent
|
|
|
84
86
|
|
|
85
87
|
## Analysis Depths
|
|
86
88
|
|
|
87
|
-
| Depth |
|
|
88
|
-
|
|
89
|
-
| `quick` |
|
|
90
|
-
| `standard` |
|
|
91
|
-
| `deep-native` |
|
|
92
|
-
| `deep-interactive` |
|
|
89
|
+
| Depth | Scope | What It Does | Cost |
|
|
90
|
+
|-------|-------|--------------|------|
|
|
91
|
+
| `quick` | Core analysis | Structure scan + tech detection + imports map + inconsistency detection + basic diagrams | Free |
|
|
92
|
+
| `standard` | Full module analysis | Module deep-dive + exports + dependencies + relationships + team detection + Mermaid diagrams | Free |
|
|
93
|
+
| `deep-native` | Intelligent analysis | ⭐ AI-powered understanding: purpose extraction, pattern recognition, organization synthesis | FREE (MAX) |
|
|
94
|
+
| `deep-interactive` | Enterprise knowledge | AI analysis in current session with full enterprise KB generation (checkpoint/resume) | FREE (MAX) |
|
|
93
95
|
|
|
94
|
-
###
|
|
96
|
+
### Quick Depth Features (Expanded)
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
Quick mode now includes:
|
|
99
|
+
- File structure discovery across all repos
|
|
100
|
+
- Technology stack detection (frameworks, languages, tools)
|
|
101
|
+
- Import/export dependency mapping
|
|
102
|
+
- **Basic inconsistency detection** (duplicates, naming issues)
|
|
103
|
+
- **Basic Mermaid diagrams** (module structure, imports)
|
|
104
|
+
- External specification loading (GitHub/JIRA/ADO imports)
|
|
105
|
+
|
|
106
|
+
### Standard Depth Features (Expanded)
|
|
107
|
+
|
|
108
|
+
Standard mode adds:
|
|
109
|
+
- Deep module analysis with exports/APIs
|
|
110
|
+
- Cross-module dependency graphs
|
|
111
|
+
- **Team structure inference** from code ownership
|
|
112
|
+
- **Relationship mapping** (feature-to-code, team-to-features)
|
|
113
|
+
- **Full Mermaid diagram suite** (org charts, dependencies, timelines)
|
|
114
|
+
- Basic architecture detection (patterns, ADR candidates)
|
|
115
|
+
- Spec-code gap detection
|
|
116
|
+
|
|
117
|
+
### Full Scan Mode (--full-scan) - Enterprise Knowledge Base
|
|
118
|
+
|
|
119
|
+
**What it does**: Forces a comprehensive deep analysis through **ALL 8 PHASES (A-H)**, generating a complete enterprise knowledge base that serves as a "living wikipedia" for your organization.
|
|
97
120
|
|
|
98
121
|
**When to use**:
|
|
99
122
|
- Initial setup - want complete documentation structure
|
|
100
123
|
- After major refactoring - need fresh analysis of everything
|
|
101
124
|
- Imported external repos - want full org structure, inconsistencies, strategy docs
|
|
102
|
-
-
|
|
125
|
+
- Enterprise documentation - need company history, team directory, delivery docs
|
|
126
|
+
- Complete living docs - all folders populated with cross-referenced documentation
|
|
103
127
|
|
|
104
|
-
**
|
|
128
|
+
**Duration**: Variable based on project size and complexity. For large enterprise projects (50+ repos, 247+ microservices), **expect this to run over multiple sessions spanning days or weeks**. The checkpoint/resume system ensures no work is lost.
|
|
129
|
+
|
|
130
|
+
**What you get** (complete enterprise knowledge base):
|
|
105
131
|
```
|
|
106
132
|
.specweave/docs/internal/
|
|
107
|
-
├── repos/ #
|
|
133
|
+
├── repos/ # Per-repo analysis (Phase B)
|
|
108
134
|
│ └── {repo-name}/
|
|
109
|
-
│ ├── overview.md
|
|
110
|
-
│ └── api-surface.md
|
|
135
|
+
│ ├── overview.md # Purpose, key concepts, patterns
|
|
136
|
+
│ └── api-surface.md # All public APIs documented
|
|
137
|
+
│
|
|
111
138
|
├── organization/ # Team structure (Phase C)
|
|
112
139
|
│ ├── teams/
|
|
113
|
-
│ └──
|
|
140
|
+
│ │ └── {team-name}.md # Responsibilities, expertise, tech stack
|
|
141
|
+
│ ├── microservices/ # Service boundaries
|
|
142
|
+
│ ├── domains/ # Domain groupings
|
|
143
|
+
│ └── org-synthesis.md # Organization overview
|
|
144
|
+
│
|
|
114
145
|
├── architecture/ # System architecture (Phase D)
|
|
115
|
-
│ ├── adr/
|
|
116
|
-
│ └──
|
|
117
|
-
├──
|
|
118
|
-
│
|
|
119
|
-
│
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
146
|
+
│ ├── adr/ # Auto-detected ADRs with evidence
|
|
147
|
+
│ │ └── 0001-pattern-name.md
|
|
148
|
+
│ ├── system-architecture.md # High-level architecture
|
|
149
|
+
│ └── c4-diagrams/ # C4 model diagrams
|
|
150
|
+
│
|
|
151
|
+
├── review-needed/ # Categorized issues (Phase E) ✨
|
|
152
|
+
│ ├── index.md # Overview with priority summary
|
|
153
|
+
│ ├── CRITICAL-ISSUES.md # P0: Must fix immediately
|
|
154
|
+
│ ├── BROKEN-LINKS.md # All broken references
|
|
155
|
+
│ ├── SPEC-CODE-GAPS.md # Ghost completions, missing impl
|
|
156
|
+
│ ├── ORPHANED-DOCS.md # Docs without owners
|
|
157
|
+
│ └── tech-debt-catalog.md # Categorized tech debt
|
|
158
|
+
│
|
|
159
|
+
├── strategy/ # Strategic recommendations (Phase F) ✨
|
|
160
|
+
│ ├── recommendations.md # Prioritized action items
|
|
161
|
+
│ ├── modernization.md # Migration/upgrade candidates
|
|
162
|
+
│ └── risk-assessment.md # Security and compliance risks
|
|
163
|
+
│
|
|
164
|
+
├── enterprise/ # Enterprise KB (Phase G) ✨✨ NEW
|
|
165
|
+
│ ├── COMPANY-HISTORY.md # Timeline of project evolution
|
|
166
|
+
│ ├── FEATURE-CATALOG.md # All features with status/ownership
|
|
167
|
+
│ ├── TEAM-DIRECTORY.md # Team roster with expertise areas
|
|
168
|
+
│ └── PROJECT-METRICS.md # Stats: features, completions, velocity
|
|
169
|
+
│
|
|
170
|
+
├── delivery/ # Delivery documentation (Phase G) ✨✨ NEW
|
|
171
|
+
│ ├── RELEASE-HISTORY.md # All releases with changelogs
|
|
172
|
+
│ ├── CI-CD-PIPELINE.md # Pipeline documentation
|
|
173
|
+
│ ├── DEPLOYMENT-GUIDE.md # How to deploy
|
|
174
|
+
│ └── ENVIRONMENTS.md # Environment configurations
|
|
175
|
+
│
|
|
176
|
+
├── operations/ # Ops documentation (Phase G) ✨✨ NEW
|
|
177
|
+
│ ├── RUNBOOKS.md # Operational procedures
|
|
178
|
+
│ ├── MONITORING.md # What to monitor
|
|
179
|
+
│ ├── INCIDENT-HISTORY.md # Past incidents (if any)
|
|
180
|
+
│ └── SLA-TRACKING.md # Service level targets
|
|
181
|
+
│
|
|
182
|
+
├── relationships/ # Cross-references (Phase G) ✨✨ NEW
|
|
183
|
+
│ ├── FEATURE-TO-CODE.md # Feature → file mappings
|
|
184
|
+
│ ├── TEAM-TO-FEATURES.md # Team → owned features
|
|
185
|
+
│ ├── MODULE-DEPENDENCIES.md # Module → module deps
|
|
186
|
+
│ └── EXTERNAL-REFS.md # External tool linkages
|
|
187
|
+
│
|
|
188
|
+
└── diagrams/ # Mermaid diagrams (Phase H) ✨✨ NEW
|
|
189
|
+
├── feature-hierarchy.md # Feature tree visualization
|
|
190
|
+
├── team-org-chart.md # Team structure
|
|
191
|
+
├── module-dependencies.md # Dependency graph
|
|
192
|
+
├── project-timeline.md # Gantt chart of evolution
|
|
193
|
+
├── system-architecture.md # C4 context diagram
|
|
194
|
+
└── feature-status.md # Pie chart of completion
|
|
125
195
|
```
|
|
126
196
|
|
|
127
197
|
**Command**:
|
|
128
198
|
```bash
|
|
129
199
|
/sw:living-docs --full-scan
|
|
130
200
|
|
|
131
|
-
# Uses deep-native
|
|
132
|
-
# Runs ALL phases: B → C → D → E → F
|
|
133
|
-
#
|
|
201
|
+
# Uses deep-native (Claude MAX) for AI-powered analysis
|
|
202
|
+
# Runs ALL 8 phases: A → B → C → D → E → F → G → H
|
|
203
|
+
# Checkpoint/resume: Can stop and continue from any phase
|
|
204
|
+
# Enterprise projects: May take multiple sessions (days/weeks)
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Resume after interruption**:
|
|
208
|
+
```bash
|
|
209
|
+
# Check progress
|
|
210
|
+
/sw:jobs
|
|
211
|
+
|
|
212
|
+
# Resume from checkpoint (all previous work preserved)
|
|
213
|
+
/sw:living-docs --resume <jobId>
|
|
134
214
|
```
|
|
135
215
|
|
|
136
216
|
### Deep-Native (Recommended for MAX Users)
|
|
@@ -150,6 +230,27 @@ Uses your Claude MAX subscription via `claude --print`:
|
|
|
150
230
|
|
|
151
231
|
---
|
|
152
232
|
|
|
233
|
+
## The 8 Phases of Enterprise Analysis
|
|
234
|
+
|
|
235
|
+
Full scan (`--full-scan`) executes all 8 phases sequentially with checkpoint/resume support:
|
|
236
|
+
|
|
237
|
+
| Phase | Name | What It Does | Output |
|
|
238
|
+
|-------|------|--------------|--------|
|
|
239
|
+
| **A** | Discovery | Scan file structure, detect repos, identify entry points | Internal state |
|
|
240
|
+
| **B** | Deep Analysis | AI-powered per-repo understanding: purpose, concepts, APIs, patterns | `repos/{name}/overview.md`, `api-surface.md` |
|
|
241
|
+
| **C** | Org Synthesis | Infer team structure, microservices, domains from code patterns | `organization/teams/`, `microservices/`, `domains/` |
|
|
242
|
+
| **D** | Architecture | Detect architectural decisions, generate ADRs, system diagrams | `architecture/adr/`, `system-architecture.md` |
|
|
243
|
+
| **E** | Inconsistencies | Find issues: broken links, spec-code gaps, orphaned docs, duplicates | `review-needed/CRITICAL-ISSUES.md`, `BROKEN-LINKS.md`, etc. |
|
|
244
|
+
| **F** | Strategy | Generate recommendations, tech debt catalog, modernization roadmap | `strategy/recommendations.md`, `tech-debt-catalog.md` |
|
|
245
|
+
| **G** | Enterprise | Build knowledge base: history, feature catalog, delivery docs, runbooks | `enterprise/`, `delivery/`, `operations/`, `relationships/` |
|
|
246
|
+
| **H** | Diagrams | Generate Mermaid visualizations: org charts, dependencies, timelines | `diagrams/*.md` |
|
|
247
|
+
|
|
248
|
+
**Checkpoint/Resume**: Each phase completion is checkpointed. If interrupted, resume continues from the last completed phase - no work is lost.
|
|
249
|
+
|
|
250
|
+
**Enterprise Scale**: For large organizations (50+ repos), phases B-G may each take significant time. The system is designed for long-running analysis that spans multiple sessions.
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
153
254
|
## Implementation Steps
|
|
154
255
|
|
|
155
256
|
When this command is invoked:
|
|
@@ -307,7 +408,9 @@ After completion, you'll see a detailed summary showing:
|
|
|
307
408
|
|
|
308
409
|
## Output Files
|
|
309
410
|
|
|
310
|
-
After completion:
|
|
411
|
+
After completion (varies by depth):
|
|
412
|
+
|
|
413
|
+
### Core Output (All Depths)
|
|
311
414
|
|
|
312
415
|
| File | Description |
|
|
313
416
|
|------|-------------|
|
|
@@ -317,6 +420,26 @@ After completion:
|
|
|
317
420
|
| `.specweave/docs/overview/TECH-STACK.md` | Detected technologies and frameworks |
|
|
318
421
|
| `.specweave/docs/modules/*.md` | Per-module documentation |
|
|
319
422
|
|
|
423
|
+
### Standard+ Output
|
|
424
|
+
|
|
425
|
+
| Folder | Description |
|
|
426
|
+
|--------|-------------|
|
|
427
|
+
| `.specweave/docs/internal/organization/` | Team structure, microservices, domains |
|
|
428
|
+
| `.specweave/docs/internal/relationships/` | Feature-to-code, team-to-features mappings |
|
|
429
|
+
| `.specweave/docs/internal/diagrams/` | Mermaid diagrams for visual navigation |
|
|
430
|
+
|
|
431
|
+
### Full Scan Output (Enterprise KB)
|
|
432
|
+
|
|
433
|
+
| Folder | Description |
|
|
434
|
+
|--------|-------------|
|
|
435
|
+
| `.specweave/docs/internal/repos/` | Per-repo deep analysis with APIs |
|
|
436
|
+
| `.specweave/docs/internal/architecture/` | ADRs, system architecture, C4 diagrams |
|
|
437
|
+
| `.specweave/docs/internal/review-needed/` | Categorized issues (P0-P3) with remediation |
|
|
438
|
+
| `.specweave/docs/internal/strategy/` | Recommendations, modernization, risk assessment |
|
|
439
|
+
| `.specweave/docs/internal/enterprise/` | Company history, feature catalog, team directory |
|
|
440
|
+
| `.specweave/docs/internal/delivery/` | CI/CD, releases, deployment guides |
|
|
441
|
+
| `.specweave/docs/internal/operations/` | Runbooks, monitoring, SLAs |
|
|
442
|
+
|
|
320
443
|
---
|
|
321
444
|
|
|
322
445
|
## Examples
|
|
@@ -339,16 +462,22 @@ After completion:
|
|
|
339
462
|
# Continuing from: payments-service
|
|
340
463
|
```
|
|
341
464
|
|
|
342
|
-
### Example 2: Large
|
|
465
|
+
### Example 2: Large Enterprise (247 repos)
|
|
343
466
|
|
|
344
467
|
```bash
|
|
345
|
-
#
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
--depends-on clone-main123
|
|
468
|
+
# Full enterprise scan - generates complete knowledge base
|
|
469
|
+
# For large projects, this runs across multiple sessions
|
|
470
|
+
/sw:living-docs --full-scan --depends-on clone-main123
|
|
349
471
|
|
|
350
|
-
# Monitor in
|
|
472
|
+
# Monitor progress (runs in background, survives terminal close)
|
|
351
473
|
/sw:jobs --follow ldb-xyz789
|
|
474
|
+
|
|
475
|
+
# Resume after interruption (all progress preserved)
|
|
476
|
+
/sw:living-docs --resume ldb-xyz789
|
|
477
|
+
|
|
478
|
+
# Alternatively: Focus on critical modules first (faster initial pass)
|
|
479
|
+
/sw:living-docs --depth standard \
|
|
480
|
+
--priority auth,payments,billing,core
|
|
352
481
|
```
|
|
353
482
|
|
|
354
483
|
### Example 3: CI/CD Integration
|
|
@@ -243,7 +243,7 @@ const _GitHubFeatureSync = class _GitHubFeatureSync {
|
|
|
243
243
|
const title = `${featureData.id}: ${featureData.title}`;
|
|
244
244
|
const existingResult = await execFileNoThrow("gh", [
|
|
245
245
|
"api",
|
|
246
|
-
"repos/:owner/:repo/milestones",
|
|
246
|
+
"repos/:owner/:repo/milestones?per_page=100&state=all",
|
|
247
247
|
"--jq",
|
|
248
248
|
`.[] | select(.title == "${title}") | {number, html_url}`
|
|
249
249
|
], { env: this.getGhEnv() });
|
|
@@ -403,9 +403,11 @@ export class GitHubFeatureSync {
|
|
|
403
403
|
const title = `${featureData.id}: ${featureData.title}`;
|
|
404
404
|
|
|
405
405
|
// CRITICAL: Check if milestone already exists before creating
|
|
406
|
+
// NOTE: Must use per_page=100 to handle repos with 30+ milestones (GitHub default is 30)
|
|
407
|
+
// BUG FIX: Without pagination, milestone #31+ won't be found → false "not found" → HTTP 422 duplicate error
|
|
406
408
|
const existingResult = await execFileNoThrow('gh', [
|
|
407
409
|
'api',
|
|
408
|
-
'repos/:owner/:repo/milestones',
|
|
410
|
+
'repos/:owner/:repo/milestones?per_page=100&state=all',
|
|
409
411
|
'--jq',
|
|
410
412
|
`.[] | select(.title == "${title}") | {number, html_url}`,
|
|
411
413
|
], { env: this.getGhEnv() });
|