fix(skills): wire Ito training bridge and reconcile manifests

This commit is contained in:
Affaan Mustafa
2026-08-07 15:06:46 -04:00
parent 8aabdc9272
commit c7ebc65e7c
7 changed files with 62 additions and 12 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ const ECC_ITO_CONTROL_KEYS = Object.freeze([
"ECC_ITO_CLI_EXECUTABLE",
"NODE_ENV",
]);
const ITO_RUNTIME_COMMANDS = new Set(["login", "logout", "auth", "find", "status"]);
const ITO_RUNTIME_COMMANDS = new Set(["login", "logout", "auth", "find", "status", "train-launch", "train-status", "train-logs", "train-resume", "train-cancel", "train-cleanup"]);
function copyDefined(source, target, key) {
if (typeof source[key] === "string") {
@@ -97,7 +97,7 @@ function createSafeItoInvocationEnvironment(
return createSafeItoEnvironment(source, {
includeControls: options.includeControls === true,
includeItoRuntime: ITO_RUNTIME_COMMANDS.has(command),
includeItoApiKey: ["auth", "find", "status"].includes(command),
includeItoApiKey: ["auth", "find", "status"].includes(command) || command?.startsWith("train-") === true,
includeItoEvals: command === "evals",
});
}