litepaseo 0.0.0-stage → 0.2.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 (113) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +192 -2
  3. package/dist/server/cli.mjs +3960 -0
  4. package/dist/web/assets/CodeBlockNode-CehKIzSk.js +3 -0
  5. package/dist/web/assets/CodeBlockNode-CehKIzSk.js.br +0 -0
  6. package/dist/web/assets/CodeBlockNode-CehKIzSk.js.gz +0 -0
  7. package/dist/web/assets/FileViewer-01t53KTX.js +2 -0
  8. package/dist/web/assets/FileViewer-01t53KTX.js.br +0 -0
  9. package/dist/web/assets/FileViewer-01t53KTX.js.gz +0 -0
  10. package/dist/web/assets/FileViewer-CljYTF8J.css +1 -0
  11. package/dist/web/assets/FileViewer-CljYTF8J.css.br +0 -0
  12. package/dist/web/assets/FileViewer-CljYTF8J.css.gz +0 -0
  13. package/dist/web/assets/FilesPanel-B7NknFvl.js +1 -0
  14. package/dist/web/assets/FilesPanel-B7NknFvl.js.br +0 -0
  15. package/dist/web/assets/FilesPanel-B7NknFvl.js.gz +0 -0
  16. package/dist/web/assets/FilesPanel-CY9yMixJ.css +1 -0
  17. package/dist/web/assets/FilesPanel-CY9yMixJ.css.br +0 -0
  18. package/dist/web/assets/FilesPanel-CY9yMixJ.css.gz +0 -0
  19. package/dist/web/assets/MarkdownMessage-UlvozPc5.js +199 -0
  20. package/dist/web/assets/MarkdownMessage-UlvozPc5.js.br +0 -0
  21. package/dist/web/assets/MarkdownMessage-UlvozPc5.js.gz +0 -0
  22. package/dist/web/assets/MarkdownMessage-bqphU8I9.css +1 -0
  23. package/dist/web/assets/MarkdownMessage-bqphU8I9.css.br +0 -0
  24. package/dist/web/assets/MarkdownMessage-bqphU8I9.css.gz +0 -0
  25. package/dist/web/assets/PreCodeBlock-DPQTlYty.js +1 -0
  26. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-Cdy-YZRP.js +1 -0
  27. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-Cdy-YZRP.js.br +0 -0
  28. package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-Cdy-YZRP.js.gz +0 -0
  29. package/dist/web/assets/TerminalPanel-BdmAonFr.js +3 -0
  30. package/dist/web/assets/TerminalPanel-BdmAonFr.js.br +0 -0
  31. package/dist/web/assets/TerminalPanel-BdmAonFr.js.gz +0 -0
  32. package/dist/web/assets/TerminalPanel-DvfBWyiQ.css +1 -0
  33. package/dist/web/assets/TerminalPanel-DvfBWyiQ.css.br +0 -0
  34. package/dist/web/assets/TerminalPanel-DvfBWyiQ.css.gz +0 -0
  35. package/dist/web/assets/Tooltip-BJ2o2M_0.js +1 -0
  36. package/dist/web/assets/Tooltip-BJ2o2M_0.js.br +0 -0
  37. package/dist/web/assets/Tooltip-BJ2o2M_0.js.gz +0 -0
  38. package/dist/web/assets/__vite-optional-peer-dep_katex_markstream-vue-Bg9-FXxr.js +1 -0
  39. package/dist/web/assets/__vite-optional-peer-dep_mermaid_markstream-vue-cPZl55sA.js +1 -0
  40. package/dist/web/assets/addon-fit-DIOBYJe3.js +1 -0
  41. package/dist/web/assets/addon-fit-DIOBYJe3.js.br +0 -0
  42. package/dist/web/assets/addon-fit-DIOBYJe3.js.gz +0 -0
  43. package/dist/web/assets/d2_markstream-vue-xMoF3M5G.js +1 -0
  44. package/dist/web/assets/extended-BP0HZdSW.js +1 -0
  45. package/dist/web/assets/extended-BP0HZdSW.js.br +0 -0
  46. package/dist/web/assets/extended-BP0HZdSW.js.gz +0 -0
  47. package/dist/web/assets/floating-ui.dom-WZBoikmf.js +1 -0
  48. package/dist/web/assets/floating-ui.dom-WZBoikmf.js.br +0 -0
  49. package/dist/web/assets/floating-ui.dom-WZBoikmf.js.gz +0 -0
  50. package/dist/web/assets/index-D_YTh7Zw.css +1 -0
  51. package/dist/web/assets/index-D_YTh7Zw.css.br +0 -0
  52. package/dist/web/assets/index-D_YTh7Zw.css.gz +0 -0
  53. package/dist/web/assets/index-civcSERr.js +27 -0
  54. package/dist/web/assets/index-civcSERr.js.br +0 -0
  55. package/dist/web/assets/index-civcSERr.js.gz +0 -0
  56. package/dist/web/assets/index10-WpTfisco.js +6 -0
  57. package/dist/web/assets/index10-WpTfisco.js.br +0 -0
  58. package/dist/web/assets/index10-WpTfisco.js.gz +0 -0
  59. package/dist/web/assets/index3-C4yf5W5o.js +1 -0
  60. package/dist/web/assets/index4-Cwl0ij4U.js +1 -0
  61. package/dist/web/assets/index5-BCbIyN1t.js +1 -0
  62. package/dist/web/assets/index5-BCbIyN1t.js.br +0 -0
  63. package/dist/web/assets/index5-BCbIyN1t.js.gz +0 -0
  64. package/dist/web/assets/index6-CbdnTDhy.js +1 -0
  65. package/dist/web/assets/index6-CbdnTDhy.js.br +0 -0
  66. package/dist/web/assets/index6-CbdnTDhy.js.gz +0 -0
  67. package/dist/web/assets/index7-BzNzdNxO.js +2 -0
  68. package/dist/web/assets/index7-BzNzdNxO.js.br +0 -0
  69. package/dist/web/assets/index7-BzNzdNxO.js.gz +0 -0
  70. package/dist/web/assets/index8-CD8jmACo.js +2 -0
  71. package/dist/web/assets/index8-CD8jmACo.js.br +0 -0
  72. package/dist/web/assets/index8-CD8jmACo.js.gz +0 -0
  73. package/dist/web/assets/index9-9FYLmtt9.js +1 -0
  74. package/dist/web/assets/index9-9FYLmtt9.js.br +0 -0
  75. package/dist/web/assets/index9-9FYLmtt9.js.gz +0 -0
  76. package/dist/web/assets/layout-BA_bUv_G.js +9 -0
  77. package/dist/web/assets/layout-BA_bUv_G.js.br +0 -0
  78. package/dist/web/assets/layout-BA_bUv_G.js.gz +0 -0
  79. package/dist/web/assets/markstream_markstream-vue-Bj0UewdV.js +1 -0
  80. package/dist/web/assets/mhchem_markstream-vue-tp86PqxG.js +1 -0
  81. package/dist/web/assets/safeRaf-BDp3SJMs.js +1 -0
  82. package/dist/web/assets/vue.runtime.esm-bundler-D6xZ1zFq.js +4 -0
  83. package/dist/web/assets/vue.runtime.esm-bundler-D6xZ1zFq.js.br +0 -0
  84. package/dist/web/assets/vue.runtime.esm-bundler-D6xZ1zFq.js.gz +0 -0
  85. package/dist/web/assets/xterm-BMsy1fDS.js +16 -0
  86. package/dist/web/assets/xterm-BMsy1fDS.js.br +0 -0
  87. package/dist/web/assets/xterm-BMsy1fDS.js.gz +0 -0
  88. package/dist/web/icons/apple-touch-icon.png +0 -0
  89. package/dist/web/icons/badge-96.png +0 -0
  90. package/dist/web/icons/badge.svg +1 -0
  91. package/dist/web/icons/badge.svg.br +0 -0
  92. package/dist/web/icons/badge.svg.gz +0 -0
  93. package/dist/web/icons/favicon-64.png +0 -0
  94. package/dist/web/icons/favicon-attention-64.png +0 -0
  95. package/dist/web/icons/favicon-running-64.png +0 -0
  96. package/dist/web/icons/favicon-unread-64.png +0 -0
  97. package/dist/web/icons/icon-192.png +0 -0
  98. package/dist/web/icons/icon-512.png +0 -0
  99. package/dist/web/icons/mark.svg +9 -0
  100. package/dist/web/icons/mark.svg.br +0 -0
  101. package/dist/web/icons/mark.svg.gz +0 -0
  102. package/dist/web/icons/maskable-512.png +0 -0
  103. package/dist/web/index.html +24 -0
  104. package/dist/web/index.html.br +0 -0
  105. package/dist/web/index.html.gz +0 -0
  106. package/dist/web/manifest.webmanifest +16 -0
  107. package/dist/web/sw.js +49 -0
  108. package/dist/web/sw.js.br +0 -0
  109. package/dist/web/sw.js.gz +0 -0
  110. package/docs/markstream-integration-validation.md +71 -0
  111. package/docs/operations.md +143 -0
  112. package/docs/performance-plan.md +244 -0
  113. package/package.json +70 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 txchen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,193 @@
