@wolfx/pi-magic-context 0.27.2-patch.1 → 0.27.2

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/dist/index.js +8 -9
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -182901,7 +182901,7 @@ class PiRetrospectiveRawProvider {
182901
182901
  result.push({
182902
182902
  sessionId: info.id,
182903
182903
  path: info.path,
182904
- updatedAt: typeof info.modified === "number" ? info.modified : info.modified instanceof Date ? info.modified.getTime() : undefined
182904
+ updatedAt: typeof info.modified === "number" ? info.modified : undefined
182905
182905
  });
182906
182906
  }
182907
182907
  return result.sort((a, b) => (b.updatedAt ?? 0) - (a.updatedAt ?? 0));
@@ -182980,15 +182980,14 @@ function extractPiTextContent(content) {
182980
182980
  }
182981
182981
  async function loadDefaultPiSessionDeps2() {
182982
182982
  const mod = await import(PI_CODING_AGENT_MODULE2);
182983
- const sessionListAll = mod.SessionManager?.listAll;
182984
- const parseEntries = mod.parseSessionEntries;
182985
- if (typeof sessionListAll !== "function" || typeof parseEntries !== "function") {
182986
- throw new Error("Pi session APIs unavailable: expected SessionManager.listAll and parseSessionEntries");
182983
+ const listSessions = mod.SessionManager?.listSessions;
182984
+ const loadEntriesFromFile = mod.loadEntriesFromFile;
182985
+ if (typeof listSessions !== "function" || typeof loadEntriesFromFile !== "function") {
182986
+ throw new Error("Pi session APIs unavailable: expected SessionManager.listSessions and loadEntriesFromFile");
182987
182987
  }
182988
- const { readFileSync: readFileSync9 } = await import("node:fs");
182989
182988
  return {
182990
- listSessions: () => sessionListAll.call(mod.SessionManager),
182991
- loadEntriesFromFile: (filePath) => parseEntries(readFileSync9(filePath, "utf-8"))
182989
+ listSessions: listSessions.bind(mod.SessionManager),
182990
+ loadEntriesFromFile
182992
182991
  };
182993
182992
  }
182994
182993
 
@@ -198935,7 +198934,7 @@ function formatThresholdPercent(value) {
198935
198934
  // package.json
198936
198935
  var package_default = {
198937
198936
  name: "@wolfx/pi-magic-context",
198938
- version: "0.27.2-patch.1",
198937
+ version: "0.27.2",
198939
198938
  type: "module",
198940
198939
  description: "Pi coding agent extension for Magic Context — cross-session memory and context management",
198941
198940
  main: "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wolfx/pi-magic-context",
3
- "version": "0.27.2-patch.1",
3
+ "version": "0.27.2",
4
4
  "type": "module",
5
5
  "description": "Pi coding agent extension for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",
@@ -37,6 +37,7 @@
37
37
  "prepublishOnly": "bun run build"
38
38
  },
39
39
  "dependencies": {
40
+
40
41
  "ai-tokenizer": "^1.0.6",
41
42
  "comment-json": "^4.2.5",
42
43
  "quickjs-emscripten": "^0.32.0",