@seanmozeik/tripwire 0.6.6 → 0.6.7

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seanmozeik/tripwire",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Opinionated hooks dispatcher for AI coding agents with configurable safety rules",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -27,21 +27,27 @@
27
27
  "format": "oxfmt --write .",
28
28
  "lint": "oxlint --tsconfig tsconfig.oxlint.json .",
29
29
  "lint:fix": "oxlint --format agent --tsconfig tsconfig.oxlint.json --fix .",
30
+ "prepare": "bunx effect-tsgo patch",
30
31
  "test": "bun test",
31
32
  "typecheck": "tsc --noEmit"
32
33
  },
33
34
  "dependencies": {
34
- "@effect/platform-bun": "^4.0.0-beta.78",
35
- "effect": "^4.0.0-beta.78",
36
35
  "shell-quote": "^1.8.4"
37
36
  },
38
37
  "devDependencies": {
38
+ "@effect/platform-bun": "^4.0.0-beta.102",
39
+ "@effect/tsgo": "^0.24.3",
39
40
  "@types/bun": "^1.3.14",
40
41
  "@types/shell-quote": "^1.7.5",
42
+ "effect": "^4.0.0-beta.102",
41
43
  "oxfmt": "^0.53.0",
42
- "oxlint": "^1.68.0",
44
+ "oxlint": "1.68.0",
43
45
  "oxlint-tsgolint": "^0.23.0",
44
- "typescript": "^6.0.3"
46
+ "typescript": "^7.0.2"
47
+ },
48
+ "peerDependencies": {
49
+ "@effect/platform-bun": "^4.0.0-beta.102",
50
+ "effect": "^4.0.0-beta.102"
45
51
  },
46
52
  "engines": {
47
53
  "bun": ">=1.0"
@@ -95,7 +95,7 @@ const POLICIES: readonly Policy[] = [
95
95
  rule: 'rg-r-is-replace',
96
96
  action: 'warn',
97
97
  message:
98
- 'You almost certainly made a mistake: `-r` in rg means `--replace`, NOT recursive. ripgrep is always recursive by default — there is no `-r` flag for recursion. `-rn` silently parses as `--replace=n`, rewriting every match to the literal string "n" while exiting 0 with no error. If you want to search: drop the `-r` entirely (`rg -rn PATTERN` → `rg -n PATTERN`). If you genuinely want text substitution: use `--replace` explicitly so the intent is clear.',
98
+ 'STOP your rg output is probably mangled. `-r` in rg means `--replace`, NOT recursive, so any `-r{X}` flag combo silently rewrites every match to the literal string "{X}" and exits 0 with no error. ripgrep is always recursive by default — there is no `-r` for recursion. If you want to search: drop the `-r` entirely (`rg -rn PATTERN` → `rg -n PATTERN`). If you genuinely want text substitution: use `--replace` explicitly.',
99
99
  fires: (seg) => {
100
100
  if (seg.head !== 'rg') {
101
101
  return false;