@surething/cockpit 1.0.270 → 1.0.272

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 (61) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +8 -8
  3. package/.next-prod/build-manifest.json +2 -2
  4. package/.next-prod/cockpit-build.json +1 -1
  5. package/.next-prod/prerender-manifest.json +3 -3
  6. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  7. package/.next-prod/server/app/_global-error.html +1 -1
  8. package/.next-prod/server/app/_global-error.rsc +1 -1
  9. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  11. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next-prod/server/app/_not-found.html +2 -2
  14. package/.next-prod/server/app/_not-found.rsc +3 -3
  15. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
  16. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
  17. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  19. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  20. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  21. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  22. package/.next-prod/server/app/m/page.js +1 -1
  23. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  24. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  25. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  26. package/.next-prod/server/app/review/[id]/page.js +1 -1
  27. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  28. package/.next-prod/server/app-paths-manifest.json +8 -8
  29. package/.next-prod/server/chunks/516.js +1 -1
  30. package/.next-prod/server/chunks/5750.js +16 -14
  31. package/.next-prod/server/chunks/6548.js +1 -1
  32. package/.next-prod/server/middleware-build-manifest.js +1 -1
  33. package/.next-prod/server/pages/404.html +2 -2
  34. package/.next-prod/server/pages/500.html +1 -1
  35. package/.next-prod/server/server-reference-manifest.json +1 -1
  36. package/.next-prod/static/chunks/{2302-ebf06ca1396efcce.js → 6024-31a42934bf55e9e9.js} +20 -20
  37. package/.next-prod/static/chunks/7184-2a5621de437121a2.js +17 -0
  38. package/.next-prod/static/chunks/{6784-8e0e9ea22ff4a60f.js → 9092-f7267cbb4deb6fd5.js} +2 -2
  39. package/.next-prod/static/chunks/app/{layout-0782cd43a14c7ee2.js → layout-4d9685b25807b4c6.js} +1 -1
  40. package/.next-prod/static/chunks/app/m/page-af6600597536f9a9.js +1 -0
  41. package/.next-prod/static/chunks/app/{page-ca2a81ab87931cdb.js → page-af99426a6c82e466.js} +1 -1
  42. package/.next-prod/static/chunks/app/project/{page-ca2a81ab87931cdb.js → page-af99426a6c82e466.js} +1 -1
  43. package/.next-prod/static/chunks/app/review/[id]/{page-556db82704d074ab.js → page-1fe42d46b22c6482.js} +1 -1
  44. package/.next-prod/static/css/ea27ccfe01ce807c.css +1 -0
  45. package/.next-prod/trace +14 -14
  46. package/.next-prod/trace-build +1 -1
  47. package/bin/cock-browser.mjs +65 -2
  48. package/dist/{chunk-RZY32R7X.mjs → chunk-4EU4KZIO.mjs} +1 -0
  49. package/dist/{chunk-WLCT5LHX.mjs → chunk-PB4GBZQO.mjs} +191 -39
  50. package/dist/{chunk-VAOGZ6SO.mjs → chunk-TOA52B2X.mjs} +1 -1
  51. package/dist/httpApi.mjs +58 -2
  52. package/dist/scheduledTasks.mjs +14 -8
  53. package/dist/wsServer.mjs +3 -3
  54. package/package.json +3 -3
  55. package/public/html-lib/markdown.js +56 -56
  56. package/skills/cc/SKILL.md +26 -1
  57. package/.next-prod/static/chunks/7184-efdf8613e83ae823.js +0 -15
  58. package/.next-prod/static/chunks/app/m/page-0304eea2c0cf03f6.js +0 -1
  59. package/.next-prod/static/css/4e29dd2bca2bb1ac.css +0 -1
  60. /package/.next-prod/static/{cqNAEj5KI8Y8li81B5f7n → ZqxwSTxy2HJcALhnBemS7}/_buildManifest.js +0 -0
  61. /package/.next-prod/static/{cqNAEj5KI8Y8li81B5f7n → ZqxwSTxy2HJcALhnBemS7}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cc
3
- description: "Drive the running Cockpit server — terminal/browser bubbles, codegraph through the `cockpit` CLI."
3
+ description: "Drive the running Cockpit server through the `cockpit` CLI open and control browser bubbles, observe terminals, query the codegraph."
4
4
  ---
5
5
 
6
6
  Enter Cockpit CLI operation mode.
@@ -22,6 +22,7 @@ Examples below use `cockpit`; only swap in `cockpit-dev` when one of the two dev
22
22
  | Subcommand | Purpose |
23
23
  |---|---|
24
24
  | (none) / `<path>` | Start server, open project |
25
+ | `browser open <url>` | Create a browser bubble (auto-registered) and print its id |
25
26
  | `browser <id> <action>` | Drive browser bubbles |
26
27
  | `terminal <id> [<action>]` | Read-only observation of a terminal ring buffer |
27
28
  | `codegraph <subcmd>` | Project code graph (search/callers/callees/impact/file/coedit/context/related/risk/affected) |
@@ -54,6 +55,30 @@ cockpit connection list --cwd $PWD
54
55
 
55
56
  Output rows are TAB-separated: `<type> <shortId> <title> <projectCwd> <command-or-url>`. Match the user's reference against the title, take the `<shortId>`, then proceed with the typical usage pattern. Unnamed bubbles show `(none)` for title — fall back to the `<command>` column (terminal's command string / browser's URL) to disambiguate.
56
57
 
58
+ ## When no bubble exists — open one yourself
59
+
60
+ Do not ask the user to open a browser bubble by hand. `open` creates one in the
61
+ project that owns `--cwd` (default: your shell's cwd), registers its bridge
62
+ automatically, and prints the short id to drive it with:
63
+
64
+ ```bash
65
+ cockpit browser open http://localhost:3000 # → "abcd → registered and ready"
66
+ cockpit browser abcd snapshot # drive it as usual
67
+ cockpit browser abcd close # remove the bubble when done
68
+ ```
69
+
70
+ Close what you open — a registered bubble never sleeps, so leaving them behind
71
+ costs the user a live iframe + WebSocket each.
72
+
73
+ `open` exits **2** when it created the bubble but no Cockpit UI picked it up
74
+ (nothing is driving it yet). That means no browser window has this project open
75
+ — check `--cwd` points at the right project, and ask the user to open it. It is
76
+ NOT a reason to retry.
77
+
78
+ Two things `open` cannot do: it only works for projects that are open in a
79
+ Cockpit window, and **previewing a local `.html` runs it with full shell
80
+ access** — treat `cockpit browser open ./some.html` as executing that file.
81
+
57
82
  ## Getting detailed usage
58
83
 
59
84
  Every subcommand's `--help` is the canonical reference — **it includes usage, flags, output format, exit codes, and examples.** Read it first: