@inkeep/agents-run-api 0.23.0 → 0.23.2
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.
|
@@ -644,21 +644,13 @@ var _VercelSandboxExecutor = class _VercelSandboxExecutor {
|
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
646
646
|
* Create .env file content from environment variables
|
|
647
|
+
* Note: Currently creates empty placeholders. Values will be populated in the future.
|
|
647
648
|
*/
|
|
648
649
|
createEnvFileContent(envVarNames) {
|
|
649
650
|
const envLines = [];
|
|
650
651
|
for (const varName of envVarNames) {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
const escapedValue = value.replace(/"/g, '\\"').replace(/\n/g, "\\n");
|
|
654
|
-
envLines.push(`${varName}="${escapedValue}"`);
|
|
655
|
-
logger2.debug({ varName }, "Adding environment variable to sandbox");
|
|
656
|
-
} else {
|
|
657
|
-
logger2.warn(
|
|
658
|
-
{ varName },
|
|
659
|
-
"Environment variable referenced in code but not found in host environment"
|
|
660
|
-
);
|
|
661
|
-
}
|
|
652
|
+
envLines.push(`${varName}=""`);
|
|
653
|
+
logger2.debug({ varName }, "Adding environment variable placeholder to sandbox");
|
|
662
654
|
}
|
|
663
655
|
return envLines.join("\n");
|
|
664
656
|
}
|
|
@@ -778,7 +770,7 @@ var _VercelSandboxExecutor = class _VercelSandboxExecutor {
|
|
|
778
770
|
envVarCount: envVars.size,
|
|
779
771
|
envVars: Array.from(envVars)
|
|
780
772
|
},
|
|
781
|
-
"
|
|
773
|
+
"Creating environment variable placeholders in sandbox"
|
|
782
774
|
);
|
|
783
775
|
}
|
|
784
776
|
}
|
|
@@ -786,7 +778,8 @@ var _VercelSandboxExecutor = class _VercelSandboxExecutor {
|
|
|
786
778
|
logger2.info(
|
|
787
779
|
{
|
|
788
780
|
functionId,
|
|
789
|
-
runtime: this.config.runtime === "typescript" ? "tsx" : "node"
|
|
781
|
+
runtime: this.config.runtime === "typescript" ? "tsx" : "node",
|
|
782
|
+
hasEnvVars: envVars.size > 0
|
|
790
783
|
},
|
|
791
784
|
`Execution code written to file for runtime ${this.config.runtime}`
|
|
792
785
|
);
|
package/dist/index.cjs
CHANGED
|
@@ -1037,21 +1037,13 @@ var init_VercelSandboxExecutor = __esm({
|
|
|
1037
1037
|
}
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Create .env file content from environment variables
|
|
1040
|
+
* Note: Currently creates empty placeholders. Values will be populated in the future.
|
|
1040
1041
|
*/
|
|
1041
1042
|
createEnvFileContent(envVarNames) {
|
|
1042
1043
|
const envLines = [];
|
|
1043
1044
|
for (const varName of envVarNames) {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
const escapedValue = value.replace(/"/g, '\\"').replace(/\n/g, "\\n");
|
|
1047
|
-
envLines.push(`${varName}="${escapedValue}"`);
|
|
1048
|
-
logger17.debug({ varName }, "Adding environment variable to sandbox");
|
|
1049
|
-
} else {
|
|
1050
|
-
logger17.warn(
|
|
1051
|
-
{ varName },
|
|
1052
|
-
"Environment variable referenced in code but not found in host environment"
|
|
1053
|
-
);
|
|
1054
|
-
}
|
|
1045
|
+
envLines.push(`${varName}=""`);
|
|
1046
|
+
logger17.debug({ varName }, "Adding environment variable placeholder to sandbox");
|
|
1055
1047
|
}
|
|
1056
1048
|
return envLines.join("\n");
|
|
1057
1049
|
}
|
|
@@ -1171,7 +1163,7 @@ var init_VercelSandboxExecutor = __esm({
|
|
|
1171
1163
|
envVarCount: envVars.size,
|
|
1172
1164
|
envVars: Array.from(envVars)
|
|
1173
1165
|
},
|
|
1174
|
-
"
|
|
1166
|
+
"Creating environment variable placeholders in sandbox"
|
|
1175
1167
|
);
|
|
1176
1168
|
}
|
|
1177
1169
|
}
|
|
@@ -1179,7 +1171,8 @@ var init_VercelSandboxExecutor = __esm({
|
|
|
1179
1171
|
logger17.info(
|
|
1180
1172
|
{
|
|
1181
1173
|
functionId,
|
|
1182
|
-
runtime: this.config.runtime === "typescript" ? "tsx" : "node"
|
|
1174
|
+
runtime: this.config.runtime === "typescript" ? "tsx" : "node",
|
|
1175
|
+
hasEnvVars: envVars.size > 0
|
|
1183
1176
|
},
|
|
1184
1177
|
`Execution code written to file for runtime ${this.config.runtime}`
|
|
1185
1178
|
);
|
package/dist/index.js
CHANGED
|
@@ -7048,7 +7048,7 @@ var Agent = class {
|
|
|
7048
7048
|
if (functionToolsData.length === 0) {
|
|
7049
7049
|
return functionTools;
|
|
7050
7050
|
}
|
|
7051
|
-
const { SandboxExecutorFactory } = await import('./SandboxExecutorFactory-
|
|
7051
|
+
const { SandboxExecutorFactory } = await import('./SandboxExecutorFactory-QVNCS6YN.js');
|
|
7052
7052
|
const sandboxExecutor = SandboxExecutorFactory.getInstance();
|
|
7053
7053
|
for (const functionToolDef of functionToolsData) {
|
|
7054
7054
|
const functionId = functionToolDef.functionId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"traverse": "^0.6.11",
|
|
53
53
|
"ts-pattern": "^5.7.1",
|
|
54
54
|
"zod": "^4.1.11",
|
|
55
|
-
"@inkeep/agents-core": "^0.23.
|
|
55
|
+
"@inkeep/agents-core": "^0.23.2"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
58
|
"keytar": "^7.9.0"
|