pi-auto-save-to-markdown 0.9.0 → 0.9.1

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 (3) hide show
  1. package/README.md +15 -0
  2. package/README.zh.md +15 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -184,6 +184,21 @@ left verbatim, so XML pasted as content is never mangled — and the fallback
184
184
  filename slug derives from the typed message with every known block
185
185
  stripped.
186
186
 
187
+ The recognized injected-block vocabulary:
188
+
189
+ | XML tag | Renders as | What it carries |
190
+ | ------------------- | ----------------------------- | ----------------------------------------------- |
191
+ | `editor_selection` | `[!quote]-` Editor Selection | Selection in the code editor |
192
+ | `editor_cursor` | `[!quote]-` Editor Cursor | Cursor position in the editor |
193
+ | `current_note` | `[!quote]-` Current Note | The currently open note |
194
+ | `context_files` | `[!quote]-` Context Files | Files attached as context |
195
+ | `canvas_selection` | `[!quote]-` Canvas Selection | Selection on the canvas |
196
+ | `browser_selection` | `[!quote]-` Browser Selection | Selection in the browser view |
197
+ | `linked_note` | `[!quote]-` Linked Note | A note reference (the @-mention's machine copy) |
198
+ | `linked_content` | `[!quote]-` Linked Content | An attached note's content |
199
+ | `skill` | `[!note]-` Skill · `<name>` | Loaded-skill marker; content dropped |
200
+ | any other tag | verbatim | Pasted XML is never mangled |
201
+
187
202
  Each message block opens with a setext level-1 info header (`User`,
188
203
  `Assistant`) underlined with `===` — one level above the `##` headings AI
189
204
  content typically starts with, and distinguishable from content `#` headings
package/README.zh.md CHANGED
@@ -149,6 +149,21 @@ block 中(分隔符长度会自动压过内容中的反引号序列),工
149
149
  XML 内容绝不会被误改;回退文件名 slug 也从剥离全部已知块后的纯键入文本
150
150
  推导。
151
151
 
152
+ 当前识别的注入块标签清单:
153
+
154
+ | XML 标签 | 渲染为 | 内容 |
155
+ | ------------------- | ----------------------------- | ----------------------------- |
156
+ | `editor_selection` | `[!quote]-` Editor Selection | 代码编辑器中的选区 |
157
+ | `editor_cursor` | `[!quote]-` Editor Cursor | 编辑器中的光标位置 |
158
+ | `current_note` | `[!quote]-` Current Note | 当前打开的笔记 |
159
+ | `context_files` | `[!quote]-` Context Files | 附加为上下文的文件 |
160
+ | `canvas_selection` | `[!quote]-` Canvas Selection | 画布中的选区 |
161
+ | `browser_selection` | `[!quote]-` Browser Selection | 浏览器视图中的选区 |
162
+ | `linked_note` | `[!quote]-` Linked Note | 笔记引用(@ 提及的机器副本) |
163
+ | `linked_content` | `[!quote]-` Linked Content | 附加笔记的内容 |
164
+ | `skill` | `[!note]-` Skill · `<名称>` | 已加载 skill 的标记;内容丢弃 |
165
+ | 其他任何标签 | 原样保留 | 粘贴的 XML 绝不会被误改 |
166
+
152
167
  每个消息块以 setext 一级信息头(`User`、`Assistant`,下一行以 `===` 下划)
153
168
  开头——高于 AI 内容常见的 `##` 二级标题,解析时也能与内容中的 `#` 一级标题
154
169
  区分开。信息头的元数据(本地日期时间,assistant 消息还带模型名)放在一个小号
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-auto-save-to-markdown",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Pi extension that automatically saves each completed conversation turn as a markdown file with YAML frontmatter, one file per session-tree branch.",
5
5
  "type": "module",
6
6
  "license": "MIT",