language-operator 0.1.39 → 0.1.40

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: a3674b7904fe01e280096b7e7c37ce8be922379d75a194e31ffd5239b082e7b8
4
- data.tar.gz: 61cd4ab21b5495b537cb4babbe5e0a14c4890a93b9b1f2a1d4d4069c53c3ddc1
3
+ metadata.gz: 6e670a07610f07576228d91fbe02a1ac45e5ce43633bc9b4fc9974db52a04b08
4
+ data.tar.gz: ed8ef8e1e9a9a132582a734676f7aff1745565690fbbe40d7046fc058a3f3b6e
5
5
  SHA512:
6
- metadata.gz: 33714e1bd58eb58d54101a038954a1fbd425ffa34904fdfc8cb3dcb9ba83b0090d445343071190b7bb48e599d8691d99b4918f8a9eab2ecf135634f92c7825ac
7
- data.tar.gz: 235149dfa2f126e31b8450426d70ebb25f39badb30b343e274c7b50ab0d7b3674f224ffae251589967c4ea47022b171af3f0212cd466bc6c994171534e0b48ef
6
+ metadata.gz: f6b727e3736603600df84f13c9c0ea3b3bb98335fc1eabcd20669ccc8908b3b13c631125fe6362bb5f3f13218f4f558c4b37b224d04d2d36bdc32059c8234b18
7
+ data.tar.gz: 8f0ff851ae3cb6b573b315c35e1158db30ec066d74861968be6751a8bb47a99259a28320c553f56face105e17893d81f6e9946ccac8d7f85dfce0b83084862b6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- language-operator (0.1.39)
4
+ language-operator (0.1.40)
5
5
  faraday (~> 2.0)
6
6
  k8s-ruby (~> 0.17)
7
7
  mcp (~> 0.4)
@@ -50,6 +50,27 @@ module LanguageOperator
50
50
  load_and_run(agent)
51
51
  end
52
52
 
53
+ # Load and run agent from a specific file path
54
+ #
55
+ # @param code_path [String] Path to agent DSL code file
56
+ # @param agent_name [String, nil] Name of the agent definition to run
57
+ # @param config_path [String, nil] Path to configuration file
58
+ # @return [void]
59
+ def self.load_and_run_from_file(code_path, agent_name = nil, config_path: nil)
60
+ # Disable stdout buffering for real-time logging in containers
61
+ $stdout.sync = true
62
+ $stderr.sync = true
63
+
64
+ config_path ||= ENV.fetch('CONFIG_PATH', 'config.yaml')
65
+ config = LanguageOperator::Client::Config.load_with_fallback(config_path)
66
+
67
+ # Create agent instance
68
+ agent = LanguageOperator::Agent::Base.new(config)
69
+
70
+ # Load and run the specified agent code
71
+ load_synthesized_agent(agent, code_path, agent_name)
72
+ end
73
+
53
74
  # Load synthesized agent code and run with definition if available
54
75
  #
55
76
  # @param agent [LanguageOperator::Agent::Base] The agent instance
@@ -2,7 +2,7 @@
2
2
  :openapi: 3.0.3
3
3
  :info:
4
4
  :title: Language Operator Agent API
5
- :version: 0.1.39
5
+ :version: 0.1.40
6
6
  :description: HTTP API endpoints exposed by Language Operator reactive agents
7
7
  :contact:
8
8
  :name: Language Operator
@@ -3,7 +3,7 @@
3
3
  "$id": "https://github.com/language-operator/language-operator-gem/schema/agent-dsl.json",
4
4
  "title": "Language Operator Agent DSL",
5
5
  "description": "Schema for defining autonomous AI agents using the Language Operator DSL",
6
- "version": "0.1.39",
6
+ "version": "0.1.40",
7
7
  "type": "object",
8
8
  "properties": {
9
9
  "name": {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LanguageOperator
4
- VERSION = '0.1.39'
4
+ VERSION = '0.1.40'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: language-operator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.39
4
+ version: 0.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Ryan