juno-code 1.0.29 → 1.0.30

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.mjs CHANGED
@@ -44,7 +44,7 @@ var __export = (target, all) => {
44
44
  var version;
45
45
  var init_version = __esm({
46
46
  "src/version.ts"() {
47
- version = "1.0.29";
47
+ version = "1.0.30";
48
48
  }
49
49
  });
50
50
  function isHeadlessEnvironment() {
@@ -4830,8 +4830,23 @@ async function ensureHooksConfig(baseDir) {
4830
4830
  await fs.writeJson(configPath, defaultConfig, { spaces: 2 });
4831
4831
  } else {
4832
4832
  const existingConfig = await fs.readJson(configPath);
4833
+ let needsUpdate = false;
4833
4834
  if (!existingConfig.hooks) {
4834
4835
  existingConfig.hooks = allHookTypes;
4836
+ needsUpdate = true;
4837
+ }
4838
+ if (!existingConfig.defaultModel) {
4839
+ const subagent = existingConfig.defaultSubagent || "claude";
4840
+ const modelDefaults = {
4841
+ claude: ":sonnet",
4842
+ codex: "gpt-5",
4843
+ gemini: "gemini-2.5-pro",
4844
+ cursor: "auto"
4845
+ };
4846
+ existingConfig.defaultModel = modelDefaults[subagent] || ":sonnet";
4847
+ needsUpdate = true;
4848
+ }
4849
+ if (needsUpdate) {
4835
4850
  await fs.writeJson(configPath, existingConfig, { spaces: 2 });
4836
4851
  }
4837
4852
  }
@@ -7229,6 +7244,8 @@ var ExecutionEngine = class extends EventEmitter {
7229
7244
  project_path: context.request.workingDirectory,
7230
7245
  ...context.request.model !== void 0 && { model: context.request.model },
7231
7246
  ...context.request.agents !== void 0 && { agents: context.request.agents },
7247
+ ...context.request.tools !== void 0 && { tools: context.request.tools },
7248
+ ...context.request.disallowedTools !== void 0 && { disallowedTools: context.request.disallowedTools },
7232
7249
  iteration: iterationNumber
7233
7250
  },
7234
7251
  timeout: context.request.timeoutMs || this.engineConfig.config.mcpTimeout,
@@ -7665,6 +7682,12 @@ function createExecutionRequest(options) {
7665
7682
  if (options.agents !== void 0) {
7666
7683
  result.agents = options.agents;
7667
7684
  }
7685
+ if (options.tools !== void 0) {
7686
+ result.tools = options.tools;
7687
+ }
7688
+ if (options.disallowedTools !== void 0) {
7689
+ result.disallowedTools = options.disallowedTools;
7690
+ }
7668
7691
  if (options.mcpServerName !== void 0) {
7669
7692
  result.mcpServerName = options.mcpServerName;
7670
7693
  }