agr-opentui 0.2.0__py3-none-any.whl → 0.2.2__py3-none-any.whl

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.
@@ -0,0 +1,203 @@
1
+ Metadata-Version: 2.4
2
+ Name: agr-opentui
3
+ Version: 0.2.2
4
+ Summary: OpenTUI frontend for agr
5
+ Project-URL: Homepage, https://github.com/RelativeSure/agr-opentui
6
+ Project-URL: Repository, https://github.com/RelativeSure/agr-opentui
7
+ Project-URL: Issues, https://github.com/RelativeSure/agr-opentui/issues
8
+ Author: Rasmus
9
+ License-Expression: MIT
10
+ Keywords: agr,cli,opentui,skills,tui
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Topic :: Software Development :: Build Tools
19
+ Classifier: Topic :: Utilities
20
+ Requires-Python: >=3.14
21
+ Requires-Dist: agr>=0.7.4
22
+ Description-Content-Type: text/markdown
23
+
24
+ # OpenTUI for agr
25
+
26
+ OpenTUI front-end for managing `agr` skills: browse `agr.toml`, install/remove skills, preview `SKILL.md`, and run skills via `agrx`. Skill discovery is based on `https://github.com/kasperjunge/agent-resources`.
27
+
28
+ ## Usage
29
+
30
+ Tabs:
31
+ - `Skills`: shows dependencies from `agr.toml` and install state.
32
+ - `Discover`: shows skills from `skills.json` (optional).
33
+
34
+ Common keys:
35
+ - `Tab` / `Shift+Tab`: switch tabs
36
+ - Arrow keys: move selection
37
+ - `space`: toggle select
38
+ - `H`: help
39
+ - `q`: quit
40
+
41
+ Skills tab keys:
42
+ - `a`: add skill (handle or `owner/repo/path`)
43
+ - `i`: install selected (bulk)
44
+ - `r`: remove selected (bulk)
45
+ - `v`: preview `SKILL.md`
46
+ - `g`: run with default options (`agrx`)
47
+ - `G`: open run options (tool, interactive, prompt, extra args)
48
+ - `u`: check discover list updates
49
+ - `U`: apply update (no confirm)
50
+ - `s`: apply update (confirm)
51
+ - `S`: apply update + sync (no confirm)
52
+ - `c`: reload config
53
+
54
+ Discover tab keys:
55
+ - `i`: add selected
56
+ - `y`: copy handle/repo to clipboard
57
+ - `a`: add skill
58
+ - `c`: reload config
59
+
60
+ Run options keys (when the modal is open):
61
+ - `t`: cycle tool
62
+ - `u`: toggle `--interactive`
63
+ - `p`: edit `--prompt`
64
+ - `e`: edit extra args
65
+ - `Enter`: run
66
+ - `Esc`: close
67
+
68
+ ## Quick Cheat Sheet
69
+
70
+ Primary flow:
71
+ - `Tab` to `Skills`
72
+ - Arrow keys to select
73
+ - `g` to run, `G` for run options
74
+
75
+ Bulk actions:
76
+ - `space` to multi-select
77
+ - `i` install or `r` remove (Skills tab)
78
+
79
+ Discover flow:
80
+ - `Tab` to `Discover`
81
+ - Arrow keys to select
82
+ - `i` to add, `y` to copy handle
83
+
84
+ ## Requirements
85
+
86
+ Runtime (using `agr-tui`):
87
+ - Python 3.10+
88
+ - `uv`
89
+ - `agr` + `agrx` on your `PATH`
90
+
91
+ Build/Development (working on this repo):
92
+ - Bun 1.3.8+
93
+ - Zig (required by OpenTUI build tooling)
94
+
95
+ ## Install
96
+
97
+ ```bash
98
+ bun install
99
+ ```
100
+
101
+ ## Run
102
+
103
+ ```bash
104
+ bun run src/main.ts
105
+ ```
106
+
107
+ Run it from the repo you want to manage (the current working directory is the target repo).
108
+ `agr.toml` is expected in that target repo for `agr add/remove/sync` operations.
109
+
110
+ ### Run From Target Repo
111
+
112
+ ```bash
113
+ cd /path/to/your/project
114
+ agr-tui
115
+ ```
116
+
117
+ `agr-opentui` itself does not need to contain your target repo's `agr.toml`.
118
+
119
+ ## Build
120
+
121
+ ```bash
122
+ bun run build
123
+ ```
124
+
125
+ This creates `bin/agr-tui`.
126
+
127
+ ## Publish to PyPI
128
+
129
+ One-time setup:
130
+ - Create a `pypi` environment in this GitHub repo.
131
+ - In your PyPI project settings, add this repo/workflow as a Trusted Publisher for `.github/workflows/publish-pypi.yml`.
132
+ - Optional: add `testpypi` environment and TestPyPI Trusted Publisher too.
133
+
134
+ Publish via GitHub Actions:
135
+ - Release publish: creating a GitHub release triggers publish to PyPI.
136
+ - Manual: run `publish-pypi` workflow and choose `pypi` or `testpypi`.
137
+
138
+ Publish from local machine:
139
+
140
+ ```bash
141
+ python -m pip install --upgrade build twine
142
+ make py-publish # Upload to PyPI
143
+ make py-publish-test # Upload to TestPyPI
144
+ ```
145
+
146
+ ## Bump Version
147
+
148
+ Update package version before creating a release:
149
+
150
+ 1. Edit `pyproject.toml` and bump `[project].version`.
151
+ 2. Regenerate `uv.lock` so the local package entry matches:
152
+
153
+ ```bash
154
+ uv lock
155
+ ```
156
+
157
+ 3. Run checks:
158
+
159
+ ```bash
160
+ make check
161
+ ```
162
+
163
+ 4. Commit the version bump:
164
+
165
+ ```bash
166
+ git add pyproject.toml uv.lock
167
+ git commit -m "chore: bump version to X.Y.Z"
168
+ ```
169
+
170
+ 5. Create a GitHub release for `vX.Y.Z` (or manually run `publish-pypi` workflow).
171
+
172
+ `publish-pypi.yml` runs automatically when a release is published.
173
+
174
+ Alternative: use `.github/workflows/bump-version.yml` via **Actions → bump-version → Run workflow** and provide:
175
+ - `version` (required): target version like `0.3.0`
176
+ - `branch` (required): target branch to update (default `master`)
177
+ - `create_tag` (required, default enabled): creates/pushes tag `v<version>` and creates a GitHub Release
178
+
179
+ ## Discover List (`skills.json`)
180
+
181
+ If `skills.json` exists, the `Discover` tab will list its entries. It supports:
182
+
183
+ - An array of strings or objects (`{ "label": "...", "handle": "...", "repo": "owner/repo" }`).
184
+ - An object with `source` metadata and `skills` array (see `skills.json` in this repo).
185
+
186
+ When a `source` is configured, the app checks the remote list periodically (about every 6 hours) and can update `skills.json` using the `u`/`U`/`s`/`S` controls.
187
+
188
+ ## Troubleshooting
189
+
190
+ - `Missing agr.toml`: run the app from a repo that has `agr.toml`, or create one.
191
+ - `uv not found`: install `uv` and ensure it’s on `PATH`.
192
+ - `agr/agrx not found`: install `agr` and ensure it’s on `PATH`.
193
+ - `python not found`: install Python 3.
194
+ - `skills.json not found` or parse errors: fix the file format (array or `{ "source": ..., "skills": [...] }`).
195
+ - Discover list not updating: check the `source` URL/repo/branch/path and network access.
196
+ - `SKILL.md` preview says “not found”: the skill may not ship a `SKILL.md` or the path is nonstandard.
197
+ - Copy to clipboard doesn’t work: install `pbcopy` (macOS), `wl-copy` (Wayland), or `xclip` (X11).
198
+
199
+ ## Notes
200
+
201
+ - All actions run through `uv` (`uv run agr`, `uv run agrx`, and `uv run python -m agr_opentui.bridge`).
202
+ - If `agr.toml` is missing in the current directory, install/remove/sync commands are blocked and a warning is shown.
203
+ - Logs are written to `/tmp/agr-opentui.log`.
@@ -0,0 +1,5 @@
1
+ agr_opentui/__init__.py,sha256=noLIoaeF0mg3fcx2LNZjDFKGS7ioA-FDCxKLIdM0v8w,38
2
+ agr_opentui/bridge.py,sha256=NmhjSq8jSvxttue0iHV8F484pfaCDMXaVlWz3qTugZw,4551
3
+ agr_opentui-0.2.2.dist-info/METADATA,sha256=KBPEk-kE886LJGHVH3IxTWfeVxjXjLal556VXYNUrrU,5928
4
+ agr_opentui-0.2.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
5
+ agr_opentui-0.2.2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: agr-opentui
3
- Version: 0.2.0
4
- Summary: OpenTUI frontend for agr
5
- Requires-Python: >=3.14.3
6
- Requires-Dist: agr>=0.7.4
@@ -1,5 +0,0 @@
1
- agr_opentui/__init__.py,sha256=noLIoaeF0mg3fcx2LNZjDFKGS7ioA-FDCxKLIdM0v8w,38
2
- agr_opentui/bridge.py,sha256=NmhjSq8jSvxttue0iHV8F484pfaCDMXaVlWz3qTugZw,4551
3
- agr_opentui-0.2.0.dist-info/METADATA,sha256=2U-qiHJ1mmimS4uVQ_MdwdPGHWUJubMoUIk4tJTkGWo,141
4
- agr_opentui-0.2.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
5
- agr_opentui-0.2.0.dist-info/RECORD,,