toolfuncs 0.4.0__tar.gz → 0.5.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.
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/PKG-INFO +2 -2
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/README.md +1 -1
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/pyproject.toml +1 -1
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/agent_hooks.py +1 -1
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/tests/test_agent_hooks.py +3 -3
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/tests/test_sdk_cli.py +1 -1
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/uv.lock +1 -1
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/.github/workflows/release.yml +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/.gitignore +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/.python-version +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/docs/contract.md +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/__init__.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/__main__.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/_errors.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/_import_path.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/_setup.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/_tools.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/py.typed +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/src/toolfuncs/sdk.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/tests/__init__.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/tests/conftest.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/tests/test_import_path.py +0 -0
- {toolfuncs-0.4.0 → toolfuncs-0.5.0}/tests/test_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: toolfuncs
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Executable typed Python function tools discovered through PATH
|
|
5
5
|
Project-URL: Repository, https://github.com/nimashoghi/toolfuncs
|
|
6
6
|
Project-URL: Issues, https://github.com/nimashoghi/toolfuncs/issues
|
|
@@ -196,7 +196,7 @@ The installed hook runs at initial session start and at the session-start event
|
|
|
196
196
|
Available toolfuncs:
|
|
197
197
|
- `weather_report`: Read current weather conditions.
|
|
198
198
|
CLI: `weather-report --help`
|
|
199
|
-
Python: `import toolfuncs as tools; tools.weather_report`
|
|
199
|
+
Python: `import toolfuncs as tools; help(tools.weather_report)`
|
|
200
200
|
```
|
|
201
201
|
|
|
202
202
|
The hook reads only executable headers and PEP 723 metadata. It advertises valid tools and lists invalid tool paths and errors separately; one invalid tool does not suppress the others. It does not import tools or resolve their dependencies. The hook itself is harness infrastructure, not a toolfunc, and therefore does not carry the toolfuncs shebang or appear in the catalog.
|
|
@@ -178,7 +178,7 @@ The installed hook runs at initial session start and at the session-start event
|
|
|
178
178
|
Available toolfuncs:
|
|
179
179
|
- `weather_report`: Read current weather conditions.
|
|
180
180
|
CLI: `weather-report --help`
|
|
181
|
-
Python: `import toolfuncs as tools; tools.weather_report`
|
|
181
|
+
Python: `import toolfuncs as tools; help(tools.weather_report)`
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
The hook reads only executable headers and PEP 723 metadata. It advertises valid tools and lists invalid tool paths and errors separately; one invalid tool does not suppress the others. It does not import tools or resolve their dependencies. The hook itself is harness infrastructure, not a toolfunc, and therefore does not carry the toolfuncs shebang or appear in the catalog.
|
|
@@ -25,7 +25,7 @@ def catalog_context(catalog: Catalog) -> str | None:
|
|
|
25
25
|
(
|
|
26
26
|
f"- `{tool.python_name}`: {tool.description}",
|
|
27
27
|
f" CLI: `{tool.cli_name} --help`",
|
|
28
|
-
f" Python: `import toolfuncs as tools; tools.{tool.python_name}`",
|
|
28
|
+
f" Python: `import toolfuncs as tools; help(tools.{tool.python_name})`",
|
|
29
29
|
)
|
|
30
30
|
)
|
|
31
31
|
if catalog.invalid_tools:
|
|
@@ -52,10 +52,10 @@ def test_catalog_context_shows_cli_and_python_usage() -> None:
|
|
|
52
52
|
"Available toolfuncs:\n"
|
|
53
53
|
"- `session_history`: Search prior sessions.\n"
|
|
54
54
|
" CLI: `session-history --help`\n"
|
|
55
|
-
" Python: `import toolfuncs as tools; tools.session_history`\n"
|
|
55
|
+
" Python: `import toolfuncs as tools; help(tools.session_history)`\n"
|
|
56
56
|
"- `screenpipe`: Search recorded activity.\n"
|
|
57
57
|
" CLI: `screenpipe --help`\n"
|
|
58
|
-
" Python: `import toolfuncs as tools; tools.screenpipe`\n"
|
|
58
|
+
" Python: `import toolfuncs as tools; help(tools.screenpipe)`\n"
|
|
59
59
|
"</toolfuncs>"
|
|
60
60
|
)
|
|
61
61
|
|
|
@@ -107,7 +107,7 @@ def test_session_start_handler_advertises_startup_and_post_compaction(
|
|
|
107
107
|
assert isinstance(result, shared.outputs.AddContext)
|
|
108
108
|
assert "`weather`" in result.text
|
|
109
109
|
assert "CLI: `weather --help`" in result.text
|
|
110
|
-
assert "Python: `import toolfuncs as tools; tools.weather`" in result.text
|
|
110
|
+
assert "Python: `import toolfuncs as tools; help(tools.weather)`" in result.text
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
def test_session_start_handler_emits_nothing_for_an_empty_path(
|
|
@@ -34,7 +34,7 @@ def test_cli_prints_installed_version(tmp_path: Path, flag: str) -> None:
|
|
|
34
34
|
completed = run_python(["-m", "toolfuncs", flag], cwd=tmp_path)
|
|
35
35
|
|
|
36
36
|
assert completed.returncode == 0
|
|
37
|
-
assert completed.stdout == "0.
|
|
37
|
+
assert completed.stdout == "0.5.0\n"
|
|
38
38
|
assert completed.stderr == ""
|
|
39
39
|
|
|
40
40
|
|
|
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
|