needle-cloud 2.4.3 → 2.4.4

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-ee1be2d4.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";export{p as program}from"./cli-1d59c78f.js";import"fs";import"dotenv";import"ora";import"commander";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";
@@ -0,0 +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-1d59c78f.js";import"node-fetch";import"@web-std/file";import"node:crypto";import"commander";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 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(!o(s.log_location))return null;const l=s.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(l),l);return{editor:s.editor,path:l,paths:c}}export{p as findActiveEditorLog};
package/dist/index.d.ts CHANGED
@@ -551,7 +551,7 @@ type OneTimePurchase = BaseLicense & {
551
551
  * what the pack grants, how much of it is left, and when it expires. */
552
552
  credits?: Array<{
553
553
  /** What the pack grants, e.g. "ai_chat_tokens" (AI chat tokens),
554
- * "material_generations", "optimizations". */
554
+ * "image_generations", "material_generations", "3d_asset_optimizations". */
555
555
  metric: string,
556
556
  /** Units originally included with the purchase. */
557
557
  granted: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "needle-cloud",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "needle-cloud": "./bin/cli.js"
@@ -19,12 +19,12 @@
19
19
  "package-lock.json"
20
20
  ],
21
21
  "dependencies": {
22
- "@caporal/core": "^2.0.7",
23
22
  "@logto/browser": "^3.0.7",
24
23
  "@logto/node": "^2.5.8",
25
24
  "@web-std/file": "^3.0.3",
26
25
  "body-parser": "^1.20.3",
27
26
  "buffer": "^6.0.3",
27
+ "commander": "14.0.1",
28
28
  "dotenv": "^16.4.5",
29
29
  "express": "^4.21.1",
30
30
  "minimatch": "^10.2.5",