@inkeep/agents-sdk 0.31.7 → 0.32.1

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.
package/dist/index.cjs CHANGED
@@ -690,7 +690,6 @@ var Agent = class {
690
690
  __publicField(this, "statusUpdateSettings");
691
691
  __publicField(this, "prompt");
692
692
  __publicField(this, "stopWhen");
693
- __publicField(this, "dbClient");
694
693
  this.defaultSubAgent = config.defaultSubAgent;
695
694
  this.tenantId = "default";
696
695
  this.projectId = "default";
@@ -701,10 +700,6 @@ var Agent = class {
701
700
  this.contextConfig = config.contextConfig;
702
701
  this.credentials = resolveGetter(config.credentials);
703
702
  this.models = config.models;
704
- const dbUrl = process.env.ENVIRONMENT === "test" ? ":memory:" : process.env.DB_FILE_NAME || process.env.DATABASE_URL || ":memory:";
705
- this.dbClient = agentsCore.createDatabaseClient({
706
- url: dbUrl
707
- });
708
703
  this.statusUpdateSettings = config.statusUpdates;
709
704
  this.prompt = config.prompt;
710
705
  this.stopWhen = config.stopWhen ? {
@@ -1344,9 +1339,7 @@ var Agent = class {
1344
1339
  */
1345
1340
  async getProjectModelDefaults() {
1346
1341
  try {
1347
- const project2 = await agentsCore.getProject(this.dbClient)({
1348
- scopes: { tenantId: this.tenantId, projectId: this.projectId }
1349
- });
1342
+ const project2 = await getFullProjectViaAPI(this.tenantId, this.projectId, this.baseURL);
1350
1343
  return project2?.models;
1351
1344
  } catch (error) {
1352
1345
  logger6.warn(
@@ -1365,9 +1358,7 @@ var Agent = class {
1365
1358
  */
1366
1359
  async getProjectStopWhenDefaults() {
1367
1360
  try {
1368
- const project2 = await agentsCore.getProject(this.dbClient)({
1369
- scopes: { tenantId: this.tenantId, projectId: this.projectId }
1370
- });
1361
+ const project2 = await getFullProjectViaAPI(this.tenantId, this.projectId, this.baseURL);
1371
1362
  return project2?.stopWhen;
1372
1363
  } catch (error) {
1373
1364
  logger6.warn(
package/dist/index.d.cts CHANGED
@@ -630,7 +630,6 @@ declare class Agent implements AgentInterface {
630
630
  private statusUpdateSettings?;
631
631
  private prompt?;
632
632
  private stopWhen?;
633
- private dbClient;
634
633
  constructor(config: AgentConfig);
635
634
  /**
636
635
  * Set or update the configuration (tenantId, projectId and apiUrl)
@@ -1089,8 +1088,8 @@ declare function subAgent(config: SubAgentConfig): SubAgent;
1089
1088
  * ```
1090
1089
  */
1091
1090
  declare function credential(config: CredentialReferenceApiInsert): {
1092
- name: string;
1093
1091
  id: string;
1092
+ name: string;
1094
1093
  credentialStoreId: string;
1095
1094
  type: "nango" | "memory" | "keychain";
1096
1095
  createdAt?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -630,7 +630,6 @@ declare class Agent implements AgentInterface {
630
630
  private statusUpdateSettings?;
631
631
  private prompt?;
632
632
  private stopWhen?;
633
- private dbClient;
634
633
  constructor(config: AgentConfig);
635
634
  /**
636
635
  * Set or update the configuration (tenantId, projectId and apiUrl)
@@ -1089,8 +1088,8 @@ declare function subAgent(config: SubAgentConfig): SubAgent;
1089
1088
  * ```
1090
1089
  */
1091
1090
  declare function credential(config: CredentialReferenceApiInsert): {
1092
- name: string;
1093
1091
  id: string;
1092
+ name: string;
1094
1093
  credentialStoreId: string;
1095
1094
  type: "nango" | "memory" | "keychain";
1096
1095
  createdAt?: string | undefined;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getLogger, apiFetch, CredentialReferenceApiInsertSchema, MCPToolConfigSchema, createDatabaseClient, getProject } from '@inkeep/agents-core';
1
+ import { getLogger, apiFetch, CredentialReferenceApiInsertSchema, MCPToolConfigSchema } from '@inkeep/agents-core';
2
2
  export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '@inkeep/agents-core';
3
3
  import { isZodSchema, convertZodToJsonSchemaWithPreview, convertZodToJsonSchema } from '@inkeep/agents-core/utils/schema-conversion';
4
4
  import fs from 'fs';
@@ -663,7 +663,6 @@ var Agent = class {
663
663
  __publicField(this, "statusUpdateSettings");
664
664
  __publicField(this, "prompt");
665
665
  __publicField(this, "stopWhen");
666
- __publicField(this, "dbClient");
667
666
  this.defaultSubAgent = config.defaultSubAgent;
668
667
  this.tenantId = "default";
669
668
  this.projectId = "default";
@@ -674,10 +673,6 @@ var Agent = class {
674
673
  this.contextConfig = config.contextConfig;
675
674
  this.credentials = resolveGetter(config.credentials);
676
675
  this.models = config.models;
677
- const dbUrl = process.env.ENVIRONMENT === "test" ? ":memory:" : process.env.DB_FILE_NAME || process.env.DATABASE_URL || ":memory:";
678
- this.dbClient = createDatabaseClient({
679
- url: dbUrl
680
- });
681
676
  this.statusUpdateSettings = config.statusUpdates;
682
677
  this.prompt = config.prompt;
683
678
  this.stopWhen = config.stopWhen ? {
@@ -1317,9 +1312,7 @@ var Agent = class {
1317
1312
  */
1318
1313
  async getProjectModelDefaults() {
1319
1314
  try {
1320
- const project2 = await getProject(this.dbClient)({
1321
- scopes: { tenantId: this.tenantId, projectId: this.projectId }
1322
- });
1315
+ const project2 = await getFullProjectViaAPI(this.tenantId, this.projectId, this.baseURL);
1323
1316
  return project2?.models;
1324
1317
  } catch (error) {
1325
1318
  logger6.warn(
@@ -1338,9 +1331,7 @@ var Agent = class {
1338
1331
  */
1339
1332
  async getProjectStopWhenDefaults() {
1340
1333
  try {
1341
- const project2 = await getProject(this.dbClient)({
1342
- scopes: { tenantId: this.tenantId, projectId: this.projectId }
1343
- });
1334
+ const project2 = await getFullProjectViaAPI(this.tenantId, this.projectId, this.baseURL);
1344
1335
  return project2?.stopWhen;
1345
1336
  } catch (error) {
1346
1337
  logger6.warn(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-sdk",
3
- "version": "0.31.7",
3
+ "version": "0.32.1",
4
4
  "description": "Agents SDK for building and managing agents in the Inkeep Agent Framework",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  "nanoid": "^5.1.5",
13
13
  "typescript": "^5.3.3",
14
14
  "zod": "^4.1.11",
15
- "@inkeep/agents-core": "^0.31.7"
15
+ "@inkeep/agents-core": "^0.32.1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/js-yaml": "^4.0.9",