needle-cloud 2.11.0 → 2.11.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 CHANGED
@@ -4,6 +4,19 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [Unreleased]
8
+
9
+ ## [2.11.1] - 2026-10-16
10
+ ### Added
11
+ - Opt-in inline chat tool calls with `capabilities.inlineToolCalls`, ordered message parts, and the `updateInlineChatParts` streaming helper.
12
+
13
+ ### Fixed
14
+ - Published TypeScript declarations export the inline chat helper and its public types.
15
+
16
+ ## [2.11.0] - 2026-10-15
17
+ ### Added
18
+ - `stop` (alias `quit`) requests an authenticated shutdown of the local license/MCP server and exits. Existing servers without the new endpoint report that manual shutdown is required.
19
+
7
20
  ## [2.10.0] - 2026-10-14
8
21
  ### Added
9
22
  - `label list` and `label set` to inspect labels, promote a completed version, create custom labels, or roll back, with JSON output and token/team support.
package/README.md CHANGED
@@ -35,6 +35,25 @@ npx needle-cloud help <command> # Help for a specific command
35
35
  - `start` — Start the local server for licensing, editor integrations, and MCP tools
36
36
  - `settings` — View CLI settings, including [local tool access for Needle Cloud AI](#local-tools-in-needle-cloud-ai)
37
37
 
38
+ ## Stop the local license server
39
+
40
+ Close Unity or other integrations that may automatically start the server, then run:
41
+
42
+ ```bash
43
+ npx needle-cloud stop
44
+ ```
45
+
46
+ `quit` is an alias. The command authenticates with the local server token, requests
47
+ shutdown, and exits. It does not sign you out, remove settings, or kill unrelated
48
+ Node.js processes. The shared licensing/MCP server disconnects from Cloud and
49
+ closes its HTTP and WebSocket connections, allowing up to three seconds to drain.
50
+
51
+ If the server is not running, the command exits successfully. Older running
52
+ versions without the stop endpoint must be closed manually once; this command
53
+ cannot add shutdown support to an already-running old server. After that, start
54
+ the updated CLI or reopen your project. `needle-cloud status` shows the running
55
+ server's port and PID.
56
+
38
57
  ## Upload assets
39
58
 
40
59
  ```bash
@@ -223,6 +242,25 @@ Or use the official [GitHub Action](https://github.com/marketplace/actions/deplo
223
242
  name: my-project
224
243
  ```
225
244
 
245
+ ## AI evaluation images and quota actions
246
+
247
+ The web API accepts PNG/JPEG image parts in evaluation state:
248
+
249
+ ```js
250
+ import { aiEvaluate } from "needle-cloud";
251
+
252
+ const result = await aiEvaluate(
253
+ ["Current viewport", { type: "image_url", image_url: { url: pngDataUrl } }],
254
+ { visible: { type: "boolean", instructions: "Is the selected object visible?" } },
255
+ undefined,
256
+ { org: teamId },
257
+ );
258
+ ```
259
+
260
+ Use base64 data URLs, not remote image URLs. A request supports up to four images with 2 MiB of decoded data in total, plus 128,000 characters of JSON text excluding the image URLs. Images must be 256–1,568 pixels on each side and at least 78,400 pixels in total. Image evaluation is experimental; resize screenshots before sending them.
261
+
262
+ Chat quota failures expose `details` on HTTP `AIChatError` objects and streamed `error` events. Evaluation errors also expose `details`. The quota metadata contains `code: "ai_allowance_exhausted"`, `account_id`, a readable `message`, and `actions` with `kind`, `label`, and `url` fields. Render these as links: `top_up` opens the team's top-up control; `view_usage` opens its usage section. Opening a link does not automatically purchase credits. Older servers may return text-only errors without `details`.
263
+
226
264
  ## Links
227
265
 
228
266
  - [Needle Cloud](https://cloud.needle.tools)