kiro-spec-engine 1.6.0 → 1.6.1
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 +15 -0
- package/lib/backup/selective-backup.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.6.1] - 2026-01-24
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Cross-platform path handling in SelectiveBackup** 🐛
|
|
12
|
+
- Fixed path construction bug in `lib/backup/selective-backup.js`
|
|
13
|
+
- Changed from string replacement (`this.backupDir.replace('/backups', '')`) to proper path joining
|
|
14
|
+
- Now uses `path.join(projectPath, '.kiro', filePath)` for consistent cross-platform behavior
|
|
15
|
+
- Affects both `createSelectiveBackup()` and `restoreSelective()` methods
|
|
16
|
+
- Ensures backup/restore works correctly on Windows (backslash paths) and Unix (forward slash paths)
|
|
17
|
+
|
|
18
|
+
**Why this matters:**
|
|
19
|
+
- Previous code used string replacement which failed on Windows paths
|
|
20
|
+
- Could cause backup creation to fail silently or create backups in wrong locations
|
|
21
|
+
- Critical for `kse adopt --force` conflict resolution feature
|
|
22
|
+
|
|
8
23
|
## [1.6.0] - 2026-01-24
|
|
9
24
|
|
|
10
25
|
### Changed - BREAKING CONCEPTUAL CHANGE 🎯
|
|
@@ -53,7 +53,7 @@ class SelectiveBackup {
|
|
|
53
53
|
|
|
54
54
|
// Backup each file
|
|
55
55
|
for (const filePath of filePaths) {
|
|
56
|
-
const sourcePath = path.join(projectPath,
|
|
56
|
+
const sourcePath = path.join(projectPath, '.kiro', filePath);
|
|
57
57
|
const destPath = path.join(filesBackupPath, filePath);
|
|
58
58
|
|
|
59
59
|
// Check if source file exists
|
|
@@ -138,7 +138,7 @@ class SelectiveBackup {
|
|
|
138
138
|
for (const filePath of filesToRestore) {
|
|
139
139
|
try {
|
|
140
140
|
const sourcePath = path.join(backupPath, 'files', filePath);
|
|
141
|
-
const destPath = path.join(projectPath,
|
|
141
|
+
const destPath = path.join(projectPath, '.kiro', filePath);
|
|
142
142
|
|
|
143
143
|
// Check if backup file exists
|
|
144
144
|
const sourceExists = await pathExists(sourcePath);
|
package/package.json
CHANGED