@multiclawcli/core 0.11.0 → 0.12.0

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.js CHANGED
@@ -1175,7 +1175,7 @@ async function validateToolsPolicy(config, options = {}) {
1175
1175
  const descriptions = /* @__PURE__ */ new Map();
1176
1176
  for (const agent of agents2) {
1177
1177
  checkAbort();
1178
- if (!hasExplicitTools(agent)) continue;
1178
+ if (!hasExplicitTools(agent) && (agent.tools !== void 0 || !config.defaults?.tools)) continue;
1179
1179
  const runtime = runtimeRegistry.get(agent.runtime ?? "acp");
1180
1180
  const command = resolveCommand(agent, config);
1181
1181
  let commands = descriptions.get(runtime);
@@ -2479,7 +2479,7 @@ var AgentRunner = class {
2479
2479
  const runtime = runtimeRegistry.get(agent.runtime ?? "acp");
2480
2480
  const retries = agent.retries ?? 0;
2481
2481
  const timeout = agent.timeout ?? 6e5;
2482
- const tools = agent.tools ?? ["Read", "Write", "Bash"];
2482
+ const tools = agent.tools ?? this.config.defaults?.tools ?? ["Read", "Write", "Bash"];
2483
2483
  const completed = await withTimeout(
2484
2484
  (innerSignal) => withRetry(
2485
2485
  async (attempt) => {
@@ -1,4 +1,4 @@
1
- import type { AgentDefinition } from "./agent";
1
+ import type { AgentDefinition, ToolName } from "./agent";
2
2
  import type { LeaderMessage } from "./leader";
3
3
  import type { RuntimePermissionHandler, RuntimeQuestionHandler } from "./runtime";
4
4
  /**
@@ -146,6 +146,7 @@ export interface MultiClawConfig {
146
146
  provider?: string;
147
147
  model?: string;
148
148
  command?: string;
149
+ tools?: ToolName[];
149
150
  };
150
151
  }
151
152
  export interface OrchestrationPreview {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiclawcli/core",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",