needle-cloud 2.6.0 → 2.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/CHANGELOG.md +4 -0
- package/README.md +6 -0
- package/dist/cli-6d1357ac.js +1 -0
- package/dist/cli.esm.js +1 -1
- package/dist/{cli.send-logs.discovery-0e806cf7.js → cli.send-logs.discovery-09ad5542.js} +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cli-65a6a5f1.js +0 -1
package/dist/cli.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node-fetch";import"@web-std/file";import"node:crypto";export{p as program}from"./cli-
|
|
1
|
+
import"node-fetch";import"@web-std/file";import"node:crypto";export{p as program}from"./cli-6d1357ac.js";import"fs";import"dotenv";import"ora";import"commander";import"child_process";import"open";import"path";import"node:fs";import"node:fs/promises";import"node:os";import"node:path";import"util";import"stream";import"http";import"https";import"url";import"crypto";import"net";import"tls";import"assert";import"tty";import"os";import"events";import"http2";import"zlib";import"node:readline/promises";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"node:child_process";import"minimatch";import"body-parser";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{existsSync as t,readdirSync as o,statSync as r}from"node:fs";import{dirname as i,join as e}from"node:path";import{g as n}from"./cli-
|
|
1
|
+
import{existsSync as t,readdirSync as o,statSync as r}from"node:fs";import{dirname as i,join as e}from"node:path";import{g as n}from"./cli-6d1357ac.js";import"node-fetch";import"@web-std/file";import"node:crypto";import"commander";import"fs";import"child_process";import"open";import"path";import"ora";import"node:fs/promises";import"node:os";import"util";import"stream";import"http";import"https";import"url";import"crypto";import"net";import"tls";import"assert";import"tty";import"os";import"events";import"http2";import"zlib";import"node:readline/promises";import"dotenv";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"node:child_process";import"minimatch";import"body-parser";function p(){var p;let m;try{m=n()}catch{return null}const s=null==(p=m)||null==(p=p.entries)?void 0:p[0];if(!s)return null;if(!s.log_location)return null;if("unity"!==s.editor&&"blender"!==s.editor)return null;if(!t(s.log_location))return null;const l=s.log_location,c=function(t,i){const n=new Set([i]);try{for(const i of o(t)){if(!i.toLowerCase().endsWith(".log"))continue;const o=e(t,i);try{if(!r(o).isFile())continue}catch{continue}n.add(o)}}catch{}return[...n]}(i(l),l);return{editor:s.editor,path:l,paths:c}}export{p as findActiveEditorLog};
|
package/dist/index.d.ts
CHANGED
|
@@ -232,6 +232,7 @@ type ChatMessage = {
|
|
|
232
232
|
/** Images belonging to this message. Absent on the vast majority of messages. */
|
|
233
233
|
attachments?: ChatMessageAttachment[],
|
|
234
234
|
metadata?: {
|
|
235
|
+
client_message_id?: string,
|
|
235
236
|
tokens?: { input: number, output: number },
|
|
236
237
|
/** True while the AI is still streaming a response. Absent or false when the message is complete. */
|
|
237
238
|
is_partial?: boolean,
|
|
@@ -350,6 +351,8 @@ type ChatStreamEvent = { /** SSE event id for position tracking. */ id?: number
|
|
|
350
351
|
| { type: "tool_call", name: string, display_name?: string | null, args: Record<string, any> }
|
|
351
352
|
/** A tool finished executing. The AI will continue generating with the result. */
|
|
352
353
|
| { type: "tool_result", name: string }
|
|
354
|
+
/** User messages joined this generation between tool rounds. Start a new assistant message after them. */
|
|
355
|
+
| { type: "message_inserted", messages: Array<{ id: string, content: string }>, assistant_message_id: string }
|
|
353
356
|
/** An error occurred. Display `message` to the user. */
|
|
354
357
|
| { type: "error", message: string }
|
|
355
358
|
/**
|
|
@@ -552,6 +555,10 @@ type ChatSessionHandle$1 = {
|
|
|
552
555
|
sendMessageSync(slug: string, message: string, options?: ChatSessionSendOptions$1): Promise<AIChatSyncResponse>,
|
|
553
556
|
/** Interrupt an active AI generation for the given chat slug. */
|
|
554
557
|
interruptChat(slug: string): Promise<void>,
|
|
558
|
+
/** Queue a user message for the next completed tool round of an active generation. */
|
|
559
|
+
enqueueMessage(slug: string, message: { id: string, content: string }): Promise<{ accepted: boolean }>,
|
|
560
|
+
/** Remove a queued message before the next tool round takes it. */
|
|
561
|
+
cancelEnqueuedMessage(slug: string, id: string): Promise<{ removed: boolean }>,
|
|
555
562
|
/** Read chat history for a slug. */
|
|
556
563
|
readChat(slug: string, options?: { offset?: number, limit?: number }): Promise<AIChatGETResponse>,
|
|
557
564
|
/**
|
|
@@ -995,7 +1002,13 @@ declare type OptimizationParameters = {
|
|
|
995
1002
|
pipeline_version?: string,
|
|
996
1003
|
/** True if the files should be optimized with progressive loading */
|
|
997
1004
|
progressive: boolean,
|
|
998
|
-
usecase?: "product" | "world"
|
|
1005
|
+
usecase?: "product" | "world",
|
|
1006
|
+
/** Merge eligible static meshes. Available to preview-enabled organizations. */
|
|
1007
|
+
merge?: boolean,
|
|
1008
|
+
/** Split merge candidates by material compatibility. Default: false. */
|
|
1009
|
+
materialSplitting?: boolean,
|
|
1010
|
+
/** Group merge candidates spatially. Default: false. */
|
|
1011
|
+
spatialGrouping?: boolean,
|
|
999
1012
|
}
|
|
1000
1013
|
|
|
1001
1014
|
declare type UploadParameters = {
|
|
@@ -1429,6 +1442,8 @@ type ContentVariant = {
|
|
|
1429
1442
|
type: JobModel["type"],
|
|
1430
1443
|
/** Optimization use case. Null for non-optimization variants or the default optimization. */
|
|
1431
1444
|
usecase: OptimizationParameters["usecase"] | null,
|
|
1445
|
+
/** True for the experimental merged-mesh optimization variant. */
|
|
1446
|
+
merge?: boolean,
|
|
1432
1447
|
/** ISO 8601 timestamp */
|
|
1433
1448
|
created_at: string,
|
|
1434
1449
|
/** ISO 8601 timestamp */
|