sessionpipe-conformance 0.4.1 → 0.5.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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // sessionpipe-conformance 0.4.1 · Apache-2.0 · https://sessionpipe.org
1
+ // sessionpipe-conformance 0.5.0 · Apache-2.0 · https://sessionpipe.org
2
2
 
3
3
  // src/index.ts
4
4
  import { readFileSync as readFileSync6 } from "node:fs";
@@ -223,7 +223,7 @@ function readAntigravity(lines, from) {
223
223
  // ../core/src/adapters/claude-shaped.ts
224
224
  import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
225
225
  import path2 from "node:path";
226
- var OURS = /sessionpipe[^"\n]*[\\/]hook\.js"?\s+[a-z][a-z-]*\s+[A-Za-z]+\s*$/;
226
+ var OURS = /(?:sessionpipe[^"\n]*[\\/]hook\.js|[\\/]sessionpipe-hook)"?\s+[a-z][a-z-]*\s+[A-Za-z]+\s*$/;
227
227
  var isOurs = (h) => Array.isArray(h?.hooks) && h.hooks.some((x) => typeof x.command === "string" && OURS.test(x.command));
228
228
  function readJsonFile(file) {
229
229
  let raw;
@@ -1190,7 +1190,7 @@ import path5 from "node:path";
1190
1190
  // ../core/src/adapters/codex-config.ts
1191
1191
  var NOTIFY_LINE = /^[ \t]*notify[ \t]*=[ \t]*(\[.*\])[ \t]*(?:#.*)?$/m;
1192
1192
  var NOTIFY_KEY = /^[ \t]*notify[ \t]*=/m;
1193
- var OURS2 = /hook\.js",\s*"codex",\s*"notify"/;
1193
+ var OURS2 = /(?:hook\.js|sessionpipe-hook)",\s*"codex",\s*"notify"/;
1194
1194
  function scan(line, st) {
1195
1195
  let i = 0;
1196
1196
  while (i < line.length) {