finch-markdown-editor 0.1.7 → 0.1.8

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/dist/index.js CHANGED
@@ -733,7 +733,7 @@ function activate(ctx) {
733
733
  description: `Open, create, revise, or restyle a Markdown document in Markdown Editor.
734
734
  action:
735
735
  open \u2014 read an absolute local Markdown path and open it as an editable WeChat article preview
736
- create \u2014 write brand-new Markdown content to an absolute path that does not exist yet, then open it in Markdown Editor. Use this whenever the user asks to create/draft a new Markdown file (Markdown Editor's own UI has no "new file" button on purpose \u2014 this tool action is the intended way to start a new document)
736
+ create \u2014 write brand-new Markdown content to an absolute path that does not exist yet, then open it in Markdown Editor. Use this whenever the user asks to write an article, start writing, write a post, create, or draft a new document \u2014 even if they do not mention Markdown. If title/topic or destination is missing, guide the user to provide it; once known, create and open the document rather than returning prose only. If they only want to begin, create a minimal titled starter document. Markdown Editor's own UI has no "new file" button on purpose \u2014 this tool action is the intended way to start a new document
737
737
  apply \u2014 replace a source document with reviewed Markdown (requires path and markdown); the open panel refreshes in place, no Diff window
738
738
  set_style \u2014 apply an AI-designed custom CSS layout to the currently open Markdown Editor preview (requires css). Write plain CSS scoped under #bm-md using tag/id selectors (no classes), use !important where needed to override the base style, and take inspiration from bm.md's built-in styles: kami (warm paper), bauhaus (geometric primary colors), blueprint (technical grid), botanical (soft green), newsprint (editorial serif), retro (nostalgic), sketch (hand-drawn), terminal (monospace dark).`,
739
739
  inputSchema: {
package/i18n/en-US.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Writing",
3
3
  "description": "Write Markdown in Finch and preview it as a WeChat Official Account article — with selection-based AI edits, focus mode, and AI-designed custom styles.",
4
- "systemPrompt": "When the user wants to edit or preview a local Markdown file, call markdown_editor_document with action 'open' and its absolute path. When the user asks to create/draft a brand-new Markdown document, write the full Markdown yourself and call action 'create' with an absolute path that does not exist yet plus the markdown content it writes the file and opens it in the editor in one step (the editor UI intentionally has no \"new file\" button). When the user asks to revise a passage selected in the editor or preview, propose precise replacement Markdown and, once approved, call action 'apply' with the full updated Markdown. When the user asks for a custom/AI-designed WeChat layout style, write plain CSS scoped under #bm-md (tag/id selectors only, no classes, use !important where needed to override the base style), drawing on bm.md's built-in style languages (kami, bauhaus, blueprint, botanical, newsprint, retro, sketch, terminal), then call action 'set_style' with the css and a short label — it applies immediately to the open preview.",
4
+ "systemPrompt": "When the user wants to edit or preview a local Markdown file, call markdown_editor_document with action 'open' and its absolute path. Treat requests such as \"write an article\", \"start writing\", \"write a post\", or \"draft something\" as an intent to use Writing even when Markdown is not mentioned. For a new document, guide the user to supply a title/topic and destination when they are missing; once enough information is available, call action 'create' with a new absolute .md path and Markdown content. If the user supplied a writing brief, draft the full Markdown; if they only want to begin, create a minimal titled starter document. The tool writes the file and opens it in Markdown Editor in one step — do not merely return prose in chat when the user wants to begin writing in the editor. Markdown Editor intentionally has no \"new file\" button. When the user asks to revise a passage selected in the editor or preview, propose precise replacement Markdown and, once approved, call action 'apply' with the full updated Markdown. When the user asks for a custom/AI-designed WeChat layout style, write plain CSS scoped under #bm-md (tag/id selectors only, no classes, use !important where needed to override the base style), drawing on bm.md's built-in style languages (kami, bauhaus, blueprint, botanical, newsprint, retro, sketch, terminal), then call action 'set_style' with the css and a short label — it applies immediately to the open preview.",
5
5
  "appPanel": {
6
6
  "title": "Writing",
7
7
  "toolbar": {
package/i18n/zh-CN.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "写字",
3
3
  "description": "在 Finch 中编辑 Markdown,并可预览为微信公众号文章样式;支持框选文字请求 AI 修改和自定义排版。",
4
- "systemPrompt": "当用户要编辑或预览本地 Markdown 文件时,调用 markdown_editor_document,action 使用 open,并提供绝对路径。当用户要新建/起草一篇全新的 Markdown 文档时,自己先写好完整 Markdown 正文,再调用 action=create 并提供一个尚不存在的绝对路径和 markdown 内容——会一次性写入文件并在 Markdown 编辑器中打开(编辑器界面本身故意不提供“新建”按钮)。当用户要修改编辑器或预览中框选的文字时,给出精确的替换 Markdown,确认后调用 action=apply 并提供完整更新后的 Markdown。当用户要求自定义/AI 设计公众号排版风格时,编写限定在 #bm-md 下的普通 CSS(标签/id 选择器,不用 class,必要时用 !important 覆盖基础风格),可参考 bm.md 内置风格(kami、bauhaus、blueprint、botanical、newsprint、retro、sketch、terminal),然后调用 action=set_style 并提供 css 与简短 label,会立即应用到当前打开的预览。",
4
+ "systemPrompt": "当用户要编辑或预览本地 Markdown 文件时,调用 markdown_editor_document,action 使用 open,并提供绝对路径。用户说“写文章”“开始写作”“写一篇”“写个帖子”或“起草内容”时,即使未提 Markdown,也视为要使用写字。新建文档时,若缺少标题/主题或保存位置,先引导用户补齐;信息足够后,调用 action=create,传入一个尚不存在的绝对 .md 路径和 Markdown 内容。用户提供了写作需求时,直接起草完整 Markdown;用户只想开始写作时,创建带标题的最小起稿文档。该工具会一次性写入文件并在 Markdown 编辑器中打开——用户要在编辑器开始写作时,不要只在聊天中返回一段文字。编辑器界面故意不提供“新建”按钮。当用户要修改编辑器或预览中框选的文字时,给出精确的替换 Markdown,确认后调用 action=apply 并提供完整更新后的 Markdown。当用户要求自定义/AI 设计公众号排版风格时,编写限定在 #bm-md 下的普通 CSS(标签/id 选择器,不用 class,必要时用 !important 覆盖基础风格),可参考 bm.md 内置风格(kami、bauhaus、blueprint、botanical、newsprint、retro、sketch、terminal),然后调用 action=set_style 并提供 css 与简短 label,会立即应用到当前打开的预览。",
5
5
  "appPanel": {
6
6
  "title": "写字",
7
7
  "toolbar": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finch-markdown-editor",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A Markdown editor and WeChat Official Account style preview, with selection-based AI edits and AI-generated custom styles.",
5
5
  "author": {
6
6
  "name": "PuterJam",
@@ -36,7 +36,7 @@
36
36
  "minVersion": "1.6.1",
37
37
  "name": "Writing",
38
38
  "description": "Edit Markdown and preview it as a WeChat Official Account article. Select text for AI edits, or ask AI to design a custom style.",
39
- "systemPrompt": "When the user wants to edit or preview a local Markdown file, call markdown_editor_document with action 'open' and its absolute path. When the user asks to create/draft a brand-new Markdown document, write the full Markdown yourself and call action 'create' with an absolute path that does not exist yet plus the markdown content this writes the file and opens it in Markdown Editor in one step (Markdown Editor's own UI intentionally has no 'new file' button). When the user asks to revise a passage selected in Markdown Editor, propose precise replacement Markdown and, once approved, call action 'apply' with the full updated Markdown. When the user asks for a custom/AI-designed WeChat layout style, write plain CSS scoped under #bm-md (tag/id selectors only, use !important where needed to override the base style) inspired by bm.md's built-in styles (kami, bauhaus, blueprint, botanical, newsprint, retro, sketch, terminal), then call action 'set_style' with that css and a short label — it applies immediately in the open preview.",
39
+ "systemPrompt": "When the user wants to edit or preview a local Markdown file, call markdown_editor_document with action 'open' and its absolute path. Treat requests such as \"write an article\", \"start writing\", \"write a post\", or \"draft something\" as an intent to use Writing even when Markdown is not mentioned. For a new document, guide the user to supply a title/topic and destination when they are missing; once enough information is available, call action 'create' with a new absolute .md path and Markdown content. If the user supplied a writing brief, draft the full Markdown; if they only want to begin, create a minimal titled starter document. The tool writes the file and opens it in Markdown Editor in one step — do not merely return prose in chat when the user wants to begin writing in the editor. Markdown Editor's own UI intentionally has no 'new file' button. When the user asks to revise a passage selected in Markdown Editor, propose precise replacement Markdown and, once approved, call action 'apply' with the full updated Markdown. When the user asks for a custom/AI-designed WeChat layout style, write plain CSS scoped under #bm-md (tag/id selectors only, use !important where needed to override the base style) inspired by bm.md's built-in styles (kami, bauhaus, blueprint, botanical, newsprint, retro, sketch, terminal), then call action 'set_style' with that css and a short label — it applies immediately in the open preview.",
40
40
  "main": "dist/index.js",
41
41
  "activationEvents": [
42
42
  "onStartup"