swarm_memory 2.1.4 → 2.1.5

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: ebb25752a42e174408e197c5b24d94ebfbd2a57cfd5a26101e839f2375e54b8f
4
- data.tar.gz: 9558c9e19cfb486872d6cee1b445506e9c599f8d4a767670743f3a3f1481fb49
3
+ metadata.gz: a369eca2d045a343a33401961b7a52a7bf85320290c738d029d41b1ba70e3d16
4
+ data.tar.gz: cabb8cdccd8d70c120eed67a712f540c31e7f55a1be4a7111c8245dff1f43288
5
5
  SHA512:
6
- metadata.gz: a5d16f99c9aeb5fca71dfed900a8e44337d2fa5a1ee58fbec71e25f6825091973c0ef849a9c28cd88eb3bfdac9a481bbe743de2fd034fe3f124c8ea0aa23c5f1
7
- data.tar.gz: b2ce4c330d45730c723a51786301d39dcc8c3b57eb19f65f6510b5b3027620d3ab214df201e8237b2b0e36f82c726b04e233cbb0266187aa7743446e1215b854
6
+ metadata.gz: dc3df17100dc6ac2ca51c0c2176dc37fc9230ea3dd225f69f344484acc4b034ed1f8f51697d3efdbdad91f616504aa183c67cb2aa52ddfe08b68463436b915ad
7
+ data.tar.gz: 5ea7132d46c4b9048616cbbf56cf390ada52bd5087f69fb34d1eb0cbe9d063a21676bade7c86166bd46bd4a78bf1f1464c2e9eedd79494718619559b3665f82a
@@ -2,6 +2,12 @@
2
2
 
3
3
  module ClaudeSwarm
4
4
  class McpGenerator
5
+ CLAUDE_MCP_SERVER_CONFIG = {
6
+ "type" => "stdio",
7
+ "command" => "claude",
8
+ "args" => ["mcp", "serve"],
9
+ }.freeze
10
+
5
11
  def initialize(configuration, vibe: false, restore_session_path: nil)
6
12
  @config = configuration
7
13
  @vibe = vibe
@@ -65,7 +71,7 @@ module ClaudeSwarm
65
71
  end
66
72
 
67
73
  # Add Claude tools MCP server for OpenAI instances
68
- mcp_servers["claude_tools"] = build_claude_tools_mcp_config if instance[:provider] == "openai"
74
+ mcp_servers["claude_tools"] = CLAUDE_MCP_SERVER_CONFIG.dup if instance[:provider] == "openai"
69
75
 
70
76
  config = {
71
77
  "instance_id" => @instance_ids[name],
@@ -96,25 +102,6 @@ module ClaudeSwarm
96
102
  end
97
103
  end
98
104
 
99
- def build_claude_tools_mcp_config
100
- # Build environment for claude mcp serve by excluding Ruby/Bundler-specific variables
101
- # This preserves all system variables while removing Ruby contamination
102
- clean_env = ENV.to_h.reject do |key, _|
103
- key.start_with?("BUNDLE_") ||
104
- key.start_with?("RUBY") ||
105
- key.start_with?("GEM_") ||
106
- key == "RUBYOPT" ||
107
- key == "RUBYLIB"
108
- end
109
-
110
- {
111
- "type" => "stdio",
112
- "command" => "claude",
113
- "args" => ["mcp", "serve"],
114
- "env" => clean_env,
115
- }
116
- end
117
-
118
105
  def build_instance_mcp_config(name, instance, calling_instance:, calling_instance_id:)
119
106
  # Get the path to the claude-swarm executable
120
107
  exe_path = "claude-swarm"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClaudeSwarm
4
- VERSION = "1.0.9"
4
+ VERSION = "1.0.10"
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SwarmMemory
4
- VERSION = "2.1.4"
4
+ VERSION = "2.1.5"
5
5
  end
data/lib/swarm_memory.rb CHANGED
@@ -21,8 +21,8 @@ rescue LoadError
21
21
  warn("Warning: informers gem not found. Semantic search will be unavailable. Run: gem install informers")
22
22
  end
23
23
 
24
- # Load errors and version first
25
- require_relative "swarm_memory/errors"
24
+ # Load error classes and version first (before Zeitwerk)
25
+ require_relative "swarm_memory/error"
26
26
  require_relative "swarm_memory/version"
27
27
 
28
28
  # Setup Zeitwerk loader
@@ -36,6 +36,11 @@ loader.inflector.inflect(
36
36
  "dsl" => "DSL",
37
37
  "sdk_plugin" => "SDKPlugin",
38
38
  )
39
+
40
+ # Ignore files that are manually loaded above
41
+ loader.ignore("#{__dir__}/swarm_memory/error.rb")
42
+ loader.ignore("#{__dir__}/swarm_memory/version.rb")
43
+
39
44
  loader.setup
40
45
 
41
46
  # Explicitly load DSL components and extensions to inject into SwarmSDK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swarm_memory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda
@@ -175,7 +175,7 @@ files:
175
175
  - lib/swarm_memory/dsl/memory_config.rb
176
176
  - lib/swarm_memory/embeddings/embedder.rb
177
177
  - lib/swarm_memory/embeddings/informers_embedder.rb
178
- - lib/swarm_memory/errors.rb
178
+ - lib/swarm_memory/error.rb
179
179
  - lib/swarm_memory/integration/cli_registration.rb
180
180
  - lib/swarm_memory/integration/configuration.rb
181
181
  - lib/swarm_memory/integration/registration.rb
File without changes