kiro-spec-engine 1.4.3 → 1.5.2
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/CHANGELOG.md +86 -4
- package/README.md +16 -0
- package/README.zh.md +380 -0
- package/bin/kiro-spec-engine.js +102 -44
- package/docs/adoption-guide.md +53 -0
- package/docs/document-governance.md +864 -0
- package/docs/spec-numbering-guide.md +348 -0
- package/docs/spec-workflow.md +65 -0
- package/docs/troubleshooting.md +339 -0
- package/docs/zh/spec-numbering-guide.md +348 -0
- package/lib/adoption/adoption-strategy.js +22 -6
- package/lib/adoption/conflict-resolver.js +239 -0
- package/lib/adoption/diff-viewer.js +226 -0
- package/lib/backup/selective-backup.js +207 -0
- package/lib/commands/adopt.js +95 -10
- package/lib/commands/docs.js +717 -0
- package/lib/commands/doctor.js +141 -3
- package/lib/commands/status.js +77 -5
- package/lib/governance/archive-tool.js +231 -0
- package/lib/governance/cleanup-tool.js +237 -0
- package/lib/governance/config-manager.js +186 -0
- package/lib/governance/diagnostic-engine.js +271 -0
- package/lib/governance/execution-logger.js +243 -0
- package/lib/governance/file-scanner.js +285 -0
- package/lib/governance/hooks-manager.js +333 -0
- package/lib/governance/reporter.js +337 -0
- package/lib/governance/validation-engine.js +181 -0
- package/package.json +7 -7
package/docs/adoption-guide.md
CHANGED
|
@@ -220,6 +220,59 @@ kse adopt --mode partial
|
|
|
220
220
|
kse adopt --mode full
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
+
### Force Overwrite Conflicting Files
|
|
224
|
+
|
|
225
|
+
When you want to update template files to the latest version:
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
# Force overwrite conflicting files (creates backup first)
|
|
229
|
+
kse adopt --force
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**What it does**:
|
|
233
|
+
- Overwrites existing steering files with latest templates
|
|
234
|
+
- Automatically creates backup before overwriting
|
|
235
|
+
- Useful when upgrading to get latest template improvements
|
|
236
|
+
- Shows clear warning about which files will be overwritten
|
|
237
|
+
|
|
238
|
+
**Use cases**:
|
|
239
|
+
- Upgrading template files to latest version
|
|
240
|
+
- Resetting steering files to defaults
|
|
241
|
+
- Applying new template improvements
|
|
242
|
+
|
|
243
|
+
**Safety**:
|
|
244
|
+
- Always creates backup before overwriting
|
|
245
|
+
- Can rollback with `kse rollback` if needed
|
|
246
|
+
- Preserves your Spec content (only updates templates)
|
|
247
|
+
|
|
248
|
+
**Example**:
|
|
249
|
+
```bash
|
|
250
|
+
$ kse adopt --force
|
|
251
|
+
|
|
252
|
+
⚠️ Conflicts detected:
|
|
253
|
+
- steering/CORE_PRINCIPLES.md
|
|
254
|
+
- steering/ENVIRONMENT.md
|
|
255
|
+
- README.md
|
|
256
|
+
⚠️ --force enabled: Conflicting files will be overwritten
|
|
257
|
+
A backup will be created before overwriting
|
|
258
|
+
|
|
259
|
+
? Proceed with adoption? Yes
|
|
260
|
+
|
|
261
|
+
📦 Creating backup...
|
|
262
|
+
✅ Backup created: backup-20260124-143022
|
|
263
|
+
|
|
264
|
+
🚀 Executing adoption...
|
|
265
|
+
✅ Adoption completed successfully!
|
|
266
|
+
|
|
267
|
+
Files updated:
|
|
268
|
+
~ steering/CORE_PRINCIPLES.md
|
|
269
|
+
~ steering/ENVIRONMENT.md
|
|
270
|
+
~ README.md
|
|
271
|
+
|
|
272
|
+
📦 Backup: backup-20260124-143022
|
|
273
|
+
Run kse rollback if you need to undo changes
|
|
274
|
+
```
|
|
275
|
+
|
|
223
276
|
---
|
|
224
277
|
|
|
225
278
|
## Common Scenarios
|