@fractal-solutions/qflow 1.0.63 → 1.0.65

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.
Files changed (113) hide show
  1. package/dist/{src/agent → agent}/agent.d.ts +1 -1
  2. package/dist/{src/agent → agent}/agent.js +3 -3
  3. package/dist/{src/agent → agent}/base_agent.d.ts +1 -1
  4. package/dist/{src/agent → agent}/base_agent.js +3 -3
  5. package/dist/{src/agent → agent}/lpavrl_agent.js +2 -2
  6. package/dist/{src/agent → agent}/ooda_agent.js +2 -2
  7. package/dist/{src/agent → agent}/pema_agent.js +2 -2
  8. package/dist/{src/agent → agent}/raor_agent.js +2 -2
  9. package/dist/{src/agent → agent}/tools.js +40 -40
  10. package/dist/{src/nodes → nodes}/agent_llm.js +1 -1
  11. package/dist/{src/nodes → nodes}/browser_control.d.ts +1 -1
  12. package/dist/{src/nodes → nodes}/browser_control.js +1 -1
  13. package/dist/{src/nodes → nodes}/code_interpreter.d.ts +1 -1
  14. package/dist/{src/nodes → nodes}/code_interpreter.js +2 -2
  15. package/dist/{src/nodes → nodes}/data_extractor.d.ts +1 -1
  16. package/dist/{src/nodes → nodes}/data_extractor.js +2 -2
  17. package/dist/{src/nodes → nodes}/data_validation.d.ts +1 -1
  18. package/dist/{src/nodes → nodes}/data_validation.js +1 -1
  19. package/dist/{src/nodes → nodes}/database.d.ts +1 -1
  20. package/dist/{src/nodes → nodes}/database.js +1 -1
  21. package/dist/{src/nodes → nodes}/display_image.d.ts +1 -1
  22. package/dist/{src/nodes → nodes}/display_image.js +2 -2
  23. package/dist/{src/nodes → nodes}/embedding.d.ts +1 -1
  24. package/dist/{src/nodes → nodes}/embedding.js +2 -2
  25. package/dist/{src/nodes → nodes}/filesystem.d.ts +1 -1
  26. package/dist/{src/nodes → nodes}/filesystem.js +2 -2
  27. package/dist/{src/nodes → nodes}/gis.d.ts +1 -1
  28. package/dist/{src/nodes → nodes}/gis.js +1 -1
  29. package/dist/{src/nodes → nodes}/git.d.ts +1 -1
  30. package/dist/{src/nodes → nodes}/git.js +1 -1
  31. package/dist/{src/nodes → nodes}/github.d.ts +1 -1
  32. package/dist/{src/nodes → nodes}/github.js +2 -2
  33. package/dist/{src/nodes → nodes}/hackernews.d.ts +1 -1
  34. package/dist/{src/nodes → nodes}/hackernews.js +2 -2
  35. package/dist/{src/nodes → nodes}/hardware_interaction.d.ts +1 -1
  36. package/dist/{src/nodes → nodes}/hardware_interaction.js +1 -1
  37. package/dist/{src/nodes → nodes}/http.d.ts +1 -1
  38. package/dist/{src/nodes → nodes}/http.js +2 -2
  39. package/dist/{src/nodes → nodes}/http_server.d.ts +1 -1
  40. package/dist/{src/nodes → nodes}/http_server.js +2 -2
  41. package/dist/{src/nodes → nodes}/image_gallery.d.ts +1 -1
  42. package/dist/{src/nodes → nodes}/image_gallery.js +2 -2
  43. package/dist/{src/nodes → nodes}/index.d.ts +6 -6
  44. package/dist/{src/nodes → nodes}/index.js +6 -6
  45. package/dist/{src/nodes → nodes}/interactive_input.d.ts +1 -1
  46. package/dist/{src/nodes → nodes}/interactive_input.js +1 -1
  47. package/dist/{src/nodes → nodes}/interactive_webview.d.ts +1 -1
  48. package/dist/{src/nodes → nodes}/interactive_webview.js +2 -2
  49. package/dist/{src/nodes → nodes}/iterator.d.ts +1 -1
  50. package/dist/{src/nodes → nodes}/iterator.js +1 -1
  51. package/dist/{src/nodes → nodes}/llm.d.ts +1 -1
  52. package/dist/{src/nodes → nodes}/llm.js +2 -2
  53. package/dist/{src/nodes → nodes}/memory.d.ts +1 -1
  54. package/dist/{src/nodes → nodes}/memory.js +1 -1
  55. package/dist/{src/nodes → nodes}/multimedia_processing.d.ts +1 -1
  56. package/dist/{src/nodes → nodes}/multimedia_processing.js +2 -2
  57. package/dist/{src/nodes → nodes}/openrouter_llm.d.ts +1 -1
  58. package/dist/{src/nodes → nodes}/openrouter_llm.js +2 -2
  59. package/dist/{src/nodes → nodes}/pdf_processor.d.ts +1 -1
  60. package/dist/{src/nodes → nodes}/pdf_processor.js +1 -1
  61. package/dist/{src/nodes → nodes}/remote_execution.d.ts +1 -1
  62. package/dist/{src/nodes → nodes}/remote_execution.js +1 -1
  63. package/dist/{src/nodes → nodes}/s3.d.ts +1 -1
  64. package/dist/{src/nodes → nodes}/s3.js +1 -1
  65. package/dist/{src/nodes → nodes}/scheduler.d.ts +1 -1
  66. package/dist/{src/nodes → nodes}/scheduler.js +2 -2
  67. package/dist/{src/nodes → nodes}/search.d.ts +1 -1
  68. package/dist/{src/nodes → nodes}/search.js +2 -2
  69. package/dist/{src/nodes → nodes}/semantic_memory.d.ts +1 -1
  70. package/dist/{src/nodes → nodes}/semantic_memory.js +2 -2
  71. package/dist/{src/nodes → nodes}/shell.d.ts +1 -1
  72. package/dist/{src/nodes → nodes}/shell.js +1 -1
  73. package/dist/{src/nodes → nodes}/speech_synthesis.d.ts +1 -1
  74. package/dist/{src/nodes → nodes}/speech_synthesis.js +1 -1
  75. package/dist/{src/nodes → nodes}/spreadsheet.d.ts +1 -1
  76. package/dist/{src/nodes → nodes}/spreadsheet.js +1 -1
  77. package/dist/{src/nodes → nodes}/stripe.d.ts +1 -1
  78. package/dist/{src/nodes → nodes}/stripe.js +2 -2
  79. package/dist/{src/nodes → nodes}/subflow.d.ts +1 -1
  80. package/dist/{src/nodes → nodes}/subflow.js +1 -1
  81. package/dist/{src/nodes → nodes}/summarize.d.ts +1 -1
  82. package/dist/{src/nodes → nodes}/summarize.js +2 -2
  83. package/dist/{src/nodes → nodes}/system_notification.d.ts +1 -1
  84. package/dist/{src/nodes → nodes}/system_notification.js +2 -2
  85. package/dist/{src/nodes → nodes}/transform.d.ts +1 -1
  86. package/dist/{src/nodes → nodes}/transform.js +2 -2
  87. package/dist/{src/nodes → nodes}/user.d.ts +1 -1
  88. package/dist/{src/nodes → nodes}/user.js +1 -1
  89. package/dist/{src/nodes → nodes}/webhook.d.ts +2 -2
  90. package/dist/{src/nodes → nodes}/webhook.js +2 -2
  91. package/dist/{src/nodes → nodes}/webscraper.d.ts +1 -1
  92. package/dist/{src/nodes → nodes}/webscraper.js +2 -2
  93. package/dist/{src/nodes → nodes}/websockets.d.ts +1 -1
  94. package/dist/{src/nodes → nodes}/websockets.js +1 -1
  95. package/dist/{src/nodes → nodes}/webview.d.ts +1 -1
  96. package/dist/{src/nodes → nodes}/webview.js +2 -2
  97. package/package.json +3 -2
  98. package/dist/qflow.config.d.ts +0 -5
  99. package/dist/qflow.config.js +0 -16
  100. /package/dist/{src/agent → agent}/logger.d.ts +0 -0
  101. /package/dist/{src/agent → agent}/logger.js +0 -0
  102. /package/dist/{src/agent → agent}/lpavrl_agent.d.ts +0 -0
  103. /package/dist/{src/agent → agent}/ooda_agent.d.ts +0 -0
  104. /package/dist/{src/agent → agent}/pema_agent.d.ts +0 -0
  105. /package/dist/{src/agent → agent}/raor_agent.d.ts +0 -0
  106. /package/dist/{src/agent → agent}/tools.d.ts +0 -0
  107. /package/dist/{src/logger.d.ts → logger.d.ts} +0 -0
  108. /package/dist/{src/logger.js → logger.js} +0 -0
  109. /package/dist/{src/nodes → nodes}/agent_llm.d.ts +0 -0
  110. /package/dist/{src/qflow.d.ts → qflow.d.ts} +0 -0
  111. /package/dist/{src/qflow.js → qflow.js} +0 -0
  112. /package/dist/{src/types.d.ts → types.d.ts} +0 -0
  113. /package/dist/{src/types.js → types.js} +0 -0
