needle-cloud 2.3.6 → 2.4.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/dist/cli.esm.js CHANGED
@@ -1 +1 @@
1
- import"node-fetch";import"@web-std/file";import"node:crypto";import"@caporal/core";import"fs";export{p as program}from"./cli-b51adc78.js";import"dotenv";import"ora";import"open";import"crypto";import"buffer";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"assert";import"tty";import"os";import"zlib";import"events";import"node:readline/promises";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"child_process";import"minimatch";import"body-parser";import"node:child_process";
1
+ import"node-fetch";import"@web-std/file";import"node:crypto";import"@caporal/core";import"fs";export{p as program}from"./cli-88b2ef63.js";import"dotenv";import"ora";import"open";import"crypto";import"buffer";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"assert";import"tty";import"os";import"zlib";import"events";import"node:readline/promises";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"child_process";import"minimatch";import"body-parser";import"node:child_process";
@@ -1 +1 @@
1
- import{existsSync as o,readdirSync as t,statSync as r}from"node:fs";import{dirname as i,join as e}from"node:path";import{g as n}from"./cli-b51adc78.js";import"node-fetch";import"@web-std/file";import"node:crypto";import"@caporal/core";import"fs";import"open";import"crypto";import"buffer";import"path";import"ora";import"node:fs/promises";import"node:os";import"util";import"stream";import"http";import"https";import"url";import"assert";import"tty";import"os";import"zlib";import"events";import"node:readline/promises";import"dotenv";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"child_process";import"minimatch";import"body-parser";import"node:child_process";function p(){var p;let m;try{m=n()}catch{return null}const l=null==(p=m)||null==(p=p.entries)?void 0:p[0];if(!l)return null;if(!l.log_location)return null;if("unity"!==l.editor&&"blender"!==l.editor)return null;if(!o(l.log_location))return null;const s=l.log_location,c=function(o,i){const n=new Set([i]);try{for(const i of t(o)){if(!i.toLowerCase().endsWith(".log"))continue;const t=e(o,i);try{if(!r(t).isFile())continue}catch{continue}n.add(t)}}catch{}return[...n]}(i(s),s);return{editor:l.editor,path:s,paths:c}}export{p as findActiveEditorLog};
1
+ import{existsSync as o,readdirSync as t,statSync as r}from"node:fs";import{dirname as i,join as e}from"node:path";import{g as n}from"./cli-88b2ef63.js";import"node-fetch";import"@web-std/file";import"node:crypto";import"@caporal/core";import"fs";import"open";import"crypto";import"buffer";import"path";import"ora";import"node:fs/promises";import"node:os";import"util";import"stream";import"http";import"https";import"url";import"assert";import"tty";import"os";import"zlib";import"events";import"node:readline/promises";import"dotenv";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"child_process";import"minimatch";import"body-parser";import"node:child_process";function p(){var p;let m;try{m=n()}catch{return null}const l=null==(p=m)||null==(p=p.entries)?void 0:p[0];if(!l)return null;if(!l.log_location)return null;if("unity"!==l.editor&&"blender"!==l.editor)return null;if(!o(l.log_location))return null;const s=l.log_location,c=function(o,i){const n=new Set([i]);try{for(const i of t(o)){if(!i.toLowerCase().endsWith(".log"))continue;const t=e(o,i);try{if(!r(t).isFile())continue}catch{continue}n.add(t)}}catch{}return[...n]}(i(s),s);return{editor:l.editor,path:s,paths:c}}export{p as findActiveEditorLog};
package/dist/index.d.ts CHANGED
@@ -4,15 +4,20 @@ import Stripe from 'stripe';
4
4
 
5
5
  /**
6
6
  * Self-selected user role/persona. Optional everywhere — a user may have none.
7
- * Used to lightly tailor AI responses. See PERSONA_OPTIONS for the value→label map.
7
+ * Used to lightly tailor AI responses (and, planned, how emails are worded).
8
+ * See PERSONA_OPTIONS for the value→label map.
9
+ *
10
+ * "agency" was removed 2026-07-03: it describes an organization type, not a
11
+ * personal role (the welcome questionnaire captures it as `company_type`
12
+ * instead). Stored "agency" values gracefully degrade to unset — every read
13
+ * goes through isValidPersona.
8
14
  */
9
15
  type PersonaRole =
10
16
  | "generalist"
11
17
  | "developer"
12
18
  | "technical_artist"
13
19
  | "designer"
14
- | "manager"
15
- | "agency";
20
+ | "manager";
16
21
 
17
22
  type LogtoUserCustomData$1 = {
18
23
  default_org?: string;
@@ -447,7 +452,7 @@ type ChatSessionSendOptions$1 = {
447
452
  */
448
453
  /**
449
454
  * @param {Array<Filelike>} files
450
- * @param {{org?:string|null} & { name?:string, abort?:AbortSignal, }} opts
455
+ * @param {{org?:string|null} & { name?:string, abort?:AbortSignal, authToken?:string|null }} opts
451
456
  * @returns {Promise<{error:string} | {job_id:string, content_id:string, url?:string | null, skipped?:boolean}>}
452
457
  */
453
458
  declare function uploadFiles(files: Array<Filelike>, opts: {
@@ -455,6 +460,7 @@ declare function uploadFiles(files: Array<Filelike>, opts: {
455
460
  } & {
456
461
  name?: string;
457
462
  abort?: AbortSignal;
463
+ authToken?: string | null;
458
464
  }): Promise<{
459
465
  error: string;
460
466
  } | {