hookloom 1.1.0 → 1.3.0
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/dist/cli.mjs +33 -1
- package/dist/{command-line-BjI01lOI.mjs → command-line-CxFCE3W7.mjs} +1 -1
- package/dist/dispatcher.mjs +1 -1
- package/dist/examples/dash-guard.mjs +907 -0
- package/dist/examples/dewrap.mjs +973 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { execFile, spawn } from "node:child_process";
|
|
|
14
14
|
import { createInterface } from "node:readline";
|
|
15
15
|
import { homedir, tmpdir } from "node:os";
|
|
16
16
|
import { once } from "node:events";
|
|
17
|
-
import { n as invocation, r as version, t as claudeUsesPowerShell } from "./command-line-
|
|
17
|
+
import { n as invocation, r as version, t as claudeUsesPowerShell } from "./command-line-CxFCE3W7.mjs";
|
|
18
18
|
// src/examples/catalogue.ts
|
|
19
19
|
const BOTH = ["claude", "codex"];
|
|
20
20
|
const LOCAL_SECONDS = 10;
|
|
@@ -71,6 +71,38 @@ const examples = [
|
|
|
71
71
|
timeout: LOCAL_SECONDS
|
|
72
72
|
}]
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
name: "dash-guard",
|
|
76
|
+
summary: "Refuse a change or published message that adds an em-dash, or a spaced double hyphen used as one.",
|
|
77
|
+
needs: [],
|
|
78
|
+
registrations: [{
|
|
79
|
+
event: "PreToolUse",
|
|
80
|
+
harnesses: ["claude"],
|
|
81
|
+
matcher: "Edit|Write|NotebookEdit|Bash",
|
|
82
|
+
timeout: LOCAL_SECONDS
|
|
83
|
+
}, {
|
|
84
|
+
event: "PreToolUse",
|
|
85
|
+
harnesses: ["codex"],
|
|
86
|
+
matcher: "Bash|apply_patch",
|
|
87
|
+
timeout: LOCAL_SECONDS
|
|
88
|
+
}]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: "dewrap",
|
|
92
|
+
summary: "After an edit, join hard-wrapped Markdown paragraphs and comments into single lines. Changes your files.",
|
|
93
|
+
needs: [],
|
|
94
|
+
registrations: [{
|
|
95
|
+
event: "PostToolUse",
|
|
96
|
+
harnesses: ["claude"],
|
|
97
|
+
matcher: "Edit|Write",
|
|
98
|
+
timeout: LOCAL_SECONDS
|
|
99
|
+
}, {
|
|
100
|
+
event: "PostToolUse",
|
|
101
|
+
harnesses: ["codex"],
|
|
102
|
+
matcher: "apply_patch",
|
|
103
|
+
timeout: LOCAL_SECONDS
|
|
104
|
+
}]
|
|
105
|
+
},
|
|
74
106
|
{
|
|
75
107
|
name: "private-reference-guard",
|
|
76
108
|
summary: "Refuse to name a private GitHub repository in a public one.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { delimiter, join } from "node:path";
|
|
3
3
|
// src/version.ts
|
|
4
|
-
const version = "1.
|
|
4
|
+
const version = "1.3.0";
|
|
5
5
|
// src/dispatch/command-line.ts
|
|
6
6
|
/**
|
|
7
7
|
* The program and arguments with which each harness runs a command hook on each platform.
|
package/dist/dispatcher.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { dirname, join, resolve } from "node:path";
|
|
|
6
6
|
import { a as registryPath, n as cacheDirectory, r as claudeDirectory, t as atomicWrite } from "./files-CBn-xAo2.mjs";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { a as stringField, i as parsePayload, n as isRecord, o as toolInput, r as namedField } from "./shell-4WSaabze.mjs";
|
|
9
|
-
import { n as invocation, r as version } from "./command-line-
|
|
9
|
+
import { n as invocation, r as version } from "./command-line-CxFCE3W7.mjs";
|
|
10
10
|
import { a as sessionKey, i as removeOlderThan, n as readRecord, o as writeRecord, r as records, t as digest } from "./state-Db3zojdV.mjs";
|
|
11
11
|
import { spawn } from "node:child_process";
|
|
12
12
|
import { t as withoutHarnessMessages } from "./prompt-text-A_jEvJei.mjs";
|