henosis-cli 0.1.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.
- henosis_cli-0.1.0/PKG-INFO +55 -0
- henosis_cli-0.1.0/README.md +28 -0
- henosis_cli-0.1.0/cli.py +4637 -0
- henosis_cli-0.1.0/henosis_cli.egg-info/PKG-INFO +55 -0
- henosis_cli-0.1.0/henosis_cli.egg-info/SOURCES.txt +12 -0
- henosis_cli-0.1.0/henosis_cli.egg-info/dependency_links.txt +1 -0
- henosis_cli-0.1.0/henosis_cli.egg-info/entry_points.txt +2 -0
- henosis_cli-0.1.0/henosis_cli.egg-info/requires.txt +10 -0
- henosis_cli-0.1.0/henosis_cli.egg-info/top_level.txt +2 -0
- henosis_cli-0.1.0/henosis_cli_tools/__init__.py +40 -0
- henosis_cli-0.1.0/henosis_cli_tools/input_engine.py +369 -0
- henosis_cli-0.1.0/henosis_cli_tools/tool_impl.py +737 -0
- henosis_cli-0.1.0/pyproject.toml +53 -0
- henosis_cli-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: henosis-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: henosis-cli: Chat client for Henosis server (ships client-executed tool support)
|
|
5
|
+
Author: Henosis
|
|
6
|
+
License: Proprietary
|
|
7
|
+
Project-URL: Homepage, https://henosis.us
|
|
8
|
+
Project-URL: Repository, https://example.com/replace-with-your-repo
|
|
9
|
+
Project-URL: Issues, https://example.com/replace-with-your-issues
|
|
10
|
+
Keywords: cli,tools,filesystem,sandbox,patch,subprocess
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Classifier: License :: Other/Proprietary License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Environment :: Console
|
|
16
|
+
Classifier: Topic :: Utilities
|
|
17
|
+
Requires-Python: >=3.9
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
Requires-Dist: httpx>=0.28.1
|
|
20
|
+
Requires-Dist: rich>=13.7.0
|
|
21
|
+
Requires-Dist: prompt_toolkit>=3.0.38
|
|
22
|
+
Provides-Extra: cli-ui
|
|
23
|
+
Requires-Dist: rich>=13.0.0; extra == "cli-ui"
|
|
24
|
+
Requires-Dist: prompt_toolkit>=3.0.38; extra == "cli-ui"
|
|
25
|
+
Provides-Extra: ws
|
|
26
|
+
Requires-Dist: websockets>=11; extra == "ws"
|
|
27
|
+
|
|
28
|
+
## Henosis Tools (CLI)
|
|
29
|
+
|
|
30
|
+
Standalone CLI and reusable Python library for local machine interactions extracted from the Henosis FastAPI server.
|
|
31
|
+
|
|
32
|
+
Features
|
|
33
|
+
- Filesystem: read, write, append, list, apply simplified patches
|
|
34
|
+
- Commands: run whitelisted commands (no shell) with timeout
|
|
35
|
+
- Sandboxing: workspace vs host scope with allowed roots
|
|
36
|
+
|
|
37
|
+
Quick start
|
|
38
|
+
- Install locally: pip install -e .
|
|
39
|
+
- Run: henosis-tools --help
|
|
40
|
+
|
|
41
|
+
Examples
|
|
42
|
+
- List directory: henosis-tools fs ls .
|
|
43
|
+
- Read a file: henosis-tools fs read CODEBASE_MAP.md
|
|
44
|
+
- Write from stdin: echo hello | henosis-tools fs write notes/todo.txt --content -
|
|
45
|
+
- Run a command: henosis-tools cmd run "git status" --allow "git"
|
|
46
|
+
- Apply a patch: henosis-tools patch apply --patch-file changes.patch
|
|
47
|
+
|
|
48
|
+
Environment variables
|
|
49
|
+
- HENOSIS_WORKSPACE_DIR, HENOSIS_ALLOW_EXTENSIONS, HENOSIS_MAX_FILE_BYTES
|
|
50
|
+
- HENOSIS_MAX_EDIT_BYTES, HENOSIS_EDIT_SAFEGUARD_MAX_LINES
|
|
51
|
+
- HENOSIS_ALLOW_COMMANDS, HENOSIS_COMMAND_TIMEOUT_SEC
|
|
52
|
+
|
|
53
|
+
Security notes
|
|
54
|
+
- host scope requires allowed roots or host_base, and commands require an allowlist.
|
|
55
|
+
- No shell is used to run commands; only the base executable is checked against allowlist.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
## Henosis Tools (CLI)
|
|
2
|
+
|
|
3
|
+
Standalone CLI and reusable Python library for local machine interactions extracted from the Henosis FastAPI server.
|
|
4
|
+
|
|
5
|
+
Features
|
|
6
|
+
- Filesystem: read, write, append, list, apply simplified patches
|
|
7
|
+
- Commands: run whitelisted commands (no shell) with timeout
|
|
8
|
+
- Sandboxing: workspace vs host scope with allowed roots
|
|
9
|
+
|
|
10
|
+
Quick start
|
|
11
|
+
- Install locally: pip install -e .
|
|
12
|
+
- Run: henosis-tools --help
|
|
13
|
+
|
|
14
|
+
Examples
|
|
15
|
+
- List directory: henosis-tools fs ls .
|
|
16
|
+
- Read a file: henosis-tools fs read CODEBASE_MAP.md
|
|
17
|
+
- Write from stdin: echo hello | henosis-tools fs write notes/todo.txt --content -
|
|
18
|
+
- Run a command: henosis-tools cmd run "git status" --allow "git"
|
|
19
|
+
- Apply a patch: henosis-tools patch apply --patch-file changes.patch
|
|
20
|
+
|
|
21
|
+
Environment variables
|
|
22
|
+
- HENOSIS_WORKSPACE_DIR, HENOSIS_ALLOW_EXTENSIONS, HENOSIS_MAX_FILE_BYTES
|
|
23
|
+
- HENOSIS_MAX_EDIT_BYTES, HENOSIS_EDIT_SAFEGUARD_MAX_LINES
|
|
24
|
+
- HENOSIS_ALLOW_COMMANDS, HENOSIS_COMMAND_TIMEOUT_SEC
|
|
25
|
+
|
|
26
|
+
Security notes
|
|
27
|
+
- host scope requires allowed roots or host_base, and commands require an allowlist.
|
|
28
|
+
- No shell is used to run commands; only the base executable is checked against allowlist.
|