litepaseo 0.3.0 → 0.3.1
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/CHANGELOG.md +29 -0
- package/README.md +22 -5
- package/dist/server/cli.mjs +650 -32
- package/dist/web/assets/{CodeBlockNode-D-c_NpDN.js → CodeBlockNode-fLbELjCG.js} +1 -1
- package/dist/web/assets/CodeBlockNode-fLbELjCG.js.br +0 -0
- package/dist/web/assets/CodeBlockNode-fLbELjCG.js.gz +0 -0
- package/dist/web/assets/{FileViewer-C6rgOMRo.js → FileViewer-C7zGfiFt.js} +1 -1
- package/dist/web/assets/FileViewer-C7zGfiFt.js.br +0 -0
- package/dist/web/assets/FileViewer-C7zGfiFt.js.gz +0 -0
- package/dist/web/assets/{FilesPanel-CNkBvKGD.js → FilesPanel-B1YfdWK8.js} +1 -1
- package/dist/web/assets/FilesPanel-B1YfdWK8.js.br +0 -0
- package/dist/web/assets/FilesPanel-B1YfdWK8.js.gz +0 -0
- package/dist/web/assets/{MarkdownMessage-DjRNZCD0.js → MarkdownMessage-C30PkBRA.js} +5 -5
- package/dist/web/assets/MarkdownMessage-C30PkBRA.js.br +0 -0
- package/dist/web/assets/MarkdownMessage-C30PkBRA.js.gz +0 -0
- package/dist/web/assets/{PreCodeBlock-BitPoeXT.js → PreCodeBlock-3ozveRNf.js} +1 -1
- package/dist/web/assets/{PreCodeBlock.vue_vue_type_style_index_0_lang-DVJqSz-5.js → PreCodeBlock.vue_vue_type_style_index_0_lang-BPnMZFbo.js} +1 -1
- package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-BPnMZFbo.js.br +0 -0
- package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-BPnMZFbo.js.gz +0 -0
- package/dist/web/assets/{TerminalPanel-CpGnkfa7.js → TerminalPanel-BR2okuCE.js} +1 -1
- package/dist/web/assets/TerminalPanel-BR2okuCE.js.br +0 -0
- package/dist/web/assets/TerminalPanel-BR2okuCE.js.gz +0 -0
- package/dist/web/assets/{Tooltip-C9GHriiI.js → Tooltip-Dh7ELGI1.js} +1 -1
- package/dist/web/assets/Tooltip-Dh7ELGI1.js.br +0 -0
- package/dist/web/assets/Tooltip-Dh7ELGI1.js.gz +0 -0
- package/dist/web/assets/index-BJ4CkuXT.js +30 -0
- package/dist/web/assets/index-BJ4CkuXT.js.br +0 -0
- package/dist/web/assets/index-BJ4CkuXT.js.gz +0 -0
- package/dist/web/assets/{index-Wf4Xa0ob.css → index-CaFqUnEO.css} +1 -1
- package/dist/web/assets/index-CaFqUnEO.css.br +0 -0
- package/dist/web/assets/index-CaFqUnEO.css.gz +0 -0
- package/dist/web/assets/{index10-QexvIpKb.js → index10-BXOnBXXV.js} +1 -1
- package/dist/web/assets/index10-BXOnBXXV.js.br +0 -0
- package/dist/web/assets/index10-BXOnBXXV.js.gz +0 -0
- package/dist/web/assets/index3-C1CbKHXb.js +1 -0
- package/dist/web/assets/index4-CE4EA6Rx.js +1 -0
- package/dist/web/assets/{index5-DaBM1kaC.js → index5-BrR0S3K6.js} +1 -1
- package/dist/web/assets/index5-BrR0S3K6.js.br +0 -0
- package/dist/web/assets/index5-BrR0S3K6.js.gz +0 -0
- package/dist/web/assets/{index6-1dcCVob7.js → index6-DWBoE2gM.js} +1 -1
- package/dist/web/assets/index6-DWBoE2gM.js.br +0 -0
- package/dist/web/assets/index6-DWBoE2gM.js.gz +0 -0
- package/dist/web/assets/{index7-DGSFcnYT.js → index7-CoJTOvQ5.js} +1 -1
- package/dist/web/assets/index7-CoJTOvQ5.js.br +0 -0
- package/dist/web/assets/index7-CoJTOvQ5.js.gz +0 -0
- package/dist/web/assets/{index8-BjPxjipz.js → index8-CQGhir4p.js} +1 -1
- package/dist/web/assets/index8-CQGhir4p.js.br +0 -0
- package/dist/web/assets/index8-CQGhir4p.js.gz +0 -0
- package/dist/web/assets/{index9-VNQsX15e.js → index9-D_kItRZJ.js} +1 -1
- package/dist/web/assets/index9-D_kItRZJ.js.br +0 -0
- package/dist/web/assets/index9-D_kItRZJ.js.gz +0 -0
- package/dist/web/index.html +2 -2
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/docs/cloudflare-access.md +111 -0
- package/package.json +4 -1
- package/dist/web/assets/CodeBlockNode-D-c_NpDN.js.br +0 -0
- package/dist/web/assets/CodeBlockNode-D-c_NpDN.js.gz +0 -0
- package/dist/web/assets/FileViewer-C6rgOMRo.js.br +0 -0
- package/dist/web/assets/FileViewer-C6rgOMRo.js.gz +0 -0
- package/dist/web/assets/FilesPanel-CNkBvKGD.js.br +0 -0
- package/dist/web/assets/FilesPanel-CNkBvKGD.js.gz +0 -0
- package/dist/web/assets/MarkdownMessage-DjRNZCD0.js.br +0 -0
- package/dist/web/assets/MarkdownMessage-DjRNZCD0.js.gz +0 -0
- package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DVJqSz-5.js.br +0 -0
- package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DVJqSz-5.js.gz +0 -0
- package/dist/web/assets/TerminalPanel-CpGnkfa7.js.br +0 -0
- package/dist/web/assets/TerminalPanel-CpGnkfa7.js.gz +0 -0
- package/dist/web/assets/Tooltip-C9GHriiI.js.br +0 -0
- package/dist/web/assets/Tooltip-C9GHriiI.js.gz +0 -0
- package/dist/web/assets/index-D4mQel3H.js +0 -30
- package/dist/web/assets/index-D4mQel3H.js.br +0 -0
- package/dist/web/assets/index-D4mQel3H.js.gz +0 -0
- package/dist/web/assets/index-Wf4Xa0ob.css.br +0 -0
- package/dist/web/assets/index-Wf4Xa0ob.css.gz +0 -0
- package/dist/web/assets/index10-QexvIpKb.js.br +0 -0
- package/dist/web/assets/index10-QexvIpKb.js.gz +0 -0
- package/dist/web/assets/index3-B9LRPNVQ.js +0 -1
- package/dist/web/assets/index4-CTBFr99S.js +0 -1
- package/dist/web/assets/index5-DaBM1kaC.js.br +0 -0
- package/dist/web/assets/index5-DaBM1kaC.js.gz +0 -0
- package/dist/web/assets/index6-1dcCVob7.js.br +0 -0
- package/dist/web/assets/index6-1dcCVob7.js.gz +0 -0
- package/dist/web/assets/index7-DGSFcnYT.js.br +0 -0
- package/dist/web/assets/index7-DGSFcnYT.js.gz +0 -0
- package/dist/web/assets/index8-BjPxjipz.js.br +0 -0
- package/dist/web/assets/index8-BjPxjipz.js.gz +0 -0
- package/dist/web/assets/index9-VNQsX15e.js.br +0 -0
- package/dist/web/assets/index9-VNQsX15e.js.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Faster voice input
|
|
6
|
+
|
|
7
|
+
- Voice input uploads audio while recording. Compatible services use Realtime transcription;
|
|
8
|
+
file-only services transcribe phrases during pauses so earlier speech is processed before
|
|
9
|
+
recording ends. Partial text appears above the composer; stopping inserts the final result.
|
|
10
|
+
- Cancel stops microphone capture and pending transcription. Voice sessions use one-use
|
|
11
|
+
tickets, expire with sign-in sessions, and keep API credentials on the server.
|
|
12
|
+
- Completion logs include audio duration, first-text latency, and time from Stop to final
|
|
13
|
+
text, without recording audio or transcript content.
|
|
14
|
+
|
|
15
|
+
### Sign-in hardening
|
|
16
|
+
|
|
17
|
+
- Fixed: with authenticator sign-in off, a bearer token in the `Authorization` header was checked
|
|
18
|
+
without any limit on failed attempts. Bearer tokens now share the sign-in failure budget, and
|
|
19
|
+
are accepted only on direct connections: never through Cloudflare Tunnel or another proxy,
|
|
20
|
+
where only browser sign-in admits anyone. Upgrade if LitePaseo is reachable from the internet.
|
|
21
|
+
- `litepaseo token set` chooses your own access token (at least 16 characters, typed without
|
|
22
|
+
echo or read from standard input); `litepaseo token rotate` replaces it with a new random one.
|
|
23
|
+
Both take effect in the running server without a restart, sign out every browser, and end
|
|
24
|
+
open streams that used the old token.
|
|
25
|
+
- New guide: [Protecting LitePaseo with Cloudflare Access](docs/cloudflare-access.md), including
|
|
26
|
+
the bypass rule that keeps app install and notifications working.
|
|
27
|
+
|
|
28
|
+
**Upgrading from 0.3.0:** existing transcription settings and model selection are preserved.
|
|
29
|
+
Reverse proxies must allow WebSocket upgrades on `/api/dictation/stream`. Scripts that sent the
|
|
30
|
+
bearer token through a tunnel or proxy must sign in instead or run on the LitePaseo machine.
|
|
31
|
+
|
|
3
32
|
## 0.3.0
|
|
4
33
|
|
|
5
34
|
### Voice input, configured once in LitePaseo
|
package/README.md
CHANGED
|
@@ -90,7 +90,10 @@ port on your machine.
|
|
|
90
90
|
3. Open `https://agents.example.com` and sign in with your LitePaseo access token.
|
|
91
91
|
|
|
92
92
|
Keep LitePaseo's default localhost binding; Cloudflare handles HTTPS in front of
|
|
93
|
-
it.
|
|
93
|
+
it. A signed-in session can run commands through your agents, so on a public
|
|
94
|
+
hostname also enable **Cloudflare Access** and an authenticator code: see
|
|
95
|
+
[Protecting LitePaseo with Cloudflare Access](docs/cloudflare-access.md). Push
|
|
96
|
+
notifications keep working behind Access. An existing HTTPS reverse proxy works too, provided it supports streaming
|
|
94
97
|
responses (SSE) without buffering.
|
|
95
98
|
|
|
96
99
|
### Phone app & notifications
|
|
@@ -105,14 +108,24 @@ Optional two-factor sign-in is under **Settings → Authenticator code**; signed
|
|
|
105
108
|
devices can be revoked in Settings. If you lose your authenticator, run
|
|
106
109
|
`litepaseo totp-reset` on the server.
|
|
107
110
|
|
|
111
|
+
The access token is generated on first start. Choose your own with
|
|
112
|
+
`litepaseo token set`, or replace it with `litepaseo token rotate` if it may have leaked.
|
|
113
|
+
Both take effect immediately and sign out every browser. A token sent as
|
|
114
|
+
`Authorization: Bearer` (for scripts) is accepted only on direct connections, never
|
|
115
|
+
through a tunnel or proxy, and only while authenticator sign-in is off.
|
|
116
|
+
|
|
108
117
|
### Voice input
|
|
109
118
|
|
|
110
119
|
Voice input is off until you add a transcription service in **Settings → Voice input**: a
|
|
111
120
|
base URL (`https://api.openai.com/v1` by default), an API key, and a model
|
|
112
121
|
(`gpt-transcribe` by default). The microphone button then appears in the composer on every
|
|
113
|
-
device. Recording needs HTTPS or localhost.
|
|
114
|
-
LitePaseo
|
|
115
|
-
|
|
122
|
+
device. Recording needs HTTPS or localhost. Audio uploads to LitePaseo while you speak.
|
|
123
|
+
LitePaseo uses a Realtime transcription connection when supported; file-only services
|
|
124
|
+
receive phrases at natural pauses through `/audio/transcriptions`. Long continuous speech
|
|
125
|
+
is split after 30 seconds. Recognized text appears above the composer while recording, then
|
|
126
|
+
the final text is inserted into your draft when you stop. Cancel discards the recording.
|
|
127
|
+
The key stays on the server and is included in backups. Paseo daemons are not involved.
|
|
128
|
+
Reverse proxies must allow WebSocket upgrades on `/api/dictation/stream`.
|
|
116
129
|
|
|
117
130
|
List every language you speak, such as `zh, en` when you mix Chinese and English. Under
|
|
118
131
|
**Vocabulary**, add names and terms the model should spell correctly. `gpt-transcribe`
|
|
@@ -131,6 +144,8 @@ field, LitePaseo retries once with the other format.
|
|
|
131
144
|
| `litepaseo restart` | Restart a manually launched instance (also after an upgrade) |
|
|
132
145
|
| `litepaseo logs` | Show recent logs (`-n 500` for more, `-f` to follow) |
|
|
133
146
|
| `litepaseo token` | Print the sign-in token |
|
|
147
|
+
| `litepaseo token set` | Choose your own token (at least 16 characters; typed without echo or read from stdin) |
|
|
148
|
+
| `litepaseo token rotate` | Replace the token with a new random one |
|
|
134
149
|
| `litepaseo serve` | Run in the foreground |
|
|
135
150
|
| `litepaseo version` | Show the installed and running versions (`-v` prints just the number) |
|
|
136
151
|
| `litepaseo --help` | List commands; `litepaseo help <command>` explains one |
|
|
@@ -225,7 +240,7 @@ To test a local npm installation:
|
|
|
225
240
|
```sh
|
|
226
241
|
npm run build
|
|
227
242
|
npm pack
|
|
228
|
-
npm install --global ./litepaseo-0.3.
|
|
243
|
+
npm install --global ./litepaseo-0.3.1.tgz
|
|
229
244
|
litepaseo start
|
|
230
245
|
```
|
|
231
246
|
|
|
@@ -241,6 +256,8 @@ node tests/package.mjs
|
|
|
241
256
|
|
|
242
257
|
## Further reading
|
|
243
258
|
|
|
259
|
+
- [Protecting LitePaseo with Cloudflare Access](docs/cloudflare-access.md).
|
|
260
|
+
|
|
244
261
|
- [Markstream integration and measurements](docs/markstream-integration-validation.md).
|
|
245
262
|
- [LitePaseo vs. official Paseo web UI](docs/performance-plan.md) and the
|
|
246
263
|
[benchmark harness](benchmarks/README.md).
|