toolbase 0.6.0__tar.gz → 0.6.1__tar.gz

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.
Files changed (66) hide show
  1. {toolbase-0.6.0 → toolbase-0.6.1}/CHANGELOG.md +6 -0
  2. {toolbase-0.6.0 → toolbase-0.6.1}/PKG-INFO +1 -1
  3. {toolbase-0.6.0 → toolbase-0.6.1}/pyproject.toml +1 -1
  4. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/envs/schema.py +6 -2
  5. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/storage.py +2 -2
  6. {toolbase-0.6.0 → toolbase-0.6.1}/LICENSE +0 -0
  7. {toolbase-0.6.0 → toolbase-0.6.1}/MANIFEST.in +0 -0
  8. {toolbase-0.6.0 → toolbase-0.6.1}/README.md +0 -0
  9. {toolbase-0.6.0 → toolbase-0.6.1}/setup.cfg +0 -0
  10. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/__init__.py +0 -0
  11. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/_setup_host.py +0 -0
  12. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/_toolkit_host.py +0 -0
  13. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/astro.py +0 -0
  14. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/auth.py +0 -0
  15. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/cli.py +0 -0
  16. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/config.py +0 -0
  17. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/connect/__init__.py +0 -0
  18. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/connect/base.py +0 -0
  19. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/connect/claude_code.py +0 -0
  20. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/connect/codex.py +0 -0
  21. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/connect/orchestral.py +0 -0
  22. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/envs/__init__.py +0 -0
  23. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/envs/bundle_deps.py +0 -0
  24. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/envs/cache.py +0 -0
  25. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/envs/config.py +0 -0
  26. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/envs/discovery.py +0 -0
  27. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/envs/manifest.py +0 -0
  28. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/envs/paths.py +0 -0
  29. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/hep.py +0 -0
  30. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/ingest.py +0 -0
  31. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/logging/__init__.py +0 -0
  32. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/logging/logger.py +0 -0
  33. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/naming.py +0 -0
  34. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/neutrino.py +0 -0
  35. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/quantum.py +0 -0
  36. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/serve/__init__.py +0 -0
  37. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/serve/bundles.py +0 -0
  38. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/serve/config.py +0 -0
  39. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/serve/orchestrator.py +0 -0
  40. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/serve/profile_scaffold.py +0 -0
  41. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/serve/profiles.py +0 -0
  42. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/serve/proxy_tool.py +0 -0
  43. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/__init__.py +0 -0
  44. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/_rpc.py +0 -0
  45. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/context.py +0 -0
  46. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/declarative.py +0 -0
  47. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/downloads.py +0 -0
  48. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/prompts.py +0 -0
  49. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/runner.py +0 -0
  50. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/schema.py +0 -0
  51. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/setup/validate_cache.py +0 -0
  52. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/skills.py +0 -0
  53. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/Dockerfile.template +0 -0
  54. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/README.md.template +0 -0
  55. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/__init__.py.template +0 -0
  56. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/mcp/__init__.py.template +0 -0
  57. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/mcp/server_stdio.py.template +0 -0
  58. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/requirements.txt.template +0 -0
  59. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/setup.py.template +0 -0
  60. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/skills/example_skill.md +0 -0
  61. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/tool_example.py +0 -0
  62. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/templates/toolkit.yaml.template +0 -0
  63. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/toolkit.py +0 -0
  64. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/validation.py +0 -0
  65. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase/versioning.py +0 -0
  66. {toolbase-0.6.0 → toolbase-0.6.1}/toolbase.egg-info/SOURCES.txt +0 -0
@@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.6.1] — 2026-07-24
12
+
13
+ ### Fixed
14
+
15
+ - `read_versioned_yaml` / `write_versioned_yaml` (`envs/schema.py`) and the setup-storage helpers (`setup/storage.py`) no longer share a single module-level `ruamel.yaml.YAML()` instance across calls. A `YAML()` object holds mutable parse state and is not thread-safe, so concurrent callers (e.g. two trials resolving an environment in parallel, which parses every cached toolkit's `.install_meta.yaml`) intermittently corrupted it into a misleading `'NoneType' object has no attribute 'anchor'` or a spurious `DuplicateKeyError` against a file that parses cleanly single-threaded. Each read and write now constructs its own loader/dumper. ([#39](https://github.com/alexr314/toolbase/pull/39))
16
+
11
17
  ## [0.2.1] — 2026-06-06
12
18
 
13
19
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolbase
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: The community registry and CLI for AI agent toolkits - discover, share, and serve tools to AI agents over MCP
5
5
  Author-email: Alex Roman <toolbase.dev@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "toolbase"
7
- version = "0.6.0"
7
+ version = "0.6.1"
8
8
  description = "The community registry and CLI for AI agent toolkits - discover, share, and serve tools to AI agents over MCP"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -185,7 +185,11 @@ def read_versioned_yaml(
185
185
 
186
186
  try:
187
187
  with open(path, "r", encoding="utf-8") as f:
188
- data = _yaml.load(f)
188
+ # A fresh loader per call: ruamel's YAML() holds mutable parse
189
+ # state and is NOT thread-safe, so a shared module-level instance
190
+ # races under parallel resolution (corrupting into spurious
191
+ # 'NoneType has no attribute anchor' / DuplicateKeyError).
192
+ data = _new_yaml().load(f)
189
193
  except Exception as e:
190
194
  raise ValueError(f"failed to parse {path}: {e}") from e
191
195
 
@@ -327,7 +331,7 @@ def write_versioned_yaml(
327
331
 
328
332
  tmp = path.with_suffix(path.suffix + ".tmp")
329
333
  with open(tmp, "w", encoding="utf-8") as f:
330
- _yaml.dump(to_write, f)
334
+ _new_yaml().dump(to_write, f) # fresh instance: YAML() is not thread-safe
331
335
  os.replace(tmp, path)
332
336
 
333
337
  try:
@@ -200,7 +200,7 @@ def load_config(
200
200
  return CommentedMap()
201
201
  try:
202
202
  with open(path, "r", encoding="utf-8") as f:
203
- data = _yaml.load(f)
203
+ data = _new_yaml().load(f) # fresh instance: YAML() is not thread-safe
204
204
  except Exception as e:
205
205
  raise ValueError(
206
206
  f"failed to parse {path}: {e}"
@@ -302,7 +302,7 @@ def save_config(
302
302
 
303
303
  tmp = path.with_suffix(path.suffix + ".tmp")
304
304
  with open(tmp, "w", encoding="utf-8") as f:
305
- _yaml.dump(data, f)
305
+ _new_yaml().dump(data, f) # fresh instance: YAML() is not thread-safe
306
306
  os.replace(tmp, path)
307
307
 
308
308
  try:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes