@clipy/cli 0.4.0 → 0.5.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.
- package/README.md +44 -5
- package/dist/index.js +697 -28
- package/dist/macBridge.js +187 -7
- package/dist/skill.js +149 -57
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -74,6 +74,7 @@ clipy record --url <app> [--for 15] # record a web app headlessly → a Clipy r
|
|
|
74
74
|
clipy session start --url <app> # start recording in the background while you work
|
|
75
75
|
clipy mark "reproduced the bug" # drop a live-timestamped note into the session
|
|
76
76
|
clipy session stop # finish + upload; your marks become the transcript
|
|
77
|
+
clipy doctor # health check: key, Mac bridge, Playwright, install mode
|
|
77
78
|
clipy mcp # run the Clipy MCP server (npx -y @clipy/mcp)
|
|
78
79
|
```
|
|
79
80
|
|
|
@@ -101,11 +102,25 @@ It needs two things beyond a normal install:
|
|
|
101
102
|
create the key at [clipy.online/settings/api-keys](https://clipy.online/settings/api-keys).
|
|
102
103
|
|
|
103
104
|
Flags: `--for <sec>` (record duration after load, default 15; per viewport), `--title <t>`
|
|
104
|
-
/ `--description <d>`, `--
|
|
105
|
-
|
|
106
|
-
`--note "12: opened settings"` (repeatable
|
|
107
|
-
`--width`/`--height` (viewport + video size, default 1280×720),
|
|
108
|
-
transcript is ready), `--json` (print `{id, shareUrl, contextUrl, sizeBytes}`).
|
|
105
|
+
/ `--description <d>`, `--type <kind>` (what the recording IS — see below),
|
|
106
|
+
`--viewports mobile,tablet,desktop` (or `390x844,1440x900` — records every size sequentially
|
|
107
|
+
into ONE video with a transcript chapter per pass), `--note "12: opened settings"` (repeatable
|
|
108
|
+
timestamped narration notes), `--width`/`--height` (viewport + video size, default 1280×720),
|
|
109
|
+
`--wait` (block until the transcript is ready), `--json` (print `{id, shareUrl, contextUrl, sizeBytes}`).
|
|
110
|
+
|
|
111
|
+
**`--type <kind>` declares what the recording is** so the AI summary reads it correctly (a demo
|
|
112
|
+
isn't a bug report). Accepts `bug_report`, `feature_request`, `product_demo`,
|
|
113
|
+
`walkthrough_tutorial`, `feedback_review`, `discussion_talk`, `other` — and the short aliases
|
|
114
|
+
`bug`, `feature`, `demo`/`product`, `walkthrough`/`tutorial`/`guide`, `feedback`/`review`,
|
|
115
|
+
`discussion`/`talk`/`meeting`. An unrecognized value is a usage error. (Applied on the web path
|
|
116
|
+
today; `--source mac-screen` support is pending a Clipy app update.)
|
|
117
|
+
|
|
118
|
+
**Note timestamps.** A `--note` is absolute by default (`"12: opened settings"` → 12s).
|
|
119
|
+
With `--viewports`, anchor a note to a pass instead so it can't drift when load time
|
|
120
|
+
shifts the pass boundaries: `--note "pass2: mobile layout"` lands at the real start of
|
|
121
|
+
pass 2, and `--note "pass2@5: after scrolling"` lands 5s into it. Recording starts the
|
|
122
|
+
note clock on the first non-blank frame (up to a 10s wait), so `"0: …"` isn't pinned to a
|
|
123
|
+
still-compiling dev server's blank screen.
|
|
109
124
|
|
|
110
125
|
**Narration = the transcript.** Headless captures have no audio, so Clipy uses your
|
|
111
126
|
notes (and session marks, below) as the recording's transcript, summary input, and
|
|
@@ -128,6 +143,30 @@ The session records in a detached background daemon, so every command returns
|
|
|
128
143
|
immediately. `clipy mark` stamps notes against the live recording clock; navigations and
|
|
129
144
|
console errors are added automatically as `[auto]` marks. One session per directory.
|
|
130
145
|
|
|
146
|
+
**Drive the recorded browser (opt-in).** Pass `--expose-cdp` to `session start` and the
|
|
147
|
+
daemon's headless Chromium opens a CDP endpoint you can attach to and drive navigation, clicks,
|
|
148
|
+
and viewport while Clipy records the same page. It's **off by default** — while it's open, any
|
|
149
|
+
local process can attach to and control that browser, so only enable it when you intend to drive
|
|
150
|
+
the session. `clipy session start --expose-cdp` prints the endpoint (and `session start --json`
|
|
151
|
+
/ `session status --json` return it as `cdpHttpUrl` / `cdpUrl`, also written to the `0600`
|
|
152
|
+
session state file). The env var `CLIPY_DISABLE_CDP=1` is a hard kill switch that overrides the
|
|
153
|
+
flag.
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
clipy session start --url http://localhost:3000 --expose-cdp --title "Overflow fix"
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
```js
|
|
160
|
+
const { chromium } = require("playwright");
|
|
161
|
+
const browser = await chromium.connectOverCDP(cdpHttpUrl); // from `clipy session status --json`
|
|
162
|
+
const page = browser.contexts()[0].pages()[0]; // the page being recorded
|
|
163
|
+
await page.goto("http://localhost:3000/settings");
|
|
164
|
+
await browser.close(); // detaches; the recording keeps going
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Drive the existing context/page (above) so your actions land in the recording — a brand-new
|
|
168
|
+
context you open won't be captured.
|
|
169
|
+
|
|
131
170
|
Safety rails are built in: the session **auto-stops and uploads** at `--max <sec>`
|
|
132
171
|
(default 600, hard cap 1800) so a forgotten session can never run away; `clipy session
|
|
133
172
|
abort` discards everything; a crashed daemon is detected and cleared on the next command;
|