claude-context-auto-handoff 1.0.0 → 1.0.1
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/build/index.js +2 -3
- package/package.json +1 -1
- package/scripts/setup.ps1 +0 -3
- package/scripts/setup.sh +0 -3
package/build/index.js
CHANGED
|
@@ -8,7 +8,6 @@ const server = new McpServer({
|
|
|
8
8
|
name: 'context-handoff-manager',
|
|
9
9
|
version: '1.0.0'
|
|
10
10
|
});
|
|
11
|
-
const CONTEXT_THRESHOLD = parseInt(process.env.CONTEXT_THRESHOLD ?? '70', 10);
|
|
12
11
|
server.tool('generate_handoff_manifest', {
|
|
13
12
|
summary: z.string().optional().describe('Detailed session recap — omit if other fields cover it'),
|
|
14
13
|
nextSteps: z.array(z.string()).describe('Tasks to continue immediately in the next session'),
|
|
@@ -38,7 +37,7 @@ server.tool('generate_handoff_manifest', {
|
|
|
38
37
|
return {
|
|
39
38
|
content: [{
|
|
40
39
|
type: 'text',
|
|
41
|
-
text: `Handoff saved.\nLatest: ${mainPath}\nArchive: ${archivePath}
|
|
40
|
+
text: `Handoff saved.\nLatest: ${mainPath}\nArchive: ${archivePath}`
|
|
42
41
|
}]
|
|
43
42
|
};
|
|
44
43
|
}
|
|
@@ -90,7 +89,7 @@ function buildMarkdown(params) {
|
|
|
90
89
|
if (summary) {
|
|
91
90
|
sections.push(`## Summary\n${summary}\n`);
|
|
92
91
|
}
|
|
93
|
-
sections.push(`---\n*
|
|
92
|
+
sections.push(`---\n*Context is auto-restored on session start. Manual restore: \`/resume\`*`);
|
|
94
93
|
return sections.join('\n');
|
|
95
94
|
}
|
|
96
95
|
async function main() {
|
package/package.json
CHANGED
package/scripts/setup.ps1
CHANGED
|
@@ -28,9 +28,6 @@ if (Test-Path $HooksTarget) {
|
|
|
28
28
|
Write-Host ""
|
|
29
29
|
Write-Host "[Handoff Setup] 완료!"
|
|
30
30
|
Write-Host ""
|
|
31
|
-
Write-Host " 임계값 조정 (기본 70%):"
|
|
32
|
-
Write-Host " [System.Environment]::SetEnvironmentVariable('CONTEXT_THRESHOLD','65','User')"
|
|
33
|
-
Write-Host ""
|
|
34
31
|
Write-Host " 사용법:"
|
|
35
32
|
Write-Host " /handoff — 현재 세션 저장"
|
|
36
33
|
Write-Host " /resume — 이전 세션 복원"
|
package/scripts/setup.sh
CHANGED