@clipy/cli 0.9.2 → 0.9.3

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.
@@ -17,6 +17,11 @@ import { basename, join, resolve } from "node:path";
17
17
  import { buildManifest, buildNormalizedTranscript, classifyTranscript, parseSrt, parseVtt, parseYoutubeJson3, renderArecMarkdown, slugHash, } from "../context-core/index.js";
18
18
  import { describeCaptions, fetchCaptions, fetchVideoMeta, resolveYtDlp } from "./ytdlp.js";
19
19
  import { canonicalYoutubeUrl, isYoutubeHost, parseYoutubeId } from "./youtubeUrl.js";
20
+ // The web app and the API share an origin in every real deployment; strip any
21
+ // trailing slash so the printed URL is clean.
22
+ function webOriginFromApiUrl(apiUrl) {
23
+ return apiUrl.replace(/\/+$/, "");
24
+ }
20
25
  import { ImportError } from "./errors.js";
21
26
  import { looksLikeStaleBinary } from "./retry.js";
22
27
  import { probeVideo } from "./probe.js";
@@ -717,10 +722,13 @@ export async function cmdContextImport(target, opts) {
717
722
  // The headline. A user who ran one command should not have to assemble "did
718
723
  // it work, and where is it" out of four key-value lines.
719
724
  process.stdout.write(`\nYour agent-ready context for ${JSON.stringify(compiled.manifest.title)} is ready.\n`);
720
- process.stdout.write(` → local bundle: ${join(bundlePath, "recording.md")} (point your agent here, or run: clipy context read ${bundlePath})\n`);
721
725
  if (synced) {
722
- process.stdout.write(` → in your Clipy library: filed under ${JSON.stringify(synced.folderName ?? "Knowledge Base")} — searchable, and readable by agents via MCP (read_context_document ${synced.publicId})\n`);
726
+ // Server copy first — once synced it is the canonical, durable one; the
727
+ // local bundle is the offline/working copy.
728
+ process.stdout.write(` → view it: ${webOriginFromApiUrl(opts.apiUrl)}/knowledge/${synced.publicId} (filed under ${JSON.stringify(synced.folderName ?? "Knowledge Base")})\n`);
729
+ process.stdout.write(` → for agents: MCP read_context_document ${synced.publicId}, or the local bundle below\n`);
723
730
  }
731
+ process.stdout.write(` → local bundle: ${join(bundlePath, "recording.md")} (run: clipy context read ${bundlePath})\n`);
724
732
  if (warnings.length > 0) {
725
733
  process.stdout.write(` → incomplete: ${warnings.map((w) => w.error).join("; ")}\n to finish it: ${warnings[0].remediation}\n`);
726
734
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipy/cli",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Command-line interface for Clipy — list, search, and read your screen recordings' transcripts, AI summaries, and key moments from the terminal.",
5
5
  "license": "MIT",
6
6
  "type": "module",