greprag 5.47.0 → 5.48.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/commands/assistant-reminder.d.ts +9 -0
- package/dist/commands/assistant-reminder.js +20 -0
- package/dist/commands/assistant-reminder.js.map +1 -0
- package/dist/commands/checkpoint-reminder.d.ts +14 -0
- package/dist/commands/checkpoint-reminder.js +50 -0
- package/dist/commands/checkpoint-reminder.js.map +1 -0
- package/dist/commands/frontdesk-reminder.d.ts +23 -0
- package/dist/commands/frontdesk-reminder.js +40 -0
- package/dist/commands/frontdesk-reminder.js.map +1 -0
- package/dist/commands/inbox-watch-supervisor.d.ts +25 -0
- package/dist/commands/inbox-watch-supervisor.js +112 -5
- package/dist/commands/inbox-watch-supervisor.js.map +1 -1
- package/dist/commands/init.js +11 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/memory-reflex.d.ts +115 -0
- package/dist/commands/memory-reflex.js +243 -0
- package/dist/commands/memory-reflex.js.map +1 -0
- package/dist/commands/reminder-registry.d.ts +6 -2
- package/dist/commands/reminder-registry.js +20 -3
- package/dist/commands/reminder-registry.js.map +1 -1
- package/dist/commands/reminder-types.d.ts +27 -0
- package/dist/commands/setup-reminder.d.ts +9 -0
- package/dist/commands/setup-reminder.js +20 -0
- package/dist/commands/setup-reminder.js.map +1 -0
- package/dist/hook.js +329 -109
- package/dist/hook.js.map +1 -1
- package/dist/opencode-plugin.js +68 -8
- package/dist/opencode-plugin.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-reflex.js","sourceRoot":"","sources":["../../src/commands/memory-reflex.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;qFAoBqF;;;AAuBrF,0CAEC;AAWD,kDAKC;AAmCD,0CAEC;AAID,oCAEC;AAUD,oDAWC;AAOD,kDAOC;AA+BD,4CAWC;AA6CD,0CAYC;AAKD,0CAIC;AAuB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D,SAAgB,oBAAoB,CAAC,KAA0C,EAAE,KAAa;IAC5F,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACvF,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACrC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACtC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,iCAAyB,CAAC;AACjD,CAAC;AAED,gFAAgF;AAEhF;;6EAE6E;AAChE,QAAA,kBAAkB,GAAmB;IAChD,EAAE,EAAE,eAAe;IACnB,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAc;IACxF,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE;IACrC,QAAQ,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,IAAI,IAAI;CAC7C,CAAC"}
|
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
* PURE over ReminderEnv — the hook assembles env (i/o) and emits the returned lines;
|
|
5
5
|
* a broken module never blocks a turn (fail-open per module). */
|
|
6
6
|
import { ReminderEnv, ReminderModule, Detection } from './reminder-types';
|
|
7
|
-
/** Registry order = display order.
|
|
8
|
-
*
|
|
7
|
+
/** Registry order = display order. THE single agent-facing announce/reminder assembly:
|
|
8
|
+
* the hook does I/O → fills ReminderEnv → collectAnnounces (SessionStart) / collectReminders
|
|
9
|
+
* (per turn) render every module here in this order. Order preserves the historical recap
|
|
10
|
+
* preamble (setup-warning → front-desk → checkpoint → assistant-doctrine) and keeps the two
|
|
11
|
+
* loud, action-first modules last (watcher-arm → mechanic) so they read most-recent at
|
|
12
|
+
* SessionStart. Add a module here to wire it into BOTH surfaces at once. */
|
|
9
13
|
export declare const REGISTRY: ReminderModule[];
|
|
10
14
|
export interface FiredReminder {
|
|
11
15
|
id: string;
|
|
@@ -8,11 +8,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.REGISTRY = void 0;
|
|
9
9
|
exports.collectReminders = collectReminders;
|
|
10
10
|
exports.collectAnnounces = collectAnnounces;
|
|
11
|
+
const setup_reminder_1 = require("./setup-reminder");
|
|
12
|
+
const frontdesk_reminder_1 = require("./frontdesk-reminder");
|
|
13
|
+
const checkpoint_reminder_1 = require("./checkpoint-reminder");
|
|
14
|
+
const assistant_reminder_1 = require("./assistant-reminder");
|
|
15
|
+
const memory_reflex_1 = require("./memory-reflex");
|
|
11
16
|
const arm_reminder_1 = require("./arm-reminder");
|
|
12
17
|
const friction_reminder_1 = require("./friction-reminder");
|
|
13
|
-
/** Registry order = display order.
|
|
14
|
-
*
|
|
15
|
-
|
|
18
|
+
/** Registry order = display order. THE single agent-facing announce/reminder assembly:
|
|
19
|
+
* the hook does I/O → fills ReminderEnv → collectAnnounces (SessionStart) / collectReminders
|
|
20
|
+
* (per turn) render every module here in this order. Order preserves the historical recap
|
|
21
|
+
* preamble (setup-warning → front-desk → checkpoint → assistant-doctrine) and keeps the two
|
|
22
|
+
* loud, action-first modules last (watcher-arm → mechanic) so they read most-recent at
|
|
23
|
+
* SessionStart. Add a module here to wire it into BOTH surfaces at once. */
|
|
24
|
+
exports.REGISTRY = [
|
|
25
|
+
setup_reminder_1.setupWarningModule,
|
|
26
|
+
frontdesk_reminder_1.frontDeskModule,
|
|
27
|
+
checkpoint_reminder_1.checkpointModule,
|
|
28
|
+
assistant_reminder_1.assistantDoctrineModule,
|
|
29
|
+
memory_reflex_1.memoryReflexModule,
|
|
30
|
+
arm_reminder_1.watcherArmModule,
|
|
31
|
+
friction_reminder_1.mechanicFrictionModule,
|
|
32
|
+
];
|
|
16
33
|
/** Per-turn: every module's live reminder line (skipping silent), in registry order.
|
|
17
34
|
* Stacking — a turn may carry several. A detector or reminder that throws drops that
|
|
18
35
|
* module for the turn; it never blocks the others or the turn. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reminder-registry.js","sourceRoot":"","sources":["../../src/commands/reminder-registry.ts"],"names":[],"mappings":";AAAA;;;;kEAIkE;;;
|
|
1
|
+
{"version":3,"file":"reminder-registry.js","sourceRoot":"","sources":["../../src/commands/reminder-registry.ts"],"names":[],"mappings":";AAAA;;;;kEAIkE;;;AAoClE,4CAaC;AAGD,4CAUC;AA3DD,qDAAsD;AACtD,6DAAuD;AACvD,+DAAyD;AACzD,6DAA+D;AAC/D,mDAAqD;AACrD,iDAAkD;AAClD,2DAA6D;AAE7D;;;;;6EAK6E;AAChE,QAAA,QAAQ,GAAqB;IACxC,mCAAkB;IAClB,oCAAe;IACf,sCAAgB;IAChB,4CAAuB;IACvB,kCAAkB;IAClB,+BAAgB;IAChB,0CAAsB;CACvB,CAAC;AAQF;;mEAEmE;AACnE,SAAgB,gBAAgB,CAC9B,GAAgB,EAAE,WAA6B,gBAAQ;IAEvD,MAAM,GAAG,GAAoB,EAAE,CAAC;IAChC,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE,CAAC;QACzB,IAAI,CAAY,CAAC;QACjB,IAAI,CAAC;YAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAAC,CAAC;QAAC,MAAM,CAAC;YAAC,SAAS;QAAC,CAAC;QAC9C,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ;YAAE,SAAS;QACxC,IAAI,IAAI,GAAkB,IAAI,CAAC;QAC/B,IAAI,CAAC;YAAC,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QAAC,CAAC;QAAC,MAAM,CAAC;YAAC,SAAS;QAAC,CAAC;QACtD,IAAI,IAAI;YAAE,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,gFAAgF;AAChF,SAAgB,gBAAgB,CAC9B,GAAgB,EAAE,WAA6B,gBAAQ;IAEvD,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE,CAAC;QACzB,IAAI,CAAC,GAAkB,IAAI,CAAC;QAC5B,IAAI,CAAC;YAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAAC,CAAC;QAAC,MAAM,CAAC;YAAC,SAAS;QAAC,CAAC;QAChD,IAAI,CAAC;YAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -28,6 +28,33 @@ export interface ReminderEnv {
|
|
|
28
28
|
alias?: string | null;
|
|
29
29
|
/** Assistant project → elevated watcher arm. */
|
|
30
30
|
assistant?: boolean;
|
|
31
|
+
/** Project display name (for the checkpoint announce). */
|
|
32
|
+
projectName?: string;
|
|
33
|
+
/** Precomputed identity setup/drift warning — the hook owns the anchor logic AND its
|
|
34
|
+
* rate-limit stamp (a side-effect), so this module half is a pass-through. */
|
|
35
|
+
setupWarning?: string | null;
|
|
36
|
+
/** Front-desk unread count (the SessionStart count announce). */
|
|
37
|
+
frontDeskUnread?: number;
|
|
38
|
+
/** Open checkpoints for this project (the SessionStart landmark announce). */
|
|
39
|
+
openCheckpoints?: OpenCheckpointSlim[];
|
|
40
|
+
/** Precomputed assistant-doctrine context — the hook owns the doctrine-file read, so
|
|
41
|
+
* this module half is a pass-through. Null for any non-assistant project. */
|
|
42
|
+
assistantDoctrine?: string | null;
|
|
43
|
+
/** Envelope-only "you've got mail" front-desk notice — the hook owns the network +
|
|
44
|
+
* per-machine dedup; the front-desk module routes it as its per-turn reminder. */
|
|
45
|
+
frontDeskNotice?: string | null;
|
|
46
|
+
/** Auto-surfaced episodic-memory injection — the hook owns the recall-intent gate +
|
|
47
|
+
* the search + the confidence gate + framing; the memory-reflex module routes the
|
|
48
|
+
* framed string as its per-turn reminder. Null = nothing cleared the gate this turn. */
|
|
49
|
+
memoryHit?: string | null;
|
|
50
|
+
}
|
|
51
|
+
/** Slim open-checkpoint row (the SessionStart landmark announce, checkpoint module).
|
|
52
|
+
* Lives here — not in checkpoint-reminder.ts — because ReminderEnv references it and a
|
|
53
|
+
* module file importing from here would otherwise close an import cycle. */
|
|
54
|
+
export interface OpenCheckpointSlim {
|
|
55
|
+
nodeId: string;
|
|
56
|
+
title: string;
|
|
57
|
+
createdAt: string;
|
|
31
58
|
}
|
|
32
59
|
/** A module's per-turn read of its deficiency. `tier:'silent'` = resolved → no fire. */
|
|
33
60
|
export interface Detection {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** setup-warning — the identity setup/drift warning as a reminder-interrupt module
|
|
2
|
+
* (docs/reminder-interrupt.md §Registry spec). announce-ONLY + pass-through: the warning
|
|
3
|
+
* string is PRECOMPUTED by the hook because deriving it stamps a weekly rate-limit
|
|
4
|
+
* (a side-effect) and reads the git-derived id — I/O that must stay in the hook. The
|
|
5
|
+
* module just routes the result and gates on its presence. nudge tier: identity drift
|
|
6
|
+
* silently scatters memory across UUIDs, so it is worth more than an ambient pointer. */
|
|
7
|
+
import { ReminderEnv, Detection, ReminderModule } from './reminder-types';
|
|
8
|
+
export declare function setupDetect(env: ReminderEnv): Detection;
|
|
9
|
+
export declare const setupWarningModule: ReminderModule;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** setup-warning — the identity setup/drift warning as a reminder-interrupt module
|
|
3
|
+
* (docs/reminder-interrupt.md §Registry spec). announce-ONLY + pass-through: the warning
|
|
4
|
+
* string is PRECOMPUTED by the hook because deriving it stamps a weekly rate-limit
|
|
5
|
+
* (a side-effect) and reads the git-derived id — I/O that must stay in the hook. The
|
|
6
|
+
* module just routes the result and gates on its presence. nudge tier: identity drift
|
|
7
|
+
* silently scatters memory across UUIDs, so it is worth more than an ambient pointer. */
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.setupWarningModule = void 0;
|
|
10
|
+
exports.setupDetect = setupDetect;
|
|
11
|
+
function setupDetect(env) {
|
|
12
|
+
return env.setupWarning ? { tier: 'nudge' } : { tier: 'silent' };
|
|
13
|
+
}
|
|
14
|
+
exports.setupWarningModule = {
|
|
15
|
+
id: 'setup-warning',
|
|
16
|
+
detect: setupDetect,
|
|
17
|
+
announce: (env) => env.setupWarning ?? null,
|
|
18
|
+
reminder: () => null,
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=setup-reminder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-reminder.js","sourceRoot":"","sources":["../../src/commands/setup-reminder.ts"],"names":[],"mappings":";AAAA;;;;;0FAK0F;;;AAI1F,kCAEC;AAFD,SAAgB,WAAW,CAAC,GAAgB;IAC1C,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AACnE,CAAC;AAEY,QAAA,kBAAkB,GAAmB;IAChD,EAAE,EAAE,eAAe;IACnB,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,YAAY,IAAI,IAAI;IAC3C,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI;CACrB,CAAC"}
|