legionio 1.9.1 → 1.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45c36457fa18952ae68b86d8b1d230a5166bdf119338ce9c9e23791b413f822b
4
- data.tar.gz: 380124a7e0321717dc18751d5de61bf83b2cd255d50efa5cf07a920c7d115f5a
3
+ metadata.gz: 1dee00872a482d84ca7cffed624add4a568595383b31d93ffe1983d5bfb89d91
4
+ data.tar.gz: 0e8eaba327808c586a3cdf6d9e8da177831ac0ce9f5fb1919de115f48b63346f
5
5
  SHA512:
6
- metadata.gz: 4bbc31826f903cbc0753fb79ed0745b1322d0acc86009a7b88586cd7ca4f520bc5e97d81f7c777bb7ba72be89d7d894565403cc413eda5b6934eadf35161f1b3
7
- data.tar.gz: b546b6d4bd2f78e5a5d87c4acc253c1d849bd59adbd45af28781f16ab56c1895c389145576bf9ddae0af14b0907e32a4ee560817c34d2b2a83d11ab1a05bb10a
6
+ metadata.gz: 7b7124a1ed4fa62aaa5da4e55391961973435b324cc17142245c52af7b32d43d6f7c161341f12d27aca47310dc9e6289a3d1a4d781561b001baa724c03ddc8ba
7
+ data.tar.gz: 952d0045d985d1f14ac76e15e015fa8bd279ed92ae123cd43e7f5139ed7efbee9a3cba93856ce2f6c8603e74f9549495e415fcd8459a27d3b35cb169eebec617
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.9.2] - 2026-04-27
6
+
7
+ ### Fixed
8
+ - `POST /api/knowledge/status` no longer silently defaults to the daemon's cwd. Uses `knowledge.default_corpus_path` setting or `LEGION_CORPUS_PATH` env var; returns 400 when unresolvable. Prevents `Errno::EPERM` crashes on macOS when the daemon is launched from `~` and `Find.find` walks into TCC-protected subdirs like `~/Library/Accounts`.
9
+
5
10
  ## [1.9.1] - 2026-04-25
6
11
 
7
12
  ### Added
@@ -67,7 +67,15 @@ module Legion
67
67
  app.post '/api/knowledge/status' do
68
68
  require_knowledge_ingest!
69
69
  body = parse_request_body
70
- path = body[:path] || Dir.pwd
70
+ path = body[:path] ||
71
+ Legion::Settings.dig(:knowledge, :default_corpus_path) ||
72
+ ENV.fetch('LEGION_CORPUS_PATH', nil)
73
+
74
+ if path.nil? || path.to_s.empty?
75
+ halt 400, json_error('missing_param',
76
+ 'path is required (no knowledge.default_corpus_path configured)')
77
+ end
78
+
71
79
  result = Legion::Extensions::Knowledge::Runners::Ingest.scan_corpus(path: path)
72
80
  json_response(result)
73
81
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Legion
4
- VERSION = '1.9.1'
4
+ VERSION = '1.9.2'
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.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity