kairos-chain 2.0.3 → 2.0.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/kairos_mcp/state_commit/snapshot_manager.rb +11 -1
- data/lib/kairos_mcp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b588bb2644a34f10c7879784f2b9d4e7a61626d5d810d9d6a47289b1325b2c40
|
|
4
|
+
data.tar.gz: 19e2b7b74fd32902f23148cda0d81de5b5aacaaadab49b36678fe14518b81037
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e9bb0bfd4ccdf847650358cb45478d182c8ad7721c78756aa8fb8b0ccbfeb3cb01c9e9ad38b4d8d192235cd4b2878fcd34161d29aa9abfeabee094d19d940fa
|
|
7
|
+
data.tar.gz: cb4f6f5e7f4dc19bd23567b9905e1397d8df510a941c6df5d3f16f68a9265377b584bd7b7a96d28622a29a5e6cb47b794c7723573c23f9a3eaef6df2bfac4c42
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ All notable changes to the `kairos-chain` gem will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
This project follows [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [2.0.4] - 2026-02-25
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **Storage path inconsistency**: `SnapshotManager` resolved `snapshot_dir` relative to `Dir.pwd` (project root) instead of `.kairos/` data directory — snapshots were written to `./storage/snapshots/` instead of `.kairos/storage/snapshots/`. Added `resolve_snapshot_dir()` to ensure all storage paths use consistent base directory resolution.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
7
15
|
## [2.0.3] - 2026-02-24
|
|
8
16
|
|
|
9
17
|
### Fixed
|
|
@@ -16,7 +16,7 @@ module KairosMcp
|
|
|
16
16
|
DEFAULT_MAX_SNAPSHOTS = 100
|
|
17
17
|
|
|
18
18
|
def initialize(snapshot_dir: nil, max_snapshots: nil)
|
|
19
|
-
@snapshot_dir = snapshot_dir
|
|
19
|
+
@snapshot_dir = resolve_snapshot_dir(snapshot_dir)
|
|
20
20
|
@max_snapshots = max_snapshots || DEFAULT_MAX_SNAPSHOTS
|
|
21
21
|
FileUtils.mkdir_p(@snapshot_dir)
|
|
22
22
|
end
|
|
@@ -184,6 +184,16 @@ module KairosMcp
|
|
|
184
184
|
Dir[pattern].sort_by { |f| File.mtime(f) }.reverse
|
|
185
185
|
end
|
|
186
186
|
|
|
187
|
+
# Resolve snapshot directory path relative to KairosMcp.data_dir
|
|
188
|
+
# Config values are relative paths (e.g. "storage/snapshots") that must
|
|
189
|
+
# be resolved against the data directory, not Dir.pwd.
|
|
190
|
+
def resolve_snapshot_dir(dir)
|
|
191
|
+
return KairosMcp.snapshots_dir if dir.nil?
|
|
192
|
+
return dir if File.absolute_path?(dir)
|
|
193
|
+
|
|
194
|
+
File.join(KairosMcp.data_dir, dir)
|
|
195
|
+
end
|
|
196
|
+
|
|
187
197
|
# Load and parse a snapshot file
|
|
188
198
|
def load_snapshot_file(filepath)
|
|
189
199
|
return nil unless File.exist?(filepath)
|
data/lib/kairos_mcp/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kairos-chain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masa Hatakeyama
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|