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.
@@ -7,5 +7,5 @@
7
7
  "license": "MIT",
8
8
  "name": "hookloom",
9
9
  "repository": "https://github.com/Mearman/hookloom",
10
- "version": "1.1.0"
10
+ "version": "1.3.0"
11
11
  }
@@ -8,5 +8,5 @@
8
8
  "license": "MIT",
9
9
  "name": "hookloom",
10
10
  "repository": "https://github.com/Mearman/hookloom",
11
- "version": "1.1.0"
11
+ "version": "1.3.0"
12
12
  }
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-BjI01lOI.mjs";
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.1.0";
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.
@@ -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-BjI01lOI.mjs";
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";