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.
Files changed (89) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +22 -5
  3. package/dist/server/cli.mjs +650 -32
  4. package/dist/web/assets/{CodeBlockNode-D-c_NpDN.js → CodeBlockNode-fLbELjCG.js} +1 -1
  5. package/dist/web/assets/CodeBlockNode-fLbELjCG.js.br +0 -0
  6. package/dist/web/assets/CodeBlockNode-fLbELjCG.js.gz +0 -0
  7. package/dist/web/assets/{FileViewer-C6rgOMRo.js → FileViewer-C7zGfiFt.js} +1 -1
  8. package/dist/web/assets/FileViewer-C7zGfiFt.js.br +0 -0
  9. package/dist/web/assets/FileViewer-C7zGfiFt.js.gz +0 -0
  10. package/dist/web/assets/{FilesPanel-CNkBvKGD.js → FilesPanel-B1YfdWK8.js} +1 -1
  11. package/dist/web/assets/FilesPanel-B1YfdWK8.js.br +0 -0
  12. package/dist/web/assets/FilesPanel-B1YfdWK8.js.gz +0 -0
  13. package/dist/web/assets/{MarkdownMessage-DjRNZCD0.js → MarkdownMessage-C30PkBRA.js} +5 -5
  14. package/dist/web/assets/MarkdownMessage-C30PkBRA.js.br +0 -0
  15. package/dist/web/assets/MarkdownMessage-C30PkBRA.js.gz +0 -0
  16. package/dist/web/assets/{PreCodeBlock-BitPoeXT.js → PreCodeBlock-3ozveRNf.js} +1 -1
  17. 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
  18. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-BPnMZFbo.js.br +0 -0
  19. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-BPnMZFbo.js.gz +0 -0
  20. package/dist/web/assets/{TerminalPanel-CpGnkfa7.js → TerminalPanel-BR2okuCE.js} +1 -1
  21. package/dist/web/assets/TerminalPanel-BR2okuCE.js.br +0 -0
  22. package/dist/web/assets/TerminalPanel-BR2okuCE.js.gz +0 -0
  23. package/dist/web/assets/{Tooltip-C9GHriiI.js → Tooltip-Dh7ELGI1.js} +1 -1
  24. package/dist/web/assets/Tooltip-Dh7ELGI1.js.br +0 -0
  25. package/dist/web/assets/Tooltip-Dh7ELGI1.js.gz +0 -0
  26. package/dist/web/assets/index-BJ4CkuXT.js +30 -0
  27. package/dist/web/assets/index-BJ4CkuXT.js.br +0 -0
  28. package/dist/web/assets/index-BJ4CkuXT.js.gz +0 -0
  29. package/dist/web/assets/{index-Wf4Xa0ob.css → index-CaFqUnEO.css} +1 -1
  30. package/dist/web/assets/index-CaFqUnEO.css.br +0 -0
  31. package/dist/web/assets/index-CaFqUnEO.css.gz +0 -0
  32. package/dist/web/assets/{index10-QexvIpKb.js → index10-BXOnBXXV.js} +1 -1
  33. package/dist/web/assets/index10-BXOnBXXV.js.br +0 -0
  34. package/dist/web/assets/index10-BXOnBXXV.js.gz +0 -0
  35. package/dist/web/assets/index3-C1CbKHXb.js +1 -0
  36. package/dist/web/assets/index4-CE4EA6Rx.js +1 -0
  37. package/dist/web/assets/{index5-DaBM1kaC.js → index5-BrR0S3K6.js} +1 -1
  38. package/dist/web/assets/index5-BrR0S3K6.js.br +0 -0
  39. package/dist/web/assets/index5-BrR0S3K6.js.gz +0 -0
  40. package/dist/web/assets/{index6-1dcCVob7.js → index6-DWBoE2gM.js} +1 -1
  41. package/dist/web/assets/index6-DWBoE2gM.js.br +0 -0
  42. package/dist/web/assets/index6-DWBoE2gM.js.gz +0 -0
  43. package/dist/web/assets/{index7-DGSFcnYT.js → index7-CoJTOvQ5.js} +1 -1
  44. package/dist/web/assets/index7-CoJTOvQ5.js.br +0 -0
  45. package/dist/web/assets/index7-CoJTOvQ5.js.gz +0 -0
  46. package/dist/web/assets/{index8-BjPxjipz.js → index8-CQGhir4p.js} +1 -1
  47. package/dist/web/assets/index8-CQGhir4p.js.br +0 -0
  48. package/dist/web/assets/index8-CQGhir4p.js.gz +0 -0
  49. package/dist/web/assets/{index9-VNQsX15e.js → index9-D_kItRZJ.js} +1 -1
  50. package/dist/web/assets/index9-D_kItRZJ.js.br +0 -0
  51. package/dist/web/assets/index9-D_kItRZJ.js.gz +0 -0
  52. package/dist/web/index.html +2 -2
  53. package/dist/web/index.html.br +0 -0
  54. package/dist/web/index.html.gz +0 -0
  55. package/docs/cloudflare-access.md +111 -0
  56. package/package.json +4 -1
  57. package/dist/web/assets/CodeBlockNode-D-c_NpDN.js.br +0 -0
  58. package/dist/web/assets/CodeBlockNode-D-c_NpDN.js.gz +0 -0
  59. package/dist/web/assets/FileViewer-C6rgOMRo.js.br +0 -0
  60. package/dist/web/assets/FileViewer-C6rgOMRo.js.gz +0 -0
  61. package/dist/web/assets/FilesPanel-CNkBvKGD.js.br +0 -0
  62. package/dist/web/assets/FilesPanel-CNkBvKGD.js.gz +0 -0
  63. package/dist/web/assets/MarkdownMessage-DjRNZCD0.js.br +0 -0
  64. package/dist/web/assets/MarkdownMessage-DjRNZCD0.js.gz +0 -0
  65. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DVJqSz-5.js.br +0 -0
  66. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DVJqSz-5.js.gz +0 -0
  67. package/dist/web/assets/TerminalPanel-CpGnkfa7.js.br +0 -0
  68. package/dist/web/assets/TerminalPanel-CpGnkfa7.js.gz +0 -0
  69. package/dist/web/assets/Tooltip-C9GHriiI.js.br +0 -0
  70. package/dist/web/assets/Tooltip-C9GHriiI.js.gz +0 -0
  71. package/dist/web/assets/index-D4mQel3H.js +0 -30
  72. package/dist/web/assets/index-D4mQel3H.js.br +0 -0
  73. package/dist/web/assets/index-D4mQel3H.js.gz +0 -0
  74. package/dist/web/assets/index-Wf4Xa0ob.css.br +0 -0
  75. package/dist/web/assets/index-Wf4Xa0ob.css.gz +0 -0
  76. package/dist/web/assets/index10-QexvIpKb.js.br +0 -0
  77. package/dist/web/assets/index10-QexvIpKb.js.gz +0 -0
  78. package/dist/web/assets/index3-B9LRPNVQ.js +0 -1
  79. package/dist/web/assets/index4-CTBFr99S.js +0 -1
  80. package/dist/web/assets/index5-DaBM1kaC.js.br +0 -0
  81. package/dist/web/assets/index5-DaBM1kaC.js.gz +0 -0
  82. package/dist/web/assets/index6-1dcCVob7.js.br +0 -0
  83. package/dist/web/assets/index6-1dcCVob7.js.gz +0 -0
  84. package/dist/web/assets/index7-DGSFcnYT.js.br +0 -0
  85. package/dist/web/assets/index7-DGSFcnYT.js.gz +0 -0
  86. package/dist/web/assets/index8-BjPxjipz.js.br +0 -0
  87. package/dist/web/assets/index8-BjPxjipz.js.gz +0 -0
  88. package/dist/web/assets/index9-VNQsX15e.js.br +0 -0
  89. 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. An existing HTTPS reverse proxy works too, provided it supports streaming
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. The browser sends the clip to LitePaseo, and
114
- LitePaseo calls `/audio/transcriptions`. The key stays on the server and is included in
115
- backups. Paseo daemons are not involved.
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.0.tgz
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).