hire-ai 0.1.2__py3-none-any.whl → 0.1.4__py3-none-any.whl
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.
- hire/__init__.py +1 -1
- hire/cli.py +7 -0
- hire/commands/delete.py +31 -2
- {hire_ai-0.1.2.dist-info → hire_ai-0.1.4.dist-info}/METADATA +5 -1
- {hire_ai-0.1.2.dist-info → hire_ai-0.1.4.dist-info}/RECORD +8 -8
- {hire_ai-0.1.2.dist-info → hire_ai-0.1.4.dist-info}/WHEEL +0 -0
- {hire_ai-0.1.2.dist-info → hire_ai-0.1.4.dist-info}/entry_points.txt +0 -0
- {hire_ai-0.1.2.dist-info → hire_ai-0.1.4.dist-info}/licenses/LICENSE +0 -0
hire/__init__.py
CHANGED
hire/cli.py
CHANGED
|
@@ -60,8 +60,14 @@ def main() -> int:
|
|
|
60
60
|
delete_parser = subparsers.add_parser("delete", help="Delete a session")
|
|
61
61
|
delete_parser.add_argument(
|
|
62
62
|
"name_or_id",
|
|
63
|
+
nargs="?",
|
|
63
64
|
help="Session name or ID",
|
|
64
65
|
)
|
|
66
|
+
delete_parser.add_argument(
|
|
67
|
+
"-a", "--all",
|
|
68
|
+
action="store_true",
|
|
69
|
+
help="Delete all sessions",
|
|
70
|
+
)
|
|
65
71
|
delete_parser.add_argument(
|
|
66
72
|
"-f", "--force",
|
|
67
73
|
action="store_true",
|
|
@@ -156,6 +162,7 @@ Usage:
|
|
|
156
162
|
hire sessions [target] List sessions
|
|
157
163
|
hire show <name-or-id> Show session details
|
|
158
164
|
hire delete <name-or-id> Delete a session
|
|
165
|
+
hire delete --all Delete all sessions
|
|
159
166
|
hire doctor Check environment
|
|
160
167
|
|
|
161
168
|
Targets:
|
hire/commands/delete.py
CHANGED
|
@@ -3,14 +3,43 @@
|
|
|
3
3
|
import sys
|
|
4
4
|
from argparse import Namespace
|
|
5
5
|
|
|
6
|
-
from ..session import delete_session, find_session
|
|
6
|
+
from ..session import delete_session, find_session, list_sessions
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
def run_delete(args: Namespace) -> int:
|
|
10
10
|
"""Run the delete command."""
|
|
11
|
-
name_or_id = args
|
|
11
|
+
name_or_id = getattr(args, "name_or_id", None)
|
|
12
|
+
delete_all = getattr(args, "all", False)
|
|
12
13
|
force = getattr(args, "force", False)
|
|
13
14
|
|
|
15
|
+
# Delete all sessions
|
|
16
|
+
if delete_all:
|
|
17
|
+
sessions = list_sessions()
|
|
18
|
+
if not sessions:
|
|
19
|
+
print("No sessions to delete")
|
|
20
|
+
return 0
|
|
21
|
+
|
|
22
|
+
# Confirm deletion unless --force
|
|
23
|
+
if not force:
|
|
24
|
+
print(f"Delete all {len(sessions)} session(s)?")
|
|
25
|
+
response = input("Type 'yes' to confirm: ")
|
|
26
|
+
if response.lower() != "yes":
|
|
27
|
+
print("Cancelled")
|
|
28
|
+
return 0
|
|
29
|
+
|
|
30
|
+
deleted = 0
|
|
31
|
+
for session in sessions:
|
|
32
|
+
if delete_session(session):
|
|
33
|
+
deleted += 1
|
|
34
|
+
|
|
35
|
+
print(f"Deleted {deleted} session(s)")
|
|
36
|
+
return 0
|
|
37
|
+
|
|
38
|
+
# Delete single session
|
|
39
|
+
if not name_or_id:
|
|
40
|
+
print("Error: Session name or ID required (or use --all)", file=sys.stderr)
|
|
41
|
+
return 1
|
|
42
|
+
|
|
14
43
|
session = find_session(name_or_id)
|
|
15
44
|
|
|
16
45
|
if not session:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hire-ai
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: CLI to orchestrate AI agents (Claude, Codex, Gemini)
|
|
5
5
|
Project-URL: Homepage, https://github.com/nichiki/hire-ai
|
|
6
6
|
Project-URL: Repository, https://github.com/nichiki/hire-ai
|
|
@@ -102,6 +102,10 @@ hire sessions # List all sessions
|
|
|
102
102
|
hire sessions codex # List Codex sessions only
|
|
103
103
|
hire show SESSION_ID # Show session details
|
|
104
104
|
hire delete SESSION_ID # Delete a session
|
|
105
|
+
hire delete --all # Delete all sessions
|
|
106
|
+
|
|
107
|
+
# Check environment
|
|
108
|
+
hire doctor # Check installed agents and config
|
|
105
109
|
```
|
|
106
110
|
|
|
107
111
|
## Options
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
hire/__init__.py,sha256
|
|
2
|
-
hire/cli.py,sha256=
|
|
1
|
+
hire/__init__.py,sha256=2LQguRiO9dMd4-KyJt1GsEfGLrqWGTGzinWlXuQw3M4,90
|
|
2
|
+
hire/cli.py,sha256=6M6IP28H6lNVIUPRSBGUGJPFzDyd_aqKHt5bcCMyPxc,5007
|
|
3
3
|
hire/clipboard.py,sha256=rDhB2lYNT3pPeHmTHXVMs6R_yLy1xm9ErInxjBM9MHo,1266
|
|
4
4
|
hire/config.py,sha256=s058dSnojmIdT1KRULWXchdMv6WM9aZ8CKgCqMGdVvA,1164
|
|
5
5
|
hire/paths.py,sha256=PMLwEil1qRmW-9fJ-nTnvWZOUuJvMc-N54xrPp2NHfA,1372
|
|
@@ -11,12 +11,12 @@ hire/adapters/codex.py,sha256=_4MXGTz-0YujuutDVCliaj9P94bm-Z1yNEElRtN3wzA,2895
|
|
|
11
11
|
hire/adapters/gemini.py,sha256=Qm_e1zzhxu2ooXANfFvVCwzxteVatlbDnBZeuf-jHNw,2613
|
|
12
12
|
hire/commands/__init__.py,sha256=aX9gG9U6_ygeSCy577EoX31SzY-VL9Db1DRl7hT_bGg,249
|
|
13
13
|
hire/commands/ask.py,sha256=EPLigSMQlKmiEfMc8elRqelaC1urpNCr9YjttHbeorM,5876
|
|
14
|
-
hire/commands/delete.py,sha256=
|
|
14
|
+
hire/commands/delete.py,sha256=fovqmVdoxXg_dy6XMSNcEqOh9ehvCcCTO4jLS2m3ROo,1864
|
|
15
15
|
hire/commands/doctor.py,sha256=QCPc1Eb_S8cNfs_xn0bw6UKj1OJTna_h1qTkueCN1Ms,1504
|
|
16
16
|
hire/commands/sessions.py,sha256=aIsh8oC4N3KtMeUdIrCvU3hONMxAfV_Z4qnprBiP62k,1073
|
|
17
17
|
hire/commands/show.py,sha256=gztFedJ553fvru0dPbHyperOMXDew-Yri3E3APu9d3c,860
|
|
18
|
-
hire_ai-0.1.
|
|
19
|
-
hire_ai-0.1.
|
|
20
|
-
hire_ai-0.1.
|
|
21
|
-
hire_ai-0.1.
|
|
22
|
-
hire_ai-0.1.
|
|
18
|
+
hire_ai-0.1.4.dist-info/METADATA,sha256=wMeCnpbn_mtGvz2sJGmeHtBgca5C339f9bl3ks-uw04,4165
|
|
19
|
+
hire_ai-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
20
|
+
hire_ai-0.1.4.dist-info/entry_points.txt,sha256=oq7wq8Ju9C2Lw79ljxSkQIaeKOHA_aIN9JKQAaDbz_Q,39
|
|
21
|
+
hire_ai-0.1.4.dist-info/licenses/LICENSE,sha256=Hj8NYmaOGk4xCcCYqD_5U91CVJwcJXEFSMWS965dUI0,1064
|
|
22
|
+
hire_ai-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|