greprag 5.77.0 → 5.78.1
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/app/app.css +342 -0
- package/app/app.js +360 -0
- package/app/favicon.svg +4 -0
- package/app/index.html +54 -0
- package/dist/app-settings.js +162 -0
- package/dist/commands/app-model.js +308 -0
- package/dist/commands/app.js +310 -0
- package/dist/commands/opencode-interrupt.js +4 -3
- package/dist/hook.js +5 -2
- package/dist/index.js +12 -1
- package/dist/opencode-plugin.bundle.js +300 -272
- package/dist/reminder-injector.js +2 -1
- package/package.json +2 -1
- package/scripts/postinstall.js +2 -1
- package/skill/greprag/SKILL.md +27 -3
|
@@ -44,6 +44,7 @@ const session_id_1 = require("./session-id");
|
|
|
44
44
|
const reminder_registry_1 = require("./commands/reminder-registry");
|
|
45
45
|
const friction_reminder_1 = require("./commands/friction-reminder");
|
|
46
46
|
const equipped_loadouts_cache_1 = require("./equipped-loadouts-cache");
|
|
47
|
+
const app_settings_1 = require("./app-settings");
|
|
47
48
|
async function fetchSessionUnread(apiUrl, apiKey, short) {
|
|
48
49
|
try {
|
|
49
50
|
const res = await fetch(`${apiUrl}/v1/inbox?count_only=1&session_id=${encodeURIComponent(short)}`, {
|
|
@@ -193,7 +194,7 @@ async function injectReminders(input, cfg, short, platform = 'claude-code') {
|
|
|
193
194
|
promptText,
|
|
194
195
|
equippedLoadouts,
|
|
195
196
|
};
|
|
196
|
-
const base = (0, reminder_registry_1.promptModules)().filter(m => !codex || m.id !== 'watcher-arm');
|
|
197
|
+
const base = (0, app_settings_1.filterEnabledInterrupts)((0, reminder_registry_1.promptModules)()).filter(m => !codex || m.id !== 'watcher-arm');
|
|
197
198
|
const reg = mechanicKilled() ? base.filter(m => m.id !== 'mechanic-friction') : base;
|
|
198
199
|
const fired = (0, reminder_registry_1.collectReminders)(env, reg);
|
|
199
200
|
if (!fired.length)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "greprag",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.78.1",
|
|
4
4
|
"description": "GrepRAG — agent memory for Claude Code, Codex, OpenCode, and Grok Build.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist/**/*.js",
|
|
18
18
|
"dist/**/*.json",
|
|
19
|
+
"app",
|
|
19
20
|
"skill",
|
|
20
21
|
"scripts"
|
|
21
22
|
],
|
package/scripts/postinstall.js
CHANGED
|
@@ -95,8 +95,9 @@ if (changes.length > 0) {
|
|
|
95
95
|
const verb = installed.length > 0 ? 'Synced' : 'Refreshed';
|
|
96
96
|
console.log('\n greprag installed. ' + verb + ': ' + changes.join(', ') + '\n');
|
|
97
97
|
} else {
|
|
98
|
-
console.log('\n greprag installed
|
|
98
|
+
console.log('\n greprag installed.\n');
|
|
99
99
|
}
|
|
100
|
+
console.log(' Run `greprag` to open the local app.\n');
|
|
100
101
|
|
|
101
102
|
if (detected.includes('Codex')) {
|
|
102
103
|
console.log(' Detected Codex. Next:');
|
package/skill/greprag/SKILL.md
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: greprag
|
|
3
3
|
description: |
|
|
4
|
-
GrepRAG — agentic setup
|
|
4
|
+
GrepRAG — local settings app, agentic setup, and episodic project memory.
|
|
5
5
|
|
|
6
6
|
Single entry point. Runs `greprag status` to learn what's configured,
|
|
7
7
|
walks the user through any missing setup (email signup, hooks, project
|
|
8
8
|
anchor), then either searches the project's memory for the operator's
|
|
9
|
-
topic (`greprag memory search "
|
|
9
|
+
topic (`greprag memory search "query"`) or surfaces the recap
|
|
10
10
|
(`greprag memory recap`) for an open-ended catch-up.
|
|
11
11
|
|
|
12
12
|
Use when: "/greprag", "set up greprag", "greprag status", "configure
|
|
13
|
-
memory", "
|
|
13
|
+
memory", "open greprag", "greprag settings", "settings dashboard",
|
|
14
|
+
"turn GrepRAG on or off", "corpus health", "memory recap", "memory search", "Odyssey briefing", "catch me
|
|
14
15
|
up", "what did we do last week", "what's been happening in this
|
|
15
16
|
project", "find that bug we hit", "search memory for X", "session
|
|
16
17
|
context", "Codex chip", "chip spawn", "spawn a Codex task", "parallel
|
|
@@ -26,6 +27,29 @@ license: MIT
|
|
|
26
27
|
|
|
27
28
|
Single source of truth: `greprag status --json`. Check it → fix any gaps via `docs/setup.md` → search or recap the project's memory.
|
|
28
29
|
|
|
30
|
+
## Local settings app
|
|
31
|
+
|
|
32
|
+
When the user asks to open, inspect, or change GrepRAG settings, launch the
|
|
33
|
+
local app. It owns feature controls, project selection, skills, corpus health,
|
|
34
|
+
agent connections, notifications, privacy, and local runtime diagnostics.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
greprag
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**WORKING INSIDE THE GREPRAG SOURCE CHECKOUT? USE THE BUILT CHECKOUT, NOT THE
|
|
41
|
+
INSTALLED NPM COMMAND.** Build after source changes, then launch the local CLI
|
|
42
|
+
entrypoint and keep that process alive while the browser is open:
|
|
43
|
+
|
|
44
|
+
```powershell
|
|
45
|
+
npm run build
|
|
46
|
+
node C:\greprag\packages\cli\dist\index.js
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The bare `greprag` command exercises the globally installed release. Do not
|
|
50
|
+
tell a GrepRAG developer to reinstall NPM merely to inspect unpublished local
|
|
51
|
+
UI changes. For headless use, append `app --no-open` and open its one-time URL.
|
|
52
|
+
|
|
29
53
|
Platform setup is progressive:
|
|
30
54
|
- **Codex**: see `docs/setup.md § codex` after install (`greprag init --codex --tenant-id <handle>`, then Codex Desktop Settings -> Settings -> Hooks trust review).
|
|
31
55
|
- **Claude Code**: see `docs/setup.md § claude-code` for the default hook/Monitor/conventions path (`greprag init --claude` or detected `greprag init`).
|