litepaseo 0.3.0 → 0.4.0

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 (109) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +68 -18
  3. package/dist/server/cli.mjs +837 -37
  4. package/dist/web/assets/{CodeBlockNode-D-c_NpDN.js → CodeBlockNode-BOQ7WC72.js} +1 -1
  5. package/dist/web/assets/CodeBlockNode-BOQ7WC72.js.br +0 -0
  6. package/dist/web/assets/CodeBlockNode-BOQ7WC72.js.gz +0 -0
  7. package/dist/web/assets/FileViewer-16UXxzOe.js +2 -0
  8. package/dist/web/assets/FileViewer-16UXxzOe.js.br +0 -0
  9. package/dist/web/assets/FileViewer-16UXxzOe.js.gz +0 -0
  10. package/dist/web/assets/FileViewer-T756VVq4.css +1 -0
  11. package/dist/web/assets/FileViewer-T756VVq4.css.br +0 -0
  12. package/dist/web/assets/FileViewer-T756VVq4.css.gz +0 -0
  13. package/dist/web/assets/{FilesPanel-CNkBvKGD.js → FilesPanel-CdDybrQn.js} +1 -1
  14. package/dist/web/assets/FilesPanel-CdDybrQn.js.br +0 -0
  15. package/dist/web/assets/FilesPanel-CdDybrQn.js.gz +0 -0
  16. package/dist/web/assets/MarkdownMessage-Bm42-B56.js +199 -0
  17. package/dist/web/assets/MarkdownMessage-Bm42-B56.js.br +0 -0
  18. package/dist/web/assets/MarkdownMessage-Bm42-B56.js.gz +0 -0
  19. package/dist/web/assets/{PreCodeBlock-BitPoeXT.js → PreCodeBlock-BiQ6xAvM.js} +1 -1
  20. package/dist/web/assets/{PreCodeBlock.vue_vue_type_style_index_0_lang-DVJqSz-5.js → PreCodeBlock.vue_vue_type_style_index_0_lang-DUZXIc-h.js} +1 -1
  21. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DUZXIc-h.js.br +0 -0
  22. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DUZXIc-h.js.gz +0 -0
  23. package/dist/web/assets/{TerminalPanel-CpGnkfa7.js → TerminalPanel-B5K5NCf0.js} +1 -1
  24. package/dist/web/assets/TerminalPanel-B5K5NCf0.js.br +0 -0
  25. package/dist/web/assets/TerminalPanel-B5K5NCf0.js.gz +0 -0
  26. package/dist/web/assets/{Tooltip-C9GHriiI.js → Tooltip-ClqPy17d.js} +1 -1
  27. package/dist/web/assets/Tooltip-ClqPy17d.js.br +0 -0
  28. package/dist/web/assets/Tooltip-ClqPy17d.js.gz +0 -0
  29. package/dist/web/assets/highlight-BnTrj1LT.js +5 -0
  30. package/dist/web/assets/highlight-BnTrj1LT.js.br +0 -0
  31. package/dist/web/assets/highlight-BnTrj1LT.js.gz +0 -0
  32. package/dist/web/assets/index-By8I8BM7.js +32 -0
  33. package/dist/web/assets/index-By8I8BM7.js.br +0 -0
  34. package/dist/web/assets/index-By8I8BM7.js.gz +0 -0
  35. package/dist/web/assets/index-CITaZKmy.css +1 -0
  36. package/dist/web/assets/index-CITaZKmy.css.br +0 -0
  37. package/dist/web/assets/index-CITaZKmy.css.gz +0 -0
  38. package/dist/web/assets/{index10-QexvIpKb.js → index10-BG65E54y.js} +1 -1
  39. package/dist/web/assets/index10-BG65E54y.js.br +0 -0
  40. package/dist/web/assets/index10-BG65E54y.js.gz +0 -0
  41. package/dist/web/assets/index3-6tLrzhUa.js +1 -0
  42. package/dist/web/assets/index4-CZn-viSK.js +1 -0
  43. package/dist/web/assets/{index5-DaBM1kaC.js → index5-CzcXp9wR.js} +1 -1
  44. package/dist/web/assets/index5-CzcXp9wR.js.br +0 -0
  45. package/dist/web/assets/index5-CzcXp9wR.js.gz +0 -0
  46. package/dist/web/assets/{index6-1dcCVob7.js → index6-DPLyU-vO.js} +1 -1
  47. package/dist/web/assets/index6-DPLyU-vO.js.br +0 -0
  48. package/dist/web/assets/index6-DPLyU-vO.js.gz +0 -0
  49. package/dist/web/assets/{index7-DGSFcnYT.js → index7-6uQOIsxo.js} +1 -1
  50. package/dist/web/assets/index7-6uQOIsxo.js.br +0 -0
  51. package/dist/web/assets/index7-6uQOIsxo.js.gz +0 -0
  52. package/dist/web/assets/{index8-BjPxjipz.js → index8-DUBqmq2E.js} +1 -1
  53. package/dist/web/assets/index8-DUBqmq2E.js.br +0 -0
  54. package/dist/web/assets/index8-DUBqmq2E.js.gz +0 -0
  55. package/dist/web/assets/{index9-VNQsX15e.js → index9-Czv_zULn.js} +1 -1
  56. package/dist/web/assets/index9-Czv_zULn.js.br +0 -0
  57. package/dist/web/assets/index9-Czv_zULn.js.gz +0 -0
  58. package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  59. package/dist/web/assets/vue.runtime.esm-bundler-DwGo9CTz.js +4 -0
  60. package/dist/web/assets/vue.runtime.esm-bundler-DwGo9CTz.js.br +0 -0
  61. package/dist/web/assets/vue.runtime.esm-bundler-DwGo9CTz.js.gz +0 -0
  62. package/dist/web/index.html +4 -3
  63. package/dist/web/index.html.br +0 -0
  64. package/dist/web/index.html.gz +0 -0
  65. package/docs/cloudflare-access.md +111 -0
  66. package/docs/markstream-integration-validation.md +3 -2
  67. package/package.json +6 -2
  68. package/dist/web/assets/CodeBlockNode-D-c_NpDN.js.br +0 -0
  69. package/dist/web/assets/CodeBlockNode-D-c_NpDN.js.gz +0 -0
  70. package/dist/web/assets/FileViewer-C6rgOMRo.js +0 -2
  71. package/dist/web/assets/FileViewer-C6rgOMRo.js.br +0 -0
  72. package/dist/web/assets/FileViewer-C6rgOMRo.js.gz +0 -0
  73. package/dist/web/assets/FileViewer-CljYTF8J.css +0 -1
  74. package/dist/web/assets/FileViewer-CljYTF8J.css.br +0 -0
  75. package/dist/web/assets/FileViewer-CljYTF8J.css.gz +0 -0
  76. package/dist/web/assets/FilesPanel-CNkBvKGD.js.br +0 -0
  77. package/dist/web/assets/FilesPanel-CNkBvKGD.js.gz +0 -0
  78. package/dist/web/assets/MarkdownMessage-DjRNZCD0.js +0 -199
  79. package/dist/web/assets/MarkdownMessage-DjRNZCD0.js.br +0 -0
  80. package/dist/web/assets/MarkdownMessage-DjRNZCD0.js.gz +0 -0
  81. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DVJqSz-5.js.br +0 -0
  82. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DVJqSz-5.js.gz +0 -0
  83. package/dist/web/assets/TerminalPanel-CpGnkfa7.js.br +0 -0
  84. package/dist/web/assets/TerminalPanel-CpGnkfa7.js.gz +0 -0
  85. package/dist/web/assets/Tooltip-C9GHriiI.js.br +0 -0
  86. package/dist/web/assets/Tooltip-C9GHriiI.js.gz +0 -0
  87. package/dist/web/assets/index-D4mQel3H.js +0 -30
  88. package/dist/web/assets/index-D4mQel3H.js.br +0 -0
  89. package/dist/web/assets/index-D4mQel3H.js.gz +0 -0
  90. package/dist/web/assets/index-Wf4Xa0ob.css +0 -1
  91. package/dist/web/assets/index-Wf4Xa0ob.css.br +0 -0
  92. package/dist/web/assets/index-Wf4Xa0ob.css.gz +0 -0
  93. package/dist/web/assets/index10-QexvIpKb.js.br +0 -0
  94. package/dist/web/assets/index10-QexvIpKb.js.gz +0 -0
  95. package/dist/web/assets/index3-B9LRPNVQ.js +0 -1
  96. package/dist/web/assets/index4-CTBFr99S.js +0 -1
  97. package/dist/web/assets/index5-DaBM1kaC.js.br +0 -0
  98. package/dist/web/assets/index5-DaBM1kaC.js.gz +0 -0
  99. package/dist/web/assets/index6-1dcCVob7.js.br +0 -0
  100. package/dist/web/assets/index6-1dcCVob7.js.gz +0 -0
  101. package/dist/web/assets/index7-DGSFcnYT.js.br +0 -0
  102. package/dist/web/assets/index7-DGSFcnYT.js.gz +0 -0
  103. package/dist/web/assets/index8-BjPxjipz.js.br +0 -0
  104. package/dist/web/assets/index8-BjPxjipz.js.gz +0 -0
  105. package/dist/web/assets/index9-VNQsX15e.js.br +0 -0
  106. package/dist/web/assets/index9-VNQsX15e.js.gz +0 -0
  107. package/dist/web/assets/vue.runtime.esm-bundler-D6xZ1zFq.js +0 -4
  108. package/dist/web/assets/vue.runtime.esm-bundler-D6xZ1zFq.js.br +0 -0
  109. package/dist/web/assets/vue.runtime.esm-bundler-D6xZ1zFq.js.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Conversation
