@nodetool-ai/automation-nodes 0.8.10 → 0.8.14

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/README.md CHANGED
@@ -22,10 +22,9 @@ npm install @nodetool-ai/automation-nodes
22
22
 
23
23
  ## What moved to the sandbox
24
24
 
25
- Fetching and crawling pages, Excel, OCR, and the TensorFlow.js models are no
26
- longer nodes. Each is a sandbox pack a `nodetool.code.Code` node imports —
27
- `fetch` plus `@nodetool-ai/sandbox-html`, `-xlsx`, `-ocr` and `-tfjs` — which is
28
- one script instead of a chain of near-identical nodes. See
25
+ Fetching and crawling pages and OCR are no longer nodes. Each is a sandbox pack
26
+ a `nodetool.code.Code` node imports — `fetch` plus `@nodetool-ai/sandbox-html`
27
+ and `-ocr` — which is one script instead of a chain of near-identical nodes. See
29
28
  [packages/sandbox-packs](../sandbox-packs/README.md).
30
29
 
31
30
  The `lib.sqlite.*` CRUD nodes went too, without a pack behind them: a database
@@ -1 +1 @@
1
- 2026-11-01T20:33:19.199Z
1
+ 2026-11-26T12:49:08.074Z
@@ -1 +1 @@
1
- {"version":3,"file":"lib-sqlite.d.ts","sourceRoot":"","sources":["../../src/nodes/lib-sqlite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAuB9D,6DAA6D;AAC7D,KAAK,6BAA6B,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,QAAQ;IAClD,MAAM,CAAC,QAAQ,CAAC,QAAQ,gCAAgC;IACxD,MAAM,CAAC,QAAQ,CAAC,KAAK,uBAAuB;IAC5C,MAAM,CAAC,QAAQ,CAAC,YAAY,WAAqB;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAM;IACjC,MAAM,CAAC,QAAQ,CAAC,WAAW,8MACkL;IAC7M,MAAM,CAAC,QAAQ,CAAC,mBAAmB;QACjC,MAAM;MACN;IAQM,aAAa,EAAE,MAAM,CAAC;IAExB,OAAO,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAGjF;CACF;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EAEhD,CAAC"}
1
+ {"version":3,"file":"lib-sqlite.d.ts","sourceRoot":"","sources":["../../src/nodes/lib-sqlite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AA8C9D,6DAA6D;AAC7D,KAAK,6BAA6B,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,QAAQ;IAClD,MAAM,CAAC,QAAQ,CAAC,QAAQ,gCAAgC;IACxD,MAAM,CAAC,QAAQ,CAAC,KAAK,uBAAuB;IAC5C,MAAM,CAAC,QAAQ,CAAC,YAAY,WAAqB;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAM;IACjC,MAAM,CAAC,QAAQ,CAAC,WAAW,8MACkL;IAC7M,MAAM,CAAC,QAAQ,CAAC,mBAAmB;QACjC,MAAM;MACN;IAQM,aAAa,EAAE,MAAM,CAAC;IAExB,OAAO,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAGjF;CACF;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EAEhD,CAAC"}
@@ -5,8 +5,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { BaseNode, prop } from "@nodetool-ai/node-sdk";
8
- import { join } from "node:path";
9
- function resolveDbPath(context, databaseName) {
8
+ import { assertLocalPathIsOwn } from "@nodetool-ai/runtime";
9
+ import { isAbsolute, join, relative } from "node:path";
10
+ /**
11
+ * The real path of the database `databaseName` in the run's workspace.
12
+ *
13
+ * The path is opened by whatever the workflow hands it to, never through the
14
+ * workspace, so it is held to the workspace here: inside its folder, and not
15
+ * in the folder of another project inside it.
16
+ */
17
+ async function resolveDbPath(context, databaseName) {
10
18
  // SQLite opens the file directly and holds it open across statements, so a
11
19
  // staged copy would diverge from the workspace the moment a second run
12
20
  // touched it. This node therefore needs a workspace that is a real folder.
@@ -18,7 +26,16 @@ function resolveDbPath(context, databaseName) {
18
26
  "back a live database file."
19
27
  : "A workspace is required for SQLite operations");
20
28
  }
21
- return join(workspaceDir, databaseName);
29
+ const dbPath = join(workspaceDir, databaseName);
30
+ const inside = relative(workspaceDir, dbPath);
31
+ if (!inside || inside.startsWith("..") || isAbsolute(inside)) {
32
+ throw new Error(`The database name "${databaseName}" resolves outside the workspace. ` +
33
+ `Name a file inside it.`);
34
+ }
35
+ if (context?.workspace) {
36
+ await assertLocalPathIsOwn(context.workspace, workspaceDir, dbPath, databaseName);
37
+ }
38
+ return dbPath;
22
39
  }
23
40
  export class GetDatabasePathLibNode extends BaseNode {
24
41
  static nodeType = "lib.sqlite.GetDatabasePath";
@@ -30,7 +47,7 @@ export class GetDatabasePathLibNode extends BaseNode {
30
47
  output: "str"
31
48
  };
32
49
  async process(context) {
33
- const dbPath = resolveDbPath(context, this.database_name);
50
+ const dbPath = await resolveDbPath(context, this.database_name);
34
51
  return { output: dbPath };
35
52
  }
36
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lib-sqlite.js","sourceRoot":"","sources":["../../src/nodes/lib-sqlite.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC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CAAU,QAAQ,GAAG,4BAA4B,CAAC;IACxD,MAAM,CAAU,KAAK,GAAG,mBAAmB,CAAC;IAC5C,MAAM,CAAU,YAAY,GAAG,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,CAAU,WAAW,GAAG,EAAE,CAAC;IACjC,MAAM,CAAU,WAAW,GACzB,0MAA0M,CAAC;IAC7M,MAAM,CAAU,mBAAmB,GAAG;QACpC,MAAM,EAAE,KAAK;KACd,CAAC;IAUF,KAAK,CAAC,OAAO,CAAC,OAA2B;QACvC,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAChE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC5B,CAAC;CACF;AANS;IANP,IAAI,CAAC;QACJ,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,kCAAkC;KAChD,CAAC;6DAC4B;AAQhC,MAAM,CAAC,MAAM,gBAAgB,GAAyB;IACpD,sBAAsB;CACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodetool-ai/automation-nodes",
3
- "version": "0.8.10",
3
+ "version": "0.8.14",
4
4
  "description": "NodeTool automation/system nodes — browser control, OS, workspace FS, triggers",
5
5
  "type": "module",
6
6
  "engines": {
@@ -15,12 +15,12 @@
15
15
  "lint": "node ../../scripts/run-tsc.mjs --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "@nodetool-ai/browser": "0.8.10",
19
- "@nodetool-ai/config": "0.8.10",
20
- "@nodetool-ai/node-sdk": "0.8.10",
21
- "@nodetool-ai/nodes-utils": "0.8.10",
22
- "@nodetool-ai/protocol": "0.8.10",
23
- "@nodetool-ai/runtime": "0.8.10"
18
+ "@nodetool-ai/browser": "0.8.14",
19
+ "@nodetool-ai/config": "0.8.14",
20
+ "@nodetool-ai/node-sdk": "0.8.14",
21
+ "@nodetool-ai/nodes-utils": "0.8.14",
22
+ "@nodetool-ai/protocol": "0.8.14",
23
+ "@nodetool-ai/runtime": "0.8.14"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^22.0.0",