chaotic-cli 0.1.0a1__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.
- chaotic_cli-0.1.0a1/.gitignore +56 -0
- chaotic_cli-0.1.0a1/PKG-INFO +204 -0
- chaotic_cli-0.1.0a1/README.md +174 -0
- chaotic_cli-0.1.0a1/pyproject.toml +57 -0
- chaotic_cli-0.1.0a1/src/cli/__init__.py +2 -0
- chaotic_cli-0.1.0a1/src/cli/client.py +432 -0
- chaotic_cli-0.1.0a1/src/cli/config.py +475 -0
- chaotic_cli-0.1.0a1/src/cli/main.py +3469 -0
- chaotic_cli-0.1.0a1/src/cli/system.py +1097 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Databases
|
|
2
|
+
*.db
|
|
3
|
+
*.db-journal
|
|
4
|
+
*.sqlite
|
|
5
|
+
*.sqlite3
|
|
6
|
+
*.backup*
|
|
7
|
+
|
|
8
|
+
# Python
|
|
9
|
+
__pycache__/
|
|
10
|
+
*.py[cod]
|
|
11
|
+
*$py.class
|
|
12
|
+
*.egg-info/
|
|
13
|
+
*.egg
|
|
14
|
+
dist/
|
|
15
|
+
build/
|
|
16
|
+
.venv/
|
|
17
|
+
venv/
|
|
18
|
+
.eggs/
|
|
19
|
+
|
|
20
|
+
# Test / Coverage
|
|
21
|
+
.pytest_cache/
|
|
22
|
+
.coverage
|
|
23
|
+
htmlcov/
|
|
24
|
+
coverage/
|
|
25
|
+
|
|
26
|
+
# Node
|
|
27
|
+
node_modules/
|
|
28
|
+
|
|
29
|
+
# Frontend build cache
|
|
30
|
+
.vite/
|
|
31
|
+
|
|
32
|
+
# Environment / secrets
|
|
33
|
+
.env
|
|
34
|
+
.env.*
|
|
35
|
+
*.pem
|
|
36
|
+
*.key
|
|
37
|
+
|
|
38
|
+
# IDE / editor
|
|
39
|
+
.vscode/
|
|
40
|
+
.idea/
|
|
41
|
+
*.swp
|
|
42
|
+
*.swo
|
|
43
|
+
*~
|
|
44
|
+
|
|
45
|
+
# Claude Code
|
|
46
|
+
.claude/
|
|
47
|
+
|
|
48
|
+
# Chaotic local config
|
|
49
|
+
.chaotic
|
|
50
|
+
|
|
51
|
+
# OS
|
|
52
|
+
.DS_Store
|
|
53
|
+
Thumbs.db
|
|
54
|
+
|
|
55
|
+
# Vercel
|
|
56
|
+
.vercel
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: chaotic-cli
|
|
3
|
+
Version: 0.1.0a1
|
|
4
|
+
Summary: CLI for Chaotic issue tracking system
|
|
5
|
+
Project-URL: Homepage, https://chaotic.sh
|
|
6
|
+
Project-URL: Repository, https://github.com/thethirdbearsolutions/chaotic.sh
|
|
7
|
+
Project-URL: Documentation, https://chaotic.sh/docs
|
|
8
|
+
Author: Third Bear Solutions
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
Keywords: chaotic,cli,issue-tracker,project-management
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: MacOS
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Topic :: Software Development :: Bug Tracking
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Requires-Dist: click>=8.1.7
|
|
24
|
+
Requires-Dist: httpx>=0.26.0
|
|
25
|
+
Requires-Dist: rich>=13.7.0
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest-mock>=3.12.0; extra == 'dev'
|
|
28
|
+
Requires-Dist: pytest>=7.4.0; extra == 'dev'
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# Chaotic CLI
|
|
32
|
+
|
|
33
|
+
Command-line interface for the Chaotic issue tracker.
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
cd cli
|
|
39
|
+
pip install -e .
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Configuration
|
|
43
|
+
|
|
44
|
+
Set the API URL (defaults to http://localhost:24267):
|
|
45
|
+
```bash
|
|
46
|
+
chaotic config set-url https://your-api-server.com
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Authentication
|
|
50
|
+
|
|
51
|
+
### Sign up / Login
|
|
52
|
+
```bash
|
|
53
|
+
chaotic auth signup
|
|
54
|
+
chaotic auth login
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### API Keys (for scripts/automation)
|
|
58
|
+
```bash
|
|
59
|
+
chaotic auth keys list
|
|
60
|
+
chaotic auth keys create
|
|
61
|
+
chaotic auth keys revoke <key-id>
|
|
62
|
+
chaotic auth set-key ck_your_api_key_here
|
|
63
|
+
chaotic auth clear-key
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Check current user
|
|
67
|
+
```bash
|
|
68
|
+
chaotic auth whoami
|
|
69
|
+
chaotic me # Shortcut for 'auth whoami'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Status
|
|
73
|
+
|
|
74
|
+
Check current context (user, team, project):
|
|
75
|
+
```bash
|
|
76
|
+
chaotic status
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Teams
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
chaotic team list # List your teams
|
|
83
|
+
chaotic team use <team-id> # Set current team
|
|
84
|
+
chaotic team show # Show current team details
|
|
85
|
+
chaotic team create # Create a new team
|
|
86
|
+
chaotic team members # List team members
|
|
87
|
+
chaotic team invite # Invite a member
|
|
88
|
+
chaotic team accept-invite # Accept an invitation
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Projects
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
chaotic project list # List projects in current team
|
|
95
|
+
chaotic project use <project-id> # Set current project
|
|
96
|
+
chaotic project show # Show current project details
|
|
97
|
+
chaotic project create # Create a new project
|
|
98
|
+
chaotic project update # Update current project
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Issues
|
|
102
|
+
|
|
103
|
+
### Listing and viewing
|
|
104
|
+
```bash
|
|
105
|
+
chaotic issue list # List issues in current project
|
|
106
|
+
chaotic issue list --status in_progress # Filter by status
|
|
107
|
+
chaotic issue list --priority high # Filter by priority
|
|
108
|
+
chaotic issue mine # List issues assigned to me
|
|
109
|
+
chaotic issue mine --status in_progress # Filter my issues by status
|
|
110
|
+
chaotic issue search "search term" # Search issues across the team
|
|
111
|
+
chaotic issue show CHT-123 # Show issue details
|
|
112
|
+
chaotic issue view CHT-123 # Alias for 'show'
|
|
113
|
+
chaotic issue open CHT-123 # Open issue in browser
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Creating issues
|
|
117
|
+
```bash
|
|
118
|
+
chaotic issue create --title "Bug fix"
|
|
119
|
+
chaotic issue create --title "Bug fix" --project CHT # Specify project by key
|
|
120
|
+
chaotic issue create --title "Sub-task" --parent CHT-123 # Create sub-issue
|
|
121
|
+
chaotic issue create --title "Feature" --priority high --status todo
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Updating issues
|
|
125
|
+
```bash
|
|
126
|
+
chaotic issue update CHT-123 --status done
|
|
127
|
+
chaotic issue update CHT-123 --priority urgent
|
|
128
|
+
chaotic issue update CHT-123 --assignee user-id
|
|
129
|
+
chaotic issue update CHT-123 --estimate 5
|
|
130
|
+
chaotic issue move CHT-123 in_progress # Quick status change
|
|
131
|
+
chaotic issue assign CHT-123 me # Assign to yourself
|
|
132
|
+
chaotic issue assign CHT-123 agent-bot # Assign to an agent by name/ID
|
|
133
|
+
chaotic issue assign CHT-123 # Unassign
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Comments
|
|
137
|
+
```bash
|
|
138
|
+
chaotic issue comment CHT-123 "This is a comment"
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Sub-issues and Relations
|
|
142
|
+
```bash
|
|
143
|
+
chaotic issue sub-issues CHT-123 # List sub-issues
|
|
144
|
+
chaotic issue relations CHT-123 # Show issue relations
|
|
145
|
+
chaotic issue block CHT-1 CHT-2 # CHT-1 blocks CHT-2
|
|
146
|
+
chaotic issue block CHT-1 CHT-2 --type duplicates # Mark as duplicate
|
|
147
|
+
chaotic issue block CHT-1 CHT-2 --type relates_to # Related issues
|
|
148
|
+
chaotic issue unblock CHT-1 CHT-2 # Remove relation
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Deleting
|
|
152
|
+
```bash
|
|
153
|
+
chaotic issue delete CHT-123
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Sprints
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
chaotic sprint list # List sprints in current project
|
|
160
|
+
chaotic sprint current # Get or create the current sprint
|
|
161
|
+
chaotic sprint close <id> # Close the current sprint
|
|
162
|
+
chaotic sprint delete <id> # Delete a sprint
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Labels
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
chaotic label list # List labels in current team
|
|
169
|
+
chaotic label create # Create a new label
|
|
170
|
+
chaotic label delete <id> # Delete a label
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## Documents
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
chaotic doc list # List documents in current team
|
|
177
|
+
chaotic doc show <id> # Show document content
|
|
178
|
+
chaotic doc create # Create a new document
|
|
179
|
+
chaotic doc update <id> # Update a document
|
|
180
|
+
chaotic doc delete <id> # Delete a document
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Status Values
|
|
184
|
+
|
|
185
|
+
- `backlog` - Not yet planned
|
|
186
|
+
- `todo` - Planned for work
|
|
187
|
+
- `in_progress` - Currently being worked on
|
|
188
|
+
- `in_review` - Awaiting review
|
|
189
|
+
- `done` - Completed
|
|
190
|
+
- `canceled` - Canceled
|
|
191
|
+
|
|
192
|
+
## Priority Values
|
|
193
|
+
|
|
194
|
+
- `no_priority` - No priority set
|
|
195
|
+
- `low` - Low priority
|
|
196
|
+
- `medium` - Medium priority
|
|
197
|
+
- `high` - High priority
|
|
198
|
+
- `urgent` - Urgent, needs immediate attention
|
|
199
|
+
|
|
200
|
+
## Relation Types
|
|
201
|
+
|
|
202
|
+
- `blocks` - Issue blocks another issue
|
|
203
|
+
- `relates_to` - Issues are related
|
|
204
|
+
- `duplicates` - Issue is a duplicate of another
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Chaotic CLI
|
|
2
|
+
|
|
3
|
+
Command-line interface for the Chaotic issue tracker.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
cd cli
|
|
9
|
+
pip install -e .
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Configuration
|
|
13
|
+
|
|
14
|
+
Set the API URL (defaults to http://localhost:24267):
|
|
15
|
+
```bash
|
|
16
|
+
chaotic config set-url https://your-api-server.com
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Authentication
|
|
20
|
+
|
|
21
|
+
### Sign up / Login
|
|
22
|
+
```bash
|
|
23
|
+
chaotic auth signup
|
|
24
|
+
chaotic auth login
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### API Keys (for scripts/automation)
|
|
28
|
+
```bash
|
|
29
|
+
chaotic auth keys list
|
|
30
|
+
chaotic auth keys create
|
|
31
|
+
chaotic auth keys revoke <key-id>
|
|
32
|
+
chaotic auth set-key ck_your_api_key_here
|
|
33
|
+
chaotic auth clear-key
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Check current user
|
|
37
|
+
```bash
|
|
38
|
+
chaotic auth whoami
|
|
39
|
+
chaotic me # Shortcut for 'auth whoami'
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Status
|
|
43
|
+
|
|
44
|
+
Check current context (user, team, project):
|
|
45
|
+
```bash
|
|
46
|
+
chaotic status
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Teams
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
chaotic team list # List your teams
|
|
53
|
+
chaotic team use <team-id> # Set current team
|
|
54
|
+
chaotic team show # Show current team details
|
|
55
|
+
chaotic team create # Create a new team
|
|
56
|
+
chaotic team members # List team members
|
|
57
|
+
chaotic team invite # Invite a member
|
|
58
|
+
chaotic team accept-invite # Accept an invitation
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Projects
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
chaotic project list # List projects in current team
|
|
65
|
+
chaotic project use <project-id> # Set current project
|
|
66
|
+
chaotic project show # Show current project details
|
|
67
|
+
chaotic project create # Create a new project
|
|
68
|
+
chaotic project update # Update current project
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Issues
|
|
72
|
+
|
|
73
|
+
### Listing and viewing
|
|
74
|
+
```bash
|
|
75
|
+
chaotic issue list # List issues in current project
|
|
76
|
+
chaotic issue list --status in_progress # Filter by status
|
|
77
|
+
chaotic issue list --priority high # Filter by priority
|
|
78
|
+
chaotic issue mine # List issues assigned to me
|
|
79
|
+
chaotic issue mine --status in_progress # Filter my issues by status
|
|
80
|
+
chaotic issue search "search term" # Search issues across the team
|
|
81
|
+
chaotic issue show CHT-123 # Show issue details
|
|
82
|
+
chaotic issue view CHT-123 # Alias for 'show'
|
|
83
|
+
chaotic issue open CHT-123 # Open issue in browser
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Creating issues
|
|
87
|
+
```bash
|
|
88
|
+
chaotic issue create --title "Bug fix"
|
|
89
|
+
chaotic issue create --title "Bug fix" --project CHT # Specify project by key
|
|
90
|
+
chaotic issue create --title "Sub-task" --parent CHT-123 # Create sub-issue
|
|
91
|
+
chaotic issue create --title "Feature" --priority high --status todo
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Updating issues
|
|
95
|
+
```bash
|
|
96
|
+
chaotic issue update CHT-123 --status done
|
|
97
|
+
chaotic issue update CHT-123 --priority urgent
|
|
98
|
+
chaotic issue update CHT-123 --assignee user-id
|
|
99
|
+
chaotic issue update CHT-123 --estimate 5
|
|
100
|
+
chaotic issue move CHT-123 in_progress # Quick status change
|
|
101
|
+
chaotic issue assign CHT-123 me # Assign to yourself
|
|
102
|
+
chaotic issue assign CHT-123 agent-bot # Assign to an agent by name/ID
|
|
103
|
+
chaotic issue assign CHT-123 # Unassign
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Comments
|
|
107
|
+
```bash
|
|
108
|
+
chaotic issue comment CHT-123 "This is a comment"
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Sub-issues and Relations
|
|
112
|
+
```bash
|
|
113
|
+
chaotic issue sub-issues CHT-123 # List sub-issues
|
|
114
|
+
chaotic issue relations CHT-123 # Show issue relations
|
|
115
|
+
chaotic issue block CHT-1 CHT-2 # CHT-1 blocks CHT-2
|
|
116
|
+
chaotic issue block CHT-1 CHT-2 --type duplicates # Mark as duplicate
|
|
117
|
+
chaotic issue block CHT-1 CHT-2 --type relates_to # Related issues
|
|
118
|
+
chaotic issue unblock CHT-1 CHT-2 # Remove relation
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Deleting
|
|
122
|
+
```bash
|
|
123
|
+
chaotic issue delete CHT-123
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Sprints
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
chaotic sprint list # List sprints in current project
|
|
130
|
+
chaotic sprint current # Get or create the current sprint
|
|
131
|
+
chaotic sprint close <id> # Close the current sprint
|
|
132
|
+
chaotic sprint delete <id> # Delete a sprint
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Labels
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
chaotic label list # List labels in current team
|
|
139
|
+
chaotic label create # Create a new label
|
|
140
|
+
chaotic label delete <id> # Delete a label
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Documents
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
chaotic doc list # List documents in current team
|
|
147
|
+
chaotic doc show <id> # Show document content
|
|
148
|
+
chaotic doc create # Create a new document
|
|
149
|
+
chaotic doc update <id> # Update a document
|
|
150
|
+
chaotic doc delete <id> # Delete a document
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Status Values
|
|
154
|
+
|
|
155
|
+
- `backlog` - Not yet planned
|
|
156
|
+
- `todo` - Planned for work
|
|
157
|
+
- `in_progress` - Currently being worked on
|
|
158
|
+
- `in_review` - Awaiting review
|
|
159
|
+
- `done` - Completed
|
|
160
|
+
- `canceled` - Canceled
|
|
161
|
+
|
|
162
|
+
## Priority Values
|
|
163
|
+
|
|
164
|
+
- `no_priority` - No priority set
|
|
165
|
+
- `low` - Low priority
|
|
166
|
+
- `medium` - Medium priority
|
|
167
|
+
- `high` - High priority
|
|
168
|
+
- `urgent` - Urgent, needs immediate attention
|
|
169
|
+
|
|
170
|
+
## Relation Types
|
|
171
|
+
|
|
172
|
+
- `blocks` - Issue blocks another issue
|
|
173
|
+
- `relates_to` - Issues are related
|
|
174
|
+
- `duplicates` - Issue is a duplicate of another
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "chaotic-cli"
|
|
7
|
+
version = "0.1.0a1"
|
|
8
|
+
description = "CLI for Chaotic issue tracking system"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Third Bear Solutions" }
|
|
14
|
+
]
|
|
15
|
+
keywords = ["cli", "issue-tracker", "project-management", "chaotic"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Environment :: Console",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
|
+
"Operating System :: MacOS",
|
|
22
|
+
"Operating System :: POSIX :: Linux",
|
|
23
|
+
"Programming Language :: Python :: 3",
|
|
24
|
+
"Programming Language :: Python :: 3.10",
|
|
25
|
+
"Programming Language :: Python :: 3.11",
|
|
26
|
+
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Topic :: Software Development :: Bug Tracking",
|
|
28
|
+
]
|
|
29
|
+
dependencies = [
|
|
30
|
+
"httpx>=0.26.0",
|
|
31
|
+
"click>=8.1.7",
|
|
32
|
+
"rich>=13.7.0",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
Homepage = "https://chaotic.sh"
|
|
37
|
+
Repository = "https://github.com/thethirdbearsolutions/chaotic.sh"
|
|
38
|
+
Documentation = "https://chaotic.sh/docs"
|
|
39
|
+
|
|
40
|
+
[project.scripts]
|
|
41
|
+
chaotic = "cli.main:cli"
|
|
42
|
+
|
|
43
|
+
[project.optional-dependencies]
|
|
44
|
+
dev = [
|
|
45
|
+
"pytest>=7.4.0",
|
|
46
|
+
"pytest-mock>=3.12.0",
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[tool.hatch.build.targets.wheel]
|
|
50
|
+
packages = ["src/cli"]
|
|
51
|
+
|
|
52
|
+
[tool.hatch.build.targets.sdist]
|
|
53
|
+
include = ["src/cli"]
|
|
54
|
+
|
|
55
|
+
[tool.pytest.ini_options]
|
|
56
|
+
testpaths = ["tests"]
|
|
57
|
+
pythonpath = ["src"]
|