@inkeep/agents-sdk 0.0.0-dev-20250919020857 → 0.0.0-dev-20250919131621
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 +2 -36
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -36
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1429,7 +1429,6 @@ var AgentGraph = class {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
const dataComponentsObject = {};
|
|
1433
1432
|
for (const agent2 of this.agents) {
|
|
1434
1433
|
if (!this.isInternalAgent(agent2)) {
|
|
1435
1434
|
continue;
|
|
@@ -1438,19 +1437,10 @@ var AgentGraph = class {
|
|
|
1438
1437
|
const agentDataComponents = internalAgent.getDataComponents();
|
|
1439
1438
|
if (agentDataComponents) {
|
|
1440
1439
|
for (const dataComponent2 of agentDataComponents) {
|
|
1441
|
-
|
|
1442
|
-
if (!dataComponentsObject[dataComponentId]) {
|
|
1443
|
-
dataComponentsObject[dataComponentId] = {
|
|
1444
|
-
id: dataComponentId,
|
|
1445
|
-
name: dataComponent2.name,
|
|
1446
|
-
description: dataComponent2.description || "",
|
|
1447
|
-
props: dataComponent2.props || {}
|
|
1448
|
-
};
|
|
1449
|
-
}
|
|
1440
|
+
dataComponent2.id || dataComponent2.name.toLowerCase().replace(/\s+/g, "-");
|
|
1450
1441
|
}
|
|
1451
1442
|
}
|
|
1452
1443
|
}
|
|
1453
|
-
const artifactComponentsObject = {};
|
|
1454
1444
|
for (const agent2 of this.agents) {
|
|
1455
1445
|
if (!this.isInternalAgent(agent2)) {
|
|
1456
1446
|
continue;
|
|
@@ -1459,16 +1449,7 @@ var AgentGraph = class {
|
|
|
1459
1449
|
const agentArtifactComponents = internalAgent.getArtifactComponents();
|
|
1460
1450
|
if (agentArtifactComponents) {
|
|
1461
1451
|
for (const artifactComponent2 of agentArtifactComponents) {
|
|
1462
|
-
|
|
1463
|
-
if (!artifactComponentsObject[artifactComponentId]) {
|
|
1464
|
-
artifactComponentsObject[artifactComponentId] = {
|
|
1465
|
-
id: artifactComponentId,
|
|
1466
|
-
name: artifactComponent2.name,
|
|
1467
|
-
description: artifactComponent2.description || "",
|
|
1468
|
-
summaryProps: artifactComponent2.summaryProps || {},
|
|
1469
|
-
fullProps: artifactComponent2.fullProps || {}
|
|
1470
|
-
};
|
|
1471
|
-
}
|
|
1452
|
+
artifactComponent2.id || artifactComponent2.name.toLowerCase().replace(/\s+/g, "-");
|
|
1472
1453
|
}
|
|
1473
1454
|
}
|
|
1474
1455
|
}
|
|
@@ -1478,25 +1459,10 @@ var AgentGraph = class {
|
|
|
1478
1459
|
description: this.graphDescription,
|
|
1479
1460
|
defaultAgentId: this.defaultAgent?.getId() || "",
|
|
1480
1461
|
agents: agentsObject,
|
|
1481
|
-
tools: toolsObject,
|
|
1482
1462
|
contextConfig: this.contextConfig?.toObject(),
|
|
1483
|
-
credentialReferences: this.credentials?.reduce(
|
|
1484
|
-
(acc, credentialReference) => {
|
|
1485
|
-
acc[credentialReference.id] = {
|
|
1486
|
-
type: credentialReference.type,
|
|
1487
|
-
id: credentialReference.id,
|
|
1488
|
-
credentialStoreId: credentialReference.credentialStoreId,
|
|
1489
|
-
retrievalParams: credentialReference.retrievalParams || {}
|
|
1490
|
-
};
|
|
1491
|
-
return acc;
|
|
1492
|
-
},
|
|
1493
|
-
{}
|
|
1494
|
-
),
|
|
1495
1463
|
models: this.models,
|
|
1496
1464
|
statusUpdates: this.statusUpdateSettings,
|
|
1497
1465
|
graphPrompt: this.graphPrompt,
|
|
1498
|
-
dataComponents: Object.keys(dataComponentsObject).length > 0 ? dataComponentsObject : void 0,
|
|
1499
|
-
artifactComponents: Object.keys(artifactComponentsObject).length > 0 ? artifactComponentsObject : void 0,
|
|
1500
1466
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1501
1467
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
1502
1468
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -955,6 +955,8 @@ declare function credential(config: CredentialReferenceApiInsert): {
|
|
|
955
955
|
id: string;
|
|
956
956
|
credentialStoreId: string;
|
|
957
957
|
type: "nango" | "memory" | "keychain";
|
|
958
|
+
createdAt?: string | undefined;
|
|
959
|
+
updatedAt?: string | undefined;
|
|
958
960
|
retrievalParams?: Record<string, unknown> | null | undefined;
|
|
959
961
|
};
|
|
960
962
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -955,6 +955,8 @@ declare function credential(config: CredentialReferenceApiInsert): {
|
|
|
955
955
|
id: string;
|
|
956
956
|
credentialStoreId: string;
|
|
957
957
|
type: "nango" | "memory" | "keychain";
|
|
958
|
+
createdAt?: string | undefined;
|
|
959
|
+
updatedAt?: string | undefined;
|
|
958
960
|
retrievalParams?: Record<string, unknown> | null | undefined;
|
|
959
961
|
};
|
|
960
962
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1427,7 +1427,6 @@ var AgentGraph = class {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
const dataComponentsObject = {};
|
|
1431
1430
|
for (const agent2 of this.agents) {
|
|
1432
1431
|
if (!this.isInternalAgent(agent2)) {
|
|
1433
1432
|
continue;
|
|
@@ -1436,19 +1435,10 @@ var AgentGraph = class {
|
|
|
1436
1435
|
const agentDataComponents = internalAgent.getDataComponents();
|
|
1437
1436
|
if (agentDataComponents) {
|
|
1438
1437
|
for (const dataComponent2 of agentDataComponents) {
|
|
1439
|
-
|
|
1440
|
-
if (!dataComponentsObject[dataComponentId]) {
|
|
1441
|
-
dataComponentsObject[dataComponentId] = {
|
|
1442
|
-
id: dataComponentId,
|
|
1443
|
-
name: dataComponent2.name,
|
|
1444
|
-
description: dataComponent2.description || "",
|
|
1445
|
-
props: dataComponent2.props || {}
|
|
1446
|
-
};
|
|
1447
|
-
}
|
|
1438
|
+
dataComponent2.id || dataComponent2.name.toLowerCase().replace(/\s+/g, "-");
|
|
1448
1439
|
}
|
|
1449
1440
|
}
|
|
1450
1441
|
}
|
|
1451
|
-
const artifactComponentsObject = {};
|
|
1452
1442
|
for (const agent2 of this.agents) {
|
|
1453
1443
|
if (!this.isInternalAgent(agent2)) {
|
|
1454
1444
|
continue;
|
|
@@ -1457,16 +1447,7 @@ var AgentGraph = class {
|
|
|
1457
1447
|
const agentArtifactComponents = internalAgent.getArtifactComponents();
|
|
1458
1448
|
if (agentArtifactComponents) {
|
|
1459
1449
|
for (const artifactComponent2 of agentArtifactComponents) {
|
|
1460
|
-
|
|
1461
|
-
if (!artifactComponentsObject[artifactComponentId]) {
|
|
1462
|
-
artifactComponentsObject[artifactComponentId] = {
|
|
1463
|
-
id: artifactComponentId,
|
|
1464
|
-
name: artifactComponent2.name,
|
|
1465
|
-
description: artifactComponent2.description || "",
|
|
1466
|
-
summaryProps: artifactComponent2.summaryProps || {},
|
|
1467
|
-
fullProps: artifactComponent2.fullProps || {}
|
|
1468
|
-
};
|
|
1469
|
-
}
|
|
1450
|
+
artifactComponent2.id || artifactComponent2.name.toLowerCase().replace(/\s+/g, "-");
|
|
1470
1451
|
}
|
|
1471
1452
|
}
|
|
1472
1453
|
}
|
|
@@ -1476,25 +1457,10 @@ var AgentGraph = class {
|
|
|
1476
1457
|
description: this.graphDescription,
|
|
1477
1458
|
defaultAgentId: this.defaultAgent?.getId() || "",
|
|
1478
1459
|
agents: agentsObject,
|
|
1479
|
-
tools: toolsObject,
|
|
1480
1460
|
contextConfig: this.contextConfig?.toObject(),
|
|
1481
|
-
credentialReferences: this.credentials?.reduce(
|
|
1482
|
-
(acc, credentialReference) => {
|
|
1483
|
-
acc[credentialReference.id] = {
|
|
1484
|
-
type: credentialReference.type,
|
|
1485
|
-
id: credentialReference.id,
|
|
1486
|
-
credentialStoreId: credentialReference.credentialStoreId,
|
|
1487
|
-
retrievalParams: credentialReference.retrievalParams || {}
|
|
1488
|
-
};
|
|
1489
|
-
return acc;
|
|
1490
|
-
},
|
|
1491
|
-
{}
|
|
1492
|
-
),
|
|
1493
1461
|
models: this.models,
|
|
1494
1462
|
statusUpdates: this.statusUpdateSettings,
|
|
1495
1463
|
graphPrompt: this.graphPrompt,
|
|
1496
|
-
dataComponents: Object.keys(dataComponentsObject).length > 0 ? dataComponentsObject : void 0,
|
|
1497
|
-
artifactComponents: Object.keys(artifactComponentsObject).length > 0 ? artifactComponentsObject : void 0,
|
|
1498
1464
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1499
1465
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
1500
1466
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-sdk",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20250919131621",
|
|
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",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"nanoid": "^5.1.5",
|
|
10
10
|
"zod": "^4.1.5",
|
|
11
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
11
|
+
"@inkeep/agents-core": "^0.0.0-dev-20250919131621"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@types/node": "^20.11.24",
|