juno-code 1.0.36 → 1.0.38

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.36";
78
+ exports.version = "1.0.38";
79
79
  }
80
80
  });
81
81
  function isHeadlessEnvironment() {
@@ -4026,6 +4026,13 @@ init_version();
4026
4026
  // src/templates/default-hooks.ts
4027
4027
  init_version();
4028
4028
  var DEFAULT_HOOKS = {
4029
+ // Executes once at the beginning of a run (before all iterations)
4030
+ // Use for: setup, environment checks, notifications, pre-run cleanup
4031
+ START_RUN: {
4032
+ commands: []
4033
+ },
4034
+ // Executes at the start of each iteration
4035
+ // Use for: file monitoring, state checks, per-iteration setup
4029
4036
  START_ITERATION: {
4030
4037
  commands: [
4031
4038
  // Monitor CLAUDE.md file size
@@ -4034,6 +4041,16 @@ var DEFAULT_HOOKS = {
4034
4041
  '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
4042
  "./.juno_task/scripts/cleanup_feedback.sh"
4036
4043
  ]
4044
+ },
4045
+ // Executes at the end of each iteration
4046
+ // Use for: validation, logging, per-iteration cleanup, progress tracking
4047
+ END_ITERATION: {
4048
+ commands: []
4049
+ },
4050
+ // Executes once at the end of a run (after all iterations complete)
4051
+ // Use for: final cleanup, notifications, reports, post-run actions
4052
+ END_RUN: {
4053
+ commands: []
4037
4054
  }
4038
4055
  };
4039
4056
  function getDefaultHooks() {