@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.
Files changed (2) hide show
  1. package/index.ts +4 -4
  2. 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 the full transcript archive of past and current pi sessions — including content that was compacted away. " +
336
- "Use when the current context is missing a detail: exact code, command output, error messages, or decisions from " +
337
- "earlier in this session (before compaction) or from previous sessions in this or other projects.",
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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathbeam/pi-archive",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Search and recall past Pi session transcripts",
5
5
  "type": "module",
6
6
  "license": "MIT",