@clipy/cli 0.18.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.
Files changed (56) hide show
  1. package/LICENSE-APACHE +202 -0
  2. package/README.md +210 -9
  3. package/dist/context/importCmd.js +1 -1
  4. package/dist/context/ytdlp.js +1 -1
  5. package/dist/context-core/arec.js +1 -1
  6. package/dist/index.js +1042 -88
  7. package/dist/local/arec.js +186 -0
  8. package/dist/local/commands.js +1103 -0
  9. package/dist/local/deps.js +42 -0
  10. package/dist/local/media.js +154 -0
  11. package/dist/local/pipeline.js +530 -0
  12. package/dist/local/ports.js +1 -0
  13. package/dist/local/speechEngine.js +260 -0
  14. package/dist/local/transcriptFile.js +54 -0
  15. package/dist/local/vendor/capture/capture.js +442 -0
  16. package/dist/local/vendor/capture/check.js +103 -0
  17. package/dist/local/vendor/capture/children.js +69 -0
  18. package/dist/local/vendor/capture/ffmpegArgs.js +108 -0
  19. package/dist/local/vendor/capture/index.js +36 -0
  20. package/dist/local/vendor/capture/proc.js +71 -0
  21. package/dist/local/vendor/capture/scripts.js +107 -0
  22. package/dist/local/vendor/capture/sidecar.js +199 -0
  23. package/dist/local/vendor/capture/sources.js +272 -0
  24. package/dist/local/vendor/capture/types.js +1 -0
  25. package/dist/local/vendor/capture/virtualDisplay.js +170 -0
  26. package/dist/local/vendor/capture/xauth.js +68 -0
  27. package/dist/local/vendor/config/errors.js +12 -0
  28. package/dist/local/vendor/config/index.js +241 -0
  29. package/dist/local/vendor/config/paths.js +37 -0
  30. package/dist/local/vendor/config/presets.js +61 -0
  31. package/dist/local/vendor/config/schema.js +66 -0
  32. package/dist/local/vendor/moments/generated/drawStrokes.js +127 -0
  33. package/dist/local/vendor/moments/generated/keyMomentsCursorContext.js +568 -0
  34. package/dist/local/vendor/moments/generated/keyMomentsFusion.js +406 -0
  35. package/dist/local/vendor/moments/generated/localMomentPlan.js +178 -0
  36. package/dist/local/vendor/moments/generated/types.js +1 -0
  37. package/dist/local/vendor/moments/index.js +147 -0
  38. package/dist/local/vendor/moments/llm.js +158 -0
  39. package/dist/local/vendor/transcribe/audio.js +251 -0
  40. package/dist/local/vendor/transcribe/chunking.js +250 -0
  41. package/dist/local/vendor/transcribe/index.js +89 -0
  42. package/dist/local/vendor/transcribe/local.js +221 -0
  43. package/dist/local/vendor/transcribe/localWorker.js +79 -0
  44. package/dist/local/vendor/transcribe/models.js +369 -0
  45. package/dist/local/vendor/transcribe/providers/assemblyai.js +61 -0
  46. package/dist/local/vendor/transcribe/providers/common.js +105 -0
  47. package/dist/local/vendor/transcribe/providers/deepgram.js +59 -0
  48. package/dist/local/vendor/transcribe/providers/elevenlabs.js +43 -0
  49. package/dist/local/vendor/transcribe/providers/gemini.js +102 -0
  50. package/dist/local/vendor/transcribe/providers/http.js +214 -0
  51. package/dist/local/vendor/transcribe/providers/openai.js +48 -0
  52. package/dist/local/vendor/transcribe/tar.js +53 -0
  53. package/dist/local/vendor/transcribe/types.js +1 -0
  54. package/dist/macBridge.js +78 -9
  55. package/dist/skill.js +46 -1
  56. package/package.json +19 -9
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
@@ -5,26 +5,80 @@
5
5
  [![node >= 18](https://img.shields.io/node/v/%40clipy%2Fcli)](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 — transcripts, AI summaries, key moments — from the terminal, download the
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 a free screen recorder ([Chrome extension and Mac app](https://clipy.online/download),
12
- plus a [web recorder](https://clipy.online/screen-recorder)) that gives every
13
- recording an instant share link, an AI transcript and summary, and
14
- [agent-readable context](https://clipy.online/for-agents) — so both humans and AI
15
- agents can act on what was recorded. This package is its terminal client.
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
@@ -192,7 +246,8 @@ Local files carry no captions, so they need `--transcript <.vtt|.srt|.json>`.
192
246
  With `--sync`, the server classifies the bundle: what kind of video it is and whether the
193
247
  words stand alone. Podcasts, interviews, and dictated content come back transcript-only; a
194
248
  screen walkthrough comes back with the timestamps worth a picture, and those frames are then
195
- extracted locally (needs `ffmpeg` — `brew install ffmpeg`). Without `--sync` the bundle stays
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
196
251
  honestly transcript-only. `--no-frames` takes the verdict but never downloads media. Also:
197
252
  `--title`, `--tag` (repeatable), `--folder`, `--language`, `--output <dir>`.
198
253
 
@@ -746,6 +801,142 @@ or `--x-display`. On Windows there is no real-screen path for agents yet: use
746
801
  `--source chrome-for-clipy` for a browser tab, `--url` for a headless page, or
747
802
  `clipy proof` with your own tool's video or screenshots.
748
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
+
749
940
  ## Scripting
750
941
 
751
942
  Every command has machine-readable output. `--json` is supported on **`list`, `memory search`, `search`,
@@ -807,4 +998,14 @@ Markdown. The legacy `.md` URL remains byte-identical. Details at
807
998
 
808
999
  ## License
809
1000
 
810
- MIT © Clipy
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.
@@ -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 1.3) and optionally syncs it to the library.
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
@@ -374,7 +374,7 @@ export function describeCaptions(c) {
374
374
  }
375
375
  if (c.originalUnknown)
376
376
  return `${c.language}, auto-generated; the video's original language is unknown`;
377
- return `${c.language}, auto-generated — video's original language`;
377
+ return `${c.language}, auto-generated, in the video's original language`;
378
378
  }
379
379
  function provenanceOf({ track: _track, flag: _flag, ...provenance }) {
380
380
  return provenance;
@@ -5,7 +5,7 @@
5
5
  */
6
6
  /** Roughly one transcript section per this many ms. */
7
7
  const SECTION_MS = 150_000;
8
- export const AREC_VERSION = '1.3';
8
+ export const AREC_VERSION = '1.4';
9
9
  export const AREC_CANONICAL_FILENAME = 'recording.arec';
10
10
  export const AREC_LEGACY_FILENAME = 'recording.md';
11
11
  function arecIdentityValue(value) {