wakechart 0.2.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.
- wakechart-0.2.0/LICENSE +21 -0
- wakechart-0.2.0/PKG-INFO +201 -0
- wakechart-0.2.0/README.md +183 -0
- wakechart-0.2.0/pyproject.toml +33 -0
- wakechart-0.2.0/setup.cfg +4 -0
- wakechart-0.2.0/src/wakechart/__init__.py +2 -0
- wakechart-0.2.0/src/wakechart/__main__.py +5 -0
- wakechart-0.2.0/src/wakechart/cli.py +668 -0
- wakechart-0.2.0/src/wakechart/prompts/AGENT.md +41 -0
- wakechart-0.2.0/src/wakechart/prompts/NEW_PROJECT.md +15 -0
- wakechart-0.2.0/src/wakechart/schema/roadmap.schema.json +246 -0
- wakechart-0.2.0/src/wakechart/templates/project.json +64 -0
- wakechart-0.2.0/src/wakechart/templates/roadmap.json +41 -0
- wakechart-0.2.0/src/wakechart/viewer/template.html +858 -0
- wakechart-0.2.0/src/wakechart.egg-info/PKG-INFO +201 -0
- wakechart-0.2.0/src/wakechart.egg-info/SOURCES.txt +18 -0
- wakechart-0.2.0/src/wakechart.egg-info/dependency_links.txt +1 -0
- wakechart-0.2.0/src/wakechart.egg-info/entry_points.txt +2 -0
- wakechart-0.2.0/src/wakechart.egg-info/top_level.txt +1 -0
- wakechart-0.2.0/tests/test_cli.py +532 -0
wakechart-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alex Pérez
|
|
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.
|
wakechart-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: wakechart
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Phase roadmaps reconstructed from git history, with an interactive Gantt viewer that AI agents keep up to date.
|
|
5
|
+
Author: Alex Pérez
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/AlexPerez7/wakechart
|
|
8
|
+
Project-URL: Issues, https://github.com/AlexPerez7/wakechart/issues
|
|
9
|
+
Keywords: roadmap,gantt,git,planning,ai-agents,claude-code,codex
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
14
|
+
Requires-Python: >=3.9
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# wakechart
|
|
20
|
+
|
|
21
|
+
**Phase roadmaps reconstructed from git history, with an interactive Gantt chart that your AI agent keeps up to date.**
|
|
22
|
+
|
|
23
|
+
[Español](README.es.md) · [Live demo](https://alexperez7.github.io/wakechart/) (wakechart's own roadmap)
|
|
24
|
+
|
|
25
|
+
wakechart reads a repository's commits, tags and branches, and an AI agent (Claude Code, Codex, Gemini CLI, or you by hand) groups them into phases and deliverables in one JSON file. wakechart then builds a single self-contained HTML page:
|
|
26
|
+
|
|
27
|
+
- **Gantt chart** with 6 h / 1 day / 3 days / 1 week / 1 month scales, collapsible phases, a *Now* marker, search and filters.
|
|
28
|
+
- **Deliverables with IDs** (`T001`…) and a detail view: scope, acceptance criteria, verification, dependencies, dates, commits, and lines changed per discipline.
|
|
29
|
+
- **Teams, Versions (git tags) and Notes** views. English and Spanish interface.
|
|
30
|
+
- **Honest dates.** Every date says where it comes from: a *real* commit timestamp, an interval *reconstructed* from commit sessions (not effort), an *AI estimate* for planned work, or *unknown*.
|
|
31
|
+
- **Incremental.** New commits that match no deliverable are listed as *unclassified* for the agent to sort out.
|
|
32
|
+
- **No dependencies.** Python 3.9+ standard library and `git`. The target repository is only read.
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
pipx install git+https://github.com/AlexPerez7/wakechart
|
|
40
|
+
# or: pip install git+https://github.com/AlexPerez7/wakechart
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Quick start
|
|
44
|
+
|
|
45
|
+
**A separate workspace for all your projects** (keeps the roadmaps out of the repositories):
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
mkdir roadmaps && cd roadmaps
|
|
49
|
+
wakechart new my-app ../my-app --lang en
|
|
50
|
+
wakechart all my-app # dist/my-app.html
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Inside the repository** (good for GitHub Pages):
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
cd my-app
|
|
57
|
+
wakechart init
|
|
58
|
+
wakechart -w .wakechart all
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
At first every commit sits in one "Unsorted history" deliverable. Ask your agent to write the real roadmap:
|
|
62
|
+
|
|
63
|
+
> Write the wakechart roadmap of this project. Run `wakechart prompt new` and follow it.
|
|
64
|
+
|
|
65
|
+
and after each work session:
|
|
66
|
+
|
|
67
|
+
> Update the wakechart roadmap. Run `wakechart prompt agent` and follow it.
|
|
68
|
+
|
|
69
|
+
## Sample roadmap
|
|
70
|
+
|
|
71
|
+
Try the included roadmap for [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife). It groups three commits into two phases and pins the Git history to a known revision, so strict builds stay reproducible.
|
|
72
|
+
|
|
73
|
+
From a wakechart checkout, with wakechart installed, run these commands in a POSIX shell or Git Bash.
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
git clone https://github.com/octocat/Spoon-Knife.git ../Spoon-Knife
|
|
77
|
+
cp -R docs/spoon-knife ../spoon-knife-roadmap
|
|
78
|
+
wakechart -w ../spoon-knife-roadmap all --strict
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Open `../spoon-knife-roadmap/dist/spoon-knife.html#T002` in a browser to see the stylesheet deliverable.
|
|
82
|
+
|
|
83
|
+

|
|
84
|
+
|
|
85
|
+
## Commands
|
|
86
|
+
|
|
87
|
+
| Command | What it does |
|
|
88
|
+
|---|---|
|
|
89
|
+
| `wakechart new <id> <repo>` | Create `projects/<id>/` for a repository (`--lang en\|es`, `--name`) |
|
|
90
|
+
| `wakechart init` | Create a `.wakechart/` workspace inside the current repository |
|
|
91
|
+
| `wakechart extract [id]` | Read git history into `git.json` (reuses what it already read) |
|
|
92
|
+
| `wakechart build [id]` | `roadmap.json` + `git.json` → `dist/<id>.html` (`--out`, `--index`, `--strict`, `--json`) |
|
|
93
|
+
| `wakechart all [id]` | `extract` + `build`; without an id, every project |
|
|
94
|
+
| `wakechart list` | List the workspace's projects |
|
|
95
|
+
| `wakechart prompt [agent\|new]` | Print the instructions for an AI agent |
|
|
96
|
+
|
|
97
|
+
Every command takes `-w <workspace>` (default: the current folder).
|
|
98
|
+
|
|
99
|
+
Use `wakechart all --index` to generate an `index.html` that links to each project in a multi-project workspace. A project whose ID is `index` gets its own `index/index.html` in that layout. With a single selected project, `index.html` opens that roadmap directly.
|
|
100
|
+
|
|
101
|
+
Use `wakechart build --json` or `wakechart all --json` to get a JSON object on stdout. Each entry under `projects` is keyed by project ID and contains `classified`, `total` and the complete `unclassified` list. Diagnostics go to stderr. With `--strict`, unclassified commits still produce a report and exit code 1.
|
|
102
|
+
|
|
103
|
+
## Files
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
<workspace>/
|
|
107
|
+
projects/<id>/project.json repository path, refs, merge policy and discipline rules
|
|
108
|
+
projects/<id>/roadmap.json phases, deliverables, notes (written by the agent)
|
|
109
|
+
projects/<id>/git.json generated by extract
|
|
110
|
+
dist/<id>.html the page (open it in a browser)
|
|
111
|
+
dist/<id>.bundle.json data only; the viewer can import it next to other projects
|
|
112
|
+
dist/<id>.fragment.html the page without <html>/<head>, for hosts that add their own
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
In `project.json`, discipline patterns ignore case and the first matching discipline wins. A `**/` segment matches zero or more directories, so `**/tests/*` matches both `tests/test_app.py` and `pkg/tests/test_app.py`.
|
|
116
|
+
|
|
117
|
+
The `merges` setting controls how the roadmap handles merge commits.
|
|
118
|
+
|
|
119
|
+
| Value | Behavior |
|
|
120
|
+
|---|---|
|
|
121
|
+
| `skip` (default) | Omits merge commits while keeping the commits brought in by the merge. |
|
|
122
|
+
| `follow-parent` | Assigns a merge to the same deliverable as its first parent if no hash or rule assigns it directly. A merge whose first-parent chain leads to an unclassified commit stays unclassified. |
|
|
123
|
+
| `classify` | Includes merge commits and applies the same hash and subject rules as for other commits. Use this to preserve explicit merge assignments in an existing roadmap. |
|
|
124
|
+
|
|
125
|
+
Run `wakechart all` after changing the merge policy or discipline rules.
|
|
126
|
+
|
|
127
|
+
The roadmap format is documented in [`roadmap.schema.json`](src/wakechart/schema/roadmap.schema.json). A deliverable gets its commits from a list of hashes, from a `match` rule (regex on the subject plus optional dates), or from both:
|
|
128
|
+
|
|
129
|
+
```json
|
|
130
|
+
{"id": "T012", "phase": "F3", "team": "core", "status": "done",
|
|
131
|
+
"title": "Offline mode", "scope": "Service worker and local cache.",
|
|
132
|
+
"done_when": "The app opens without network.", "verification": "e2e test offline.spec.ts",
|
|
133
|
+
"commits": ["3fe2301"], "match": {"subject": "^offline:"}}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Planned work has no commits yet, so it takes an `estimate`:
|
|
137
|
+
|
|
138
|
+
```json
|
|
139
|
+
{"id": "T020", "phase": "F4", "status": "committed", "title": "Release 1.0",
|
|
140
|
+
"depends": ["T012"], "estimate": {"start": "2026-12-12T10:00:00-03:00", "end": "2026-12-13T20:00:00-03:00"}}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Sharing the page
|
|
144
|
+
|
|
145
|
+
The page is one HTML file with the data inside: open it locally, send it, or host it anywhere.
|
|
146
|
+
|
|
147
|
+
- **Claude artifact:** in Claude Code, ask Claude to publish `dist/<id>.fragment.html` as an artifact. You get a private claude.ai link you can share and update in place after each `wakechart all`.
|
|
148
|
+
- **GitHub Pages:** see the action below.
|
|
149
|
+
|
|
150
|
+
## GitHub Action
|
|
151
|
+
|
|
152
|
+
Publish the roadmap to GitHub Pages on every push. Run `wakechart init`, commit `.wakechart/projects/*/roadmap.json` and `project.json`, enable Pages (source: GitHub Actions) and add:
|
|
153
|
+
|
|
154
|
+
```yaml
|
|
155
|
+
name: Roadmap
|
|
156
|
+
on:
|
|
157
|
+
push:
|
|
158
|
+
branches: [main]
|
|
159
|
+
permissions:
|
|
160
|
+
contents: read
|
|
161
|
+
pages: write
|
|
162
|
+
id-token: write
|
|
163
|
+
jobs:
|
|
164
|
+
roadmap:
|
|
165
|
+
runs-on: ubuntu-latest
|
|
166
|
+
environment:
|
|
167
|
+
name: github-pages
|
|
168
|
+
url: ${{ steps.deploy.outputs.page_url }}
|
|
169
|
+
steps:
|
|
170
|
+
- uses: actions/checkout@v4
|
|
171
|
+
with:
|
|
172
|
+
fetch-depth: 0 # the full history, not the last commit
|
|
173
|
+
- uses: AlexPerez7/wakechart@main
|
|
174
|
+
- uses: actions/upload-pages-artifact@v3
|
|
175
|
+
with:
|
|
176
|
+
path: _site
|
|
177
|
+
- id: deploy
|
|
178
|
+
uses: actions/deploy-pages@v4
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Inputs: `workspace` (default `.wakechart`), `project`, `out` (default `_site`), `strict`, `python-version`.
|
|
182
|
+
|
|
183
|
+
## AI agents
|
|
184
|
+
|
|
185
|
+
wakechart does not call any AI service. The agent you already use edits `roadmap.json` and runs the command:
|
|
186
|
+
|
|
187
|
+
- **Any agent:** `wakechart prompt` prints the rules (stable IDs, never invent dates, verification only with evidence…).
|
|
188
|
+
- **Claude Code:** copy [`integrations/claude-code/skills/wakechart`](integrations/claude-code/skills/wakechart) to `~/.claude/skills/` and ask for "the roadmap".
|
|
189
|
+
- **Codex / Gemini CLI:** add a line to your `AGENTS.md` or `GEMINI.md`: *"For roadmap work, run `wakechart prompt` and follow it."*
|
|
190
|
+
|
|
191
|
+
## How dates are reconstructed
|
|
192
|
+
|
|
193
|
+
Each commit becomes a bar from the previous commit, if that one is close enough to be part of the same work session (`session_gap_minutes`, default 90), or from `lead_in_minutes` (default 20) before it. A deliverable's bars are its commits' bars merged. This shows *when* work happened, not *how long it took*: the viewer says so wherever it shows a duration.
|
|
194
|
+
|
|
195
|
+
Set `"session_scope": "author"` in `roadmap.json` to reconstruct sessions separately for each Git author. Wakechart uses the commit email to distinguish authors with the same display name and publishes the display name in the bundle. Run `wakechart all` to refresh an older extraction cache. The default scope is `global`.
|
|
196
|
+
|
|
197
|
+
For a completed deliverable, the viewer uses the earliest Git tag whose history contains all assigned commits. `target_version` can set the version explicitly. Run `wakechart all` to add Git ancestry data when regenerating an older bundle.
|
|
198
|
+
|
|
199
|
+
## License
|
|
200
|
+
|
|
201
|
+
MIT
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# wakechart
|
|
2
|
+
|
|
3
|
+
**Phase roadmaps reconstructed from git history, with an interactive Gantt chart that your AI agent keeps up to date.**
|
|
4
|
+
|
|
5
|
+
[Español](README.es.md) · [Live demo](https://alexperez7.github.io/wakechart/) (wakechart's own roadmap)
|
|
6
|
+
|
|
7
|
+
wakechart reads a repository's commits, tags and branches, and an AI agent (Claude Code, Codex, Gemini CLI, or you by hand) groups them into phases and deliverables in one JSON file. wakechart then builds a single self-contained HTML page:
|
|
8
|
+
|
|
9
|
+
- **Gantt chart** with 6 h / 1 day / 3 days / 1 week / 1 month scales, collapsible phases, a *Now* marker, search and filters.
|
|
10
|
+
- **Deliverables with IDs** (`T001`…) and a detail view: scope, acceptance criteria, verification, dependencies, dates, commits, and lines changed per discipline.
|
|
11
|
+
- **Teams, Versions (git tags) and Notes** views. English and Spanish interface.
|
|
12
|
+
- **Honest dates.** Every date says where it comes from: a *real* commit timestamp, an interval *reconstructed* from commit sessions (not effort), an *AI estimate* for planned work, or *unknown*.
|
|
13
|
+
- **Incremental.** New commits that match no deliverable are listed as *unclassified* for the agent to sort out.
|
|
14
|
+
- **No dependencies.** Python 3.9+ standard library and `git`. The target repository is only read.
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
pipx install git+https://github.com/AlexPerez7/wakechart
|
|
22
|
+
# or: pip install git+https://github.com/AlexPerez7/wakechart
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick start
|
|
26
|
+
|
|
27
|
+
**A separate workspace for all your projects** (keeps the roadmaps out of the repositories):
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
mkdir roadmaps && cd roadmaps
|
|
31
|
+
wakechart new my-app ../my-app --lang en
|
|
32
|
+
wakechart all my-app # dist/my-app.html
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Inside the repository** (good for GitHub Pages):
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
cd my-app
|
|
39
|
+
wakechart init
|
|
40
|
+
wakechart -w .wakechart all
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
At first every commit sits in one "Unsorted history" deliverable. Ask your agent to write the real roadmap:
|
|
44
|
+
|
|
45
|
+
> Write the wakechart roadmap of this project. Run `wakechart prompt new` and follow it.
|
|
46
|
+
|
|
47
|
+
and after each work session:
|
|
48
|
+
|
|
49
|
+
> Update the wakechart roadmap. Run `wakechart prompt agent` and follow it.
|
|
50
|
+
|
|
51
|
+
## Sample roadmap
|
|
52
|
+
|
|
53
|
+
Try the included roadmap for [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife). It groups three commits into two phases and pins the Git history to a known revision, so strict builds stay reproducible.
|
|
54
|
+
|
|
55
|
+
From a wakechart checkout, with wakechart installed, run these commands in a POSIX shell or Git Bash.
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
git clone https://github.com/octocat/Spoon-Knife.git ../Spoon-Knife
|
|
59
|
+
cp -R docs/spoon-knife ../spoon-knife-roadmap
|
|
60
|
+
wakechart -w ../spoon-knife-roadmap all --strict
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Open `../spoon-knife-roadmap/dist/spoon-knife.html#T002` in a browser to see the stylesheet deliverable.
|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+
## Commands
|
|
68
|
+
|
|
69
|
+
| Command | What it does |
|
|
70
|
+
|---|---|
|
|
71
|
+
| `wakechart new <id> <repo>` | Create `projects/<id>/` for a repository (`--lang en\|es`, `--name`) |
|
|
72
|
+
| `wakechart init` | Create a `.wakechart/` workspace inside the current repository |
|
|
73
|
+
| `wakechart extract [id]` | Read git history into `git.json` (reuses what it already read) |
|
|
74
|
+
| `wakechart build [id]` | `roadmap.json` + `git.json` → `dist/<id>.html` (`--out`, `--index`, `--strict`, `--json`) |
|
|
75
|
+
| `wakechart all [id]` | `extract` + `build`; without an id, every project |
|
|
76
|
+
| `wakechart list` | List the workspace's projects |
|
|
77
|
+
| `wakechart prompt [agent\|new]` | Print the instructions for an AI agent |
|
|
78
|
+
|
|
79
|
+
Every command takes `-w <workspace>` (default: the current folder).
|
|
80
|
+
|
|
81
|
+
Use `wakechart all --index` to generate an `index.html` that links to each project in a multi-project workspace. A project whose ID is `index` gets its own `index/index.html` in that layout. With a single selected project, `index.html` opens that roadmap directly.
|
|
82
|
+
|
|
83
|
+
Use `wakechart build --json` or `wakechart all --json` to get a JSON object on stdout. Each entry under `projects` is keyed by project ID and contains `classified`, `total` and the complete `unclassified` list. Diagnostics go to stderr. With `--strict`, unclassified commits still produce a report and exit code 1.
|
|
84
|
+
|
|
85
|
+
## Files
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
<workspace>/
|
|
89
|
+
projects/<id>/project.json repository path, refs, merge policy and discipline rules
|
|
90
|
+
projects/<id>/roadmap.json phases, deliverables, notes (written by the agent)
|
|
91
|
+
projects/<id>/git.json generated by extract
|
|
92
|
+
dist/<id>.html the page (open it in a browser)
|
|
93
|
+
dist/<id>.bundle.json data only; the viewer can import it next to other projects
|
|
94
|
+
dist/<id>.fragment.html the page without <html>/<head>, for hosts that add their own
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
In `project.json`, discipline patterns ignore case and the first matching discipline wins. A `**/` segment matches zero or more directories, so `**/tests/*` matches both `tests/test_app.py` and `pkg/tests/test_app.py`.
|
|
98
|
+
|
|
99
|
+
The `merges` setting controls how the roadmap handles merge commits.
|
|
100
|
+
|
|
101
|
+
| Value | Behavior |
|
|
102
|
+
|---|---|
|
|
103
|
+
| `skip` (default) | Omits merge commits while keeping the commits brought in by the merge. |
|
|
104
|
+
| `follow-parent` | Assigns a merge to the same deliverable as its first parent if no hash or rule assigns it directly. A merge whose first-parent chain leads to an unclassified commit stays unclassified. |
|
|
105
|
+
| `classify` | Includes merge commits and applies the same hash and subject rules as for other commits. Use this to preserve explicit merge assignments in an existing roadmap. |
|
|
106
|
+
|
|
107
|
+
Run `wakechart all` after changing the merge policy or discipline rules.
|
|
108
|
+
|
|
109
|
+
The roadmap format is documented in [`roadmap.schema.json`](src/wakechart/schema/roadmap.schema.json). A deliverable gets its commits from a list of hashes, from a `match` rule (regex on the subject plus optional dates), or from both:
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{"id": "T012", "phase": "F3", "team": "core", "status": "done",
|
|
113
|
+
"title": "Offline mode", "scope": "Service worker and local cache.",
|
|
114
|
+
"done_when": "The app opens without network.", "verification": "e2e test offline.spec.ts",
|
|
115
|
+
"commits": ["3fe2301"], "match": {"subject": "^offline:"}}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Planned work has no commits yet, so it takes an `estimate`:
|
|
119
|
+
|
|
120
|
+
```json
|
|
121
|
+
{"id": "T020", "phase": "F4", "status": "committed", "title": "Release 1.0",
|
|
122
|
+
"depends": ["T012"], "estimate": {"start": "2026-12-12T10:00:00-03:00", "end": "2026-12-13T20:00:00-03:00"}}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Sharing the page
|
|
126
|
+
|
|
127
|
+
The page is one HTML file with the data inside: open it locally, send it, or host it anywhere.
|
|
128
|
+
|
|
129
|
+
- **Claude artifact:** in Claude Code, ask Claude to publish `dist/<id>.fragment.html` as an artifact. You get a private claude.ai link you can share and update in place after each `wakechart all`.
|
|
130
|
+
- **GitHub Pages:** see the action below.
|
|
131
|
+
|
|
132
|
+
## GitHub Action
|
|
133
|
+
|
|
134
|
+
Publish the roadmap to GitHub Pages on every push. Run `wakechart init`, commit `.wakechart/projects/*/roadmap.json` and `project.json`, enable Pages (source: GitHub Actions) and add:
|
|
135
|
+
|
|
136
|
+
```yaml
|
|
137
|
+
name: Roadmap
|
|
138
|
+
on:
|
|
139
|
+
push:
|
|
140
|
+
branches: [main]
|
|
141
|
+
permissions:
|
|
142
|
+
contents: read
|
|
143
|
+
pages: write
|
|
144
|
+
id-token: write
|
|
145
|
+
jobs:
|
|
146
|
+
roadmap:
|
|
147
|
+
runs-on: ubuntu-latest
|
|
148
|
+
environment:
|
|
149
|
+
name: github-pages
|
|
150
|
+
url: ${{ steps.deploy.outputs.page_url }}
|
|
151
|
+
steps:
|
|
152
|
+
- uses: actions/checkout@v4
|
|
153
|
+
with:
|
|
154
|
+
fetch-depth: 0 # the full history, not the last commit
|
|
155
|
+
- uses: AlexPerez7/wakechart@main
|
|
156
|
+
- uses: actions/upload-pages-artifact@v3
|
|
157
|
+
with:
|
|
158
|
+
path: _site
|
|
159
|
+
- id: deploy
|
|
160
|
+
uses: actions/deploy-pages@v4
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Inputs: `workspace` (default `.wakechart`), `project`, `out` (default `_site`), `strict`, `python-version`.
|
|
164
|
+
|
|
165
|
+
## AI agents
|
|
166
|
+
|
|
167
|
+
wakechart does not call any AI service. The agent you already use edits `roadmap.json` and runs the command:
|
|
168
|
+
|
|
169
|
+
- **Any agent:** `wakechart prompt` prints the rules (stable IDs, never invent dates, verification only with evidence…).
|
|
170
|
+
- **Claude Code:** copy [`integrations/claude-code/skills/wakechart`](integrations/claude-code/skills/wakechart) to `~/.claude/skills/` and ask for "the roadmap".
|
|
171
|
+
- **Codex / Gemini CLI:** add a line to your `AGENTS.md` or `GEMINI.md`: *"For roadmap work, run `wakechart prompt` and follow it."*
|
|
172
|
+
|
|
173
|
+
## How dates are reconstructed
|
|
174
|
+
|
|
175
|
+
Each commit becomes a bar from the previous commit, if that one is close enough to be part of the same work session (`session_gap_minutes`, default 90), or from `lead_in_minutes` (default 20) before it. A deliverable's bars are its commits' bars merged. This shows *when* work happened, not *how long it took*: the viewer says so wherever it shows a duration.
|
|
176
|
+
|
|
177
|
+
Set `"session_scope": "author"` in `roadmap.json` to reconstruct sessions separately for each Git author. Wakechart uses the commit email to distinguish authors with the same display name and publishes the display name in the bundle. Run `wakechart all` to refresh an older extraction cache. The default scope is `global`.
|
|
178
|
+
|
|
179
|
+
For a completed deliverable, the viewer uses the earliest Git tag whose history contains all assigned commits. `target_version` can set the version explicitly. Run `wakechart all` to add Git ancestry data when regenerating an older bundle.
|
|
180
|
+
|
|
181
|
+
## License
|
|
182
|
+
|
|
183
|
+
MIT
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "wakechart"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Phase roadmaps reconstructed from git history, with an interactive Gantt viewer that AI agents keep up to date."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.9"
|
|
12
|
+
authors = [{ name = "Alex Pérez" }]
|
|
13
|
+
keywords = ["roadmap", "gantt", "git", "planning", "ai-agents", "claude-code", "codex"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Environment :: Console",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Topic :: Software Development :: Version Control :: Git",
|
|
19
|
+
]
|
|
20
|
+
dependencies = []
|
|
21
|
+
|
|
22
|
+
[project.urls]
|
|
23
|
+
Homepage = "https://github.com/AlexPerez7/wakechart"
|
|
24
|
+
Issues = "https://github.com/AlexPerez7/wakechart/issues"
|
|
25
|
+
|
|
26
|
+
[project.scripts]
|
|
27
|
+
wakechart = "wakechart.cli:main"
|
|
28
|
+
|
|
29
|
+
[tool.setuptools.dynamic]
|
|
30
|
+
version = { attr = "wakechart.__version__" }
|
|
31
|
+
|
|
32
|
+
[tool.setuptools.package-data]
|
|
33
|
+
wakechart = ["viewer/*.html", "schema/*.json", "templates/*.json", "prompts/*.md"]
|