@hopla/claude-setup 1.4.1 → 1.4.3
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/cli.js +1 -0
- package/files/hooks/session-prime.js +2 -2
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -385,6 +385,7 @@ async function installHooks() {
|
|
|
385
385
|
if (installSessionPrime && !hasSession) {
|
|
386
386
|
if (!settings.hooks.SessionStart) settings.hooks.SessionStart = [];
|
|
387
387
|
settings.hooks.SessionStart.push({
|
|
388
|
+
matcher: "startup",
|
|
388
389
|
hooks: [{ type: "command", command: sessionHookCmd }],
|
|
389
390
|
});
|
|
390
391
|
}
|
|
@@ -41,9 +41,9 @@ async function main() {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
if (lines.length > 0) {
|
|
44
|
-
const
|
|
44
|
+
const context = lines.join("\n\n");
|
|
45
|
+
const output = `Display the following session context to the user as your first message, formatted as a clear summary:\n\n${context}`;
|
|
45
46
|
process.stdout.write(output);
|
|
46
|
-
process.stderr.write(output);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
process.exit(0);
|