Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@syncagent/js

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncagent/js - npm Package Compare versions

Comparing version
0.1.9
to
0.2.0
+5
-0
dist/index.d.mts

@@ -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 {

@@ -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 || {};

@@ -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 || {};

{
"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",