@pithosai/pithosai 1.0.5 → 1.0.7
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.
- package/README.md +56 -10
- package/dist/cosai.mjs +105 -104
- package/dist/heartbeat.mjs +105 -104
- package/dist/mktai.mjs +105 -104
- package/dist/pithosai.mjs +105 -104
- package/dist/pmsai.mjs +105 -104
- package/dist/qasai.mjs +105 -104
- package/dist/rdsai.mjs +105 -104
- package/dist/render-markdown.mjs +2 -2
- package/dist/wrsai.mjs +105 -104
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,14 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## What's
|
|
7
|
+
## What's new in v1.0.7
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- **Device-tied protection:** Database protection is tied to your machine, reducing the risk of copied files being opened elsewhere.
|
|
11
|
-
- **Safer release logging defaults:** Packaged releases now default to `INFO` logging to reduce unnecessary verbose output in normal usage.
|
|
12
|
-
- **Controlled Markdown terminal output:** `render-markdown` now supports pager-based scrolling by default, with explicit `--show-all` when full direct terminal output is desired.
|
|
9
|
+
**Models and cost**
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
- **Cost-first default:** with **`DEEPSEEK_API_KEY`**, regular runs use **`deepseek-v4-flash`**; **`--pro`** uses **`deepseek-v4-pro`**; **`--reasoner`** uses the pro model with reasoning enabled; **`--chat`** explicitly selects flash.
|
|
12
|
+
- **Interactive `/model`** lists and switches available model keys.
|
|
13
|
+
- **Aliases:** `deepSeekPro` → `deepSeekCoder`, `deepSeekFlash` → `deepSeekChat` (older keys still work).
|
|
14
|
+
- **Native DeepSeek chat/coder:** requests send **`thinking: { type: "disabled" }`** so the provider’s default [thinking mode](https://api-docs.deepseek.com/guides/thinking_mode) does not force **`reasoning_content`** replay on tool-heavy turns (avoids **400** API errors). **`deepSeekReasoner`** is unchanged (thinking stays on).
|
|
15
|
+
|
|
16
|
+
**CLI and install**
|
|
17
|
+
|
|
18
|
+
- **Optional startup auto-upgrade:** checks npm for a newer **`@pithosai/pithosai`** (at most **once per 24 hours**, state in **`~/.pithosai/auto-upgrade-check.json`**), can install **`@latest`** globally, uses the **same resolved CLI language** as help and prompts, and reminds you the **current process is still the old build** until you run `pithosai` again. In a **TTY** when the full-screen agent TUI will start, it **waits for Enter** so upgrade lines are not lost. Set **`PITHOSAI_AUTO_UPGRADE=0`** (or `false` / `no` / `off`) to disable checks entirely.
|
|
19
|
+
- **`render-markdown`:** the built **`dist/render-markdown.mjs`** entry is fixed so direct execution prints output correctly.
|
|
20
|
+
|
|
21
|
+
**Interactive REPL**
|
|
22
|
+
|
|
23
|
+
- Exit with **`/exit`** or **`/quit`** only; plain `exit` / `quit` are sent to the agent as normal messages.
|
|
24
|
+
|
|
25
|
+
**Earlier in v1.0.5:** Encrypted global DB migration, device-bound SQLCipher keys, safer default logging — see **CHANGELOG** `[1.0.5]` and the upgrade subsection below.
|
|
15
26
|
|
|
16
27
|
---
|
|
17
28
|
|
|
@@ -32,7 +43,7 @@ On a **global** install, the package runs a one-time step: if `~/.pithosai/pitho
|
|
|
32
43
|
| You run | Purpose |
|
|
33
44
|
|--------|---------|
|
|
34
45
|
| `pithosai` | Main CLI: `init`, `migrate-db`, interactive agent, `task`, `heartbeat`, `skills`, `memorize`, and more. |
|
|
35
|
-
| `rdsai`, `pmsai`, `qasai`, `cosai`, `mktai`, `wrsai` | Same CLI with a **default role** (e.g. RD, PM, QA). |
|
|
46
|
+
| `rdsai`, `pmsai`, `qasai`, `cosai`, `mktai`, `wrsai` | Same CLI with a **default role** (e.g. RD, PM, QA). See [Role entrypoints and models](#role-entrypoints-and-models) below. |
|
|
36
47
|
| `email-monitor` | Heartbeat / email-driven task loop (`heartbeat` bundle). |
|
|
37
48
|
| `render-markdown` | Render Markdown files in the terminal. |
|
|
38
49
|
| `init` | Manually initialize `~/.pithosai/pithosai.db` if needed (usually automatic after global install). |
|
|
@@ -47,7 +58,17 @@ Configure **at least one** of:
|
|
|
47
58
|
|
|
48
59
|
2. **OpenRouter** — `export OPENROUTER_API_KEY=sk-or-...`
|
|
49
60
|
|
|
50
|
-
3. **
|
|
61
|
+
3. **Ollama (local models)** — install Ollama on your machine, run a model, and set:
|
|
62
|
+
```bash
|
|
63
|
+
export OPENAI_LOCAL_API_BASE=http://localhost:11434/v1
|
|
64
|
+
```
|
|
65
|
+
Example local setup:
|
|
66
|
+
```bash
|
|
67
|
+
ollama run qwen2.5-coder:14b
|
|
68
|
+
export OPENAI_LOCAL_API_BASE=http://localhost:11434/v1
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
4. **Cursor CLI** (last resort)
|
|
51
72
|
```bash
|
|
52
73
|
curl https://cursor.com/install -fsS | bash
|
|
53
74
|
cursor-agent login
|
|
@@ -55,7 +76,28 @@ Configure **at least one** of:
|
|
|
55
76
|
```
|
|
56
77
|
Use **`pithosai "your request" --cursor`** or set `CURSOR_MODEL`.
|
|
57
78
|
|
|
58
|
-
**Precedence:** DeepSeek → OpenRouter → `CURSOR_MODEL` / `--cursor`.
|
|
79
|
+
**Precedence:** DeepSeek → Ollama (`OPENAI_LOCAL_API_BASE`) → OpenRouter → `CURSOR_MODEL` / `--cursor`.
|
|
80
|
+
|
|
81
|
+
### DeepSeek API (V4)
|
|
82
|
+
|
|
83
|
+
When using **`DEEPSEEK_API_KEY`** (native `https://api.deepseek.com`), the CLI maps runs to **DeepSeek-V4** model ids:
|
|
84
|
+
|
|
85
|
+
| Your choice | API model id | Typical use |
|
|
86
|
+
|-------------|----------------|-------------|
|
|
87
|
+
| Default (e.g. `pithosai`, `rdsai`, no `--pro` / `--reasoner`) | **`deepseek-v4-flash`** | Lower-cost daily coding and regular tasks |
|
|
88
|
+
| **`--pro`** | **`deepseek-v4-pro`** | Higher quality coding output for harder tasks |
|
|
89
|
+
| **`--chat`** | **`deepseek-v4-flash`** | Explicit chat-style low-cost path |
|
|
90
|
+
| **`--reasoner`** | **`deepseek-v4-pro`** with reasoning / thinking enabled | Longer chains-of-thought style replies |
|
|
91
|
+
|
|
92
|
+
Legacy ids **`deepseek-chat`** and **`deepseek-reasoner`** are being retired by the provider; see [DeepSeek API docs](https://api-docs.deepseek.com/) for current parameters (including thinking mode). For extended chain-of-thought on native DeepSeek, use **`--reasoner`** / **`deepSeekReasoner`**; the default flash/coder paths disable API thinking so agent tool loops stay reliable.
|
|
93
|
+
|
|
94
|
+
With **`OPENROUTER_API_KEY`** only, the same logical paths use OpenRouter slugs **`deepseek/deepseek-v4-flash`** (default) and **`deepseek/deepseek-v4-pro`** (`--pro` / `--reasoner`).
|
|
95
|
+
|
|
96
|
+
### Role entrypoints and models
|
|
97
|
+
|
|
98
|
+
- **`rdsai`** — default role **RD**, default model path (**`deepseek-v4-flash`** unless you pass `--pro` / `--reasoner`).
|
|
99
|
+
- **`pmsai`**, **`qasai`**, **`cosai`**, **`mktai`** — set role **PM** / **QA** / **CO** / **MKT** and pass **`--chat`**, so the **chat (flash)** model above is used for those binaries without extra flags.
|
|
100
|
+
- **`wrsai`** — runs the **`task`** command with role **WR** and default language **zh** (model follows normal `task` / env resolution for that run).
|
|
59
101
|
|
|
60
102
|
---
|
|
61
103
|
|
|
@@ -68,9 +110,11 @@ pithosai "Describe what you want done"
|
|
|
68
110
|
```
|
|
69
111
|
|
|
70
112
|
- **`pithosai -i`** — interactive session with no initial prompt.
|
|
113
|
+
- In that interactive loop, type **`/exit`** or **`/quit`** to leave the CLI (plain `exit` is treated as a normal message to the agent).
|
|
71
114
|
- **`pithosai --no-interactive "…"`** — one shot, then exit.
|
|
72
115
|
- **`pithosai -C ./other-dir "…"`** — use another project directory.
|
|
73
116
|
- Every CLI invocation prints a cyan ASCII `pithosai` slogan banner first.
|
|
117
|
+
- On startup, `pithosai` may check npm for the latest `@pithosai/pithosai` version (at most **once per 24 hours**, tracked in `~/.pithosai/auto-upgrade-check.json`) and auto-runs `npm install -g @pithosai/pithosai@latest` when a newer release is found. Upgrade notices use the **same resolved CLI language** as help and prompts (project settings, `--lang`, or terminal locale). After an upgrade, **this process still runs the old build** until you run `pithosai` again. In a **TTY** session (same conditions as the full-screen agent TUI), it asks you to **press Enter** so those lines are not lost when the TUI starts. Set **`PITHOSAI_AUTO_UPGRADE=0`** (or `false` / `no` / `off`) to skip checks entirely.
|
|
74
118
|
|
|
75
119
|
Prompts load from a local database (default `~/.pithosai/pithosai.db`). Optional role overrides live under `.pithosai/<role>/` in your project.
|
|
76
120
|
|
|
@@ -148,7 +192,7 @@ Use **`pithosai --help`** and **`pithosai <command> --help`** for flags (`--time
|
|
|
148
192
|
|
|
149
193
|
## Interactive session (short)
|
|
150
194
|
|
|
151
|
-
In a normal terminal, the default UI uses a **full-screen TUI** (bottom input, scrolling transcript). **`Ctrl+S`** stops a run; **`Ctrl+P`** pauses. Slash commands include `/shell`, `/list`, `/show-task`, `/show-prompt`, and skill helpers. Set **`PITHOSAI_NO_TUI=1`** for a classic line-based prompt (e.g. scripts or minimal terminals).
|
|
195
|
+
In a normal terminal, the default UI uses a **full-screen TUI** (bottom input, scrolling transcript). **`Ctrl+S`** stops a run; **`Ctrl+P`** pauses. Slash commands include `/model`, `/shell`, `/list`, `/show-task`, `/show-prompt`, and skill helpers. Set **`PITHOSAI_NO_TUI=1`** for a classic line-based prompt (e.g. scripts or minimal terminals).
|
|
152
196
|
|
|
153
197
|
---
|
|
154
198
|
|
|
@@ -158,7 +202,9 @@ In a normal terminal, the default UI uses a **full-screen TUI** (bottom input, s
|
|
|
158
202
|
|----------|------|
|
|
159
203
|
| `CURSOR_MODEL`, `CURSOR_AGENT_BIN` | Cursor CLI integration |
|
|
160
204
|
| `DEEPSEEK_API_KEY`, `OPENROUTER_API_KEY` | API providers |
|
|
205
|
+
| `OPENAI_LOCAL_API_BASE` | Local Ollama endpoint (requires local Ollama install) |
|
|
161
206
|
| `PITHOSAI_DB_PATH` | SQLite DB path (default `~/.pithosai/pithosai.db`) |
|
|
207
|
+
| `PITHOSAI_AUTO_UPGRADE` | Set to `0` / `false` / `no` / `off` to disable startup version check and global auto-install |
|
|
162
208
|
| `PITHOSAI_SKIP_RESULT_BROWSER` | Skip markdown preview (e.g. CI) |
|
|
163
209
|
| `PITHOSAI_RESULT_BROWSER` | `chrome` for Playwright browser preview |
|
|
164
210
|
| `PITHOSAI_TIMEOUT_MS` / `--timeout` | Run time limits |
|