@clipy/cli 0.1.0 → 0.3.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 +64 -1
- package/dist/index.js +1174 -4
- package/dist/skill.js +79 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @clipy/cli
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@clipy/cli)
|
|
4
|
+
[](https://github.com/manovagyanik1/clipy-cli/blob/main/LICENSE)
|
|
5
|
+
[](https://www.npmjs.com/package/@clipy/cli)
|
|
6
|
+
|
|
3
7
|
The [Clipy](https://clipy.online) command line. List, search, and read your screen
|
|
4
8
|
recordings — transcripts, AI summaries, key moments — from the terminal, download the
|
|
5
9
|
MP4s, or export subtitles. No browser needed.
|
|
@@ -10,7 +14,9 @@ recording an instant share link, an AI transcript and summary, and
|
|
|
10
14
|
[agent-readable context](https://clipy.online/for-agents) — so both humans and AI
|
|
11
15
|
agents can act on what was recorded. This package is its terminal client.
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
Every command except [`record`](#record) is **read-only** — those can never create,
|
|
18
|
+
edit, or delete your recordings. `record` is the one that creates a recording, and
|
|
19
|
+
only with an `ingest`-scoped key.
|
|
14
20
|
|
|
15
21
|
```bash
|
|
16
22
|
npx @clipy/cli list # or: npm i -g @clipy/cli && clipy list
|
|
@@ -41,12 +47,69 @@ clipy context <id> # the full agent-context bundle as markdown
|
|
|
41
47
|
clipy download <id> [-o out.mp4] # download the MP4
|
|
42
48
|
clipy open <id> # open the share page in your browser
|
|
43
49
|
clipy wait <id> --for both # block until transcript/summary are ready
|
|
50
|
+
clipy record --url <app> [--for 15] # record a web app headlessly → a Clipy recording
|
|
51
|
+
clipy session start --url <app> # start recording in the background while you work
|
|
52
|
+
clipy mark "reproduced the bug" # drop a live-timestamped note into the session
|
|
53
|
+
clipy session stop # finish + upload; your marks become the transcript
|
|
44
54
|
clipy mcp # run the Clipy MCP server (npx -y @clipy/mcp)
|
|
45
55
|
```
|
|
46
56
|
|
|
47
57
|
Every recording-reading command accepts either the bare public id (`3kelcef8wo8h`) or the
|
|
48
58
|
full share URL (`https://clipy.online/video/3kelcef8wo8h`).
|
|
49
59
|
|
|
60
|
+
## Record
|
|
61
|
+
|
|
62
|
+
`clipy record` captures a web app in a **headless** browser and uploads it as a Clipy
|
|
63
|
+
recording — no display needed, so it works in CI and cloud sandboxes. Made for agents:
|
|
64
|
+
build a feature, then record the running app so it can be shared or read back.
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Record a running app for 20s, wait for the transcript, print the links
|
|
68
|
+
clipy record --url http://localhost:3000 --for 20 --wait
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
It needs two things beyond a normal install:
|
|
72
|
+
|
|
73
|
+
1. **Playwright** (kept out of the base install so the read-only commands stay tiny):
|
|
74
|
+
```bash
|
|
75
|
+
npm install -g playwright && npx playwright install chromium
|
|
76
|
+
```
|
|
77
|
+
2. An API key with the **"Record & upload" (ingest)** permission — pick it when you
|
|
78
|
+
create the key at [clipy.online/settings/api-keys](https://clipy.online/settings/api-keys).
|
|
79
|
+
|
|
80
|
+
Flags: `--for <sec>` (record duration after load, default 15; per viewport), `--title <t>`
|
|
81
|
+
/ `--description <d>`, `--viewports mobile,tablet,desktop` (or `390x844,1440x900` — records
|
|
82
|
+
every size sequentially into ONE video with a transcript chapter per pass),
|
|
83
|
+
`--note "12: opened settings"` (repeatable timestamped narration notes),
|
|
84
|
+
`--width`/`--height` (viewport + video size, default 1280×720), `--wait` (block until the
|
|
85
|
+
transcript is ready), `--json` (print `{id, shareUrl, contextUrl, sizeBytes}`).
|
|
86
|
+
|
|
87
|
+
**Narration = the transcript.** Headless captures have no audio, so Clipy uses your
|
|
88
|
+
notes (and session marks, below) as the recording's transcript, summary input, and
|
|
89
|
+
agent-context — clearly marked as agent narration, never passed off as speech-to-text.
|
|
90
|
+
|
|
91
|
+
## Session mode — you work, Clipy records
|
|
92
|
+
|
|
93
|
+
For recordings where an agent (or you) drives the app live, don't script the capture:
|
|
94
|
+
start a session, work normally, and narrate with marks as you go.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
clipy session start --url http://localhost:3000 --title "Settings overflow fix"
|
|
98
|
+
# … drive the app with your own tools …
|
|
99
|
+
clipy mark "reproduced the overflow on the settings page"
|
|
100
|
+
clipy mark "after the fix: the sidebar wraps correctly"
|
|
101
|
+
clipy session stop # closes the browser, uploads, prints the share link
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The session records in a detached background daemon, so every command returns
|
|
105
|
+
immediately. `clipy mark` stamps notes against the live recording clock; navigations and
|
|
106
|
+
console errors are added automatically as `[auto]` marks. One session per directory.
|
|
107
|
+
|
|
108
|
+
Safety rails are built in: the session **auto-stops and uploads** at `--max <sec>`
|
|
109
|
+
(default 600, hard cap 1800) so a forgotten session can never run away; `clipy session
|
|
110
|
+
abort` discards everything; a crashed daemon is detected and cleared on the next command;
|
|
111
|
+
corrupt captures are refused before upload, and a failed upload keeps the local file.
|
|
112
|
+
|
|
50
113
|
## Scripting
|
|
51
114
|
|
|
52
115
|
`--json` prints the raw API response for `list`, `search`, `show`, `transcript`,
|