codeabc 0.1.0__py3-none-any.whl → 0.1.2__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.
backend/desktop_server.py CHANGED
@@ -42,5 +42,16 @@ def main() -> None:
42
42
  uvicorn.run(app, host="127.0.0.1", port=port, log_level="warning")
43
43
 
44
44
 
45
+ def cli_main() -> None:
46
+ """Console-script entry: serve without the parent-death watch.
47
+
48
+ The Tauri sidecar needs to die when the desktop app closes its stdin pipe,
49
+ but a `codeabc` invoked from a terminal, a launcher, or nohup has its
50
+ stdin closed from the start and would exit instantly.
51
+ """
52
+ port = int(os.getenv("CODEABC_PORT", "8000"))
53
+ uvicorn.run(app, host="127.0.0.1", port=port, log_level="warning")
54
+
55
+
45
56
  if __name__ == "__main__":
46
57
  main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codeabc
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: AI-powered code reader for non-programmers
5
5
  Author-email: Yufeng He <40085740+he-yufeng@users.noreply.github.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  backend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  backend/app.py,sha256=diNqZZhw7NjIWG7OYR7fuwH16tMyLQIpP6o1AMtccbc,3059
3
- backend/desktop_server.py,sha256=WV8turtbOnckGwvDHvXZnov7hnDZaLOkZruTCnPGEC0,1441
3
+ backend/desktop_server.py,sha256=sBMYZOxoa2diFMtVAALJvqCyntmf6uEvYFu4xVz3D1M,1875
4
4
  backend/models.py,sha256=bPHvSnh8IdXTGSTu4V1zzFFyUXTJKFikocbucSxgJNs,18055
5
5
  backend/prompts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  backend/prompts/annotate.py,sha256=Hiuz8QrWg5gh5dgZrfyMZjnB-HiDwR1nydtkc4XnPKA,1805
@@ -56,7 +56,8 @@ backend/services/symbols.py,sha256=2sLmLavz0OeJF0IBCV6msWwE1wBlMhkHpl1-SQJKTno,2
56
56
  backend/services/techdebt.py,sha256=og7-mzIsYjKzYRHOnO0DVKmnjDrOgeyZ2FVhHoy0Jsw,4720
57
57
  backend/services/too_many_params.py,sha256=z4VW2uX13iameFhmzjby8qgu1YUGBCWVDsT6ITj-aGs,4432
58
58
  backend/services/typing_coverage.py,sha256=4qH_HnXlzK1OJtm6gD5QZp2qaePj5k1eIcS70XlZF_U,7451
59
- codeabc-0.1.0.dist-info/METADATA,sha256=O_hqIJ0j974CzlePLFxHCZfTyOFPgkm_MHc_HrzSqyc,20343
60
- codeabc-0.1.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
61
- codeabc-0.1.0.dist-info/licenses/LICENSE,sha256=Gjpln1GILd5PHMjjXZpdojQ-DGlvmxFP_nr19R6m9xo,1066
62
- codeabc-0.1.0.dist-info/RECORD,,
59
+ codeabc-0.1.2.dist-info/METADATA,sha256=7ngPjg1Xb_VCdqiBQqJiLY8LzadbVEiRiMMi1-kwJ8k,20343
60
+ codeabc-0.1.2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
61
+ codeabc-0.1.2.dist-info/entry_points.txt,sha256=VX1hw16wgWy0owLA2Dgc7FPh0tx3qWFbBvBuTKSLj9o,60
62
+ codeabc-0.1.2.dist-info/licenses/LICENSE,sha256=Gjpln1GILd5PHMjjXZpdojQ-DGlvmxFP_nr19R6m9xo,1066
63
+ codeabc-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ codeabc = backend.desktop_server:cli_main