needle-cloud 2.0.2 → 2.1.0-dev.1779007136.henry-the-eighth.52864a7
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/dist/cli.esm.js +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -335,7 +335,21 @@ type ChatSessionHandle$1 = {
|
|
|
335
335
|
readonly chatUrl: string | null,
|
|
336
336
|
/** Whether the WebSocket tool connection is active. Always false if no tools were provided. */
|
|
337
337
|
readonly toolsConnected: boolean,
|
|
338
|
-
/**
|
|
338
|
+
/**
|
|
339
|
+
* Stable identity of the underlying tool connection. `null` when the
|
|
340
|
+
* session has no tools (HTTP-only). Used by the server to route tool
|
|
341
|
+
* requests back to this specific session.
|
|
342
|
+
*/
|
|
343
|
+
readonly instanceId: string | null,
|
|
344
|
+
/**
|
|
345
|
+
* Close the session (WebSocket + cleanup).
|
|
346
|
+
*
|
|
347
|
+
* **Node / CLI consumers MUST call this before exit** when the
|
|
348
|
+
* session was created with tools (i.e. holds an open WebSocket) —
|
|
349
|
+
* otherwise the open socket keeps Node's event loop alive and the
|
|
350
|
+
* process will hang. See `ToolConnectionHandle.close()` for the
|
|
351
|
+
* full lifecycle notes. Browsers handle this automatically.
|
|
352
|
+
*/
|
|
339
353
|
close(): void,
|
|
340
354
|
}
|
|
341
355
|
|