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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/legion/api/knowledge.rb +9 -1
- data/lib/legion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1dee00872a482d84ca7cffed624add4a568595383b31d93ffe1983d5bfb89d91
|
|
4
|
+
data.tar.gz: 0e8eaba327808c586a3cdf6d9e8da177831ac0ce9f5fb1919de115f48b63346f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/legion/api/knowledge.rb
CHANGED
|
@@ -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] ||
|
|
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
|
data/lib/legion/version.rb
CHANGED