muse-cli 0.3.16__tar.gz → 0.3.18__tar.gz

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 (48) hide show
  1. {muse_cli-0.3.16 → muse_cli-0.3.18}/PKG-INFO +12 -8
  2. {muse_cli-0.3.16 → muse_cli-0.3.18}/README.md +9 -5
  3. {muse_cli-0.3.16 → muse_cli-0.3.18}/docs/PROTOCOL.md +7 -2
  4. {muse_cli-0.3.16 → muse_cli-0.3.18}/docs/TUI.md +19 -3
  5. {muse_cli-0.3.16 → muse_cli-0.3.18}/pyproject.toml +3 -3
  6. {muse_cli-0.3.16 → muse_cli-0.3.18}/skills/muse-cli/SKILL.md +5 -2
  7. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/__init__.py +1 -1
  8. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/bridge.py +8 -0
  9. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/cli.py +13 -6
  10. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/gateway.py +40 -7
  11. muse_cli-0.3.18/src/muse_cli/tui/bun.lock +126 -0
  12. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/package.json +6 -6
  13. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/app.tsx +82 -32
  14. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/components/Composer.tsx +52 -44
  15. muse_cli-0.3.18/src/muse_cli/tui/src/components/Header.tsx +56 -0
  16. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/components/Overlays.tsx +88 -65
  17. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/components/Panels.tsx +222 -70
  18. muse_cli-0.3.18/src/muse_cli/tui/src/components/Sidebar.tsx +153 -0
  19. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/components/Splash.tsx +9 -4
  20. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/components/Transcript.tsx +38 -46
  21. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/components/common.tsx +3 -3
  22. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/context.tsx +8 -8
  23. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/controller.ts +3 -3
  24. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/format.ts +14 -0
  25. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/main.tsx +12 -1
  26. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/store.ts +10 -9
  27. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/theme.ts +20 -22
  28. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/test/app.test.tsx +10 -10
  29. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/test/logic.test.ts +14 -7
  30. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui.py +8 -2
  31. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/update.py +10 -5
  32. muse_cli-0.3.16/src/muse_cli/tui/bun.lock +0 -86
  33. muse_cli-0.3.16/src/muse_cli/tui/src/components/Header.tsx +0 -64
  34. muse_cli-0.3.16/src/muse_cli/tui/src/components/Sidebar.tsx +0 -122
  35. {muse_cli-0.3.16 → muse_cli-0.3.18}/.gitignore +0 -0
  36. {muse_cli-0.3.16 → muse_cli-0.3.18}/LICENSE +0 -0
  37. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/__main__.py +0 -0
  38. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/browsers.py +0 -0
  39. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/chat.py +0 -0
  40. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/demo.py +0 -0
  41. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/desc0.bin +0 -0
  42. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/desc1.bin +0 -0
  43. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/routes.json +0 -0
  44. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/skill.py +0 -0
  45. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/bridge.ts +0 -0
  46. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/src/protocol.ts +0 -0
  47. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/test/fake.ts +0 -0
  48. {muse_cli-0.3.16 → muse_cli-0.3.18}/src/muse_cli/tui/tsconfig.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: muse-cli
3
- Version: 0.3.16
3
+ Version: 0.3.18
4
4
  Summary: Command-line client for your personal muse.ai AI agent: chat, automate, and manage side chats, feed, goals, ideas, and sessions from the terminal. No browser needed.
5
5
  Project-URL: Homepage, https://github.com/nikships/muse-cli
6
6
  Project-URL: Documentation, https://github.com/nikships/muse-cli#readme
@@ -31,8 +31,8 @@ Classifier: Topic :: Terminals
31
31
  Classifier: Topic :: Utilities
32
32
  Requires-Python: >=3.10
33
33
  Requires-Dist: curl-cffi>=0.17
34
- Requires-Dist: noiseprotocol>=0.3
35
- Requires-Dist: protobuf>=5.0
34
+ Requires-Dist: noiseprotocol>=0.3.1
35
+ Requires-Dist: protobuf>=7.36.2
36
36
  Description-Content-Type: text/markdown
37
37
 
38
38
  <div align="center">
@@ -85,7 +85,7 @@ to `~/.agents/skills/muse-cli`:
85
85
  curl -fsSL https://raw.githubusercontent.com/nikships/muse-cli/main/install.sh | bash
