apple-notes-mcp 2.14.2 → 2.14.3
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 +2 -2
- package/build/index.js +3 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1331,9 +1331,9 @@ fixed HTML subset rather than anything Notes.app can render:
|
|
|
1331
1331
|
|
|
1332
1332
|
| | Native append |
|
|
1333
1333
|
|---|---|
|
|
1334
|
-
| Elements | `<a>` `<b>` `<br>` `<code>` `<del>` `<div>` `<em>` `<h1>` `<h2>` `<h3>` `<i>` `<li>` `<ol>` `<p>` `<s>` `<span>` `<strong>` `<
|
|
1334
|
+
| Elements | `<a>` `<b>` `<br>` `<code>` `<del>` `<div>` `<em>` `<h1>` `<h2>` `<h3>` `<i>` `<li>` `<ol>` `<p>` `<s>` `<span>` `<strong>` `<tt>` `<u>` `<ul>` |
|
|
1335
1335
|
| Attributes | `href` on `<a>` (`https:`, `http:`, `notes:`, `applenotes:`, `mailto:` only) and a `font-size` style on `<span>`, e.g. `<span style="font-size: 18px">` — the form Notes itself stores a heading as |
|
|
1336
|
-
| Refused | every other element and attribute, by name, naming the accepted subset; `<table>`
|
|
1336
|
+
| Refused | every other element and attribute, by name, naming the accepted subset; a table, in whole or in part (`<table>` `<thead>` `<tbody>` `<tr>` `<td>` `<th>`) — use [`create-table`](#create-table) instead; comments, doctype and processing instructions |
|
|
1337
1337
|
|
|
1338
1338
|
Ordinary notes take the guarded HTML path and are not restricted to that subset.
|
|
1339
1339
|
|
package/build/index.js
CHANGED
|
@@ -48843,18 +48843,12 @@ var NATIVE_APPEND_ELEMENTS = [
|
|
|
48843
48843
|
"s",
|
|
48844
48844
|
"span",
|
|
48845
48845
|
"strong",
|
|
48846
|
-
"table",
|
|
48847
|
-
"tbody",
|
|
48848
|
-
"td",
|
|
48849
|
-
"th",
|
|
48850
|
-
"thead",
|
|
48851
|
-
"tr",
|
|
48852
48846
|
"tt",
|
|
48853
48847
|
"u",
|
|
48854
48848
|
"ul"
|
|
48855
48849
|
];
|
|
48856
48850
|
var NATIVE_APPEND_SPAN_STYLE = /^font-size\s*:\s*\d{1,3}(?:\.\d+)?(?:px|pt)\s*;?$/i;
|
|
48857
|
-
var NATIVE_APPEND_HTML_SUBSET = `Native append accepts ${NATIVE_APPEND_ELEMENTS.map((e) => `<${e}>`).join(" ")}, with href on <a> and a font-size style on <span> as the only attributes; everything else needs update-note.`;
|
|
48851
|
+
var NATIVE_APPEND_HTML_SUBSET = `Native append accepts ${NATIVE_APPEND_ELEMENTS.map((e) => `<${e}>`).join(" ")}, with href on <a> and a font-size style on <span> as the only attributes; a native table is refused here \u2014 use create-table; everything else needs update-note.`;
|
|
48858
48852
|
var UNDERSCORES_OUTSIDE_A_WORD = "underscores outside a word";
|
|
48859
48853
|
var UNMODELED_MARKDOWN = [
|
|
48860
48854
|
[/(?<![\p{L}\p{N}])_|_(?![\p{L}\p{N}])/mu, UNDERSCORES_OUTSIDE_A_WORD],
|
|
@@ -49125,9 +49119,9 @@ function assertAppendedVisibleText(beforeHtml, afterHtml, expected) {
|
|
|
49125
49119
|
if (!suffix || !suffix.includes(wanted)) throw new Error("Appended text not verified");
|
|
49126
49120
|
}
|
|
49127
49121
|
function appendNative(manager, request) {
|
|
49128
|
-
|
|
49129
|
-
if (request.format === "html" && /<table\b/i.test(request.content))
|
|
49122
|
+
if (request.format === "html" && /<\/?\s*(?:table|thead|tbody|tr|td|th)\b/i.test(request.content))
|
|
49130
49123
|
throw new Error("Use create-table for verified native table insertion");
|
|
49124
|
+
validateAppendContent(request.content, request.format);
|
|
49131
49125
|
const markdownHtml = request.format === "markdown" ? appendMarkdownHtml(request.content) : null;
|
|
49132
49126
|
const op = request.format === "plaintext" ? "append-text" : request.format === "markdown" ? "append-markdown" : "append-html";
|
|
49133
49127
|
const text2 = request.format === "html" ? "<div><br></div>" + request.content : "\n\n" + request.content;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-notes-mcp",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.3",
|
|
4
4
|
"description": "MCP server for Apple Notes - read, search, create, edit, organize, and export notes on macOS via Claude and other AI assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|