@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.
- package/.next-prod/BUILD_ID +1 -1
- package/.next-prod/app-path-routes-manifest.json +8 -8
- package/.next-prod/build-manifest.json +2 -2
- package/.next-prod/cockpit-build.json +1 -1
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_global-error.html +1 -1
- package/.next-prod/server/app/_global-error.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_not-found.html +2 -2
- package/.next-prod/server/app/_not-found.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js +1 -1
- package/.next-prod/server/app/m/page.js +1 -1
- package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/review/[id]/page.js +1 -1
- package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app-paths-manifest.json +8 -8
- package/.next-prod/server/chunks/516.js +1 -1
- package/.next-prod/server/chunks/5750.js +16 -14
- package/.next-prod/server/chunks/6548.js +1 -1
- package/.next-prod/server/middleware-build-manifest.js +1 -1
- package/.next-prod/server/pages/404.html +2 -2
- package/.next-prod/server/pages/500.html +1 -1
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/static/chunks/{2302-ebf06ca1396efcce.js → 6024-31a42934bf55e9e9.js} +20 -20
- package/.next-prod/static/chunks/7184-2a5621de437121a2.js +17 -0
- package/.next-prod/static/chunks/{6784-8e0e9ea22ff4a60f.js → 9092-f7267cbb4deb6fd5.js} +2 -2
- package/.next-prod/static/chunks/app/{layout-0782cd43a14c7ee2.js → layout-4d9685b25807b4c6.js} +1 -1
- package/.next-prod/static/chunks/app/m/page-af6600597536f9a9.js +1 -0
- package/.next-prod/static/chunks/app/{page-ca2a81ab87931cdb.js → page-af99426a6c82e466.js} +1 -1
- package/.next-prod/static/chunks/app/project/{page-ca2a81ab87931cdb.js → page-af99426a6c82e466.js} +1 -1
- package/.next-prod/static/chunks/app/review/[id]/{page-556db82704d074ab.js → page-1fe42d46b22c6482.js} +1 -1
- package/.next-prod/static/css/ea27ccfe01ce807c.css +1 -0
- package/.next-prod/trace +14 -14
- package/.next-prod/trace-build +1 -1
- package/bin/cock-browser.mjs +65 -2
- package/dist/{chunk-RZY32R7X.mjs → chunk-4EU4KZIO.mjs} +1 -0
- package/dist/{chunk-WLCT5LHX.mjs → chunk-PB4GBZQO.mjs} +191 -39
- package/dist/{chunk-VAOGZ6SO.mjs → chunk-TOA52B2X.mjs} +1 -1
- package/dist/httpApi.mjs +58 -2
- package/dist/scheduledTasks.mjs +14 -8
- package/dist/wsServer.mjs +3 -3
- package/package.json +3 -3
- package/public/html-lib/markdown.js +56 -56
- package/skills/cc/SKILL.md +26 -1
- package/.next-prod/static/chunks/7184-efdf8613e83ae823.js +0 -15
- package/.next-prod/static/chunks/app/m/page-0304eea2c0cf03f6.js +0 -1
- package/.next-prod/static/css/4e29dd2bca2bb1ac.css +0 -1
- /package/.next-prod/static/{cqNAEj5KI8Y8li81B5f7n → ZqxwSTxy2HJcALhnBemS7}/_buildManifest.js +0 -0
- /package/.next-prod/static/{cqNAEj5KI8Y8li81B5f7n → ZqxwSTxy2HJcALhnBemS7}/_ssgManifest.js +0 -0
package/skills/cc/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cc
|
|
3
|
-
description: "Drive the running Cockpit server —
|
|
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:
|