86
86
  ```
87
87
 
88
- Upgrade with `muse-cli update`. It also refreshes the agent skill if you installed one (the skill ships inside the package, so it always matches the CLI). `muse-cli update --skill` refreshes or installs just the skill, with no package upgrade, which is handy after `pip` or `pipx` installs. In a terminal it also checks PyPI once a day and, when a newer release exists, prints that command on stderr. It does not upgrade itself. Set `MUSE_NO_UPDATE_CHECK=1` to silence the notice. The check stays quiet when output is piped or `CI` is set. Remove with `uv tool uninstall muse-cli`.
88
+ Upgrade with `muse-cli update`. It also refreshes the agent skill if you installed one (the skill ships inside the package, so it always matches the CLI). `muse-cli update --skill` refreshes or installs just the skill, with no package upgrade, which is handy after `pip` or `pipx` installs. In a terminal it checks PyPI once a day and shows newer releases in the full-screen app and on stderr. It does not upgrade itself. Set `MUSE_NO_UPDATE_CHECK=1` to silence the notice. The check stays quiet when output is piped or `CI` is set. Remove with `uv tool uninstall muse-cli`.
89
89
 
90
90
  Logging in is a separate one-time step. On a Mac it is one command, run after
91
91
  you have logged in at https://muse.ai/ in your browser. Follow
@@ -99,6 +99,8 @@ read it), and after that talks to muse.ai directly. Access tokens are reused
99
99
  for up to 15 minutes (`tokens.json`, mode `600`), so commands start fast. When a command later says the cookies expired, repeat
100
100
  this section.
101
101
 
102
+ If the full-screen app can't connect, press **R** to retry or **L** to read your browser login again. A gateway 502, 503, or 504 is retried automatically and does not mean you were signed out.
103
+
102
104
  ### Easiest, on any system: Firefox
103
105
 
104
106
  1. Log in at https://muse.ai/ in Firefox.
@@ -290,10 +292,12 @@ On a terminal, `muse-cli` opens a full-screen app built on
290
292
  The first run copies the app to `~/.cache/muse-cli/tui` and installs its
291
293
  dependencies, which takes a few seconds once per release.
292
294
 
293
- - Replies stream in as they arrive, with Markdown, code blocks and file chips.
294
- Press Enter on a file to save it to `~/Downloads/muse`.
295
- - Your chats sit on the left. `Tab` moves between them and the message box,
296
- `Ctrl+N` starts a side chat.
295
+ - Replies stream in as they arrive, with Markdown, code blocks and attachments.
296
+ Click Download in a reply, or press Enter on a file in the Files tab, to
297
+ save it to `~/Downloads/muse`.
298
+ - `Tab` focuses the chat list. When it isn't docked, it opens over the current
299
+ view without rewrapping it. `Ctrl+B` pins or hides the list; `Ctrl+N` starts
300
+ a side chat.
297
301
  - `Ctrl+K` jumps to any chat, space or action. `Alt+1` to `Alt+7` open Chat,
298
302
  Feed, Goals, Ideas, Tasks, Mail and Files. Type `/` for commands, `F1` for
299
303
  every shortcut.
@@ -48,7 +48,7 @@ to `~/.agents/skills/muse-cli`:
48
48
  curl -fsSL https://raw.githubusercontent.com/nikships/muse-cli/main/install.sh | bash
49
49
  ```
50
50
 
51
- Upgrade with `muse-cli update`. It also refreshes the agent skill if you installed one (the skill ships inside the package, so it always matches the CLI). `muse-cli update --skill` refreshes or installs just the skill, with no package upgrade, which is handy after `pip` or `pipx` installs. In a terminal it also checks PyPI once a day and, when a newer release exists, prints that command on stderr. It does not upgrade itself. Set `MUSE_NO_UPDATE_CHECK=1` to silence the notice. The check stays quiet when output is piped or `CI` is set. Remove with `uv tool uninstall muse-cli`.
51
+ Upgrade with `muse-cli update`. It also refreshes the agent skill if you installed one (the skill ships inside the package, so it always matches the CLI). `muse-cli update --skill` refreshes or installs just the skill, with no package upgrade, which is handy after `pip` or `pipx` installs. In a terminal it checks PyPI once a day and shows newer releases in the full-screen app and on stderr. It does not upgrade itself. Set `MUSE_NO_UPDATE_CHECK=1` to silence the notice. The check stays quiet when output is piped or `CI` is set. Remove with `uv tool uninstall muse-cli`.
52
52
 
53
53
  Logging in is a separate one-time step. On a Mac it is one command, run after
54
54
  you have logged in at https://muse.ai/ in your browser. Follow
@@ -62,6 +62,8 @@ read it), and after that talks to muse.ai directly. Access tokens are reused
62
62
  for up to 15 minutes (`tokens.json`, mode `600`), so commands start fast. When a command later says the cookies expired, repeat
63
63
  this section.
64
64
 
65
+ If the full-screen app can't connect, press **R** to retry or **L** to read your browser login again. A gateway 502, 503, or 504 is retried automatically and does not mean you were signed out.
66
+
65
67
  ### Easiest, on any system: Firefox
66
68
 
67
69
  1. Log in at https://muse.ai/ in Firefox.
@@ -253,10 +255,12 @@ On a terminal, `muse-cli` opens a full-screen app built on
253
255
  The first run copies the app to `~/.cache/muse-cli/tui` and installs its
