pi-goosedump 0.3.1 → 0.3.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 +2 -2
package/index.ts CHANGED
@@ -23,7 +23,7 @@ import { Type } from '@sinclair/typebox';
23
23
 
24
24
  const require = createRequire(import.meta.url);
25
25
 
26
- const GOOSEDUMP_VERSION = [0, 3, 1] as const;
26
+ const GOOSEDUMP_VERSION = [0, 3, 3] as const;
27
27
 
28
28
  interface GoosedumpListing {
29
29
  id: string;
@@ -376,7 +376,7 @@ function buildCompactRange(
376
376
  : { scope: 'lineage', until: firstKeptEntryId };
377
377
  }
378
378
 
379
- const GOOSEDUMP_NOTE =
379
+ const LEGACY_GOOSEDUMP_NOTE =
380
380
  'Use `goosedump` to search prior active-lineage work, decisions, and context from before this summary. Do not redo work already completed.';
381
381
  const GOOSEDUMP_SEPARATOR = '\n\n---\n\n';
382
382
  const GOOSEDUMP_HEADERS = [
@@ -392,7 +392,7 @@ function isGoosedumpSection(value: string): boolean {
392
392
  }
393
393
 
394
394
  function stripGoosedumpRecallNote(summary: string): string {
395
- const idx = summary.lastIndexOf(GOOSEDUMP_NOTE);
395
+ const idx = summary.lastIndexOf(LEGACY_GOOSEDUMP_NOTE);
396
396
  if (idx < 0) return summary.trim();
397
397
  return summary
398
398
  .slice(0, idx)
@@ -470,7 +470,7 @@ function mergeWithPreviousSummary(
470
470
  [briefOf(priorSummary), briefOf(nextSummary)].filter(Boolean).join('\n\n'),
471
471
  );
472
472
  const parts = [...sections, ...(brief ? [brief] : [])];
473
- const merged = `${parts.join(GOOSEDUMP_SEPARATOR)}${GOOSEDUMP_SEPARATOR}${GOOSEDUMP_NOTE}`;
473
+ const merged = parts.join(GOOSEDUMP_SEPARATOR);
474
474
 
475
475
  return { summary: merged.trim(), previousSummaryIncluded: true };
476
476
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-goosedump",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Coding agent context data browser plugin for pi",
5
5
  "keywords": [
6
6
  "goosedump",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@earendil-works/pi-tui": "^0.78.0",
32
- "@jarkkojs/goosedump": "^0.3.2",
32
+ "@jarkkojs/goosedump": "^0.3.3",
33
33
  "@sinclair/typebox": "^0.34.49"
34
34
  },
35
35
  "devDependencies": {