cade-cli 0.3.3__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.
Files changed (44) hide show
  1. cade_cli-0.3.3.dist-info/METADATA +151 -0
  2. cade_cli-0.3.3.dist-info/RECORD +44 -0
  3. cade_cli-0.3.3.dist-info/WHEEL +4 -0
  4. cade_cli-0.3.3.dist-info/entry_points.txt +2 -0
  5. cadecoder/__init__.py +1 -0
  6. cadecoder/ai/__init__.py +6 -0
  7. cadecoder/ai/prompts.py +572 -0
  8. cadecoder/cli/__init__.py +0 -0
  9. cadecoder/cli/app.py +147 -0
  10. cadecoder/cli/auth.py +483 -0
  11. cadecoder/cli/commands/__init__.py +5 -0
  12. cadecoder/cli/commands/auth.py +143 -0
  13. cadecoder/cli/commands/chat.py +264 -0
  14. cadecoder/cli/commands/mcp.py +477 -0
  15. cadecoder/cli/commands/tools.py +226 -0
  16. cadecoder/core/__init__.py +12 -0
  17. cadecoder/core/config.py +380 -0
  18. cadecoder/core/constants.py +281 -0
  19. cadecoder/core/errors.py +145 -0
  20. cadecoder/core/logging.py +148 -0
  21. cadecoder/core/types.py +235 -0
  22. cadecoder/core/utils.py +279 -0
  23. cadecoder/execution/__init__.py +46 -0
  24. cadecoder/execution/context_window.py +521 -0
  25. cadecoder/execution/orchestrator.py +562 -0
  26. cadecoder/execution/parallel.py +287 -0
  27. cadecoder/providers/__init__.py +60 -0
  28. cadecoder/providers/base.py +294 -0
  29. cadecoder/providers/openai.py +251 -0
  30. cadecoder/storage/__init__.py +0 -0
  31. cadecoder/storage/threads.py +489 -0
  32. cadecoder/templates/login_failed.html +21 -0
  33. cadecoder/templates/login_success.html +21 -0
  34. cadecoder/templates/styles.css +87 -0
  35. cadecoder/tools/__init__.py +19 -0
  36. cadecoder/tools/builtin.py +644 -0
  37. cadecoder/tools/filesystem.py +315 -0
  38. cadecoder/tools/git.py +221 -0
  39. cadecoder/tools/manager.py +1635 -0
  40. cadecoder/ui/__init__.py +7 -0
  41. cadecoder/ui/display.py +338 -0
  42. cadecoder/ui/input.py +145 -0
  43. cadecoder/ui/session.py +455 -0
  44. cadecoder/ui/state.py +20 -0
