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/bin/cli.js +69 -5
- package/dist/bin/cli.js.map +1 -1
- package/dist/bin/cli.mjs +69 -5
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/index.js +32 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -1
- package/dist/index.mjs.map +1 -1
- package/dist/templates/services/claude.py +75 -17
- package/package.json +6 -6
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.
|
|
47
|
+
version = "1.0.31";
|
|
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,10 @@ 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.allowedTools !== void 0 && { allowedTools: context.request.allowedTools },
|
|
7249
|
+
...context.request.appendAllowedTools !== void 0 && { appendAllowedTools: context.request.appendAllowedTools },
|
|
7250
|
+
...context.request.disallowedTools !== void 0 && { disallowedTools: context.request.disallowedTools },
|
|
7232
7251
|
iteration: iterationNumber
|
|
7233
7252
|
},
|
|
7234
7253
|
timeout: context.request.timeoutMs || this.engineConfig.config.mcpTimeout,
|
|
@@ -7665,6 +7684,18 @@ function createExecutionRequest(options) {
|
|
|
7665
7684
|
if (options.agents !== void 0) {
|
|
7666
7685
|
result.agents = options.agents;
|
|
7667
7686
|
}
|
|
7687
|
+
if (options.tools !== void 0) {
|
|
7688
|
+
result.tools = options.tools;
|
|
7689
|
+
}
|
|
7690
|
+
if (options.allowedTools !== void 0) {
|
|
7691
|
+
result.allowedTools = options.allowedTools;
|
|
7692
|
+
}
|
|
7693
|
+
if (options.appendAllowedTools !== void 0) {
|
|
7694
|
+
result.appendAllowedTools = options.appendAllowedTools;
|
|
7695
|
+
}
|
|
7696
|
+
if (options.disallowedTools !== void 0) {
|
|
7697
|
+
result.disallowedTools = options.disallowedTools;
|
|
7698
|
+
}
|
|
7668
7699
|
if (options.mcpServerName !== void 0) {
|
|
7669
7700
|
result.mcpServerName = options.mcpServerName;
|
|
7670
7701
|
}
|