coder-config 0.42.31 → 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/README.md +4 -8
- package/lib/constants.js +1 -1
- package/lib/sessions.js +15 -1
- package/package.json +1 -1
- package/ui/dist/assets/{index-BmOt8KXX.js → index-Cc9KjNjc.js} +47 -49
- package/ui/dist/index.html +1 -1
- package/ui/routes/sessions.js +22 -3
package/README.md
CHANGED
|
@@ -389,10 +389,9 @@ Save context from a Claude Code session and restore it on the next session start
|
|
|
389
389
|
### How It Works
|
|
390
390
|
|
|
391
391
|
1. **Save context** - Use `/flush` in Claude Code to write a context summary
|
|
392
|
-
2. **Auto-
|
|
393
|
-
3. **Auto-restore** - The `session-start` hook injects saved context into your next session
|
|
392
|
+
2. **Auto-restore** - The `session-start` hook injects saved context into your next session
|
|
394
393
|
|
|
395
|
-
Context is
|
|
394
|
+
Context is stored per-project in `.claude/session-context.md`.
|
|
396
395
|
|
|
397
396
|
### Setup
|
|
398
397
|
|
|
@@ -403,7 +402,7 @@ Context is automatically restored within 24 hours of being saved.
|
|
|
403
402
|
coder-config session install
|
|
404
403
|
```
|
|
405
404
|
|
|
406
|
-
This installs the
|
|
405
|
+
This installs the SessionStart hook and the `/flush` command.
|
|
407
406
|
|
|
408
407
|
### CLI Commands
|
|
409
408
|
|
|
@@ -415,10 +414,7 @@ coder-config session clear # Clear saved context
|
|
|
415
414
|
|
|
416
415
|
### Storage Location
|
|
417
416
|
|
|
418
|
-
Session
|
|
419
|
-
- `flushed-context.md` - Context saved by /flush command
|
|
420
|
-
- `last-flushed-context.md` - Preserved context from last session end
|
|
421
|
-
- `last-session.json` - Metadata about the last session
|
|
417
|
+
Session context is stored in each project at `.claude/session-context.md`.
|
|
422
418
|
|
|
423
419
|
## Workstreams
|
|
424
420
|
|
package/lib/constants.js
CHANGED
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.
|
|
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",
|