coder-config 0.45.10 → 0.45.11

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.45.10';
5
+ const VERSION = '0.45.11';
6
6
 
7
7
  // Tool-specific path configurations
8
8
  const TOOL_PATHS = {
@@ -19,7 +19,38 @@ function loadWorkstreams(installDir) {
19
19
  const wsPath = getWorkstreamsPath(installDir);
20
20
  if (fs.existsSync(wsPath)) {
21
21
  try {
22
- return JSON.parse(fs.readFileSync(wsPath, 'utf8'));
22
+ const data = JSON.parse(fs.readFileSync(wsPath, 'utf8'));
23
+
24
+ // Auto-repair corrupted workstreams (v0.45.9 bug where name became an object)
25
+ let needsSave = false;
26
+ if (data.workstreams) {
27
+ data.workstreams = data.workstreams.map(ws => {
28
+ if (ws.name && typeof ws.name === 'object' && ws.name.name) {
29
+ // Extract the real values from the nested object
30
+ const fixed = {
31
+ ...ws,
32
+ name: ws.name.name,
33
+ projects: ws.name.projects?.length ? ws.name.projects : ws.projects,
34
+ rules: ws.name.rules || ws.rules,
35
+ };
36
+ needsSave = true;
37
+ console.log(`[Workstreams] Auto-repaired corrupted workstream: ${fixed.name}`);
38
+ return fixed;
39
+ }
40
+ return ws;
41
+ });
42
+ }
43
+
44
+ // Save repaired data
45
+ if (needsSave) {
46
+ const dir = path.dirname(wsPath);
47
+ if (!fs.existsSync(dir)) {
48
+ fs.mkdirSync(dir, { recursive: true });
49
+ }
50
+ fs.writeFileSync(wsPath, JSON.stringify(data, null, 2) + '\n');
51
+ }
52
+
53
+ return data;
23
54
  } catch (e) {
24
55
  return { workstreams: [], activeId: null, lastUsedByProject: {} };
25
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder-config",
3
- "version": "0.45.10",
3
+ "version": "0.45.11",
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",