feat: add persistent multi-model workers and orchestration budgets
This commit is contained in:
@@ -566,6 +566,12 @@ int cst_tool_active(const cst_agent_config_t *cfg, const cst_tool_def_t *t) {
|
||||
/* plan_mode is enforced when a call runs, so tools[] stays the same */
|
||||
if (cfg->read_only && (t->perm == CST_TP_WRITE || t->perm == CST_TP_SHELL))
|
||||
return 0;
|
||||
if (cfg->orchestrate && cfg->depth == 0 &&
|
||||
(t->perm == CST_TP_WRITE || t->perm == CST_TP_SHELL))
|
||||
return 0;
|
||||
if ((cfg->read_only || (cfg->orchestrate && cfg->depth == 0)) &&
|
||||
strcmp(t->name, "download") == 0)
|
||||
return 0; /* network download writes a workspace file */
|
||||
if (cfg->depth > 0 && strcmp(t->name, "task") == 0)
|
||||
return 0;
|
||||
if (cfg->tools_only[0]) {
|
||||
|
||||
Reference in New Issue
Block a user