claude-session-continuity-mcp 1.4.1 → 1.4.2
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/dist/hooks/install.js +8 -7
- package/package.json +1 -1
package/dist/hooks/install.js
CHANGED
|
@@ -110,33 +110,34 @@ function install() {
|
|
|
110
110
|
const settings = loadSettings();
|
|
111
111
|
// 기존 hooks 유지하면서 추가
|
|
112
112
|
const hooks = settings.hooks || {};
|
|
113
|
-
// SessionStart Hook - npx로 실행 (
|
|
113
|
+
// SessionStart Hook - npx --no로 실행 (로컬 + 글로벌 모두 지원)
|
|
114
|
+
// --no 옵션: registry에서 다운로드하지 않고 로컬/글로벌에서만 찾음
|
|
114
115
|
hooks.SessionStart = [
|
|
115
116
|
{
|
|
116
117
|
hooks: [
|
|
117
118
|
{
|
|
118
119
|
type: 'command',
|
|
119
|
-
command: 'npx claude-hook-session-start'
|
|
120
|
+
command: 'npx --no claude-hook-session-start'
|
|
120
121
|
}
|
|
121
122
|
]
|
|
122
123
|
}
|
|
123
124
|
];
|
|
124
|
-
// UserPromptSubmit Hook - npx로 실행
|
|
125
|
+
// UserPromptSubmit Hook - npx --no로 실행
|
|
125
126
|
hooks.UserPromptSubmit = [
|
|
126
127
|
{
|
|
127
128
|
hooks: [
|
|
128
129
|
{
|
|
129
130
|
type: 'command',
|
|
130
|
-
command: 'npx claude-hook-user-prompt'
|
|
131
|
+
command: 'npx --no claude-hook-user-prompt'
|
|
131
132
|
}
|
|
132
133
|
]
|
|
133
134
|
}
|
|
134
135
|
];
|
|
135
136
|
settings.hooks = hooks;
|
|
136
137
|
saveSettings(settings);
|
|
137
|
-
console.log('✅ Hooks installed (npx mode - works
|
|
138
|
-
console.log(' SessionStart: npx claude-hook-session-start');
|
|
139
|
-
console.log(' UserPromptSubmit: npx claude-hook-user-prompt');
|
|
138
|
+
console.log('✅ Hooks installed (npx --no mode - works with local or global install!)');
|
|
139
|
+
console.log(' SessionStart: npx --no claude-hook-session-start');
|
|
140
|
+
console.log(' UserPromptSubmit: npx --no claude-hook-user-prompt');
|
|
140
141
|
console.log('');
|
|
141
142
|
// ===== 2. MCP 서버 등록 =====
|
|
142
143
|
console.log('📌 Step 2: Registering MCP Server...');
|