jules-orchestrator-kit 0.71.0 → 0.72.0

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.
@@ -130,22 +130,26 @@ export function planInit(root = process.cwd(), options = {}) {
130
130
  // scaffolded limits always match what the runtime will later enforce.
131
131
  const tierPresetLimits = TIER_PROFILES[tierName] || TIER_PROFILES[FALLBACK_TIER];
132
132
 
133
- // Preserve existing config if present
133
+ // Preserve existing config if present (ignored when pristine requested)
134
134
  let existingConfig = {};
135
- const existingConfigPath = join(root, ".agent", "config.yml");
136
- if (existsSync(existingConfigPath)) {
137
- try {
138
- existingConfig = parseYaml(readFileSync(existingConfigPath, "utf-8")) || {};
139
- } catch (_) {}
135
+ if (!options.pristine) {
136
+ const existingConfigPath = join(root, ".agent", "config.yml");
137
+ if (existsSync(existingConfigPath)) {
138
+ try {
139
+ existingConfig = parseYaml(readFileSync(existingConfigPath, "utf-8")) || {};
140
+ } catch (_) {}
141
+ }
140
142
  }
141
143
 
142
- // Preserve existing jules.yml if present
144
+ // Preserve existing jules.yml if present (ignored when pristine requested)
143
145
  let existingJules = {};
144
- const existingJulesPath = join(root, ".agent", "jules.yml");
145
- if (existsSync(existingJulesPath)) {
146
- try {
147
- existingJules = parseYaml(readFileSync(existingJulesPath, "utf-8")) || {};
148
- } catch (_) {}
146
+ if (!options.pristine) {
147
+ const existingJulesPath = join(root, ".agent", "jules.yml");
148
+ if (existsSync(existingJulesPath)) {
149
+ try {
150
+ existingJules = parseYaml(readFileSync(existingJulesPath, "utf-8")) || {};
151
+ } catch (_) {}
152
+ }
149
153
  }
150
154
 
151
155
  const customLimits = options.limits || existingConfig.limits;
@@ -87,7 +87,7 @@ export function detectStackOracles(root = process.cwd()) {
87
87
  const flag = isCargoWs ? " --workspace" : "";
88
88
  candidates.testCmd = `cargo test${flag}`;
89
89
  candidates.buildCmd = `cargo build${flag}`;
90
- candidates.lintCmd = `cargo clippy${flag} -- -D warnings`;
90
+ candidates.lintCmd = `cargo clippy${flag}`;
91
91
  candidates.typecheckCmd = `cargo check${flag}`;
92
92
  }
93
93