juno-code 1.0.28 → 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.js CHANGED
@@ -75,7 +75,7 @@ var __export = (target, all) => {
75
75
  exports.version = void 0;
76
76
  var init_version = __esm({
77
77
  "src/version.ts"() {
78
- exports.version = "1.0.28";
78
+ exports.version = "1.0.30";
79
79
  }
80
80
  });
81
81
  function isHeadlessEnvironment() {
@@ -4861,8 +4861,23 @@ async function ensureHooksConfig(baseDir) {
4861
4861
  await fs__default.default.writeJson(configPath, defaultConfig, { spaces: 2 });
4862
4862
  } else {
4863
4863
  const existingConfig = await fs__default.default.readJson(configPath);
4864
+ let needsUpdate = false;
4864
4865
  if (!existingConfig.hooks) {
4865
4866
  existingConfig.hooks = allHookTypes;
4867
+ needsUpdate = true;
4868
+ }
4869
+ if (!existingConfig.defaultModel) {
4870
+ const subagent = existingConfig.defaultSubagent || "claude";
4871
+ const modelDefaults = {
4872
+ claude: ":sonnet",
4873
+ codex: "gpt-5",
4874
+ gemini: "gemini-2.5-pro",
4875
+ cursor: "auto"
4876
+ };
4877
+ existingConfig.defaultModel = modelDefaults[subagent] || ":sonnet";
4878
+ needsUpdate = true;
4879
+ }
4880
+ if (needsUpdate) {
4866
4881
  await fs__default.default.writeJson(configPath, existingConfig, { spaces: 2 });
4867
4882
  }
4868
4883
  }
@@ -7260,6 +7275,8 @@ var ExecutionEngine = class extends events.EventEmitter {
7260
7275
  project_path: context.request.workingDirectory,
7261
7276
  ...context.request.model !== void 0 && { model: context.request.model },
7262
7277
  ...context.request.agents !== void 0 && { agents: context.request.agents },
7278
+ ...context.request.tools !== void 0 && { tools: context.request.tools },
7279
+ ...context.request.disallowedTools !== void 0 && { disallowedTools: context.request.disallowedTools },
7263
7280
  iteration: iterationNumber
7264
7281
  },
7265
7282
  timeout: context.request.timeoutMs || this.engineConfig.config.mcpTimeout,
@@ -7696,6 +7713,12 @@ function createExecutionRequest(options) {
7696
7713
  if (options.agents !== void 0) {
7697
7714
  result.agents = options.agents;
7698
7715
  }
7716
+ if (options.tools !== void 0) {
7717
+ result.tools = options.tools;
7718
+ }
7719
+ if (options.disallowedTools !== void 0) {
7720
+ result.disallowedTools = options.disallowedTools;
7721
+ }
7699
7722
  if (options.mcpServerName !== void 0) {
7700
7723
  result.mcpServerName = options.mcpServerName;
7701
7724
  }