gptodo 0.1.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.
- gptodo-0.1.0/.gitignore +22 -0
- gptodo-0.1.0/Makefile +15 -0
- gptodo-0.1.0/PKG-INFO +216 -0
- gptodo-0.1.0/README.md +183 -0
- gptodo-0.1.0/pyproject.toml +63 -0
- gptodo-0.1.0/src/gptodo/__init__.py +13 -0
- gptodo-0.1.0/src/gptodo/__main__.py +10 -0
- gptodo-0.1.0/src/gptodo/agents.py +314 -0
- gptodo-0.1.0/src/gptodo/checker.py +342 -0
- gptodo-0.1.0/src/gptodo/cli.py +4786 -0
- gptodo-0.1.0/src/gptodo/deptree.py +339 -0
- gptodo-0.1.0/src/gptodo/generate_queue.py +467 -0
- gptodo-0.1.0/src/gptodo/lib.py +388 -0
- gptodo-0.1.0/src/gptodo/locks.py +355 -0
- gptodo-0.1.0/src/gptodo/py.typed +0 -0
- gptodo-0.1.0/src/gptodo/subagent.py +392 -0
- gptodo-0.1.0/src/gptodo/unblock.py +292 -0
- gptodo-0.1.0/src/gptodo/utils.py +1359 -0
- gptodo-0.1.0/src/gptodo/waiting.py +399 -0
- gptodo-0.1.0/src/gptodo/worktree.py +413 -0
- gptodo-0.1.0/tests/__init__.py +1 -0
- gptodo-0.1.0/tests/test_find_repo_root.py +99 -0
- gptodo-0.1.0/tests/test_unblock.py +483 -0
- gptodo-0.1.0/tests/test_waiting.py +376 -0
gptodo-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
*.pyc
|
|
2
|
+
__pycache__
|
|
3
|
+
|
|
4
|
+
# Secrets - never commit
|
|
5
|
+
scripts/discord/logs/*
|
|
6
|
+
scripts/*/.env
|
|
7
|
+
scripts/*/.tokens.json
|
|
8
|
+
scripts/.env
|
|
9
|
+
*.tokens.json
|
|
10
|
+
|
|
11
|
+
.venv/
|
|
12
|
+
venv/
|
|
13
|
+
.gptme/
|
|
14
|
+
|
|
15
|
+
# Task lock files (runtime state)
|
|
16
|
+
state/locks/
|
|
17
|
+
|
|
18
|
+
# Session state files (runtime state)
|
|
19
|
+
state/sessions/
|
|
20
|
+
|
|
21
|
+
# Stale directory from tasks->gptodo rename (PR #171)
|
|
22
|
+
packages/tasks/
|
gptodo-0.1.0/Makefile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.PHONY: test typecheck publish
|
|
2
|
+
|
|
3
|
+
test: ## Run tests for this package
|
|
4
|
+
@if [ -d tests ] && [ "$$(find tests -name '*.py' 2>/dev/null | head -1)" ]; then \
|
|
5
|
+
uv run --with pytest pytest tests/ -v; \
|
|
6
|
+
else \
|
|
7
|
+
echo "No tests found"; \
|
|
8
|
+
fi
|
|
9
|
+
|
|
10
|
+
typecheck: ## Run mypy for this package
|
|
11
|
+
uv run --with mypy --with types-tabulate mypy -p gptodo --ignore-missing-imports --disable-error-code=unused-ignore
|
|
12
|
+
|
|
13
|
+
publish: ## Build and publish to PyPI
|
|
14
|
+
uv build
|
|
15
|
+
uv publish
|
gptodo-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gptodo
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Task management and work queue generation utilities for gptme agents
|
|
5
|
+
Project-URL: Homepage, https://github.com/gptme/gptme-contrib
|
|
6
|
+
Project-URL: Repository, https://github.com/gptme/gptme-contrib
|
|
7
|
+
Project-URL: Issues, https://github.com/gptme/gptme-contrib/issues
|
|
8
|
+
Author-email: gptme contributors <gptme@superuserlabs.org>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
Keywords: ai-agents,cli,gptme,gtd,task-management
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
+
Classifier: Topic :: Utilities
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: click>=8.0.0
|
|
22
|
+
Requires-Dist: python-frontmatter>=1.1.0
|
|
23
|
+
Requires-Dist: rich>=13.0.0
|
|
24
|
+
Requires-Dist: tabulate>=0.9.0
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: mypy>=1.0.0; extra == 'dev'
|
|
27
|
+
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
28
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
29
|
+
Provides-Extra: test
|
|
30
|
+
Requires-Dist: pytest-cov>=4.0; extra == 'test'
|
|
31
|
+
Requires-Dist: pytest>=7.0; extra == 'test'
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
# gptodo
|
|
35
|
+
|
|
36
|
+
Task management and work queue generation utilities for gptme agents.
|
|
37
|
+
|
|
38
|
+
## Features
|
|
39
|
+
|
|
40
|
+
- Manage tasks with YAML frontmatter metadata
|
|
41
|
+
- Generate work queues from task files and GitHub issues
|
|
42
|
+
- Prioritize tasks based on priority labels and assignments
|
|
43
|
+
- Task locking for multi-agent coordination
|
|
44
|
+
- Support for multiple task sources (local files, GitHub)
|
|
45
|
+
- Configurable workspace structure
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
|
|
49
|
+
### Standalone (Recommended)
|
|
50
|
+
|
|
51
|
+
Install as a CLI tool:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Using uv (recommended)
|
|
55
|
+
uv tool install git+https://github.com/gptme/gptme-contrib#subdirectory=packages/gptodo
|
|
56
|
+
|
|
57
|
+
# Using pipx
|
|
58
|
+
pipx install git+https://github.com/gptme/gptme-contrib#subdirectory=packages/gptodo
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### From gptme-contrib workspace
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Install with workspace
|
|
65
|
+
uv sync
|
|
66
|
+
|
|
67
|
+
# Or install package directly
|
|
68
|
+
uv pip install -e packages/gptodo
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Usage
|
|
72
|
+
|
|
73
|
+
### Task Management CLI
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# View task status
|
|
77
|
+
gptodo status
|
|
78
|
+
gptodo status --compact
|
|
79
|
+
|
|
80
|
+
# Show specific task
|
|
81
|
+
gptodo show <task-id>
|
|
82
|
+
|
|
83
|
+
# Edit task metadata
|
|
84
|
+
gptodo edit <task-id> --set state active
|
|
85
|
+
gptodo edit <task-id> --set priority high
|
|
86
|
+
gptodo edit <task-id> --add tag feature
|
|
87
|
+
|
|
88
|
+
# Validate tasks
|
|
89
|
+
gptodo validate
|
|
90
|
+
|
|
91
|
+
# List tasks with filters
|
|
92
|
+
gptodo list --priority high
|
|
93
|
+
gptodo list --state active
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Generate Work Queue
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
# Basic usage (current directory as workspace)
|
|
100
|
+
gptodo generate-queue
|
|
101
|
+
|
|
102
|
+
# Specify workspace path
|
|
103
|
+
gptodo generate-queue --workspace ~/my-agent
|
|
104
|
+
|
|
105
|
+
# Specify GitHub username for assignee filtering
|
|
106
|
+
gptodo generate-queue --github-username YourUsername
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Task Locking (Multi-Agent)
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Acquire lock on a task
|
|
113
|
+
gptodo lock acquire <task-id>
|
|
114
|
+
|
|
115
|
+
# Release lock
|
|
116
|
+
gptodo lock release <task-id>
|
|
117
|
+
|
|
118
|
+
# Check lock status
|
|
119
|
+
gptodo lock status <task-id>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Output
|
|
123
|
+
|
|
124
|
+
Generates `state/queue-generated.md` with:
|
|
125
|
+
- **Current Run**: Summary from latest journal entry
|
|
126
|
+
- **Planned Next**: Top 5 prioritized tasks
|
|
127
|
+
- **Last Updated**: Timestamp
|
|
128
|
+
|
|
129
|
+
### Task Sources
|
|
130
|
+
|
|
131
|
+
1. **Local Task Files** (`tasks/*.md`):
|
|
132
|
+
- Filter: priority=high/urgent AND state=new/active
|
|
133
|
+
- Uses frontmatter metadata
|
|
134
|
+
|
|
135
|
+
2. **GitHub Issues**:
|
|
136
|
+
- Filter: label=priority:high/urgent AND state=open
|
|
137
|
+
- Boosts score if assigned to configured username
|
|
138
|
+
|
|
139
|
+
## Configuration
|
|
140
|
+
|
|
141
|
+
Via command-line arguments or environment variables:
|
|
142
|
+
|
|
143
|
+
- `TASKS_REPO_ROOT` / `--workspace`: Agent workspace path
|
|
144
|
+
- `GITHUB_USERNAME` / `--github-username`: GitHub username for filtering
|
|
145
|
+
- `--journal-dir`: Journal directory name (default: journal)
|
|
146
|
+
- `--tasks-dir`: Tasks directory name (default: tasks)
|
|
147
|
+
- `--state-dir`: State directory name (default: state)
|
|
148
|
+
|
|
149
|
+
## Task Format
|
|
150
|
+
|
|
151
|
+
Task files should use frontmatter metadata:
|
|
152
|
+
|
|
153
|
+
```yaml
|
|
154
|
+
---
|
|
155
|
+
state: active # new, active, paused, done, cancelled, someday
|
|
156
|
+
priority: high # low, medium, high
|
|
157
|
+
task_type: project # project (multi-step) or action (single-step)
|
|
158
|
+
assigned_to: bob # agent name
|
|
159
|
+
tags: [ai, dev] # categorization tags
|
|
160
|
+
---
|
|
161
|
+
# Task Title
|
|
162
|
+
|
|
163
|
+
Task description...
|
|
164
|
+
|
|
165
|
+
## Subtasks
|
|
166
|
+
- [ ] First subtask
|
|
167
|
+
- [x] Completed subtask
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## GitHub Integration
|
|
171
|
+
|
|
172
|
+
Requires GitHub CLI (`gh`) installed and authenticated:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
gh auth login
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Priority labels:
|
|
179
|
+
- `priority:urgent` - Highest priority
|
|
180
|
+
- `priority:high` - High priority
|
|
181
|
+
- `priority:medium` - Medium priority (not included in queue)
|
|
182
|
+
- `priority:low` - Low priority (not included in queue)
|
|
183
|
+
|
|
184
|
+
## Development
|
|
185
|
+
|
|
186
|
+
### Running Tests
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
cd packages/gptodo
|
|
190
|
+
make test
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Type Checking
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
cd packages/gptodo
|
|
197
|
+
make typecheck
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Migration from tasks
|
|
201
|
+
|
|
202
|
+
If you were using `scripts/tasks.py`, the wrapper script will continue to work
|
|
203
|
+
but will show a deprecation warning. To migrate:
|
|
204
|
+
|
|
205
|
+
1. Install gptodo directly: `uv tool install git+...`
|
|
206
|
+
2. Replace `./scripts/tasks.py` calls with `gptodo`
|
|
207
|
+
3. All commands remain the same
|
|
208
|
+
|
|
209
|
+
## Integration
|
|
210
|
+
|
|
211
|
+
This package is designed to work with:
|
|
212
|
+
- gptme autonomous runs
|
|
213
|
+
- GitHub issue tracking
|
|
214
|
+
- Agent workspace structures
|
|
215
|
+
|
|
216
|
+
For full autonomous agent setup, see [gptme-agent-template](https://github.com/gptme/gptme-agent-template).
|
gptodo-0.1.0/README.md
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# gptodo
|
|
2
|
+
|
|
3
|
+
Task management and work queue generation utilities for gptme agents.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Manage tasks with YAML frontmatter metadata
|
|
8
|
+
- Generate work queues from task files and GitHub issues
|
|
9
|
+
- Prioritize tasks based on priority labels and assignments
|
|
10
|
+
- Task locking for multi-agent coordination
|
|
11
|
+
- Support for multiple task sources (local files, GitHub)
|
|
12
|
+
- Configurable workspace structure
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### Standalone (Recommended)
|
|
17
|
+
|
|
18
|
+
Install as a CLI tool:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Using uv (recommended)
|
|
22
|
+
uv tool install git+https://github.com/gptme/gptme-contrib#subdirectory=packages/gptodo
|
|
23
|
+
|
|
24
|
+
# Using pipx
|
|
25
|
+
pipx install git+https://github.com/gptme/gptme-contrib#subdirectory=packages/gptodo
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### From gptme-contrib workspace
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Install with workspace
|
|
32
|
+
uv sync
|
|
33
|
+
|
|
34
|
+
# Or install package directly
|
|
35
|
+
uv pip install -e packages/gptodo
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
### Task Management CLI
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# View task status
|
|
44
|
+
gptodo status
|
|
45
|
+
gptodo status --compact
|
|
46
|
+
|
|
47
|
+
# Show specific task
|
|
48
|
+
gptodo show <task-id>
|
|
49
|
+
|
|
50
|
+
# Edit task metadata
|
|
51
|
+
gptodo edit <task-id> --set state active
|
|
52
|
+
gptodo edit <task-id> --set priority high
|
|
53
|
+
gptodo edit <task-id> --add tag feature
|
|
54
|
+
|
|
55
|
+
# Validate tasks
|
|
56
|
+
gptodo validate
|
|
57
|
+
|
|
58
|
+
# List tasks with filters
|
|
59
|
+
gptodo list --priority high
|
|
60
|
+
gptodo list --state active
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Generate Work Queue
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Basic usage (current directory as workspace)
|
|
67
|
+
gptodo generate-queue
|
|
68
|
+
|
|
69
|
+
# Specify workspace path
|
|
70
|
+
gptodo generate-queue --workspace ~/my-agent
|
|
71
|
+
|
|
72
|
+
# Specify GitHub username for assignee filtering
|
|
73
|
+
gptodo generate-queue --github-username YourUsername
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Task Locking (Multi-Agent)
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Acquire lock on a task
|
|
80
|
+
gptodo lock acquire <task-id>
|
|
81
|
+
|
|
82
|
+
# Release lock
|
|
83
|
+
gptodo lock release <task-id>
|
|
84
|
+
|
|
85
|
+
# Check lock status
|
|
86
|
+
gptodo lock status <task-id>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Output
|
|
90
|
+
|
|
91
|
+
Generates `state/queue-generated.md` with:
|
|
92
|
+
- **Current Run**: Summary from latest journal entry
|
|
93
|
+
- **Planned Next**: Top 5 prioritized tasks
|
|
94
|
+
- **Last Updated**: Timestamp
|
|
95
|
+
|
|
96
|
+
### Task Sources
|
|
97
|
+
|
|
98
|
+
1. **Local Task Files** (`tasks/*.md`):
|
|
99
|
+
- Filter: priority=high/urgent AND state=new/active
|
|
100
|
+
- Uses frontmatter metadata
|
|
101
|
+
|
|
102
|
+
2. **GitHub Issues**:
|
|
103
|
+
- Filter: label=priority:high/urgent AND state=open
|
|
104
|
+
- Boosts score if assigned to configured username
|
|
105
|
+
|
|
106
|
+
## Configuration
|
|
107
|
+
|
|
108
|
+
Via command-line arguments or environment variables:
|
|
109
|
+
|
|
110
|
+
- `TASKS_REPO_ROOT` / `--workspace`: Agent workspace path
|
|
111
|
+
- `GITHUB_USERNAME` / `--github-username`: GitHub username for filtering
|
|
112
|
+
- `--journal-dir`: Journal directory name (default: journal)
|
|
113
|
+
- `--tasks-dir`: Tasks directory name (default: tasks)
|
|
114
|
+
- `--state-dir`: State directory name (default: state)
|
|
115
|
+
|
|
116
|
+
## Task Format
|
|
117
|
+
|
|
118
|
+
Task files should use frontmatter metadata:
|
|
119
|
+
|
|
120
|
+
```yaml
|
|
121
|
+
---
|
|
122
|
+
state: active # new, active, paused, done, cancelled, someday
|
|
123
|
+
priority: high # low, medium, high
|
|
124
|
+
task_type: project # project (multi-step) or action (single-step)
|
|
125
|
+
assigned_to: bob # agent name
|
|
126
|
+
tags: [ai, dev] # categorization tags
|
|
127
|
+
---
|
|
128
|
+
# Task Title
|
|
129
|
+
|
|
130
|
+
Task description...
|
|
131
|
+
|
|
132
|
+
## Subtasks
|
|
133
|
+
- [ ] First subtask
|
|
134
|
+
- [x] Completed subtask
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## GitHub Integration
|
|
138
|
+
|
|
139
|
+
Requires GitHub CLI (`gh`) installed and authenticated:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
gh auth login
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Priority labels:
|
|
146
|
+
- `priority:urgent` - Highest priority
|
|
147
|
+
- `priority:high` - High priority
|
|
148
|
+
- `priority:medium` - Medium priority (not included in queue)
|
|
149
|
+
- `priority:low` - Low priority (not included in queue)
|
|
150
|
+
|
|
151
|
+
## Development
|
|
152
|
+
|
|
153
|
+
### Running Tests
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
cd packages/gptodo
|
|
157
|
+
make test
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Type Checking
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
cd packages/gptodo
|
|
164
|
+
make typecheck
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Migration from tasks
|
|
168
|
+
|
|
169
|
+
If you were using `scripts/tasks.py`, the wrapper script will continue to work
|
|
170
|
+
but will show a deprecation warning. To migrate:
|
|
171
|
+
|
|
172
|
+
1. Install gptodo directly: `uv tool install git+...`
|
|
173
|
+
2. Replace `./scripts/tasks.py` calls with `gptodo`
|
|
174
|
+
3. All commands remain the same
|
|
175
|
+
|
|
176
|
+
## Integration
|
|
177
|
+
|
|
178
|
+
This package is designed to work with:
|
|
179
|
+
- gptme autonomous runs
|
|
180
|
+
- GitHub issue tracking
|
|
181
|
+
- Agent workspace structures
|
|
182
|
+
|
|
183
|
+
For full autonomous agent setup, see [gptme-agent-template](https://github.com/gptme/gptme-agent-template).
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "gptodo"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Task management and work queue generation utilities for gptme agents"
|
|
5
|
+
authors = [
|
|
6
|
+
{name = "gptme contributors", email = "gptme@superuserlabs.org"}
|
|
7
|
+
]
|
|
8
|
+
license = "MIT"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
keywords = ["task-management", "gptme", "ai-agents", "cli", "gtd"]
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 4 - Beta",
|
|
14
|
+
"Intended Audience :: Developers",
|
|
15
|
+
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.10",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Topic :: Software Development :: Libraries",
|
|
21
|
+
"Topic :: Utilities",
|
|
22
|
+
]
|
|
23
|
+
dependencies = [
|
|
24
|
+
"python-frontmatter>=1.1.0",
|
|
25
|
+
"click>=8.0.0",
|
|
26
|
+
"rich>=13.0.0",
|
|
27
|
+
"tabulate>=0.9.0",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Homepage = "https://github.com/gptme/gptme-contrib"
|
|
32
|
+
Repository = "https://github.com/gptme/gptme-contrib"
|
|
33
|
+
Issues = "https://github.com/gptme/gptme-contrib/issues"
|
|
34
|
+
|
|
35
|
+
[project.optional-dependencies]
|
|
36
|
+
dev = [
|
|
37
|
+
"mypy>=1.0.0",
|
|
38
|
+
"pytest>=7.0",
|
|
39
|
+
"pytest-cov>=4.0",
|
|
40
|
+
]
|
|
41
|
+
test = [
|
|
42
|
+
"pytest>=7.0",
|
|
43
|
+
"pytest-cov>=4.0",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[project.scripts]
|
|
47
|
+
gptodo = "gptodo.cli:cli"
|
|
48
|
+
|
|
49
|
+
[build-system]
|
|
50
|
+
requires = ["hatchling"]
|
|
51
|
+
build-backend = "hatchling.build"
|
|
52
|
+
|
|
53
|
+
[tool.hatch.build.targets.wheel]
|
|
54
|
+
packages = ["src/gptodo"]
|
|
55
|
+
|
|
56
|
+
[tool.ruff]
|
|
57
|
+
line-length = 100
|
|
58
|
+
target-version = "py310"
|
|
59
|
+
|
|
60
|
+
[tool.mypy]
|
|
61
|
+
python_version = "3.10"
|
|
62
|
+
warn_return_any = true
|
|
63
|
+
warn_unused_configs = true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""gptodo - Task management and work queue generation utilities for gptme agents.
|
|
2
|
+
|
|
3
|
+
This package provides CLI tools for managing tasks in gptme agent workspaces.
|
|
4
|
+
|
|
5
|
+
Installation:
|
|
6
|
+
# Standalone (recommended)
|
|
7
|
+
uv tool install git+https://github.com/gptme/gptme-contrib#subdirectory=packages/gptodo
|
|
8
|
+
|
|
9
|
+
# From workspace
|
|
10
|
+
uv pip install -e packages/gptodo
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
__version__ = "0.1.0"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Main entry point for gptodo CLI.
|
|
2
|
+
|
|
3
|
+
Provides a unified command-line interface for task management operations.
|
|
4
|
+
Supports both direct invocation (`python -m gptodo`) and package entry point.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from gptodo.cli import cli
|
|
8
|
+
|
|
9
|
+
if __name__ == "__main__":
|
|
10
|
+
cli()
|