msapling-cli 0.1.2__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.
Files changed (38) hide show
  1. msapling_cli-0.1.2/LICENSE +21 -0
  2. msapling_cli-0.1.2/PKG-INFO +132 -0
  3. msapling_cli-0.1.2/README.md +89 -0
  4. msapling_cli-0.1.2/msapling_cli/__init__.py +2 -0
  5. msapling_cli-0.1.2/msapling_cli/agent.py +671 -0
  6. msapling_cli-0.1.2/msapling_cli/api.py +394 -0
  7. msapling_cli-0.1.2/msapling_cli/completer.py +415 -0
  8. msapling_cli-0.1.2/msapling_cli/config.py +56 -0
  9. msapling_cli-0.1.2/msapling_cli/local.py +133 -0
  10. msapling_cli-0.1.2/msapling_cli/main.py +1038 -0
  11. msapling_cli-0.1.2/msapling_cli/mcp/__init__.py +1 -0
  12. msapling_cli-0.1.2/msapling_cli/mcp/server.py +411 -0
  13. msapling_cli-0.1.2/msapling_cli/memory.py +97 -0
  14. msapling_cli-0.1.2/msapling_cli/session.py +102 -0
  15. msapling_cli-0.1.2/msapling_cli/shell.py +1583 -0
  16. msapling_cli-0.1.2/msapling_cli/storage.py +265 -0
  17. msapling_cli-0.1.2/msapling_cli/tier.py +78 -0
  18. msapling_cli-0.1.2/msapling_cli/tui.py +475 -0
  19. msapling_cli-0.1.2/msapling_cli/worker_pool.py +233 -0
  20. msapling_cli-0.1.2/msapling_cli.egg-info/PKG-INFO +132 -0
  21. msapling_cli-0.1.2/msapling_cli.egg-info/SOURCES.txt +36 -0
  22. msapling_cli-0.1.2/msapling_cli.egg-info/dependency_links.txt +1 -0
  23. msapling_cli-0.1.2/msapling_cli.egg-info/entry_points.txt +3 -0
  24. msapling_cli-0.1.2/msapling_cli.egg-info/requires.txt +24 -0
  25. msapling_cli-0.1.2/msapling_cli.egg-info/top_level.txt +1 -0
  26. msapling_cli-0.1.2/pyproject.toml +49 -0
  27. msapling_cli-0.1.2/setup.cfg +4 -0
  28. msapling_cli-0.1.2/tests/test_agent.py +165 -0
  29. msapling_cli-0.1.2/tests/test_api.py +89 -0
  30. msapling_cli-0.1.2/tests/test_config.py +57 -0
  31. msapling_cli-0.1.2/tests/test_local.py +92 -0
  32. msapling_cli-0.1.2/tests/test_mcp.py +59 -0
  33. msapling_cli-0.1.2/tests/test_memory.py +57 -0
  34. msapling_cli-0.1.2/tests/test_session.py +77 -0
  35. msapling_cli-0.1.2/tests/test_shell.py +92 -0
  36. msapling_cli-0.1.2/tests/test_storage.py +11 -0
  37. msapling_cli-0.1.2/tests/test_tier.py +108 -0
  38. msapling_cli-0.1.2/tests/test_tui.py +96 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MSapling
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.4
2
+ Name: msapling-cli
3
+ Version: 0.1.2
4
+ Summary: MSapling CLI - Multi-chat AI development environment in your terminal
5
+ Author: MSapling Team
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://msapling.com
8
+ Project-URL: Documentation, https://docs.msapling.com
9
+ Project-URL: Repository, https://github.com/Kandy00/CLI
10
+ Project-URL: Issues, https://github.com/Kandy00/CLI/issues
11
+ Keywords: ai,cli,chat,code,llm,multi-model
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Topic :: Software Development :: Code Generators
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: httpx>=0.25.0
25
+ Requires-Dist: rich>=13.0
26
+ Requires-Dist: typer>=0.9.0
27
+ Requires-Dist: pydantic>=2.0
28
+ Requires-Dist: pydantic-settings>=2.0
29
+ Requires-Dist: pyreadline3>=3.4; sys_platform == "win32"
30
+ Provides-Extra: keyring
31
+ Requires-Dist: keyring>=24.0; extra == "keyring"
32
+ Provides-Extra: tui
33
+ Requires-Dist: textual>=0.40.0; extra == "tui"
34
+ Provides-Extra: all
35
+ Requires-Dist: keyring>=24.0; extra == "all"
36
+ Requires-Dist: textual>=0.40.0; extra == "all"
37
+ Provides-Extra: dev
38
+ Requires-Dist: build>=1.2.0; extra == "dev"
39
+ Requires-Dist: pytest>=8.0; extra == "dev"
40
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
41
+ Requires-Dist: twine>=5.0.0; extra == "dev"
42
+ Dynamic: license-file
43
+
44
+ # MSapling CLI
45
+
46
+ Multi-chat AI development environment in your terminal. Chat with 200+ LLM models, run multi-model swarms, edit code with AI-generated diffs, and manage files from one command.
47
+
48
+ ## Install
49
+
50
+ ```bash
51
+ pip install msapling-cli
52
+ ```
53
+
54
+ From GitHub while developing:
55
+
56
+ ```bash
57
+ pip install git+https://github.com/Kandy00/CLI.git
58
+ ```
59
+
60
+ ## Quick Start
61
+
62
+ ```bash
63
+ # 1. Create a free account at https://msapling.com
64
+ # 2. Login
65
+ msapling login
66
+
67
+ # 3. Chat with any model
68
+ msapling chat "explain async/await in Python"
69
+
70
+ # 4. Interactive session
71
+ msapling chat -i
72
+
73
+ # 5. Scan your project
74
+ msapling scan .
75
+ ```
76
+
77
+ ## Commands
78
+
79
+ ### Free (no subscription needed)
80
+
81
+ | Command | What it does |
82
+ |---------|-------------|
83
+ | `msapling chat "prompt"` | Chat with free models (Gemini Flash, Haiku, Mini, Llama, Mistral) |
84
+ | `msapling chat -i` | Interactive chat session |
85
+ | `msapling scan .` | Detect project type, language, framework, and file stats |
86
+ | `msapling context .` | Build LLM-ready context from any project (local, no server) |
87
+ | `msapling git status` | Git with rich formatting |
88
+ | `msapling models` | List available models |
89
+ | `msapling projects` | List your projects |
90
+ | `msapling whoami` | Show account info and credits |
91
+ | `msapling diff old.py new.py` | Generate a unified diff between files |
92
+
93
+ ### Pro ($20/mo)
94
+
95
+ | Command | What it does |
96
+ |---------|-------------|
97
+ | `msapling chat -m gpt-4o "prompt"` | Chat with any model (GPT-4, Claude, Gemini Pro, and more) |
98
+ | `msapling multi "prompt"` | Send to multiple models in parallel and compare side-by-side |
99
+ | `msapling swarm "task"` | Run a multi-model swarm with judge synthesis |
100
+ | `msapling edit "instruction" file.py` | AI-driven file editing with diff preview |
101
+ | `msapling benchmark "prompt"` | Compare response speed, tokens, and cost across models |
102
+
103
+ ### MCP Server (for Claude Code / Cursor)
104
+
105
+ ```bash
106
+ msapling mcp-serve
107
+ ```
108
+
109
+ Add to Claude Code (`~/.claude/settings.json`):
110
+
111
+ ```json
112
+ {
113
+ "mcpServers": {
114
+ "msapling": {
115
+ "command": "msapling",
116
+ "args": ["mcp-serve"],
117
+ "env": { "MSAPLING_TOKEN": "your-token" }
118
+ }
119
+ }
120
+ }
121
+ ```
122
+
123
+ ## Diff Mode
124
+
125
+ CLI coding responses use diff mode by default. The AI returns unified diffs instead of full files, which keeps token usage down for coding workflows.
126
+
127
+ ## Links
128
+
129
+ - Website: https://msapling.com
130
+ - Pricing: https://msapling.com/pricing
131
+ - Docs: https://docs.msapling.com
132
+ - Repository: https://github.com/Kandy00/CLI
@@ -0,0 +1,89 @@
1
+ # MSapling CLI
2
+
3
+ Multi-chat AI development environment in your terminal. Chat with 200+ LLM models, run multi-model swarms, edit code with AI-generated diffs, and manage files from one command.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install msapling-cli
9
+ ```
10
+
11
+ From GitHub while developing:
12
+
13
+ ```bash
14
+ pip install git+https://github.com/Kandy00/CLI.git
15
+ ```
16
+
17
+ ## Quick Start
18
+
19
+ ```bash
20
+ # 1. Create a free account at https://msapling.com
21
+ # 2. Login
22
+ msapling login
23
+
24
+ # 3. Chat with any model
25
+ msapling chat "explain async/await in Python"
26
+
27
+ # 4. Interactive session
28
+ msapling chat -i
29
+
30
+ # 5. Scan your project
31
+ msapling scan .
32
+ ```
33
+
34
+ ## Commands
35
+
36
+ ### Free (no subscription needed)
37
+
38
+ | Command | What it does |
39
+ |---------|-------------|
40
+ | `msapling chat "prompt"` | Chat with free models (Gemini Flash, Haiku, Mini, Llama, Mistral) |
41
+ | `msapling chat -i` | Interactive chat session |
42
+ | `msapling scan .` | Detect project type, language, framework, and file stats |
43
+ | `msapling context .` | Build LLM-ready context from any project (local, no server) |
44
+ | `msapling git status` | Git with rich formatting |
45
+ | `msapling models` | List available models |
46
+ | `msapling projects` | List your projects |
47
+ | `msapling whoami` | Show account info and credits |
48
+ | `msapling diff old.py new.py` | Generate a unified diff between files |
49
+
50
+ ### Pro ($20/mo)
51
+
52
+ | Command | What it does |
53
+ |---------|-------------|
54
+ | `msapling chat -m gpt-4o "prompt"` | Chat with any model (GPT-4, Claude, Gemini Pro, and more) |
55
+ | `msapling multi "prompt"` | Send to multiple models in parallel and compare side-by-side |
56
+ | `msapling swarm "task"` | Run a multi-model swarm with judge synthesis |
57
+ | `msapling edit "instruction" file.py` | AI-driven file editing with diff preview |
58
+ | `msapling benchmark "prompt"` | Compare response speed, tokens, and cost across models |
59
+
60
+ ### MCP Server (for Claude Code / Cursor)
61
+
62
+ ```bash
63
+ msapling mcp-serve
64
+ ```
65
+
66
+ Add to Claude Code (`~/.claude/settings.json`):
67
+
68
+ ```json
69
+ {
70
+ "mcpServers": {
71
+ "msapling": {
72
+ "command": "msapling",
73
+ "args": ["mcp-serve"],
74
+ "env": { "MSAPLING_TOKEN": "your-token" }
75
+ }
76
+ }
77
+ }
78
+ ```
79
+
80
+ ## Diff Mode
81
+
82
+ CLI coding responses use diff mode by default. The AI returns unified diffs instead of full files, which keeps token usage down for coding workflows.
83
+
84
+ ## Links
85
+
86
+ - Website: https://msapling.com
87
+ - Pricing: https://msapling.com/pricing
88
+ - Docs: https://docs.msapling.com
89
+ - Repository: https://github.com/Kandy00/CLI
@@ -0,0 +1,2 @@
1
+ """MSapling CLI - Multi-chat AI development environment in your terminal."""
2
+ __version__ = "0.1.2"