1
- # Temporary Holding Version
1
+ # LitePaseo
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **A resource-conscious web console for your Paseo agents.**
4
+
5
+ Keep track of coding agents across machines, read their output, send messages,
6
+ and respond when they need your input—from a desktop browser or your phone.
7
+ LitePaseo connects to existing Paseo daemons through the official SDK.
8
+
9
+ ## Why LitePaseo?
10
+
11
+ An agent dashboard often stays open for hours. Its job is to keep you informed
12
+ while leaving CPU and memory available for your agents and the rest of your work.
13
+ That is the reason for LitePaseo: a console designed around doing less work when
14
+ there is less to show.
15
+
16
+ Resource use shapes how it works:
17
+
18
+ - **Send changes, not entire conversations.** The server shares daemon subscriptions
19
+ and sends incremental updates to browsers.
20
+ - **Batch streaming output every 500 ms.** Messages remain live without rendering
21
+ every arriving token. Persistent status animations advance twice per second.
22
+ - **Keep rendering bounded.** The sidebar is windowed, and conversation history
23
+ mounts at most 150 message rows, even after paging through older messages.
24
+ - **Pause hidden tabs.** Browser streams close while a tab is hidden and resume
25
+ from their cursors when it becomes visible.
26
+ - **Reuse rendered content.** Markstream retains settled Markdown blocks while the
27
+ message tail grows, with smooth streaming and typewriter effects disabled.
28
+ - **Load the heavy parts later.** Markstream (about 700 KB) loads after sign-in, while
29
+ the browser is idle; until then messages use a small built-in renderer. Built assets
30
+ are served precompressed (Brotli/gzip) and cached permanently by content hash.
31
+
32
+ These are concrete design choices, not a claim of lower resource use in every
33
+ workload. Very large single code blocks can still be expensive. See the
34
+ [rendering measurements and limitations](docs/markstream-integration-validation.md).
35
+
36
+ ## What you can do
37
+
38
+ - Manage conversations across multiple Paseo hosts in one place.
39
+ - Create sessions, choose a provider/model, send messages, stop turns, and answer
40
+ permission requests or structured questions.
41
+ - Attach files and images, with previews and upload status.
42
+ - Keep a Todo / Doing / Done board linked to conversations.
43
+ - Receive notifications when an agent needs input or finishes, and install the
44
+ console as a phone or desktop web app.
45
+ - Keep drafts across reloads and check uncertain message delivery without
46
+ automatically resending.
47
+
48
+ ## Install and start
49
+
50
+ You need **Node.js 24.11 or newer**, npm, and at least one existing Paseo daemon.
51
+ The server targets Linux and macOS; live validation has primarily been on Linux.
52
+
53
+ ```sh
54
+ npm install --global litepaseo
55
+ litepaseo start
56
+ litepaseo token
57
+ ```
58
+
59
+ 1. Open **http://127.0.0.1:8787** on the machine running LitePaseo.
60
+ 2. Sign in with the access token printed by `litepaseo token`. If TOTP is enabled,
61
+ enter your authenticator code as well.
62
+ 3. Open **Hosts** and add your daemon using a connection URL, pairing offer, or
63
+ SSH target supported by the Paseo SDK.
64
+ 4. Open an existing conversation or create a new session.
65
+
66
+ The npm package includes the built web interface; installation requires no
67
+ frontend build. `start` runs LitePaseo in the background with crash recovery and
68
+ rotating logs. It does not install or start Paseo daemons for you.
69
+
70
+ For access from another device, put LitePaseo behind your HTTPS reverse proxy or
71
+ tunnel. The default listener is local to the server. HTTPS also enables web-app
72
+ installation and push notifications.
73
+
74
+ ## Everyday commands
75
+
76
+ | Command | Purpose |
77
+ | --- | --- |
78
+ | `litepaseo start` | Start in the background |
79
+ | `litepaseo status` | Check readiness and process status |
80
+ | `litepaseo stop` | Stop the background service |
81
+ | `litepaseo restart` | Restart a manually launched instance |
82
+ | `litepaseo logs` | Show recent logs |
83
+ | `litepaseo token` | Print the sign-in token |
84
+ | `litepaseo serve` | Run in the foreground |
85
+ | `litepaseo --help` | List commands |
86
+
87
+ For automatic startup, install a systemd user service on Linux or a LaunchAgent
88
+ on macOS:
89
+
90
+ ```sh
91
+ litepaseo service print
92
+ litepaseo stop
93
+ litepaseo service install
94
+ ```
95
+
96
+ Use `litepaseo service restart` for an OS-managed installation. Linux startup
97
+ before login requires user lingering; macOS starts the service at login.
98
+ See the [operations guide](docs/operations.md#supervision-autostart-and-logs)
99
+ for configuration and lifecycle details.
100
+
101
+ ### Configuration
102
+
103
+ Set these variables before starting LitePaseo:
104
+
105
+ | Variable | Default | Purpose |
106
+ | --- | --- | --- |
107
+ | `LITEPASEO_PORT` | `8787` | HTTP port |
108
+ | `LITEPASEO_BIND` | `127.0.0.1` | Listening address |
109
+ | `LITEPASEO_HOME` | `~/.litepaseo` | Application data directory |
110
+ | `LITEPASEO_PUSH_SUBJECT` | — | Contact URL or `mailto:` address for push services |
111
+
112
+ For example:
113
+
114
+ ```sh
115
+ LITEPASEO_PORT=9000 litepaseo start
116
+ ```
117
+
118
+ LitePaseo's data directory contains credentials and settings. Conversation
119
+ history stays on your daemons, and drafts stay in browser storage.
120
+
121
+ ## How it fits together
122
+
123
+ ```text
124
+ Browser / installed web app
125
+ Vue 3 + Markstream
126
+ │
127
+ │ HTTP actions + Server-Sent Events
128
+ ▼
129
+ LitePaseo server
130
+ Node.js + Hono + SQLite
131
+ │
132
+ │ Official Paseo SDK
133
+ ├── Paseo daemon · machine A
134
+ └── Paseo daemon · machine B
135
+ ```
136
+
137
+ The **browser** renders the interface and keeps local drafts. It receives only
138
+ the changes it needs to display.
139
+
140
+ The **server** owns daemon connections, authentication, shared subscriptions,
141
+ notifications and bounded timeline updates. SQLite stores LitePaseo's metadata,
142
+ including hosts, the board and signed-in devices. Daemon credentials stay here.
143
+
144
+ The **daemons** run the agents and own their conversation history. LitePaseo is
145
+ a client of those daemons; no daemon plugin is required.
146
+
147
+ Everything ships as one npm package: a Node service and prebuilt browser assets.
148
+ There is no separate database service to deploy.
149
+
150
+ ## Run from source
151
+
152
+ From a checkout of this repository:
153
+
154
+ ```sh
155
+ npm ci
156
+ npm run build
157
+ node dist/server/cli.mjs start
158
+ node dist/server/cli.mjs token
159
+ ```
160
+
161
+ For frontend development, run `node dist/server/cli.mjs serve` and `npm run dev`
162
+ in separate terminals. The development proxy targets port 8787.
163
+
164
+ To test a local npm installation:
165
+
166
+ ```sh
167
+ npm run build
168
+ npm pack
169
+ npm install --global ./litepaseo-0.2.0.tgz
170
+ litepaseo start
171
+ ```
172
+
173
+ Use the tarball filename printed by `npm pack` if the version has changed.
174
+
175
+ Validation:
176
+
177
+ ```sh
178
+ npx playwright install chromium
179
+ npm run check
180
+ node tests/package.mjs
181
+ ```
182
+
183
+ ## Further reading
184
+
185
+ - [Operations guide](docs/operations.md): phone setup, notifications, backups,
186
+ service management, diagnostics and attachment limits.
187
+ - [Markstream integration and measurements](docs/markstream-integration-validation.md).
188
+ - [Performance measurements](docs/performance-plan.md) and the
189
+ [benchmark harness](benchmarks/README.md).
190
+
191
+ ## License
192
+
193
+ [MIT](LICENSE).