apple-notes-mcp 2.9.14 → 2.9.15
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/README.md +15 -0
- package/build/index.js +1772 -368
- package/docs/markdown-templates.md +239 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1710,6 +1710,8 @@ single note.
|
|
|
1710
1710
|
| `outputPath` | string | No | Absolute file to create. Create-only: an existing file (or symlink) is refused with `[output_exists]` |
|
|
1711
1711
|
| `assetsDir` | string | No | Absolute directory for attachment copies. Existing files are never replaced; a taken name gets `-2`, `-3`, ... |
|
|
1712
1712
|
| `wrap` | number | No | Hard-wrap prose at this many columns. Code, tables and headings are never wrapped |
|
|
1713
|
+
| `template` | string | No | Render through a template: `standard-markdown` or `obsidian`. Exclusive with `templateFile` |
|
|
1714
|
+
| `templateFile` | string | No | Render through the JSON template in this `.json` file (same path rules; at most 256 KiB) |
|
|
1713
1715
|
|
|
1714
1716
|
Both paths follow the `save-attachment` rules (absolute, under the home
|
|
1715
1717
|
directory, a temp directory, or `/Volumes`, no symlink escapes) and may not
|
|
@@ -1724,6 +1726,19 @@ Both carry `stats` (attachments, placed, placeholders, unavailable, tables,
|
|
|
1724
1726
|
unreadableTables, unreferenced) and `skipped`. Nothing already written is
|
|
1725
1727
|
deleted if a later step fails.
|
|
1726
1728
|
|
|
1729
|
+
**Templates:** `template` or `templateFile` renders through a portable JSON
|
|
1730
|
+
template that sets how every block style, inline format, attachment,
|
|
1731
|
+
per-note header and footer (for YAML front matter with title, dates,
|
|
1732
|
+
folder, tags and id), and the note separator are written. The built-in
|
|
1733
|
+
`standard-markdown` reproduces the default output; `obsidian` adds front
|
|
1734
|
+
matter and copies attachments into `<file>.assets` beside `outputPath`.
|
|
1735
|
+
Templated asset copies get stable content-hashed names and are reused on a
|
|
1736
|
+
repeat export. An invalid template is refused with `[invalid-template]` and
|
|
1737
|
+
one JSON path per problem, before any note is read. A templated receipt adds
|
|
1738
|
+
`template`, `warnings` (such as `missing_asset`) and `assetFiles`. See
|
|
1739
|
+
[docs/markdown-templates.md](docs/markdown-templates.md) for the schema,
|
|
1740
|
+
every rule and placeholder, and examples.
|
|
1741
|
+
|
|
1727
1742
|
---
|
|
1728
1743
|
|
|
1729
1744
|
#### `export-notes-html`
|