@nearform/fling 0.5.1 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nearform/fling",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "description": "Fling a folder of static files at a Fling server and get a link back. CLI + MCP server.",
6
6
  "type": "module",
@@ -9,9 +9,7 @@
9
9
  },
10
10
  "files": [
11
11
  "dist/cli.js",
12
- "dist/cli.js.map",
13
- "README.md",
14
- "CHANGELOG.md"
12
+ "README.md"
15
13
  ],
16
14
  "engines": {
17
15
  "node": ">=22"
@@ -36,6 +34,7 @@
36
34
  "zod": "^4.6.7"
37
35
  },
38
36
  "devDependencies": {
37
+ "@anthropic-ai/mcpb": "^2.1.2",
39
38
  "@types/node": "^24.0.0",
40
39
  "esbuild": "^0.25.12",
41
40
  "tsx": "^4.23.13",
package/CHANGELOG.md DELETED
@@ -1,80 +0,0 @@
1
- # Changelog
2
-
3
- ## Unreleased
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
-
10
- ## 0.5.0
11
-
12
- - **One MCP server for every Fling.** The local MCP server (`fling mcp` and the Claude Desktop
13
- extension) knows every Fling the CLI remembers. Every tool that talks to a Fling takes an
14
- optional `server` (an address, host or unique part of it), and calls use that Fling's own key.
15
- An unknown or ambiguous `server` fails with the list of Flings.
16
- - **The server is chosen explicitly when there are several.** With one Fling (or none) nothing
17
- changes: calls go to it. With several, the instructions and tool descriptions list them by host
18
- and mark the current one, and tell Claude to settle at the start of a conversation which Fling it
19
- uses (from your words, or by asking you, suggesting your current one), say so, and pass it as
20
- `server` on every call. A call without `server`, reads included, doesn't run: it answers with the
21
- list so Claude can ask. `fling mcp --server` and `FLING_URL` still pin one. The CLI's commands
22
- are unchanged and follow `fling use`.
23
- - `fling_servers` lists the Flings on this computer (address, name, who is signed in, which is
24
- current), read when called; `{use: <server>}` makes one current, as `fling use` does.
25
- - `fling_login` takes `server` to sign in to another Fling, including a new one. It becomes the
26
- current Fling only when none is.
27
- - Deploy, publish and comment results end with the Fling they went to.
28
- - **One extension.** The extension has the same identity whichever Fling serves it, so installing
29
- it from another Fling updates it in place. The address a Fling bakes in (`FLING_MCPB_SERVER_URL`
30
- at build time, `FLING_ADD_SERVER` in the extension) is added to the remembered Flings when the
31
- server starts, if it isn't there yet; it never replaces a stored key and becomes current only
32
- when none is. The extension's **Fling server** setting is gone.
33
- - Upgrading: remove older Fling extensions from Claude Desktop (Settings → Extensions), then
34
- install it once from any of your Flings. Earlier extensions were each tied to one Fling.
35
-
36
- ## 0.4.0
37
-
38
- - **Several Flings.** The CLI remembers every Fling you sign in to, each with its own API key, and
39
- uses the current one. `fling login <url>` and `fling setup <url>` add a Fling (or refresh its
40
- login) and make it current without signing you out of the others. `fling use` lists them, with
41
- each one's name and your email; `fling use <url>` switches (a full address, its host or the start
42
- of it). `fling logout <url>` signs out of another Fling and forgets it; a bare `fling logout`
43
- still removes the current Fling's key and keeps the Fling. `fling whoami` shows which Fling is
44
- current.
45
- - `--server` and `FLING_URL` pick a remembered Fling for one command and use its stored key (an
46
- address you haven't signed in to has no key; `FLING_API_KEY` still overrides). The local MCP
47
- server uses the current Fling unless `FLING_URL` (the Claude Desktop extension's **Fling server**)
48
- names one, and signing in from it makes that Fling current only when no other is.
49
- - Upgrading: `~/.fling/config.json` from 0.3 is read as-is, as one remembered Fling that is
50
- current. It is rewritten in the new shape (`current` plus `servers`, keyed by address) the next
51
- time the CLI saves it, so an older CLI can no longer read it after that.
52
-
53
- ## 0.3.0
54
-
55
- **Breaking: no default server.** The CLI works with any Fling deployment, so it no longer has one
56
- built in.
57
-
58
- - `fling login <url>` (or `fling setup <url>`) signs in to the Fling at that address. The CLI
59
- reads the server's `/.well-known/fling` (its name, sites domain, sign-in method) and remembers
60
- both in `~/.fling/config.json`; later commands, and `fling login` without a URL, use them.
61
- `FLING_URL` and `--server` still override it.
62
- - Upgrading from 0.2: if you logged in with 0.2, nothing changes; the server you logged in to is
63
- kept, and its metadata is fetched the first time it is needed. A config without a server (a new
64
- machine, or a key set by hand) fails with `No Fling server set — run fling login <url> …`
65
- instead of assuming a server.
66
- - Site URLs shown before a deploy come from the server's metadata instead of being guessed from
67
- the server URL.
68
- - The local MCP server (`fling mcp`, the Claude Desktop extension) names your Fling and its sites
69
- domain in its tool descriptions. The extension's **Fling server** setting has no built-in
70
- default; the copy a Fling serves at `/downloads/fling.mcpb` has its address filled in.
71
- - Comments: `fling comments`, `fling comment` (and `--reply`), `fling resolve`, `fling uncomment`;
72
- the local MCP server gains `fling_comments_list`, `fling_comment_add`, `fling_comment_resolve`
73
- and `fling_comment_delete` on an instance with the `comments` capability.
74
- - On an instance with comments, a deploy (`fling deploy`, and the MCP server's `fling_deploy` and
75
- `fling_publish`) also gives the review page, the link to share for feedback: in the output box,
76
- as `reviewUrl` in `--json` and in the MCP result, where it leads.
77
-
78
- ## 0.2.0
79
-
80
- `fling setup`, a new look, and help by default.