coder-config 0.41.19 → 0.41.23

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/lib/constants.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Constants and tool path configurations
3
3
  */
4
4
 
5
- const VERSION = '0.41.19';
5
+ const VERSION = '0.41.23';
6
6
 
7
7
  // Tool-specific path configurations
8
8
  const TOOL_PATHS = {
package/lib/loops.js CHANGED
@@ -126,7 +126,6 @@ function saveHistory(installDir, data) {
126
126
  function getDefaultConfig() {
127
127
  return {
128
128
  maxIterations: 50,
129
- maxCost: 10.00,
130
129
  autoApprovePlan: false,
131
130
  maxClarifyIterations: 5,
132
131
  completionPromise: 'DONE' // For ralph-loop plugin integration
@@ -165,11 +164,6 @@ function createLoopState(name, task, options = {}) {
165
164
  max: maxIterations,
166
165
  history: []
167
166
  },
168
- budget: {
169
- maxIterations: maxIterations,
170
- maxCost: config.maxCost,
171
- currentCost: 0
172
- },
173
167
  completionPromise: completionPromise, // For ralph-loop plugin
174
168
  taskComplete: false,
175
169
  createdAt: new Date().toISOString(),
@@ -204,9 +198,6 @@ function loopList(installDir) {
204
198
 
205
199
  console.log(`${statusIcon} ${loop.name} ${phaseLabel} ${iterLabel}`);
206
200
  console.log(` Task: ${(loop.task?.original || '').substring(0, 60)}${(loop.task?.original || '').length > 60 ? '...' : ''}`);
207
- if (loop.budget?.currentCost > 0) {
208
- console.log(` Cost: $${loop.budget.currentCost.toFixed(2)}/$${loop.budget.maxCost.toFixed(2)}`);
209
- }
210
201
  }
211
202
  console.log('');
212
203
  return enrichedLoops;
@@ -320,11 +311,6 @@ function loopUpdate(installDir, idOrName, updates) {
320
311
  state.task = { ...state.task, ...updates.task };
321
312
  }
322
313
 
323
- // Update budget
324
- if (updates.budget) {
325
- state.budget = { ...state.budget, ...updates.budget };
326
- }
327
-
328
314
  // Update iterations
329
315
  if (updates.iterations) {
330
316
  state.iterations = { ...state.iterations, ...updates.iterations };
@@ -537,7 +523,7 @@ function displayLoopStatus(installDir, state) {
537
523
  console.log(` Status: ${state.status}${state.pauseReason ? ` (${state.pauseReason})` : ''}`);
538
524
  console.log(` Phase: ${state.phase}`);
539
525
  console.log(` Iteration: ${state.iterations.current}/${state.iterations.max}`);
540
- console.log(` Cost: $${state.budget.currentCost.toFixed(2)}/$${state.budget.maxCost.toFixed(2)}`);
526
+ console.log(` Completion Promise: ${state.completionPromise || 'DONE'}`);
541
527
  console.log(` Task: ${state.task.original}`);
542
528
 
543
529
  if (state.task.clarified) {
@@ -574,7 +560,6 @@ function loopHistory(installDir) {
574
560
  console.log(`${statusIcon} ${entry.name}`);
575
561
  console.log(` Completed: ${entry.completedAt}`);
576
562
  console.log(` Iterations: ${entry.totalIterations}`);
577
- console.log(` Cost: $${entry.totalCost?.toFixed(2) || '0.00'}`);
578
563
  }
579
564
  console.log('');
580
565
  return history.completed;
@@ -594,7 +579,6 @@ function archiveLoop(installDir, loopId) {
594
579
  task: state.task.original,
595
580
  status: state.status,
596
581
  totalIterations: state.iterations.current,
597
- totalCost: state.budget.currentCost,
598
582
  createdAt: state.createdAt,
599
583
  completedAt: state.completedAt || new Date().toISOString()
600
584
  });
@@ -622,7 +606,6 @@ function loopConfig(installDir, updates = null) {
622
606
  if (!updates) {
623
607
  console.log('\n⚙️ Loop Configuration:\n');
624
608
  console.log(` Max Iterations: ${data.config.maxIterations}`);
625
- console.log(` Max Cost: $${data.config.maxCost.toFixed(2)}`);
626
609
  console.log(` Auto-approve Plan: ${data.config.autoApprovePlan}`);
627
610
  console.log(` Max Clarify Iterations: ${data.config.maxClarifyIterations}`);
628
611
  console.log(` Completion Promise: ${data.config.completionPromise || 'DONE'}`);
@@ -634,9 +617,6 @@ function loopConfig(installDir, updates = null) {
634
617
  if (updates.maxIterations !== undefined) {
635
618
  data.config.maxIterations = parseInt(updates.maxIterations, 10);
636
619
  }
637
- if (updates.maxCost !== undefined) {
638
- data.config.maxCost = parseFloat(updates.maxCost);
639
- }
640
620
  if (updates.autoApprovePlan !== undefined) {
641
621
  data.config.autoApprovePlan = updates.autoApprovePlan === true || updates.autoApprovePlan === 'true';
642
622
  }
@@ -682,11 +662,6 @@ function recordIteration(installDir, loopId, iteration) {
682
662
  state.iterations.history.push(iteration);
683
663
  state.iterations.current = iteration.n;
684
664
 
685
- // Update cost
686
- if (iteration.cost) {
687
- state.budget.currentCost += iteration.cost;
688
- }
689
-
690
665
  // Save iteration file
691
666
  const iterDir = path.join(getLoopDir(installDir, loopId), 'iterations');
692
667
  if (!fs.existsSync(iterDir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder-config",
3
- "version": "0.41.19",
3
+ "version": "0.41.23",
4
4
  "description": "Configuration manager for AI coding tools - Claude Code, Gemini CLI, Codex CLI, Antigravity. Manage MCPs, rules, permissions, memory, and workstreams.",
5
5
  "author": "regression.io",
6
6
  "main": "config-loader.js",