254
256
  dependencies, which takes a few seconds once per release.
255
257
 
256
- - Replies stream in as they arrive, with Markdown, code blocks and file chips.
257
- Press Enter on a file to save it to `~/Downloads/muse`.
258
- - Your chats sit on the left. `Tab` moves between them and the message box,
259
- `Ctrl+N` starts a side chat.
258
+ - Replies stream in as they arrive, with Markdown, code blocks and attachments.
259
+ Click Download in a reply, or press Enter on a file in the Files tab, to
260
+ save it to `~/Downloads/muse`.
261
+ - `Tab` focuses the chat list. When it isn't docked, it opens over the current
262
+ view without rewrapping it. `Ctrl+B` pins or hides the list; `Ctrl+N` starts
263
+ a side chat.
260
264
  - `Ctrl+K` jumps to any chat, space or action. `Alt+1` to `Alt+7` open Chat,
261
265
  Feed, Goals, Ideas, Tasks, Mail and Files. Type `/` for commands, `F1` for
262
266
  every shortcut.
@@ -29,6 +29,9 @@ chat / feed / goals / ideas / sessions / ...
29
29
  - **Gateway host:** the shared `hatch.metaaivm.com`, not the per-VM hostname.
30
30
  Plain TLS to the per-VM host is reset at the edge; a Chrome fingerprint
31
31
  (curl_cffi `impersonate="chrome"`) is required.
32
+ - **WebSocket upgrade:** the shared gateway can return HTTP 502 even when both
33
+ auth endpoints accept the login. Retry 502, 503 and 504 before starting Noise,
34
+ without discarding the cached login or replaying an application request.
32
35
  - **Handshake:** standard Noise XX. This account negotiates standard mode
33
36
  (empty msg3). An attested/RV mode with SNP attestation and HMAC proofs
34
37
  exists in the client for other configurations.
@@ -152,8 +155,10 @@ chat / feed / goals / ideas / sessions / ...
152
155
  values with counts. `voice.speak` (`{voice_id, text, format: "mp3",
153
156
  stream: true}`, binary `audio/mpeg`) returned 404 `preview_audio_disabled`
154
157
  on the test account.
