@nearform/fling 0.5.0 → 0.5.1
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/CHANGELOG.md +5 -0
- package/dist/cli.js +12 -2
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.5.1
|
|
6
|
+
|
|
7
|
+
- `fling comments` shows the text a thread is pinned to (`> …` under its header), when a reviewer
|
|
8
|
+
pinned it by selecting text in review mode. The MCP tools return it as the anchor's `quote`.
|
|
9
|
+
|
|
5
10
|
## 0.5.0
|
|
6
11
|
|
|
7
12
|
- **One MCP server for every Fling.** The local MCP server (`fling mcp` and the Claude Desktop
|
package/dist/cli.js
CHANGED
|
@@ -373,6 +373,7 @@ var CommentAuthorSchema = z3.discriminatedUnion("kind", [
|
|
|
373
373
|
z3.object({ kind: z3.literal("guest"), name: z3.string() })
|
|
374
374
|
]);
|
|
375
375
|
var ANCHOR_SELECTOR_MAX = 512;
|
|
376
|
+
var ANCHOR_QUOTE_MAX = 500;
|
|
376
377
|
var px = z3.number().finite().min(-1e7).max(1e7);
|
|
377
378
|
var percent = z3.number().min(0).max(100);
|
|
378
379
|
var CommentAnchorSchema = z3.object({
|
|
@@ -387,7 +388,12 @@ var CommentAnchorSchema = z3.object({
|
|
|
387
388
|
scrollY: px.optional(),
|
|
388
389
|
vw: z3.number().finite().min(0).max(1e5).optional(),
|
|
389
390
|
vh: z3.number().finite().min(0).max(1e5).optional(),
|
|
390
|
-
hash: z3.string().max(COMMENT_PATH_MAX).optional()
|
|
391
|
+
hash: z3.string().max(COMMENT_PATH_MAX).optional(),
|
|
392
|
+
ew: percent.optional(),
|
|
393
|
+
eh: percent.optional(),
|
|
394
|
+
docW: z3.number().finite().min(0).max(1e7).optional(),
|
|
395
|
+
docH: z3.number().finite().min(0).max(1e7).optional(),
|
|
396
|
+
quote: z3.string().min(1).max(ANCHOR_QUOTE_MAX).optional()
|
|
391
397
|
});
|
|
392
398
|
var CommentSchema = z3.object({
|
|
393
399
|
id: z3.string(),
|
|
@@ -982,7 +988,10 @@ var ShellMessageSchema = z7.discriminatedUnion("type", [
|
|
|
982
988
|
z7.object({ ...tag, type: z7.literal("ready") }),
|
|
983
989
|
/** the frame is on `path` (normalised, see normalizeCommentPath) with fragment `hash` ('' or '#…') */
|
|
984
990
|
z7.object({ ...tag, type: z7.literal("location"), path, hash, title: z7.string().max(300) }),
|
|
991
|
+
/** a pin placed while placing: a click (a spot) or a drag (a box) */
|
|
985
992
|
z7.object({ ...tag, type: z7.literal("pinPlaced"), anchor: CommentAnchorSchema }),
|
|
993
|
+
/** the reviewer selected text in the page: an anchor on it, with its quote */
|
|
994
|
+
z7.object({ ...tag, type: z7.literal("textSelected"), anchor: CommentAnchorSchema }),
|
|
986
995
|
z7.object({ ...tag, type: z7.literal("pinCancelled") }),
|
|
987
996
|
z7.object({ ...tag, type: z7.literal("pinClicked"), id: z7.string() }),
|
|
988
997
|
/** this reviewer's pointer on the page; null when it left the frame */
|
|
@@ -1088,7 +1097,7 @@ function exitCodeFor(error) {
|
|
|
1088
1097
|
// package.json
|
|
1089
1098
|
var package_default = {
|
|
1090
1099
|
name: "@nearform/fling",
|
|
1091
|
-
version: "0.5.
|
|
1100
|
+
version: "0.5.1",
|
|
1092
1101
|
license: "MIT",
|
|
1093
1102
|
description: "Fling a folder of static files at a Fling server and get a link back. CLI + MCP server.",
|
|
1094
1103
|
type: "module",
|
|
@@ -2212,6 +2221,7 @@ async function runComments(ctx, name, opts) {
|
|
|
2212
2221
|
}
|
|
2213
2222
|
const state = c.resolvedAt ? chalk6.green(" \u2713 resolved") : "";
|
|
2214
2223
|
lines.push(`${chalk6.dim(c.id)}${state} ${describe(c, list.site.currentVersionId)}`);
|
|
2224
|
+
if (c.anchor?.quote) lines.push(chalk6.dim(` > ${c.anchor.quote}`));
|
|
2215
2225
|
lines.push(...c.body.split("\n").map((l) => ` ${l}`));
|
|
2216
2226
|
for (const r of replies) {
|
|
2217
2227
|
lines.push(` ${chalk6.dim("\u21B3")} ${describe(r, list.site.currentVersionId)}`);
|