nogrep 1.1.1 → 1.2.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/README.md +15 -11
- package/package.json +2 -2
- package/{plugin → plugins/nogrep}/.claude-plugin/plugin.json +0 -1
- package/{plugin → plugins/nogrep}/commands/init.md +5 -6
- package/{plugin → plugins/nogrep}/commands/off.md +1 -1
- package/{plugin → plugins/nogrep}/commands/on.md +1 -1
- package/plugins/nogrep/commands/query.md +23 -0
- package/{plugin → plugins/nogrep}/commands/status.md +1 -1
- package/{plugin → plugins/nogrep}/commands/update.md +3 -3
- package/plugins/nogrep/package.json +1 -0
- package/{plugin/dist/chunk-OJSJ63PH.js → plugins/nogrep/scripts/chunk-ICPV2JWV.js} +1 -1
- package/plugins/nogrep/scripts/chunk-ICPV2JWV.js.map +1 -0
- package/{plugin/dist → plugins/nogrep/scripts}/query.js +12 -10
- package/plugins/nogrep/scripts/query.js.map +1 -0
- package/{plugin/dist → plugins/nogrep/scripts}/settings.js +7 -5
- package/plugins/nogrep/scripts/settings.js.map +1 -0
- package/{plugin/dist → plugins/nogrep/scripts}/signals.js +6 -4
- package/plugins/nogrep/scripts/signals.js.map +1 -0
- package/plugins/nogrep/scripts/trim.js.map +1 -0
- package/plugins/nogrep/scripts/types.js +7 -0
- package/{plugin/dist → plugins/nogrep/scripts}/validate.js +12 -10
- package/plugins/nogrep/scripts/validate.js.map +1 -0
- package/{plugin/dist → plugins/nogrep/scripts}/write.d.ts +1 -2
- package/{plugin/dist → plugins/nogrep/scripts}/write.js +8 -37
- package/plugins/nogrep/scripts/write.js.map +1 -0
- package/scripts/query.ts +11 -9
- package/scripts/settings.ts +7 -5
- package/scripts/signals.ts +6 -4
- package/scripts/validate.ts +11 -9
- package/scripts/write.ts +8 -50
- package/plugin/commands/query.md +0 -13
- package/plugin/dist/chunk-OJSJ63PH.js.map +0 -1
- package/plugin/dist/query.js.map +0 -1
- package/plugin/dist/settings.js.map +0 -1
- package/plugin/dist/signals.js.map +0 -1
- package/plugin/dist/trim.js.map +0 -1
- package/plugin/dist/types.js +0 -7
- package/plugin/dist/validate.js.map +0 -1
- package/plugin/dist/write.js.map +0 -1
- package/plugin/hooks/hooks.json +0 -53
- package/plugin/hooks/pre-tool-use-glob.sh +0 -40
- package/plugin/hooks/pre-tool-use-grep.sh +0 -35
- package/plugin/hooks/pre-tool-use.sh +0 -37
- package/plugin/hooks/prompt-submit.sh +0 -26
- package/plugin/hooks/session-start.sh +0 -21
- package/plugin/templates/claude-md-patch.md +0 -8
- /package/{plugin/dist → plugins/nogrep/scripts}/query.d.ts +0 -0
- /package/{plugin/dist → plugins/nogrep/scripts}/settings.d.ts +0 -0
- /package/{plugin/dist → plugins/nogrep/scripts}/signals.d.ts +0 -0
- /package/{plugin/dist → plugins/nogrep/scripts}/trim.d.ts +0 -0
- /package/{plugin/dist → plugins/nogrep/scripts}/trim.js +0 -0
- /package/{plugin/dist → plugins/nogrep/scripts}/types.d.ts +0 -0
- /package/{plugin/dist → plugins/nogrep/scripts}/types.js.map +0 -0
- /package/{plugin/dist → plugins/nogrep/scripts}/validate.d.ts +0 -0
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
ENABLED=$(cat .claude/settings.json 2>/dev/null | jq -r '.nogrep.enabled // false')
|
|
3
|
-
LOCAL_ENABLED=$(cat .claude/settings.local.json 2>/dev/null | jq -r '.nogrep.enabled // empty')
|
|
4
|
-
[ -n "$LOCAL_ENABLED" ] && ENABLED="$LOCAL_ENABLED"
|
|
5
|
-
[ "$ENABLED" != "true" ] && exit 0
|
|
6
|
-
|
|
7
|
-
if [ ! -f ".nogrep/_index.json" ]; then
|
|
8
|
-
jq -n '{ additionalContext: "nogrep is enabled but no index found. Run `/nogrep:init` to generate the codebase index before starting work." }'
|
|
9
|
-
exit 0
|
|
10
|
-
fi
|
|
11
|
-
|
|
12
|
-
SCRIPT_DIR="${CLAUDE_PLUGIN_ROOT}/dist"
|
|
13
|
-
STALE=$(node "$SCRIPT_DIR/validate.js" --format json 2>/dev/null | jq -r '.stale[]?.file' | head -3)
|
|
14
|
-
|
|
15
|
-
if [ -n "$STALE" ]; then
|
|
16
|
-
jq -n \
|
|
17
|
-
--arg s "$STALE" \
|
|
18
|
-
'{ additionalContext: ("nogrep index may be stale. Consider running `/nogrep:update` before starting.\nStale nodes:\n" + $s) }'
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
|
-
exit 0
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<!-- nogrep -->
|
|
2
|
-
## Code Navigation
|
|
3
|
-
|
|
4
|
-
This project uses [nogrep](https://github.com/alirezanasseh/nogrep).
|
|
5
|
-
Context files in `.nogrep/` are a navigable index of this codebase.
|
|
6
|
-
When you see nogrep results injected into your context, trust them —
|
|
7
|
-
read those files before exploring source.
|
|
8
|
-
<!-- /nogrep -->
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|