juno-code 1.0.29 → 1.0.31

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.29";
78
+ exports.version = "1.0.31";
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,10 @@ 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.allowedTools !== void 0 && { allowedTools: context.request.allowedTools },
7280
+ ...context.request.appendAllowedTools !== void 0 && { appendAllowedTools: context.request.appendAllowedTools },
7281
+ ...context.request.disallowedTools !== void 0 && { disallowedTools: context.request.disallowedTools },
7263
7282
  iteration: iterationNumber
7264
7283
  },
7265
7284
  timeout: context.request.timeoutMs || this.engineConfig.config.mcpTimeout,
@@ -7696,6 +7715,18 @@ function createExecutionRequest(options) {
7696
7715
  if (options.agents !== void 0) {
7697
7716
  result.agents = options.agents;
7698
7717
  }
7718
+ if (options.tools !== void 0) {
7719
+ result.tools = options.tools;
7720
+ }
7721
+ if (options.allowedTools !== void 0) {
7722
+ result.allowedTools = options.allowedTools;
7723
+ }
7724
+ if (options.appendAllowedTools !== void 0) {
7725
+ result.appendAllowedTools = options.appendAllowedTools;
7726
+ }
7727
+ if (options.disallowedTools !== void 0) {
7728
+ result.disallowedTools = options.disallowedTools;
7729
+ }
7699
7730
  if (options.mcpServerName !== void 0) {
7700
7731
  result.mcpServerName = options.mcpServerName;
7701
7732
  }