sessionpipe-conformance 0.4.1 → 0.6.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/cli.js +3 -3
- package/dist/cli.js.map +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// sessionpipe-conformance 0.
|
|
2
|
+
// sessionpipe-conformance 0.6.0 · Apache-2.0 · https://sessionpipe.org
|
|
3
3
|
|
|
4
4
|
// src/cli.ts
|
|
5
5
|
import { readdirSync as readdirSync5, statSync as statSync4 } from "node:fs";
|
|
@@ -228,7 +228,7 @@ function readAntigravity(lines, from) {
|
|
|
228
228
|
// ../core/src/adapters/claude-shaped.ts
|
|
229
229
|
import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
|
|
230
230
|
import path2 from "node:path";
|
|
231
|
-
var OURS = /sessionpipe[^"\n]*[\\/]hook\.js"?\s+[a-z][a-z-]*\s+[A-Za-z]+\s*$/;
|
|
231
|
+
var OURS = /(?:sessionpipe[^"\n]*[\\/]hook\.js|[\\/]sessionpipe-hook)"?\s+[a-z][a-z-]*\s+[A-Za-z]+\s*$/;
|
|
232
232
|
var isOurs = (h) => Array.isArray(h?.hooks) && h.hooks.some((x) => typeof x.command === "string" && OURS.test(x.command));
|
|
233
233
|
function readJsonFile(file) {
|
|
234
234
|
let raw;
|
|
@@ -1195,7 +1195,7 @@ import path5 from "node:path";
|
|
|
1195
1195
|
// ../core/src/adapters/codex-config.ts
|
|
1196
1196
|
var NOTIFY_LINE = /^[ \t]*notify[ \t]*=[ \t]*(\[.*\])[ \t]*(?:#.*)?$/m;
|
|
1197
1197
|
var NOTIFY_KEY = /^[ \t]*notify[ \t]*=/m;
|
|
1198
|
-
var OURS2 = /hook\.js",\s*"codex",\s*"notify"/;
|
|
1198
|
+
var OURS2 = /(?:hook\.js|sessionpipe-hook)",\s*"codex",\s*"notify"/;
|
|
1199
1199
|
function scan(line, st) {
|
|
1200
1200
|
let i = 0;
|
|
1201
1201
|
while (i < line.length) {
|