toolbase 0.6.1__tar.gz → 0.7.0__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.6.1 → toolbase-0.7.0}/CHANGELOG.md +12 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/PKG-INFO +52 -16
- {toolbase-0.6.1 → toolbase-0.7.0}/README.md +51 -15
- {toolbase-0.6.1 → toolbase-0.7.0}/pyproject.toml +1 -1
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/cli.py +203 -68
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/connect/base.py +17 -1
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/connect/claude_code.py +11 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/connect/codex.py +11 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/serve/orchestrator.py +47 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/serve/profile_scaffold.py +85 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/serve/profiles.py +33 -2
- toolbase-0.7.0/toolbase/skills.py +454 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/validation.py +16 -3
- toolbase-0.6.1/toolbase/skills.py +0 -289
- {toolbase-0.6.1 → toolbase-0.7.0}/LICENSE +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/MANIFEST.in +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/setup.cfg +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/__init__.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/_setup_host.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/_toolkit_host.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/astro.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/auth.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/config.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/connect/__init__.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/connect/orchestral.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/envs/__init__.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/envs/bundle_deps.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/envs/cache.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/envs/config.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/envs/discovery.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/envs/manifest.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/envs/paths.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/envs/schema.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/hep.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/ingest.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/logging/__init__.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/logging/logger.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/naming.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/neutrino.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/quantum.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/serve/__init__.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/serve/bundles.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/serve/config.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/serve/proxy_tool.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/__init__.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/_rpc.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/context.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/declarative.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/downloads.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/prompts.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/runner.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/schema.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/storage.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/setup/validate_cache.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/Dockerfile.template +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/README.md.template +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/__init__.py.template +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/mcp/__init__.py.template +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/mcp/server_stdio.py.template +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/requirements.txt.template +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/setup.py.template +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/skills/example_skill.md +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/tool_example.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/templates/toolkit.yaml.template +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/toolkit.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/toolbase/versioning.py +0 -0
- {toolbase-0.6.1 → toolbase-0.7.0}/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.7.0] — 2026-07-26
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **`tb connect` now surfaces skills per-harness, and Codex is supported natively.** A toolkit's `skills/*.md` guides are surfaced into the harness you connect, not at install time against a hardcoded path. `tb connect <harness>` surfaces the *activated* toolkits' skills (the same set whose tools are served) into that harness's location; `tb disconnect` / `tb connect --remove` clears them; `--no-skills` wires the MCP server only. Two layouts, one per adapter: **Claude Code** → `~/.claude/skills/<toolkit>__<skill>/SKILL.md` (frontmatter preserved; auto-surfaced to the model and exposed as a `/<name>` slash command), **Codex** → `~/.codex/prompts/<toolkit>__<skill>.md` (frontmatter stripped to the body; a user-invoked `/<name>` slash-command prompt). Adapters declare their surface via a new `HarnessAdapter.skill_target()` returning a `SkillTarget`; `skills.surface_skills` / `unsurface_skills` / `unsurface_all` generalize the copy/gate/ownership logic across layouts. Flat-layout ownership is tracked by a `.toolbase-managed.json` manifest (a flat file has no dir for the `OWNED_MARKER`), so user-authored prompts with the same prefix are never removed.
|
|
16
|
+
- **Skill packs (skills-only toolkits) are now first-class.** A toolkit may ship only `skills/*.md` guides and declare no tools. `tools:` in `toolkit.yaml` is now optional (defaults to empty), and the `orchestral-ai` requirement is waived when a toolkit has no tools (a skill pack runs no Orchestral tool framework). Such a toolkit validates, installs, activates, and surfaces its skills through `tb connect` like any other; the serve orchestrator recognizes it (`_toolkit_is_skills_only`: no declared tools *and* no implicit `tools/__init__.py`) and skips launching a host for it — while keeping it fully discoverable so `tb activate` / `tb connect` still surface its guides. When the *only* active toolkits are skill packs, `tb serve` explains there is nothing to serve over MCP and points at `tb connect`, rather than failing with an opaque error. This pairs with per-skill toggling to make a curated pack of standalone skills a supported unit.
|
|
17
|
+
- **Per-skill enable/disable, via the existing activation grammar.** `tb deactivate <toolkit>__<skill>` blocklists a single guide; `tb activate <toolkit>__<skill>` restores it. A `<toolkit>__<name>` item is resolved to a **skill** when it matches a surfaced skill slug and *not* a tool (on a genuine name collision the tool wins and a note is printed, preserving existing tool references). Skills are on by default when the toolkit is active, so a profile records only a per-toolkit blocklist — a new `skills: { disabled: [...] }` block under each toolkit entry (`ToolkitSelection.disabled_skills`). Skill surfacing (`surface_skills`, and hence `tb connect`) subtracts these slugs, the per-skill analog of bundle gating. Install/connect now print each guide by its `<toolkit>__<slug>` toggle name so the slug is discoverable. This makes it practical to ship a toolkit as a bundle of individually toggleable skills.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- **Skill surfacing moved off `tb install`.** Installing a toolkit now only *reports* that it ships skills and points at `tb connect`; it no longer writes into `~/.claude/skills/`. Skills follow the harness you connect (and the toolkits you've activated), symmetric with how MCP tools are wired. Uninstalling a toolkit reaps its surfaced skills from every harness target (Claude Code and Codex), not just Claude. Back-compat: `install_skills_for_toolkit` / `uninstall_skills_for_toolkit` remain as Claude-dir wrappers over the new `SkillTarget` API.
|
|
22
|
+
|
|
11
23
|
## [0.6.1] — 2026-07-24
|
|
12
24
|
|
|
13
25
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: toolbase
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
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
|
|
@@ -47,10 +47,11 @@ them to your harness over the [Model Context Protocol](https://modelcontextproto
|
|
|
47
47
|
span any domain, from web and data utilities to scientific categories
|
|
48
48
|
like astro, hep, and quantum.
|
|
49
49
|
|
|
50
|
-
A **toolkit** is the publishable unit
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
problem.
|
|
50
|
+
A **toolkit** is the publishable unit. It bundles **tools** an agent can
|
|
51
|
+
call and/or **skills** — short markdown how-to guides surfaced into your
|
|
52
|
+
harness. Each toolkit installs into its own isolated Python environment,
|
|
53
|
+
so dependency conflicts between toolkits are never a problem. A toolkit
|
|
54
|
+
can even ship *only* skills (a **skill pack**).
|
|
54
55
|
|
|
55
56
|
Full CLI reference: <https://toolbase-ai.com/docs>.
|
|
56
57
|
|
|
@@ -89,7 +90,8 @@ profile instead.
|
|
|
89
90
|
Orchestral are all supported (`tb connect --harnesses` lists them);
|
|
90
91
|
Claude Code and Codex are MCP clients (`tb connect` edits their config
|
|
91
92
|
file), while Orchestral gets a runnable agent script you launch
|
|
92
|
-
yourself.
|
|
93
|
+
yourself. It also surfaces the activated toolkits' **skills** into the
|
|
94
|
+
harness — see [Skills](#skills-guides-that-travel-with-the-toolkit).
|
|
93
95
|
|
|
94
96
|
## Inspect
|
|
95
97
|
|
|
@@ -101,19 +103,21 @@ tb logs # tool calls, live (best diagnostic for "did it fire?")
|
|
|
101
103
|
|
|
102
104
|
## Curate what the agent sees
|
|
103
105
|
|
|
104
|
-
`tb activate` / `deactivate` work at
|
|
106
|
+
`tb activate` / `deactivate` work at four granularities:
|
|
105
107
|
|
|
106
108
|
```bash
|
|
107
109
|
tb activate calculator # the whole toolkit
|
|
108
110
|
tb activate calculator/scientific # one bundle (group of related tools)
|
|
109
111
|
tb activate calculator__add # one specific tool
|
|
110
|
-
tb deactivate
|
|
112
|
+
tb deactivate calculator__quickstart # one specific skill (see Skills below)
|
|
111
113
|
```
|
|
112
114
|
|
|
113
|
-
A
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
A `<toolkit>__<name>` item is a **skill** when it matches a surfaced
|
|
116
|
+
skill and not a tool; otherwise it's a tool (a name that is both resolves
|
|
117
|
+
to the tool). A **bundle** is a self-contained capability an author
|
|
118
|
+
carves out of a toolkit, with its own deps and skills.
|
|
119
|
+
`tb profile tools calculator` lists what's available. Power users can
|
|
120
|
+
keep several named profiles (`tb profile create paper`,
|
|
117
121
|
`tb connect claude-code --profile paper`) and switch between them; most
|
|
118
122
|
users only ever touch the default profile.
|
|
119
123
|
|
|
@@ -125,6 +129,37 @@ vs `matrix__add`). When names do overlap, `tb serve`, `tb list -v`, and
|
|
|
125
129
|
a name shared by two toolkits stays qualified (both remain callable) with a
|
|
126
130
|
warning, and the rest are served bare.
|
|
127
131
|
|
|
132
|
+
## Skills: guides that travel with the toolkit
|
|
133
|
+
|
|
134
|
+
A toolkit can ship **skills** — markdown how-to guides in `skills/` —
|
|
135
|
+
alongside its tools or on their own. `tb connect` surfaces the activated
|
|
136
|
+
toolkits' skills into the harness you connect, in that harness's native
|
|
137
|
+
format:
|
|
138
|
+
|
|
139
|
+
- **Claude Code** → `~/.claude/skills/<toolkit>__<skill>/` — auto-surfaced
|
|
140
|
+
to the model *and* available as a `/<toolkit>__<skill>` slash command.
|
|
141
|
+
- **Codex** → `~/.codex/prompts/<toolkit>__<skill>.md` — a
|
|
142
|
+
`/<toolkit>__<skill>` slash-command prompt.
|
|
143
|
+
|
|
144
|
+
Skills follow the same curation as tools: a guide is surfaced only when
|
|
145
|
+
its toolkit is active, and you toggle a single one with the activation
|
|
146
|
+
grammar.
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
tb deactivate calculator__advanced_guide # stop surfacing this one guide
|
|
150
|
+
tb activate calculator__advanced_guide # bring it back
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
`tb connect --no-skills` wires the MCP server without surfacing any
|
|
154
|
+
skills; `tb disconnect` removes the surfaced skills too. Surfacing is a
|
|
155
|
+
`connect`-time step, so `tb install` alone reports a toolkit's skills but
|
|
156
|
+
doesn't surface them — connect (and the set you've activated) decides
|
|
157
|
+
what lands in the harness.
|
|
158
|
+
|
|
159
|
+
A toolkit that ships *only* skills is a **skill pack**: it declares no
|
|
160
|
+
tools and serves nothing over MCP, but its guides surface through
|
|
161
|
+
`tb connect` exactly like any other toolkit's.
|
|
162
|
+
|
|
128
163
|
## Share a project without sharing your machine
|
|
129
164
|
|
|
130
165
|
Toolkits that need configuration (an API key, a path to an external
|
|
@@ -154,6 +189,7 @@ pins like editable installs.
|
|
|
154
189
|
tb init my-toolkit # scaffold from template
|
|
155
190
|
cd my-toolkit
|
|
156
191
|
# write tools in tools/ and skills in skills/
|
|
192
|
+
# (a toolkit may ship only skills — a skill pack — and omit tools entirely)
|
|
157
193
|
tb validate # check structure
|
|
158
194
|
tb login # one-time browser-flow auth
|
|
159
195
|
tb publish # ship it (auto-registers on first run)
|
|
@@ -186,10 +222,10 @@ Full reference with all flags: <https://toolbase-ai.com/docs/reference/commands>
|
|
|
186
222
|
| `tb install NAME` | Install a toolkit (`-a` to also activate, `-e <path>` for editable, `NAME[a,b]` for selected bundles) |
|
|
187
223
|
| `tb uninstall NAME` | Remove a toolkit |
|
|
188
224
|
| `tb list` | Installed toolkits (`-v` for a per-tool view) |
|
|
189
|
-
| `tb activate ITEM` | Expose a toolkit / `toolkit/bundle` / `toolkit__tool` (project-local; `-g` for user-wide) |
|
|
190
|
-
| `tb deactivate ITEM` | Hide a toolkit / bundle / tool |
|
|
191
|
-
| `tb connect HARNESS` | Wire toolbase into Claude Code, Codex, or scaffold an Orchestral agent script |
|
|
192
|
-
| `tb disconnect HARNESS` | Remove toolbase from a harness |
|
|
225
|
+
| `tb activate ITEM` | Expose a toolkit / `toolkit/bundle` / `toolkit__tool` / `toolkit__skill` (project-local; `-g` for user-wide) |
|
|
226
|
+
| `tb deactivate ITEM` | Hide a toolkit / bundle / tool / skill |
|
|
227
|
+
| `tb connect HARNESS` | Wire toolbase into Claude Code, Codex, or scaffold an Orchestral agent script (also surfaces skills; `--no-skills` to skip) |
|
|
228
|
+
| `tb disconnect HARNESS` | Remove toolbase from a harness (and its surfaced skills) |
|
|
193
229
|
| `tb logs` | Tail the serve log, live |
|
|
194
230
|
| `tb profile …` | Manage named profiles: `list \| show \| create \| edit \| delete \| set-default \| path \| tools` |
|
|
195
231
|
| `tb config …` | Manage per-toolkit config: `show \| init \| set \| unset \| edit \| path \| validate` (`--user` / `--project` / `--local` pick the layer) |
|
|
@@ -6,10 +6,11 @@ them to your harness over the [Model Context Protocol](https://modelcontextproto
|
|
|
6
6
|
span any domain, from web and data utilities to scientific categories
|
|
7
7
|
like astro, hep, and quantum.
|
|
8
8
|
|
|
9
|
-
A **toolkit** is the publishable unit
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
problem.
|
|
9
|
+
A **toolkit** is the publishable unit. It bundles **tools** an agent can
|
|
10
|
+
call and/or **skills** — short markdown how-to guides surfaced into your
|
|
11
|
+
harness. Each toolkit installs into its own isolated Python environment,
|
|
12
|
+
so dependency conflicts between toolkits are never a problem. A toolkit
|
|
13
|
+
can even ship *only* skills (a **skill pack**).
|
|
13
14
|
|
|
14
15
|
Full CLI reference: <https://toolbase-ai.com/docs>.
|
|
15
16
|
|
|
@@ -48,7 +49,8 @@ profile instead.
|
|
|
48
49
|
Orchestral are all supported (`tb connect --harnesses` lists them);
|
|
49
50
|
Claude Code and Codex are MCP clients (`tb connect` edits their config
|
|
50
51
|
file), while Orchestral gets a runnable agent script you launch
|
|
51
|
-
yourself.
|
|
52
|
+
yourself. It also surfaces the activated toolkits' **skills** into the
|
|
53
|
+
harness — see [Skills](#skills-guides-that-travel-with-the-toolkit).
|
|
52
54
|
|
|
53
55
|
## Inspect
|
|
54
56
|
|
|
@@ -60,19 +62,21 @@ tb logs # tool calls, live (best diagnostic for "did it fire?")
|
|
|
60
62
|
|
|
61
63
|
## Curate what the agent sees
|
|
62
64
|
|
|
63
|
-
`tb activate` / `deactivate` work at
|
|
65
|
+
`tb activate` / `deactivate` work at four granularities:
|
|
64
66
|
|
|
65
67
|
```bash
|
|
66
68
|
tb activate calculator # the whole toolkit
|
|
67
69
|
tb activate calculator/scientific # one bundle (group of related tools)
|
|
68
70
|
tb activate calculator__add # one specific tool
|
|
69
|
-
tb deactivate
|
|
71
|
+
tb deactivate calculator__quickstart # one specific skill (see Skills below)
|
|
70
72
|
```
|
|
71
73
|
|
|
72
|
-
A
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
A `<toolkit>__<name>` item is a **skill** when it matches a surfaced
|
|
75
|
+
skill and not a tool; otherwise it's a tool (a name that is both resolves
|
|
76
|
+
to the tool). A **bundle** is a self-contained capability an author
|
|
77
|
+
carves out of a toolkit, with its own deps and skills.
|
|
78
|
+
`tb profile tools calculator` lists what's available. Power users can
|
|
79
|
+
keep several named profiles (`tb profile create paper`,
|
|
76
80
|
`tb connect claude-code --profile paper`) and switch between them; most
|
|
77
81
|
users only ever touch the default profile.
|
|
78
82
|
|
|
@@ -84,6 +88,37 @@ vs `matrix__add`). When names do overlap, `tb serve`, `tb list -v`, and
|
|
|
84
88
|
a name shared by two toolkits stays qualified (both remain callable) with a
|
|
85
89
|
warning, and the rest are served bare.
|
|
86
90
|
|
|
91
|
+
## Skills: guides that travel with the toolkit
|
|
92
|
+
|
|
93
|
+
A toolkit can ship **skills** — markdown how-to guides in `skills/` —
|
|
94
|
+
alongside its tools or on their own. `tb connect` surfaces the activated
|
|
95
|
+
toolkits' skills into the harness you connect, in that harness's native
|
|
96
|
+
format:
|
|
97
|
+
|
|
98
|
+
- **Claude Code** → `~/.claude/skills/<toolkit>__<skill>/` — auto-surfaced
|
|
99
|
+
to the model *and* available as a `/<toolkit>__<skill>` slash command.
|
|
100
|
+
- **Codex** → `~/.codex/prompts/<toolkit>__<skill>.md` — a
|
|
101
|
+
`/<toolkit>__<skill>` slash-command prompt.
|
|
102
|
+
|
|
103
|
+
Skills follow the same curation as tools: a guide is surfaced only when
|
|
104
|
+
its toolkit is active, and you toggle a single one with the activation
|
|
105
|
+
grammar.
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
tb deactivate calculator__advanced_guide # stop surfacing this one guide
|
|
109
|
+
tb activate calculator__advanced_guide # bring it back
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`tb connect --no-skills` wires the MCP server without surfacing any
|
|
113
|
+
skills; `tb disconnect` removes the surfaced skills too. Surfacing is a
|
|
114
|
+
`connect`-time step, so `tb install` alone reports a toolkit's skills but
|
|
115
|
+
doesn't surface them — connect (and the set you've activated) decides
|
|
116
|
+
what lands in the harness.
|
|
117
|
+
|
|
118
|
+
A toolkit that ships *only* skills is a **skill pack**: it declares no
|
|
119
|
+
tools and serves nothing over MCP, but its guides surface through
|
|
120
|
+
`tb connect` exactly like any other toolkit's.
|
|
121
|
+
|
|
87
122
|
## Share a project without sharing your machine
|
|
88
123
|
|
|
89
124
|
Toolkits that need configuration (an API key, a path to an external
|
|
@@ -113,6 +148,7 @@ pins like editable installs.
|
|
|
113
148
|
tb init my-toolkit # scaffold from template
|
|
114
149
|
cd my-toolkit
|
|
115
150
|
# write tools in tools/ and skills in skills/
|
|
151
|
+
# (a toolkit may ship only skills — a skill pack — and omit tools entirely)
|
|
116
152
|
tb validate # check structure
|
|
117
153
|
tb login # one-time browser-flow auth
|
|
118
154
|
tb publish # ship it (auto-registers on first run)
|
|
@@ -145,10 +181,10 @@ Full reference with all flags: <https://toolbase-ai.com/docs/reference/commands>
|
|
|
145
181
|
| `tb install NAME` | Install a toolkit (`-a` to also activate, `-e <path>` for editable, `NAME[a,b]` for selected bundles) |
|
|
146
182
|
| `tb uninstall NAME` | Remove a toolkit |
|
|
147
183
|
| `tb list` | Installed toolkits (`-v` for a per-tool view) |
|
|
148
|
-
| `tb activate ITEM` | Expose a toolkit / `toolkit/bundle` / `toolkit__tool` (project-local; `-g` for user-wide) |
|
|
149
|
-
| `tb deactivate ITEM` | Hide a toolkit / bundle / tool |
|
|
150
|
-
| `tb connect HARNESS` | Wire toolbase into Claude Code, Codex, or scaffold an Orchestral agent script |
|
|
151
|
-
| `tb disconnect HARNESS` | Remove toolbase from a harness |
|
|
184
|
+
| `tb activate ITEM` | Expose a toolkit / `toolkit/bundle` / `toolkit__tool` / `toolkit__skill` (project-local; `-g` for user-wide) |
|
|
185
|
+
| `tb deactivate ITEM` | Hide a toolkit / bundle / tool / skill |
|
|
186
|
+
| `tb connect HARNESS` | Wire toolbase into Claude Code, Codex, or scaffold an Orchestral agent script (also surfaces skills; `--no-skills` to skip) |
|
|
187
|
+
| `tb disconnect HARNESS` | Remove toolbase from a harness (and its surfaced skills) |
|
|
152
188
|
| `tb logs` | Tail the serve log, live |
|
|
153
189
|
| `tb profile …` | Manage named profiles: `list \| show \| create \| edit \| delete \| set-default \| path \| tools` |
|
|
154
190
|
| `tb config …` | Manage per-toolkit config: `show \| init \| set \| unset \| edit \| path \| validate` (`--user` / `--project` / `--local` pick the layer) |
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "toolbase"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.7.0"
|
|
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"
|
|
@@ -3917,9 +3917,10 @@ def _install_from_path(
|
|
|
3917
3917
|
f"Environment: conda env '{env_name}' (Python {python_version})"
|
|
3918
3918
|
)
|
|
3919
3919
|
|
|
3920
|
-
# Skills
|
|
3921
|
-
# which for editable resolves through the symlink
|
|
3922
|
-
|
|
3920
|
+
# Skills: report only. Surfacing is a per-harness `tb connect` concern.
|
|
3921
|
+
# Reads from the slot, which for editable resolves through the symlink
|
|
3922
|
+
# to live source.
|
|
3923
|
+
_note_skills_available(name, slot, no_skills)
|
|
3923
3924
|
|
|
3924
3925
|
# Pinning. Editable installs deliberately stay OUT of the committed
|
|
3925
3926
|
# manifest — a machine-specific path won't resolve on a collaborator's
|
|
@@ -4103,34 +4104,27 @@ def _available_bundles_for_surface(name: str, toolkit_dir: Path):
|
|
|
4103
4104
|
return set(evaluate_bundles(bundles_block, resolved).available_bundles)
|
|
4104
4105
|
|
|
4105
4106
|
|
|
4106
|
-
def
|
|
4107
|
-
"""
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4107
|
+
def _note_skills_available(name: str, slot: Path, no_skills: bool = False) -> None:
|
|
4108
|
+
"""Report that a toolkit ships skills and point at ``tb connect``.
|
|
4109
|
+
|
|
4110
|
+
Surfacing is a per-harness ``connect``-time concern (each harness has
|
|
4111
|
+
its own skill/prompt location and format), so install only *reports*
|
|
4112
|
+
that skills exist. ``tb connect <harness>`` does the surfacing. Each
|
|
4113
|
+
guide is printed by its toggle name (``<toolkit>__<slug>``) so the user
|
|
4114
|
+
can `tb deactivate` an individual one."""
|
|
4115
|
+
from .skills import discover_skills, _slug
|
|
4116
|
+
skill_files = discover_skills(slot)
|
|
4114
4117
|
if not skill_files:
|
|
4115
4118
|
return
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
from .skills import install_skills_for_toolkit, CLAUDE_SKILLS_DIR
|
|
4122
|
-
surfaced = install_skills_for_toolkit(
|
|
4123
|
-
name, slot, available_bundles=_available_bundles_for_surface(name, slot)
|
|
4124
|
-
)
|
|
4125
|
-
if surfaced:
|
|
4126
|
-
console.print(
|
|
4127
|
-
f"[dim]Surfaced to {CLAUDE_SKILLS_DIR}/ "
|
|
4128
|
-
f"({len(surfaced)} entr"
|
|
4129
|
-
f"{'ies' if len(surfaced) != 1 else 'y'})[/dim]"
|
|
4130
|
-
)
|
|
4131
|
-
except Exception as e:
|
|
4119
|
+
n = len(skill_files)
|
|
4120
|
+
console.print(f"Skills: {n} guide{'s' if n != 1 else ''} available")
|
|
4121
|
+
for f in skill_files:
|
|
4122
|
+
console.print(f" [dim]•[/dim] {name}__{_slug(f.stem)}")
|
|
4123
|
+
if not no_skills:
|
|
4132
4124
|
console.print(
|
|
4133
|
-
|
|
4125
|
+
"[dim]Surface them with [/dim][cyan]tb connect <harness>[/cyan]"
|
|
4126
|
+
"[dim] (claude-code, codex); toggle one with [/dim]"
|
|
4127
|
+
"[cyan]tb deactivate <toolkit>__<skill>[/cyan][dim].[/dim]"
|
|
4134
4128
|
)
|
|
4135
4129
|
|
|
4136
4130
|
|
|
@@ -4982,30 +4976,8 @@ def install(ctx, name, version, global_scope, local_scope, editable, no_skills,
|
|
|
4982
4976
|
if tools_count > 0:
|
|
4983
4977
|
console.print(f"Tools: {tools_count} available")
|
|
4984
4978
|
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
# List each skill (strip .md extension for readability)
|
|
4988
|
-
for skill_file in skill_files:
|
|
4989
|
-
console.print(f" [dim]•[/dim] {skill_file.stem}")
|
|
4990
|
-
|
|
4991
|
-
# Surface skills into ~/.claude/skills/ so Claude Code picks them
|
|
4992
|
-
# up automatically. Best-effort — failures here don't fail install.
|
|
4993
|
-
if not no_skills:
|
|
4994
|
-
try:
|
|
4995
|
-
from .skills import install_skills_for_toolkit, CLAUDE_SKILLS_DIR
|
|
4996
|
-
surfaced = install_skills_for_toolkit(
|
|
4997
|
-
name, toolkit_dir,
|
|
4998
|
-
available_bundles=_available_bundles_for_surface(name, toolkit_dir),
|
|
4999
|
-
)
|
|
5000
|
-
if surfaced:
|
|
5001
|
-
console.print(
|
|
5002
|
-
f"[dim]Surfaced to {CLAUDE_SKILLS_DIR}/ "
|
|
5003
|
-
f"({len(surfaced)} entr{'ies' if len(surfaced) != 1 else 'y'})[/dim]"
|
|
5004
|
-
)
|
|
5005
|
-
except Exception as e:
|
|
5006
|
-
console.print(
|
|
5007
|
-
f"[yellow]Could not surface skills to ~/.claude/skills: {e}[/yellow]"
|
|
5008
|
-
)
|
|
4979
|
+
# Skills: report only. Surfacing happens per-harness at `tb connect`.
|
|
4980
|
+
_note_skills_available(name, toolkit_dir, no_skills)
|
|
5009
4981
|
|
|
5010
4982
|
# Phase 3C-1: Tier-1 declarative setup. If toolkit.yaml has a
|
|
5011
4983
|
# ``config:`` block, walk it and prompt the user (TTY) or fill
|
|
@@ -5836,17 +5808,26 @@ def uninstall(name, yes, no_, no_input):
|
|
|
5836
5808
|
|
|
5837
5809
|
# Skills + default-profile cleanup — only when ALL versions are gone.
|
|
5838
5810
|
if not _list_versions(name):
|
|
5811
|
+
# Remove this toolkit's surfaced skills from every harness that has
|
|
5812
|
+
# a skill surface (Claude Code's ~/.claude/skills, Codex's
|
|
5813
|
+
# ~/.codex/prompts). connect surfaces them per-harness; uninstall
|
|
5814
|
+
# reaps them everywhere so no dangling guide outlives its tools.
|
|
5839
5815
|
try:
|
|
5840
|
-
from .skills import
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
)
|
|
5816
|
+
from .skills import unsurface_skills
|
|
5817
|
+
from .connect import all_adapters
|
|
5818
|
+
for adapter in all_adapters():
|
|
5819
|
+
target = adapter.skill_target()
|
|
5820
|
+
if target is None:
|
|
5821
|
+
continue
|
|
5822
|
+
removed_skills = unsurface_skills(name, target)
|
|
5823
|
+
if removed_skills:
|
|
5824
|
+
console.print(
|
|
5825
|
+
f"[green]✓[/green] Removed {len(removed_skills)} skill"
|
|
5826
|
+
f"{'s' if len(removed_skills) != 1 else ''} from {target.root}/"
|
|
5827
|
+
)
|
|
5847
5828
|
except Exception as e:
|
|
5848
5829
|
console.print(
|
|
5849
|
-
f"[yellow]Could not clean up
|
|
5830
|
+
f"[yellow]Could not clean up surfaced skill entries: {e}[/yellow]"
|
|
5850
5831
|
)
|
|
5851
5832
|
|
|
5852
5833
|
# Drop the toolkit from the default profile(s) so an uninstalled
|
|
@@ -6408,19 +6389,44 @@ def _scope_flags(f):
|
|
|
6408
6389
|
return f
|
|
6409
6390
|
|
|
6410
6391
|
|
|
6392
|
+
def _skill_route(tk: str, sub: str) -> bool:
|
|
6393
|
+
"""Whether ``<tk>__<sub>`` should be treated as a skill rather than a
|
|
6394
|
+
tool. True only when ``sub`` matches a surfaced skill slug and is *not*
|
|
6395
|
+
also a tool name (so existing tool references keep their meaning). On a
|
|
6396
|
+
genuine name collision the tool wins and a note is printed."""
|
|
6397
|
+
if sub not in _toolkit_skill_slugs(tk):
|
|
6398
|
+
return False
|
|
6399
|
+
if sub in _toolkit_declared_tool_names(tk):
|
|
6400
|
+
console.print(
|
|
6401
|
+
f"[yellow]Note: '{tk}__{sub}' names both a tool and a skill; "
|
|
6402
|
+
"acting on the tool. Rename the skill file to toggle it "
|
|
6403
|
+
"separately.[/yellow]"
|
|
6404
|
+
)
|
|
6405
|
+
return False
|
|
6406
|
+
return True
|
|
6407
|
+
|
|
6408
|
+
|
|
6411
6409
|
@main.command()
|
|
6412
6410
|
@click.argument('item')
|
|
6413
6411
|
@_scope_flags
|
|
6414
6412
|
def activate(item, global_scope, local_scope):
|
|
6415
|
-
"""Activate a toolkit, bundle, or
|
|
6413
|
+
"""Activate a toolkit, bundle, tool, or skill in the default profile.
|
|
6416
6414
|
|
|
6417
6415
|
\b
|
|
6418
6416
|
ITEM is one of:
|
|
6419
6417
|
<toolkit> whole toolkit (tb activate heptapod)
|
|
6420
6418
|
<toolkit>/<bundle> one bundle (tb activate heptapod/pythia)
|
|
6421
6419
|
<toolkit>__<tool> one tool (tb activate heptapod__run_pythia)
|
|
6420
|
+
<toolkit>__<skill> one skill (tb activate heptapod__debug_guide)
|
|
6421
|
+
|
|
6422
|
+
A `<toolkit>__<name>` item is treated as a skill when it matches a
|
|
6423
|
+
surfaced skill and not a tool. Skills are on by default; activating one
|
|
6424
|
+
just clears a previous `tb deactivate`.
|
|
6422
6425
|
"""
|
|
6423
|
-
from .serve.profile_scaffold import
|
|
6426
|
+
from .serve.profile_scaffold import (
|
|
6427
|
+
activate as _activate, activate_skill as _activate_skill,
|
|
6428
|
+
parse_item, ProfileItemError,
|
|
6429
|
+
)
|
|
6424
6430
|
|
|
6425
6431
|
scope, project_root = _resolve_profile_scope(global_scope, local_scope)
|
|
6426
6432
|
tk = item.split('/', 1)[0].split('__', 1)[0]
|
|
@@ -6429,7 +6435,13 @@ def activate(item, global_scope, local_scope):
|
|
|
6429
6435
|
console.print(f"Run [cyan]toolbase install {tk}[/cyan] first.")
|
|
6430
6436
|
sys.exit(1)
|
|
6431
6437
|
try:
|
|
6432
|
-
|
|
6438
|
+
kind, tk2, sub = parse_item(item)
|
|
6439
|
+
if kind == "tool" and _skill_route(tk2, sub):
|
|
6440
|
+
result = _activate_skill(
|
|
6441
|
+
tk2, sub, scope=scope, project_root=project_root,
|
|
6442
|
+
)
|
|
6443
|
+
else:
|
|
6444
|
+
result = _activate(item, scope=scope, project_root=project_root)
|
|
6433
6445
|
except ProfileItemError as e:
|
|
6434
6446
|
console.print(f"[red]✗ {e}[/red]")
|
|
6435
6447
|
sys.exit(2)
|
|
@@ -6440,16 +6452,28 @@ def activate(item, global_scope, local_scope):
|
|
|
6440
6452
|
@click.argument('item')
|
|
6441
6453
|
@_scope_flags
|
|
6442
6454
|
def deactivate(item, global_scope, local_scope):
|
|
6443
|
-
"""Deactivate a toolkit, bundle, or
|
|
6455
|
+
"""Deactivate a toolkit, bundle, tool, or skill from the default profile.
|
|
6444
6456
|
|
|
6445
6457
|
\b
|
|
6446
|
-
ITEM forms match `tb activate` (toolkit, toolkit/bundle, toolkit__tool
|
|
6458
|
+
ITEM forms match `tb activate` (toolkit, toolkit/bundle, toolkit__tool,
|
|
6459
|
+
toolkit__skill). A `<toolkit>__<name>` item is treated as a skill when
|
|
6460
|
+
it matches a surfaced skill and not a tool; deactivating it stops that
|
|
6461
|
+
guide from surfacing on the next `tb connect`.
|
|
6447
6462
|
"""
|
|
6448
|
-
from .serve.profile_scaffold import
|
|
6463
|
+
from .serve.profile_scaffold import (
|
|
6464
|
+
deactivate as _deactivate, deactivate_skill as _deactivate_skill,
|
|
6465
|
+
parse_item, ProfileItemError,
|
|
6466
|
+
)
|
|
6449
6467
|
|
|
6450
6468
|
scope, project_root = _resolve_profile_scope(global_scope, local_scope)
|
|
6451
6469
|
try:
|
|
6452
|
-
|
|
6470
|
+
kind, tk2, sub = parse_item(item)
|
|
6471
|
+
if kind == "tool" and _skill_route(tk2, sub):
|
|
6472
|
+
result = _deactivate_skill(
|
|
6473
|
+
tk2, sub, scope=scope, project_root=project_root,
|
|
6474
|
+
)
|
|
6475
|
+
else:
|
|
6476
|
+
result = _deactivate(item, scope=scope, project_root=project_root)
|
|
6453
6477
|
except ProfileItemError as e:
|
|
6454
6478
|
console.print(f"[red]✗ {e}[/red]")
|
|
6455
6479
|
sys.exit(2)
|
|
@@ -6820,6 +6844,108 @@ def _toolbase_command(abspath: bool) -> str:
|
|
|
6820
6844
|
return resolved or "toolbase"
|
|
6821
6845
|
|
|
6822
6846
|
|
|
6847
|
+
def _activated_toolkit_dirs() -> "dict[str, Path]":
|
|
6848
|
+
"""``{name: slot_dir}`` for each activated, ready toolkit.
|
|
6849
|
+
|
|
6850
|
+
"Activated" means the active profile names it and serve.yaml doesn't
|
|
6851
|
+
blocklist it — the same set whose tools get served over MCP. Skills
|
|
6852
|
+
follow the tools: we surface a guide only for a toolkit whose tools the
|
|
6853
|
+
agent can actually reach. Best-effort; returns ``{}`` on any error."""
|
|
6854
|
+
try:
|
|
6855
|
+
from .serve.orchestrator import discover_toolkits
|
|
6856
|
+
except Exception:
|
|
6857
|
+
return {}
|
|
6858
|
+
_resolved, active = _list_resolve_active()
|
|
6859
|
+
dirs: "dict[str, Path]" = {}
|
|
6860
|
+
for d in discover_toolkits():
|
|
6861
|
+
if d.name in active and d.skip_reason is None:
|
|
6862
|
+
dirs[d.name] = d.path
|
|
6863
|
+
return dirs
|
|
6864
|
+
|
|
6865
|
+
|
|
6866
|
+
def _toolkit_slot_dir(name: str):
|
|
6867
|
+
"""The installed slot directory for ``name``, or ``None`` if not found."""
|
|
6868
|
+
try:
|
|
6869
|
+
from .serve.orchestrator import discover_toolkits
|
|
6870
|
+
except Exception:
|
|
6871
|
+
return None
|
|
6872
|
+
for d in discover_toolkits():
|
|
6873
|
+
if d.name == name and d.skip_reason is None:
|
|
6874
|
+
return d.path
|
|
6875
|
+
return None
|
|
6876
|
+
|
|
6877
|
+
|
|
6878
|
+
def _toolkit_skill_slugs(name: str) -> set:
|
|
6879
|
+
"""Bare surfaced-skill slugs a toolkit ships (``debug_guide`` etc.)."""
|
|
6880
|
+
slot = _toolkit_slot_dir(name)
|
|
6881
|
+
if slot is None:
|
|
6882
|
+
return set()
|
|
6883
|
+
from .skills import discover_skills, _slug
|
|
6884
|
+
return {_slug(p.stem) for p in discover_skills(slot)}
|
|
6885
|
+
|
|
6886
|
+
|
|
6887
|
+
def _resolve_disabled_skills(name: str) -> set:
|
|
6888
|
+
"""Bare skill slugs the active profile blocklists for ``name``."""
|
|
6889
|
+
_resolved, _active = _list_resolve_active()
|
|
6890
|
+
if _resolved is None:
|
|
6891
|
+
return set()
|
|
6892
|
+
sel = _resolved.toolkits.get(name)
|
|
6893
|
+
if sel is None:
|
|
6894
|
+
return set()
|
|
6895
|
+
return set(getattr(sel, "disabled_skills", []) or [])
|
|
6896
|
+
|
|
6897
|
+
|
|
6898
|
+
def _surface_skills_for_connect(adapter, *, no_skills: bool = False) -> None:
|
|
6899
|
+
"""Surface every activated toolkit's skills into ``adapter``'s skill
|
|
6900
|
+
surface (``~/.claude/skills`` or ``~/.codex/prompts``). Best-effort:
|
|
6901
|
+
a failure never fails the connect."""
|
|
6902
|
+
if no_skills:
|
|
6903
|
+
return
|
|
6904
|
+
target = adapter.skill_target()
|
|
6905
|
+
if target is None:
|
|
6906
|
+
return # this harness has no skill surface (e.g. nothing to do)
|
|
6907
|
+
from .skills import surface_skills
|
|
6908
|
+
dirs = _activated_toolkit_dirs()
|
|
6909
|
+
surfaced = 0
|
|
6910
|
+
for name, slot in sorted(dirs.items()):
|
|
6911
|
+
try:
|
|
6912
|
+
surfaced += len(surface_skills(
|
|
6913
|
+
name, slot, target,
|
|
6914
|
+
available_bundles=_available_bundles_for_surface(name, slot),
|
|
6915
|
+
disabled_slugs=_resolve_disabled_skills(name),
|
|
6916
|
+
))
|
|
6917
|
+
except Exception as e:
|
|
6918
|
+
console.print(
|
|
6919
|
+
f"[yellow]Could not surface {name} skills to {target.root}: {e}[/yellow]"
|
|
6920
|
+
)
|
|
6921
|
+
if surfaced:
|
|
6922
|
+
console.print(
|
|
6923
|
+
f"[dim]Surfaced {surfaced} skill guide"
|
|
6924
|
+
f"{'s' if surfaced != 1 else ''} to {target.root}/[/dim]"
|
|
6925
|
+
)
|
|
6926
|
+
|
|
6927
|
+
|
|
6928
|
+
def _unsurface_skills_for_connect(adapter) -> None:
|
|
6929
|
+
"""Remove every toolbase-owned skill from ``adapter``'s skill surface
|
|
6930
|
+
(called on ``connect --remove`` / ``disconnect``). Best-effort."""
|
|
6931
|
+
target = adapter.skill_target()
|
|
6932
|
+
if target is None:
|
|
6933
|
+
return
|
|
6934
|
+
from .skills import unsurface_all
|
|
6935
|
+
try:
|
|
6936
|
+
removed = unsurface_all(target)
|
|
6937
|
+
except Exception as e:
|
|
6938
|
+
console.print(
|
|
6939
|
+
f"[yellow]Could not remove skills from {target.root}: {e}[/yellow]"
|
|
6940
|
+
)
|
|
6941
|
+
return
|
|
6942
|
+
if removed:
|
|
6943
|
+
console.print(
|
|
6944
|
+
f"[dim]Removed {len(removed)} surfaced skill"
|
|
6945
|
+
f"{'s' if len(removed) != 1 else ''} from {target.root}/[/dim]"
|
|
6946
|
+
)
|
|
6947
|
+
|
|
6948
|
+
|
|
6823
6949
|
@main.command()
|
|
6824
6950
|
@click.argument('harness', required=False)
|
|
6825
6951
|
@_scope_flags
|
|
@@ -6840,8 +6966,11 @@ def _toolbase_command(abspath: bool) -> str:
|
|
|
6840
6966
|
'(default: .toolbase/orchestral.py).')
|
|
6841
6967
|
@click.option('--force', 'force', is_flag=True, default=False,
|
|
6842
6968
|
help='(orchestral) Overwrite an existing generated script.')
|
|
6969
|
+
@click.option('--no-skills', 'no_skills', is_flag=True, default=False,
|
|
6970
|
+
help="Don't surface the activated toolkits' skills into the "
|
|
6971
|
+
"harness (wire the MCP server only).")
|
|
6843
6972
|
def connect(harness, global_scope, local_scope, profile_name, remove, dry_run,
|
|
6844
|
-
abspath, do_list, do_harnesses, out_path, force):
|
|
6973
|
+
abspath, do_list, do_harnesses, out_path, force, no_skills):
|
|
6845
6974
|
"""Wire toolbase into an agent harness.
|
|
6846
6975
|
|
|
6847
6976
|
\b
|
|
@@ -6931,6 +7060,7 @@ def connect(harness, global_scope, local_scope, profile_name, remove, dry_run,
|
|
|
6931
7060
|
console.print(f"[green]✓[/green] Removed toolbase from {path}.")
|
|
6932
7061
|
else:
|
|
6933
7062
|
console.print(f"[dim]No toolbase entry in {path}; nothing to remove.[/dim]")
|
|
7063
|
+
_unsurface_skills_for_connect(adapter)
|
|
6934
7064
|
return
|
|
6935
7065
|
|
|
6936
7066
|
command = _toolbase_command(abspath)
|
|
@@ -6956,6 +7086,9 @@ def connect(harness, global_scope, local_scope, profile_name, remove, dry_run,
|
|
|
6956
7086
|
if profile_name is not None:
|
|
6957
7087
|
_connect_set_profile(profile_name, scope, project_root)
|
|
6958
7088
|
|
|
7089
|
+
# Surface the activated toolkits' skills into this harness (best-effort).
|
|
7090
|
+
_surface_skills_for_connect(adapter, no_skills=no_skills)
|
|
7091
|
+
|
|
6959
7092
|
if scope == "project":
|
|
6960
7093
|
note = adapter.project_scope_note()
|
|
6961
7094
|
if note:
|
|
@@ -7166,6 +7299,8 @@ def disconnect(harness, global_scope, local_scope, all_scopes):
|
|
|
7166
7299
|
f"[dim]No toolbase entry in {path}; nothing to remove.[/dim]"
|
|
7167
7300
|
)
|
|
7168
7301
|
|
|
7302
|
+
_unsurface_skills_for_connect(adapter)
|
|
7303
|
+
|
|
7169
7304
|
|
|
7170
7305
|
@main.command()
|
|
7171
7306
|
@click.option('--script', 'script', default=None, metavar='PATH',
|