toolbase 0.9.0__tar.gz → 0.9.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.
- {toolbase-0.9.0 → toolbase-0.9.1}/CHANGELOG.md +12 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/PKG-INFO +1 -1
- {toolbase-0.9.0 → toolbase-0.9.1}/pyproject.toml +1 -1
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/cli.py +16 -39
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/connect/orchestral.py +14 -14
- {toolbase-0.9.0 → toolbase-0.9.1}/LICENSE +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/MANIFEST.in +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/README.md +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/setup.cfg +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/__init__.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/_setup_host.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/_toolkit_host.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/astro.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/auth.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/config.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/connect/__init__.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/connect/base.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/connect/claude_code.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/connect/codex.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/connect/opencode.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/envs/__init__.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/envs/bundle_deps.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/envs/cache.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/envs/config.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/envs/discovery.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/envs/manifest.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/envs/paths.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/envs/schema.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/hep.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/ingest.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/logging/__init__.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/logging/logger.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/naming.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/neutrino.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/quantum.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/serve/__init__.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/serve/bundles.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/serve/config.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/serve/orchestrator.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/serve/profile_scaffold.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/serve/profiles.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/serve/proxy_tool.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/__init__.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/_rpc.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/context.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/declarative.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/downloads.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/prompts.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/runner.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/schema.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/storage.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/setup/validate_cache.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/skills.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/Dockerfile.template +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/README.md.template +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/__init__.py.template +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/mcp/__init__.py.template +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/mcp/server_stdio.py.template +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/requirements.txt.template +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/setup.py.template +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/skills/example_skill.md +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/tool_example.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/templates/toolkit.yaml.template +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/toolkit.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/validation.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase/versioning.py +0 -0
- {toolbase-0.9.0 → toolbase-0.9.1}/toolbase.egg-info/SOURCES.txt +0 -0
|
@@ -8,6 +8,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.9.1] — 2026-07-29
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **The `tb connect orchestral` scaffold now works in `sandbox/` rather than `workspace/`.** Same directory, new name — it sits beside `.toolbase/` and is where both the served toolkits and the scaffold's own file tools resolve relative paths. `sandbox` is the more common convention among toolkits that ship demo agents, and reads as "scratch space the agent owns" rather than "the project". Re-run `tb connect orchestral --force` to pick it up; an existing `workspace/` is left alone, so move or delete it yourself.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **`tb connect` now wires the exact toolbase binary by default.** A bare `toolbase` command is resolved against the `PATH` the harness inherits, and that PATH can differ from the shell that ran `connect`: activating an environment, sourcing an rc file, opening a new tab, or launching a GUI app can change it. The result was a clean connection followed by a failed MCP server, fixable only by reconnecting with `--abspath`.
|
|
20
|
+
|
|
21
|
+
The absolute path is now the default in **every** scope and for every installation, so the harness launches the same toolbase the user connected. `--portable` explicitly writes bare `toolbase` for a committed config that each teammate's PATH should resolve; `--abspath` remains an explicit spelling of the default. This is orthogonal to scope — the command string says how to find the binary, not which sessions get the tools — so project-scoped wiring and per-project curation are unchanged.
|
|
22
|
+
|
|
11
23
|
## [0.9.0] — 2026-07-29
|
|
12
24
|
|
|
13
25
|
### Changed
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "toolbase"
|
|
7
|
-
version = "0.9.
|
|
7
|
+
version = "0.9.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"
|
|
@@ -6874,44 +6874,20 @@ def _toolbase_abspath() -> str:
|
|
|
6874
6874
|
return shutil.which("toolbase") or "toolbase"
|
|
6875
6875
|
|
|
6876
6876
|
|
|
6877
|
-
def _toolbase_is_env_installed() -> bool:
|
|
6878
|
-
"""True when toolbase runs from an isolated env whose ``bin`` a harness
|
|
6879
|
-
process likely won't have on PATH — a venv/virtualenv, or a *named*
|
|
6880
|
-
(non-base) conda env. Used to warn before writing a bare command that
|
|
6881
|
-
may not resolve for the harness."""
|
|
6882
|
-
if sys.prefix != getattr(sys, "base_prefix", sys.prefix):
|
|
6883
|
-
return True # venv / virtualenv
|
|
6884
|
-
conda_env = os.environ.get("CONDA_DEFAULT_ENV")
|
|
6885
|
-
return bool(conda_env) and conda_env != "base" # named conda env
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
6877
|
def _resolve_connect_command(*, abspath: bool, portable: bool, scope: str) -> str:
|
|
6889
|
-
"""The command string to write into the harness's config
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
not resolve a bare command."""
|
|
6878
|
+
"""The command string to write into the harness's config.
|
|
6879
|
+
|
|
6880
|
+
The absolute path is the default: a bare ``toolbase`` depends on the PATH
|
|
6881
|
+
inherited by the harness, which can differ from the shell that ran
|
|
6882
|
+
``connect``. ``--portable`` is the explicit choice for a committed config
|
|
6883
|
+
that each teammate's PATH should resolve; ``--abspath`` remains an
|
|
6884
|
+
explicit spelling of the default. Scope does not affect this choice.
|
|
6885
|
+
"""
|
|
6898
6886
|
if abspath and portable:
|
|
6899
6887
|
raise click.UsageError("--abspath and --portable are mutually exclusive.")
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
if scope != "user" and _toolbase_is_env_installed():
|
|
6904
|
-
console.print(
|
|
6905
|
-
"[yellow]Note:[/yellow] wrote a bare [cyan]toolbase[/cyan] (portable). "
|
|
6906
|
-
"The harness resolves it against its own PATH, and toolbase lives in "
|
|
6907
|
-
"an isolated env — so a harness launched outside that env (a desktop "
|
|
6908
|
-
"app, or a terminal without the env active) won't find it and the MCP "
|
|
6909
|
-
"server will show as failed. Fixes: reconnect with [cyan]--abspath[/cyan] "
|
|
6910
|
-
"(machine-specific path), use [cyan]-g[/cyan] (user scope uses the "
|
|
6911
|
-
"absolute path by default), or put toolbase on your login PATH "
|
|
6912
|
-
"(e.g. [cyan]pipx install toolbase[/cyan]) to keep it bare and portable."
|
|
6913
|
-
)
|
|
6914
|
-
return "toolbase"
|
|
6888
|
+
if portable:
|
|
6889
|
+
return "toolbase"
|
|
6890
|
+
return _toolbase_abspath()
|
|
6915
6891
|
|
|
6916
6892
|
|
|
6917
6893
|
def _activated_toolkit_dirs() -> "dict[str, Path]":
|
|
@@ -7027,10 +7003,11 @@ def _unsurface_skills_for_connect(adapter) -> None:
|
|
|
7027
7003
|
help='Print the intended write without changing anything.')
|
|
7028
7004
|
@click.option('--abspath', 'abspath', is_flag=True, default=False,
|
|
7029
7005
|
help='Force the absolute toolbase binary path (PATH-independent). '
|
|
7030
|
-
'
|
|
7006
|
+
'This is the default.')
|
|
7031
7007
|
@click.option('--portable', 'portable', is_flag=True, default=False,
|
|
7032
|
-
help='Force the bare `toolbase` command
|
|
7033
|
-
'
|
|
7008
|
+
help='Force the bare `toolbase` command, resolved via the '
|
|
7009
|
+
"harness's PATH — use for a committed config shared "
|
|
7010
|
+
'across machines.')
|
|
7034
7011
|
@click.option('--list', 'do_list', is_flag=True, default=False,
|
|
7035
7012
|
help='Show where toolbase is wired across harnesses, then exit.')
|
|
7036
7013
|
@click.option('--harnesses', 'do_harnesses', is_flag=True, default=False,
|
|
@@ -7694,4 +7671,4 @@ def create_tarball(source_dir: Path, output_path: Path, toolkit_name: str):
|
|
|
7694
7671
|
|
|
7695
7672
|
|
|
7696
7673
|
if __name__ == '__main__':
|
|
7697
|
-
main()
|
|
7674
|
+
main()
|
|
@@ -194,7 +194,7 @@ def agent_script(profile: Optional[str] = None) -> str:
|
|
|
194
194
|
Two things the scaffold does deliberately, because getting them wrong is
|
|
195
195
|
the difference between a working agent and a confusing one:
|
|
196
196
|
|
|
197
|
-
- **One
|
|
197
|
+
- **One sandbox.** A single ``SANDBOX`` dir is passed to
|
|
198
198
|
``toolbase_tools(config_overrides=...)`` *and* to orchestral's own file
|
|
199
199
|
tools, so every tool resolves relative paths against the same root.
|
|
200
200
|
Without it, toolbase-served tools write wherever
|
|
@@ -202,7 +202,7 @@ def agent_script(profile: Optional[str] = None) -> str:
|
|
|
202
202
|
back its own output.
|
|
203
203
|
- **File tools.** Served toolkits are domain tools; on their own the agent
|
|
204
204
|
has no way to open the files they produce. The scaffold pairs them with
|
|
205
|
-
orchestral's read/write/edit/search/run tools, all scoped to
|
|
205
|
+
orchestral's read/write/edit/search/run tools, all scoped to SANDBOX.
|
|
206
206
|
|
|
207
207
|
Configuring orchestral (the LLM, API keys) is the user's job; the scaffold
|
|
208
208
|
just shows where their LLM plugs in.
|
|
@@ -247,29 +247,29 @@ from toolbase.connect.orchestral import toolbase_tools
|
|
|
247
247
|
# The one directory every tool works in -- both the toolbase-served toolkits
|
|
248
248
|
# and the orchestral file tools below. Keeping them on the same root is what
|
|
249
249
|
# lets the agent read back the files its own tools write. Point it anywhere.
|
|
250
|
-
|
|
250
|
+
SANDBOX = Path(__file__).resolve().parent.parent / "sandbox"
|
|
251
251
|
|
|
252
252
|
|
|
253
253
|
def main():
|
|
254
|
-
|
|
254
|
+
SANDBOX.mkdir(parents=True, exist_ok=True)
|
|
255
255
|
|
|
256
256
|
# `toolbase_tools` spins up one subprocess per served toolkit ({profile_note})
|
|
257
257
|
# and yields the tools as orchestral BaseTool instances. They are torn
|
|
258
258
|
# down when the `with` block exits. `config_overrides` scopes every served
|
|
259
|
-
# toolkit to
|
|
259
|
+
# toolkit to SANDBOX, overriding the `base_directory` in
|
|
260
260
|
# ~/.toolbase/config/<toolkit>.yaml for this run only.
|
|
261
261
|
with toolbase_tools(
|
|
262
|
-
{profile_arg}config_overrides={{"base_directory": str(
|
|
262
|
+
{profile_arg}config_overrides={{"base_directory": str(SANDBOX)}},
|
|
263
263
|
) as served:
|
|
264
264
|
tools = [
|
|
265
|
-
# General-purpose tools, scoped to the same
|
|
266
|
-
ReadFileTool(base_directory=str(
|
|
267
|
-
WriteFileTool(base_directory=str(
|
|
268
|
-
EditFileTool(base_directory=str(
|
|
269
|
-
FindFilesTool(base_directory=str(
|
|
270
|
-
FileSearchTool(base_directory=str(
|
|
271
|
-
RunCommandTool(base_directory=str(
|
|
272
|
-
RunPythonTool(base_directory=str(
|
|
265
|
+
# General-purpose tools, scoped to the same sandbox.
|
|
266
|
+
ReadFileTool(base_directory=str(SANDBOX), show_line_numbers=True),
|
|
267
|
+
WriteFileTool(base_directory=str(SANDBOX)),
|
|
268
|
+
EditFileTool(base_directory=str(SANDBOX)),
|
|
269
|
+
FindFilesTool(base_directory=str(SANDBOX)),
|
|
270
|
+
FileSearchTool(base_directory=str(SANDBOX)),
|
|
271
|
+
RunCommandTool(base_directory=str(SANDBOX)),
|
|
272
|
+
RunPythonTool(base_directory=str(SANDBOX)),
|
|
273
273
|
# Your toolbase toolkits.
|
|
274
274
|
*served,
|
|
275
275
|
]
|
|
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
|
|
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
|
|
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
|
|
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
|