autopreso 0.1.4 → 0.1.6
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 +9 -2
- package/assets/autopreso.png +0 -0
- package/package.json +2 -1
- package/public/app.js +631 -161
- package/public/style.css +70 -0
- package/src/agent-provider.js +9 -2
- package/src/cli.js +1 -0
- package/src/openai-transcription.js +113 -32
- package/src/server.js +87 -8
- package/src/session-cost.js +128 -0
- package/src/settings-store.js +5 -2
- package/src/whiteboard-session.js +28 -0
package/README.md
CHANGED
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
<h3 align="center">Let the whiteboard whiteboard itself.</h3>
|
|
13
13
|
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/kunchenguid/autopreso/main/assets/autopreso.png" alt="autopreso whiteboard hero screenshot" width="960" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
14
18
|
> [!WARNING]
|
|
15
19
|
> autopreso is in **alpha** and under active development. Expect rough edges, breaking changes, and the occasional weird drawing. Bug reports welcome.
|
|
16
20
|
|
|
@@ -101,6 +105,8 @@ npm start
|
|
|
101
105
|
|
|
102
106
|
Settings persist at `~/.config/autopreso/settings.json` and are managed from the in-app status panel.
|
|
103
107
|
Agent instructions are saved automatically from staging, can be up to 100,000 characters, and take effect on the next Start Preso.
|
|
108
|
+
The live Session cost card estimates agent token costs and OpenAI Realtime audio costs for the current presentation, resetting on Start Preso or session reset.
|
|
109
|
+
OpenAI prices use the built-in May 2026 rate table; local providers show `$0.0000`, Codex shows token volume because it routes through your subscription, and unknown models show `n/a`.
|
|
104
110
|
|
|
105
111
|
### Defaults on first run
|
|
106
112
|
|
|
@@ -110,8 +116,8 @@ When no settings file exists, autopreso picks providers based on what it finds i
|
|
|
110
116
|
| ------------------------------------------ | ------------------------------ | -------------------------- |
|
|
111
117
|
| Nothing | OpenAI `gpt-5.5` (needs a key) | Moonshine `medium` (macOS) |
|
|
112
118
|
| `OPENAI_API_KEY` in env | OpenAI `gpt-5.5` | OpenAI Realtime |
|
|
113
|
-
| Codex CLI signed in (`~/.codex/auth.json`) | Codex `gpt-5.5`
|
|
114
|
-
| Codex CLI signed in + `OPENAI_API_KEY` | Codex `gpt-5.5`
|
|
119
|
+
| Codex CLI signed in (`~/.codex/auth.json`) | Codex `gpt-5.5-fast` | Moonshine `medium` |
|
|
120
|
+
| Codex CLI signed in + `OPENAI_API_KEY` | Codex `gpt-5.5-fast` | OpenAI Realtime |
|
|
115
121
|
| `OLLAMA_MODEL` set | Ollama (your model) | Moonshine `medium` |
|
|
116
122
|
|
|
117
123
|
Auto-detection precedence: **Codex CLI auth wins over `OLLAMA_MODEL` wins over `OPENAI_API_KEY`** for the agent. Transcription flips to OpenAI Realtime any time an OpenAI key is present, otherwise Moonshine. After first run, this auto-detection no longer applies - change providers from the in-app status panel.
|
|
@@ -125,6 +131,7 @@ Provider variables only seed `settings.json` on first run. Once the file exists,
|
|
|
125
131
|
| `PORT` | Port to listen on. Default: `3210`. |
|
|
126
132
|
| `OPENAI_API_KEY` | Seeds the OpenAI key for both agent and Realtime STT. |
|
|
127
133
|
| `OPENAI_MODEL` | Seeds the OpenAI agent model. |
|
|
134
|
+
| `OPENAI_BASE_URL` | Seeds the OpenAI agent API base URL. |
|
|
128
135
|
| `CODEX_MODEL` | Seeds the Codex model. |
|
|
129
136
|
| `OLLAMA_MODEL` | Seeds the Ollama model. |
|
|
130
137
|
| `AUTOPRESO_CACHE_LOG` | Cache usage log path. Default: `~/.config/autopreso/logs/cache.log`. |
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autopreso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Realtime speech to presentation. Let the whiteboard whiteboard itself.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kun Chen <kun@kunchenguid.com>",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"autopreso": "src/cli.js"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
|
+
"assets/",
|
|
35
36
|
"LICENSE",
|
|
36
37
|
"public/",
|
|
37
38
|
"src/"
|