pi-goosedump 0.12.20 → 0.12.21
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/index.ts +20 -20
- package/package.json +2 -2
package/dist/index.ts
CHANGED
|
@@ -525,21 +525,21 @@ function resolveTarget(ctx, provider, contextId) {
|
|
|
525
525
|
}
|
|
526
526
|
var GOOSE_PROVIDERS = ["pi", "claude", "codex", "crush", "gemini", "goose", "opencode"];
|
|
527
527
|
var HISTORY_TARGET_GUIDELINE = "Use the current Pi session by default; non-Pi providers require an explicit session ID.";
|
|
528
|
-
function historyProviderParam(
|
|
528
|
+
function historyProviderParam() {
|
|
529
529
|
return Type.Optional(Type.Union(GOOSE_PROVIDERS.map((provider) => Type.Literal(provider)), {
|
|
530
530
|
default: "pi",
|
|
531
|
-
description:
|
|
531
|
+
description: "Source provider. Defaults to pi. Non-Pi providers have no current session, so they require an explicit session ID."
|
|
532
532
|
}));
|
|
533
533
|
}
|
|
534
534
|
function historySessionParam() {
|
|
535
535
|
return Type.Optional(Type.String({
|
|
536
|
-
description: "
|
|
536
|
+
description: "Session ID. Defaults to the current Pi session for pi; required when provider is not pi."
|
|
537
537
|
}));
|
|
538
538
|
}
|
|
539
539
|
function historyScopeParam() {
|
|
540
540
|
return Type.Optional(Type.Union([Type.Literal("lineage"), Type.Literal("all")], {
|
|
541
541
|
default: "lineage",
|
|
542
|
-
description: "
|
|
542
|
+
description: "lineage (current branch, default) or all session entries"
|
|
543
543
|
}));
|
|
544
544
|
}
|
|
545
545
|
async function goosedumpCompact(target, options, signal, executablePath) {
|
|
@@ -1649,14 +1649,14 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1649
1649
|
pi.registerTool(defineTool({
|
|
1650
1650
|
name: "goose_remember",
|
|
1651
1651
|
label: "goose_remember",
|
|
1652
|
-
description: "Queue local
|
|
1652
|
+
description: "Queue local memory extraction and embedding in the background. Defaults to the current Pi session.",
|
|
1653
1653
|
promptSnippet: "Persist important context from the current or another session into durable memory",
|
|
1654
1654
|
promptGuidelines: [
|
|
1655
1655
|
"Use goose_remember after a milestone when important facts, decisions, preferences, procedures, or lessons should be retained.",
|
|
1656
1656
|
"Defaults to the current Pi session; pass provider/session when targeting a different session."
|
|
1657
1657
|
],
|
|
1658
1658
|
parameters: Type.Object({
|
|
1659
|
-
provider: historyProviderParam(
|
|
1659
|
+
provider: historyProviderParam(),
|
|
1660
1660
|
session: historySessionParam()
|
|
1661
1661
|
}),
|
|
1662
1662
|
async execute(_id, params, _signal, _onUpdate, ctx) {
|
|
@@ -1677,7 +1677,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1677
1677
|
pi.registerTool(defineTool({
|
|
1678
1678
|
name: "goose_recall",
|
|
1679
1679
|
label: "goose_recall",
|
|
1680
|
-
description: "Recall project-scoped memory. Lexical and entity matches come first;
|
|
1680
|
+
description: "Recall project-scoped memory. Lexical and entity matches come first; vector matches fill remaining slots. Returns bounded records with provenance; history includes superseded statements.",
|
|
1681
1681
|
promptSnippet: "Recall durable context from earlier sessions",
|
|
1682
1682
|
promptGuidelines: [
|
|
1683
1683
|
"Use goose_recall for decisions, evidence, and context that may have disappeared from the current session.",
|
|
@@ -1728,7 +1728,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1728
1728
|
pi.registerTool(defineTool({
|
|
1729
1729
|
name: "goose_forget",
|
|
1730
1730
|
label: "goose_forget",
|
|
1731
|
-
description: "
|
|
1731
|
+
description: "Remove durable context entries from goosedump memory.",
|
|
1732
1732
|
promptSnippet: "Remove obsolete entries from durable memory store",
|
|
1733
1733
|
promptGuidelines: [
|
|
1734
1734
|
"Use goose_forget to delete stale, inaccurate, or obsolete entries from durable memory.",
|
|
@@ -1778,7 +1778,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1778
1778
|
pi.registerTool(defineTool({
|
|
1779
1779
|
name: "goose_search",
|
|
1780
1780
|
label: "goose_search",
|
|
1781
|
-
description: "Search
|
|
1781
|
+
description: "Search session history by ranked relevance. Returns compact entry overviews with entry IDs; use goose_get to expand. Defaults to the current Pi session.",
|
|
1782
1782
|
promptSnippet: "Search session history by ranked relevance",
|
|
1783
1783
|
promptGuidelines: [
|
|
1784
1784
|
"Use goose_search to find relevant context in this or another coding agent's session history.",
|
|
@@ -1788,7 +1788,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1788
1788
|
],
|
|
1789
1789
|
parameters: Type.Object({
|
|
1790
1790
|
query: Type.String({ description: "Search query to rank messages by relevance" }),
|
|
1791
|
-
provider: historyProviderParam(
|
|
1791
|
+
provider: historyProviderParam(),
|
|
1792
1792
|
session: historySessionParam(),
|
|
1793
1793
|
scope: historyScopeParam(),
|
|
1794
1794
|
page: Type.Optional(Type.Integer({
|
|
@@ -1824,7 +1824,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1824
1824
|
pi.registerTool(defineTool({
|
|
1825
1825
|
name: "goose_get",
|
|
1826
1826
|
label: "goose_get",
|
|
1827
|
-
description: "Expand
|
|
1827
|
+
description: "Expand entry IDs from goose_search or goose_grep to full content. Defaults to the current Pi session.",
|
|
1828
1828
|
promptSnippet: "Expand session entries by ID to full content",
|
|
1829
1829
|
promptGuidelines: [
|
|
1830
1830
|
"Use goose_get to expand entry IDs returned by goose_search or goose_grep into their full content.",
|
|
@@ -1837,7 +1837,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1837
1837
|
minItems: 1,
|
|
1838
1838
|
description: "Entry IDs to expand (show full content)"
|
|
1839
1839
|
}),
|
|
1840
|
-
provider: historyProviderParam(
|
|
1840
|
+
provider: historyProviderParam(),
|
|
1841
1841
|
session: historySessionParam(),
|
|
1842
1842
|
scope: historyScopeParam()
|
|
1843
1843
|
}),
|
|
@@ -1873,7 +1873,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1873
1873
|
],
|
|
1874
1874
|
parameters: Type.Object({
|
|
1875
1875
|
pattern: Type.String({ description: "Glob pattern to filter messages (e.g. *rand*)" }),
|
|
1876
|
-
provider: historyProviderParam(
|
|
1876
|
+
provider: historyProviderParam(),
|
|
1877
1877
|
session: historySessionParam(),
|
|
1878
1878
|
scope: historyScopeParam()
|
|
1879
1879
|
}),
|
|
@@ -1899,7 +1899,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1899
1899
|
pi.registerTool(defineTool({
|
|
1900
1900
|
name: "goose_compact",
|
|
1901
1901
|
label: "goose_compact",
|
|
1902
|
-
description: "
|
|
1902
|
+
description: "Compact the current session now, optionally keeping the last N user turns verbatim. Runs asynchronously via Pi's compaction flow.",
|
|
1903
1903
|
promptSnippet: "Compact session history; optionally keep recent user turns",
|
|
1904
1904
|
promptGuidelines: [
|
|
1905
1905
|
"Use goose_compact to compact the session proactively with goosedump when context is large or nearing limits.",
|
|
@@ -1928,7 +1928,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1928
1928
|
pi.registerTool(defineTool({
|
|
1929
1929
|
name: "goose_sessions",
|
|
1930
1930
|
label: "goose_sessions",
|
|
1931
|
-
description: "List or delete
|
|
1931
|
+
description: "List or delete sessions for the current working directory.",
|
|
1932
1932
|
promptSnippet: "List or delete coding agent sessions for current directory",
|
|
1933
1933
|
promptGuidelines: [
|
|
1934
1934
|
"Use goose_sessions to discover sessions in the current directory or delete a non-active session.",
|
|
@@ -1940,7 +1940,7 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1940
1940
|
default: "list",
|
|
1941
1941
|
description: "Action: list (default) or delete"
|
|
1942
1942
|
})),
|
|
1943
|
-
provider: historyProviderParam(
|
|
1943
|
+
provider: historyProviderParam(),
|
|
1944
1944
|
session: Type.Optional(Type.String({
|
|
1945
1945
|
description: "Session ID to delete (required for action: delete)"
|
|
1946
1946
|
}))
|
|
@@ -2257,7 +2257,7 @@ ${lines.join(`
|
|
|
2257
2257
|
}
|
|
2258
2258
|
});
|
|
2259
2259
|
maybePi.registerCommand?.("goose-compact", {
|
|
2260
|
-
description: "Compact
|
|
2260
|
+
description: "Compact the current session now; optionally keep the last N user turns",
|
|
2261
2261
|
handler: async (args, ctx) => {
|
|
2262
2262
|
if (!goosedumpAvailable) {
|
|
2263
2263
|
ctx.ui.notify(GOOSEDUMP_UNAVAILABLE_MESSAGE, "error");
|
|
@@ -2309,7 +2309,7 @@ ${lines.join(`
|
|
|
2309
2309
|
}
|
|
2310
2310
|
});
|
|
2311
2311
|
maybePi.registerCommand?.("goose-sessions", {
|
|
2312
|
-
description: "
|
|
2312
|
+
description: "List, resume, or delete sessions for the current working directory",
|
|
2313
2313
|
handler: async (_args, ctx) => {
|
|
2314
2314
|
if (!goosedumpAvailable) {
|
|
2315
2315
|
ctx.ui.notify(GOOSEDUMP_UNAVAILABLE_MESSAGE, "error");
|
|
@@ -2324,7 +2324,7 @@ ${lines.join(`
|
|
|
2324
2324
|
}
|
|
2325
2325
|
});
|
|
2326
2326
|
maybePi.registerCommand?.("goose-forget", {
|
|
2327
|
-
description: "
|
|
2327
|
+
description: "Remove a durable memory entry or remembered session",
|
|
2328
2328
|
handler: async (args, ctx) => {
|
|
2329
2329
|
if (!goosedumpAvailable) {
|
|
2330
2330
|
ctx.ui.notify(GOOSEDUMP_UNAVAILABLE_MESSAGE, "error");
|
|
@@ -2347,7 +2347,7 @@ ${lines.join(`
|
|
|
2347
2347
|
}
|
|
2348
2348
|
});
|
|
2349
2349
|
maybePi.registerCommand?.("goose-memory-status", {
|
|
2350
|
-
description: "Show durable memory
|
|
2350
|
+
description: "Show durable memory storage health and type counts",
|
|
2351
2351
|
handler: async (_args, ctx) => {
|
|
2352
2352
|
if (!goosedumpAvailable) {
|
|
2353
2353
|
ctx.ui.notify(GOOSEDUMP_UNAVAILABLE_MESSAGE, "error");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goosedump",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.21",
|
|
4
4
|
"description": "Pi extension for goosedump session search, durable memory, and compaction",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compaction",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@earendil-works/pi-tui": "^0.82.1",
|
|
41
|
-
"@jarkkojs/goosedump": "^0.12.
|
|
41
|
+
"@jarkkojs/goosedump": "^0.12.21",
|
|
42
42
|
"@sinclair/typebox": "^0.34.49"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|