team-toon-tack 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/sync.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-toon-tack",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Linear task sync & management CLI with TOON format",
5
5
  "type": "module",
6
6
  "bin": {
package/scripts/sync.ts CHANGED
@@ -60,9 +60,11 @@ Examples:
60
60
  const oldCycleName = config.current_cycle?.name ?? existingData?.cycleName ?? 'Unknown';
61
61
  console.log(`Cycle changed: ${oldCycleName} → ${cycleName}`);
62
62
 
63
- // Move old cycle to history
63
+ // Move old cycle to history (avoid duplicates)
64
64
  if (config.current_cycle) {
65
65
  config.cycle_history = config.cycle_history ?? [];
66
+ // Remove if already exists in history
67
+ config.cycle_history = config.cycle_history.filter(c => c.id !== config.current_cycle!.id);
66
68
  config.cycle_history.unshift(config.current_cycle);
67
69
  // Keep only last 10 cycles
68
70
  if (config.cycle_history.length > 10) {