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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adf8ce37ef7cfcd174f3800a5434e0c0be92629d4201262d0639075a2958a06c
4
- data.tar.gz: 1ffb3dcd1c70f3d7e069c9e360af5bb797d966fb96bc9f5fdd9f1b975c2a00c9
3
+ metadata.gz: b588bb2644a34f10c7879784f2b9d4e7a61626d5d810d9d6a47289b1325b2c40
4
+ data.tar.gz: 19e2b7b74fd32902f23148cda0d81de5b5aacaaadab49b36678fe14518b81037
5
5
  SHA512:
6
- metadata.gz: ad2aa01dcf5a4819217eccac652b9afd188e171cce54a39b1a826071862fbb5f56a714a34508a51e6ed0cb6c1113beb0e81cabd60229aed0250e9a0084327e53
7
- data.tar.gz: b47f7fb61751282c2a3e4456b405b39a35999c9c7ae599aedeefcdfef6aef5571231a4251086981321c59933e3797b8a3aca40e041427bdb2c0334132e93b8ea
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 || KairosMcp.snapshots_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)
@@ -1,4 +1,4 @@
1
1
  module KairosMcp
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  CHANGELOG_URL = "https://github.com/masaomi/KairosChain_2026/blob/main/CHANGELOG.md"
4
4
  end
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.3
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-24 00:00:00.000000000 Z
11
+ date: 2026-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest