@inkeep/agents-sdk 0.0.0-dev-20251009000750 → 0.0.0-dev-20251009005405

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
@@ -215798,6 +215798,9 @@ var Project = class {
215798
215798
  __publicField(this, "graphs", []);
215799
215799
  __publicField(this, "graphMap", /* @__PURE__ */ new Map());
215800
215800
  __publicField(this, "credentialReferences", []);
215801
+ __publicField(this, "projectTools", []);
215802
+ __publicField(this, "projectDataComponents", []);
215803
+ __publicField(this, "projectArtifactComponents", []);
215801
215804
  this.projectId = config.id;
215802
215805
  this.projectName = config.name;
215803
215806
  this.projectDescription = config.description;
@@ -215813,6 +215816,18 @@ var Project = class {
215813
215816
  graph.setConfig(this.tenantId, this.projectId, this.baseURL);
215814
215817
  }
215815
215818
  }
215819
+ if (config.tools) {
215820
+ this.projectTools = config.tools();
215821
+ }
215822
+ if (config.dataComponents) {
215823
+ this.projectDataComponents = config.dataComponents();
215824
+ }
215825
+ if (config.artifactComponents) {
215826
+ this.projectArtifactComponents = config.artifactComponents();
215827
+ }
215828
+ if (config.credentialReferences) {
215829
+ this.credentialReferences = config.credentialReferences();
215830
+ }
215816
215831
  logger10.info(
215817
215832
  {
215818
215833
  projectId: this.projectId,
@@ -216272,6 +216287,65 @@ var Project = class {
216272
216287
  }
216273
216288
  }
216274
216289
  }
216290
+ for (const tool of this.projectTools) {
216291
+ const toolId = tool.getId();
216292
+ if (!toolsObject[toolId]) {
216293
+ const toolConfig = {
216294
+ type: "mcp",
216295
+ mcp: {
216296
+ server: {
216297
+ url: tool.config.serverUrl
216298
+ },
216299
+ transport: tool.config.transport,
216300
+ activeTools: tool.config.activeTools
216301
+ }
216302
+ };
216303
+ const toolData = {
216304
+ id: toolId,
216305
+ name: tool.getName(),
216306
+ config: toolConfig
216307
+ };
216308
+ if (tool.config?.imageUrl) {
216309
+ toolData.imageUrl = tool.config.imageUrl;
216310
+ }
216311
+ if (tool.config?.headers) {
216312
+ toolData.headers = tool.config.headers;
216313
+ }
216314
+ const credentialId = tool.getCredentialReferenceId();
216315
+ if (credentialId) {
216316
+ toolData.credentialReferenceId = credentialId;
216317
+ }
216318
+ toolsObject[toolId] = toolData;
216319
+ }
216320
+ }
216321
+ for (const dataComponent2 of this.projectDataComponents) {
216322
+ const dataComponentId = dataComponent2.getId();
216323
+ const dataComponentName = dataComponent2.getName();
216324
+ const dataComponentDescription = dataComponent2.getDescription() || "";
216325
+ const dataComponentProps = dataComponent2.getProps() || {};
216326
+ if (!dataComponentsObject[dataComponentId] && dataComponentName) {
216327
+ dataComponentsObject[dataComponentId] = {
216328
+ id: dataComponentId,
216329
+ name: dataComponentName,
216330
+ description: dataComponentDescription,
216331
+ props: dataComponentProps
216332
+ };
216333
+ }
216334
+ }
216335
+ for (const artifactComponent2 of this.projectArtifactComponents) {
216336
+ const artifactComponentId = artifactComponent2.getId();
216337
+ const artifactComponentName = artifactComponent2.getName();
216338
+ const artifactComponentDescription = artifactComponent2.getDescription() || "";
216339
+ const artifactComponentProps = artifactComponent2.getProps() || {};
216340
+ if (!artifactComponentsObject[artifactComponentId] && artifactComponentName) {
216341
+ artifactComponentsObject[artifactComponentId] = {
216342
+ id: artifactComponentId,
216343
+ name: artifactComponentName,
216344
+ description: artifactComponentDescription,
216345
+ props: artifactComponentProps
216346
+ };
216347
+ }
216348
+ }
216275
216349
  if (this.credentialReferences && this.credentialReferences.length > 0) {
216276
216350
  for (const credential2 of this.credentialReferences) {
216277
216351
  if (credential2.id) {
package/dist/index.d.cts CHANGED
@@ -761,6 +761,7 @@ interface ProjectConfig {
761
761
  tools?: () => Tool[];
762
762
  dataComponents?: () => DataComponent[];
763
763
  artifactComponents?: () => ArtifactComponent[];
764
+ credentialReferences?: () => CredentialReferenceApiInsert[];
764
765
  }
765
766
  /**
766
767
  * Project interface for operations
@@ -828,6 +829,9 @@ declare class Project implements ProjectInterface {
828
829
  private graphs;
829
830
  private graphMap;
830
831
  private credentialReferences?;
832
+ private projectTools;
833
+ private projectDataComponents;
834
+ private projectArtifactComponents;
831
835
  constructor(config: ProjectConfig);
832
836
  /**
833
837
  * Set or update the configuration (tenantId and apiUrl)
package/dist/index.d.ts CHANGED
@@ -761,6 +761,7 @@ interface ProjectConfig {
761
761
  tools?: () => Tool[];
762
762
  dataComponents?: () => DataComponent[];
763
763
  artifactComponents?: () => ArtifactComponent[];
764
+ credentialReferences?: () => CredentialReferenceApiInsert[];
764
765
  }
765
766
  /**
766
767
  * Project interface for operations
@@ -828,6 +829,9 @@ declare class Project implements ProjectInterface {
828
829
  private graphs;
829
830
  private graphMap;
830
831
  private credentialReferences?;
832
+ private projectTools;
833
+ private projectDataComponents;
834
+ private projectArtifactComponents;
831
835
  constructor(config: ProjectConfig);
832
836
  /**
833
837
  * Set or update the configuration (tenantId and apiUrl)
package/dist/index.js CHANGED
@@ -215771,6 +215771,9 @@ var Project = class {
215771
215771
  __publicField(this, "graphs", []);
215772
215772
  __publicField(this, "graphMap", /* @__PURE__ */ new Map());
215773
215773
  __publicField(this, "credentialReferences", []);
215774
+ __publicField(this, "projectTools", []);
215775
+ __publicField(this, "projectDataComponents", []);
215776
+ __publicField(this, "projectArtifactComponents", []);
215774
215777
  this.projectId = config.id;
215775
215778
  this.projectName = config.name;
215776
215779
  this.projectDescription = config.description;
@@ -215786,6 +215789,18 @@ var Project = class {
215786
215789
  graph.setConfig(this.tenantId, this.projectId, this.baseURL);
215787
215790
  }
215788
215791
  }
215792
+ if (config.tools) {
215793
+ this.projectTools = config.tools();
215794
+ }
215795
+ if (config.dataComponents) {
215796
+ this.projectDataComponents = config.dataComponents();
215797
+ }
215798
+ if (config.artifactComponents) {
215799
+ this.projectArtifactComponents = config.artifactComponents();
215800
+ }
215801
+ if (config.credentialReferences) {
215802
+ this.credentialReferences = config.credentialReferences();
215803
+ }
215789
215804
  logger10.info(
215790
215805
  {
215791
215806
  projectId: this.projectId,
@@ -216245,6 +216260,65 @@ var Project = class {
216245
216260
  }
216246
216261
  }
216247
216262
  }
216263
+ for (const tool of this.projectTools) {
216264
+ const toolId = tool.getId();
216265
+ if (!toolsObject[toolId]) {
216266
+ const toolConfig = {
216267
+ type: "mcp",
216268
+ mcp: {
216269
+ server: {
216270
+ url: tool.config.serverUrl
216271
+ },
216272
+ transport: tool.config.transport,
216273
+ activeTools: tool.config.activeTools
216274
+ }
216275
+ };
216276
+ const toolData = {
216277
+ id: toolId,
216278
+ name: tool.getName(),
216279
+ config: toolConfig
216280
+ };
216281
+ if (tool.config?.imageUrl) {
216282
+ toolData.imageUrl = tool.config.imageUrl;
216283
+ }
216284
+ if (tool.config?.headers) {
216285
+ toolData.headers = tool.config.headers;
216286
+ }
216287
+ const credentialId = tool.getCredentialReferenceId();
216288
+ if (credentialId) {
216289
+ toolData.credentialReferenceId = credentialId;
216290
+ }
216291
+ toolsObject[toolId] = toolData;
216292
+ }
216293
+ }
216294
+ for (const dataComponent2 of this.projectDataComponents) {
216295
+ const dataComponentId = dataComponent2.getId();
216296
+ const dataComponentName = dataComponent2.getName();
216297
+ const dataComponentDescription = dataComponent2.getDescription() || "";
216298
+ const dataComponentProps = dataComponent2.getProps() || {};
216299
+ if (!dataComponentsObject[dataComponentId] && dataComponentName) {
216300
+ dataComponentsObject[dataComponentId] = {
216301
+ id: dataComponentId,
216302
+ name: dataComponentName,
216303
+ description: dataComponentDescription,
216304
+ props: dataComponentProps
216305
+ };
216306
+ }
216307
+ }
216308
+ for (const artifactComponent2 of this.projectArtifactComponents) {
216309
+ const artifactComponentId = artifactComponent2.getId();
216310
+ const artifactComponentName = artifactComponent2.getName();
216311
+ const artifactComponentDescription = artifactComponent2.getDescription() || "";
216312
+ const artifactComponentProps = artifactComponent2.getProps() || {};
216313
+ if (!artifactComponentsObject[artifactComponentId] && artifactComponentName) {
216314
+ artifactComponentsObject[artifactComponentId] = {
216315
+ id: artifactComponentId,
216316
+ name: artifactComponentName,
216317
+ description: artifactComponentDescription,
216318
+ props: artifactComponentProps
216319
+ };
216320
+ }
216321
+ }
216248
216322
  if (this.credentialReferences && this.credentialReferences.length > 0) {
216249
216323
  for (const credential2 of this.credentialReferences) {
216250
216324
  if (credential2.id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-sdk",
3
- "version": "0.0.0-dev-20251009000750",
3
+ "version": "0.0.0-dev-20251009005405",
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",
@@ -11,7 +11,7 @@
11
11
  "js-yaml": "^4.1.0",
12
12
  "nanoid": "^5.1.5",
13
13
  "zod": "^4.1.11",
14
- "@inkeep/agents-core": "^0.0.0-dev-20251009000750"
14
+ "@inkeep/agents-core": "^0.0.0-dev-20251009005405"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/js-yaml": "^4.0.9",