155
- - Muse Mail (`email.*`) answers 403 `{"code": "email_not_enabled"}` when the
156
- account has no mailbox. Thread list: `{data: [{id, subject,
158
+ - Muse Mail (`email.*`) can answer 403 `email_not_enabled` or 404
159
+ `email_upstream_rejected` when the account has no mailbox. For the latter,
160
+ the error's message contains JSON with `type: "emailMailboxNotFound"` and
161
+ a human-readable `detail`. Thread list: `{data: [{id, subject,
157
162
  message_count, participants, last_message}], paging: {cursors: {after}}}`,
158
163
  next page with `{cursor}`. Messages carry `header_from`,
159
164
  `header_from_name`, `header_to`, `text_body`/`html_body`/`extracted_text`,
@@ -24,6 +24,22 @@ python -m muse_cli.bridge (muse_cli/bridge.py) ── owns the Gateway
24
24
  points `sys.stdout` and fd 1 at stderr, so a stray `print()` from a CLI
25
25
  helper can never corrupt the protocol. The app writes the bridge's stderr
26
26
  to `~/.config/muse-cli/tui.log`.
27
+ - OpenTUI parses the transcript's Markdown natively. The app adds a language
28
+ label and frame to fenced blocks through `renderBlock`; it leaves the
29
+ Markdown source unchanged while a reply streams.
30
+
31
+ From 60 columns, `Tab` opens a full-width chat picker when the list isn't
32
+ docked. Only Chat docks the list automatically, at 144 columns or wider. Use
33
+ `Esc` or `Tab` to return to the view, or `Ctrl+B` to pin the list.
34
+ The dock groups chat names and unread counts by pin and recency. Click
35
+ **Switch chat** above the transcript, **Browse all** in the dock, or run
36
+ **Browse all chats** from the command palette for exact recency and longer
37
+ names without resizing the transcript.
38
+
39
+ In Tasks, select a schedule to see its latest runs or a single run to see its
40
+ full explanation. The list uses short summaries for common diagnostics.
41
+ Consecutive runs with the same outcome and explanation share one note while
42
+ keeping each timestamp, grouped by day when all outcomes match.
27
43
 
28
44
  ### Launcher
29
45
 
@@ -66,9 +82,9 @@ Bridge to app (response, exactly one per request id):
66
82
  Error `kind`: `auth` (no or expired login), `not_found` (deleted chat),
67
83
  `gateway`, `timeout`, `bad_request` (unknown method or bad params),
68
84
  `internal`. A gateway error whose body carries the server's reason uses its
69
- `message`, and adds its `code` (for example `email_not_enabled`). The app
70
- shows a code ending in `_not_enabled` as a feature the account lacks rather
71
- than a failure to retry.
85
+ message and code (for example `email_not_enabled` or `emailMailboxNotFound`).
86
+ The app treats those Mail codes as an unavailable inbox rather than a failure
87
+ to retry.
72
88
 
73
89
  Bridge to app (event, no id):
74
90
 
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["hatchling>=1.27"]
2
+ requires = ["hatchling>=1.33"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
5
  [project]
@@ -54,8 +54,8 @@ classifiers = [
54
54
  ]
55
55
  dependencies = [
56
56
  "curl_cffi>=0.17",
57
- "noiseprotocol>=0.3",
58
- "protobuf>=5.0",
57
+ "noiseprotocol>=0.3.1",
58
+ "protobuf>=7.36.2",
59
59
  ]
60
60
 
61
61
  [project.urls]
@@ -245,10 +245,13 @@ only for methods with no wrapper.
245
245
  - The gateway API is unversioned. Whole classes of calls failing at once means
246
246
  the protocol drifted: see `docs/PROTOCOL.md` for the re-derivation notes,
247
247
  don't guess at crypto or framing.
248
+ - A WebSocket upgrade HTTP 502, 503, or 504 is retried automatically. It is
249
+ not an expired login. In the full-screen app, press R to retry or L to read
250
+ the browser login again if needed.
248
251
  - Respect rate limits. Writes (send, react, execute, session ops) act as the
249
252
  user in their agent: announce them before running, never loop them.
250
253
  - A stderr line `A new release of muse-cli is available` is an upgrade
251
254
  notice, not a failed command. Upgrade with `muse-cli update`, which also refreshes this skill
252
255
  (`muse-cli update --skill` refreshes only the skill). The check
253
- runs at most once a day, only in a terminal, and never changes the install
254
- by itself. `MUSE_NO_UPDATE_CHECK=1` silences it.
256
+ runs at most once a day, shows updates in the full-screen app too, and never
257
+ changes the install by itself. `MUSE_NO_UPDATE_CHECK=1` silences it.
@@ -1,3 +1,3 @@
1
1
  """muse-cli: talk to your personal muse.ai AI agent from the terminal."""
2
2
 
3
- __version__ = "0.3.16"
3
+ __version__ = "0.3.18"
@@ -186,6 +186,14 @@ def server_reason(e):
186
186
  return None, None
187
187
  code = err.get("code") if isinstance(err.get("code"), str) else None
188
188
  message = err.get("message") if isinstance(err.get("message"), str) else None
189
+ if e.status == 404 and code == "email_upstream_rejected" and message:
190
+ try:
191
+ problem = json.loads(message)
192
+ except ValueError:
193
+ return code, message
194
+ if isinstance(problem, dict) and problem.get("type") == "emailMailboxNotFound":
195
+ detail = problem.get("detail")
196
+ return "emailMailboxNotFound", detail if isinstance(detail, str) else None
189
197
  return code, message
190
198
 
191
199
 
@@ -19,8 +19,8 @@ import time
19
19
  import urllib.parse
20
20
 
21
21
  from . import __version__, browsers
22
- from .gateway import (Gateway, AuthError, GatewayError, fetch_access_token, fetch_hatch_token,
23
- fetch_session_info, load_cookies)
22
+ from .gateway import (Gateway, AuthError, GatewayError, RETRYABLE_UPGRADE_STATUS,
23
+ fetch_access_token, fetch_hatch_token, fetch_session_info, load_cookies)
24
24
  from .update import cmd_update, finish_update_check, start_update_check
25
25
 
26
26
  CONFIG_DIR = os.path.expanduser("~/.config/muse-cli")
@@ -64,16 +64,20 @@ def connect(cfg):
64
64
  raise AuthError(f"cookies file {cfg['cookies_file']} is empty; run `muse-cli auth export`")
65
65
  # Three HTTPS round trips (session, auth/check, hatch/token) are most of a
66
66
  # connect, about 2.3 s of 2.8 s, and their answers outlive one command.
67
- # A stale cached token is refused fast (403 on the WebSocket upgrade), so
68
- # anything but a timeout falls back to fetching fresh ones.
67
+ # A stale cached token is refused fast (403 on the WebSocket upgrade).
68
+ # A timeout or a server outage won't be fixed by fetching fresh tokens.
69
69
  cached = _cached_tokens(cookies)
70
70
  if cached and cfg.get("vm_id") in (None, cached["vm_id"]):
71
71
  try:
72
72
  return Gateway(cookies, **cached)
73
73
  except TimeoutError:
74
74
  raise
75
+ except GatewayError as e:
76
+ if e.status in RETRYABLE_UPGRADE_STATUS:
77
+ raise
75
78
  except Exception:
76
- _drop_tokens()
79
+ pass
80
+ _drop_tokens()
77
81
  vm_id = cfg.get("vm_id") or fetch_session_info(cookies)["vm_id"]
78
82
  access_token = fetch_access_token(cookies)
79
83
  hatch_token = fetch_hatch_token(cookies, access_token, vm_id)
@@ -1265,7 +1269,8 @@ def build_parser():
1265
1269
  p = sub.add_parser("tui", help="full-screen app (OpenTUI); `chat` is the plain version",
1266
1270
  description="Full-screen app built on OpenTUI. Needs Bun 1.3.14 or later "
1267
1271
  "(offers to install it). Bare `muse-cli` opens it on a terminal "
1268
- "when Bun is there; set MUSE_CLI_UI=plain to keep the plain chat.")
1272
+ "when Bun is there; set MUSE_CLI_UI=plain to keep the plain chat. "
1273
+ "If it cannot connect, press R to retry or L to read your browser login.")
1269
1274
  p.add_argument("--demo", action="store_true",
1270
1275
  help="made-up data for screenshots; never touches muse.ai")
1271
1276
  p.set_defaults(fn=cmd_tui)
@@ -1399,6 +1404,8 @@ def main(argv=None):
1399
1404
  # A piped command prints JSON. The notice stays off unless both streams
1400
1405
  # are a terminal, and `update` is already doing the upgrade.
1401
1406
  notice = None if args.cmd == "update" else start_update_check()
1407
+ if args.cmd == "tui":
1408
+ args.update_check = notice
1402
1409
  try:
1403
1410
  try:
1404
1411
  args.fn(args)
@@ -6,6 +6,7 @@ No browser needed after the initial cookie export.
6
6
  """
7
7
  import json
8
8
  import os
9
+ import re
9
10
  import struct
10
11
  import threading
11
12
  import time
@@ -13,8 +14,9 @@ import urllib.parse
13
14
  import uuid
14
15
  import queue as queue_mod
15
16
 
16
- from curl_cffi import requests as rq
17
+ from curl_cffi import CurlECode, CurlOpt, requests as rq
17
18
  from curl_cffi.requests import WebSocket
19
+ from curl_cffi.requests.exceptions import CurlError
18
20
  from curl_cffi.requests.websockets import WebSocketTimeout
19
21
  from noise.connection import NoiseConnection, Keypair
20
22
  from google.protobuf import descriptor_pb2, descriptor_pool, message_factory
@@ -23,6 +25,7 @@ _HERE = os.path.dirname(os.path.abspath(__file__))
23
25
  UA = ("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 "
24
26
  "(KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36")
25
27
  GATEWAY_HOST = "hatch.metaaivm.com"
28
+ RETRYABLE_UPGRADE_STATUS = (502, 503, 504)
26
29
 
27
30
  _pool = descriptor_pool.DescriptorPool()
28
31
  for _i in (0, 1):
@@ -176,6 +179,41 @@ def fetch_session_info(cookies):
176
179
  return info
177
180
 
178
181
 
182
+ def _open_websocket(url):
183
+ deadline = time.monotonic() + 20
184
+ for delay in (1, 2, None):
185
+ status = None
186
+
187
+ def response_header(line):
188
+ nonlocal status
189
+ match = re.match(rb"HTTP/\S+ (\d{3})(?:\s|$)", line)
190
+ if match:
191
+ status = int(match[1])
192
+ return len(line)
193
+
194
+ ws = WebSocket()
195
+ try:
196
+ ws.connect(url, impersonate="chrome", timeout=deadline - time.monotonic(),
197
+ verify=True, curl_options={CurlOpt.HEADERFUNCTION: response_header})
198
+ return ws
199
+ except CurlError as e:
200
+ if isinstance(e, rq.exceptions.Timeout) or e.code == CurlECode.OPERATION_TIMEDOUT:
201
+ raise TimeoutError("gateway connect timed out") from None
202
+ if status in RETRYABLE_UPGRADE_STATUS:
203
+ if delay is not None and time.monotonic() + delay < deadline:
204
+ time.sleep(delay)
205
+ if time.monotonic() < deadline:
206
+ continue
207
+ message = f"Muse's gateway is temporarily unavailable (HTTP {status}). Retry in a moment."
208
+ elif status is not None and status >= 300:
209
+ message = f"Muse's gateway refused the WebSocket connection (HTTP {status})."
210
+ else:
211
+ message = f"Could not open a WebSocket to Muse's gateway (curl error {e.code})."
212
+ # Never echo the curl error: a connection URL contains the hatch token.
213
+ raise GatewayError(status if status is not None and status >= 300 else -1,
214
+ {"error": message}) from None
215
+
216
+
179
217
  class Gateway:
180
218
  """One authenticated connection to the personal VM gateway."""
181
219
 
@@ -187,14 +225,9 @@ class Gateway:
187
225
  hatch_token = hatch_token or fetch_hatch_token(cookies, access_token, vm_id)
188
226
  url = (f"wss://{GATEWAY_HOST}/v1/noise?vm_id={vm_id}"
189
227
  f"&auth_token={urllib.parse.quote(hatch_token, safe='')}")
190
- self.ws = WebSocket()
191
228
  # verify=True is required: curl_cffi's WebSocket.connect defaults to
192
229
  # verify=None, which disables TLS certificate verification entirely.
193
- try:
194
- self.ws.connect(url, impersonate="chrome", timeout=20, verify=True)
195
- except rq.exceptions.Timeout:
196
- self.close()
197
- raise TimeoutError("gateway connect timed out") from None
230
+ self.ws = _open_websocket(url)
198
231
  try:
199
232
  noise = NoiseConnection.from_name(b"Noise_XX_25519_AESGCM_SHA256")
200
233
  noise.set_as_initiator()
@@ -0,0 +1,126 @@
1
+ {
2
+ "lockfileVersion": 1,
3
+ "configVersion": 1,
4
+ "workspaces": {
5
+ "": {
6
+ "name": "muse-cli-tui",
7
+ "dependencies": {
8
+ "@opentui/core": "0.9.12",
9
+ "@opentui/react": "0.9.12",
10
+ "react": "19.3.1",
11
+ },
12
+ "devDependencies": {
13
+ "@types/bun": "1.4.5",
14
+ "@types/react": "19.3.3",
15
+ "typescript": "7.0.2",
16
+ },
17
+ },
18
+ },
19
+ "packages": {
20
+ "@opentui/core": ["@opentui/core@0.9.12", "", { "dependencies": { "bun-ffi-structs": "0.3.1", "diff": "9.0.0", "string-width": "7.2.0" }, "optionalDependencies": { "@opentui/core-darwin-arm64": "0.9.12", "@opentui/core-darwin-x64": "0.9.12", "@opentui/core-linux-arm64": "0.9.12", "@opentui/core-linux-arm64-musl": "0.9.12", "@opentui/core-linux-x64": "0.9.12", "@opentui/core-linux-x64-musl": "0.9.12", "@opentui/core-win32-arm64": "0.9.12", "@opentui/core-win32-x64": "0.9.12" }, "peerDependencies": { "web-tree-sitter": "0.25.10" } }, "sha512-2nmFVIQEjqaAmAHCCnU22R6rB521++Kh9bxlwXoqPX4Cx5gvtSS0enHEgt7kz32M9gSrpciD/KIWzJSOyvDpAg=="],
21
+
22
+ "@opentui/core-darwin-arm64": ["@opentui/core-darwin-arm64@0.9.12", "", { "os": "darwin", "cpu": "arm64" }, "sha512-xDBNOdZsqGxlNUzJ6bc2uQ8UfLJz5epuU4h/mn6c9yQA5WL8QWfzzezB9fHSo3cx3Tr/NOkHqGPFHJwVBcDXAw=="],
23
+
24
+ "@opentui/core-darwin-x64": ["@opentui/core-darwin-x64@0.9.12", "", { "os": "darwin", "cpu": "x64" }, "sha512-vYX014WClF/CQVgf0syVyQs9k2XkZUg0chLSlfEdwRdhaSQ48lAb0SNixA3MaQY55zPxsh+8lOUj9xeGQ8+60A=="],
25
+
26
+ "@opentui/core-linux-arm64": ["@opentui/core-linux-arm64@0.9.12", "", { "os": "linux", "cpu": "arm64" }, "sha512-TPDRJGII7LdXKPsnyYmyAiMM37zLMsRIBdxDr2sK968rW6Hp1bmg0PffziEIrhk71W9VLW11GpYHOnVJ4ytVEA=="],
27
+
28
+ "@opentui/core-linux-arm64-musl": ["@opentui/core-linux-arm64-musl@0.9.12", "", { "os": "linux", "cpu": "arm64" }, "sha512-bOtr2OT8XVicv29zTVRUkacSwNb6AUKPmiCXbEwCzIlguNDnIScefaPQQZ6b7y13X3VXqm+1cPSYcaPLl4PeMA=="],
29
+
30
+ "@opentui/core-linux-x64": ["@opentui/core-linux-x64@0.9.12", "", { "os": "linux", "cpu": "x64" }, "sha512-uNUQVbv+myH58NT93PTurZvrarjl+2nIM6Gy3ES9PzA5BxzoAju5X38zVfDEfl+uH/Sbs6MOrKOf+Y01dYXGpQ=="],
31
+
32
+ "@opentui/core-linux-x64-musl": ["@opentui/core-linux-x64-musl@0.9.12", "", { "os": "linux", "cpu": "x64" }, "sha512-EEjxwdbgqjv9nv5Y7joayiYOiyfWk8YwVFXIxfQk+DJrcejT92AY+iiniOeJ/jvNMF6A4OdWt2r5c6eJFo53Ww=="],
33
+
34
+ "@opentui/core-win32-arm64": ["@opentui/core-win32-arm64@0.9.12", "", { "os": "win32", "cpu": "arm64" }, "sha512-wz0PZsZu7POpk4cwLayONhP/ewkTxbHVaoSW/ek5IOJJPysxBlSkd6Tn956VQBvL8wOUHx/BaRbJmXYpaqSQDg=="],
35
+
36
+ "@opentui/core-win32-x64": ["@opentui/core-win32-x64@0.9.12", "", { "os": "win32", "cpu": "x64" }, "sha512-LHdYeh4hVJ/YUhpsZWNQ8P910UgQi7FvZxgS5gTzmMYei7pa1pBDcb608PM+iium/IKHOsFhxUB3SGQ5vumcTQ=="],
37
+
38
+ "@opentui/react": ["@opentui/react@0.9.12", "", { "dependencies": { "@opentui/core": "0.9.12", "react-reconciler": "^0.33.0" }, "peerDependencies": { "react": ">=19.2.0", "react-devtools-core": "^7.0.1", "ws": "^8.18.0" } }, "sha512-pO8IsdL4b5Hn/HZBoMKG73UnRPRk1s5TLbvVpmwDhOUuSb4ptn/hivkb2OIxr29S5EyI/r0aFrarPgUJr7WoCA=="],
39
+
40
+ "@types/bun": ["@types/bun@1.4.5", "", { "dependencies": { "bun-types": "1.4.5" } }, "sha512-DpgwNI9z0L1S0gtb45QLCWgwCUcMLnsHYMJHQvpNj7erGiCGBvpggltAIeARrtobNMKMuy0UP7i56tKKgwFs/Q=="],
41
+
42
+ "@types/node": ["@types/node@26.6.11", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-uUyQ2XLEz+EXh34lmS3GhKrkqn/8FU7KUiKRpk347At2bmnMVWss45yz8b4FG/tUtmV1tV/+TVkITItPROyeeQ=="],
43
+
44
+ "@types/react": ["@types/react@19.3.3", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-K8uWpJc4teiuOPdiP1umjeA9rGMgVPiXuoL66fcS1QlwBT1WMqY8PORmub9FadopIs+RCW6siYEs7Lpq+vDlog=="],
45
+
46
+ "@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="],
47
+
48
+ "@typescript/typescript-darwin-arm64": ["@typescript/typescript-darwin-arm64@7.0.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA=="],
49
+
50
+ "@typescript/typescript-darwin-x64": ["@typescript/typescript-darwin-x64@7.0.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA=="],
51
+
52
+ "@typescript/typescript-freebsd-arm64": ["@typescript/typescript-freebsd-arm64@7.0.2", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ=="],
53
+
54
+ "@typescript/typescript-freebsd-x64": ["@typescript/typescript-freebsd-x64@7.0.2", "", { "os": "freebsd", "cpu": "x64" }, "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw=="],
55
+
56
+ "@typescript/typescript-linux-arm": ["@typescript/typescript-linux-arm@7.0.2", "", { "os": "linux", "cpu": "arm" }, "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ=="],
57
+
58
+ "@typescript/typescript-linux-arm64": ["@typescript/typescript-linux-arm64@7.0.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ=="],
59
+
60
+ "@typescript/typescript-linux-loong64": ["@typescript/typescript-linux-loong64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ=="],
61
+
62
+ "@typescript/typescript-linux-mips64el": ["@typescript/typescript-linux-mips64el@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA=="],
63
+
64
+ "@typescript/typescript-linux-ppc64": ["@typescript/typescript-linux-ppc64@7.0.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA=="],
65
+
66
+ "@typescript/typescript-linux-riscv64": ["@typescript/typescript-linux-riscv64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ=="],
67
+
68
+ "@typescript/typescript-linux-s390x": ["@typescript/typescript-linux-s390x@7.0.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw=="],
69
+
70
+ "@typescript/typescript-linux-x64": ["@typescript/typescript-linux-x64@7.0.2", "", { "os": "linux", "cpu": "x64" }, "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A=="],
71
+
72
+ "@typescript/typescript-netbsd-arm64": ["@typescript/typescript-netbsd-arm64@7.0.2", "", { "os": "none", "cpu": "arm64" }, "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA=="],
73
+
74
+ "@typescript/typescript-netbsd-x64": ["@typescript/typescript-netbsd-x64@7.0.2", "", { "os": "none", "cpu": "x64" }, "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA=="],
75
+
76
+ "@typescript/typescript-openbsd-arm64": ["@typescript/typescript-openbsd-arm64@7.0.2", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ=="],
77
+
78
+ "@typescript/typescript-openbsd-x64": ["@typescript/typescript-openbsd-x64@7.0.2", "", { "os": "openbsd", "cpu": "x64" }, "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg=="],
79
+
80
+ "@typescript/typescript-sunos-x64": ["@typescript/typescript-sunos-x64@7.0.2", "", { "os": "sunos", "cpu": "x64" }, "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g=="],
81
+
82
+ "@typescript/typescript-win32-arm64": ["@typescript/typescript-win32-arm64@7.0.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ=="],
83
+
84
+ "@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="],
85
+
86
+ "ansi-regex": ["ansi-regex@6.6.0", "", {}, "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g=="],
87
+
88
+ "bun-ffi-structs": ["bun-ffi-structs@0.3.1", "", { "peerDependencies": { "typescript": "^5" } }, "sha512-3gM7PpVWLyrwxWjcilSiGuhWanhZivvo6l0u573NziPH6f/gwk6McbaYgn7oJWov6pKGRTDbrg94W5DcJsKTtQ=="],
89
+
90
+ "bun-types": ["bun-types@1.4.5", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-ECHn+9dhL3wv0G6u0+7dQvrnaimXiRDxxerYBmhTaLyJEEuvTPWk2Fye3XIf5Y++JIIiHKfQw4Z7V5D8KuiXbg=="],
91
+
92
+ "csstype": ["csstype@3.2.4", "", {}, "sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ=="],
93
+
94
+ "diff": ["diff@9.0.0", "", {}, "sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw=="],
95
+
96
+ "emoji-regex": ["emoji-regex@10.6.0", "", {}, "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="],
97
+
98
+ "get-east-asian-width": ["get-east-asian-width@1.7.0", "", {}, "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q=="],
99
+
100
+ "react": ["react@19.3.1", "", {}, "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw=="],
101
+
102
+ "react-devtools-core": ["react-devtools-core@7.0.1", "", { "dependencies": { "shell-quote": "^1.6.1", "ws": "^7" } }, "sha512-C3yNvRHaizlpiASzy7b9vbnBGLrhvdhl1CbdU6EnZgxPNbai60szdLtl+VL76UNOt5bOoVTOz5rNWZxgGt+Gsw=="],
103
+
104
+ "react-reconciler": ["react-reconciler@0.33.0", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.0" } }, "sha512-KetWRytFv1epdpJc3J4G75I4WrplZE5jOL7Yq0p34+OVOKF4Se7WrdIdVC45XsSSmUTlht2FM/fM1FZb1mfQeA=="],
105
+
106
+ "scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
107
+
108
+ "shell-quote": ["shell-quote@1.12.0", "", {}, "sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q=="],
109
+
110
+ "string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
111
+
112
+ "strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],
113
+
114
+ "typescript": ["typescript@7.0.2", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@typescript/typescript-linux-ppc64": "7.0.2", "@typescript/typescript-linux-riscv64": "7.0.2", "@typescript/typescript-linux-s390x": "7.0.2", "@typescript/typescript-linux-x64": "7.0.2", "@typescript/typescript-netbsd-arm64": "7.0.2", "@typescript/typescript-netbsd-x64": "7.0.2", "@typescript/typescript-openbsd-arm64": "7.0.2", "@typescript/typescript-openbsd-x64": "7.0.2", "@typescript/typescript-sunos-x64": "7.0.2", "@typescript/typescript-win32-arm64": "7.0.2", "@typescript/typescript-win32-x64": "7.0.2" }, "bin": { "tsc": "bin/tsc" } }, "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA=="],
115
+
116
+ "undici-types": ["undici-types@8.14.0", "", {}, "sha512-adaTpowOLjSeKhwA1+gEN/F8Bw/wmKH7Csw+01zmDB1TAYJ+COEn/Cfb9RXSUdssbZOdPBRvI6wOubXyzbiotQ=="],
117
+
118
+ "web-tree-sitter": ["web-tree-sitter@0.25.10", "", { "peerDependencies": { "@types/emscripten": "^1.40.0" }, "optionalPeers": ["@types/emscripten"] }, "sha512-Y09sF44/13XvgVKgO2cNDw5rGk6s26MgoZPXLESvMXeefBf7i6/73eFurre0IsTW6E14Y0ArIzhUMmjoc7xyzA=="],
119
+
120
+ "ws": ["ws@8.23.1", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA=="],
121
+
122
+ "@types/node/undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="],
123
+
124
+ "react-devtools-core/ws": ["ws@7.5.14", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug=="],
125
+ }
126
+ }
@@ -9,13 +9,13 @@
9
9
  "typecheck": "tsc --noEmit"
10
10
  },
11
11
  "dependencies": {
12
- "@opentui/core": "0.8.3",
13
- "@opentui/react": "0.8.3",
14
- "react": "19.2.0"
12
+ "@opentui/core": "0.9.12",
13
+ "@opentui/react": "0.9.12",
14
+ "react": "19.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@types/bun": "1.4.1",
18
- "@types/react": "19.2.0",
19
- "typescript": "^5"
17
+ "@types/bun": "1.4.5",
18
+ "@types/react": "19.3.3",
19
+ "typescript": "7.0.2"
20
20
  }
21
21
  }