agr-opentui 0.2.2__tar.gz → 0.3.1__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.
- agr_opentui-0.3.1/.github/CODEOWNERS +5 -0
- agr_opentui-0.3.1/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- agr_opentui-0.3.1/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/.github/workflows/bump-version.yml +1 -1
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/PKG-INFO +34 -69
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/README.md +32 -67
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/pyproject.toml +2 -2
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/app.ts +1 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/app_logic.ts +9 -7
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_actions.ts +2 -1
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/ui/controller.ts +11 -3
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/app_logic.test.ts +25 -1
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_actions_service.test.ts +1 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/runtime_handlers.test.ts +11 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/ui_controller.test.ts +1 -1
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/uv.lock +2 -2
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/.github/renovate.json5 +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/.github/workflows/build-bin.yml +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/.github/workflows/ci.yml +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/.github/workflows/publish-pypi.yml +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/.gitignore +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/Makefile +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/agr_opentui/__init__.py +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/agr_opentui/bridge.py +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/bun.lock +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/bunfig.toml +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/package.json +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/skills.json +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/commands.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/deps.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/main.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/runtime/doctor.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/runtime/handlers.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/runtime/modal_input_handler.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/add_flow.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/agr.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/agr_actions.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/clipboard.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/data.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/discover_filter.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/discover_labels.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/feedback.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/handle_match.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/input_mode.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/navigation.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/preview.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_all.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_details.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_footer.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_help.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_list.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_missing_config.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_preview.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_run_modal.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_run_options.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_tabs.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_update_confirm.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/render_verify.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/runtime_ops.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/selection.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/skills_file.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/skills_source.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/ui_feedback.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/update.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/verify.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/verify_coordinator.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/services/visible_items.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/state.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/ui/layout.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/ui/render.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/ui/rows_render.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/src/ui.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/add_flow_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/agr_actions.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/agr_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/clipboard_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/commands_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/data_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/discover_filter_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/discover_labels.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/feedback_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/handle_match_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/input_mode_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/navigation_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/preview_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_all_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_details_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_footer_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_help_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_list_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_missing_config_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_preview_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_run_modal_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_run_options_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_tabs_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_update_confirm_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/render_verify_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/rows_render.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/runtime_doctor.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/runtime_ops_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/selection_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/skills_file_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/skills_source.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/ui_feedback_adapter.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/update_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/verify_coordinator_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/verify_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/test/visible_items_service.test.ts +0 -0
- {agr_opentui-0.2.2 → agr_opentui-0.3.1}/tsconfig.json +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Browser [e.g. chrome, safari]
|
|
29
|
+
- Version [e.g. 22]
|
|
30
|
+
|
|
31
|
+
**Smartphone (please complete the following information):**
|
|
32
|
+
- Device: [e.g. iPhone6]
|
|
33
|
+
- OS: [e.g. iOS8.1]
|
|
34
|
+
- Browser [e.g. stock browser, safari]
|
|
35
|
+
- Version [e.g. 22]
|
|
36
|
+
|
|
37
|
+
**Additional context**
|
|
38
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agr-opentui
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: OpenTUI frontend for agr
|
|
5
5
|
Project-URL: Homepage, https://github.com/RelativeSure/agr-opentui
|
|
6
6
|
Project-URL: Repository, https://github.com/RelativeSure/agr-opentui
|
|
@@ -17,13 +17,25 @@ Classifier: Programming Language :: Python :: 3
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
18
18
|
Classifier: Topic :: Software Development :: Build Tools
|
|
19
19
|
Classifier: Topic :: Utilities
|
|
20
|
-
Requires-Python: >=3.14
|
|
20
|
+
Requires-Python: >=3.14.3
|
|
21
21
|
Requires-Dist: agr>=0.7.4
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
<div align="center">
|
|
25
25
|
|
|
26
|
-
OpenTUI
|
|
26
|
+
# OpenTUI for `agr` and `agrx`
|
|
27
|
+
|
|
28
|
+
An OpenTUI interface for the `agr`/`agrx` CLI: view configured skills, trigger `agr` actions and preview `SKILL.md`
|
|
29
|
+
|
|
30
|
+
[](https://pypi.org/project/agr-opentui/)
|
|
31
|
+
[](https://opensource.org/licenses/MIT)
|
|
32
|
+
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
`agr-opentui` is an OpenTUI front-end for `agr`/`agrx`.
|
|
38
|
+
The default discover source in this repo points to `https://github.com/kasperjunge/agent-resources`.
|
|
27
39
|
|
|
28
40
|
## Usage
|
|
29
41
|
|
|
@@ -83,98 +95,50 @@ Discover flow:
|
|
|
83
95
|
|
|
84
96
|
## Requirements
|
|
85
97
|
|
|
86
|
-
Runtime (using `agr-tui`):
|
|
98
|
+
### Runtime (using `agr-tui`):
|
|
87
99
|
- Python 3.10+
|
|
88
100
|
- `uv`
|
|
89
101
|
- `agr` + `agrx` on your `PATH`
|
|
90
102
|
|
|
91
|
-
Build/Development (working on this repo):
|
|
103
|
+
### Build/Development (working on this repo):
|
|
92
104
|
- Bun 1.3.8+
|
|
93
105
|
- Zig (required by OpenTUI build tooling)
|
|
94
106
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
bun install
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
## Run
|
|
107
|
+
#### Build
|
|
102
108
|
|
|
103
109
|
```bash
|
|
104
|
-
bun run
|
|
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
|
|
110
|
+
bun run build
|
|
115
111
|
```
|
|
116
|
-
|
|
117
|
-
`agr-opentui` itself does not need to contain your target repo's `agr.toml`.
|
|
118
|
-
|
|
119
|
-
## Build
|
|
120
|
-
|
|
112
|
+
or
|
|
121
113
|
```bash
|
|
122
|
-
|
|
114
|
+
make build
|
|
123
115
|
```
|
|
124
|
-
|
|
125
116
|
This creates `bin/agr-tui`.
|
|
126
117
|
|
|
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
118
|
|
|
134
|
-
|
|
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:
|
|
119
|
+
#### Install
|
|
139
120
|
|
|
140
121
|
```bash
|
|
141
|
-
|
|
142
|
-
make py-publish # Upload to PyPI
|
|
143
|
-
make py-publish-test # Upload to TestPyPI
|
|
122
|
+
bun install
|
|
144
123
|
```
|
|
145
124
|
|
|
146
|
-
|
|
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:
|
|
125
|
+
#### Run
|
|
152
126
|
|
|
153
127
|
```bash
|
|
154
|
-
|
|
128
|
+
bun run src/main.ts
|
|
155
129
|
```
|
|
156
130
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
```bash
|
|
160
|
-
make check
|
|
161
|
-
```
|
|
131
|
+
Run it from the repo you want to manage (the current working directory is the target repo).
|
|
132
|
+
`agr.toml` is expected in that target repo for `agr add/remove/sync` operations.
|
|
162
133
|
|
|
163
|
-
|
|
134
|
+
### Run From Target Repo
|
|
164
135
|
|
|
165
136
|
```bash
|
|
166
|
-
|
|
167
|
-
|
|
137
|
+
cd /path/to/your/project
|
|
138
|
+
agr-tui
|
|
168
139
|
```
|
|
169
140
|
|
|
170
|
-
|
|
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
|
|
141
|
+
`agr-opentui` itself does not need to contain your target repo's `agr.toml`.
|
|
178
142
|
|
|
179
143
|
## Discover List (`skills.json`)
|
|
180
144
|
|
|
@@ -183,6 +147,8 @@ If `skills.json` exists, the `Discover` tab will list its entries. It supports:
|
|
|
183
147
|
- An array of strings or objects (`{ "label": "...", "handle": "...", "repo": "owner/repo" }`).
|
|
184
148
|
- An object with `source` metadata and `skills` array (see `skills.json` in this repo).
|
|
185
149
|
|
|
150
|
+
In this repository, `skills.json` is configured to source skills from `kasperjunge/agent-resources` (`agr.toml` on `main`).
|
|
151
|
+
|
|
186
152
|
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
153
|
|
|
188
154
|
## Troubleshooting
|
|
@@ -194,7 +160,6 @@ When a `source` is configured, the app checks the remote list periodically (abou
|
|
|
194
160
|
- `skills.json not found` or parse errors: fix the file format (array or `{ "source": ..., "skills": [...] }`).
|
|
195
161
|
- Discover list not updating: check the `source` URL/repo/branch/path and network access.
|
|
196
162
|
- `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
163
|
|
|
199
164
|
## Notes
|
|
200
165
|
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
OpenTUI
|
|
3
|
+
# OpenTUI for `agr` and `agrx`
|
|
4
|
+
|
|
5
|
+
An OpenTUI interface for the `agr`/`agrx` CLI: view configured skills, trigger `agr` actions and preview `SKILL.md`
|
|
6
|
+
|
|
7
|
+
[](https://pypi.org/project/agr-opentui/)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
`agr-opentui` is an OpenTUI front-end for `agr`/`agrx`.
|
|
15
|
+
The default discover source in this repo points to `https://github.com/kasperjunge/agent-resources`.
|
|
4
16
|
|
|
5
17
|
## Usage
|
|
6
18
|
|
|
@@ -60,98 +72,50 @@ Discover flow:
|
|
|
60
72
|
|
|
61
73
|
## Requirements
|
|
62
74
|
|
|
63
|
-
Runtime (using `agr-tui`):
|
|
75
|
+
### Runtime (using `agr-tui`):
|
|
64
76
|
- Python 3.10+
|
|
65
77
|
- `uv`
|
|
66
78
|
- `agr` + `agrx` on your `PATH`
|
|
67
79
|
|
|
68
|
-
Build/Development (working on this repo):
|
|
80
|
+
### Build/Development (working on this repo):
|
|
69
81
|
- Bun 1.3.8+
|
|
70
82
|
- Zig (required by OpenTUI build tooling)
|
|
71
83
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
bun install
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Run
|
|
84
|
+
#### Build
|
|
79
85
|
|
|
80
86
|
```bash
|
|
81
|
-
bun run
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Run it from the repo you want to manage (the current working directory is the target repo).
|
|
85
|
-
`agr.toml` is expected in that target repo for `agr add/remove/sync` operations.
|
|
86
|
-
|
|
87
|
-
### Run From Target Repo
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
cd /path/to/your/project
|
|
91
|
-
agr-tui
|
|
87
|
+
bun run build
|
|
92
88
|
```
|
|
93
|
-
|
|
94
|
-
`agr-opentui` itself does not need to contain your target repo's `agr.toml`.
|
|
95
|
-
|
|
96
|
-
## Build
|
|
97
|
-
|
|
89
|
+
or
|
|
98
90
|
```bash
|
|
99
|
-
|
|
91
|
+
make build
|
|
100
92
|
```
|
|
101
|
-
|
|
102
93
|
This creates `bin/agr-tui`.
|
|
103
94
|
|
|
104
|
-
## Publish to PyPI
|
|
105
|
-
|
|
106
|
-
One-time setup:
|
|
107
|
-
- Create a `pypi` environment in this GitHub repo.
|
|
108
|
-
- In your PyPI project settings, add this repo/workflow as a Trusted Publisher for `.github/workflows/publish-pypi.yml`.
|
|
109
|
-
- Optional: add `testpypi` environment and TestPyPI Trusted Publisher too.
|
|
110
95
|
|
|
111
|
-
|
|
112
|
-
- Release publish: creating a GitHub release triggers publish to PyPI.
|
|
113
|
-
- Manual: run `publish-pypi` workflow and choose `pypi` or `testpypi`.
|
|
114
|
-
|
|
115
|
-
Publish from local machine:
|
|
96
|
+
#### Install
|
|
116
97
|
|
|
117
98
|
```bash
|
|
118
|
-
|
|
119
|
-
make py-publish # Upload to PyPI
|
|
120
|
-
make py-publish-test # Upload to TestPyPI
|
|
99
|
+
bun install
|
|
121
100
|
```
|
|
122
101
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Update package version before creating a release:
|
|
126
|
-
|
|
127
|
-
1. Edit `pyproject.toml` and bump `[project].version`.
|
|
128
|
-
2. Regenerate `uv.lock` so the local package entry matches:
|
|
102
|
+
#### Run
|
|
129
103
|
|
|
130
104
|
```bash
|
|
131
|
-
|
|
105
|
+
bun run src/main.ts
|
|
132
106
|
```
|
|
133
107
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
make check
|
|
138
|
-
```
|
|
108
|
+
Run it from the repo you want to manage (the current working directory is the target repo).
|
|
109
|
+
`agr.toml` is expected in that target repo for `agr add/remove/sync` operations.
|
|
139
110
|
|
|
140
|
-
|
|
111
|
+
### Run From Target Repo
|
|
141
112
|
|
|
142
113
|
```bash
|
|
143
|
-
|
|
144
|
-
|
|
114
|
+
cd /path/to/your/project
|
|
115
|
+
agr-tui
|
|
145
116
|
```
|
|
146
117
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
`publish-pypi.yml` runs automatically when a release is published.
|
|
150
|
-
|
|
151
|
-
Alternative: use `.github/workflows/bump-version.yml` via **Actions → bump-version → Run workflow** and provide:
|
|
152
|
-
- `version` (required): target version like `0.3.0`
|
|
153
|
-
- `branch` (required): target branch to update (default `master`)
|
|
154
|
-
- `create_tag` (required, default enabled): creates/pushes tag `v<version>` and creates a GitHub Release
|
|
118
|
+
`agr-opentui` itself does not need to contain your target repo's `agr.toml`.
|
|
155
119
|
|
|
156
120
|
## Discover List (`skills.json`)
|
|
157
121
|
|
|
@@ -160,6 +124,8 @@ If `skills.json` exists, the `Discover` tab will list its entries. It supports:
|
|
|
160
124
|
- An array of strings or objects (`{ "label": "...", "handle": "...", "repo": "owner/repo" }`).
|
|
161
125
|
- An object with `source` metadata and `skills` array (see `skills.json` in this repo).
|
|
162
126
|
|
|
127
|
+
In this repository, `skills.json` is configured to source skills from `kasperjunge/agent-resources` (`agr.toml` on `main`).
|
|
128
|
+
|
|
163
129
|
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.
|
|
164
130
|
|
|
165
131
|
## Troubleshooting
|
|
@@ -171,7 +137,6 @@ When a `source` is configured, the app checks the remote list periodically (abou
|
|
|
171
137
|
- `skills.json not found` or parse errors: fix the file format (array or `{ "source": ..., "skills": [...] }`).
|
|
172
138
|
- Discover list not updating: check the `source` URL/repo/branch/path and network access.
|
|
173
139
|
- `SKILL.md` preview says “not found”: the skill may not ship a `SKILL.md` or the path is nonstandard.
|
|
174
|
-
- Copy to clipboard doesn’t work: install `pbcopy` (macOS), `wl-copy` (Wayland), or `xclip` (X11).
|
|
175
140
|
|
|
176
141
|
## Notes
|
|
177
142
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "agr-opentui"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.3.1"
|
|
4
4
|
description = "OpenTUI frontend for agr"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -19,7 +19,7 @@ classifiers = [
|
|
|
19
19
|
"Topic :: Software Development :: Build Tools",
|
|
20
20
|
"Topic :: Utilities",
|
|
21
21
|
]
|
|
22
|
-
requires-python = ">=3.14"
|
|
22
|
+
requires-python = ">=3.14.3"
|
|
23
23
|
dependencies = [
|
|
24
24
|
"agr>=0.7.4",
|
|
25
25
|
]
|
|
@@ -323,9 +323,12 @@ export function buildHelpLines(tab: "Skills" | "Discover"): string[] {
|
|
|
323
323
|
];
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
export function buildActionLines(
|
|
326
|
+
export function buildActionLines(
|
|
327
|
+
tab: "Skills" | "Discover",
|
|
328
|
+
options?: { updateAvailable?: boolean },
|
|
329
|
+
): string[] {
|
|
327
330
|
if (tab === "Skills") {
|
|
328
|
-
|
|
331
|
+
const lines = [
|
|
329
332
|
"f: filter list",
|
|
330
333
|
"p: pin selected",
|
|
331
334
|
"space: toggle select",
|
|
@@ -337,9 +340,6 @@ export function buildActionLines(tab: "Skills" | "Discover"): string[] {
|
|
|
337
340
|
"g: run",
|
|
338
341
|
"G: run options",
|
|
339
342
|
"u: check updates",
|
|
340
|
-
"U: apply update",
|
|
341
|
-
"s: apply (confirm)",
|
|
342
|
-
"S: apply + sync",
|
|
343
343
|
"a: add skill",
|
|
344
344
|
"d: doctor",
|
|
345
345
|
"T: test popup",
|
|
@@ -349,16 +349,18 @@ export function buildActionLines(tab: "Skills" | "Discover"): string[] {
|
|
|
349
349
|
"Arrow keys: move",
|
|
350
350
|
"q: quit",
|
|
351
351
|
];
|
|
352
|
+
if (options?.updateAvailable) {
|
|
353
|
+
lines.splice(11, 0, "U: apply update", "s: apply (confirm)", "S: apply + sync");
|
|
354
|
+
}
|
|
355
|
+
return lines;
|
|
352
356
|
}
|
|
353
357
|
return [
|
|
354
358
|
"f: filter list",
|
|
355
359
|
"p: pin selected",
|
|
356
360
|
"i: add selected",
|
|
357
|
-
"r: remove selected",
|
|
358
361
|
"z: undo last add/remove",
|
|
359
362
|
"L: run history",
|
|
360
363
|
"y: copy handle/repo",
|
|
361
|
-
"space: toggle select",
|
|
362
364
|
"a: add skill",
|
|
363
365
|
"d: doctor",
|
|
364
366
|
"T: test popup",
|
|
@@ -4,8 +4,9 @@ import { applyRows } from "../ui/rows_render";
|
|
|
4
4
|
export function renderActionsWithUi(input: {
|
|
5
5
|
tab: "Skills" | "Discover";
|
|
6
6
|
rowCount: number;
|
|
7
|
+
updateAvailable: boolean;
|
|
7
8
|
lines: Array<{ content: unknown; fg: unknown }>;
|
|
8
9
|
}): void {
|
|
9
|
-
const rows = buildActionRows({ tab: input.tab, rowCount: input.rowCount });
|
|
10
|
+
const rows = buildActionRows({ tab: input.tab, rowCount: input.rowCount, updateAvailable: input.updateAvailable });
|
|
10
11
|
applyRows(input.lines, rows);
|
|
11
12
|
}
|
|
@@ -166,8 +166,12 @@ export function buildDetailsRows(input: {
|
|
|
166
166
|
return rows;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
export function buildActionRows(input: {
|
|
170
|
-
|
|
169
|
+
export function buildActionRows(input: {
|
|
170
|
+
tab: "Skills" | "Discover";
|
|
171
|
+
rowCount: number;
|
|
172
|
+
updateAvailable?: boolean;
|
|
173
|
+
}): UiRow[] {
|
|
174
|
+
const lines = buildActionLines(input.tab, { updateAvailable: input.updateAvailable });
|
|
171
175
|
const rows: UiRow[] = [];
|
|
172
176
|
for (let i = 0; i < input.rowCount; i += 1) {
|
|
173
177
|
const content = lines[i] ?? "";
|
|
@@ -280,7 +284,11 @@ export function buildThreePaneSnapshot(input: {
|
|
|
280
284
|
rowCount: 12,
|
|
281
285
|
});
|
|
282
286
|
|
|
283
|
-
const actions = buildActionRows({
|
|
287
|
+
const actions = buildActionRows({
|
|
288
|
+
tab: input.tab,
|
|
289
|
+
rowCount: 12,
|
|
290
|
+
updateAvailable: false,
|
|
291
|
+
});
|
|
284
292
|
|
|
285
293
|
return {
|
|
286
294
|
list: list.rows.map((row) => row.content),
|
|
@@ -288,7 +288,7 @@ describe("integration smoke: mocked command run", () => {
|
|
|
288
288
|
|
|
289
289
|
describe("help/action line snapshots", () => {
|
|
290
290
|
test("skills action lines stay stable", () => {
|
|
291
|
-
expect(buildActionLines("Skills")).toEqual([
|
|
291
|
+
expect(buildActionLines("Skills", { updateAvailable: true })).toEqual([
|
|
292
292
|
"f: filter list",
|
|
293
293
|
"p: pin selected",
|
|
294
294
|
"space: toggle select",
|
|
@@ -314,6 +314,30 @@ describe("help/action line snapshots", () => {
|
|
|
314
314
|
]);
|
|
315
315
|
});
|
|
316
316
|
|
|
317
|
+
test("skills action lines hide apply actions when no update is available", () => {
|
|
318
|
+
expect(buildActionLines("Skills", { updateAvailable: false })).toEqual([
|
|
319
|
+
"f: filter list",
|
|
320
|
+
"p: pin selected",
|
|
321
|
+
"space: toggle select",
|
|
322
|
+
"i: install selected",
|
|
323
|
+
"r: remove selected",
|
|
324
|
+
"z: undo last add/remove",
|
|
325
|
+
"L: run history",
|
|
326
|
+
"v: show SKILL",
|
|
327
|
+
"g: run",
|
|
328
|
+
"G: run options",
|
|
329
|
+
"u: check updates",
|
|
330
|
+
"a: add skill",
|
|
331
|
+
"d: doctor",
|
|
332
|
+
"T: test popup",
|
|
333
|
+
"c: reload config",
|
|
334
|
+
"H: help",
|
|
335
|
+
"Tab: next panel",
|
|
336
|
+
"Arrow keys: move",
|
|
337
|
+
"q: quit",
|
|
338
|
+
]);
|
|
339
|
+
});
|
|
340
|
+
|
|
317
341
|
test("discover help lines stay stable", () => {
|
|
318
342
|
expect(buildHelpLines("Discover")).toEqual([
|
|
319
343
|
"Discover lists skills from skills.json.",
|
|
@@ -223,4 +223,15 @@ describe("runtime key handler", () => {
|
|
|
223
223
|
expect(calls.openRunHistory).toBe(1);
|
|
224
224
|
expect(calls.undoLastAction).toBe(1);
|
|
225
225
|
});
|
|
226
|
+
|
|
227
|
+
test("invalid action key on active tab is ignored without blocking next input", () => {
|
|
228
|
+
const { state, calls, handleKey } = createDeps();
|
|
229
|
+
state.tabIndex = 1; // Discover tab
|
|
230
|
+
|
|
231
|
+
expect(handleKey("r")).toBe(false);
|
|
232
|
+
expect(calls.enterInputMode).toHaveLength(0);
|
|
233
|
+
|
|
234
|
+
expect(handleKey("f")).toBe(true);
|
|
235
|
+
expect(calls.enterInputMode).toEqual([{ mode: "filter", seed: "" }]);
|
|
236
|
+
});
|
|
226
237
|
});
|
|
@@ -88,7 +88,7 @@ describe("three-pane render snapshots", () => {
|
|
|
88
88
|
selectedIndex: 1,
|
|
89
89
|
list: [" alpha - org/repo", "> alpha - org/other", ""],
|
|
90
90
|
details: ["Name: alpha", "Source: org/other", "Handle: org/other/alpha", "Repo: org/other", ""],
|
|
91
|
-
actions: ["f: filter list", "p: pin selected", "i: add selected", "
|
|
91
|
+
actions: ["f: filter list", "p: pin selected", "i: add selected", "z: undo last add/remove", "L: run history"],
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
version = 1
|
|
2
2
|
revision = 3
|
|
3
|
-
requires-python = ">=3.14"
|
|
3
|
+
requires-python = ">=3.14.3"
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "agr"
|
|
@@ -19,7 +19,7 @@ wheels = [
|
|
|
19
19
|
|
|
20
20
|
[[package]]
|
|
21
21
|
name = "agr-opentui"
|
|
22
|
-
version = "0.
|
|
22
|
+
version = "0.3.1"
|
|
23
23
|
source = { editable = "." }
|
|
24
24
|
dependencies = [
|
|
25
25
|
{ name = "agr" },
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|