@deathbeam/pi-archive 0.0.2 → 0.0.3
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/index.ts +4 -4
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -319,7 +319,7 @@ export function formatResults(query: string, result: Awaited<ReturnType<typeof s
|
|
|
319
319
|
}
|
|
320
320
|
const lines = result.matches.map(
|
|
321
321
|
(m) =>
|
|
322
|
-
`${m.file}\n[${m.currentSession ? "this session" : m.sameProject ? "this project" : m.project} | ${m.date} | ${m.role}] ${m.excerpt.replace(/\s+/g, " ")}`,
|
|
322
|
+
`${m.file}\n[${m.currentSession ? "this session" : m.sameProject ? "other session in this project" : m.project} | ${m.date} | ${m.role}] ${m.excerpt.replace(/\s+/g, " ")}`,
|
|
323
323
|
);
|
|
324
324
|
return `Found ${result.matches.length} match(es) for "${query}" — at most ${MAX_PER_FILE} per session file (read or grep the file for more):\n\n${lines.join("\n\n")}${note}`;
|
|
325
325
|
}
|
|
@@ -332,9 +332,9 @@ export default async function piArchive(pi: ExtensionAPI) {
|
|
|
332
332
|
name: "search_archive",
|
|
333
333
|
label: "Search archive",
|
|
334
334
|
description:
|
|
335
|
-
"Search
|
|
336
|
-
"
|
|
337
|
-
"
|
|
335
|
+
"Search raw Pi transcripts from this session and older sessions, including messages compacted away. " +
|
|
336
|
+
"If a compaction summary lacks a detail needed for the current task (exact code, output, error, or decision), search here instead of guessing. " +
|
|
337
|
+
"Results identify this session, another session in this project, or another project; old hits may be stale, so verify against current context or files.",
|
|
338
338
|
parameters: Type.Object({
|
|
339
339
|
query: Type.String({ description: "Search terms; all must appear (case-insensitive)" }),
|
|
340
340
|
session: Type.Optional(
|