6
+
7
+ - Messages sent while a turn runs (the **Queue** setting, formerly Steer) wait in a list above
8
+ the composer instead of appearing in the conversation. Each can be edited, removed, or sent at
9
+ once with **Interrupt**; the rest go one per turn when the agent finishes. Queued messages
10
+ stay in the open tab, which warns before closing while any are waiting.
11
+ - Code blocks and opened files are syntax highlighted (highlight.js, common languages, loaded
12
+ on demand; very large text stays plain).
13
+ - Long conversations load earlier and newer messages as you scroll, and return to the live
14
+ tail at the bottom, instead of asking for a click per page. Only about 150 rows stay mounted.
15
+ - Outline rail, as in Paseo: one tick per prompt along the left edge of a wide conversation.
16
+ Resting on it previews the prompt; clicking jumps there, even far back in history.
17
+ - Rewind from a user message (hover it): rewind the conversation, the files, or both, as the
18
+ agent's provider supports. The rewound prompt returns to an empty composer.
19
+ - Finished turns show Copy, the model, the finish time and how long the turn took, with icons,
20
+ as in Paseo. User messages show their time and a copy button on hover.
21
+
22
+ ### Settings without environment variables
23
+
24
+ - `litepaseo config` shows the port, listening address and push contact, and where each value
25
+ comes from. `litepaseo config set <key> <value>` saves one; it applies on every start and is
26
+ included in backups. `LITEPASEO_PORT`, `LITEPASEO_BIND` and `LITEPASEO_PUSH_SUBJECT` still
27
+ work and override the saved value for that run.
28
+
29
+ ### Notifications
30
+
31
+ - In Brave, turning notifications on no longer fails with a bare "push service error": Settings
32
+ says to enable **Use Google services for push messaging** in `brave://settings/privacy`. Other
33
+ browsers that cannot reach their push service get a short explanation too.
34
+
35
+ **Upgrading from 0.3.x:** no data migration; drafts, boards and settings are kept. The
36
+ outline rail needs a Paseo daemon with the prompt index (older daemons simply show no rail),
37
+ and Rewind appears only for providers that support it. The composer's **Steer** setting is
38
+ now called **Queue**: messages wait in this tab until the running turn ends.
39
+
40
+ ## 0.3.1
41
+
42
+ ### Faster voice input
43
+
44
+ - Voice input uploads audio while recording. Compatible services use Realtime transcription;
45
+ file-only services transcribe phrases during pauses so earlier speech is processed before
46
+ recording ends. Partial text appears above the composer; stopping inserts the final result.
47
+ - Cancel stops microphone capture and pending transcription. Voice sessions use one-use
48
+ tickets, expire with sign-in sessions, and keep API credentials on the server.
49
+ - Completion logs include audio duration, first-text latency, and time from Stop to final
50
+ text, without recording audio or transcript content.
51
+
52
+ ### Sign-in hardening
53
+
54
+ - Fixed: with authenticator sign-in off, a bearer token in the `Authorization` header was checked
55
+ without any limit on failed attempts. Bearer tokens now share the sign-in failure budget, and
56
+ are accepted only on direct connections: never through Cloudflare Tunnel or another proxy,
57
+ where only browser sign-in admits anyone. Upgrade if LitePaseo is reachable from the internet.
58
+ - `litepaseo token set` chooses your own access token (at least 16 characters, typed without
59
+ echo or read from standard input); `litepaseo token rotate` replaces it with a new random one.
60
+ Both take effect in the running server without a restart, sign out every browser, and end
61
+ open streams that used the old token.
62
+ - New guide: [Protecting LitePaseo with Cloudflare Access](docs/cloudflare-access.md), including
63
+ the bypass rule that keeps app install and notifications working.
64
+
65
+ **Upgrading from 0.3.0:** existing transcription settings and model selection are preserved.
66
+ Reverse proxies must allow WebSocket upgrades on `/api/dictation/stream`. Scripts that sent the
67
+ bearer token through a tunnel or proxy must sign in instead or run on the LitePaseo machine.
68
+
3
69
  ## 0.3.0
