@clipy/cli 0.17.0 → 0.19.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/LICENSE-APACHE +202 -0
- package/README.md +265 -12
- package/dist/chromeForClipy.js +1 -1
- package/dist/context/importCmd.js +4 -1
- package/dist/context/readCmd.js +33 -21
- package/dist/context/ytdlp.js +108 -28
- package/dist/context-core/arec.js +66 -6
- package/dist/index.js +1180 -98
- package/dist/library.js +7 -3
- package/dist/local/arec.js +186 -0
- package/dist/local/commands.js +1103 -0
- package/dist/local/deps.js +42 -0
- package/dist/local/media.js +154 -0
- package/dist/local/pipeline.js +530 -0
- package/dist/local/ports.js +1 -0
- package/dist/local/speechEngine.js +260 -0
- package/dist/local/transcriptFile.js +54 -0
- package/dist/local/vendor/capture/capture.js +442 -0
- package/dist/local/vendor/capture/check.js +103 -0
- package/dist/local/vendor/capture/children.js +69 -0
- package/dist/local/vendor/capture/ffmpegArgs.js +108 -0
- package/dist/local/vendor/capture/index.js +36 -0
- package/dist/local/vendor/capture/proc.js +71 -0
- package/dist/local/vendor/capture/scripts.js +107 -0
- package/dist/local/vendor/capture/sidecar.js +199 -0
- package/dist/local/vendor/capture/sources.js +272 -0
- package/dist/local/vendor/capture/types.js +1 -0
- package/dist/local/vendor/capture/virtualDisplay.js +170 -0
- package/dist/local/vendor/capture/xauth.js +68 -0
- package/dist/local/vendor/config/errors.js +12 -0
- package/dist/local/vendor/config/index.js +241 -0
- package/dist/local/vendor/config/paths.js +37 -0
- package/dist/local/vendor/config/presets.js +61 -0
- package/dist/local/vendor/config/schema.js +66 -0
- package/dist/local/vendor/moments/generated/drawStrokes.js +127 -0
- package/dist/local/vendor/moments/generated/keyMomentsCursorContext.js +568 -0
- package/dist/local/vendor/moments/generated/keyMomentsFusion.js +406 -0
- package/dist/local/vendor/moments/generated/localMomentPlan.js +178 -0
- package/dist/local/vendor/moments/generated/types.js +1 -0
- package/dist/local/vendor/moments/index.js +147 -0
- package/dist/local/vendor/moments/llm.js +158 -0
- package/dist/local/vendor/transcribe/audio.js +251 -0
- package/dist/local/vendor/transcribe/chunking.js +250 -0
- package/dist/local/vendor/transcribe/index.js +89 -0
- package/dist/local/vendor/transcribe/local.js +221 -0
- package/dist/local/vendor/transcribe/localWorker.js +79 -0
- package/dist/local/vendor/transcribe/models.js +369 -0
- package/dist/local/vendor/transcribe/providers/assemblyai.js +61 -0
- package/dist/local/vendor/transcribe/providers/common.js +105 -0
- package/dist/local/vendor/transcribe/providers/deepgram.js +59 -0
- package/dist/local/vendor/transcribe/providers/elevenlabs.js +43 -0
- package/dist/local/vendor/transcribe/providers/gemini.js +102 -0
- package/dist/local/vendor/transcribe/providers/http.js +214 -0
- package/dist/local/vendor/transcribe/providers/openai.js +48 -0
- package/dist/local/vendor/transcribe/tar.js +53 -0
- package/dist/local/vendor/transcribe/types.js +1 -0
- package/dist/macBridge.js +78 -9
- package/dist/recheck.js +934 -0
- package/dist/recheckCmd.js +279 -0
- package/dist/skill.js +94 -3
- package/package.json +22 -11
package/LICENSE-APACHE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,30 +1,84 @@
|
|
|
1
1
|
# @clipy/cli
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@clipy/cli)
|
|
4
|
-
[](https://github.com/
|
|
4
|
+
[](https://github.com/clipy-recorder/clipy-cli/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@clipy/cli)
|
|
6
6
|
|
|
7
7
|
The [Clipy](https://clipy.online) command line. List, search, and read your screen
|
|
8
|
-
recordings
|
|
8
|
+
recordings (transcripts, AI summaries, key moments) from the terminal, download the
|
|
9
9
|
MP4s, or export subtitles. No browser needed.
|
|
10
10
|
|
|
11
|
-
[Clipy](https://clipy.online) is
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
[Clipy](https://clipy.online) is the AI-native screen recorder, with apps for
|
|
12
|
+
[Mac, Windows, Chrome, iPhone and Android](https://clipy.online/download) and a
|
|
13
|
+
[web recorder](https://clipy.online/screen-recorder). Every recording gets an
|
|
14
|
+
instant share link that plays with no signup, plus a transcript, summary and
|
|
15
|
+
key moments that [AI agents can read](https://clipy.online/for-agents), so
|
|
16
|
+
people and their AI tools can both act on what was recorded. This package is its terminal client.
|
|
16
17
|
The canonical agent operating contract is
|
|
17
18
|
[clipy.online/agents.md](https://clipy.online/agents.md).
|
|
18
19
|
|
|
19
20
|
The read commands are **read-only** with any key. The write commands —
|
|
20
21
|
[`proof`](#proof-from-any-agent-tool), [`record`](#record), the `session`/`mark`
|
|
21
22
|
flow, and `transcript --replace` — create recordings or replace a transcript,
|
|
22
|
-
and work only with an `ingest`-scoped key.
|
|
23
|
+
and work only with an `ingest`-scoped key. With [`--local`](#local-mode-no-account-nothing-uploaded---local),
|
|
24
|
+
`record`, `session`, `proof` and `context import` need no account at all: they
|
|
25
|
+
build the recording on your machine and upload nothing.
|
|
23
26
|
|
|
24
27
|
```bash
|
|
25
28
|
npx @clipy/cli setup claude # login + skill + MCP server, in one
|
|
26
29
|
```
|
|
27
30
|
|
|
31
|
+
What comes back from a headless recording ([`record`](#record)); the values here are illustrative:
|
|
32
|
+
|
|
33
|
+
```console
|
|
34
|
+
$ clipy record --url http://localhost:3000 --for 20 --json
|
|
35
|
+
{
|
|
36
|
+
"id": "3kelcef8wo8h",
|
|
37
|
+
"shareUrl": "https://clipy.online/video/3kelcef8wo8h",
|
|
38
|
+
"contextUrl": "https://clipy.online/video/3kelcef8wo8h.arec",
|
|
39
|
+
"sizeBytes": 1482304
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`shareUrl` plays in any browser with no signup to watch; `contextUrl` is the same
|
|
44
|
+
recording as text an AI agent reads. `clipy summary <id>` prints the TL;DR, key points
|
|
45
|
+
and action items, and `clipy transcript <id>` prints one timestamped entry per line.
|
|
46
|
+
|
|
47
|
+
## Let your agent watch any video (free)
|
|
48
|
+
|
|
49
|
+
Clipy is a free tool to connect your AI agents and let them watch videos: a YouTube
|
|
50
|
+
video, a Loom link or a video file on your machine. In Claude Code, install the
|
|
51
|
+
`watch` plugin from the public [Clipy Local repo](https://github.com/clipy-recorder/clipy)
|
|
52
|
+
(Apache-2.0):
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
/plugin marketplace add clipy-recorder/clipy
|
|
56
|
+
/plugin install watch@clipy
|
|
57
|
+
/watch https://youtube.com/watch?v=…
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For Codex, Cursor or any agent with a terminal, use the CLI. No account and no login:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npm i -g @clipy/cli
|
|
64
|
+
clipy agents install codex # or: cursor · claude
|
|
65
|
+
clipy context import https://youtube.com/watch?v=… # captions fetched on your machine
|
|
66
|
+
clipy context import https://www.loom.com/share/<id> # the Loom transcript, fetched on your machine
|
|
67
|
+
clipy models download english-fast && clipy speech install # once, for local files
|
|
68
|
+
clipy context import demo.mov --local # transcribed on your machine
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Each import writes an agent-readable bundle: `recording.arec` (the same bytes as
|
|
72
|
+
`recording.md`), `transcript.json` and `manifest.json`. AREC is the open format that
|
|
73
|
+
makes a recording readable by AI agents: the transcript, the key moments with a frame
|
|
74
|
+
of each, and timestamps, in plain Markdown ([arecformat.org](https://arecformat.org)).
|
|
75
|
+
Add `--sync` (needs a Clipy account) and Clipy's server classifies the video and picks the
|
|
76
|
+
moments worth a frame (extracted locally with `ffmpeg`). With `--sync`, the transcript, the
|
|
77
|
+
AREC document and the selected frames, never the video itself, are saved to your private
|
|
78
|
+
Clipy library, where agents search them through the MCP server. Details in
|
|
79
|
+
[Import any video as context](#import-any-video-as-context) and at
|
|
80
|
+
[clipy.online/ai-watch-videos](https://clipy.online/ai-watch-videos).
|
|
81
|
+
|
|
28
82
|
## Setup
|
|
29
83
|
|
|
30
84
|
Wiring up a coding agent? One command signs you in, installs the Clipy skill, and
|
|
@@ -118,6 +172,7 @@ clipy comment <id> "Fixed in #12" --at 65 # comment at 1:05 (or --repl
|
|
|
118
172
|
clipy analytics <id> # views, unique viewers, who watched
|
|
119
173
|
clipy diagnostics <id> --errors # console errors + failed requests
|
|
120
174
|
clipy interactions <id> --types click,typing # what was clicked, with element labels
|
|
175
|
+
clipy recheck <id> --url <start-url> # replay a recorded flow, report where it diverges
|
|
121
176
|
clipy delete <id> --yes # permanent; needs clipy login --allow-delete
|
|
122
177
|
clipy record --url <app> [--for 15] # record a web app headlessly → a Clipy recording
|
|
123
178
|
clipy session start --url <app> # start recording in the background while you work
|
|
@@ -191,7 +246,8 @@ Local files carry no captions, so they need `--transcript <.vtt|.srt|.json>`.
|
|
|
191
246
|
With `--sync`, the server classifies the bundle: what kind of video it is and whether the
|
|
192
247
|
words stand alone. Podcasts, interviews, and dictated content come back transcript-only; a
|
|
193
248
|
screen walkthrough comes back with the timestamps worth a picture, and those frames are then
|
|
194
|
-
extracted locally (needs `ffmpeg` — `brew install ffmpeg`)
|
|
249
|
+
extracted locally (needs `ffmpeg` — `brew install ffmpeg`) and uploaded as images to your
|
|
250
|
+
private library; the video itself never is. Without `--sync` the bundle stays
|
|
195
251
|
honestly transcript-only. `--no-frames` takes the verdict but never downloads media. Also:
|
|
196
252
|
`--title`, `--tag` (repeatable), `--folder`, `--language`, `--output <dir>`.
|
|
197
253
|
|
|
@@ -231,6 +287,53 @@ any other browser automation dependency. Captions and notes become timestamped
|
|
|
231
287
|
agent narration; they are attestations from the driving agent, not claims
|
|
232
288
|
independently verified by Clipy.
|
|
233
289
|
|
|
290
|
+
## Re-check a recorded workflow
|
|
291
|
+
|
|
292
|
+
Recorded workflows break silently when the app changes: an agent replays the old
|
|
293
|
+
steps and clicks the wrong control. `clipy recheck` replays a recording's steps
|
|
294
|
+
against today's UI in Chrome for Clipy and reports where it diverges.
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
clipy recheck 3kelcef8wo8h --plan # list the steps, no browser
|
|
298
|
+
clipy recheck 3kelcef8wo8h --url https://staging.example.com/projects --json
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
It reads the recording's interaction timeline (clicks with their element labels,
|
|
302
|
+
page navigations, scrolls, typing), its key moments and transcript, then drives
|
|
303
|
+
Chrome for Clipy from `--url` through the same steps, in its own background
|
|
304
|
+
window. After each step it saves a screenshot, and at the end it uploads them as
|
|
305
|
+
one proof recording, so the report links a watch page and an `.arec` context
|
|
306
|
+
document. `--no-upload` keeps everything local.
|
|
307
|
+
|
|
308
|
+
Each step is one of: **matched**, **replayed** (scrolls, by direction),
|
|
309
|
+
**control not found** (with the names of the controls that are there now),
|
|
310
|
+
**different screen** (another route, or the control is covered; nothing is
|
|
311
|
+
clicked), **error**, or **could not map step**. Clicks are replayed by their
|
|
312
|
+
recorded label only, never by raw position, and typed values are never captured,
|
|
313
|
+
so typing steps are always "could not map". The report says so rather than
|
|
314
|
+
guessing.
|
|
315
|
+
|
|
316
|
+
The replay clicks for real, in a browser that is signed in to your apps. A
|
|
317
|
+
control whose name reads as irreversible (delete, pay, send, submit and similar)
|
|
318
|
+
is not clicked and its step is "could not map" unless you pass
|
|
319
|
+
`--allow-destructive`; use it only on a site where those actions are safe. A
|
|
320
|
+
recorded page is opened directly only on the recording's own host, never on
|
|
321
|
+
another host the recording names.
|
|
322
|
+
|
|
323
|
+
`report.json` and `report.md` are written to `--out` (a temp folder by default).
|
|
324
|
+
The JSON carries `summary.verdict` (`matches`, `diverged` or `incomplete`),
|
|
325
|
+
`summary.firstDivergence`, every step's expected and observed state with the
|
|
326
|
+
original key-moment frame URL and the new screenshot path, and the recording's
|
|
327
|
+
expected result when it has one. `--fail-on-divergence` exits 4 unless the
|
|
328
|
+
verdict is `matches`, for CI. Re-checking on another host than the recording
|
|
329
|
+
(staging, localhost) checks the recorded paths on that host and never clicks on any other host.
|
|
330
|
+
|
|
331
|
+
Requirements: Playwright (the same one `clipy session --source chrome-for-clipy`
|
|
332
|
+
uses), Chrome for Clipy signed in wherever the workflow needs a login
|
|
333
|
+
(`clipy chrome start`), and ffmpeg for the upload. Only recordings with click or
|
|
334
|
+
navigation data can be re-checked: Chrome extension, Chrome for Clipy, Mac and
|
|
335
|
+
Windows app takes.
|
|
336
|
+
|
|
234
337
|
## Record
|
|
235
338
|
|
|
236
339
|
`clipy record` captures a web app in a **headless** browser and uploads it as a Clipy
|
|
@@ -698,6 +801,142 @@ or `--x-display`. On Windows there is no real-screen path for agents yet: use
|
|
|
698
801
|
`--source chrome-for-clipy` for a browser tab, `--url` for a headless page, or
|
|
699
802
|
`clipy proof` with your own tool's video or screenshots.
|
|
700
803
|
|
|
804
|
+
## Local mode: no account, nothing uploaded (`--local`)
|
|
805
|
+
|
|
806
|
+
Add `--local` to `record`, `session start`, `proof` or `context import` and Clipy
|
|
807
|
+
builds the recording into an AREC folder on your own machine instead of uploading
|
|
808
|
+
it. No Clipy account and no `clipy login`. Give the folder to your AI agent (Claude
|
|
809
|
+
Code, Codex, Cursor or any other): it holds the video, a timestamped transcript,
|
|
810
|
+
the moments that matter with a screenshot of each, and `recording.arec`, the
|
|
811
|
+
document the agent reads.
|
|
812
|
+
|
|
813
|
+
```bash
|
|
814
|
+
clipy record --local --max 120 # the screen, until Enter, Ctrl-C or 120 s
|
|
815
|
+
clipy record --local --virtual-display --max 30 # Linux: a private Xvfb screen
|
|
816
|
+
clipy record --local --url http://localhost:3000 --for 20 --note "8: clicked Save"
|
|
817
|
+
clipy context import demo.mov --local # a recording you already have
|
|
818
|
+
clipy proof --frame before.png --frame after.png --caption "Before" --caption "After" --local
|
|
819
|
+
```
|
|
820
|
+
|
|
821
|
+
The last line printed is the absolute path of `recording.arec`; with `--json` you
|
|
822
|
+
get one object: `{ok, local, arec, dir, video, durationMs, moments, frames, planner,
|
|
823
|
+
transcript, warnings}`. The folder defaults to `~/clipy/recordings/<date-time>/`
|
|
824
|
+
(readable by you only); pick one with `--out <dir>`. An `--out` folder that already
|
|
825
|
+
holds files is refused, so a take never overwrites another; add `--force` to replace
|
|
826
|
+
the take that is there.
|
|
827
|
+
|
|
828
|
+
The config file, the model provider, ffmpeg and the output folder are checked
|
|
829
|
+
before anything is recorded, so a missing key or a typo stops the command at once.
|
|
830
|
+
If something fails after the capture, the video is kept and the command prints
|
|
831
|
+
where (`The capture was kept at <path>`; `keptVideo` with `--json`).
|
|
832
|
+
|
|
833
|
+
`record --local` without `--max` stops on Enter, Ctrl-C, SIGTERM or SIGHUP, and the
|
|
834
|
+
take is still built. When stdin is not a terminal (an agent's shell, a pipe), it also
|
|
835
|
+
stops when stdin closes, and it warns you: give agents `--max <sec>` so a take is
|
|
836
|
+
always bounded.
|
|
837
|
+
|
|
838
|
+
```text
|
|
839
|
+
recording.mp4 the video
|
|
840
|
+
recording.cursor.json pointer and click sidecar, when the capture has one
|
|
841
|
+
transcript.json timestamped segments (speech, plus your notes and marks)
|
|
842
|
+
moments.json the moments picked
|
|
843
|
+
frames/<ms>.jpg one screenshot per moment
|
|
844
|
+
recording.arec AREC 1.4, every reference relative to the folder
|
|
845
|
+
```
|
|
846
|
+
|
|
847
|
+
What each command records with `--local` is what it records without it:
|
|
848
|
+
|
|
849
|
+
| Command | Capture |
|
|
850
|
+
|---|---|
|
|
851
|
+
| `record --local` (no `--url`, no `--source`) | The CLI's own screen recorder (ffmpeg) on macOS, Windows and Linux, until Enter, Ctrl-C or `--max`. `--mic` adds the microphone; `--display`/`--window` take an id from `clipy sources --local`; `--virtual-display` records a private Xvfb display on Linux. |
|
|
852
|
+
| `record --local --url <u>` | The headless browser capture (silent). Notes become narration. |
|
|
853
|
+
| `record --local --source screen` on Linux | The X11 recorder, timed by `--for`. |
|
|
854
|
+
| `session start ... --local` | Headless web, `--source screen` on Linux, or `--source chrome-for-clipy`. Marks and chapters work as usual; `session stop` builds the AREC. Not available for `mac-screen` or `chrome-extension` yet, because the Mac app and the extension upload their own recordings. |
|
|
855
|
+
| `proof ... --local` | Frames or `--video`, as usual. Each frame and caption becomes a key moment. |
|
|
856
|
+
| `context import <file> --local` | Transcribes the file (unless `--transcript` is given), picks moments, extracts frames. `--language`, `--tag`, `--folder` and `--no-frames` do not apply to a file and are refused. YouTube and Loom URLs keep their usual transcript-only bundle, written to `--out`, which never calls Clipy; `--sync` is refused with `--local`. |
|
|
857
|
+
|
|
858
|
+
Notes, marks and captions are added to the transcript as narration, and each one
|
|
859
|
+
also gets a key moment and a screenshot, so the agent sees what you pointed out.
|
|
860
|
+
|
|
861
|
+
### Transcription and moments
|
|
862
|
+
|
|
863
|
+
Moments always come from rules on your machine: highlights, pen drawings, clicks
|
|
864
|
+
and pointer rests. Add a model provider and it also reads the transcript for
|
|
865
|
+
spoken references ("this button", "it breaks here"). Transcription defaults to an
|
|
866
|
+
on-device model.
|
|
867
|
+
|
|
868
|
+
```bash
|
|
869
|
+
clipy models download english-fast # Parakeet TDT-CTC 110M, about 104 MB, English
|
|
870
|
+
clipy models download multilingual # Whisper base, about 161 MB, about 99 languages
|
|
871
|
+
clipy speech install # the engine that runs them, about 35 MB
|
|
872
|
+
export CLIPY_MODEL_API_KEY=... # set the key in your environment, not on the command line
|
|
873
|
+
clipy local setup --model-provider openrouter
|
|
874
|
+
clipy local setup --model-provider ollama --model llama3.2
|
|
875
|
+
clipy local setup --transcribe groq --transcribe-key - # reads the key from stdin
|
|
876
|
+
clipy local status # config file, provider, transcription, models, capture
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
Providers: `openrouter`, `openai`, `gemini`, `groq`, `ollama`, `lmstudio`, `custom`
|
|
880
|
+
(`--base-url`), `none`. Transcription: `local-english`, `local-multilingual`,
|
|
881
|
+
`openai`, `groq`, `deepgram`, `assemblyai`, `elevenlabs`, `gemini`, `none`. Settings
|
|
882
|
+
live in their own file (`clipy local status` prints the path, mode 0600), and env
|
|
883
|
+
vars override it: `CLIPY_MODEL_PROVIDER`, `CLIPY_MODEL_BASE_URL`,
|
|
884
|
+
`CLIPY_MODEL_API_KEY`, `CLIPY_MODEL`, `CLIPY_TRANSCRIBE`, `CLIPY_TRANSCRIBE_API_KEY`,
|
|
885
|
+
`CLIPY_TRANSCRIBE_MODEL`, `CLIPY_TRANSCRIBE_BASE_URL`, `CLIPY_LOCAL_CONFIG`.
|
|
886
|
+
|
|
887
|
+
Keys: the env vars `CLIPY_MODEL_API_KEY` and `CLIPY_TRANSCRIBE_API_KEY` are the
|
|
888
|
+
preferred way, because a key typed as a command-line argument can stay in your
|
|
889
|
+
shell history, show up in the process list and land in an agent's command log.
|
|
890
|
+
To save a key in the settings file instead, pass `-` (`--model-key -`,
|
|
891
|
+
`--transcribe-key -`) and the key is read from stdin, one line. A key given
|
|
892
|
+
literally still works, with a note about where it may have been kept.
|
|
893
|
+
|
|
894
|
+
On-device transcription runs on a speech engine, `sherpa-onnx-node` (about 35 MB),
|
|
895
|
+
which is not installed with the CLI. The first take that needs it asks before
|
|
896
|
+
downloading it with npm into a Clipy folder next to the speech models; answer no
|
|
897
|
+
and the take stops before recording anything. Without a terminal to ask in (an
|
|
898
|
+
agent, CI, `--json`), the take stops with `speech_engine_required` instead, so
|
|
899
|
+
accept up front:
|
|
900
|
+
|
|
901
|
+
```bash
|
|
902
|
+
clipy speech install # download it now; clipy speech status shows where it is
|
|
903
|
+
clipy record --local --mic --max 60 --yes # or let this take download it without asking
|
|
904
|
+
export CLIPY_INSTALL_SPEECH_ENGINE=1 # or accept it for every take
|
|
905
|
+
```
|
|
906
|
+
|
|
907
|
+
`CLIPY_SPEECH_ENGINE_DIR` moves the folder. A copy installed next to a global npm
|
|
908
|
+
install of the CLI (`npm i -g sherpa-onnx-node@2.0.1`) is used too.
|
|
909
|
+
|
|
910
|
+
Speech models (downloaded only when you ask, checksum-verified; `clipy models list`
|
|
911
|
+
shows each one's licence):
|
|
912
|
+
|
|
913
|
+
| Model | What it is | Licence |
|
|
914
|
+
|---|---|---|
|
|
915
|
+
| `english-fast` | NVIDIA Parakeet TDT-CTC 110M | CC-BY-4.0 |
|
|
916
|
+
| `multilingual` | OpenAI Whisper base | MIT |
|
|
917
|
+
|
|
918
|
+
Both run with [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx) (Apache-2.0).
|
|
919
|
+
|
|
920
|
+
### Where your data goes
|
|
921
|
+
|
|
922
|
+
| Choice | What leaves your machine |
|
|
923
|
+
|---|---|
|
|
924
|
+
| No provider (rules only, on-device transcription) | Nothing. |
|
|
925
|
+
| Ollama or LM Studio | Nothing: the model runs on your machine. |
|
|
926
|
+
| OpenRouter, OpenAI, Gemini, Groq or a custom URL | The transcript text, click labels and a bounded sample of pointer and key events (with the capture area) go to that provider to pick spoken moments. |
|
|
927
|
+
| On-device transcription | Nothing: the audio stays on your machine. |
|
|
928
|
+
| A transcription key | The audio goes to that provider. |
|
|
929
|
+
|
|
930
|
+
The video and screenshots never leave your machine, and nothing is ever sent to
|
|
931
|
+
Clipy. Each `recording.arec` states what was sent where.
|
|
932
|
+
|
|
933
|
+
Want a share link anyone can watch, with no signup to watch? Run
|
|
934
|
+
`clipy upload <dir>/recording.mp4` (that one needs a Clipy account).
|
|
935
|
+
|
|
936
|
+
`clipy doctor` reports local mode in its own section; it is never a failure, so an
|
|
937
|
+
install that only uses the hosted product stays healthy. `clipy doctor --local`
|
|
938
|
+
checks only local mode and makes no request to Clipy.
|
|
939
|
+
|
|
701
940
|
## Scripting
|
|
702
941
|
|
|
703
942
|
Every command has machine-readable output. `--json` is supported on **`list`, `memory search`, `search`,
|
|
@@ -737,9 +976,13 @@ Precedence: flag → env → stored config.
|
|
|
737
976
|
If you're wiring Clipy into an MCP-capable agent (Claude Code, Cursor, Codex, …),
|
|
738
977
|
use the [`@clipy/mcp`](https://www.npmjs.com/package/@clipy/mcp) server instead — same
|
|
739
978
|
API, but with agent-native tools and inline key-moment frames
|
|
740
|
-
([source](https://github.com/
|
|
979
|
+
([source](https://github.com/clipy-recorder/clipy-mcp) ·
|
|
741
980
|
[setup docs](https://clipy.online/docs/mcp)). `clipy mcp` is a shortcut that runs it.
|
|
742
981
|
|
|
982
|
+
Who records what: MCP records the browser. This CLI records Mac windows, displays and the
|
|
983
|
+
iOS Simulator (`--source mac-screen`) and Linux screens (`--source screen`, including a
|
|
984
|
+
private virtual display). The Clipy Mac and Windows apps record everything else.
|
|
985
|
+
|
|
743
986
|
Also: every **public** Clipy watch link is agent-readable without any install — append
|
|
744
987
|
`.arec` to it (`https://clipy.online/video/<id>.arec`) and it serves actionable AREC
|
|
745
988
|
Markdown. The legacy `.md` URL remains byte-identical. Details at
|
|
@@ -749,10 +992,20 @@ Markdown. The legacy `.md` URL remains byte-identical. Details at
|
|
|
749
992
|
|
|
750
993
|
- Website: [clipy.online](https://clipy.online) · [free online screen recorder](https://clipy.online/screen-recorder)
|
|
751
994
|
- CLI docs: [clipy.online/docs/cli](https://clipy.online/docs/cli)
|
|
752
|
-
- MCP server: [`@clipy/mcp`](https://www.npmjs.com/package/@clipy/mcp) · [docs](https://clipy.online/docs/mcp) · [source](https://github.com/
|
|
995
|
+
- MCP server: [`@clipy/mcp`](https://www.npmjs.com/package/@clipy/mcp) · [docs](https://clipy.online/docs/mcp) · [source](https://github.com/clipy-recorder/clipy-mcp)
|
|
753
996
|
- Free browser tools (converters, GIF makers, downloaders): [clipy.online/tools](https://clipy.online/tools)
|
|
754
997
|
- API keys: [clipy.online/settings/api-keys](https://clipy.online/settings/api-keys)
|
|
755
998
|
|
|
756
999
|
## License
|
|
757
1000
|
|
|
758
|
-
MIT ©
|
|
1001
|
+
MIT © Clipy, except the files under `src/local/vendor/` (compiled into
|
|
1002
|
+
`dist/local/vendor/`), which come from Clipy's local edition packages and are
|
|
1003
|
+
licensed under the Apache License 2.0: see [LICENSE-APACHE](LICENSE-APACHE). Each of
|
|
1004
|
+
those files carries an `SPDX-License-Identifier: Apache-2.0` header. The package's
|
|
1005
|
+
licence expression is therefore `MIT AND Apache-2.0`.
|
|
1006
|
+
|
|
1007
|
+
The on-device speech models are not part of the package; `clipy models download`
|
|
1008
|
+
fetches them from their publishers. `english-fast` is NVIDIA's Parakeet TDT-CTC 110M,
|
|
1009
|
+
licensed CC-BY-4.0; `multilingual` is OpenAI Whisper base, licensed MIT. Both run
|
|
1010
|
+
with sherpa-onnx, licensed Apache-2.0, which is not part of the package either:
|
|
1011
|
+
`clipy speech install` (or the first take that needs it) downloads it from npm.
|
package/dist/chromeForClipy.js
CHANGED
|
@@ -693,7 +693,7 @@ const RECORDER_HTML = `<!doctype html>
|
|
|
693
693
|
* (measured on Chrome 154); a background Target.createTarget does not. With
|
|
694
694
|
* `newWindow` the tab gets its own background window, where it is the active,
|
|
695
695
|
* visible tab without anything being activated. */
|
|
696
|
-
async function newBackgroundPage(browser, context, newWindow = false) {
|
|
696
|
+
export async function newBackgroundPage(browser, context, newWindow = false) {
|
|
697
697
|
const before = new Set(context.pages());
|
|
698
698
|
const cdp = await browser.newBrowserCDPSession();
|
|
699
699
|
let targetId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `clipy context import <youtube-url|loom-url|local-file>` — compiles a local
|
|
3
|
-
* Clipy context bundle (AREC
|
|
3
|
+
* Clipy context bundle (AREC 1.4) and optionally syncs it to the library.
|
|
4
4
|
*
|
|
5
5
|
* Syncing is a TWO-PHASE protocol, and the split is deliberate: the server is
|
|
6
6
|
* the classification brain. Phase 1 uploads the transcript bundle and the
|
|
@@ -182,6 +182,7 @@ async function compileYoutube(url, videoId, opts) {
|
|
|
182
182
|
});
|
|
183
183
|
return finish({
|
|
184
184
|
title: opts.title ?? meta.title,
|
|
185
|
+
description: meta.description,
|
|
185
186
|
source,
|
|
186
187
|
durationMs: meta.durationMs,
|
|
187
188
|
transcript,
|
|
@@ -224,6 +225,7 @@ async function compileYoutube(url, videoId, opts) {
|
|
|
224
225
|
notify(`Got ${transcript.segments.length} caption segments (${describeCaptions(captions)}).`);
|
|
225
226
|
return finish({
|
|
226
227
|
title: opts.title ?? meta.title,
|
|
228
|
+
description: meta.description,
|
|
227
229
|
source,
|
|
228
230
|
durationMs: meta.durationMs,
|
|
229
231
|
transcript,
|
|
@@ -371,6 +373,7 @@ function finish(input) {
|
|
|
371
373
|
const sufficiency = classifyTranscript(input.transcript);
|
|
372
374
|
const manifest = buildManifest({
|
|
373
375
|
title: input.title,
|
|
376
|
+
...(input.description ? { description: input.description } : {}),
|
|
374
377
|
source: input.source,
|
|
375
378
|
durationMs: input.durationMs,
|
|
376
379
|
profile: "transcript",
|
package/dist/context/readCmd.js
CHANGED
|
@@ -1,34 +1,46 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `clipy context read <bundle-path>` — prints a local bundle's recording.arec.
|
|
3
3
|
* Output is for agents: plain, unpaged, uncoloured.
|
|
4
|
+
*
|
|
5
|
+
* Reading is lenient (AREC specification section 7.1): a bundle written by an
|
|
6
|
+
* older or newer CLI is printed as it is. A missing or unfamiliar manifest is a
|
|
7
|
+
* note on stderr, never a refusal; the only failure is having no document at all.
|
|
4
8
|
*/
|
|
5
9
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
6
|
-
import { join, resolve } from "node:path";
|
|
10
|
+
import { basename, join, resolve } from "node:path";
|
|
7
11
|
import { AREC_CANONICAL_FILENAME, AREC_LEGACY_FILENAME, } from "../context-core/index.js";
|
|
12
|
+
function note(message) {
|
|
13
|
+
process.stderr.write(`note: ${message}\n`);
|
|
14
|
+
}
|
|
8
15
|
export function cmdContextRead(target) {
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
throw new Error(`${dir} is not a Clipy context bundle (no manifest.json).`);
|
|
16
|
-
}
|
|
17
|
-
let manifest;
|
|
18
|
-
try {
|
|
19
|
-
manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
|
|
20
|
-
}
|
|
21
|
-
catch {
|
|
22
|
-
throw new Error(`${manifestPath} is not valid JSON.`);
|
|
23
|
-
}
|
|
24
|
-
if (manifest.bundleVersion !== 1) {
|
|
25
|
-
throw new Error(`unsupported bundle version ${String(manifest.bundleVersion)} — this CLI reads bundleVersion 1. Upgrade with \`npm i -g @clipy/cli\`.`);
|
|
16
|
+
const resolved = resolve(target);
|
|
17
|
+
// An .arec or .md file given directly is printed as it is. Any other file in
|
|
18
|
+
// a bundle (manifest.json, transcript.json) stands for its bundle folder.
|
|
19
|
+
if (existsSync(resolved) && statSync(resolved).isFile() && /\.(arec|md)$/i.test(basename(resolved))) {
|
|
20
|
+
process.stdout.write(readFileSync(resolved, "utf8"));
|
|
21
|
+
return;
|
|
26
22
|
}
|
|
23
|
+
const dir = existsSync(resolved) && statSync(resolved).isFile() ? resolve(resolved, "..") : resolved;
|
|
27
24
|
const arec = join(dir, AREC_CANONICAL_FILENAME);
|
|
28
25
|
const legacy = join(dir, AREC_LEGACY_FILENAME);
|
|
29
|
-
const doc = existsSync(arec) ? arec : legacy;
|
|
30
|
-
if (!
|
|
31
|
-
throw new Error(`${dir} has
|
|
26
|
+
const doc = existsSync(arec) ? arec : existsSync(legacy) ? legacy : null;
|
|
27
|
+
if (!doc) {
|
|
28
|
+
throw new Error(`${dir} has no ${AREC_CANONICAL_FILENAME} or ${AREC_LEGACY_FILENAME} to read.`);
|
|
29
|
+
}
|
|
30
|
+
const manifestPath = join(dir, "manifest.json");
|
|
31
|
+
if (!existsSync(manifestPath)) {
|
|
32
|
+
note(`${dir} has no manifest.json; printing the document without its provenance.`);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
try {
|
|
36
|
+
const manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
|
|
37
|
+
if (manifest.bundleVersion !== 1) {
|
|
38
|
+
note(`bundle version ${String(manifest.bundleVersion)} is not one this CLI knows (it writes 1); printing the document anyway. \`npm i -g @clipy/cli\` updates the CLI.`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
note(`${manifestPath} is not valid JSON; printing the document anyway.`);
|
|
43
|
+
}
|
|
32
44
|
}
|
|
33
45
|
process.stdout.write(readFileSync(doc, "utf8"));
|
|
34
46
|
}
|