@rohirik/pi-ltm 2.12.3 → 2.14.0
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/package.json +2 -2
- package/src/hooks.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rohirik/pi-ltm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "LTM (Long-Term Memory) native extension for Pi — share memories with Claude Code and OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@rohirik/openltm-core": "^2.
|
|
41
|
+
"@rohirik/openltm-core": "^2.14.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"bun-types": ">=1.0.0"
|
package/src/hooks.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildPrefillContext, deriveProjectFromCwd, learn } from "@rohirik/openltm-core";
|
|
1
|
+
import { buildPrefillContext, deriveProjectFromCwd, learn, PREFILL_DEFAULTS } from "@rohirik/openltm-core";
|
|
2
2
|
|
|
3
3
|
type PiAny = any;
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ export function registerHooks(pi: PiAny): void {
|
|
|
12
12
|
try {
|
|
13
13
|
const cwd = String(event?.cwd ?? process.cwd());
|
|
14
14
|
const project = projectFromCwd(cwd);
|
|
15
|
-
const block = buildPrefillContext({ project,
|
|
15
|
+
const block = buildPrefillContext({ project, ...PREFILL_DEFAULTS });
|
|
16
16
|
if (!block) return;
|
|
17
17
|
const existing = String(event?.systemPrompt ?? "");
|
|
18
18
|
const parts = existing ? [existing, block] : [block];
|