4
70
 
5
71
  ### Voice input, configured once in LitePaseo
package/README.md CHANGED
@@ -45,6 +45,12 @@ package, with no separate database service to deploy.
45
45
  - Manage conversations across multiple Paseo hosts in one place.
46
46
  - Create sessions, choose a provider/model, send messages, stop turns, and answer
47
47
  permission requests or structured questions.
48
+ - Queue messages while an agent works, then edit, drop or send one at once as an
49
+ interrupt; rewind a conversation (and, where the provider supports it, its files)
50
+ to an earlier message.
51
+ - Read long conversations without clicking through pages: history loads as you
52
+ scroll, an outline rail previews and jumps to any prompt, and code is
53
+ syntax highlighted.
48
54
  - Attach files and images, with previews and upload status.
49
55
  - Dictate messages through one OpenAI-compatible speech-to-text service set up in
50
56
  LitePaseo, rather than configuring each Paseo host.
@@ -90,7 +96,10 @@ port on your machine.
90
96
  3. Open `https://agents.example.com` and sign in with your LitePaseo access token.
91
97
 
92
98
  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
99
+ it. A signed-in session can run commands through your agents, so on a public
100
+ hostname also enable **Cloudflare Access** and an authenticator code: see
101
+ [Protecting LitePaseo with Cloudflare Access](docs/cloudflare-access.md). Push
102
+ notifications keep working behind Access. An existing HTTPS reverse proxy works too, provided it supports streaming
94
103
  responses (SSE) without buffering.
