palmier 0.1.7 → 0.1.8
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/commands/init.js +4 -3
- package/package.json +1 -1
- package/src/commands/init.ts +4 -3
package/dist/commands/init.js
CHANGED
|
@@ -56,11 +56,12 @@ export async function initCommand(options) {
|
|
|
56
56
|
// 4. Write Claude Code hooks config
|
|
57
57
|
const claudeSettingsDir = path.join(process.cwd(), ".claude");
|
|
58
58
|
fs.mkdirSync(claudeSettingsDir, { recursive: true });
|
|
59
|
+
const hookEntry = { hooks: [{ type: "command", command: "palmier hook" }] };
|
|
59
60
|
const hooksConfig = {
|
|
60
61
|
hooks: {
|
|
61
|
-
PermissionRequest: [
|
|
62
|
-
Notification: [
|
|
63
|
-
Stop: [
|
|
62
|
+
PermissionRequest: [hookEntry],
|
|
63
|
+
Notification: [hookEntry],
|
|
64
|
+
Stop: [hookEntry],
|
|
64
65
|
},
|
|
65
66
|
};
|
|
66
67
|
fs.writeFileSync(path.join(claudeSettingsDir, "settings.json"), JSON.stringify(hooksConfig, null, 2), "utf-8");
|
package/package.json
CHANGED
package/src/commands/init.ts
CHANGED
|
@@ -76,11 +76,12 @@ export async function initCommand(options: InitOptions): Promise<void> {
|
|
|
76
76
|
const claudeSettingsDir = path.join(process.cwd(), ".claude");
|
|
77
77
|
fs.mkdirSync(claudeSettingsDir, { recursive: true });
|
|
78
78
|
|
|
79
|
+
const hookEntry = { hooks: [{ type: "command", command: "palmier hook" }] };
|
|
79
80
|
const hooksConfig = {
|
|
80
81
|
hooks: {
|
|
81
|
-
PermissionRequest: [
|
|
82
|
-
Notification: [
|
|
83
|
-
Stop: [
|
|
82
|
+
PermissionRequest: [hookEntry],
|
|
83
|
+
Notification: [hookEntry],
|
|
84
|
+
Stop: [hookEntry],
|
|
84
85
|
},
|
|
85
86
|
};
|
|
86
87
|
|