Skip to content

Commit 860be66

Browse files
small code fixes
1 parent fa04e99 commit 860be66

7 files changed

Lines changed: 21 additions & 10 deletions

File tree

client/src/components/nodes/HttpNode/HttpNode.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ export function HttpNode ({data, id}: NodeProps<AppNode>) {
4444
throw new Error("URL is required");
4545
}
4646

47+
if(!settings.browserPath){
48+
throw new Error("Browser executable path must be specified. Please set Browser Executable Path in the app Settings.");
49+
}
50+
4751
const parsedUrl = parseUrl(url);
4852
const html = await GraphQLService.renderHtml(parsedUrl, settings.browserPath);
4953

client/src/components/nodes/ToolNode/ToolNode.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ export function ToolNode ({data, id}: NodeProps<AppNode>) {
7373

7474
return configWithFallbacks;
7575
}, {...(userConfig || {})} as Record<string, any>);
76-
const newHandler = selectedTool.handlerFactory(effectiveUserConfig);
76+
77+
const newHandler = selectedTool.handlerFactory({
78+
...effectiveUserConfig,
79+
browserPath: settings.browserPath
80+
});
7781

7882
onConfigChange(id, {handler: newHandler});
7983
}
@@ -82,7 +86,7 @@ export function ToolNode ({data, id}: NodeProps<AppNode>) {
8286
}
8387
}
8488
// eslint-disable-next-line react-hooks/exhaustive-deps
85-
}, [selectedTool, userConfig, onConfigChange, id, globalData, toolSubtype]);
89+
}, [selectedTool, userConfig, onConfigChange, id, globalData, settings.browserPath, toolSubtype]);
8690

8791
const hasMissingConfig = !toolSubtype ||
8892
(selectedTool?.userConfigSchema && Object.entries(selectedTool.userConfigSchema).some(
@@ -96,7 +100,6 @@ export function ToolNode ({data, id}: NodeProps<AppNode>) {
96100
const newUserConfig = {
97101
...(userConfig || {}),
98102
[key]: value,
99-
browserPath: settings.browserPath
100103
};
101104

102105
let handler: ((params: any) => Promise<any>) | undefined = undefined;
@@ -129,7 +132,10 @@ export function ToolNode ({data, id}: NodeProps<AppNode>) {
129132
return configWithFallbacks;
130133
}, {...newUserConfig} as Record<string, any>);
131134

132-
handler = selectedTool.handlerFactory(effectiveNewUserConfig);
135+
handler = selectedTool.handlerFactory({
136+
...effectiveNewUserConfig,
137+
browserPath: settings.browserPath
138+
});
133139

134140
setError(null);
135141
}

client/src/components/nodes/ToolNode/tools/DuckDuckGoSearchTool/descriptor.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export const DuckDuckGoSearchToolDescriptor: ToolDefinition = {
3636
}),
3737
toSanitize: [],
3838
handlerFactory: (userConfig: { maxResults?: number, browserPath?: string }) => async ({query}: { query: string }) => {
39+
if(!userConfig.browserPath){
40+
return {error: "Browser executable path must be specified. Please set Browser Executable Path in the app Settings."};
41+
}
42+
3943
if (!userConfig.maxResults) {
4044
return {error: "Maximum results must be specified. Please set maxResults in the configuration."};
4145
}

docs/docs/getting-started/configuration.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import TabItem from '@theme/TabItem';
5757
| Llama 3 8B | 16GB | 8GB+ | RTX 3060/3070/4060 | ~4GB |
5858
| Llama 2 7B | 12GB | 6GB+ | GTX 1660/RTX 2060+ | ~4GB |
5959
| Mistral 7B | 12GB | 6GB+ | GTX 1660/RTX 2060+ | ~4GB |
60+
| Gemma 4 31B | 48GB+ | 24GB+ | RTX 3090/4090 | ~20GB |
6061
| Llama 3 70B | 64GB+ | 48GB+ | RTX 6000/A100/H100 | ~40GB |
6162
| Mixtral 8x7B | 64GB+ | 48GB+ | RTX 6000/A100/H100 | ~50GB |
6263
| Phi-3 Mini | 8GB | 4GB+ | GTX 1650/RTX 3050+ | ~1.8GB |
@@ -76,9 +77,6 @@ import TabItem from '@theme/TabItem';
7677

7778
1. Open the **Settings** panel from the dock in the `Agentic Signal` client.
7879
2. **Browser Executable Path:** You need to provide the path to your Chrome browser executable. This is required for web browsing capabilities.
79-
80-
> **Note:** The `Browser Executable Path` setting is required only if you use the [Windows app version of Agentic Signal](./windows-app/quick-start).
81-
8280
3. **Ollama Host:** Enter the URL of your Ollama server in the "Ollama Host" field (e.g., `http://localhost:11434`).
8381
4. In the **Ollama Models** section:
8482
- **Add a model:** Enter the model name (e.g., `llama3.1:8b`) and click the plus (+) button. Download progress will be shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agentic-signal",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "Visual AI Workflow Automation Platform with Local Agent Intelligence",
55
"author": "Code Forge Temple",
66
"type": "module",

server/tools/DuckDuckGoSearchTool/service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
************************************************************************/
66

77
import {DuckDuckGoResult} from "./types.ts";
8-
import {chromium, LaunchOptions, Page} from "npm:playwright";
98
import {launchBrowser} from "../../utils/browserUtils.ts";
109

1110

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
33
"productName": "Agentic Signal",
4-
"version": "3.0.1",
4+
"version": "3.0.2",
55
"identifier": "com.agentic-signal",
66
"build": {
77
"frontendDist": "../client/dist",

0 commit comments

Comments
 (0)