apple-numbers-mcp 1.2.10 → 1.3.0
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 +6 -3
- package/build/index.js +18730 -3557
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -303,7 +303,7 @@ Case-insensitive partial match across every cell in a `.numbers` file.
|
|
|
303
303
|
|
|
304
304
|
Export a table to CSV, TSV, or JSON.
|
|
305
305
|
|
|
306
|
-
**⚠️ Safety:** Writes a file to disk at `outputPath`.
|
|
306
|
+
**⚠️ Safety:** Writes a file to disk at `outputPath`. An existing file there is **refused** unless you pass `overwrite: true` — confirm with the user before passing it. Paths are bounded: `outputPath` must resolve — after `~` expansion and symlink resolution — to a location under your **home directory**, `/tmp`, `/private/tmp`, or `/Volumes`; anything else is rejected with an error naming those roots.
|
|
307
307
|
|
|
308
308
|
| Parameter | Type | Required | Description |
|
|
309
309
|
|-----------|------|----------|-------------|
|
|
@@ -312,6 +312,7 @@ Export a table to CSV, TSV, or JSON.
|
|
|
312
312
|
| `outputPath` | string | Yes | Path for the output file |
|
|
313
313
|
| `sheet` | string | No | Sheet name (default: first sheet) |
|
|
314
314
|
| `table` | string | No | Table name (default: first table) |
|
|
315
|
+
| `overwrite` | boolean | No | Replace an existing file at the destination (default: `false` — refused) |
|
|
315
316
|
|
|
316
317
|
---
|
|
317
318
|
|
|
@@ -321,7 +322,7 @@ Export a table to CSV, TSV, or JSON.
|
|
|
321
322
|
|
|
322
323
|
Create a new `.numbers` file with one sheet and table.
|
|
323
324
|
|
|
324
|
-
**⚠️ Safety:**
|
|
325
|
+
**⚠️ Safety:** An existing file at `path` is **refused** unless you pass `overwrite: true` — confirm with the user before passing it. Paths are bounded: `path` must resolve — after `~` expansion and symlink resolution — to a location under your **home directory**, `/tmp`, `/private/tmp`, or `/Volumes`; anything else is rejected with an error naming those roots.
|
|
325
326
|
|
|
326
327
|
| Parameter | Type | Required | Description |
|
|
327
328
|
|-----------|------|----------|-------------|
|
|
@@ -330,6 +331,7 @@ Create a new `.numbers` file with one sheet and table.
|
|
|
330
331
|
| `rows` | (string \| number \| boolean \| null)[][] | No | Initial data rows |
|
|
331
332
|
| `sheetName` | string | No | Default: `"Sheet 1"` |
|
|
332
333
|
| `tableName` | string | No | Default: `"Table 1"` |
|
|
334
|
+
| `overwrite` | boolean | No | Replace an existing file at the destination (default: `false` — refused) |
|
|
333
335
|
|
|
334
336
|
---
|
|
335
337
|
|
|
@@ -573,7 +575,7 @@ Merge a rectangular range of cells, or undo a merge.
|
|
|
573
575
|
|
|
574
576
|
Import a CSV, TSV, or JSON file into a new `.numbers` spreadsheet. Auto-detects format from extension, or pass `format` explicitly.
|
|
575
577
|
|
|
576
|
-
**⚠️ Safety:**
|
|
578
|
+
**⚠️ Safety:** An existing file at `outputPath` is **refused** unless you pass `overwrite: true` — confirm with the user before passing it. Paths are bounded: both `inputPath` and `outputPath` must resolve — after `~` expansion and symlink resolution — to locations under your **home directory**, `/tmp`, `/private/tmp`, or `/Volumes`; anything else is rejected with an error naming those roots.
|
|
577
579
|
|
|
578
580
|
| Parameter | Type | Required | Description |
|
|
579
581
|
|-----------|------|----------|-------------|
|
|
@@ -582,6 +584,7 @@ Import a CSV, TSV, or JSON file into a new `.numbers` spreadsheet. Auto-detects
|
|
|
582
584
|
| `format` | `"auto" \| "csv" \| "tsv" \| "json"` | No | Default: auto-detect from extension |
|
|
583
585
|
| `sheetName` | string | No | Default: `"Sheet 1"` |
|
|
584
586
|
| `tableName` | string | No | Default: `"Table 1"` |
|
|
587
|
+
| `overwrite` | boolean | No | Replace an existing file at the destination (default: `false` — refused) |
|
|
585
588
|
|
|
586
589
|
**CSV/TSV fields are auto-typed.** Every field from a `csv`/`tsv` source is converted before it is written: `""` → empty cell, `true`/`false` → boolean, and anything Python's `int()`/`float()` parses → number. So a zip code `01234` becomes the number `1234`, `007` becomes `7`, and `1e5` becomes the number `100000`. This is deliberately less conservative than `set-cell`/`add-rows`, which keep leading-zero strings intact, and there is no per-column type control on import. For zero-padded identifiers, import from JSON instead (JSON values are passed through untouched) or repair the column afterwards with `set-cells-batch` using `type: "string"`.
|
|
587
590
|
|