@inkeep/agents-core 0.33.0 → 0.33.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 +32 -13
- package/dist/index.js +32 -13
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -215730,9 +215730,11 @@ var ContextConfigBuilder = class {
|
|
|
215730
215730
|
const credentialReferenceId = credentialReference?.id || rest.credentialReferenceId;
|
|
215731
215731
|
processedContextVariables[key] = {
|
|
215732
215732
|
...rest,
|
|
215733
|
-
responseSchema: convertZodToJsonSchema(definition.responseSchema)
|
|
215734
|
-
credentialReferenceId
|
|
215733
|
+
responseSchema: convertZodToJsonSchema(definition.responseSchema)
|
|
215735
215734
|
};
|
|
215735
|
+
if (credentialReferenceId !== void 0) {
|
|
215736
|
+
processedContextVariables[key].credentialReferenceId = credentialReferenceId;
|
|
215737
|
+
}
|
|
215736
215738
|
logger2.debug(
|
|
215737
215739
|
{
|
|
215738
215740
|
contextVariableKey: key,
|
|
@@ -215958,22 +215960,39 @@ function headers(options) {
|
|
|
215958
215960
|
}
|
|
215959
215961
|
function fetchDefinition(options) {
|
|
215960
215962
|
const fetchConfig = options.fetchConfig;
|
|
215961
|
-
|
|
215963
|
+
const result = {
|
|
215962
215964
|
id: options.id,
|
|
215963
|
-
name: options.name,
|
|
215964
215965
|
trigger: options.trigger,
|
|
215965
215966
|
fetchConfig: {
|
|
215966
|
-
url: fetchConfig.url
|
|
215967
|
-
method: fetchConfig.method,
|
|
215968
|
-
headers: fetchConfig.headers,
|
|
215969
|
-
body: fetchConfig.body,
|
|
215970
|
-
transform: fetchConfig.transform,
|
|
215971
|
-
timeout: fetchConfig.timeout
|
|
215967
|
+
url: fetchConfig.url
|
|
215972
215968
|
},
|
|
215973
|
-
responseSchema: options.responseSchema
|
|
215974
|
-
defaultValue: options.defaultValue,
|
|
215975
|
-
credentialReferenceId: options.credentialReference?.id
|
|
215969
|
+
responseSchema: options.responseSchema
|
|
215976
215970
|
};
|
|
215971
|
+
if (options.name !== void 0) {
|
|
215972
|
+
result.name = options.name;
|
|
215973
|
+
}
|
|
215974
|
+
if (options.defaultValue !== void 0) {
|
|
215975
|
+
result.defaultValue = options.defaultValue;
|
|
215976
|
+
}
|
|
215977
|
+
if (fetchConfig.method !== void 0) {
|
|
215978
|
+
result.fetchConfig.method = fetchConfig.method;
|
|
215979
|
+
}
|
|
215980
|
+
if (fetchConfig.headers !== void 0) {
|
|
215981
|
+
result.fetchConfig.headers = fetchConfig.headers;
|
|
215982
|
+
}
|
|
215983
|
+
if (fetchConfig.transform !== void 0) {
|
|
215984
|
+
result.fetchConfig.transform = fetchConfig.transform;
|
|
215985
|
+
}
|
|
215986
|
+
if (fetchConfig.body !== void 0) {
|
|
215987
|
+
result.fetchConfig.body = fetchConfig.body;
|
|
215988
|
+
}
|
|
215989
|
+
if (fetchConfig.timeout !== void 0) {
|
|
215990
|
+
result.fetchConfig.timeout = fetchConfig.timeout;
|
|
215991
|
+
}
|
|
215992
|
+
if (options.credentialReference?.id !== void 0) {
|
|
215993
|
+
result.credentialReferenceId = options.credentialReference.id;
|
|
215994
|
+
}
|
|
215995
|
+
return result;
|
|
215977
215996
|
}
|
|
215978
215997
|
var logger3 = getLogger("template-engine");
|
|
215979
215998
|
var _TemplateEngine = class _TemplateEngine {
|
package/dist/index.js
CHANGED
|
@@ -213063,9 +213063,11 @@ var ContextConfigBuilder = class {
|
|
|
213063
213063
|
const credentialReferenceId = credentialReference?.id || rest.credentialReferenceId;
|
|
213064
213064
|
processedContextVariables[key] = {
|
|
213065
213065
|
...rest,
|
|
213066
|
-
responseSchema: convertZodToJsonSchema(definition.responseSchema)
|
|
213067
|
-
credentialReferenceId
|
|
213066
|
+
responseSchema: convertZodToJsonSchema(definition.responseSchema)
|
|
213068
213067
|
};
|
|
213068
|
+
if (credentialReferenceId !== void 0) {
|
|
213069
|
+
processedContextVariables[key].credentialReferenceId = credentialReferenceId;
|
|
213070
|
+
}
|
|
213069
213071
|
logger.debug(
|
|
213070
213072
|
{
|
|
213071
213073
|
contextVariableKey: key,
|
|
@@ -213291,22 +213293,39 @@ function headers(options) {
|
|
|
213291
213293
|
}
|
|
213292
213294
|
function fetchDefinition(options) {
|
|
213293
213295
|
const fetchConfig = options.fetchConfig;
|
|
213294
|
-
|
|
213296
|
+
const result = {
|
|
213295
213297
|
id: options.id,
|
|
213296
|
-
name: options.name,
|
|
213297
213298
|
trigger: options.trigger,
|
|
213298
213299
|
fetchConfig: {
|
|
213299
|
-
url: fetchConfig.url
|
|
213300
|
-
method: fetchConfig.method,
|
|
213301
|
-
headers: fetchConfig.headers,
|
|
213302
|
-
body: fetchConfig.body,
|
|
213303
|
-
transform: fetchConfig.transform,
|
|
213304
|
-
timeout: fetchConfig.timeout
|
|
213300
|
+
url: fetchConfig.url
|
|
213305
213301
|
},
|
|
213306
|
-
responseSchema: options.responseSchema
|
|
213307
|
-
defaultValue: options.defaultValue,
|
|
213308
|
-
credentialReferenceId: options.credentialReference?.id
|
|
213302
|
+
responseSchema: options.responseSchema
|
|
213309
213303
|
};
|
|
213304
|
+
if (options.name !== void 0) {
|
|
213305
|
+
result.name = options.name;
|
|
213306
|
+
}
|
|
213307
|
+
if (options.defaultValue !== void 0) {
|
|
213308
|
+
result.defaultValue = options.defaultValue;
|
|
213309
|
+
}
|
|
213310
|
+
if (fetchConfig.method !== void 0) {
|
|
213311
|
+
result.fetchConfig.method = fetchConfig.method;
|
|
213312
|
+
}
|
|
213313
|
+
if (fetchConfig.headers !== void 0) {
|
|
213314
|
+
result.fetchConfig.headers = fetchConfig.headers;
|
|
213315
|
+
}
|
|
213316
|
+
if (fetchConfig.transform !== void 0) {
|
|
213317
|
+
result.fetchConfig.transform = fetchConfig.transform;
|
|
213318
|
+
}
|
|
213319
|
+
if (fetchConfig.body !== void 0) {
|
|
213320
|
+
result.fetchConfig.body = fetchConfig.body;
|
|
213321
|
+
}
|
|
213322
|
+
if (fetchConfig.timeout !== void 0) {
|
|
213323
|
+
result.fetchConfig.timeout = fetchConfig.timeout;
|
|
213324
|
+
}
|
|
213325
|
+
if (options.credentialReference?.id !== void 0) {
|
|
213326
|
+
result.credentialReferenceId = options.credentialReference.id;
|
|
213327
|
+
}
|
|
213328
|
+
return result;
|
|
213310
213329
|
}
|
|
213311
213330
|
var logger2 = getLogger("template-engine");
|
|
213312
213331
|
var _TemplateEngine = class _TemplateEngine {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|