@syncagent/js
Advanced tools
+3
-1
@@ -201,3 +201,5 @@ "use strict"; | ||
| if (!config.apiKey) throw new Error("SyncAgent: apiKey is required"); | ||
| if (!config.connectionString && !config.toolsOnly) throw new Error("SyncAgent: connectionString is required"); | ||
| if (!config.connectionString && !config.toolsOnly && !config.customerMode && !config.externalUserId) { | ||
| throw new Error("SyncAgent: connectionString is required (optional for customer chat mode)"); | ||
| } | ||
| if (config.connectionString && !config.toolsOnly) { | ||
@@ -204,0 +206,0 @@ this.validateConnectionString(config.connectionString); |
+3
-1
@@ -165,3 +165,5 @@ // src/stream.ts | ||
| if (!config.apiKey) throw new Error("SyncAgent: apiKey is required"); | ||
| if (!config.connectionString && !config.toolsOnly) throw new Error("SyncAgent: connectionString is required"); | ||
| if (!config.connectionString && !config.toolsOnly && !config.customerMode && !config.externalUserId) { | ||
| throw new Error("SyncAgent: connectionString is required (optional for customer chat mode)"); | ||
| } | ||
| if (config.connectionString && !config.toolsOnly) { | ||
@@ -168,0 +170,0 @@ this.validateConnectionString(config.connectionString); |
+1
-1
| { | ||
| "name": "@syncagent/js", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "description": "SyncAgent JavaScript SDK — AI database agent for any app", | ||
@@ -5,0 +5,0 @@ "homepage": "https://syncagentdev.vercel.app/docs", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
130736
0.15%2197
0.18%3
-25%