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.
@@ -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: [{ type: "command", command: "palmier hook" }],
62
- Notification: [{ type: "command", command: "palmier hook" }],
63
- Stop: [{ type: "command", command: "palmier hook" }],
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palmier",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Palmier agent CLI - provisions, executes tasks, and serves NATS RPC",
5
5
  "license": "ISC",
6
6
  "author": "Hongxu Cai",
@@ -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: [{ type: "command", command: "palmier hook" }],
82
- Notification: [{ type: "command", command: "palmier hook" }],
83
- Stop: [{ type: "command", command: "palmier hook" }],
82
+ PermissionRequest: [hookEntry],
83
+ Notification: [hookEntry],
84
+ Stop: [hookEntry],
84
85
  },
85
86
  };
86
87