juno-code 1.0.9 → 1.0.12
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 +100 -11
- package/dist/bin/cli.js.map +1 -1
- package/dist/bin/cli.mjs +100 -11
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/index.js +27 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -10
- package/dist/index.mjs.map +1 -1
- package/dist/templates/scripts/cleanup_feedback.sh +3 -0
- package/dist/templates/scripts/install_requirements.sh +38 -4
- package/dist/templates/scripts/kanban.sh +19 -0
- package/package.json +1 -1
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.
|
|
78
|
+
exports.version = "1.0.12";
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
function isHeadlessEnvironment() {
|
|
@@ -4023,6 +4023,26 @@ init_version();
|
|
|
4023
4023
|
// src/core/config.ts
|
|
4024
4024
|
init_version();
|
|
4025
4025
|
|
|
4026
|
+
// src/templates/default-hooks.ts
|
|
4027
|
+
init_version();
|
|
4028
|
+
var DEFAULT_HOOKS = {
|
|
4029
|
+
START_ITERATION: {
|
|
4030
|
+
commands: [
|
|
4031
|
+
// Monitor CLAUDE.md file size
|
|
4032
|
+
'file="CLAUDE.md"; lines=$(wc -l < "$file" 2>/dev/null || echo 0); chars=$(wc -m < "$file" 2>/dev/null || echo 0); if [ "$lines" -gt 450 ] || [ "$chars" -gt 60000 ]; then juno-kanban "[Critical] file $file is too large, keep it lean and useful for every run of the agent."; fi',
|
|
4033
|
+
// Monitor AGENTS.md file size
|
|
4034
|
+
'file="AGENTS.md"; lines=$(wc -l < "$file" 2>/dev/null || echo 0); chars=$(wc -m < "$file" 2>/dev/null || echo 0); if [ "$lines" -gt 450 ] || [ "$chars" -gt 60000 ]; then juno-kanban "[Critical] file $file is too large, keep it lean and useful for every run of the agent."; fi',
|
|
4035
|
+
"./.juno_task/scripts/cleanup_feedback.sh"
|
|
4036
|
+
]
|
|
4037
|
+
}
|
|
4038
|
+
};
|
|
4039
|
+
function getDefaultHooks() {
|
|
4040
|
+
return JSON.parse(JSON.stringify(DEFAULT_HOOKS));
|
|
4041
|
+
}
|
|
4042
|
+
function getDefaultHooksJson(indent = 2) {
|
|
4043
|
+
return JSON.stringify(DEFAULT_HOOKS, null, indent);
|
|
4044
|
+
}
|
|
4045
|
+
|
|
4026
4046
|
// src/core/profiles.ts
|
|
4027
4047
|
init_version();
|
|
4028
4048
|
var PartialJunoTaskConfigSchema = zod.z.object({
|
|
@@ -4505,8 +4525,8 @@ var DEFAULT_CONFIG = {
|
|
|
4505
4525
|
// Paths
|
|
4506
4526
|
workingDirectory: process.cwd(),
|
|
4507
4527
|
sessionDirectory: path5__namespace.join(process.cwd(), ".juno_task"),
|
|
4508
|
-
// Hooks configuration
|
|
4509
|
-
hooks:
|
|
4528
|
+
// Hooks configuration - populated with default hooks template
|
|
4529
|
+
hooks: getDefaultHooks()
|
|
4510
4530
|
};
|
|
4511
4531
|
var GLOBAL_CONFIG_FILE_NAMES = [
|
|
4512
4532
|
"juno-task.config.json",
|
|
@@ -4799,12 +4819,7 @@ async function ensureHooksConfig(baseDir) {
|
|
|
4799
4819
|
const configPath = path5__namespace.join(configDir, "config.json");
|
|
4800
4820
|
await fs__default.default.ensureDir(configDir);
|
|
4801
4821
|
const configExists = await fs__default.default.pathExists(configPath);
|
|
4802
|
-
const allHookTypes =
|
|
4803
|
-
START_RUN: { commands: [] },
|
|
4804
|
-
START_ITERATION: { commands: [] },
|
|
4805
|
-
END_ITERATION: { commands: [] },
|
|
4806
|
-
END_RUN: { commands: [] }
|
|
4807
|
-
};
|
|
4822
|
+
const allHookTypes = getDefaultHooks();
|
|
4808
4823
|
if (!configExists) {
|
|
4809
4824
|
const defaultConfig = {
|
|
4810
4825
|
...DEFAULT_CONFIG,
|
|
@@ -14769,6 +14784,7 @@ exports.DEFAULT_CATEGORY_SEVERITY = DEFAULT_CATEGORY_SEVERITY;
|
|
|
14769
14784
|
exports.DEFAULT_CATEGORY_STRATEGY = DEFAULT_CATEGORY_STRATEGY;
|
|
14770
14785
|
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
|
|
14771
14786
|
exports.DEFAULT_ERROR_RECOVERY_CONFIG = DEFAULT_ERROR_RECOVERY_CONFIG;
|
|
14787
|
+
exports.DEFAULT_HOOKS = DEFAULT_HOOKS;
|
|
14772
14788
|
exports.DEFAULT_PROGRESS_CONFIG = DEFAULT_PROGRESS_CONFIG;
|
|
14773
14789
|
exports.DEFAULT_RATE_LIMIT_CONFIG = DEFAULT_RATE_LIMIT_CONFIG;
|
|
14774
14790
|
exports.DependencyValidationError = DependencyValidationError;
|
|
@@ -14898,6 +14914,8 @@ exports.getColorSupport = getColorSupport;
|
|
|
14898
14914
|
exports.getConfigDirectory = getConfigDirectory;
|
|
14899
14915
|
exports.getCpuUsage = getCpuUsage;
|
|
14900
14916
|
exports.getDataDirectory = getDataDirectory;
|
|
14917
|
+
exports.getDefaultHooks = getDefaultHooks;
|
|
14918
|
+
exports.getDefaultHooksJson = getDefaultHooksJson;
|
|
14901
14919
|
exports.getEnvVar = getEnvVar;
|
|
14902
14920
|
exports.getEnvVarWithDefault = getEnvVarWithDefault;
|
|
14903
14921
|
exports.getEnvironmentType = getEnvironmentType;
|