agentbox-sdk 0.1.307 → 0.1.308
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/agents/index.js
CHANGED
|
@@ -1152,7 +1152,14 @@ async function activateRtk(target) {
|
|
|
1152
1152
|
const env = rtkRedirectEnv(target);
|
|
1153
1153
|
const dirsToEnsure = [target.layout.claudeDir, target.layout.codexDir].map((d) => `'${d}'`).join(" ");
|
|
1154
1154
|
const cmd = `mkdir -p ${dirsToEnsure} && rtk init -g ${args}`.trim();
|
|
1155
|
-
|
|
1155
|
+
try {
|
|
1156
|
+
await target.runCommand(cmd, env);
|
|
1157
|
+
} catch (error) {
|
|
1158
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1159
|
+
console.warn(
|
|
1160
|
+
`[rtk] activation failed for ${target.provider}; agent will run without the token-saving proxy: ${message}`
|
|
1161
|
+
);
|
|
1162
|
+
}
|
|
1156
1163
|
}
|
|
1157
1164
|
|
|
1158
1165
|
// src/agents/config/setup-manifest.ts
|
package/dist/index.js
CHANGED