@retaw106/mmc-pi 2.1.1 → 2.1.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.
@@ -4083,6 +4083,8 @@ function estimateNonToolPart(part, options, breakdown) {
4083
4083
  addBreakdown(breakdown, "reasoning", estimateTokens(reasoningText));
4084
4084
  return true;
4085
4085
  }
4086
+ if (type === "media" && part.mediaType === "application/pdf")
4087
+ return true;
4086
4088
  if (looksImageLike(part)) {
4087
4089
  addBreakdown(breakdown, "image", options.imageTokenHeuristic?.(part) ?? defaultImageTokenHeuristic(part));
4088
4090
  const altText = firstStringField(part, ["alt", "text", "description"]);
package/dist/index.js CHANGED
@@ -165,7 +165,7 @@ import {
165
165
  getRawSessionTagKeysThrough2,
166
166
  getLegacyProtectedTailStartOrdinal2,
167
167
  readSessionChunk2
168
- } from "./index-4n1w7ehq.js";
168
+ } from "./index-bz61mcxg.js";
169
169
  import {
170
170
  registerSlowWriteReporter,
171
171
  registerSqliteDiagnosticSink,
@@ -15991,7 +15991,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
15991
15991
  startMessageFtsRowidMapBackfill(db).then(async () => {
15992
15992
  if (!readsOpenCodeStore)
15993
15993
  return;
15994
- const { readRawSessionMessagePage, readRawSessionMessages } = await import("./read-session-chunk-7wcjah1z.js");
15994
+ const { readRawSessionMessagePage, readRawSessionMessages } = await import("./read-session-chunk-pz4pxry4.js");
15995
15995
  const { startMessageTimeBackfill } = await import("./message-time-backfill-a3p9r5rh.js");
15996
15996
  await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
15997
15997
  readPage: readRawSessionMessagePage
@@ -49876,7 +49876,7 @@ function buildStatusViewFor(check, options) {
49876
49876
  // package.json
49877
49877
  var package_default = {
49878
49878
  name: "@retaw106/mmc-pi",
49879
- version: "2.1.1",
49879
+ version: "2.1.2",
49880
49880
  type: "module",
49881
49881
  description: "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
49882
49882
  main: "dist/index.js",
@@ -24,7 +24,7 @@ import {
24
24
  getRawSessionTagKeysThrough2,
25
25
  getLegacyProtectedTailStartOrdinal2,
26
26
  readSessionChunk2
27
- } from "./index-4n1w7ehq.js";
27
+ } from "./index-bz61mcxg.js";
28
28
  import"./index-ny303arh.js";
29
29
  import"./index-54cgx9gm.js";
30
30
  export {
package/dist/web/main.js CHANGED
@@ -5055,7 +5055,7 @@ function projectRawMessages(rows, ordinalFor) {
5055
5055
  `) ?? ""
5056
5056
  }
5057
5057
  };
5058
- }) : [{ type: "text", text: row.data.text ?? "" }]
5058
+ }) : row.type === "user" ? restoreRow(row, NO_MODEL)[0]?.content ?? [] : [{ type: "text", text: row.data.text ?? "" }]
5059
5059
  };
5060
5060
  Object.defineProperty(message, "storeType", { value: row.type, enumerable: false });
5061
5061
  if (!hostServesRowById(row))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retaw106/mmc-pi",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "type": "module",
5
5
  "description": "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",