@@ -20,4 +20,4 @@ export class AgentNode extends AsyncNode {
20
20
  };
21
21
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
22
22
  }
23
- import { AsyncNode } from '../qflow.js';
23
+ import { AsyncNode } from '@/qflow.js';
@@ -1,7 +1,7 @@
1
- import { AsyncNode, AsyncFlow, Flow } from '../qflow.js';
2
- import { UserInputNode } from '../nodes';
1
+ import { AsyncNode, AsyncFlow, Flow } from '@/qflow.js';
2
+ import { UserInputNode } from '@/nodes';
3
3
  import { getToolDefinitions } from './tools.js';
4
- import { SummarizeNode } from '../nodes/summarize.js';
4
+ import { SummarizeNode } from '@/nodes/summarize.js';
5
5
  import { logger } from './logger.js';
6
6
  export class AgentNode extends AsyncNode {
7
7
  constructor(llmNode, availableTools, summarizeLLM, flowRegistry = {}, requireFinishConfirmation = true, maxConversationHistoryTokens = 100000) {
@@ -18,4 +18,4 @@ export class BaseAgent extends AsyncNode {
18
18
  };
19
19
  validateToolParameters(toolCall: any): string | null;
20
20
  }
21
- import { AsyncNode } from '../qflow.js';
21
+ import { AsyncNode } from '@/qflow.js';
@@ -1,7 +1,7 @@
1
- import { AsyncNode, AsyncFlow, Flow } from '../qflow.js';
2
- import { UserInputNode } from '../nodes';
1
+ import { AsyncNode, AsyncFlow, Flow } from '@/qflow.js';
2
+ import { UserInputNode } from '@/nodes';
3
3
  import { getToolDefinitions } from './tools.js';
4
- import { SummarizeNode } from '../nodes/summarize.js';
4
+ import { SummarizeNode } from '@/nodes/summarize.js';
5
5
  import { logger } from './logger.js';
6
6
  export class BaseAgent extends AsyncNode {
7
7
  constructor(llmNode, availableTools, summarizeLLM, flowRegistry = {}, requireFinishConfirmation = true, maxConversationHistoryTokens = 100000) {
@@ -1,7 +1,7 @@
1
1
  import { BaseAgent } from './base_agent.js';
2
2
  import { logger } from './logger.js';
3
- import { AsyncNode, AsyncFlow, Flow } from '../qflow.js';
4
- import { UserInputNode } from '../nodes/index.js';
3
+ import { AsyncNode, AsyncFlow, Flow } from '@/qflow.js';
4
+ import { UserInputNode } from '@/nodes/index.js';
5
5
  export class LPAVRLAgent extends BaseAgent {
6
6
  async execAsync() {
7
7
  const { goal } = this.params;
@@ -1,7 +1,7 @@
1
1
  import { BaseAgent } from './base_agent.js';
2
2
  import { logger } from './logger.js';
3
- import { AsyncNode, AsyncFlow, Flow } from '../qflow.js';
4
- import { UserInputNode } from '../nodes/index.js';
3
+ import { AsyncNode, AsyncFlow, Flow } from '@/qflow.js';
4
+ import { UserInputNode } from '@/nodes/index.js';
5
5
  export class OODAAgent extends BaseAgent {
6
6
  async execAsync() {
7
7
  const { goal } = this.params;
@@ -1,7 +1,7 @@
1
1
  import { BaseAgent } from './base_agent.js';
2
2
  import { logger } from './logger.js';
3
- import { AsyncNode, AsyncFlow, Flow } from '../qflow.js';
4
- import { UserInputNode } from '../nodes/index.js';
3
+ import { AsyncNode, AsyncFlow, Flow } from '@/qflow.js';
4
+ import { UserInputNode } from '@/nodes/index.js';
5
5
  export class PEMAAgent extends BaseAgent {
6
6
  async execAsync() {
7
7
  const { goal } = this.params;
@@ -1,7 +1,7 @@
1
1
  import { BaseAgent } from './base_agent.js';
2
2
  import { logger } from './logger.js';
3
- import { AsyncNode, AsyncFlow, Flow } from '../qflow.js';
4
- import { UserInputNode } from '../nodes/index.js';
3
+ import { AsyncNode, AsyncFlow, Flow } from '@/qflow.js';
4
+ import { UserInputNode } from '@/nodes/index.js';
5
5
  export class RAORAgent extends BaseAgent {
6
6
  async execAsync() {
7
7
  const { goal } = this.params;
@@ -1,43 +1,43 @@
1
- import { CodeInterpreterNode } from '../../src/nodes/code_interpreter.js';
2
- import { DataExtractorNode } from '../../src/nodes/data_extractor.js';
3
- import { DatabaseNode } from '../../src/nodes/database.js';
4
- import { EmbeddingNode } from '../../src/nodes/embedding.js';
5
- import { GISNode } from '../../src/nodes/gis.js';
6
- import { MemoryNode } from '../../src/nodes/memory.js';
7
- import { SemanticMemoryNode } from '../../src/nodes/semantic_memory.js';
8
- import { TransformNode } from '../../src/nodes/transform.js';
9
- import { PDFProcessorNode } from '../../src/nodes/pdf_processor.js';
10
- import { SpreadsheetNode } from '../../src/nodes/spreadsheet.js';
11
- import { DataValidationNode } from '../../src/nodes/data_validation.js';
12
- import { ShellCommandNode } from '../../src/nodes/shell.js';
13
- import { ReadFileNode, WriteFileNode, AppendFileNode, ListDirectoryNode } from '../../src/nodes/filesystem.js';
14
- import { DisplayImageNode } from '../../src/nodes/display_image.js';
15
- import { HardwareInteractionNode } from '../../src/nodes/hardware_interaction.js';
16
- import { ImageGalleryNode } from '../../src/nodes/image_gallery.js';
17
- import { SpeechSynthesisNode } from '../../src/nodes/speech_synthesis.js';
18
- import { MultimediaProcessingNode } from '../../src/nodes/multimedia_processing.js';
19
- import { RemoteExecutionNode } from '../../src/nodes/remote_execution.js';
20
- import { HttpRequestNode } from '../../src/nodes/http.js';
21
- import { ScrapeURLNode } from '../../src/nodes/webscraper.js';
22
- import { DuckDuckGoSearchNode, GoogleSearchNode } from '../../src/nodes/search.js';
23
- import { BrowserControlNode } from '../../src/nodes/browser_control.js';
24
- import { WebSocketsNode } from '../../src/nodes/websockets.js';
25
- import { WebHookNode } from '../../src/nodes/webhook.js';
26
- import { UserInputNode } from '../../src/nodes/user.js';
27
- import { InteractiveInputNode } from '../../src/nodes/interactive_input.js';
28
- import { SchedulerNode } from '../../src/nodes/scheduler.js';
29
- import { SubFlowNode } from '../../src/nodes/subflow.js';
30
- import { IteratorNode } from '../../src/nodes/iterator.js';
31
- import { GitNode } from '../../src/nodes/git.js';
32
- import { HuggingFaceLLMNode, OllamaLLMNode, DeepSeekLLMNode, OpenAILLMNode, GeminiLLMNode } from '../../src/nodes/llm.js';
33
- import { OpenRouterLLMNode } from '../../src/nodes/openrouter_llm.js';
34
- import { CreateIssueNode, GetIssueNode } from '../../src/nodes/github.js';
35
- import { GetTopStoriesNode, GetItemNode } from '../../src/nodes/hackernews.js';
36
- import { CreateChargeNode, GetBalanceNode } from '../../src/nodes/stripe.js';
37
- import { SummarizeNode } from '../../src/nodes/summarize.js';
38
- import { HttpServerNode } from '../../src/nodes/http_server.js';
39
- import { InteractiveWebviewNode } from '../../src/nodes/interactive_webview.js';
40
- import { WebviewNode } from '../../src/nodes/webview.js';
1
+ import { CodeInterpreterNode } from '@/nodes/code_interpreter.js';
2
+ import { DataExtractorNode } from '@/nodes/data_extractor.js';
3
+ import { DatabaseNode } from '@/nodes/database.js';
4
+ import { EmbeddingNode } from '@/nodes/embedding.js';
5
+ import { GISNode } from '@/nodes/gis.js';
6
+ import { MemoryNode } from '@/nodes/memory.js';
7
+ import { SemanticMemoryNode } from '@/nodes/semantic_memory.js';
8
+ import { TransformNode } from '@/nodes/transform.js';
9
+ import { PDFProcessorNode } from '@/nodes/pdf_processor.js';
10
+ import { SpreadsheetNode } from '@/nodes/spreadsheet.js';
11
+ import { DataValidationNode } from '@/nodes/data_validation.js';
12
+ import { ShellCommandNode } from '@/nodes/shell.js';
13
+ import { ReadFileNode, WriteFileNode, AppendFileNode, ListDirectoryNode } from '@/nodes/filesystem.js';
14
+ import { DisplayImageNode } from '@/nodes/display_image.js';
15
+ import { HardwareInteractionNode } from '@/nodes/hardware_interaction.js';
16
+ import { ImageGalleryNode } from '@/nodes/image_gallery.js';
17
+ import { SpeechSynthesisNode } from '@/nodes/speech_synthesis.js';
18
+ import { MultimediaProcessingNode } from '@/nodes/multimedia_processing.js';
19
+ import { RemoteExecutionNode } from '@/nodes/remote_execution.js';
20
+ import { HttpRequestNode } from '@/nodes/http.js';
21
+ import { ScrapeURLNode } from '@/nodes/webscraper.js';
22
+ import { DuckDuckGoSearchNode, GoogleSearchNode } from '@/nodes/search.js';
23
+ import { BrowserControlNode } from '@/nodes/browser_control.js';
24
+ import { WebSocketsNode } from '@/nodes/websockets.js';
25
+ import { WebHookNode } from '@/nodes/webhook.js';
26
+ import { UserInputNode } from '@/nodes/user.js';
27
+ import { InteractiveInputNode } from '@/nodes/interactive_input.js';
28
+ import { SchedulerNode } from '@/nodes/scheduler.js';
29
+ import { SubFlowNode } from '@/nodes/subflow.js';
30
+ import { IteratorNode } from '@/nodes/iterator.js';
31
+ import { GitNode } from '@/nodes/git.js';
32
+ import { HuggingFaceLLMNode, OllamaLLMNode, DeepSeekLLMNode, OpenAILLMNode, GeminiLLMNode } from '@/nodes/llm.js';
33
+ import { OpenRouterLLMNode } from '@/nodes/openrouter_llm.js';
34
+ import { CreateIssueNode, GetIssueNode } from '@/nodes/github.js';
35
+ import { GetTopStoriesNode, GetItemNode } from '@/nodes/hackernews.js';
36
+ import { CreateChargeNode, GetBalanceNode } from '@/nodes/stripe.js';
37
+ import { SummarizeNode } from '@/nodes/summarize.js';
38
+ import { HttpServerNode } from '@/nodes/http_server.js';
39
+ import { InteractiveWebviewNode } from '@/nodes/interactive_webview.js';
40
+ import { WebviewNode } from '@/nodes/webview.js';
41
41
  import qflowConfig from '../../qflow.config.js'; // Import the config file
42
42
  import path from 'path';
43
43
  import { fileURLToPath } from 'url';
@@ -1,5 +1,5 @@
1
1
  import { DeepSeekLLMNode, OpenAILLMNode, GeminiLLMNode, OllamaLLMNode, HuggingFaceLLMNode } from './llm.js';
2
- import { log } from '../logger.js';
2
+ import { log } from '@/logger.js';
3
3
  /**
4
4
  * A specialized DeepSeekLLMNode for use within the AgentNode.
5
5
  * It expects the full prompt (conversation history) to be provided directly via setParams.
@@ -32,4 +32,4 @@ export class BrowserControlNode extends AsyncNode {
32
32
  };
33
33
  execAsync(prepRes: any, shared: any): Promise<{}>;
34
34
  }
35
- import { AsyncNode } from '../qflow.js';
35
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { chromium, firefox, webkit } from 'playwright';
3
3
  export class BrowserControlNode extends AsyncNode {
4
4
  static getToolDefinition() {
@@ -35,4 +35,4 @@ export class CodeInterpreterNode extends AsyncNode {
35
35
  }>;
36
36
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
37
37
  }
38
- import { AsyncNode } from '../qflow.js';
38
+ import { AsyncNode } from '@/qflow.js';
@@ -1,10 +1,10 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import { UserInputNode } from './user.js';
3
3
  import { promises as fs } from 'fs';
4
4
  import path from 'path';
5
5
  import os from 'os';
6
6
  import chalk from 'chalk';
7
- import { log } from '../logger.js';
7
+ import { log } from '@/logger.js';
8
8
  let nodeChildProcess = null;
9
9
  if (!process.versions.bun) {
10
10
  nodeChildProcess = require('child_process');
@@ -37,4 +37,4 @@ export class DataExtractorNode extends AsyncNode {
37
37
  execAsync(): Promise<any>;
38
38
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
39
39
  }
40
- import { AsyncNode } from '../qflow.js';
40
+ import { AsyncNode } from '@/qflow.js';
@@ -1,6 +1,6 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import * as cheerio from 'cheerio';
3
- import { log } from '../logger.js';
3
+ import { log } from '@/logger.js';
4
4
  export class DataExtractorNode extends AsyncNode {
5
5
  static getToolDefinition() {
6
6
  return {
@@ -32,5 +32,5 @@ export class DataValidationNode extends AsyncNode {
32
32
  errors: import("ajv").ErrorObject<string, Record<string, any>, unknown>[] | null | undefined;
33
33
  }>;
34
34
  }
35
- import { AsyncNode } from '../qflow.js';
35
+ import { AsyncNode } from '@/qflow.js';
36
36
  import Ajv from 'ajv';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { promises as fs } from 'fs';
3
3
  import Ajv from 'ajv'; // npm install ajv
4
4
  import addFormats from 'ajv-formats'; // npm install ajv-formats
@@ -47,4 +47,4 @@ export class DatabaseNode extends AsyncNode {
47
47
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
48
48
  #private;
49
49
  }
50
- import { AsyncNode } from '../qflow.js';
50
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { SQL } from 'bun';
3
3
  import { Database as SQLiteDatabase } from 'bun:sqlite';
4
4
  export class DatabaseNode extends AsyncNode {
@@ -15,4 +15,4 @@ export class DisplayImageNode extends AsyncNode {
15
15
  };
16
16
  execAsync(): Promise<any>;
17
17
  }
18
- import { AsyncNode } from '../qflow.js';
18
+ import { AsyncNode } from '@/qflow.js';
@@ -1,7 +1,7 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { exec } from 'child_process';
3
3
  import os from 'os';
4
- import { log } from '../logger.js';
4
+ import { log } from '@/logger.js';
5
5
  export class DisplayImageNode extends AsyncNode {
6
6
  static getToolDefinition() {
7
7
  return {
@@ -26,4 +26,4 @@ export class EmbeddingNode extends AsyncNode {
26
26
  }>;
27
27
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
28
28
  }
29
- import { AsyncNode } from '../qflow.js';
29
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  export class EmbeddingNode extends AsyncNode {
4
4
  static getToolDefinition() {
5
5
  return {
@@ -102,4 +102,4 @@ export class ListDirectoryNode extends AsyncNode {
102
102
  execAsync(): Promise<string[]>;
103
103
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
104
104
  }
105
- import { AsyncNode } from '../qflow.js';
105
+ import { AsyncNode } from '@/qflow.js';
@@ -1,7 +1,7 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { promises as fs } from 'fs';
3
3
  import path from 'path';
4
- import { log } from '../logger.js';
4
+ import { log } from '@/logger.js';
5
5
  /**
6
6
  * Reads a file from the file system.
7
7
  * @param {object} params - The parameters for the node.
@@ -30,7 +30,7 @@ export class GISNode extends AsyncNode {
30
30
  };
31
31
  execAsync(): Promise<any>;
32
32
  }
33
- import { AsyncNode } from '../qflow.js';
33
+ import { AsyncNode } from '@/qflow.js';
34
34
  declare class GoogleMapsProvider {
35
35
  constructor(apiKey: any);
36
36
  apiKey: any;
@@ -1,4 +1,4 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import { HttpRequestNode } from './index.js'; // For making HTTP requests to APIs
3
3
  // Internal helper for Google Maps API calls
4
4
  class GoogleMapsProvider {
@@ -43,4 +43,4 @@ export class GitNode extends AsyncNode {
43
43
  };
44
44
  execAsync(): Promise<{}>;
45
45
  }
46
- import { AsyncNode } from '../qflow.js';
46
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import simpleGit from 'simple-git';
3
3
  export class GitNode extends AsyncNode {
4
4
  static getToolDefinition() {
@@ -80,4 +80,4 @@ export class GetIssueNode extends AsyncNode {
80
80
  };
81
81
  execAsync(): Promise<unknown>;
82
82
  }
83
- import { AsyncNode } from '../qflow.js';
83
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  const API_BASE = 'https://api.github.com';
4
4
  /**
5
5
  * Creates a new issue in a GitHub repository.
@@ -44,4 +44,4 @@ export class GetItemNode extends AsyncNode {
44
44
  };
45
45
  execAsync(): Promise<unknown>;
46
46
  }
47
- import { AsyncNode } from '../qflow.js';
47
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  const API_BASE = 'https://hacker-news.firebaseio.com/v0';
4
4
  /**
5
5
  * Fetches the top story IDs from the Hacker News API.
@@ -34,6 +34,6 @@ export class HardwareInteractionNode extends AsyncNode {
34
34
  parser: ReadlineParser | null;
35
35
  execAsync(): Promise<any>;
36
36
  }
37
- import { AsyncNode } from '../qflow.js';
37
+ import { AsyncNode } from '@/qflow.js';
38
38
  import { SerialPort } from 'serialport';
39
39
  import { ReadlineParser } from '@serialport/parser-readline';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  // You would need to install the 'serialport' library: npm install serialport
3
3
  import { SerialPort } from 'serialport';
4
4
  import { ReadlineParser } from '@serialport/parser-readline'; // For reading line-by-line
@@ -74,4 +74,4 @@ export class HttpRequestNode extends AsyncNode {
74
74
  parseResponseBody(response: any): Promise<any>;
75
75
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
76
76
  }
77
- import { AsyncNode } from '../qflow.js';
77
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  /**
4
4
  * A flexible node for making generic HTTP requests to any REST API.
5
5
  * @param {object} params - The parameters for the node.
@@ -50,5 +50,5 @@ export class HttpServerNode extends AsyncNode {
50
50
  }>;
51
51
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
52
52
  }
53
- import { AsyncNode } from '../qflow.js';
53
+ import { AsyncNode } from '@/qflow.js';
54
54
  import http from 'http';
@@ -1,10 +1,10 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import http from 'http';
3
3
  import { URL } from 'url';
4
4
  import path from 'path';
5
5
  import { promises as fsPromises } from 'fs';
6
6
  import fs from 'fs';
7
- import { log } from '../logger.js';
7
+ import { log } from '@/logger.js';
8
8
  // Basic mime-type lookup to avoid adding new dependencies
9
9
  function getMimeType(filePath) {
10
10
  const ext = path.extname(filePath).toLowerCase();
@@ -34,4 +34,4 @@ export class ImageGalleryNode extends AsyncNode {
34
34
  imageCount: number;
35
35
  }>;
36
36
  }
37
- import { AsyncNode } from '../qflow.js';
37
+ import { AsyncNode } from '@/qflow.js';
@@ -1,9 +1,9 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import { ShellCommandNode } from './index.js'; // Assuming ShellCommandNode is available
3
3
  import path from 'path';
4
4
  import os from 'os';
5
5
  import { promises as fs } from 'fs';
6
- import { log } from '../logger.js';
6
+ import { log } from '@/logger.js';
7
7
  export class ImageGalleryNode extends AsyncNode {
8
8
  static getToolDefinition() {
9
9
  return {
@@ -33,16 +33,16 @@ export * from "./transform.js";
33
33
  export * from "./embedding.js";
34
34
  export * from "./semantic_memory.js";
35
35
  export * from "./semantic_memory.js";
36
- export * from "../agent/agent.js";
36
+ export * from "@/agent/agent.js";
37
37
  export * from "./subflow.js";
38
38
  export * from "./iterator.js";
39
39
  export * from "./openrouter_llm.js";
40
40
  export * from "./database.js";
41
41
  export * from "./s3.js";
42
- export * from "../agent/base_agent.js";
43
- export * from "../agent/raor_agent.js";
44
- export * from "../agent/ooda_agent.js";
45
- export * from "../agent/lpavrl_agent.js";
46
- export * from "../agent/pema_agent.js";
42
+ export * from "@/agent/base_agent.js";
43
+ export * from "@/agent/raor_agent.js";
44
+ export * from "@/agent/ooda_agent.js";
45
+ export * from "@/agent/lpavrl_agent.js";
46
+ export * from "@/agent/pema_agent.js";
47
47
  export * from "./webview.js";
48
48
  export * from "./interactive_webview.js";
@@ -33,16 +33,16 @@ export * from './transform.js';
33
33
  export * from './embedding.js';
34
34
  export * from './semantic_memory.js';
35
35
  export * from './semantic_memory.js';
36
- export * from '../agent/agent.js';
36
+ export * from '@/agent/agent.js';
37
37
  export * from './subflow.js';
38
38
  export * from './iterator.js';
39
39
  export * from './openrouter_llm.js';
40
40
  export * from './database.js';
41
41
  export * from './s3.js';
42
- export * from '../agent/base_agent.js';
43
- export * from '../agent/raor_agent.js';
44
- export * from '../agent/ooda_agent.js';
45
- export * from '../agent/lpavrl_agent.js';
46
- export * from '../agent/pema_agent.js';
42
+ export * from '@/agent/base_agent.js';
43
+ export * from '@/agent/raor_agent.js';
44
+ export * from '@/agent/ooda_agent.js';
45
+ export * from '@/agent/lpavrl_agent.js';
46
+ export * from '@/agent/pema_agent.js';
47
47
  export * from './webview.js';
48
48
  export * from './interactive_webview.js';
@@ -23,4 +23,4 @@ export class InteractiveInputNode extends AsyncNode {
23
23
  };
24
24
  execAsync(): Promise<any>;
25
25
  }
26
- import { AsyncNode } from '../qflow.js';
26
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { exec } from 'child_process';
3
3
  import os from 'os';
4
4
  import { log } from '../logger.js';
@@ -74,5 +74,5 @@ export class InteractiveWebviewNode extends AsyncNode {
74
74
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
75
75
  generateHTML(mode: any, params: any): string;
76
76
  }
77
- import { AsyncNode } from '../qflow.js';
77
+ import { AsyncNode } from '@/qflow.js';
78
78
  import { Webview } from 'webview-bun';
@@ -1,6 +1,6 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { Webview, SizeHint } from 'webview-bun';
3
- import { log } from '../logger.js';
3
+ import { log } from '@/logger.js';
4
4
  /**
5
5
  * A node that displays an interactive webview window.
6
6
  * It can be used for dialogs, user input, and notifications.
@@ -20,4 +20,4 @@ export class IteratorNode extends AsyncNode {
20
20
  execAsync(): Promise<any[]>;
21
21
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
22
22
  }
23
- import { AsyncNode } from '../qflow.js';
23
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  export class IteratorNode extends AsyncNode {
3
3
  static getToolDefinition() {
4
4
  return {
@@ -157,4 +157,4 @@ export class HuggingFaceLLMNode extends AsyncNode {
157
157
  };
158
158
  execAsync(): Promise<any>;
159
159
  }
160
- import { AsyncNode } from '../qflow.js';
160
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  // --- Reusable LLM Node for DeepSeek ---
4
4
  export class DeepSeekLLMNode extends AsyncNode {
5
5
  static getToolDefinition() {
@@ -40,4 +40,4 @@ export class MemoryNode extends AsyncNode {
40
40
  }[]>;
41
41
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
42
42
  }
43
- import { AsyncNode } from '../qflow.js';
43
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { promises as fs } from 'fs';
3
3
  import path from 'path';
4
4
  export class MemoryNode extends AsyncNode {
@@ -54,4 +54,4 @@ export class MultimediaProcessingNode extends AsyncNode {
54
54
  stderr: any;
55
55
  }>;
56
56
  }
57
- import { AsyncNode } from '../qflow.js';
57
+ import { AsyncNode } from '@/qflow.js';
@@ -1,9 +1,9 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import { ShellCommandNode } from './index.js'; // Assuming ShellCommandNode is available
3
3
  import path from 'path';
4
4
  import os from 'os';
5
5
  import { promises as fs } from 'fs';
6
- import { log } from '../logger.js';
6
+ import { log } from '@/logger.js';
7
7
  export class MultimediaProcessingNode extends AsyncNode {
8
8
  static getToolDefinition() {
9
9
  return {
@@ -35,4 +35,4 @@ export class AgentOpenRouterLLMNode extends OpenRouterLLMNode {
35
35
  postAsync(shared: any, prepRes: any, execRes: any): Promise<any>;
36
36
  preparePrompt(shared: any): void;
37
37
  }
38
- import { AsyncNode } from '../qflow.js';
38
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  export class OpenRouterLLMNode extends AsyncNode {
4
4
  static getToolDefinition() {
5
5
  return {
@@ -40,4 +40,4 @@ export class PDFProcessorNode extends AsyncNode {
40
40
  };
41
41
  execAsync(): Promise<{}>;
42
42
  }
43
- import { AsyncNode } from '../qflow.js';
43
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import { ShellCommandNode, ReadFileNode } from './index.js'; // Assuming these are in the same nodes directory
3
3
  import path from 'path';
4
4
  import os from 'os';
@@ -48,4 +48,4 @@ export class RemoteExecutionNode extends AsyncNode {
48
48
  };
49
49
  execAsync(): Promise<{}>;
50
50
  }
51
- import { AsyncNode } from '../qflow.js';
51
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  // You would need to install the 'ssh2' library: npm install ssh2
3
3
  import { Client } from 'ssh2';
4
4
  import { log } from '../logger.js';
@@ -70,4 +70,4 @@ export class S3CloudStorageNode extends AsyncNode {
70
70
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
71
71
  #private;
72
72
  }
73
- import { AsyncNode } from '../qflow.js';
73
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { S3Client } from 'bun';
3
3
  export class S3CloudStorageNode extends AsyncNode {
4
4
  static getToolDefinition() {
@@ -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 {
@@ -58,4 +58,4 @@ export class GoogleSearchNode extends AsyncNode {
58
58
  execAsync(): Promise<any>;
59
59
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
60
60
  }
61
- import { AsyncNode } from '../qflow.js';
61
+ import { AsyncNode } from '@/qflow.js';
@@ -1,6 +1,6 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import * as cheerio from 'cheerio';
3
- import { log } from '../logger.js';
3
+ import { log } from '@/logger.js';
4
4
  /**
5
5
  * Performs a web search using DuckDuckGo's HTML-only interface.
6
6
  * This node does not require an API key and is designed for reliability without heavy dependencies.
@@ -61,4 +61,4 @@ export class SemanticMemoryNode extends AsyncNode {
61
61
  }>;
62
62
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
63
63
  }
64
- import { AsyncNode } from '../qflow.js';
64
+ import { AsyncNode } from '@/qflow.js';
@@ -1,8 +1,8 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import { promises as fs } from 'fs';
3
3
  import path from 'path';
4
4
  import { EmbeddingNode } from './embedding.js';
5
- import { log } from '../logger.js';
5
+ import { log } from '@/logger.js';
6
6
  // Utility function for cosine similarity
7
7
  function cosineSimilarity(vecA, vecB) {
8
8
  let dotProduct = 0;
@@ -22,4 +22,4 @@ export class ShellCommandNode extends AsyncNode {
22
22
  execAsync(): Promise<any>;
23
23
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
24
24
  }
25
- import { AsyncNode } from '../qflow.js';
25
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { exec } from 'child_process';
3
3
  /**
4
4
  * Executes a shell command as if in a terminal.
@@ -40,7 +40,7 @@ export class SpeechSynthesisNode extends AsyncNode {
40
40
  filePath: any;
41
41
  }>;
42
42
  }
43
- import { AsyncNode } from '../qflow.js';
43
+ import { AsyncNode } from '@/qflow.js';
44
44
  declare class MacOSSayProvider {
45
45
  synthesize(text: any, voice: any): Promise<{
46
46
  command: string;
@@ -1,4 +1,4 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import { ShellCommandNode, HttpRequestNode } from './index.js'; // Assuming these are available
3
3
  import path from 'path';
4
4
  import os from 'os';
@@ -58,4 +58,4 @@ export class SpreadsheetNode extends AsyncNode {
58
58
  sheets?: undefined;
59
59
  }>;
60
60
  }
61
- import { AsyncNode } from '../qflow.js';
61
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { promises as fs } from 'fs';
3
3
  import path from 'path';
4
4
  import * as XLSX from 'xlsx'; // npm install xlsx
@@ -64,4 +64,4 @@ export class GetBalanceNode extends AsyncNode {
64
64
  };
65
65
  execAsync(): Promise<unknown>;
66
66
  }
67
- import { AsyncNode } from '../qflow.js';
67
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  const API_BASE = 'https://api.stripe.com/v1';
4
4
  /**
5
5
  * Creates a new charge in Stripe.
@@ -20,4 +20,4 @@ export class SubFlowNode extends AsyncNode {
20
20
  execAsync(): Promise<any>;
21
21
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
22
22
  }
23
- import { AsyncNode } from '../qflow.js';
23
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  export class SubFlowNode extends AsyncNode {
3
3
  static getToolDefinition() {
4
4
  return {
@@ -23,4 +23,4 @@ export class SummarizeNode extends AsyncNode {
23
23
  execAsync(): Promise<any>;
24
24
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
25
25
  }
26
- import { AsyncNode } from '../qflow.js';
26
+ import { AsyncNode } from '@/qflow.js';
@@ -1,6 +1,6 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { DeepSeekLLMNode } from './llm.js'; // Assuming DeepSeekLLMNode for summarization
3
- import { log } from '../logger.js';
3
+ import { log } from '@/logger.js';
4
4
  /**
5
5
  * Summarizes a given text using an LLM.
6
6
  * @param {object} params - The parameters for the node.
@@ -23,4 +23,4 @@ export class SystemNotificationNode extends AsyncNode {
23
23
  };
24
24
  execAsync(): Promise<any>;
25
25
  }
26
- import { AsyncNode } from '../qflow.js';
26
+ import { AsyncNode } from '@/qflow.js';
@@ -1,7 +1,7 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { exec } from 'child_process';
3
3
  import os from 'os';
4
- import { log } from '../logger.js';
4
+ import { log } from '@/logger.js';
5
5
  export class SystemNotificationNode extends AsyncNode {
6
6
  static getToolDefinition() {
7
7
  return {
@@ -20,4 +20,4 @@ export class TransformNode extends AsyncNode {
20
20
  execAsync(): Promise<any>;
21
21
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
22
22
  }
23
- import { AsyncNode } from '../qflow.js';
23
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  export class TransformNode extends AsyncNode {
4
4
  static getToolDefinition() {
5
5
  return {
@@ -22,4 +22,4 @@ export class UserInputNode extends AsyncNode {
22
22
  execAsync(): Promise<any>;
23
23
  postAsync(shared: any, prepRes: any, execRes: any): Promise<string>;
24
24
  }
25
- import { AsyncNode } from '../qflow.js';
25
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import readline from 'readline';
3
3
  /**
4
4
  * Prompts the user for input and waits for their response.
@@ -44,6 +44,6 @@ export class WebHookNode extends AsyncNode {
44
44
  }>;
45
45
  postAsync(shared: any, prepRes: any, execRes: any): Promise<any>;
46
46
  }
47
- import { AsyncNode } from '../qflow.js';
47
+ import { AsyncNode } from '@/qflow.js';
48
48
  import http from 'http';
49
- import { AsyncFlow } from '../qflow.js';
49
+ import { AsyncFlow } from '@/qflow.js';
@@ -1,8 +1,8 @@
1
- import { AsyncNode, AsyncFlow } from '../qflow.js';
1
+ import { AsyncNode, AsyncFlow } from '@/qflow.js';
2
2
  import http from 'http';
3
3
  import { URL } from 'url'; // Node.js built-in
4
4
  import crypto from 'crypto'; // Node.js built-in
5
- import { log } from '../logger.js';
5
+ import { log } from '@/logger.js';
6
6
  export class WebHookNode extends AsyncNode {
7
7
  static getToolDefinition() {
8
8
  return {
@@ -22,4 +22,4 @@ export class ScrapeURLNode extends AsyncNode {
22
22
  execAsync(): Promise<string>;
23
23
  postAsync(shared: any, prepRes: any, execRes: any): Promise<any>;
24
24
  }
25
- import { AsyncNode } from '../qflow.js';
25
+ import { AsyncNode } from '@/qflow.js';
@@ -1,5 +1,5 @@
1
- import { AsyncNode } from '../qflow.js';
2
- import { log } from '../logger.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
+ import { log } from '@/logger.js';
3
3
  /**
4
4
  * Fetches the HTML content of a given URL.
5
5
  * @param {object} params - The parameters for the node.
@@ -24,4 +24,4 @@ export class WebSocketsNode extends AsyncNode {
24
24
  };
25
25
  execAsync(prepRes: any, shared: any): Promise<any>;
26
26
  }
27
- import { AsyncNode } from '../qflow.js';
27
+ import { AsyncNode } from '@/qflow.js';
@@ -1,4 +1,4 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import WebSocket from 'ws';
3
3
  export class WebSocketsNode extends AsyncNode {
4
4
  static getToolDefinition() {
@@ -35,4 +35,4 @@ export class WebviewNode extends AsyncNode {
35
35
  };
36
36
  execAsync(): Promise<string>;
37
37
  }
38
- import { AsyncNode } from '../qflow.js';
38
+ import { AsyncNode } from '@/qflow.js';
@@ -1,6 +1,6 @@
1
- import { AsyncNode } from '../qflow.js';
1
+ import { AsyncNode } from '@/qflow.js';
2
2
  import { Webview, SizeHint } from 'webview-bun';
3
- import { log } from '../logger.js';
3
+ import { log } from '@/logger.js';
4
4
  /**
5
5
  * A node that displays a webview window with the given HTML content.
6
6
  * @param {object} params - The parameters for the node.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractal-solutions/qflow",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
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",
@@ -20,7 +20,8 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "test": "bun test",
23
- "build": "tsc --project tsconfig.build.json",
23
+ "clean": "rm -rf dist",
24
+ "build": "bun run clean && tsc --project tsconfig.build.json",
24
25
  "postinstall": "bun scripts/postinstall.js"
25
26
  },
26
27
  "keywords": [
@@ -1,5 +0,0 @@
1
- export default qflowConfig;
2
- /**
3
- * @type {import('./src/types').QFlowConfig}
4
- */
5
- declare const qflowConfig: import("./src/types").QFlowConfig;
@@ -1,16 +0,0 @@
1
- // qflow.config.js
2
- /**
3
- * @type {import('./src/types').QFlowConfig}
4
- */
5
- const qflowConfig = {
6
- /**
7
- * An array of paths to custom node files.
8
- * These nodes will be dynamically loaded and their static getToolDefinition() methods
9
- * will be used to make them available as tools for agents.
10
- * Paths should be relative to the project root.
11
- * Example: ['./my_nodes/my_custom_node.js', './another_module/special_node.js']
12
- */
13
- customNodePaths: [],
14
- // Add other qflow configurations here in the future
15
- };
16
- export default qflowConfig;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes