@inkeep/agents-sdk 0.34.1 → 0.35.0

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
@@ -36,9 +36,7 @@ var lockfile__namespace = /*#__PURE__*/_interopNamespace(lockfile);
36
36
  var yaml__namespace = /*#__PURE__*/_interopNamespace(yaml);
37
37
  var ts__default = /*#__PURE__*/_interopDefault(ts);
38
38
 
39
- var __defProp = Object.defineProperty;
40
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
41
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
39
+ // src/index.ts
42
40
 
43
41
  // src/utils/generateIdFromName.ts
44
42
  function generateIdFromName(name) {
@@ -48,13 +46,13 @@ function generateIdFromName(name) {
48
46
  // src/artifact-component.ts
49
47
  var logger = agentsCore.getLogger("artifactComponent");
50
48
  var ArtifactComponent = class {
49
+ config;
50
+ baseURL;
51
+ tenantId;
52
+ projectId;
53
+ initialized = false;
54
+ id;
51
55
  constructor(config) {
52
- __publicField(this, "config");
53
- __publicField(this, "baseURL");
54
- __publicField(this, "tenantId");
55
- __publicField(this, "projectId");
56
- __publicField(this, "initialized", false);
57
- __publicField(this, "id");
58
56
  this.id = config.id || generateIdFromName(config.name);
59
57
  let processedProps;
60
58
  if (config.props && schemaConversion.isZodSchema(config.props)) {
@@ -592,9 +590,9 @@ function buildToolManifestFromCodeTS(code, projectRoot = process.cwd()) {
592
590
  // src/function-tool.ts
593
591
  var logger5 = agentsCore.getLogger("function-tool");
594
592
  var FunctionTool = class {
593
+ config;
594
+ id;
595
595
  constructor(config) {
596
- __publicField(this, "config");
597
- __publicField(this, "id");
598
596
  this.config = config;
599
597
  this.id = generateIdFromName(config.name);
600
598
  if (!config.dependencies) {
@@ -672,24 +670,24 @@ function resolveGetter(value) {
672
670
  return value;
673
671
  }
674
672
  var Agent = class {
673
+ subAgents = [];
674
+ agentMap = /* @__PURE__ */ new Map();
675
+ defaultSubAgent;
676
+ baseURL;
677
+ tenantId;
678
+ projectId;
679
+ agentId;
680
+ agentName;
681
+ agentDescription;
682
+ initialized = false;
683
+ contextConfig;
684
+ // ContextConfigBuilder
685
+ credentials;
686
+ models;
687
+ statusUpdateSettings;
688
+ prompt;
689
+ stopWhen;
675
690
  constructor(config) {
676
- __publicField(this, "subAgents", []);
677
- __publicField(this, "agentMap", /* @__PURE__ */ new Map());
678
- __publicField(this, "defaultSubAgent");
679
- __publicField(this, "baseURL");
680
- __publicField(this, "tenantId");
681
- __publicField(this, "projectId");
682
- __publicField(this, "agentId");
683
- __publicField(this, "agentName");
684
- __publicField(this, "agentDescription");
685
- __publicField(this, "initialized", false);
686
- __publicField(this, "contextConfig");
687
- // ContextConfigBuilder
688
- __publicField(this, "credentials");
689
- __publicField(this, "models");
690
- __publicField(this, "statusUpdateSettings");
691
- __publicField(this, "prompt");
692
- __publicField(this, "stopWhen");
693
691
  this.defaultSubAgent = config.defaultSubAgent;
694
692
  this.tenantId = "default";
695
693
  this.projectId = "default";
@@ -1724,13 +1722,13 @@ var Agent = class {
1724
1722
  };
1725
1723
  var logger7 = agentsCore.getLogger("dataComponent");
1726
1724
  var DataComponent = class {
1725
+ config;
1726
+ baseURL;
1727
+ tenantId;
1728
+ projectId;
1729
+ initialized = false;
1730
+ id;
1727
1731
  constructor(config) {
1728
- __publicField(this, "config");
1729
- __publicField(this, "baseURL");
1730
- __publicField(this, "tenantId");
1731
- __publicField(this, "projectId");
1732
- __publicField(this, "initialized", false);
1733
- __publicField(this, "id");
1734
1732
  this.id = config.id || generateIdFromName(config.name);
1735
1733
  let processedProps;
1736
1734
  if (config.props && schemaConversion.isZodSchema(config.props)) {
@@ -1877,25 +1875,25 @@ var DataComponent = class {
1877
1875
  };
1878
1876
  var logger8 = agentsCore.getLogger("project");
1879
1877
  var Project = class {
1878
+ __type = "project";
1879
+ projectId;
1880
+ projectName;
1881
+ projectDescription;
1882
+ tenantId;
1883
+ baseURL;
1884
+ apiKey;
1885
+ initialized = false;
1886
+ models;
1887
+ stopWhen;
1888
+ agents = [];
1889
+ agentMap = /* @__PURE__ */ new Map();
1890
+ credentialReferences = [];
1891
+ projectTools = [];
1892
+ projectDataComponents = [];
1893
+ projectArtifactComponents = [];
1894
+ projectExternalAgents = [];
1895
+ externalAgentMap = /* @__PURE__ */ new Map();
1880
1896
  constructor(config) {
1881
- __publicField(this, "__type", "project");
1882
- __publicField(this, "projectId");
1883
- __publicField(this, "projectName");
1884
- __publicField(this, "projectDescription");
1885
- __publicField(this, "tenantId");
1886
- __publicField(this, "baseURL");
1887
- __publicField(this, "apiKey");
1888
- __publicField(this, "initialized", false);
1889
- __publicField(this, "models");
1890
- __publicField(this, "stopWhen");
1891
- __publicField(this, "agents", []);
1892
- __publicField(this, "agentMap", /* @__PURE__ */ new Map());
1893
- __publicField(this, "credentialReferences", []);
1894
- __publicField(this, "projectTools", []);
1895
- __publicField(this, "projectDataComponents", []);
1896
- __publicField(this, "projectArtifactComponents", []);
1897
- __publicField(this, "projectExternalAgents", []);
1898
- __publicField(this, "externalAgentMap", /* @__PURE__ */ new Map());
1899
1897
  this.projectId = config.id;
1900
1898
  this.projectName = config.name;
1901
1899
  this.projectDescription = config.description;
@@ -2578,8 +2576,8 @@ var Project = class {
2578
2576
  };
2579
2577
  var logger9 = agentsCore.getLogger("statusComponent");
2580
2578
  var StatusComponent = class {
2579
+ config;
2581
2580
  constructor(config) {
2582
- __publicField(this, "config");
2583
2581
  let processedDetailsSchema;
2584
2582
  if (config.detailsSchema && schemaConversion.isZodSchema(config.detailsSchema)) {
2585
2583
  const jsonSchema = schemaConversion.convertZodToJsonSchema(config.detailsSchema);
@@ -2614,12 +2612,12 @@ var StatusComponent = class {
2614
2612
  };
2615
2613
  var logger10 = agentsCore.getLogger("tool");
2616
2614
  var Tool = class {
2615
+ config;
2616
+ baseURL;
2617
+ tenantId;
2618
+ initialized = false;
2619
+ projectId;
2617
2620
  constructor(config) {
2618
- __publicField(this, "config");
2619
- __publicField(this, "baseURL");
2620
- __publicField(this, "tenantId");
2621
- __publicField(this, "initialized", false);
2622
- __publicField(this, "projectId");
2623
2621
  this.config = config;
2624
2622
  this.baseURL = process.env.INKEEP_API_URL || "http://localhost:3002";
2625
2623
  this.tenantId = "default";
@@ -2819,13 +2817,13 @@ function resolveGetter2(value) {
2819
2817
  return value;
2820
2818
  }
2821
2819
  var SubAgent = class {
2820
+ config;
2821
+ type = "internal";
2822
+ baseURL;
2823
+ tenantId;
2824
+ projectId;
2825
+ initialized = false;
2822
2826
  constructor(config) {
2823
- __publicField(this, "config");
2824
- __publicField(this, "type", "internal");
2825
- __publicField(this, "baseURL");
2826
- __publicField(this, "tenantId");
2827
- __publicField(this, "projectId");
2828
- __publicField(this, "initialized", false);
2829
2827
  this.config = { ...config, type: "internal" };
2830
2828
  this.baseURL = process.env.INKEEP_API_URL || "http://localhost:3002";
2831
2829
  this.tenantId = "default";
@@ -3797,13 +3795,13 @@ function registerEnvironmentSettings(config) {
3797
3795
  }
3798
3796
  var logger12 = agentsCore.getLogger("external-agent-builder");
3799
3797
  var ExternalAgent = class {
3798
+ config;
3799
+ type = "external";
3800
+ initialized = false;
3801
+ tenantId;
3802
+ projectId;
3803
+ baseURL;
3800
3804
  constructor(config) {
3801
- __publicField(this, "config");
3802
- __publicField(this, "type", "external");
3803
- __publicField(this, "initialized", false);
3804
- __publicField(this, "tenantId");
3805
- __publicField(this, "projectId");
3806
- __publicField(this, "baseURL");
3807
3805
  this.config = { ...config, type: "external" };
3808
3806
  this.tenantId = "default";
3809
3807
  this.projectId = "default";
package/dist/index.js CHANGED
@@ -9,9 +9,7 @@ import * as yaml from 'js-yaml';
9
9
  import ts from 'typescript';
10
10
  import { z } from 'zod';
11
11
 
12
- var __defProp = Object.defineProperty;
13
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
12
+ // src/index.ts
15
13
 
16
14
  // src/utils/generateIdFromName.ts
17
15
  function generateIdFromName(name) {
@@ -21,13 +19,13 @@ function generateIdFromName(name) {
21
19
  // src/artifact-component.ts
22
20
  var logger = getLogger("artifactComponent");
23
21
  var ArtifactComponent = class {
22
+ config;
23
+ baseURL;
24
+ tenantId;
25
+ projectId;
26
+ initialized = false;
27
+ id;
24
28
  constructor(config) {
25
- __publicField(this, "config");
26
- __publicField(this, "baseURL");
27
- __publicField(this, "tenantId");
28
- __publicField(this, "projectId");
29
- __publicField(this, "initialized", false);
30
- __publicField(this, "id");
31
29
  this.id = config.id || generateIdFromName(config.name);
32
30
  let processedProps;
33
31
  if (config.props && isZodSchema(config.props)) {
@@ -565,9 +563,9 @@ function buildToolManifestFromCodeTS(code, projectRoot = process.cwd()) {
565
563
  // src/function-tool.ts
566
564
  var logger5 = getLogger("function-tool");
567
565
  var FunctionTool = class {
566
+ config;
567
+ id;
568
568
  constructor(config) {
569
- __publicField(this, "config");
570
- __publicField(this, "id");
571
569
  this.config = config;
572
570
  this.id = generateIdFromName(config.name);
573
571
  if (!config.dependencies) {
@@ -645,24 +643,24 @@ function resolveGetter(value) {
645
643
  return value;
646
644
  }
647
645
  var Agent = class {
646
+ subAgents = [];
647
+ agentMap = /* @__PURE__ */ new Map();
648
+ defaultSubAgent;
649
+ baseURL;
650
+ tenantId;
651
+ projectId;
652
+ agentId;
653
+ agentName;
654
+ agentDescription;
655
+ initialized = false;
656
+ contextConfig;
657
+ // ContextConfigBuilder
658
+ credentials;
659
+ models;
660
+ statusUpdateSettings;
661
+ prompt;
662
+ stopWhen;
648
663
  constructor(config) {
649
- __publicField(this, "subAgents", []);
650
- __publicField(this, "agentMap", /* @__PURE__ */ new Map());
651
- __publicField(this, "defaultSubAgent");
652
- __publicField(this, "baseURL");
653
- __publicField(this, "tenantId");
654
- __publicField(this, "projectId");
655
- __publicField(this, "agentId");
656
- __publicField(this, "agentName");
657
- __publicField(this, "agentDescription");
658
- __publicField(this, "initialized", false);
659
- __publicField(this, "contextConfig");
660
- // ContextConfigBuilder
661
- __publicField(this, "credentials");
662
- __publicField(this, "models");
663
- __publicField(this, "statusUpdateSettings");
664
- __publicField(this, "prompt");
665
- __publicField(this, "stopWhen");
666
664
  this.defaultSubAgent = config.defaultSubAgent;
667
665
  this.tenantId = "default";
668
666
  this.projectId = "default";
@@ -1697,13 +1695,13 @@ var Agent = class {
1697
1695
  };
1698
1696
  var logger7 = getLogger("dataComponent");
1699
1697
  var DataComponent = class {
1698
+ config;
1699
+ baseURL;
1700
+ tenantId;
1701
+ projectId;
1702
+ initialized = false;
1703
+ id;
1700
1704
  constructor(config) {
1701
- __publicField(this, "config");
1702
- __publicField(this, "baseURL");
1703
- __publicField(this, "tenantId");
1704
- __publicField(this, "projectId");
1705
- __publicField(this, "initialized", false);
1706
- __publicField(this, "id");
1707
1705
  this.id = config.id || generateIdFromName(config.name);
1708
1706
  let processedProps;
1709
1707
  if (config.props && isZodSchema(config.props)) {
@@ -1850,25 +1848,25 @@ var DataComponent = class {
1850
1848
  };
1851
1849
  var logger8 = getLogger("project");
1852
1850
  var Project = class {
1851
+ __type = "project";
1852
+ projectId;
1853
+ projectName;
1854
+ projectDescription;
1855
+ tenantId;
1856
+ baseURL;
1857
+ apiKey;
1858
+ initialized = false;
1859
+ models;
1860
+ stopWhen;
1861
+ agents = [];
1862
+ agentMap = /* @__PURE__ */ new Map();
1863
+ credentialReferences = [];
1864
+ projectTools = [];
1865
+ projectDataComponents = [];
1866
+ projectArtifactComponents = [];
1867
+ projectExternalAgents = [];
1868
+ externalAgentMap = /* @__PURE__ */ new Map();
1853
1869
  constructor(config) {
1854
- __publicField(this, "__type", "project");
1855
- __publicField(this, "projectId");
1856
- __publicField(this, "projectName");
1857
- __publicField(this, "projectDescription");
1858
- __publicField(this, "tenantId");
1859
- __publicField(this, "baseURL");
1860
- __publicField(this, "apiKey");
1861
- __publicField(this, "initialized", false);
1862
- __publicField(this, "models");
1863
- __publicField(this, "stopWhen");
1864
- __publicField(this, "agents", []);
1865
- __publicField(this, "agentMap", /* @__PURE__ */ new Map());
1866
- __publicField(this, "credentialReferences", []);
1867
- __publicField(this, "projectTools", []);
1868
- __publicField(this, "projectDataComponents", []);
1869
- __publicField(this, "projectArtifactComponents", []);
1870
- __publicField(this, "projectExternalAgents", []);
1871
- __publicField(this, "externalAgentMap", /* @__PURE__ */ new Map());
1872
1870
  this.projectId = config.id;
1873
1871
  this.projectName = config.name;
1874
1872
  this.projectDescription = config.description;
@@ -2551,8 +2549,8 @@ var Project = class {
2551
2549
  };
2552
2550
  var logger9 = getLogger("statusComponent");
2553
2551
  var StatusComponent = class {
2552
+ config;
2554
2553
  constructor(config) {
2555
- __publicField(this, "config");
2556
2554
  let processedDetailsSchema;
2557
2555
  if (config.detailsSchema && isZodSchema(config.detailsSchema)) {
2558
2556
  const jsonSchema = convertZodToJsonSchema(config.detailsSchema);
@@ -2587,12 +2585,12 @@ var StatusComponent = class {
2587
2585
  };
2588
2586
  var logger10 = getLogger("tool");
2589
2587
  var Tool = class {
2588
+ config;
2589
+ baseURL;
2590
+ tenantId;
2591
+ initialized = false;
2592
+ projectId;
2590
2593
  constructor(config) {
2591
- __publicField(this, "config");
2592
- __publicField(this, "baseURL");
2593
- __publicField(this, "tenantId");
2594
- __publicField(this, "initialized", false);
2595
- __publicField(this, "projectId");
2596
2594
  this.config = config;
2597
2595
  this.baseURL = process.env.INKEEP_API_URL || "http://localhost:3002";
2598
2596
  this.tenantId = "default";
@@ -2792,13 +2790,13 @@ function resolveGetter2(value) {
2792
2790
  return value;
2793
2791
  }
2794
2792
  var SubAgent = class {
2793
+ config;
2794
+ type = "internal";
2795
+ baseURL;
2796
+ tenantId;
2797
+ projectId;
2798
+ initialized = false;
2795
2799
  constructor(config) {
2796
- __publicField(this, "config");
2797
- __publicField(this, "type", "internal");
2798
- __publicField(this, "baseURL");
2799
- __publicField(this, "tenantId");
2800
- __publicField(this, "projectId");
2801
- __publicField(this, "initialized", false);
2802
2800
  this.config = { ...config, type: "internal" };
2803
2801
  this.baseURL = process.env.INKEEP_API_URL || "http://localhost:3002";
2804
2802
  this.tenantId = "default";
@@ -3770,13 +3768,13 @@ function registerEnvironmentSettings(config) {
3770
3768
  }
3771
3769
  var logger12 = getLogger("external-agent-builder");
3772
3770
  var ExternalAgent = class {
3771
+ config;
3772
+ type = "external";
3773
+ initialized = false;
3774
+ tenantId;
3775
+ projectId;
3776
+ baseURL;
3773
3777
  constructor(config) {
3774
- __publicField(this, "config");
3775
- __publicField(this, "type", "external");
3776
- __publicField(this, "initialized", false);
3777
- __publicField(this, "tenantId");
3778
- __publicField(this, "projectId");
3779
- __publicField(this, "baseURL");
3780
3778
  this.config = { ...config, type: "external" };
3781
3779
  this.tenantId = "default";
3782
3780
  this.projectId = "default";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-sdk",
3
- "version": "0.34.1",
3
+ "version": "0.35.0",
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.34.1"
15
+ "@inkeep/agents-core": "^0.35.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/js-yaml": "^4.0.9",