@inkeep/agents-sdk 0.22.6 → 0.22.7
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 +18 -0
- package/dist/index.js +18 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2516,6 +2516,24 @@ var Project = class {
|
|
|
2516
2516
|
toolData.credentialReferenceId = credentialId;
|
|
2517
2517
|
}
|
|
2518
2518
|
}
|
|
2519
|
+
if ("credential" in mcpTool2.config && mcpTool2.config.credential) {
|
|
2520
|
+
const credential2 = mcpTool2.config.credential;
|
|
2521
|
+
if (credential2 && credential2.id && credential2.__type !== "credential-ref") {
|
|
2522
|
+
if (!credentialReferencesObject[credential2.id]) {
|
|
2523
|
+
credentialReferencesObject[credential2.id] = {
|
|
2524
|
+
id: credential2.id,
|
|
2525
|
+
type: credential2.type,
|
|
2526
|
+
credentialStoreId: credential2.credentialStoreId,
|
|
2527
|
+
retrievalParams: credential2.retrievalParams
|
|
2528
|
+
};
|
|
2529
|
+
credentialUsageMap[credential2.id] = [];
|
|
2530
|
+
}
|
|
2531
|
+
credentialUsageMap[credential2.id].push({
|
|
2532
|
+
type: "tool",
|
|
2533
|
+
id: toolId
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2519
2537
|
toolsObject[toolId] = toolData;
|
|
2520
2538
|
}
|
|
2521
2539
|
}
|
package/dist/index.js
CHANGED
|
@@ -2489,6 +2489,24 @@ var Project = class {
|
|
|
2489
2489
|
toolData.credentialReferenceId = credentialId;
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
+
if ("credential" in mcpTool2.config && mcpTool2.config.credential) {
|
|
2493
|
+
const credential2 = mcpTool2.config.credential;
|
|
2494
|
+
if (credential2 && credential2.id && credential2.__type !== "credential-ref") {
|
|
2495
|
+
if (!credentialReferencesObject[credential2.id]) {
|
|
2496
|
+
credentialReferencesObject[credential2.id] = {
|
|
2497
|
+
id: credential2.id,
|
|
2498
|
+
type: credential2.type,
|
|
2499
|
+
credentialStoreId: credential2.credentialStoreId,
|
|
2500
|
+
retrievalParams: credential2.retrievalParams
|
|
2501
|
+
};
|
|
2502
|
+
credentialUsageMap[credential2.id] = [];
|
|
2503
|
+
}
|
|
2504
|
+
credentialUsageMap[credential2.id].push({
|
|
2505
|
+
type: "tool",
|
|
2506
|
+
id: toolId
|
|
2507
|
+
});
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2492
2510
|
toolsObject[toolId] = toolData;
|
|
2493
2511
|
}
|
|
2494
2512
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-sdk",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.7",
|
|
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.22.
|
|
15
|
+
"@inkeep/agents-core": "^0.22.7"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/js-yaml": "^4.0.9",
|