lex-coldstart 0.1.1 → 0.1.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f19f29521fd880a8354fb8e598df257f12773b16b23e3d5425b8961c31454b8b
|
|
4
|
+
data.tar.gz: ad5904f977bcae3f39598caba2ead15addcc31aadb7be337443fe1394e15cf5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f15ed7d23e7a3db41f906b0ed4d604fdd743ef4b03b698ffdddd0caa50789f67668f56522550d3b20c129468a8b80b8195d3273d4573fe6fbb5a8fc4c78bf4d
|
|
7
|
+
data.tar.gz: ea7ec53dacc0e4e2e7ed61d40fe4c3359b1a4ee1569bbd4d97cf91d95dd8df1730e50142df141482d33586e5408bbc416bf68bd7fcac8743cee356fbefeda93d
|
|
@@ -8,11 +8,11 @@ module Legion
|
|
|
8
8
|
include Legion::Extensions::Helpers::Lex if Legion::Extensions.const_defined?(:Helpers) &&
|
|
9
9
|
Legion::Extensions::Helpers.const_defined?(:Lex)
|
|
10
10
|
|
|
11
|
-
# Ingest a single Claude memory or CLAUDE.md file into
|
|
12
|
-
# If lex-memory is not loaded, returns the parsed traces without storing.
|
|
11
|
+
# Ingest a single Claude memory or CLAUDE.md file into agentic memory traces.
|
|
12
|
+
# If lex-agentic-memory is not loaded, returns the parsed traces without storing.
|
|
13
13
|
#
|
|
14
14
|
# @param file_path [String] absolute path to the markdown file
|
|
15
|
-
# @param store_traces [Boolean] whether to store into
|
|
15
|
+
# @param store_traces [Boolean] whether to store into agentic memory (default: true)
|
|
16
16
|
# @return [Hash] { file:, file_type:, traces_parsed:, traces_stored:, traces: }
|
|
17
17
|
def ingest_file(file_path:, store_traces: true, **)
|
|
18
18
|
unless File.exist?(file_path)
|
|
@@ -39,7 +39,7 @@ module Legion
|
|
|
39
39
|
#
|
|
40
40
|
# @param dir_path [String] absolute path to the directory
|
|
41
41
|
# @param pattern [String] glob pattern (default: '**/{CLAUDE,MEMORY}.md')
|
|
42
|
-
# @param store_traces [Boolean] whether to store into
|
|
42
|
+
# @param store_traces [Boolean] whether to store into agentic memory (default: true)
|
|
43
43
|
# @return [Hash] { directory:, files_found:, total_parsed:, total_stored:, files: }
|
|
44
44
|
def ingest_directory(dir_path:, pattern: '**/{CLAUDE,MEMORY}.md', store_traces: true, **)
|
|
45
45
|
unless Dir.exist?(dir_path)
|
|
@@ -117,13 +117,15 @@ module Legion
|
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
def memory_available?
|
|
120
|
-
Legion::Extensions.const_defined?(:
|
|
121
|
-
Legion::Extensions::
|
|
122
|
-
Legion::Extensions::Memory
|
|
120
|
+
Legion::Extensions.const_defined?(:Agentic) &&
|
|
121
|
+
Legion::Extensions::Agentic.const_defined?(:Memory) &&
|
|
122
|
+
Legion::Extensions::Agentic::Memory.const_defined?(:Trace) &&
|
|
123
|
+
Legion::Extensions::Agentic::Memory::Trace.const_defined?(:Runners) &&
|
|
124
|
+
Legion::Extensions::Agentic::Memory::Trace::Runners.const_defined?(:Traces)
|
|
123
125
|
end
|
|
124
126
|
|
|
125
127
|
def memory_runner
|
|
126
|
-
@memory_runner ||= Object.new.extend(Legion::Extensions::Memory::Runners::Traces)
|
|
128
|
+
@memory_runner ||= Object.new.extend(Legion::Extensions::Agentic::Memory::Trace::Runners::Traces)
|
|
127
129
|
end
|
|
128
130
|
|
|
129
131
|
def imprint_active_now?
|