workdash 0.2.0__tar.gz → 0.3.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.
- {workdash-0.2.0 → workdash-0.3.0}/PKG-INFO +102 -32
- {workdash-0.2.0 → workdash-0.3.0}/README.md +100 -31
- {workdash-0.2.0 → workdash-0.3.0}/pyproject.toml +2 -1
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/backend.py +41 -28
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/config.py +166 -8
- workdash-0.3.0/src/workdash/control.py +717 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/github_client.py +63 -93
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/launcher.py +238 -11
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/repo_worktree.py +173 -103
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/tui.py +143 -69
- workdash-0.3.0/src/workdash/workdash.py +727 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash.egg-info/PKG-INFO +102 -32
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash.egg-info/SOURCES.txt +2 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash.egg-info/requires.txt +1 -0
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_backend.py +154 -1
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_config.py +117 -17
- workdash-0.3.0/tests/test_control.py +171 -0
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_github_client.py +57 -0
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_launcher.py +308 -5
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_repo_worktree.py +389 -8
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_tui.py +470 -29
- workdash-0.3.0/tests/test_workdash.py +1325 -0
- workdash-0.2.0/src/workdash/workdash.py +0 -233
- workdash-0.2.0/tests/test_workdash.py +0 -321
- {workdash-0.2.0 → workdash-0.3.0}/LICENSE +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/setup.cfg +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/__init__.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/__main__.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/analysis_cache.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/analyzer.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/included_items.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/models.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/prompts/__init__.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/prompts/analyze_issue.txt +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/prompts/analyze_pr.txt +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/prompts/launch_issue.txt +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/prompts/launch_pr.txt +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/prompts/launch_review.txt +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash/repo_resolver.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash.egg-info/dependency_links.txt +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash.egg-info/entry_points.txt +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/src/workdash.egg-info/top_level.txt +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_analysis_cache.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_analyzer.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_included_items.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_normalization.py +0 -0
- {workdash-0.2.0 → workdash-0.3.0}/tests/test_repo_resolver.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: workdash
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Text-based GitHub work triage dashboard.
|
|
5
5
|
Author-email: Alessandro Molina <alessandro@molina.fyi>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -698,6 +698,7 @@ Requires-Python: >=3.12
|
|
|
698
698
|
Description-Content-Type: text/markdown
|
|
699
699
|
License-File: LICENSE
|
|
700
700
|
Requires-Dist: markdown>=3.6
|
|
701
|
+
Requires-Dist: TurboGears2>=2.5.0
|
|
701
702
|
Requires-Dist: textual>=0.58
|
|
702
703
|
Provides-Extra: test
|
|
703
704
|
Requires-Dist: pytest>=8; extra == "test"
|
|
@@ -724,27 +725,18 @@ been tested on Windows.
|
|
|
724
725
|
## Requirements
|
|
725
726
|
|
|
726
727
|
- Python `>=3.12`.
|
|
727
|
-
- [`gh`](https://cli.github.com/)
|
|
728
|
-
|
|
729
|
-
when none is available, it installs a local copy under
|
|
730
|
-
`~/.config/workdash/` from <https://github.com/cli/cli/releases/latest>.
|
|
731
|
-
The authenticated account should have access to the repositories you want to
|
|
732
|
-
track; if GitHub requires additional repository authorization for a repository
|
|
733
|
-
while loading a specific work source, `workdash` warns, skips that inaccessible
|
|
734
|
-
repository or item, and still loads the others.
|
|
728
|
+
- Authenticated [`gh`](https://cli.github.com/) for GitHub access.
|
|
729
|
+
`workdash --configure` installs a local copy when `gh` is not available.
|
|
735
730
|
- `xdg-open` or `open` for opening links and rendered analyses in your browser.
|
|
736
731
|
- `zellij` for the interactive dashboard, terminal panes, and agent sessions.
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
one is available, otherwise uses the local configured copy, starts a fresh
|
|
741
|
-
`workdash-<random>` session, and runs the dashboard inside it.
|
|
742
|
-
- On every startup, `workdash` prefers your global GitHub CLI when one is
|
|
743
|
-
available, otherwise uses the local configured copy.
|
|
732
|
+
`workdash --configure` installs a local copy when `zellij` is not available.
|
|
733
|
+
- Global `gh` and `zellij` binaries are preferred; configured local copies are
|
|
734
|
+
used as fallbacks.
|
|
744
735
|
- Optional, depending on which actions you use from the TUI:
|
|
745
736
|
- `claude` — to analyze or launch a Claude coding session.
|
|
746
737
|
- `codex` — to analyze or launch a ChatGPT Codex session.
|
|
747
738
|
- `code` — to launch a VSCode + Copilot coding session.
|
|
739
|
+
- `pi` — to launch a pi coding agent session.
|
|
748
740
|
|
|
749
741
|
## Installation
|
|
750
742
|
|
|
@@ -799,15 +791,23 @@ Launch the TUI:
|
|
|
799
791
|
workdash
|
|
800
792
|
```
|
|
801
793
|
|
|
802
|
-
Useful flags:
|
|
794
|
+
Useful commands and flags:
|
|
803
795
|
|
|
804
796
|
```bash
|
|
805
|
-
workdash --
|
|
806
|
-
workdash
|
|
807
|
-
workdash --
|
|
808
|
-
workdash --
|
|
809
|
-
workdash --
|
|
810
|
-
workdash --
|
|
797
|
+
workdash --server # start the TUI plus localhost JSON control API
|
|
798
|
+
workdash list # list server-backed dashboard items as plain text
|
|
799
|
+
workdash list --refresh # ask the server to refresh items before listing
|
|
800
|
+
workdash list --json # list items as machine-readable JSON
|
|
801
|
+
workdash info [--all] [--json] # report live Workdash-owned Zellij panes
|
|
802
|
+
workdash analyze ITEM [--agent NAME] [--json] # analyze a current server item
|
|
803
|
+
workdash code ITEM [--agent NAME] [--json] # launch a terminal-backed coding agent
|
|
804
|
+
workdash read PANE_ID [--full] [--json] # read text from a live pane
|
|
805
|
+
workdash write PANE_ID TEXT [--raw] [--json] # send text to a live pane
|
|
806
|
+
workdash show-config [--json] # show configured agents and fixed server address
|
|
807
|
+
workdash --debug # verbose logging
|
|
808
|
+
workdash --configure # run the interactive setup wizard
|
|
809
|
+
workdash --direct # start without the automatic Zellij wrapper
|
|
810
|
+
workdash --version # print version and exit
|
|
811
811
|
```
|
|
812
812
|
|
|
813
813
|
## What gets shown
|
|
@@ -838,7 +838,7 @@ The `repositories` list in `config.json` accepts:
|
|
|
838
838
|
(if any), or run a fresh analysis with Claude or Codex. Fresh analyses are
|
|
839
839
|
cached and rendered as HTML in your browser.
|
|
840
840
|
- `c` — launch a coding session on the selected item. Opens a dialog to pick
|
|
841
|
-
Claude, Codex,
|
|
841
|
+
Claude, Codex, VSCode Copilot, or pi. `workdash` prepares a dedicated git
|
|
842
842
|
worktree for the item and starts the chosen tool in it, preloaded with
|
|
843
843
|
context about the issue or PR.
|
|
844
844
|
- `t` — open a terminal in the selected item's worktree (no agent launched).
|
|
@@ -851,24 +851,93 @@ configured `workdir`. Each tracked repository gets a local clone, and each work
|
|
|
851
851
|
item gets its own worktree alongside it, so you can hop between items without
|
|
852
852
|
disturbing other in-progress work.
|
|
853
853
|
|
|
854
|
-
##
|
|
854
|
+
## Local control server
|
|
855
855
|
|
|
856
|
-
|
|
856
|
+
`workdash --server` starts the normal TUI and a localhost JSON control API in the
|
|
857
|
+
same process. V0 listens on `127.0.0.1:8765`, accepts JSON only, and stops when
|
|
858
|
+
the TUI exits. Client commands such as `list`, `info`, `analyze`, `code`,
|
|
859
|
+
`read`, and `write` connect to this server instead of loading GitHub or Zellij
|
|
860
|
+
state themselves.
|
|
861
|
+
|
|
862
|
+
## List command
|
|
863
|
+
|
|
864
|
+
`workdash list` requires a running `workdash --server` session and emits one row
|
|
865
|
+
per server-known item, sorted by last update (most recent first):
|
|
857
866
|
|
|
858
867
|
```
|
|
859
|
-
TYPE repo#
|
|
868
|
+
TYPE repo#TYPE-N YYYY-MM-DD title
|
|
860
869
|
```
|
|
861
870
|
|
|
862
|
-
`TYPE` is `ISSUE`, `PR`, or `REVIEW` (for review-requested PRs). The
|
|
871
|
+
`TYPE` is `ISSUE`, `PR`, or `REVIEW` (for review-requested PRs). The row ID is
|
|
872
|
+
copy/paste-friendly: `repo#ISSUE-N`, `repo#PR-N`, or `repo#REVIEW-N`. The suggested
|
|
863
873
|
item's title is prefixed with `* `. If nothing matches, the output is
|
|
864
874
|
`No work items found.`.
|
|
865
875
|
|
|
876
|
+
Use `workdash list --refresh` to ask the server to refresh GitHub data before
|
|
877
|
+
listing. Use `workdash list --json` to emit the same list as JSON records with
|
|
878
|
+
item ID, type, kind, repository, number, title, URL, timestamps, and suggested
|
|
879
|
+
status.
|
|
880
|
+
|
|
881
|
+
## Info command
|
|
882
|
+
|
|
883
|
+
`workdash info [--json]` requires a running `workdash --server` session and
|
|
884
|
+
reports live Workdash-owned Zellij panes for terminal-backed work actions,
|
|
885
|
+
including pane title, cwd, command, tab, state, and mapped Workdash item. It maps
|
|
886
|
+
each live pane's current working directory to the matching Workdash item ID when
|
|
887
|
+
the pane is inside a known worktree, or reports `unknown` when no mapping is
|
|
888
|
+
known. Add `--all` to include other live non-plugin panes from the server-backed
|
|
889
|
+
Workdash session as `kind=unknown` with unknown item mapping.
|
|
890
|
+
|
|
891
|
+
## Analyze command
|
|
892
|
+
|
|
893
|
+
`workdash analyze ITEM [--agent NAME] [--json]` requires a running
|
|
894
|
+
`workdash --server` session and analyzes a current server-known Workdash item.
|
|
895
|
+
`ITEM` can be a row ID from `workdash list` (such as `owner/repo#ISSUE-123`) or a
|
|
896
|
+
GitHub issue/PR URL that is already in the current dashboard data. It reuses a
|
|
897
|
+
fresh cached analysis when available, otherwise the server prepares the item's
|
|
898
|
+
worktree and runs the selected configured analysis agent.
|
|
899
|
+
|
|
900
|
+
The server analyze response includes `content_type` (`text/markdown`), `file_name`,
|
|
901
|
+
and base64 `file_content` so clients do not need filesystem access to the server
|
|
902
|
+
cache. The CLI writes that content to a secure temporary local file and reports it
|
|
903
|
+
as `analysis_path`. `--json` emits the same client-side result without the raw
|
|
904
|
+
base64 content.
|
|
905
|
+
|
|
906
|
+
## Code command
|
|
907
|
+
|
|
908
|
+
`workdash code ITEM [--agent NAME] [--json]` requires a running
|
|
909
|
+
`workdash --server` session and launches a configured terminal-backed coding
|
|
910
|
+
agent (`claude`, `codex`, or `pi`) for a current server-known Workdash item.
|
|
911
|
+
`ITEM` accepts the same row IDs and GitHub URLs as `workdash analyze`.
|
|
912
|
+
|
|
913
|
+
Human output reports the item, agent, selected session, cwd, pane title, and pane
|
|
914
|
+
id when available. `--json` emits the same result as machine-readable JSON.
|
|
915
|
+
|
|
916
|
+
## Read and write commands
|
|
917
|
+
|
|
918
|
+
`workdash read PANE_ID [--full] [--json]` requires a running `workdash --server`
|
|
919
|
+
session and reads pane text through the server-backed pane content API. Human
|
|
920
|
+
output prints the pane text directly. Add `--full` to request full scrollback.
|
|
921
|
+
|
|
922
|
+
`workdash write PANE_ID TEXT [--raw] [--json]` requires a running
|
|
923
|
+
`workdash --server` session and sends pane input through the server-backed pane
|
|
924
|
+
send API. By default Workdash appends Enter; `--raw` or `--no-enter` sends the
|
|
925
|
+
text exactly. Human output confirms that the pane accepted the input.
|
|
926
|
+
|
|
927
|
+
## Show-config command
|
|
928
|
+
|
|
929
|
+
`workdash show-config [--json]` reports configured analysis agents, configured
|
|
930
|
+
terminal-backed coding agents, and the fixed V0 server address. It does not
|
|
931
|
+
require a running server. The same information is also available from the JSON
|
|
932
|
+
API for HTTP clients.
|
|
933
|
+
|
|
866
934
|
## Analysis cache
|
|
867
935
|
|
|
868
|
-
Analyses produced with `a` are cached under
|
|
869
|
-
re-opening an item is instant. The cache is
|
|
936
|
+
Analyses produced with `a` or `workdash analyze` are cached under
|
|
937
|
+
`~/.config/workdash/cache/` so that re-opening an item is instant. The cache is
|
|
938
|
+
keyed by the item's GitHub
|
|
870
939
|
`updated_at` timestamp, so any change on GitHub automatically invalidates the
|
|
871
|
-
cached analysis and the next
|
|
940
|
+
cached analysis and the next analyze action will re-run it.
|
|
872
941
|
|
|
873
942
|
## Product behavior
|
|
874
943
|
|
|
@@ -876,7 +945,8 @@ Canonical product behavior is described in [`features/`](features/).
|
|
|
876
945
|
|
|
877
946
|
The `.feature` files are the source of truth for what the software does. They are product specifications first and executable BDD scenarios second.
|
|
878
947
|
|
|
879
|
-
Implementation progress can be tracked separately
|
|
948
|
+
Implementation progress can be tracked separately.
|
|
949
|
+
BDD is the integration point between humans and agents collaborating on the project as Workdash relied hevily on agents during its initial development cycle.
|
|
880
950
|
|
|
881
951
|
### BDD-first development (mandatory)
|
|
882
952
|
|
|
@@ -18,27 +18,18 @@ been tested on Windows.
|
|
|
18
18
|
## Requirements
|
|
19
19
|
|
|
20
20
|
- Python `>=3.12`.
|
|
21
|
-
- [`gh`](https://cli.github.com/)
|
|
22
|
-
|
|
23
|
-
when none is available, it installs a local copy under
|
|
24
|
-
`~/.config/workdash/` from <https://github.com/cli/cli/releases/latest>.
|
|
25
|
-
The authenticated account should have access to the repositories you want to
|
|
26
|
-
track; if GitHub requires additional repository authorization for a repository
|
|
27
|
-
while loading a specific work source, `workdash` warns, skips that inaccessible
|
|
28
|
-
repository or item, and still loads the others.
|
|
21
|
+
- Authenticated [`gh`](https://cli.github.com/) for GitHub access.
|
|
22
|
+
`workdash --configure` installs a local copy when `gh` is not available.
|
|
29
23
|
- `xdg-open` or `open` for opening links and rendered analyses in your browser.
|
|
30
24
|
- `zellij` for the interactive dashboard, terminal panes, and agent sessions.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
one is available, otherwise uses the local configured copy, starts a fresh
|
|
35
|
-
`workdash-<random>` session, and runs the dashboard inside it.
|
|
36
|
-
- On every startup, `workdash` prefers your global GitHub CLI when one is
|
|
37
|
-
available, otherwise uses the local configured copy.
|
|
25
|
+
`workdash --configure` installs a local copy when `zellij` is not available.
|
|
26
|
+
- Global `gh` and `zellij` binaries are preferred; configured local copies are
|
|
27
|
+
used as fallbacks.
|
|
38
28
|
- Optional, depending on which actions you use from the TUI:
|
|
39
29
|
- `claude` — to analyze or launch a Claude coding session.
|
|
40
30
|
- `codex` — to analyze or launch a ChatGPT Codex session.
|
|
41
31
|
- `code` — to launch a VSCode + Copilot coding session.
|
|
32
|
+
- `pi` — to launch a pi coding agent session.
|
|
42
33
|
|
|
43
34
|
## Installation
|
|
44
35
|
|
|
@@ -93,15 +84,23 @@ Launch the TUI:
|
|
|
93
84
|
workdash
|
|
94
85
|
```
|
|
95
86
|
|
|
96
|
-
Useful flags:
|
|
87
|
+
Useful commands and flags:
|
|
97
88
|
|
|
98
89
|
```bash
|
|
99
|
-
workdash --
|
|
100
|
-
workdash
|
|
101
|
-
workdash --
|
|
102
|
-
workdash --
|
|
103
|
-
workdash --
|
|
104
|
-
workdash --
|
|
90
|
+
workdash --server # start the TUI plus localhost JSON control API
|
|
91
|
+
workdash list # list server-backed dashboard items as plain text
|
|
92
|
+
workdash list --refresh # ask the server to refresh items before listing
|
|
93
|
+
workdash list --json # list items as machine-readable JSON
|
|
94
|
+
workdash info [--all] [--json] # report live Workdash-owned Zellij panes
|
|
95
|
+
workdash analyze ITEM [--agent NAME] [--json] # analyze a current server item
|
|
96
|
+
workdash code ITEM [--agent NAME] [--json] # launch a terminal-backed coding agent
|
|
97
|
+
workdash read PANE_ID [--full] [--json] # read text from a live pane
|
|
98
|
+
workdash write PANE_ID TEXT [--raw] [--json] # send text to a live pane
|
|
99
|
+
workdash show-config [--json] # show configured agents and fixed server address
|
|
100
|
+
workdash --debug # verbose logging
|
|
101
|
+
workdash --configure # run the interactive setup wizard
|
|
102
|
+
workdash --direct # start without the automatic Zellij wrapper
|
|
103
|
+
workdash --version # print version and exit
|
|
105
104
|
```
|
|
106
105
|
|
|
107
106
|
## What gets shown
|
|
@@ -132,7 +131,7 @@ The `repositories` list in `config.json` accepts:
|
|
|
132
131
|
(if any), or run a fresh analysis with Claude or Codex. Fresh analyses are
|
|
133
132
|
cached and rendered as HTML in your browser.
|
|
134
133
|
- `c` — launch a coding session on the selected item. Opens a dialog to pick
|
|
135
|
-
Claude, Codex,
|
|
134
|
+
Claude, Codex, VSCode Copilot, or pi. `workdash` prepares a dedicated git
|
|
136
135
|
worktree for the item and starts the chosen tool in it, preloaded with
|
|
137
136
|
context about the issue or PR.
|
|
138
137
|
- `t` — open a terminal in the selected item's worktree (no agent launched).
|
|
@@ -145,24 +144,93 @@ configured `workdir`. Each tracked repository gets a local clone, and each work
|
|
|
145
144
|
item gets its own worktree alongside it, so you can hop between items without
|
|
146
145
|
disturbing other in-progress work.
|
|
147
146
|
|
|
148
|
-
##
|
|
147
|
+
## Local control server
|
|
149
148
|
|
|
150
|
-
|
|
149
|
+
`workdash --server` starts the normal TUI and a localhost JSON control API in the
|
|
150
|
+
same process. V0 listens on `127.0.0.1:8765`, accepts JSON only, and stops when
|
|
151
|
+
the TUI exits. Client commands such as `list`, `info`, `analyze`, `code`,
|
|
152
|
+
`read`, and `write` connect to this server instead of loading GitHub or Zellij
|
|
153
|
+
state themselves.
|
|
154
|
+
|
|
155
|
+
## List command
|
|
156
|
+
|
|
157
|
+
`workdash list` requires a running `workdash --server` session and emits one row
|
|
158
|
+
per server-known item, sorted by last update (most recent first):
|
|
151
159
|
|
|
152
160
|
```
|
|
153
|
-
TYPE repo#
|
|
161
|
+
TYPE repo#TYPE-N YYYY-MM-DD title
|
|
154
162
|
```
|
|
155
163
|
|
|
156
|
-
`TYPE` is `ISSUE`, `PR`, or `REVIEW` (for review-requested PRs). The
|
|
164
|
+
`TYPE` is `ISSUE`, `PR`, or `REVIEW` (for review-requested PRs). The row ID is
|
|
165
|
+
copy/paste-friendly: `repo#ISSUE-N`, `repo#PR-N`, or `repo#REVIEW-N`. The suggested
|
|
157
166
|
item's title is prefixed with `* `. If nothing matches, the output is
|
|
158
167
|
`No work items found.`.
|
|
159
168
|
|
|
169
|
+
Use `workdash list --refresh` to ask the server to refresh GitHub data before
|
|
170
|
+
listing. Use `workdash list --json` to emit the same list as JSON records with
|
|
171
|
+
item ID, type, kind, repository, number, title, URL, timestamps, and suggested
|
|
172
|
+
status.
|
|
173
|
+
|
|
174
|
+
## Info command
|
|
175
|
+
|
|
176
|
+
`workdash info [--json]` requires a running `workdash --server` session and
|
|
177
|
+
reports live Workdash-owned Zellij panes for terminal-backed work actions,
|
|
178
|
+
including pane title, cwd, command, tab, state, and mapped Workdash item. It maps
|
|
179
|
+
each live pane's current working directory to the matching Workdash item ID when
|
|
180
|
+
the pane is inside a known worktree, or reports `unknown` when no mapping is
|
|
181
|
+
known. Add `--all` to include other live non-plugin panes from the server-backed
|
|
182
|
+
Workdash session as `kind=unknown` with unknown item mapping.
|
|
183
|
+
|
|
184
|
+
## Analyze command
|
|
185
|
+
|
|
186
|
+
`workdash analyze ITEM [--agent NAME] [--json]` requires a running
|
|
187
|
+
`workdash --server` session and analyzes a current server-known Workdash item.
|
|
188
|
+
`ITEM` can be a row ID from `workdash list` (such as `owner/repo#ISSUE-123`) or a
|
|
189
|
+
GitHub issue/PR URL that is already in the current dashboard data. It reuses a
|
|
190
|
+
fresh cached analysis when available, otherwise the server prepares the item's
|
|
191
|
+
worktree and runs the selected configured analysis agent.
|
|
192
|
+
|
|
193
|
+
The server analyze response includes `content_type` (`text/markdown`), `file_name`,
|
|
194
|
+
and base64 `file_content` so clients do not need filesystem access to the server
|
|
195
|
+
cache. The CLI writes that content to a secure temporary local file and reports it
|
|
196
|
+
as `analysis_path`. `--json` emits the same client-side result without the raw
|
|
197
|
+
base64 content.
|
|
198
|
+
|
|
199
|
+
## Code command
|
|
200
|
+
|
|
201
|
+
`workdash code ITEM [--agent NAME] [--json]` requires a running
|
|
202
|
+
`workdash --server` session and launches a configured terminal-backed coding
|
|
203
|
+
agent (`claude`, `codex`, or `pi`) for a current server-known Workdash item.
|
|
204
|
+
`ITEM` accepts the same row IDs and GitHub URLs as `workdash analyze`.
|
|
205
|
+
|
|
206
|
+
Human output reports the item, agent, selected session, cwd, pane title, and pane
|
|
207
|
+
id when available. `--json` emits the same result as machine-readable JSON.
|
|
208
|
+
|
|
209
|
+
## Read and write commands
|
|
210
|
+
|
|
211
|
+
`workdash read PANE_ID [--full] [--json]` requires a running `workdash --server`
|
|
212
|
+
session and reads pane text through the server-backed pane content API. Human
|
|
213
|
+
output prints the pane text directly. Add `--full` to request full scrollback.
|
|
214
|
+
|
|
215
|
+
`workdash write PANE_ID TEXT [--raw] [--json]` requires a running
|
|
216
|
+
`workdash --server` session and sends pane input through the server-backed pane
|
|
217
|
+
send API. By default Workdash appends Enter; `--raw` or `--no-enter` sends the
|
|
218
|
+
text exactly. Human output confirms that the pane accepted the input.
|
|
219
|
+
|
|
220
|
+
## Show-config command
|
|
221
|
+
|
|
222
|
+
`workdash show-config [--json]` reports configured analysis agents, configured
|
|
223
|
+
terminal-backed coding agents, and the fixed V0 server address. It does not
|
|
224
|
+
require a running server. The same information is also available from the JSON
|
|
225
|
+
API for HTTP clients.
|
|
226
|
+
|
|
160
227
|
## Analysis cache
|
|
161
228
|
|
|
162
|
-
Analyses produced with `a` are cached under
|
|
163
|
-
re-opening an item is instant. The cache is
|
|
229
|
+
Analyses produced with `a` or `workdash analyze` are cached under
|
|
230
|
+
`~/.config/workdash/cache/` so that re-opening an item is instant. The cache is
|
|
231
|
+
keyed by the item's GitHub
|
|
164
232
|
`updated_at` timestamp, so any change on GitHub automatically invalidates the
|
|
165
|
-
cached analysis and the next
|
|
233
|
+
cached analysis and the next analyze action will re-run it.
|
|
166
234
|
|
|
167
235
|
## Product behavior
|
|
168
236
|
|
|
@@ -170,7 +238,8 @@ Canonical product behavior is described in [`features/`](features/).
|
|
|
170
238
|
|
|
171
239
|
The `.feature` files are the source of truth for what the software does. They are product specifications first and executable BDD scenarios second.
|
|
172
240
|
|
|
173
|
-
Implementation progress can be tracked separately
|
|
241
|
+
Implementation progress can be tracked separately.
|
|
242
|
+
BDD is the integration point between humans and agents collaborating on the project as Workdash relied hevily on agents during its initial development cycle.
|
|
174
243
|
|
|
175
244
|
### BDD-first development (mandatory)
|
|
176
245
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "workdash"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.0"
|
|
8
8
|
description = "Text-based GitHub work triage dashboard."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -29,6 +29,7 @@ classifiers = [
|
|
|
29
29
|
]
|
|
30
30
|
dependencies = [
|
|
31
31
|
"markdown>=3.6",
|
|
32
|
+
"TurboGears2>=2.5.0",
|
|
32
33
|
"textual>=0.58",
|
|
33
34
|
]
|
|
34
35
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
import shlex
|
|
6
5
|
from collections.abc import Callable
|
|
6
|
+
from concurrent.futures import ThreadPoolExecutor
|
|
7
7
|
from dataclasses import dataclass
|
|
8
8
|
from pathlib import Path
|
|
9
9
|
|
|
@@ -106,28 +106,43 @@ class WorkdashBackend:
|
|
|
106
106
|
for repository in repositories:
|
|
107
107
|
report_progress(f" - {repository}")
|
|
108
108
|
github_username = self.config.github_username
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
109
|
+
with ThreadPoolExecutor(max_workers=5) as executor:
|
|
110
|
+
report_progress("Fetching open authored pull requests...")
|
|
111
|
+
authored_future = executor.submit(
|
|
112
|
+
self.github_client.list_open_authored_prs, github_username
|
|
113
|
+
)
|
|
114
|
+
report_progress("Fetching open review-requested pull requests...")
|
|
115
|
+
review_requested_future = executor.submit(
|
|
116
|
+
self.github_client.list_open_review_requested_prs,
|
|
117
|
+
github_username,
|
|
118
|
+
progress_callback=report_progress,
|
|
119
|
+
)
|
|
120
|
+
report_progress("Fetching open reviewed pull requests...")
|
|
121
|
+
reviewed_future = executor.submit(
|
|
122
|
+
self.github_client.list_open_reviewed_prs, github_username
|
|
123
|
+
)
|
|
124
|
+
report_progress("Fetching open assigned issues...")
|
|
125
|
+
assigned_future = executor.submit(
|
|
126
|
+
self.github_client.list_open_assigned_issues, github_username
|
|
127
|
+
)
|
|
128
|
+
report_progress("Fetching tracked issues and pull requests...")
|
|
129
|
+
tracked_future = executor.submit(
|
|
130
|
+
self.github_client.list_recent_tracked_items,
|
|
131
|
+
repositories,
|
|
132
|
+
progress_callback=report_progress,
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
authored_pull_requests = authored_future.result()
|
|
136
|
+
report_progress(f"Fetched {len(authored_pull_requests)} open authored pull request(s).")
|
|
137
|
+
review_requested_pull_requests = review_requested_future.result()
|
|
138
|
+
report_progress(
|
|
139
|
+
f"Fetched {len(review_requested_pull_requests)} open review-requested pull request(s)."
|
|
140
|
+
)
|
|
141
|
+
reviewed_pull_requests = reviewed_future.result()
|
|
142
|
+
report_progress(f"Fetched {len(reviewed_pull_requests)} open reviewed pull request(s).")
|
|
143
|
+
assigned_issues = assigned_future.result()
|
|
144
|
+
report_progress(f"Fetched {len(assigned_issues)} open assigned issue(s).")
|
|
145
|
+
recent_tracked_items = tracked_future.result()
|
|
131
146
|
merged_review_items = merge_normalized_work_items(
|
|
132
147
|
normalize_review_requested_pull_requests(review_requested_pull_requests),
|
|
133
148
|
normalize_review_requested_pull_requests(reviewed_pull_requests),
|
|
@@ -220,10 +235,8 @@ class WorkdashBackend:
|
|
|
220
235
|
self.included_items_store.add(parsed.canonical_url)
|
|
221
236
|
return IncludeResult(fetched_item=item)
|
|
222
237
|
|
|
223
|
-
def
|
|
224
|
-
|
|
225
|
-
return shlex.split(self.config.claude.analyze)
|
|
226
|
-
return shlex.split(self.config.codex.analyze)
|
|
238
|
+
def resolve_analyze_command_tokens(self, tool: str) -> list[str]:
|
|
239
|
+
return self.config.analyze_agent_command_tokens(tool)
|
|
227
240
|
|
|
228
241
|
def analyze_item(self, item: WorkItem, tool: str = "codex") -> str | None:
|
|
229
242
|
"""Generate or retrieve analysis, returning the markdown file path.
|
|
@@ -238,7 +251,7 @@ class WorkdashBackend:
|
|
|
238
251
|
item.analysis = cached_analysis
|
|
239
252
|
return str(self.analysis_cache.build_analysis_path(item))
|
|
240
253
|
return None
|
|
241
|
-
command_tokens = self.
|
|
254
|
+
command_tokens = self.resolve_analyze_command_tokens(tool)
|
|
242
255
|
analysis_content = self.analyzer.analyze(item, command_tokens=command_tokens)
|
|
243
256
|
if analysis_content is None:
|
|
244
257
|
return None
|