legionio 1.8.14 → 1.8.15

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: 47d2f43298e4d606c1a6817bddee1bc2e09fe63c78bcae858c45cdc29622ab85
4
- data.tar.gz: 6043356cca31ed43034509f3c4e0f6de5b37dc8cc72011c4442cf50c072e392a
3
+ metadata.gz: 0e89dd57228cd0a6289346f6e88acc388a955843b32f7d7e2b77e1431b20bd67
4
+ data.tar.gz: 42d1ba78b03b822f55d1a961eed3ea4590ac80611c0002396ffd13172240595a
5
5
  SHA512:
6
- metadata.gz: 29daf6503fc9a0fa6fd893d50b1dc05ac35040c6ed3b49024cb46df6863efe173a69b87c0bee65a5aaa65f6779b50f16784487cddde26c8ed92dfedc816a12c9
7
- data.tar.gz: 90d6980b55176786950d8da78ace2f902c5974f1c2d5887a73eab97b7fb690a2cdb9fde657eeeddd44ee839d42d0fda4bbfe83dda2d9ee8f75cbef08e7b4941b
6
+ metadata.gz: 3e088fa7bf6bf5d5175b42d6b6e9a4c814a89d44d055713172de17d9b2344082f6ea05738092020b55f080d4bad55e984dc636ac437b82048a43444ba3e645da
7
+ data.tar.gz: b09b41ef56ba5d471594e7c83e422f53da41b3488816dabf0692456efccf246db61f35a5a5207fa8db8d879b1891fff1e4241b37fcf94865afc24820e4559858
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.8.15] - 2026-04-22
6
+
7
+ ### Fixed
8
+ - `legionio knowledge ingest <file>` no longer returns `API 500 for /api/knowledge/ingest`. Two halves of the same contract mismatch: (a) the CLI previously forwarded `dry_run:` on every call (now only when `--dry-run` is passed), and (b) the `/api/knowledge/ingest` route forwarded `dry_run:` to `Legion::Extensions::Knowledge::Runners::Ingest.ingest_file`, whose signature in `lex-knowledge` 0.6.7 is `ingest_file(file_path:, force:)` — causing `ArgumentError: unknown keyword: :dry_run`. The kwarg remains honored for directory (corpus) ingests, which support preview scans. Adds regression coverage in `spec/legion/cli/knowledge_command_spec.rb` (negative-case for file ingest) and a new `spec/api/knowledge_spec.rb` covering the file/directory/dry_run branches of the route.
9
+
5
10
  ## [1.8.14] - 2026-04-18
6
11
 
7
12
  ### Fixed
@@ -55,8 +55,7 @@ module Legion
55
55
  else
56
56
  Legion::Extensions::Knowledge::Runners::Ingest.ingest_file(
57
57
  file_path: body[:path],
58
- force: body[:force] || false,
59
- dry_run: body[:dry_run] || false
58
+ force: body[:force] || false
60
59
  )
61
60
  end
62
61
  else
@@ -320,8 +320,9 @@ module Legion
320
320
  option :force, type: :boolean, default: false, desc: 'Re-ingest even unchanged files'
321
321
  option :dry_run, type: :boolean, default: false, desc: 'Preview without writing'
322
322
  def ingest(path)
323
- result = api_post('/api/knowledge/ingest',
324
- path: ::File.expand_path(path), force: options[:force], dry_run: options[:dry_run])
323
+ payload = { path: ::File.expand_path(path), force: options[:force] }
324
+ payload[:dry_run] = options[:dry_run] if options[:dry_run]
325
+ result = api_post('/api/knowledge/ingest', **payload)
325
326
  out = formatter
326
327
  if options[:json]
327
328
  out.json(result)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Legion
4
- VERSION = '1.8.14'
4
+ VERSION = '1.8.15'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legionio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.14
4
+ version: 1.8.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity