hubtree 1.0.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.
- hubtree-1.0.0/LICENSE +21 -0
- hubtree-1.0.0/PKG-INFO +120 -0
- hubtree-1.0.0/README.md +98 -0
- hubtree-1.0.0/pyproject.toml +40 -0
- hubtree-1.0.0/setup.cfg +4 -0
- hubtree-1.0.0/src/hubtree/__init__.py +12 -0
- hubtree-1.0.0/src/hubtree/__main__.py +5 -0
- hubtree-1.0.0/src/hubtree/app.py +1034 -0
- hubtree-1.0.0/src/hubtree/autopilot.py +445 -0
- hubtree-1.0.0/src/hubtree/bip39_english.txt.gz +0 -0
- hubtree-1.0.0/src/hubtree/cli.py +90 -0
- hubtree-1.0.0/src/hubtree/daemon.py +238 -0
- hubtree-1.0.0/src/hubtree/hooks.py +141 -0
- hubtree-1.0.0/src/hubtree/htconf.py +125 -0
- hubtree-1.0.0/src/hubtree/hubdb.py +474 -0
- hubtree-1.0.0/src/hubtree/install.py +320 -0
- hubtree-1.0.0/src/hubtree/open_session.py +31 -0
- hubtree-1.0.0/src/hubtree/owner_update.py +80 -0
- hubtree-1.0.0/src/hubtree/pane/.claude-plugin/marketplace.json +5 -0
- hubtree-1.0.0/src/hubtree/pane/.claude-plugin/plugin.json +6 -0
- hubtree-1.0.0/src/hubtree/pane/hooks/autopilot.tsx +143 -0
- hubtree-1.0.0/src/hubtree/pane/hooks/hooks.json +1 -0
- hubtree-1.0.0/src/hubtree/pane/hooks/paths.ts +4 -0
- hubtree-1.0.0/src/hubtree/pane/hooks/register.tsx +250 -0
- hubtree-1.0.0/src/hubtree/pane/tests/autopilot.test.tsx +114 -0
- hubtree-1.0.0/src/hubtree/pane/tests/pane.test.tsx +88 -0
- hubtree-1.0.0/src/hubtree/pane/tests/swarm.test.tsx +52 -0
- hubtree-1.0.0/src/hubtree/pane/tsconfig.json +3 -0
- hubtree-1.0.0/src/hubtree/pane/types/index.d.ts +48 -0
- hubtree-1.0.0/src/hubtree/redact.py +193 -0
- hubtree-1.0.0/src/hubtree/rotate.py +716 -0
- hubtree-1.0.0/src/hubtree/session_hook.py +109 -0
- hubtree-1.0.0/src/hubtree/skills/spawn/SKILL.md +27 -0
- hubtree-1.0.0/src/hubtree/skills/where/SKILL.md +23 -0
- hubtree-1.0.0/src/hubtree/spawn.py +283 -0
- hubtree-1.0.0/src/hubtree/swarm.py +1207 -0
- hubtree-1.0.0/src/hubtree/swarm_obs.py +883 -0
- hubtree-1.0.0/src/hubtree/swarm_web.py +881 -0
- hubtree-1.0.0/src/hubtree/task_packet.py +120 -0
- hubtree-1.0.0/src/hubtree/teams/build.toml +33 -0
- hubtree-1.0.0/src/hubtree/term.py +143 -0
- hubtree-1.0.0/src/hubtree/tree_lib.py +530 -0
- hubtree-1.0.0/src/hubtree/tree_view.py +277 -0
- hubtree-1.0.0/src/hubtree.egg-info/PKG-INFO +120 -0
- hubtree-1.0.0/src/hubtree.egg-info/SOURCES.txt +60 -0
- hubtree-1.0.0/src/hubtree.egg-info/dependency_links.txt +1 -0
- hubtree-1.0.0/src/hubtree.egg-info/entry_points.txt +2 -0
- hubtree-1.0.0/src/hubtree.egg-info/requires.txt +5 -0
- hubtree-1.0.0/src/hubtree.egg-info/top_level.txt +1 -0
- hubtree-1.0.0/tests/test_autopilot.py +335 -0
- hubtree-1.0.0/tests/test_e2e_flow.py +145 -0
- hubtree-1.0.0/tests/test_entry.py +94 -0
- hubtree-1.0.0/tests/test_health.py +232 -0
- hubtree-1.0.0/tests/test_hook.py +70 -0
- hubtree-1.0.0/tests/test_hubtree.py +82 -0
- hubtree-1.0.0/tests/test_hubtree_actions.py +99 -0
- hubtree-1.0.0/tests/test_hubtree_scope.py +95 -0
- hubtree-1.0.0/tests/test_rotate.py +281 -0
- hubtree-1.0.0/tests/test_swarm.py +459 -0
- hubtree-1.0.0/tests/test_swarm_obs.py +278 -0
- hubtree-1.0.0/tests/test_swarm_web.py +223 -0
- hubtree-1.0.0/tests/test_where.py +116 -0
hubtree-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dev Kewlani
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
hubtree-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hubtree
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: One tree for every Claude Code session you run: parents, children, tasks, budgets and results
|
|
5
|
+
Author: Dev Kewlani
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/dev-kewlani/hubtree
|
|
8
|
+
Project-URL: Issues, https://github.com/dev-kewlani/hubtree/issues
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
11
|
+
Classifier: Operating System :: MacOS
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: textual>=0.80
|
|
18
|
+
Requires-Dist: rich>=13
|
|
19
|
+
Provides-Extra: test
|
|
20
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# hubtree
|
|
24
|
+
|
|
25
|
+
Running agents is easy. Managing them is where almost everyone struggles.
|
|
26
|
+
|
|
27
|
+
hubtree puts every Claude Code session you run into one tree. Each child knows its parent, its task, its budget and what it waits for, and its result comes back up to you to accept or send back.
|
|
28
|
+
|
|
29
|
+
## What it does
|
|
30
|
+
|
|
31
|
+
- **A tree, not a list.** Every session knows the session that started it. A folder row counts the sessions below it that are stuck or wait for you.
|
|
32
|
+
- **Work goes down with a task file.** `/spawn` writes the goal, the done test and the budget into a file first, then starts the child in a new tab or in the background.
|
|
33
|
+
- **Results come back up.** A child posts a result. You accept it, ask for a change, or reject it.
|
|
34
|
+
- **Cost per sub-tree, and budgets.** A child pauses at 100% of its budget, and its parent gets one message.
|
|
35
|
+
- **Dependencies and a queue.** "Start B when A has released", with limits per folder and in total.
|
|
36
|
+
- **Group actions.** Pause, resume, stop or message a whole sub-tree.
|
|
37
|
+
- **Health marks.** `YOU` (waits for you), `STUCK` (busy with no output past a time limit), `died` (stopped in the middle of a turn).
|
|
38
|
+
- **Long sessions continue.** A new session with the same name takes over near the context limit, and a session continues by itself after a usage limit resets.
|
|
39
|
+
|
|
40
|
+
Claude Code has its own agent view (`claude agents`), which shows what runs and what needs you. hubtree uses the same sessions and adds who started what, what it cost, what waits on what, and what came back.
|
|
41
|
+
|
|
42
|
+
## Install
|
|
43
|
+
|
|
44
|
+
You need Python 3.11 or newer, Claude Code, and a terminal back end: Windows Terminal on Windows, tmux on macOS and Linux.
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
pipx install git+https://github.com/dev-kewlani/hubtree
|
|
48
|
+
cd ~/projects # the folder whose sub-folders become the tree
|
|
49
|
+
hubtree init
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`hubtree init` does these steps and prints one line for each:
|
|
53
|
+
|
|
54
|
+
1. Writes `~/.hubtree/hubtree.toml`. The tree root is the folder where you ran `init` (`--root DIR` sets another one).
|
|
55
|
+
2. Copies your Claude Code `settings.json` to `~/.hubtree/backup/` before it changes anything.
|
|
56
|
+
3. Adds 6 hook entries to `settings.json` (session start and end, prompt, stop, pre-compact, and file writes). Each one runs `python -m hubtree hook <event>`.
|
|
57
|
+
4. Installs the side pane as a Claude Code plugin from `~/.hubtree/pane` (`--no-pane` skips it).
|
|
58
|
+
5. Copies the `/spawn` and `/where` skills into `~/.claude/skills/`. It never overwrites a skill with the same name.
|
|
59
|
+
|
|
60
|
+
The small daemon (`hubtree daemon`) starts with your next Claude Code session. It starts queued children, checks budgets and continues sessions after a usage limit.
|
|
61
|
+
|
|
62
|
+
Check the install with `hubtree doctor`.
|
|
63
|
+
|
|
64
|
+
## Use
|
|
65
|
+
|
|
66
|
+
- Use Claude Code as normal. Every session joins the tree. A session in `~/projects/work/api` sits under the node `work/api`.
|
|
67
|
+
- `/spawn` in a session starts a child: in a new tab, or in the background with `--auto`.
|
|
68
|
+
- `hubtree` opens the tree app in the terminal. `hubtree work` shows only the `work` sub-tree.
|
|
69
|
+
- `/where` (or `hubtree where`) prints the tree as text.
|
|
70
|
+
- `/tree` opens or closes the side pane in a Claude Code session.
|
|
71
|
+
- `hubtree web` serves a local page on 127.0.0.1 with a token login. It is off by default (`[web] enabled` in `hubtree.toml`).
|
|
72
|
+
|
|
73
|
+
Nothing leaves your machine. hubtree has no account and no server. It reads the transcripts that Claude Code already writes under `~/.claude/projects`.
|
|
74
|
+
|
|
75
|
+
## A short replay (stand-in names)
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
you > /spawn "add rate limits to the api" --budget-usd 5
|
|
79
|
+
started work/api/rate-limits in a new tab (task file written)
|
|
80
|
+
you > /spawn "write the load test" --auto --after work/api/rate-limits
|
|
81
|
+
queued work/api/load-test: waits for rate-limits (released)
|
|
82
|
+
... rate-limits posts a result: "limits on 4 routes, tests pass, commit 3f2c1a9"
|
|
83
|
+
you > hubtree (the row shows "result ready"; press A to accept)
|
|
84
|
+
accepted; load-test starts in the background
|
|
85
|
+
... load-test reaches 80% of its budget: one message to its parent
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Configuration
|
|
89
|
+
|
|
90
|
+
`~/.hubtree/hubtree.toml` holds every setting, with comments. The main keys:
|
|
91
|
+
|
|
92
|
+
| Key | Default | Meaning |
|
|
93
|
+
|---|---|---|
|
|
94
|
+
| `[hubtree] root` | the folder of `hubtree init` | The folder whose sub-folders become the nodes |
|
|
95
|
+
| `[hubtree] levels` | 2 | How many folder levels below the root make a node |
|
|
96
|
+
| `[hubtree] terminal` | `auto` | `wt`, `tmux` or `auto` (wt on Windows, tmux elsewhere) |
|
|
97
|
+
| `[hubtree] claude_args` | `[]` | Extra arguments for every session that hubtree starts |
|
|
98
|
+
| `[tree] stuck_min` | 20 | Minutes with no output while busy before a row shows STUCK |
|
|
99
|
+
| `[swarm] max_working_per_node` | 3 | Background children that work at once per node; more wait in the queue |
|
|
100
|
+
| `[swarm] max_working_total` | 8 | Background children that work at once in total |
|
|
101
|
+
| `[web] enabled` | false | Keep the local page running |
|
|
102
|
+
|
|
103
|
+
hubtree starts sessions with your normal Claude Code permission settings. It adds no permission flag by itself. To add one, put it in `claude_args`.
|
|
104
|
+
|
|
105
|
+
## Uninstall
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
hubtree uninstall # --purge also removes ~/.hubtree (the tree state)
|
|
109
|
+
pipx uninstall hubtree
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`hubtree uninstall` stops the daemon, removes the plugin and the skills it copied, and removes its hook entries. When you made no other change to `settings.json` since `init`, the file is byte for byte the same as the backup. When you did make other changes, it keeps them and removes only the hubtree entries.
|
|
113
|
+
|
|
114
|
+
## Platforms
|
|
115
|
+
|
|
116
|
+
Windows (Windows Terminal), macOS and Linux (tmux). Tested with Claude Code 2.1.330.
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
MIT
|
hubtree-1.0.0/README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# hubtree
|
|
2
|
+
|
|
3
|
+
Running agents is easy. Managing them is where almost everyone struggles.
|
|
4
|
+
|
|
5
|
+
hubtree puts every Claude Code session you run into one tree. Each child knows its parent, its task, its budget and what it waits for, and its result comes back up to you to accept or send back.
|
|
6
|
+
|
|
7
|
+
## What it does
|
|
8
|
+
|
|
9
|
+
- **A tree, not a list.** Every session knows the session that started it. A folder row counts the sessions below it that are stuck or wait for you.
|
|
10
|
+
- **Work goes down with a task file.** `/spawn` writes the goal, the done test and the budget into a file first, then starts the child in a new tab or in the background.
|
|
11
|
+
- **Results come back up.** A child posts a result. You accept it, ask for a change, or reject it.
|
|
12
|
+
- **Cost per sub-tree, and budgets.** A child pauses at 100% of its budget, and its parent gets one message.
|
|
13
|
+
- **Dependencies and a queue.** "Start B when A has released", with limits per folder and in total.
|
|
14
|
+
- **Group actions.** Pause, resume, stop or message a whole sub-tree.
|
|
15
|
+
- **Health marks.** `YOU` (waits for you), `STUCK` (busy with no output past a time limit), `died` (stopped in the middle of a turn).
|
|
16
|
+
- **Long sessions continue.** A new session with the same name takes over near the context limit, and a session continues by itself after a usage limit resets.
|
|
17
|
+
|
|
18
|
+
Claude Code has its own agent view (`claude agents`), which shows what runs and what needs you. hubtree uses the same sessions and adds who started what, what it cost, what waits on what, and what came back.
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
You need Python 3.11 or newer, Claude Code, and a terminal back end: Windows Terminal on Windows, tmux on macOS and Linux.
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
pipx install git+https://github.com/dev-kewlani/hubtree
|
|
26
|
+
cd ~/projects # the folder whose sub-folders become the tree
|
|
27
|
+
hubtree init
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
`hubtree init` does these steps and prints one line for each:
|
|
31
|
+
|
|
32
|
+
1. Writes `~/.hubtree/hubtree.toml`. The tree root is the folder where you ran `init` (`--root DIR` sets another one).
|
|
33
|
+
2. Copies your Claude Code `settings.json` to `~/.hubtree/backup/` before it changes anything.
|
|
34
|
+
3. Adds 6 hook entries to `settings.json` (session start and end, prompt, stop, pre-compact, and file writes). Each one runs `python -m hubtree hook <event>`.
|
|
35
|
+
4. Installs the side pane as a Claude Code plugin from `~/.hubtree/pane` (`--no-pane` skips it).
|
|
36
|
+
5. Copies the `/spawn` and `/where` skills into `~/.claude/skills/`. It never overwrites a skill with the same name.
|
|
37
|
+
|
|
38
|
+
The small daemon (`hubtree daemon`) starts with your next Claude Code session. It starts queued children, checks budgets and continues sessions after a usage limit.
|
|
39
|
+
|
|
40
|
+
Check the install with `hubtree doctor`.
|
|
41
|
+
|
|
42
|
+
## Use
|
|
43
|
+
|
|
44
|
+
- Use Claude Code as normal. Every session joins the tree. A session in `~/projects/work/api` sits under the node `work/api`.
|
|
45
|
+
- `/spawn` in a session starts a child: in a new tab, or in the background with `--auto`.
|
|
46
|
+
- `hubtree` opens the tree app in the terminal. `hubtree work` shows only the `work` sub-tree.
|
|
47
|
+
- `/where` (or `hubtree where`) prints the tree as text.
|
|
48
|
+
- `/tree` opens or closes the side pane in a Claude Code session.
|
|
49
|
+
- `hubtree web` serves a local page on 127.0.0.1 with a token login. It is off by default (`[web] enabled` in `hubtree.toml`).
|
|
50
|
+
|
|
51
|
+
Nothing leaves your machine. hubtree has no account and no server. It reads the transcripts that Claude Code already writes under `~/.claude/projects`.
|
|
52
|
+
|
|
53
|
+
## A short replay (stand-in names)
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
you > /spawn "add rate limits to the api" --budget-usd 5
|
|
57
|
+
started work/api/rate-limits in a new tab (task file written)
|
|
58
|
+
you > /spawn "write the load test" --auto --after work/api/rate-limits
|
|
59
|
+
queued work/api/load-test: waits for rate-limits (released)
|
|
60
|
+
... rate-limits posts a result: "limits on 4 routes, tests pass, commit 3f2c1a9"
|
|
61
|
+
you > hubtree (the row shows "result ready"; press A to accept)
|
|
62
|
+
accepted; load-test starts in the background
|
|
63
|
+
... load-test reaches 80% of its budget: one message to its parent
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Configuration
|
|
67
|
+
|
|
68
|
+
`~/.hubtree/hubtree.toml` holds every setting, with comments. The main keys:
|
|
69
|
+
|
|
70
|
+
| Key | Default | Meaning |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| `[hubtree] root` | the folder of `hubtree init` | The folder whose sub-folders become the nodes |
|
|
73
|
+
| `[hubtree] levels` | 2 | How many folder levels below the root make a node |
|
|
74
|
+
| `[hubtree] terminal` | `auto` | `wt`, `tmux` or `auto` (wt on Windows, tmux elsewhere) |
|
|
75
|
+
| `[hubtree] claude_args` | `[]` | Extra arguments for every session that hubtree starts |
|
|
76
|
+
| `[tree] stuck_min` | 20 | Minutes with no output while busy before a row shows STUCK |
|
|
77
|
+
| `[swarm] max_working_per_node` | 3 | Background children that work at once per node; more wait in the queue |
|
|
78
|
+
| `[swarm] max_working_total` | 8 | Background children that work at once in total |
|
|
79
|
+
| `[web] enabled` | false | Keep the local page running |
|
|
80
|
+
|
|
81
|
+
hubtree starts sessions with your normal Claude Code permission settings. It adds no permission flag by itself. To add one, put it in `claude_args`.
|
|
82
|
+
|
|
83
|
+
## Uninstall
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
hubtree uninstall # --purge also removes ~/.hubtree (the tree state)
|
|
87
|
+
pipx uninstall hubtree
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
`hubtree uninstall` stops the daemon, removes the plugin and the skills it copied, and removes its hook entries. When you made no other change to `settings.json` since `init`, the file is byte for byte the same as the backup. When you did make other changes, it keeps them and removes only the hubtree entries.
|
|
91
|
+
|
|
92
|
+
## Platforms
|
|
93
|
+
|
|
94
|
+
Windows (Windows Terminal), macOS and Linux (tmux). Tested with Claude Code 2.1.330.
|
|
95
|
+
|
|
96
|
+
## License
|
|
97
|
+
|
|
98
|
+
MIT
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "hubtree"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "One tree for every Claude Code session you run: parents, children, tasks, budgets and results"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.11"
|
|
13
|
+
authors = [{ name = "Dev Kewlani" }]
|
|
14
|
+
dependencies = ["textual>=0.80", "rich>=13"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Operating System :: Microsoft :: Windows",
|
|
18
|
+
"Operating System :: MacOS",
|
|
19
|
+
"Operating System :: POSIX :: Linux",
|
|
20
|
+
"Environment :: Console",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[project.optional-dependencies]
|
|
24
|
+
test = ["pytest>=8"]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://github.com/dev-kewlani/hubtree"
|
|
28
|
+
Issues = "https://github.com/dev-kewlani/hubtree/issues"
|
|
29
|
+
|
|
30
|
+
[project.scripts]
|
|
31
|
+
hubtree = "hubtree.cli:main"
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.packages.find]
|
|
34
|
+
where = ["src"]
|
|
35
|
+
|
|
36
|
+
[tool.setuptools.package-data]
|
|
37
|
+
hubtree = ["*.txt.gz", "teams/*.toml", "skills/**/*", "pane/**/*", "pane/.claude-plugin/*"]
|
|
38
|
+
|
|
39
|
+
[tool.pytest.ini_options]
|
|
40
|
+
testpaths = ["tests"]
|
hubtree-1.0.0/setup.cfg
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""hubtree: one tree for every Claude Code session you run.
|
|
2
|
+
|
|
3
|
+
The modules in this folder import each other by their plain names (tree_lib, swarm, ...), so this folder goes on
|
|
4
|
+
sys.path once. Use the `hubtree` command (cli.py); the modules are not a stable library API.
|
|
5
|
+
"""
|
|
6
|
+
import os
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
__version__ = "1.0.0"
|
|
10
|
+
_HERE = os.path.dirname(os.path.abspath(__file__))
|
|
11
|
+
if _HERE not in sys.path:
|
|
12
|
+
sys.path.insert(0, _HERE)
|