create-opentray 0.24.0 → 0.26.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 (52) hide show
  1. package/README.md +21 -13
  2. package/dist/{bin-BQb2Bjcu.mjs → bin-Bz16rwKs.mjs} +249 -313
  3. package/dist/bin-Bz16rwKs.mjs.map +1 -0
  4. package/dist/bin-CrMTyTux.d.mts +751 -0
  5. package/dist/bin-CrMTyTux.d.mts.map +1 -0
  6. package/dist/bin.d.mts +2 -15
  7. package/dist/bin.mjs +2 -2
  8. package/dist/{decode-ico-BHd2POHf.mjs → decode-ico-DDEIV7iZ.mjs} +2 -2
  9. package/dist/{decode-ico-BHd2POHf.mjs.map → decode-ico-DDEIV7iZ.mjs.map} +1 -1
  10. package/dist/encode-CTEluLqt.mjs +167 -0
  11. package/dist/encode-CTEluLqt.mjs.map +1 -0
  12. package/dist/icon-codec-Bs3XehqZ.mjs +20 -0
  13. package/dist/icon-codec-Bs3XehqZ.mjs.map +1 -0
  14. package/dist/index.d.mts +1 -724
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +1 -1
  17. package/dist/rolldown-runtime-DJK8HYOj.mjs +34 -0
  18. package/dist/shell/assets/ghostty-web.js +1 -1
  19. package/dist/shell/assets/index.css +1 -1
  20. package/dist/shell/assets/index.js +2 -9
  21. package/dist/shell/assets/index2.js +9 -2
  22. package/dist/shell/assets/input.js +1 -1
  23. package/dist/shell/assets/main.js +8 -8
  24. package/dist/shell/assets/terminal-pane.js +2 -2
  25. package/dist/shell/assets/terminal.js +1 -1
  26. package/dist/shell/assets/toolbar.js +1 -0
  27. package/dist/shell/index.html +1 -1
  28. package/dist/shell/terminal.html +1 -1
  29. package/dist/shell/{browse.html → toolbar.html} +3 -3
  30. package/dist/skill/SKILL.md +14 -11
  31. package/dist/skill/references/cli-reference.md +1 -1
  32. package/dist/skill/references/how-it-works.md +15 -9
  33. package/dist/webui/assets/ghostty-web.js +1 -1
  34. package/dist/webui/assets/index.css +1 -1
  35. package/dist/webui/assets/index.js +2 -9
  36. package/dist/webui/assets/index2.js +9 -2
  37. package/dist/webui/assets/input.js +1 -1
  38. package/dist/webui/assets/main.js +8 -8
  39. package/dist/webui/assets/terminal-pane.js +2 -2
  40. package/dist/webui/assets/terminal.js +1 -1
  41. package/dist/webui/assets/toolbar.js +1 -0
  42. package/dist/webui/index.html +1 -1
  43. package/dist/webui/terminal.html +1 -1
  44. package/dist/webui/{browse.html → toolbar.html} +3 -3
  45. package/package.json +6 -6
  46. package/skill/SKILL.md +14 -11
  47. package/skill/references/cli-reference.md +1 -1
  48. package/skill/references/how-it-works.md +15 -9
  49. package/dist/bin-BQb2Bjcu.mjs.map +0 -1
  50. package/dist/bin.d.mts.map +0 -1
  51. package/dist/shell/assets/browse.js +0 -1
  52. package/dist/webui/assets/browse.js +0 -1
package/README.md CHANGED
@@ -50,18 +50,24 @@ npx create-opentray create \
50
50
  scrapes the page once and adopts its `<title>` and best favicon as
51
51
  defaults — explicit flags always win, failures fall back silently
52
52
  (address-derived name + glyph icon), and `--no-scrape` disables the fetch.
53
- - URL app window options: `--toolbar` hosts the shared address-bar wrapper
54
- (back/forward/reload buttons, address input, and the ⌘/Ctrl+←→, ⌘/Ctrl+[
55
- ], ⌘/Ctrl+R, F5, ⌘/Ctrl+L shortcuts while focus is in the wrapper). Sites
56
- that forbid iframe embedding cannot be wrapped: creation probes the page's
57
- embedding policy during the default scrape and, when the target refuses
58
- (`X-Frame-Options` / CSP `frame-ancestors`), prints a notice and falls
59
- back to the direct window automatically (with `--no-scrape` there is no
60
- probe data, so the toolbar request stands). Every URL app's tray menu
61
- offers Reload regardless of toolbar mode. By default the window title follows the
62
- page (`--no-title-follow` to stop) and the icon does NOT follow favicon
63
- changes at runtime (`--icon-follow` to enable); both persist in the v1
64
- config and round-trip through export.
53
+ - Window options (`--toolbar`, URL and command applications): `--toolbar`
54
+ composes the native navigation toolbar over the target/service page — one
55
+ toolbar webview at a fixed top strip (back/forward/reload buttons, address
56
+ input, and the ⌘/Ctrl+←→, ⌘/Ctrl+[], ⌘/Ctrl+R, F5, ⌘/Ctrl+L shortcuts
57
+ while the toolbar holds native focus) plus one content webview loading the
58
+ address directly as a top-level browsing context. The address bar follows
59
+ the content webview's URL events as its source of truth, and back/forward
60
+ drive the content webview's native history. Embedding policy is never
61
+ consulted an embedding-hostile site renders the same as any other address
62
+ because the content webview is not an embedded context; creation does not
63
+ probe, warn about, or downgrade the toolbar request. Toolbar mode is off by
64
+ default and maps to the single canonical `window.toolbar` config field (the
65
+ legacy `showAddressBar` input no longer exists; stale occurrences in old
66
+ frozen configs are ignored). Every URL app's tray menu offers Reload
67
+ regardless of toolbar mode. By default the window title follows the page
68
+ (`--no-title-follow` to stop) and the icon does NOT follow favicon changes
69
+ at runtime (`--icon-follow` to enable); both persist in the v1 config and
70
+ round-trip through export.
65
71
  - Icon sources: local files, `http(s)` URLs, or `data:` URLs. Outside URL-mode
66
72
  enrichment the CLI never scrapes names or favicons.
67
73
  - `--config <file>` loads a complete v1 document; explicit flags override
@@ -150,7 +156,9 @@ continuously discovers the command's OWNED HTTP listening ports (foreign
150
156
  listeners such as browser DevTools sockets are never adopted), hosts each
151
157
  verified port in an application-mode WebView window, and owns the tray
152
158
  session (Quit lives in the tray menu). Optional startup-terminal and
153
- address-bar shells are available through the wizard's advanced options.
159
+ navigation-toolbar (`--toolbar`) shells are available through the wizard's
160
+ advanced options and the CLI; the toolbar composes a native toolbar webview
161
+ above each service window's content webview.
154
162
 
155
163
  ## Platform notes
156
164