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 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}\n[Handoff Guard] threshold: ${CONTEXT_THRESHOLD}% | run /resume in next session`
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*Run \`/resume\` in the next session to restore this context.*`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-context-auto-handoff",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A Claude Code plugin to automate session handoffs before context compaction.",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
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
@@ -27,9 +27,6 @@ fi
27
27
  echo ""
28
28
  echo "[Handoff Setup] 완료!"
29
29
  echo ""
30
- echo " 임계값 조정 (기본 70%):"
31
- echo " export CONTEXT_THRESHOLD=65 # ~/.bashrc 또는 ~/.zshrc에 추가"
32
- echo ""
33
30
  echo " 사용법:"
34
31
  echo " /handoff — 현재 세션 저장"
35
32
  echo " /resume — 이전 세션 복원"