lithora-cli 0.2.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.
@@ -0,0 +1,162 @@
1
+ Metadata-Version: 2.4
2
+ Name: lithora-cli
3
+ Version: 0.2.0
4
+ Summary: Command-line interface for the Lithora REST API (the agent-grade control plane)
5
+ Author-email: Lithora <support@lithora.io>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://lithora.io
8
+ Project-URL: Documentation, https://github.com/AADI0009/SaaS-App/tree/main/cli
9
+ Project-URL: Repository, https://github.com/AADI0009/SaaS-App
10
+ Project-URL: Issues, https://github.com/AADI0009/SaaS-App/issues
11
+ Project-URL: API, https://api.lithora.io
12
+ Keywords: lithora,cli,project-management,api,agent
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Classifier: Topic :: Utilities
25
+ Requires-Python: >=3.9
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: typer>=0.12
29
+ Requires-Dist: rich>=13
30
+ Requires-Dist: keyring>=24
31
+ Requires-Dist: lithora>=0.1
32
+ Provides-Extra: yaml
33
+ Requires-Dist: pyyaml>=6; extra == "yaml"
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest>=7; extra == "dev"
36
+ Requires-Dist: responses>=0.23; extra == "dev"
37
+ Dynamic: license-file
38
+
39
+ # lithora — the Lithora CLI
40
+
41
+ The terminal-native, agent-grade control plane for [Lithora](https://lithora.io).
42
+ Manage teams, projects, issues, automations — and drive the **confirmation-gated AI
43
+ agent** — without leaving your shell or your CI pipeline.
44
+
45
+ Built on the official [`lithora`](../sdk/python) Python SDK (one shared HTTP core,
46
+ nothing vendored). `v0.2` — **beta**.
47
+
48
+ ## Install
49
+
50
+ ```bash
51
+ pipx install lithora-cli # recommended (isolated)
52
+ # or
53
+ pip install lithora-cli
54
+ ```
55
+
56
+ This installs the `lithora` command. Requires Python 3.9+. Optional: `keyring`
57
+ (used automatically for OS-keychain token storage; falls back to a 600-mode file).
58
+
59
+ ## Quickstart (every command here is real)
60
+
61
+ ```bash
62
+ # 1. Point at your API (defaults to https://api.lithora.io)
63
+ export LITHORA_BASE_URL=http://localhost:8000 # optional, local dev
64
+
65
+ # 2. Log in (password is prompted securely; token → OS keychain or 600-mode file)
66
+ lithora login --email you@example.com
67
+ lithora whoami
68
+ lithora doctor # diagnose auth/connectivity
69
+
70
+ # 3. Projects & issues
71
+ lithora teams list
72
+ lithora projects create --name "Q3 Launch" --team <team_id>
73
+ lithora tasks create --title "Wire up billing" --project <project_id> --priority high
74
+ lithora tasks list --project <project_id> --status todo
75
+ lithora tasks status <task_id> in_progress
76
+
77
+ # 4. The AI agent — propose → approve in the terminal → apply
78
+ lithora ai "break the autosave issue into a parent task and subtasks"
79
+ # → renders the plan, asks "Approve? [y]es / [n]o", then applies on approval.
80
+
81
+ # 5. Automations, GitHub, the work graph
82
+ lithora automations list
83
+ lithora automations execute <automation_id>
84
+ lithora work-items graph --team <team_id>
85
+ lithora work-items pr-status <task_id>
86
+ ```
87
+
88
+ ## The confirmation gate (the keystone)
89
+
90
+ The agent **never writes without your approval**. `lithora ai "<prompt>"` shows the
91
+ proposed plan and waits:
92
+
93
+ ```
94
+ ACTION PLAN (requires confirmation)
95
+ 1. + task: Add autosave to the editor [acme/web#418]
96
+ - subtask: Persist drafts to localStorage
97
+ - subtask: Debounced autosave on change
98
+ Summary: Agent will create 1 task + 3 subtasks
99
+ Approve? [y]es / [n]o:
100
+ ```
101
+
102
+ - **Interactive:** `y` applies it, `n` discards it.
103
+ - **CI / non-interactive:** add `--yes` to auto-approve, e.g.
104
+ `lithora ai chat "<prompt>" --yes` (the plan is still printed first). `lithora ai
105
+ "<prompt>"` is shorthand for `lithora ai chat`, so the flag works on both forms.
106
+ Without a TTY and without `--yes`, the CLI **refuses to write** and exits `2` —
107
+ so an unattended run can never silently mutate your workspace.
108
+ - **Overnight digests:** `lithora ai pending` lists plans the scheduled triage agent
109
+ staged; approve one with `lithora ai confirm <action_id> --session <sid>`.
110
+
111
+ ## Output & scripting
112
+
113
+ ```bash
114
+ lithora tasks list --project P -o json | jq '.tasks[].title' # stable JSON
115
+ lithora -o json automations list # machine-readable
116
+ ```
117
+
118
+ - `--output table` (default, colorized on a TTY) · `--output json` (stable, for CI) · `--output yaml`.
119
+ - **Exit codes:** `0` ok · `2` usage / confirmation-needed · `3` auth · `4` not-found ·
120
+ `5` conflict · `22` invalid input · `130` interrupted.
121
+
122
+ ## Profiles, config & tokens
123
+
124
+ ```bash
125
+ lithora profile list
126
+ lithora --profile work whoami # target a different account/org
127
+ lithora token create --name "GitHub CI" --scope tasks:write --expires-in-days 90
128
+ lithora token list
129
+ lithora token revoke <token_id>
130
+ ```
131
+
132
+ - Config lives in `~/.lithora/config.json` (dir `700` / file `600`). The bearer token
133
+ is stored in your **OS keychain** when available, else the 600-mode file.
134
+ - Precedence: **flag > env (`LITHORA_TOKEN`/`LITHORA_BASE_URL`/`LITHORA_PROFILE`) > profile > default**.
135
+ - The password is never accepted as a flag value (argv/history leak). Use the prompt
136
+ or `--password-stdin` in CI.
137
+
138
+ ## CI example (GitHub Actions)
139
+
140
+ ```yaml
141
+ - name: Create a Lithora issue from a failing build
142
+ if: failure()
143
+ env:
144
+ LITHORA_TOKEN: ${{ secrets.LITHORA_PAT }} # a scoped PAT (lithora token create)
145
+ run: |
146
+ pipx install lithora-cli
147
+ lithora tasks create --title "CI failed on ${{ github.sha }}" \
148
+ --project "$LITHORA_PROJECT" --priority high -o json
149
+ ```
150
+
151
+ ## Command map
152
+
153
+ `login` · `logout` · `whoami` · `doctor` · `--version`
154
+ `teams` · `projects` · `tasks` · `work-items` · `automations` · `github` · `search`
155
+ `ai` (chat / pending / confirm / sessions) · `token` · `profile`
156
+
157
+ Run `lithora <group> --help` for the full surface. See
158
+ [`EXPANSION_PLAN.md`](EXPANSION_PLAN.md) for the roadmap.
159
+
160
+ ## License
161
+
162
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,21 @@
1
+ lithora_cli/__init__.py,sha256=bRFM1IG7zngPlyBjTi5PbwaehUOEdNEZcVW3svFsvuM,105
2
+ lithora_cli/config.py,sha256=iwc5iJAqEgoOWiLqSgkp6THF-zfZNmfzW8WfsfGgyE8,6156
3
+ lithora_cli/main.py,sha256=SC-AWXIKyFRYYHEWv7uvnkSqV1Ai6blKrIN8a90fJ_E,6202
4
+ lithora_cli/output.py,sha256=pLNpLCsleBVcxXkoEPcRhs63nmey2hCaRa9VXTV1Zmg,4802
5
+ lithora_cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ lithora_cli/commands/_common.py,sha256=L8lccmgKZJY2rtS2wMH-tLeZV8UeX6rNKOZhkQ5Y9DQ,1265
7
+ lithora_cli/commands/account.py,sha256=SLieFGCEjytEF0ITCjI-KT7Rvss0ovBW1VzRJKC9sH4,2550
8
+ lithora_cli/commands/ai.py,sha256=DXzEmB6B1jwhqa2YBoFE41XNrw3L0bR3mcQbo1xT7jw,7573
9
+ lithora_cli/commands/automations.py,sha256=WXymrvfHPCDOS65dLKN3j8M9dTJIUdIPcnVhwva6l4U,3779
10
+ lithora_cli/commands/github.py,sha256=Ql98mQ1h3paczIk1d-TkeBzU28soSPcVccbz2umcFYM,953
11
+ lithora_cli/commands/projects.py,sha256=dZsDFwCSq06O0vw8r8Ca7O4RaHWiu-1LIP8zs-w9eEY,2271
12
+ lithora_cli/commands/search.py,sha256=jzAYB35OkW-_f6YgObWd0_KkPGYmTKafUaAZ65YSgOw,771
13
+ lithora_cli/commands/tasks.py,sha256=OVKneJbzvboRzPt9n0bMWz-x9Mw44BvBpz2LY2f2d5Y,4087
14
+ lithora_cli/commands/teams.py,sha256=rMFeJukzi19xBGRdQBgp4NLz8hLzeON7szpSlfLQ1-k,1195
15
+ lithora_cli/commands/work_items.py,sha256=cVH8UGONxnvHyAwSzFVja8NNf867lKEMTKwyvEDgreA,2208
16
+ lithora_cli-0.2.0.dist-info/licenses/LICENSE,sha256=6hcIuymrx4bZHSpqEg3kj6BworYuy9CZ7QD3ghNTXj4,1064
17
+ lithora_cli-0.2.0.dist-info/METADATA,sha256=CgbXM7Jq6SAyJlq3BUDlBA8DiH73fAPuUxCSvGWV3rY,6173
18
+ lithora_cli-0.2.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
19
+ lithora_cli-0.2.0.dist-info/entry_points.txt,sha256=VtAhf22I-RozYoqm3eV9LrgYB-M3EwiG8n7E1p308TE,50
20
+ lithora_cli-0.2.0.dist-info/top_level.txt,sha256=SZ6tDpCUyWUQSXVxgloryxQA4oKybeCD9OZJ3TWYg0s,12
21
+ lithora_cli-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ lithora = lithora_cli.main:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lithora
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 @@
1
+ lithora_cli