@@ -0,0 +1,151 @@
1
+ Metadata-Version: 2.4
2
+ Name: cade-cli
3
+ Version: 0.3.3
4
+ Summary: Cade - The CLI Agent from Arcade.dev
5
+ Project-URL: Homepage, https://arcade.dev
6
+ Project-URL: Documentation, https://docs.arcade.dev
7
+ Project-URL: Repository, https://github.com/arcadeai-labs/cade
8
+ Project-URL: Issues, https://github.com/arcadeai-labs/cade/issues
9
+ Project-URL: Changelog, https://github.com/arcadeai-labs/cade/releases
10
+ Author-email: "Arcade AI Inc." <dev@arcade.dev>
11
+ License: MIT
12
+ Keywords: agent,ai,arcade,cli,coding-assistant,llm,mcp
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Software Development
22
+ Classifier: Topic :: Software Development :: Code Generators
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.11
25
+ Requires-Dist: anthropic<1.0.0,>=0.34.0
26
+ Requires-Dist: arcade-core<5.0.0,>=4.1.0
27
+ Requires-Dist: arcade-tdk>=2.0.0
28
+ Requires-Dist: arcadepy>=1.3.1
29
+ Requires-Dist: authlib<2.0.0,>=1.6.0
30
+ Requires-Dist: httpx<1.0.0,>=0.27.0
31
+ Requires-Dist: openai<2.0.0,>=1.0.0
32
+ Requires-Dist: prompt-toolkit>=3.0.52
33
+ Requires-Dist: pydantic[email]<3.0.0,>=2.0.0
34
+ Requires-Dist: pyperclip<2.0.0,>=1.8.0
35
+ Requires-Dist: pyyaml<7.0.0,>=6.0
36
+ Requires-Dist: rich<14.0.0,>=13.0.0
37
+ Requires-Dist: tiktoken>=0.11.0
38
+ Requires-Dist: toml<1.0.0,>=0.10.0
39
+ Requires-Dist: typer>0.10.0
40
+ Requires-Dist: ulid==1.1
41
+ Provides-Extra: dev
42
+ Requires-Dist: mypy<2.0.0,>=1.10.0; extra == 'dev'
43
+ Requires-Dist: pytest-asyncio<1.0.0,>=0.24.0; extra == 'dev'
44
+ Requires-Dist: pytest-cov<5.0.0,>=4.0.0; extra == 'dev'
45
+ Requires-Dist: pytest-mock<4.0.0,>=3.11.0; extra == 'dev'
46
+ Requires-Dist: pytest<9.0.0,>=8.0.0; extra == 'dev'
47
+ Requires-Dist: ruff<1.0.0,>=0.5.0; extra == 'dev'
48
+ Provides-Extra: training
49
+ Requires-Dist: accelerate>=0.27.0; extra == 'training'
50
+ Requires-Dist: safetensors>=0.4.2; extra == 'training'
51
+ Requires-Dist: torch>=2.1.0; extra == 'training'
52
+ Requires-Dist: transformers>=4.38.0; extra == 'training'
53
+ Description-Content-Type: text/markdown
54
+
55
+ # CadeCoder
56
+
57
+ Arcade powered assistant for coding and everyday tasks.
58
+
59
+ ## Installation
60
+
61
+ ### Prerequisites
62
+
63
+ - Python 3.11+
64
+ - uv (recommended Python package manager)
65
+ - An Arcade account with credentials (for `cade login`)
66
+
67
+ Install uv (if needed):
68
+ ```bash
69
+ curl -LsSf https://astral.sh/uv/install.sh | sh
70
+ ```
71
+
72
+ ### Option A: Install directly from GitHub with uv
73
+
74
+ ```bash
75
+ uv pip install "git+https://github.com/ArcadeAI/cadecode.git#egg=cadecoder"
76
+ ```
77
+
78
+ This installs the `cade` CLI into your current environment. Use a virtual environment if preferred:
79
+ ```bash
80
+ uv venv --python 3.11
81
+ . .venv/bin/activate
82
+ uv pip install "git+https://github.com/ArcadeAI/cadecode.git#egg=cadecoder"
83
+ ```
84
+
85
+ ### Option B: Clone and install locally
86
+
87
+ ```bash
88
+ git clone https://github.com/ArcadeAI/cadecode.git
89
+ cd cadecode
90
+ uv venv --python 3.11
91
+ . .venv/bin/activate
92
+ uv sync # installs from pyproject.toml
93
+ ```
94
+
95
+ (Optional) If you prefer editable mode with dev extras:
96
+ ```bash
97
+ uv pip install -e '.[dev]'
98
+ ```
99
+
100
+ (Optional) ML training dependencies:
101
+ ```bash
102
+ # Only training deps
103
+ uv pip install -e '.[training]'
104
+
105
+ # Dev + training together
106
+ uv pip install -e '.[dev,training]'
107
+ ```
108
+
109
+ ### Authenticate
110
+
111
+ Log in to Arcade Cloud:
112
+ ```bash
113
+ cade login
114
+ ```
115
+
116
+ You should now be ready to use `cade`.
117
+
118
+ ## Usage
119
+
120
+ Start an interactive chat session:
121
+ ```bash
122
+ cade chat
123
+ ```
124
+
125
+ Common options:
126
+ - `--model, -m`: Specify AI model (default: gpt-4.1)
127
+ - `--verbose, -v`: Enable verbose logging
128
+
129
+ Resume the most recent thread:
130
+ ```bash
131
+ cade --resume
132
+ ```
133
+
134
+ List threads:
135
+ ```bash
136
+ cade thread list
137
+ ```
138
+
139
+ ## Notes on local ML models
140
+
141
+ CadeCoder can optionally use local classifiers for routing. If models are not present, CadeCoder will operate with built-in fallbacks. Advanced users can synchronize models using the developer Makefile targets described in `DEVELOPER.md`.
142
+
143
+ ## Developer Guide
144
+
145
+ If you plan to contribute or work with the developer tooling (Makefile, S3 buckets, model sync, releases), see:
146
+
147
+ - DEVELOPER.md
148
+
149
+ ## License
150
+
151
+ MIT License
@@ -0,0 +1,44 @@
1
+ cadecoder/__init__.py,sha256=kUR5RAFc7HCeiqdlX36dZOHkUI5wI6V_43RpEcD8b-0,22
2
+ cadecoder/ai/__init__.py,sha256=h1T4VcgRwVBRNzXSlCG_KBSAYe1ymgdvIU1iGNYa5tI,118
3
+ cadecoder/ai/prompts.py,sha256=VeFV9-jcu25LjQORBXj8tjQKS7ZokSN0UH2SXovGwsk,21012
4
+ cadecoder/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ cadecoder/cli/app.py,sha256=EXnRkl37zRI55Vf-byPvzMaXEDXBTPbtoPatdQZbH7M,4770
6
+ cadecoder/cli/auth.py,sha256=fELXmpjODJicQ0rPnkOp5zCnwaVlh0F9KUrb6JhZgwI,15049
7
+ cadecoder/cli/commands/__init__.py,sha256=HKrFbJ4pzgIK39q9qTGdHYssmgMmGFIzpBDPUiuscTM,116
8
+ cadecoder/cli/commands/auth.py,sha256=9FQ5jxuqMv-CEhwcXLhn1vajnEQJjort7spbLBvi1_w,4733
9
+ cadecoder/cli/commands/chat.py,sha256=HCQHw36CFV_6mS_cTnAK_KQZbVAkyZlxPcN4okAGnEU,9596
10
+ cadecoder/cli/commands/mcp.py,sha256=yy6wE4pvnvsymeS2porredXqdl2oI6h6QDcprbVhnt8,15441
11
+ cadecoder/cli/commands/tools.py,sha256=SpeGS0zAUovemXQ1DXCc9yuEHQbPubKOeSgRo4CgCXY,6904
12
+ cadecoder/core/__init__.py,sha256=xDUHWawZChrRGX1UsyiCnlNJ0TfPDODo8QlMg2l97Lw,339
13
+ cadecoder/core/config.py,sha256=eOtamjYaUloDj0o_HZWuwKIN4QiDr2lApNL_aEZ2Qbc,12690
14
+ cadecoder/core/constants.py,sha256=wUJjoOvV4Y0AdZdPvYFHRg4MA95JC3t4OM_YBIh8gVY,7437
15
+ cadecoder/core/errors.py,sha256=FhXyMrhLloL-jOPyVwD-5EvKbbRomgXo9wStIGI28rs,3438
16
+ cadecoder/core/logging.py,sha256=84vsyHdlBjAsnsJ17HwrCrBqSgUnNJwedRcl_DgMXa8,4164
17
+ cadecoder/core/types.py,sha256=S2U4EYKtUwyx5M_1xnQdhQjymY5DO_5YABLrRWBXJUs,6832
18
+ cadecoder/core/utils.py,sha256=6vxIKqD3occk9Vm3Yku5WOjEXT-ON6LUwR-lTviI8sk,7461
19
+ cadecoder/execution/__init__.py,sha256=bDZ9BaYbClmHlLMqfgh-iVbzDBC8Hgyx2qce8eMw2c0,1142
20
+ cadecoder/execution/context_window.py,sha256=DJd-noxZeGP2NdtyykbMdsVmB373tq8CjnvV8PP8gHk,18487
21
+ cadecoder/execution/orchestrator.py,sha256=M6Hay0ZuOxGBPUe3cZF9w4gyXdxpVrVYIOVvn-k_fZM,19845
22
+ cadecoder/execution/parallel.py,sha256=fOv_BBtJErdGwzj6TU3St5iIBpi9CIctj6P64u8XLMc,10923
23
+ cadecoder/providers/__init__.py,sha256=7zsqtLL8Cn84cqf67T6g_UCGBxeZRROtayK8rqkUzf0,1533
24
+ cadecoder/providers/base.py,sha256=NMnmydTNCMsHRS080nAEPnAKipXJ2k52ofvjsosPw9U,9742
25
+ cadecoder/providers/openai.py,sha256=oXWXX8Elae61zFQ74rdbepwqAc8IaUXuzLs3B9yvX6Y,8572
26
+ cadecoder/storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
+ cadecoder/storage/threads.py,sha256=D-BAAZ-abmY4ugp-Um0xh1EG4n5z6ppDCpH2_XYGYbQ,17326
28
+ cadecoder/templates/login_failed.html,sha256=dTCPNcu-rWSVgHjdg1D77EXgAHzbqnHTFe7cyF92Aro,1026
29
+ cadecoder/templates/login_success.html,sha256=A9yMM4x-IP-wMan9MuknpCdgfyarxNLPMBlIvP2-Bc8,995
30
+ cadecoder/templates/styles.css,sha256=K4rCQh-U44pLB_Kc9Qhiv8TiYBPpJsYiXceCYt25Cks,1569
31
+ cadecoder/tools/__init__.py,sha256=b6_mAhqPIfWGdnFmha-H5uwJ1ux7w4gVmlW4AqcCusw,333
32
+ cadecoder/tools/builtin.py,sha256=GWFcr6A_OKs6oarx9KeE5kKl-Hgzp79YAbGdJxmLfco,21384
33
+ cadecoder/tools/filesystem.py,sha256=3Yfbm1xm40RdiMmm1nL9-a_PGj_xdP2LjMaPoPpRrnM,12399
34
+ cadecoder/tools/git.py,sha256=F_mY7NXya5U6WEZy0JIGnoqSLZmrCvu-Y5MkJ7wo40E,7301
35
+ cadecoder/tools/manager.py,sha256=d01bN16s0zTI4zsrRikG2C61Vi5X4oaEqXyeFkALsE4,60424
36
+ cadecoder/ui/__init__.py,sha256=t09Lo4va0TLgLor4LCQUwrz_y0tUBXmLeU8JPL6mweM,188
37
+ cadecoder/ui/display.py,sha256=0cHuVRnWTHxjJ2EFGUe_8qMo8wXXztMEFyldv457esI,10842
38
+ cadecoder/ui/input.py,sha256=0N9KVW9d3DjUiY3tglBprbjz8bKnQInxTRdqDZSw64Q,3747
39
+ cadecoder/ui/session.py,sha256=k8Rkl6PxBGdk3FaT1jSpP4iEYW14WF2mfP2U2QYp3k8,16575
40
+ cadecoder/ui/state.py,sha256=Dnyek8YPIrBsmrsVgTNOxTpMeJ1tTAIR3K6qUkhhIUs,459
41
+ cade_cli-0.3.3.dist-info/METADATA,sha256=Hu4PeHVMJSIvJAatUUcgSwaCFs3VV6hKr7o7kWzvghY,4199
42
+ cade_cli-0.3.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
43
+ cade_cli-0.3.3.dist-info/entry_points.txt,sha256=0soNk0KEoYl2beBUR5_JqKpkU-Ewzmuu8bGKmjmUDvs,47
44
+ cade_cli-0.3.3.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ cade = cadecoder.cli.app:app
cadecoder/__init__.py ADDED
@@ -0,0 +1 @@
1
+ __version__ = "0.1.0"
@@ -0,0 +1,6 @@
1
+ """AI module for CadeCoder.
2
+
3
+ This module provides AI integration functionality for code assistance.
4
+ """
5
+
6
+ __all__ = []