speccrew 0.6.4 → 0.6.5

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.
@@ -296,22 +296,27 @@ Feature inventory exists but detailed analysis may be incomplete.
296
296
 
297
297
  #### Path C: No Knowledge (status = "none")
298
298
 
299
- > 🛑 **MANDATORY: Auto-initialization MUST be executed when status is "none".**
300
- > **DO NOT skip initialization and proceed directly to Phase 2.**
301
- > **DO NOT ask user whether to initialize — this is AUTOMATIC.**
299
+ > 🛑 **MANDATORY: Lightweight feature inventory MUST be generated when status is "none".**
300
+ > **DO NOT skip to Phase 2 when status is "none" — at minimum, feature inventory is required.**
301
+ > **DO NOT ask user whether to run feature inventory — this is AUTOMATIC.**
302
+ > **DO NOT run deep module initialization (module-initializer) in this path — that happens in Path B after matching.**
302
303
  >
303
304
  > ⚠️ FORBIDDEN ACTIONS:
304
- > - DO NOT skip to Phase 2 when status is "none"
305
- > - DO NOT proceed without attempting initialization
305
+ > - DO NOT skip to Phase 2 without running feature inventory
306
+ > - DO NOT run module-initializer here — deep init is scoped by requirement in Path B
306
307
  > - DO NOT expose internal concepts (Stage 0, Stage 1) to user
307
308
 
308
- No knowledge base exists. Automatic initialization is triggered.
309
+ No knowledge base exists. A lightweight feature inventory scan is triggered to discover available platforms and modules.
309
310
 
310
- 1. **Inform user**: "No business knowledge base detected. Automatically analyzing project structure..."
311
+ > **IMPORTANT: This step ONLY generates metadata (feature inventory).**
312
+ > It does NOT perform deep module analysis. Deep initialization of specific modules
313
+ > happens later in Path B, scoped to modules that match the user's requirement.
314
+
315
+ 1. **Inform user**: "No business knowledge base detected. Scanning project structure to discover available modules..."
311
316
 
312
317
  > Show progress indication to user. Do NOT mention "Stage 0+1" or any internal concepts.
313
318
 
314
- 2. **MANDATORY: Dispatch Worker** to execute feature inventory initialization:
319
+ 2. **Dispatch Worker** to generate feature inventory (lightweight metadata scan):
315
320
 
316
321
  | Parameter | Value |
317
322
  |-----------|-------|
@@ -319,20 +324,23 @@ No knowledge base exists. Automatic initialization is triggered.
319
324
  | `workspace_path` | `speccrew-workspace` |
320
325
  | `language` | Detected user language |
321
326
 
322
- - Worker performs platform detection + feature inventory generation
323
- - Worker writes `features-*.json` to `knowledges/base/sync-state/knowledge-bizs/` directory
327
+ - Worker scans project structure to discover platforms and modules
328
+ - Worker generates `features-*.json` files (metadata: module names, feature counts, file paths)
329
+ - This is a **lightweight scan** — no deep analysis of module internals
324
330
  - **Wait for Worker to complete before proceeding**
325
331
 
326
332
  3. **After Worker completes**: Re-run Step 1.1 (dispatch detector again)
327
333
  - **Verify** status changed from "none" to "lite"
328
- - If status is now "lite" → Continue with **Path B** flow (module matching + optional deep init)
334
+ - If status is now "lite" → **Continue with Path B flow**
335
+ - Path B will use **matcher** to identify modules relevant to the user's requirement
336
+ - Only those matched modules will be offered for deep initialization (module-initializer)
329
337
  - If status is still "none" → Initialization failed, proceed to Step 4
330
338
 
331
- 4. **IF initialization fails**:
332
- - Report to user: "Project structure analysis encountered issues: [specific error]. Continuing without knowledge base context."
339
+ 4. **IF feature inventory fails**:
340
+ - Report to user: "Project structure scan encountered issues: [specific error]. Continuing without knowledge base context."
333
341
  - Log the error details for debugging
334
342
  - Proceed to Phase 2 in degraded mode (no system context)
335
- - Note: PRD quality will be significantly reduced without knowledge base
343
+ - Note: PRD quality may be reduced without knowledge base
336
344
 
337
345
  ### 1.3 Store Knowledge Context
338
346
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {