clicodelog 0.1.0__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.
- clicodelog/__init__.py +6 -0
- clicodelog/__main__.py +6 -0
- clicodelog/app.py +996 -0
- clicodelog/cli.py +56 -0
- clicodelog/templates/index.html +1067 -0
- clicodelog-0.1.0.dist-info/METADATA +305 -0
- clicodelog-0.1.0.dist-info/RECORD +11 -0
- clicodelog-0.1.0.dist-info/WHEEL +5 -0
- clicodelog-0.1.0.dist-info/entry_points.txt +2 -0
- clicodelog-0.1.0.dist-info/licenses/LICENSE +21 -0
- clicodelog-0.1.0.dist-info/top_level.txt +1 -0
clicodelog/cli.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""Command-line interface for cli code log."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
|
|
5
|
+
from clicodelog import __version__
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def main():
|
|
9
|
+
"""Main entry point for the CLI."""
|
|
10
|
+
parser = argparse.ArgumentParser(
|
|
11
|
+
prog="clicodelog",
|
|
12
|
+
description="Browse, inspect, and export logs from CLI-based AI coding agents",
|
|
13
|
+
)
|
|
14
|
+
parser.add_argument(
|
|
15
|
+
"--version", "-V",
|
|
16
|
+
action="version",
|
|
17
|
+
version=f"%(prog)s {__version__}",
|
|
18
|
+
)
|
|
19
|
+
parser.add_argument(
|
|
20
|
+
"--port", "-p",
|
|
21
|
+
type=int,
|
|
22
|
+
default=5050,
|
|
23
|
+
help="Port to run the server on (default: 5050)",
|
|
24
|
+
)
|
|
25
|
+
parser.add_argument(
|
|
26
|
+
"--host", "-H",
|
|
27
|
+
type=str,
|
|
28
|
+
default="127.0.0.1",
|
|
29
|
+
help="Host to bind to (default: 127.0.0.1)",
|
|
30
|
+
)
|
|
31
|
+
parser.add_argument(
|
|
32
|
+
"--no-sync",
|
|
33
|
+
action="store_true",
|
|
34
|
+
help="Skip initial data sync on startup",
|
|
35
|
+
)
|
|
36
|
+
parser.add_argument(
|
|
37
|
+
"--debug",
|
|
38
|
+
action="store_true",
|
|
39
|
+
help="Run in debug mode",
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
args = parser.parse_args()
|
|
43
|
+
|
|
44
|
+
# Import here to avoid slow startup for --help/--version
|
|
45
|
+
from clicodelog.app import run_server
|
|
46
|
+
|
|
47
|
+
run_server(
|
|
48
|
+
host=args.host,
|
|
49
|
+
port=args.port,
|
|
50
|
+
skip_sync=args.no_sync,
|
|
51
|
+
debug=args.debug,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
if __name__ == "__main__":
|
|
56
|
+
main()
|