zombie-vibe 0.1.0 → 0.1.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/README.md +4 -2
- package/lib/installer.mjs +4 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Zombie Vibe Hooks
|
|
2
2
|
|
|
3
|
-
Zombie
|
|
3
|
+
Zombie Pulse installs deterministic prompt-submission hooks for Codex, Claude Code, Cursor, Windsurf, and Grok. The hook records when a prompt was submitted, the editor and session, the local timezone offset, and prompt length. It immediately discards the prompt text.
|
|
4
4
|
|
|
5
5
|
Events live in a private persistent queue at `~/.zombie-vibe/events.jsonl`. When the queue reaches 10 events, the oldest 10 are sent to the Zombie Vibe API. Failed uploads stay queued for a later prompt or manual flush.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
-
Create an API key after signing in at `https://
|
|
9
|
+
Create an API key after signing in at `https://codersarena.xyz/#account`, then install globally for every supported editor:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
npx zombie-vibe install --api-key zp_live_YOUR_KEY
|
|
@@ -24,6 +24,8 @@ npx zombie-vibe install --editor grok --api-key zp_live_YOUR_KEY
|
|
|
24
24
|
|
|
25
25
|
The installer copies a stable runtime to `~/.zombie-vibe/hook.mjs`, stores the key in a mode-`0600` config file, merges the hook into the editor's existing JSON, and creates a backup before every edit. Restart an open editor after installation.
|
|
26
26
|
|
|
27
|
+
The same `npx` commands work from Windows PowerShell or Command Prompt with Node.js 20 or newer. On Windows, the files are placed under `%USERPROFILE%\.zombie-vibe` and the installer generates Windows-compatible hook commands automatically. The `chmod 600` permission step applies only to manual installation on macOS/Linux; Windows uses the normal user-profile permissions.
|
|
28
|
+
|
|
27
29
|
## Hook locations
|
|
28
30
|
|
|
29
31
|
| Editor | Global configuration | Event |
|
package/lib/installer.mjs
CHANGED
|
@@ -18,8 +18,10 @@ function option(args, name) {
|
|
|
18
18
|
return index >= 0 ? args[index + 1] : undefined;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
function shellQuote(value) {
|
|
22
|
-
|
|
21
|
+
export function shellQuote(value, platform = process.platform) {
|
|
22
|
+
const string = String(value);
|
|
23
|
+
if (platform === "win32") return `"${string.replaceAll('"', '\\"')}"`;
|
|
24
|
+
return `"${string.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
async function readJson(path, fallback = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zombie-vibe",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Install privacy-first prompt timing hooks for Codex, Claude Code, Cursor, Windsurf, and Grok.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"keywords": ["codex", "claude-code", "cursor", "windsurf", "grok", "hooks", "developer-wellness"],
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"engines": { "node": ">=20" },
|
|
25
|
-
"repository": { "type": "git", "url": "git+https://github.com/
|
|
26
|
-
"homepage": "https://
|
|
25
|
+
"repository": { "type": "git", "url": "git+https://github.com/gunjchhetri/zombie-vibe-skills.git" },
|
|
26
|
+
"homepage": "https://codersarena.xyz/#integrations"
|
|
27
27
|
}
|