@luffysolution/omnischolar-pi 0.3.3 → 0.3.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luffysolution/omnischolar-pi",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Pi MCP bridge for the OmniScholar research toolkit",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
2
2
  import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
3
3
  import { Type } from "typebox";
4
- const CLIENT_INFO = { name: "omnischolar-pi", version: "0.3.3" };
4
+ const CLIENT_INFO = { name: "omnischolar-pi", version: "0.3.4" };
5
5
  export function resultText(result) {
6
6
  return result.content
7
7
  .map((item) => {
@@ -55,7 +55,8 @@ Use this when the user asks about a mechanism, method, result, limitation, figur
55
55
  For extracted figures, tables, and formulas:
56
56
 
57
57
  - Build a compact two-column Markdown table for figures and tables. The left column is `预览` and the right column is `图表名称、原文位置与分析解读`.
58
- - In the left column, embed available local figure images with a bounded Obsidian thumbnail such as `![[path/to/figure.png|260]]`; the embedded image must be clickable to the source asset/PDF context when the host supports it.
58
+ - Do not put Obsidian image width-alias syntax such as `![[path/to/figure.png|260]]` directly inside a Markdown table cell: the `|260` is parsed as an extra table column. Use the original MinerU asset with an image embed without a width alias: `![[Literatures/<paper>/assets/image-1.jpg]]`. Because the embed points directly to the original MinerU asset, clicking the image opens that original asset; do not add another pipe-based alias inside the table.
59
+ - Keep the table exactly two columns. Each extracted image/panel gets its own table row: one original MinerU image embed in the left cell and four clearly separated ordered items in the right cell: `1. 图表标题`、`2. 原文位置`、`3. 作者原文表述`、`4. 图表解读`. Add visible line breaks between the four items. Repeat the shared figure context when several panels belong to one figure, but do not group multiple images into one left cell or create extra table columns.
59
60
  - For tables, keep the left cell compact with a collapsible or bounded table preview; do not put a very wide table inside the right cell.
60
61
  - In the right column, keep separate lines for object name, source section/page, author caption, visual or tabular observation, and interpretation. Do not turn a caption into an unsupported scientific conclusion.
61
62
  - Render important equations as an ordered list. Each item must contain the equation in block math `$$ ... $$`, followed by variables, purpose, assumptions/conditions, and the paper-specific interpretation. Never show escaped formula source inside backticks.
@@ -93,6 +94,8 @@ Do not call a bounded user-selected set a systematic review unless a systematic
93
94
 
94
95
  Do not add your own duplicate `Sources` section. `omnischolar_analysis` appends one canonical `## Sources` section containing Obsidian links to the MinerU document, copied PDF, and `zotero-reading-record.md`. Use those links for navigation instead of manually constructing relative paths.
95
96
 
97
+ Do not include YAML frontmatter in the `content` passed to `omnischolar_analysis`; the tool writes the canonical analysis frontmatter. If a model supplies frontmatter anyway, it must be removed before writing.
98
+
96
99
  ## Update and follow-up workflow
97
100
 
98
101
  For a follow-up question about a previously read paper: