@syncagent/js
Advanced tools
+5
-0
@@ -18,2 +18,7 @@ interface ToolParameter { | ||
| tools?: Record<string, ToolDefinition>; | ||
| /** | ||
| * Override the API base URL. Defaults to https://syncagent.dev | ||
| * Use this in development: baseUrl: "http://localhost:3100" | ||
| */ | ||
| baseUrl?: string; | ||
| } | ||
@@ -20,0 +25,0 @@ interface Message { |
+5
-0
@@ -18,2 +18,7 @@ interface ToolParameter { | ||
| tools?: Record<string, ToolDefinition>; | ||
| /** | ||
| * Override the API base URL. Defaults to https://syncagent.dev | ||
| * Use this in development: baseUrl: "http://localhost:3100" | ||
| */ | ||
| baseUrl?: string; | ||
| } | ||
@@ -20,0 +25,0 @@ interface Message { |
+2
-2
@@ -75,3 +75,3 @@ "use strict"; | ||
| // src/client.ts | ||
| var SYNCAGENT_API_URL = "https://syncagent.dev"; | ||
| var SYNCAGENT_API_URL = "https://syncagentdev.vercel.app"; | ||
| var SyncAgentClient = class { | ||
@@ -82,3 +82,3 @@ constructor(config) { | ||
| this.apiKey = config.apiKey; | ||
| this.baseUrl = SYNCAGENT_API_URL; | ||
| this.baseUrl = (config.baseUrl || SYNCAGENT_API_URL).replace(/\/$/, ""); | ||
| this.connectionString = config.connectionString; | ||
@@ -85,0 +85,0 @@ this.tools = config.tools || {}; |
+2
-2
@@ -49,3 +49,3 @@ // src/stream.ts | ||
| // src/client.ts | ||
| var SYNCAGENT_API_URL = "https://syncagent.dev"; | ||
| var SYNCAGENT_API_URL = "https://syncagentdev.vercel.app"; | ||
| var SyncAgentClient = class { | ||
@@ -56,3 +56,3 @@ constructor(config) { | ||
| this.apiKey = config.apiKey; | ||
| this.baseUrl = SYNCAGENT_API_URL; | ||
| this.baseUrl = (config.baseUrl || SYNCAGENT_API_URL).replace(/\/$/, ""); | ||
| this.connectionString = config.connectionString; | ||
@@ -59,0 +59,0 @@ this.tools = config.tools || {}; |
+1
-1
| { | ||
| "name": "@syncagent/js", | ||
| "version": "0.1.9", | ||
| "version": "0.2.0", | ||
| "description": "SyncAgent JavaScript SDK — AI database agent for any app", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
26192
1.71%488
1.04%