@fractal-solutions/qflow 1.0.67 → 1.0.69

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.
@@ -30,7 +30,7 @@ export class HardwareInteractionNode extends AsyncNode {
30
30
  required: string[];
31
31
  };
32
32
  };
33
- port: SerialPort<any> | null;
33
+ port: SerialPort<import("@serialport/bindings-cpp").AutoDetectTypes> | null;
34
34
  parser: ReadlineParser | null;
35
35
  execAsync(): Promise<any>;
36
36
  }
@@ -37,7 +37,7 @@ export class HttpServerNode extends AsyncNode {
37
37
  };
38
38
  };
39
39
  constructor();
40
- server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse> | null;
40
+ server: any;
41
41
  findMatchingRoute(routes: any, method: any, path: any): {
42
42
  flow: any;
43
43
  params: {};
@@ -51,4 +51,3 @@ export class HttpServerNode extends AsyncNode {
51
51
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
52
52
  }
53
53
  import { AsyncNode } from '../qflow.js';
54
- import http from 'http';
@@ -30,7 +30,7 @@ export class ImageGalleryNode extends AsyncNode {
30
30
  };
31
31
  execAsync(): Promise<{
32
32
  status: string;
33
- htmlFilePath: string;
33
+ htmlFilePath: any;
34
34
  imageCount: number;
35
35
  }>;
36
36
  }
@@ -84,7 +84,7 @@ export class InteractiveWebviewNode extends AsyncNode {
84
84
  const webview = new Webview(false, {
85
85
  width,
86
86
  height,
87
- hint: SizeHint.FIXED,
87
+ hint: 3 /* SizeHint.FIXED */,
88
88
  });
89
89
  webview.title = title;
90
90
  this._webviewInstance = webview; // Always store the instance
@@ -33,7 +33,7 @@ export class MemoryNode extends AsyncNode {
33
33
  execAsync(): Promise<{
34
34
  status: string;
35
35
  id: any;
36
- filePath: string;
36
+ filePath: any;
37
37
  } | {
38
38
  id: string;
39
39
  content: string;
@@ -48,4 +48,4 @@ export class SchedulerNode extends AsyncNode {
48
48
  schedule?: undefined;
49
49
  } | undefined>;
50
50
  }
51
- import { AsyncNode } from '@/qflow.js';
51
+ import { AsyncNode } from '../qflow.js';
@@ -1,7 +1,7 @@
1
- import { AsyncNode, AsyncFlow } from '@/qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '../qflow.js';
2
2
  // You would need to install the 'node-cron' library: npm install node-cron
3
3
  import * as cron from 'node-cron';
4
- import { log } from '@/logger.js';
4
+ import { log } from '../logger.js';
5
5
  export class SchedulerNode extends AsyncNode {
6
6
  static getToolDefinition() {
7
7
  return {
@@ -65,7 +65,7 @@ declare class GoogleCloudTTSProvider {
65
65
  name: string;
66
66
  ssmlGender: string;
67
67
  }): Promise<{
68
- filePath: string;
68
+ filePath: any;
69
69
  type: string;
70
70
  }>;
71
71
  }
@@ -33,7 +33,7 @@ export class WebHookNode extends AsyncNode {
33
33
  required: string[];
34
34
  };
35
35
  };
36
- server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse> | null;
36
+ server: any;
37
37
  flowToTrigger: AsyncFlow | null;
38
38
  webhookPath: any;
39
39
  sharedSecret: any;
@@ -45,5 +45,4 @@ export class WebHookNode extends AsyncNode {
45
45
  postAsync(shared: any, prepRes: any, execRes: any): Promise<any>;
46
46
  }
47
47
  import { AsyncNode } from '../qflow.js';
48
- import http from 'http';
49
48
  import { AsyncFlow } from '../qflow.js';
@@ -46,7 +46,7 @@ export class WebviewNode extends AsyncNode {
46
46
  log(`[WebviewNode] Creating webview window with title: "${title}"`, this.params.logging);
47
47
  const webview = new Webview();
48
48
  webview.title = title;
49
- webview.size = { width, height, hint: SizeHint.NONE };
49
+ webview.size = { width, height, hint: 0 /* SizeHint.NONE */ };
50
50
  webview.setHTML(html);
51
51
  webview.run();
52
52
  log(`[WebviewNode] Webview window closed.`, this.params.logging);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractal-solutions/qflow",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "A lightweight and flexible JavaScript library for creating and managing workflows and agents.",
5
5
  "main": "dist/qflow.js",
6
6
  "types": "dist/qflow.d.ts",