coder-config 0.42.33 → 0.42.34

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.42.33';
5
+ const VERSION = '0.42.34';
6
6
 
7
7
  // Tool-specific path configurations
8
8
  const TOOL_PATHS = {
package/lib/sessions.js CHANGED
@@ -133,10 +133,24 @@ function installHooks() {
133
133
  settings.hooks.SessionStart.push({ type: 'command', command: sessionStartHook });
134
134
  }
135
135
 
136
+ // Add permission to write session context file
137
+ if (!settings.permissions) {
138
+ settings.permissions = {};
139
+ }
140
+ if (!settings.permissions.allow) {
141
+ settings.permissions.allow = [];
142
+ }
143
+
144
+ const contextPermission = 'Write(**/.claude/session-context.md)';
145
+ if (!settings.permissions.allow.includes(contextPermission)) {
146
+ settings.permissions.allow.push(contextPermission);
147
+ }
148
+
136
149
  try {
137
150
  fs.writeFileSync(settingsFile, JSON.stringify(settings, null, 2));
138
- console.log('Session hook installed.\n');
151
+ console.log('Session hook and permissions installed.\n');
139
152
  console.log('SessionStart hook restores context from .claude/session-context.md');
153
+ console.log('Write permission added for session context file.');
140
154
  console.log('Use /flush in Claude Code to save context.');
141
155
  } catch (e) {
142
156
  console.error('Error writing settings.json:', e.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder-config",
3
- "version": "0.42.33",
3
+ "version": "0.42.34",
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",