95
104
 
96
105
  ### Phone app & notifications
@@ -98,21 +107,44 @@ responses (SSE) without buffering.
98
107
  Open your HTTPS address and install from the browser's menu. On iPhone/iPad,
99
108
  use Safari → Share → **Add to Home Screen**, then open the installed app to enable
100
109
  push notifications. Turn them on in **Settings → Notifications** to hear when an
101
- agent needs input or finishes. Set `LITEPASEO_PUSH_SUBJECT=mailto:you@example.com`
102
- before starting the server for Apple push delivery.
110
+ agent needs input or finishes. For Apple devices, set a contact once with
111
+ `litepaseo config set push-subject mailto:you@example.com` and restart (see
112
+ [Configuration](#configuration)).
113
+
114
+ If turning notifications on fails with **"Registration failed - push service error"**,
115
+ the browser could not reach its own push service; LitePaseo is not involved yet.
116
+
117
+ - **Brave** disables push by default. Open `brave://settings/privacy`, turn on
118
+ **Use Google services for push messaging**, restart Brave, and try again.
119
+ - **Chromium builds without Google services** (many Linux distribution packages,
120
+ ungoogled-chromium) cannot receive Web Push. Use Google Chrome, Edge or Firefox.
121
+ - **Chrome or Edge**: open `chrome://gcm-internals` (`edge://gcm-internals`). If
122
+ **Connection State** is not `CONNECTED`, a proxy, VPN or firewall is blocking the push
123
+ service (Chrome needs `mtalk.google.com:5228` and `fcm.googleapis.com`).
124
+ - Private and incognito windows do not support push.
103
125
 
104
126
  Optional two-factor sign-in is under **Settings → Authenticator code**; signed-in
105
127
  devices can be revoked in Settings. If you lose your authenticator, run
106
128
  `litepaseo totp-reset` on the server.
107
129
 
130
+ The access token is generated on first start. Choose your own with
131
+ `litepaseo token set`, or replace it with `litepaseo token rotate` if it may have leaked.
132
+ Both take effect immediately and sign out every browser. A token sent as
133
+ `Authorization: Bearer` (for scripts) is accepted only on direct connections, never
134
+ through a tunnel or proxy, and only while authenticator sign-in is off.
135
+
108
136
  ### Voice input
109
137
 
110
138
  Voice input is off until you add a transcription service in **Settings → Voice input**: a
111
139
  base URL (`https://api.openai.com/v1` by default), an API key, and a model
112
140
  (`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.
141
+ device. Recording needs HTTPS or localhost. Audio uploads to LitePaseo while you speak.
142
+ LitePaseo uses a Realtime transcription connection when supported; file-only services
143
+ receive phrases at natural pauses through `/audio/transcriptions`. Long continuous speech
144
+ is split after 30 seconds. Recognized text appears above the composer while recording, then
145
+ the final text is inserted into your draft when you stop. Cancel discards the recording.
146
+ The key stays on the server and is included in backups. Paseo daemons are not involved.
147
+ Reverse proxies must allow WebSocket upgrades on `/api/dictation/stream`.
116
148
 
117
149
  List every language you speak, such as `zh, en` when you mix Chinese and English. Under
118
150
  **Vocabulary**, add names and terms the model should spell correctly. `gpt-transcribe`
@@ -131,6 +163,8 @@ field, LitePaseo retries once with the other format.
131
163
  | `litepaseo restart` | Restart a manually launched instance (also after an upgrade) |
132
164
  | `litepaseo logs` | Show recent logs (`-n 500` for more, `-f` to follow) |
133
165
  | `litepaseo token` | Print the sign-in token |
166
+ | `litepaseo token set` | Choose your own token (at least 16 characters; typed without echo or read from stdin) |
167
+ | `litepaseo token rotate` | Replace the token with a new random one |
134
168
  | `litepaseo serve` | Run in the foreground |
135
169
  | `litepaseo version` | Show the installed and running versions (`-v` prints just the number) |
136
170
  | `litepaseo --help` | List commands; `litepaseo help <command>` explains one |
@@ -150,21 +184,35 @@ Reinstall the service after changing its environment settings or Node/CLI paths.
150
184
 
151
185
  ### Configuration
152
186
 
153
- Set these variables before starting LitePaseo:
154
-
155
- | Variable | Default | Purpose |
156
- | --- | --- | --- |
157
- | `LITEPASEO_PORT` | `8787` | HTTP port |
158
- | `LITEPASEO_BIND` | `127.0.0.1` | Listening address |
159
- | `LITEPASEO_HOME` | `~/.litepaseo` | Application data directory |
160
- | `LITEPASEO_PUSH_SUBJECT` | — | Contact URL or `mailto:` address for push services |
161
-
162
- For example:
187
+ Save settings once with `litepaseo config`; they apply on every start and are
188
+ included in backups:
163
189
 
164
190
  ```sh
165
- LITEPASEO_PORT=9000 litepaseo start
191
+ litepaseo config # show settings and where each comes from
192
+ litepaseo config set push-subject mailto:you@example.com
193
+ litepaseo config set port 9000
194
+ litepaseo config unset port # back to the default
195
+ litepaseo restart # apply (or: litepaseo service restart)
166
196
  ```
167
197
 
198
+ | Key | Default | Purpose | Environment override |
199
+ | --- | --- | --- | --- |
200
+ | `port` | `8787` | HTTP port | `LITEPASEO_PORT` |
201
+ | `bind` | `127.0.0.1` | Listening address | `LITEPASEO_BIND` |
202
+ | `push-subject` | `mailto:litepaseo@example.com` | Contact for push services (see below) | `LITEPASEO_PUSH_SUBJECT` |
203
+
204
+ An environment variable, when set, wins over the saved value for that run.
205
+ `LITEPASEO_HOME` (default `~/.litepaseo`) chooses the data directory itself, so it
206
+ is only an environment variable.
207
+
208
+ **`push-subject`** is the contact address LitePaseo includes, signed, when it hands a
209
+ notification to Apple, Google or Mozilla. They use it only to reach whoever runs
210
+ the server if its notifications cause problems. It is never shown to anyone or
211
+ emailed, and it does not have to be personal: any `mailto:` address or `https://`
212
+ page you control works, such as your console's own address
213
+ (`https://agents.example.com`). Replace the placeholder default with a real one;
214
+ Apple is the strictest of the push services about this value.
215
+
168
216
  LitePaseo's data directory contains credentials and settings. Conversation
169
217
  history stays on your daemons, and drafts stay in browser storage.
170
218
 
@@ -225,7 +273,7 @@ To test a local npm installation:
225
273
  ```sh
226
274
  npm run build
227
275
  npm pack
228
- npm install --global ./litepaseo-0.3.0.tgz
276
+ npm install --global ./litepaseo-0.3.1.tgz
229
277
  litepaseo start
230
278
  ```
231
279
 
@@ -241,6 +289,8 @@ node tests/package.mjs
241
289
 
242
290
  ## Further reading
243
291
 
292
+ - [Protecting LitePaseo with Cloudflare Access](docs/cloudflare-access.md).
293
+
244
294
  - [Markstream integration and measurements](docs/markstream-integration-validation.md).
245
295
  - [LitePaseo vs. official Paseo web UI](docs/performance-plan.md) and the
246
296
  [benchmark harness](benchmarks/README.md).