apple-notes-mcp 2.9.6 → 2.9.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/README.md +35 -2
- package/build/index.js +2361 -282
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1658,8 +1658,12 @@ or `mailto:`. Tables render as GitHub tables. Attachments stay in body order:
|
|
|
1658
1658
|
with `assetsDir` they link to copies of their files (images inline, drawings
|
|
1659
1659
|
through Notes' fallback image, scans as their PDF), and without it they render
|
|
1660
1660
|
as labeled placeholders such as `\[Image: name\]`. An attachment whose file
|
|
1661
|
-
cannot be found renders as `\[Image unavailable: name\]`.
|
|
1662
|
-
|
|
1661
|
+
cannot be found renders as `\[Image unavailable: name\]`. Body text that
|
|
1662
|
+
Markdown would read as block syntax (a leading `#` to `######`, `>`, `-`, `+`,
|
|
1663
|
+
`*`, `1.` or `1)`, a `---` line, a code fence or a table row) is
|
|
1664
|
+
backslash-escaped, so a plain paragraph such as `## Notes` stays a paragraph,
|
|
1665
|
+
and `wrap` never starts a continuation line with such a marker. This tool
|
|
1666
|
+
leaves `get-note-markdown` unchanged.
|
|
1663
1667
|
|
|
1664
1668
|
A folder export is one presentation document with notes separated by `---`.
|
|
1665
1669
|
It is not a backup or restore format; use `export-notes-json` for that.
|
|
@@ -1975,6 +1979,35 @@ Saves Notes' rendered image of one Paper drawing or classic drawing to a new fil
|
|
|
1975
1979
|
|
|
1976
1980
|
---
|
|
1977
1981
|
|
|
1982
|
+
#### `analyze-svg`
|
|
1983
|
+
|
|
1984
|
+
Analyzes one local SVG file and reports whether it can be represented as editable monoline strokes (a list of strokes, each a solid color, a width, and a polyline) and what that conversion would approximate or drop. It is a standalone preflight: it reads only the file, opens no Notes data, and makes no network request.
|
|
1985
|
+
|
|
1986
|
+
| Parameter | Type | Required | Description |
|
|
1987
|
+
|-----------|------|----------|-------------|
|
|
1988
|
+
| `path` | string | Yes | Absolute path of one `.svg` file: a regular file, not a symbolic link, at most 1 MiB of UTF-8, in home, temp, or `/Volumes` |
|
|
1989
|
+
| `includeDrawing` | boolean | No | Also return the normalized drawing. Off by default because it can be large |
|
|
1990
|
+
|
|
1991
|
+
**Returns:** `classification`, `importable`, `defaultWriteAllowed`, `requiredLosses`, `issues` (each with a `code`, the `loss` it causes or `null`, an element `location` such as `svg/g[2]/path[1]#id`, and a message), `viewport`, `counts` (elements, references, path segments, output strokes and points, and the `geometryWork`, `dashWork`, and `scanWork` budgets as `{used, max}`), `source` (`sha256`, `bytes`), `drawingBytes`, and `analysisDigest`.
|
|
1992
|
+
|
|
1993
|
+
| Classification | Meaning |
|
|
1994
|
+
|---|---|
|
|
1995
|
+
| `safe` | The output needs no reported approximation or omission. `defaultWriteAllowed` is true |
|
|
1996
|
+
| `lossy` | The output needs `geometry-approximation` or `paint-approximation` |
|
|
1997
|
+
| `unsupported` | Visible content would be dropped (`drop-content`), or nothing drawable remains (`importable: false`) |
|
|
1998
|
+
|
|
1999
|
+
The loss modes:
|
|
2000
|
+
|
|
2001
|
+
- `geometry-approximation`: non-round caps or joins are drawn round, a non-uniformly scaled stroke gets one width, or centerlines are clipped at a viewport. Curves are flattened to within 0.25 px, which is not reported as a loss.
|
|
2002
|
+
- `paint-approximation`: solid fills become overlapping strokes, group opacity is applied to each stroke, and blend modes or a non-default paint order are ignored.
|
|
2003
|
+
- `drop-content`: text, images, gradient and pattern paint, filters, masks, clip paths, markers, `<switch>`, and unknown elements are omitted.
|
|
2004
|
+
|
|
2005
|
+
Supported input: `path`, `rect`, `circle`, `ellipse`, `line`, `polyline`, `polygon`; `g`, `a`, nested `svg`; local `defs`, `symbol`, and `use`; transforms; `viewBox` and `preserveAspectRatio`; solid named, hex, `rgb()`/`rgba()`, and `hsl()` colors, `currentColor`, opacity, fill rules, and dashes, from attributes or the `style` attribute. `analysisDigest` is a SHA-256 over the canonical analysis and normalized drawing, so equal digests mean the same result.
|
|
2006
|
+
|
|
2007
|
+
**⚠️ Safety:** Read-only. Active or unsafe input is refused as an error with `code: "validation_error"` and an `svgCode`: `svg_unsafe` for scripts, event-handler attributes, `<style>` elements, animation, embedded objects, DOCTYPE or entity declarations, processing instructions, and any external reference (only local `#id` references and embedded raster images are allowed); `svg_invalid` for malformed XML; `svg_reference_invalid` for cyclic or duplicate-id references; `svg_complexity_limit` or `svg_geometry_invalid` when a limit is exceeded (16,384 elements, 100,000 path segments, 4,096 output strokes, 100,000 points, 5,000,000 fill scan checks); `svg_file_invalid` for a path or file that cannot be read.
|
|
2008
|
+
|
|
2009
|
+
---
|
|
2010
|
+
|
|
1978
2011
|
#### `export-attachments`
|
|
1979
2012
|
|
|
1980
2013
|
Copies a note's attachment files into a directory without opening Notes.app.
|