toolbase 0.8.0__tar.gz → 0.8.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.8.0 → toolbase-0.8.1}/CHANGELOG.md +10 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/PKG-INFO +1 -1
- {toolbase-0.8.0 → toolbase-0.8.1}/pyproject.toml +1 -1
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/cli.py +65 -13
- {toolbase-0.8.0 → toolbase-0.8.1}/LICENSE +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/MANIFEST.in +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/README.md +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/setup.cfg +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/__init__.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/_setup_host.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/_toolkit_host.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/astro.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/auth.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/config.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/connect/__init__.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/connect/base.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/connect/claude_code.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/connect/codex.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/connect/opencode.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/connect/orchestral.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/envs/__init__.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/envs/bundle_deps.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/envs/cache.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/envs/config.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/envs/discovery.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/envs/manifest.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/envs/paths.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/envs/schema.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/hep.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/ingest.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/logging/__init__.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/logging/logger.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/naming.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/neutrino.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/quantum.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/serve/__init__.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/serve/bundles.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/serve/config.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/serve/orchestrator.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/serve/profile_scaffold.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/serve/profiles.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/serve/proxy_tool.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/__init__.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/_rpc.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/context.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/declarative.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/downloads.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/prompts.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/runner.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/schema.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/storage.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/setup/validate_cache.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/skills.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/Dockerfile.template +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/README.md.template +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/__init__.py.template +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/mcp/__init__.py.template +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/mcp/server_stdio.py.template +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/requirements.txt.template +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/setup.py.template +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/skills/example_skill.md +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/tool_example.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/templates/toolkit.yaml.template +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/toolkit.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/validation.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase/versioning.py +0 -0
- {toolbase-0.8.0 → toolbase-0.8.1}/toolbase.egg-info/SOURCES.txt +0 -0
|
@@ -8,6 +8,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.8.1] — 2026-07-27
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`tb connect --abspath` no longer silently falls back to a bare command.** It resolved the binary with `shutil.which("toolbase")`, which returns `None` exactly when toolbase isn't on PATH at connect time (a venv/conda install, or toolbase invoked by absolute path) — the very case `--abspath` exists for — so it quietly wrote a bare `toolbase` that the harness then couldn't launch. It now resolves the toolbase beside the running interpreter first (`sys.executable`'s dir), falling back to `which` then bare.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **`tb connect` command default is now scope-aware.** User-scope connects (`-g`, a machine-local config that is never committed) default to the **absolute** toolbase path so the harness always finds it — important because a harness process (e.g. a GUI app, or a shell without your env activated) often doesn't have a venv/conda `bin` on PATH. Project-scope connects (git-committed, shared) stay **bare** `toolbase` for portability, and now print a note when toolbase is env-installed that a bare command may not resolve for the harness (suggesting `--abspath`, `-g`, or a login-PATH install). New `--portable` flag forces the bare command in any scope; `--abspath` still forces the absolute path.
|
|
20
|
+
|
|
11
21
|
## [0.8.0] — 2026-07-27
|
|
12
22
|
|
|
13
23
|
### Added
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "toolbase"
|
|
7
|
-
version = "0.8.
|
|
7
|
+
version = "0.8.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"
|
|
@@ -6830,18 +6830,66 @@ def _resolve_connect_scope(global_scope: bool, local_scope: bool):
|
|
|
6830
6830
|
return "project", root
|
|
6831
6831
|
|
|
6832
6832
|
|
|
6833
|
-
def
|
|
6834
|
-
"""
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6833
|
+
def _toolbase_abspath() -> str:
|
|
6834
|
+
"""Absolute path of the *running* toolbase binary.
|
|
6835
|
+
|
|
6836
|
+
A harness launches the MCP server by exec'ing this command against its
|
|
6837
|
+
own process PATH — which for a venv/conda install often does not include
|
|
6838
|
+
the env's ``bin``, so a bare ``toolbase`` fails to launch. The absolute
|
|
6839
|
+
path is PATH-independent.
|
|
6840
|
+
|
|
6841
|
+
Resolution prefers the ``toolbase`` beside the running interpreter
|
|
6842
|
+
(``sys.executable``'s ``bin/`` — where a console-script entry point
|
|
6843
|
+
lives, i.e. *this* toolbase), because ``shutil.which`` returns ``None``
|
|
6844
|
+
when toolbase isn't on the PATH at connect time (exactly the case that
|
|
6845
|
+
needs an absolute path). Falls back to ``which`` then bare.
|
|
6839
6846
|
"""
|
|
6840
|
-
if not abspath:
|
|
6841
|
-
return "toolbase"
|
|
6842
6847
|
import shutil
|
|
6843
|
-
|
|
6844
|
-
|
|
6848
|
+
bindir = Path(sys.executable).parent
|
|
6849
|
+
for cand in (bindir / "toolbase", bindir / "toolbase.exe"):
|
|
6850
|
+
if cand.exists():
|
|
6851
|
+
return str(cand)
|
|
6852
|
+
return shutil.which("toolbase") or "toolbase"
|
|
6853
|
+
|
|
6854
|
+
|
|
6855
|
+
def _toolbase_is_env_installed() -> bool:
|
|
6856
|
+
"""True when toolbase runs from an isolated env whose ``bin`` a harness
|
|
6857
|
+
process likely won't have on PATH — a venv/virtualenv, or a *named*
|
|
6858
|
+
(non-base) conda env. Used to warn before writing a bare command that
|
|
6859
|
+
may not resolve for the harness."""
|
|
6860
|
+
if sys.prefix != getattr(sys, "base_prefix", sys.prefix):
|
|
6861
|
+
return True # venv / virtualenv
|
|
6862
|
+
conda_env = os.environ.get("CONDA_DEFAULT_ENV")
|
|
6863
|
+
return bool(conda_env) and conda_env != "base" # named conda env
|
|
6864
|
+
|
|
6865
|
+
|
|
6866
|
+
def _resolve_connect_command(*, abspath: bool, portable: bool, scope: str) -> str:
|
|
6867
|
+
"""The command string to write into the harness's config, scope-aware.
|
|
6868
|
+
|
|
6869
|
+
Default optimizes for the config's shareability: ``user`` scope (``-g``,
|
|
6870
|
+
a machine-local config that is never committed) writes the absolute path
|
|
6871
|
+
so the harness always finds it; ``project`` scope (git-committed, shared)
|
|
6872
|
+
stays bare ``toolbase`` for portability across machines. ``--abspath``
|
|
6873
|
+
forces the absolute path in any scope; ``--portable`` forces bare. On a
|
|
6874
|
+
project-scope bare write from an isolated env, warn that the harness may
|
|
6875
|
+
not resolve a bare command."""
|
|
6876
|
+
if abspath and portable:
|
|
6877
|
+
raise click.UsageError("--abspath and --portable are mutually exclusive.")
|
|
6878
|
+
use_abspath = abspath or (not portable and scope == "user")
|
|
6879
|
+
if use_abspath:
|
|
6880
|
+
return _toolbase_abspath()
|
|
6881
|
+
if scope != "user" and _toolbase_is_env_installed():
|
|
6882
|
+
console.print(
|
|
6883
|
+
"[yellow]Note:[/yellow] wrote a bare [cyan]toolbase[/cyan] (portable). "
|
|
6884
|
+
"The harness resolves it against its own PATH, and toolbase lives in "
|
|
6885
|
+
"an isolated env — so a harness launched outside that env (a desktop "
|
|
6886
|
+
"app, or a terminal without the env active) won't find it and the MCP "
|
|
6887
|
+
"server will show as failed. Fixes: reconnect with [cyan]--abspath[/cyan] "
|
|
6888
|
+
"(machine-specific path), use [cyan]-g[/cyan] (user scope uses the "
|
|
6889
|
+
"absolute path by default), or put toolbase on your login PATH "
|
|
6890
|
+
"(e.g. [cyan]pipx install toolbase[/cyan]) to keep it bare and portable."
|
|
6891
|
+
)
|
|
6892
|
+
return "toolbase"
|
|
6845
6893
|
|
|
6846
6894
|
|
|
6847
6895
|
def _activated_toolkit_dirs() -> "dict[str, Path]":
|
|
@@ -6956,7 +7004,11 @@ def _unsurface_skills_for_connect(adapter) -> None:
|
|
|
6956
7004
|
@click.option('--dry-run', 'dry_run', is_flag=True, default=False,
|
|
6957
7005
|
help='Print the intended write without changing anything.')
|
|
6958
7006
|
@click.option('--abspath', 'abspath', is_flag=True, default=False,
|
|
6959
|
-
help='
|
|
7007
|
+
help='Force the absolute toolbase binary path (PATH-independent). '
|
|
7008
|
+
'Default for user scope (-g); project scope stays bare.')
|
|
7009
|
+
@click.option('--portable', 'portable', is_flag=True, default=False,
|
|
7010
|
+
help='Force the bare `toolbase` command (portable across machines) '
|
|
7011
|
+
'even for user scope.')
|
|
6960
7012
|
@click.option('--list', 'do_list', is_flag=True, default=False,
|
|
6961
7013
|
help='Show where toolbase is wired across harnesses, then exit.')
|
|
6962
7014
|
@click.option('--harnesses', 'do_harnesses', is_flag=True, default=False,
|
|
@@ -6970,7 +7022,7 @@ def _unsurface_skills_for_connect(adapter) -> None:
|
|
|
6970
7022
|
help="Don't surface the activated toolkits' skills into the "
|
|
6971
7023
|
"harness (wire the MCP server only).")
|
|
6972
7024
|
def connect(harness, global_scope, local_scope, profile_name, remove, dry_run,
|
|
6973
|
-
abspath, do_list, do_harnesses, out_path, force, no_skills):
|
|
7025
|
+
abspath, portable, do_list, do_harnesses, out_path, force, no_skills):
|
|
6974
7026
|
"""Wire toolbase into an agent harness.
|
|
6975
7027
|
|
|
6976
7028
|
\b
|
|
@@ -7063,7 +7115,7 @@ def connect(harness, global_scope, local_scope, profile_name, remove, dry_run,
|
|
|
7063
7115
|
_unsurface_skills_for_connect(adapter)
|
|
7064
7116
|
return
|
|
7065
7117
|
|
|
7066
|
-
command =
|
|
7118
|
+
command = _resolve_connect_command(abspath=abspath, portable=portable, scope=scope)
|
|
7067
7119
|
try:
|
|
7068
7120
|
path = adapter.install(
|
|
7069
7121
|
scope=scope, project_root=project_root, server_name="toolbase",
|
|
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
|
|
File without changes
|