@edihasaj/recall 1.0.10 → 1.0.11
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 -1
- package/dist/{chunk-TGWUGUVH.js → chunk-3IF7HONQ.js} +20 -8
- package/dist/chunk-3IF7HONQ.js.map +1 -0
- package/dist/{chunk-QAFWA4U6.js → chunk-6B5OQLIE.js} +6 -4
- package/dist/chunk-6B5OQLIE.js.map +1 -0
- package/dist/{chunk-YC64D4QN.js → chunk-D57YOEJH.js} +2 -2
- package/dist/{chunk-SGL4ZDGZ.js → chunk-WVVH7AVR.js} +3 -3
- package/dist/{cleanup-OJBSLUMO.js → cleanup-MDEYU6TC.js} +4 -2
- package/dist/cli.js +171 -46
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +4 -4
- package/dist/{dispatcher-IIFTDIOW.js → dispatcher-PNYGUIKO.js} +2 -2
- package/dist/mcp.js +3 -3
- package/dist/{tasks-UEROYP6D.js → tasks-RR4E4JAG.js} +4 -2
- package/package.json +1 -1
- package/dist/chunk-QAFWA4U6.js.map +0 -1
- package/dist/chunk-TGWUGUVH.js.map +0 -1
- /package/dist/{chunk-YC64D4QN.js.map → chunk-D57YOEJH.js.map} +0 -0
- /package/dist/{chunk-SGL4ZDGZ.js.map → chunk-WVVH7AVR.js.map} +0 -0
- /package/dist/{cleanup-OJBSLUMO.js.map → cleanup-MDEYU6TC.js.map} +0 -0
- /package/dist/{dispatcher-IIFTDIOW.js.map → dispatcher-PNYGUIKO.js.map} +0 -0
- /package/dist/{tasks-UEROYP6D.js.map → tasks-RR4E4JAG.js.map} +0 -0
package/README.md
CHANGED
|
@@ -157,7 +157,7 @@ Supported runtimes, and how deep the integration goes:
|
|
|
157
157
|
| Runtime | Integration | Capture |
|
|
158
158
|
| --- | --- | --- |
|
|
159
159
|
| Claude Code | MCP + lifecycle hooks + managed `~/.claude/CLAUDE.md` block | automatic |
|
|
160
|
-
| Codex | MCP + `hooks.json` (legacy `notify` bridge below 0.115.0) | automatic |
|
|
160
|
+
| Codex | MCP + `hooks.json` (legacy `notify` bridge below 0.115.0), wired into every `CODEX_HOME` profile | automatic |
|
|
161
161
|
| GitHub Copilot | MCP (`~/.copilot/mcp-config.json`) + `.github/copilot-instructions.md` | model-driven |
|
|
162
162
|
| opencode | MCP (`~/.config/opencode/opencode.json`) + `~/.config/opencode/AGENTS.md` | model-driven |
|
|
163
163
|
| Cursor | MCP (`~/.cursor/mcp.json`) + `.cursor/rules/recall.mdc` | model-driven |
|
|
@@ -165,6 +165,20 @@ Supported runtimes, and how deep the integration goes:
|
|
|
165
165
|
|
|
166
166
|
Runtimes without a lifecycle-hook API can't be called on prompt/tool/session events, so Recall installs a managed rules block instructing the agent to call `capture_correction` and `query` itself. Capture there depends on the model following it — the hook-based runtimes do not.
|
|
167
167
|
|
|
168
|
+
#### Codex profiles (multiple `CODEX_HOME`s)
|
|
169
|
+
|
|
170
|
+
Codex supports multiple homes, and tools that drive it (Paseo, per-account
|
|
171
|
+
setups) commonly point providers at `~/.codex-primary`, `~/.codex-secondary`,
|
|
172
|
+
and so on. `recall setup` wires **every** profile it finds, not just `~/.codex`:
|
|
173
|
+
|
|
174
|
+
- The default home (`CODEX_HOME` if set, else `~/.codex`), plus any `~/.codex-*`
|
|
175
|
+
sibling that looks like a real Codex home (`config.toml`, `auth.json`, or
|
|
176
|
+
`sessions/`). Backup-suffixed directories are skipped.
|
|
177
|
+
- Set `RECALL_CODEX_HOMES` to a `:`/`,` separated list to override discovery.
|
|
178
|
+
- Profiles that share a symlinked `config.toml` are written once, and the
|
|
179
|
+
symlink is followed rather than replaced — so a shared-config layout stays
|
|
180
|
+
shared instead of forking into diverging copies.
|
|
181
|
+
|
|
168
182
|
Install + setup behavior:
|
|
169
183
|
|
|
170
184
|
- Routine app launch, daemon start, and daemon restart are non-mutating for agent integrations. They do not re-add hooks or repo instruction files after you remove them.
|
|
@@ -1232,6 +1232,7 @@ var INJECTION_ARTIFACT_RE = new RegExp(
|
|
|
1232
1232
|
"i"
|
|
1233
1233
|
);
|
|
1234
1234
|
var EPHEMERAL_TASK_CONTEXT_RE = /(?:^\s*\/goal\b|pause for (?:the )?user\b|this is task def(?:inition)?:|key details\s+description\s+(?:goal|background)\b|link to jira ticket|what(?:'|’)s changed\?|this article lists the tools we use for development|required software on node)/i;
|
|
1235
|
+
var LLM_WORKER_PROMPT_RE = /(?:^\s*you are (?:the|an?)\s+[^\n]{0,80}?\b(?:worker|judge|extractor|summari[sz]er|compactor|classifier|grader|scorer|labeler)\b|\bfor a personal agent runtime\b|\breturn json only\b[^\n]{0,60}\bno (?:markdown|prose)\b)/i;
|
|
1235
1236
|
var CODEX_INTERNAL_PROMPT_RE = /(?:^\s*generate a title and a git branch name for a coding agent\b|^\s*#\s*overview\s+generate\s+0\s+to\s+3\s+hyperpersonalized suggestions for what this user can do with codex\b|^\s*you are an expert at upholding safety and compliance standards for codex ambient suggestions\b|^\s*you are the implementation worker for one isolated git worktree\b|^\s*you are reviewing github pull request\b[^\n]*\bon behalf of the maintainer\b|^\s*#\s*github issue workorder\s*:|^\s*continue the previous coding task using user-provided context only\b)/i;
|
|
1236
1237
|
function looksLikeQuestionContext(text) {
|
|
1237
1238
|
if (/\b(?:always|never|remember|memorize|save this|from now on|by default|make it a rule)\b/i.test(text)) {
|
|
@@ -1247,7 +1248,7 @@ function looksLikeQuestionContext(text) {
|
|
|
1247
1248
|
return /\?\s*$/.test(text.trim()) || /(?:^|[.!?]\s+)(?:how|why|what|where|which|who|can|could|should|would|do|does|did|is|are|was|were|have|has)\b/i.test(text);
|
|
1248
1249
|
}
|
|
1249
1250
|
function isNonUserCaptureContext(text) {
|
|
1250
|
-
return SYSTEM_SCAFFOLD_RE.test(text) || NON_USER_CONTEXT_RE.test(text) || INJECTION_ARTIFACT_RE.test(text) || EPHEMERAL_TASK_CONTEXT_RE.test(text) || CODEX_INTERNAL_PROMPT_RE.test(text) || looksLikeQuestionContext(text);
|
|
1251
|
+
return SYSTEM_SCAFFOLD_RE.test(text) || NON_USER_CONTEXT_RE.test(text) || INJECTION_ARTIFACT_RE.test(text) || EPHEMERAL_TASK_CONTEXT_RE.test(text) || LLM_WORKER_PROMPT_RE.test(text) || CODEX_INTERNAL_PROMPT_RE.test(text) || looksLikeQuestionContext(text);
|
|
1251
1252
|
}
|
|
1252
1253
|
|
|
1253
1254
|
// src/scanner/signal.ts
|
|
@@ -2787,8 +2788,7 @@ async function isSimilarToRejectedFragmentSemantic(db, text, options = {}) {
|
|
|
2787
2788
|
return match != null;
|
|
2788
2789
|
}
|
|
2789
2790
|
async function findDuplicateMemory(db, repo, type, text, threshold) {
|
|
2790
|
-
|
|
2791
|
-
const existing = queryMemories(db, { repo }).filter((m) => m.status !== "rejected" && m.type === type);
|
|
2791
|
+
const existing = queryMemories(db, repo ? { repo } : {}).filter((m) => repo ? true : m.repo == null).filter((m) => m.status !== "rejected" && m.type === type);
|
|
2792
2792
|
let best;
|
|
2793
2793
|
let bestScore = 0;
|
|
2794
2794
|
for (const memory of existing) {
|
|
@@ -2806,9 +2806,15 @@ async function findDuplicateMemory(db, repo, type, text, threshold) {
|
|
|
2806
2806
|
text,
|
|
2807
2807
|
config,
|
|
2808
2808
|
threshold,
|
|
2809
|
-
{ repo, type, limit: 1 }
|
|
2809
|
+
{ repo, type, limit: repo ? 1 : 5 }
|
|
2810
2810
|
);
|
|
2811
|
-
|
|
2811
|
+
for (const hit of semantic) {
|
|
2812
|
+
const memory = getMemory(db, hit.id);
|
|
2813
|
+
if (!memory) continue;
|
|
2814
|
+
if (!repo && memory.repo != null) continue;
|
|
2815
|
+
return memory;
|
|
2816
|
+
}
|
|
2817
|
+
return void 0;
|
|
2812
2818
|
}
|
|
2813
2819
|
|
|
2814
2820
|
// src/maintenance/appliers.ts
|
|
@@ -3102,12 +3108,11 @@ function applyExtractRulesFromPrompt(db, task, result) {
|
|
|
3102
3108
|
};
|
|
3103
3109
|
}
|
|
3104
3110
|
function existsSimilar(db, repo, rule) {
|
|
3105
|
-
if (!repo) return false;
|
|
3106
3111
|
const ruleIsHighRisk = rule.is_destructive_risky || isHighRiskRule(rule.text);
|
|
3107
3112
|
const candidates = queryMemories(db, {
|
|
3108
3113
|
repo: repo ?? void 0,
|
|
3109
3114
|
...ruleIsHighRisk ? {} : { type: rule.type }
|
|
3110
|
-
}).filter((memory) => memory.status !== "rejected");
|
|
3115
|
+
}).filter((memory) => repo ? true : memory.repo == null).filter((memory) => memory.status !== "rejected");
|
|
3111
3116
|
const normalized = rule.text.toLowerCase().trim();
|
|
3112
3117
|
return candidates.some((memory) => {
|
|
3113
3118
|
if (memory.text.toLowerCase().trim() === normalized) return true;
|
|
@@ -3354,6 +3359,9 @@ function invalidTaskScopeReasons(repo) {
|
|
|
3354
3359
|
if (isTempPath2(repo)) reasons.push("repo_field_is_temp_path");
|
|
3355
3360
|
return reasons;
|
|
3356
3361
|
}
|
|
3362
|
+
function isInvalidTaskRepo(repo) {
|
|
3363
|
+
return invalidTaskScopeReasons(repo).length > 0;
|
|
3364
|
+
}
|
|
3357
3365
|
function payloadString(payload, key) {
|
|
3358
3366
|
const value = payload[key];
|
|
3359
3367
|
return typeof value === "string" && value.trim() ? value : null;
|
|
@@ -3504,6 +3512,7 @@ function produceSummarizeHistoryTasks(db, config) {
|
|
|
3504
3512
|
let enqueued = 0;
|
|
3505
3513
|
for (const snippet of snippets) {
|
|
3506
3514
|
if (!snippetHasMeaningfulContent(snippet.text)) continue;
|
|
3515
|
+
if (isInvalidTaskRepo(snippet.repo ?? null)) continue;
|
|
3507
3516
|
const id = insertTaskIdempotent(db, {
|
|
3508
3517
|
kind: "summarize_history",
|
|
3509
3518
|
target: snippet.id,
|
|
@@ -3592,6 +3601,7 @@ function produceSummarizeSessionTasks(db, config) {
|
|
|
3592
3601
|
)).get();
|
|
3593
3602
|
if (existing) continue;
|
|
3594
3603
|
const repo = end.repo ?? events.find((e) => e.repo)?.repo ?? null;
|
|
3604
|
+
if (isInvalidTaskRepo(repo)) continue;
|
|
3595
3605
|
const eventTypes = [...new Set(events.map((e) => e.event_type))];
|
|
3596
3606
|
const id = insertTaskIdempotent(db, {
|
|
3597
3607
|
kind: "summarize_session",
|
|
@@ -3920,6 +3930,7 @@ export {
|
|
|
3920
3930
|
sweepExpiredLeases,
|
|
3921
3931
|
expireStalePendingTasks,
|
|
3922
3932
|
abandonOverAttemptTasks,
|
|
3933
|
+
isInvalidTaskRepo,
|
|
3923
3934
|
abandonInvalidOpenTasks,
|
|
3924
3935
|
applyBacklogCaps,
|
|
3925
3936
|
enqueueExtractRulesFromPrompt,
|
|
@@ -3952,6 +3963,7 @@ export {
|
|
|
3952
3963
|
planRejectFragments,
|
|
3953
3964
|
qualityReasons,
|
|
3954
3965
|
planRejectTestFixtureRepos,
|
|
3966
|
+
isWorkspaceRootAlias,
|
|
3955
3967
|
planRejectInvalidScopes,
|
|
3956
3968
|
planRejectGenericScannedTooling,
|
|
3957
3969
|
planPromoteRepeats,
|
|
@@ -3968,4 +3980,4 @@ export {
|
|
|
3968
3980
|
processCorrection,
|
|
3969
3981
|
processReviewFeedback
|
|
3970
3982
|
};
|
|
3971
|
-
//# sourceMappingURL=chunk-
|
|
3983
|
+
//# sourceMappingURL=chunk-3IF7HONQ.js.map
|