summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorChristopher Warner <cwarner@kernelcode.com>2026-10-10 18:40:56 -0400
committerChristopher Warner <cwarner@kernelcode.com>2026-10-10 18:40:56 -0400
commit50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3 (patch)
tree612f1421cb589e957598aee175ac90e1ee106487 /README.md
parentef0165cc6cbe001997e5d05af5de6d4849481d7a (diff)
downloadiphone-notes-50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3.tar.gz
iphone-notes-50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3.tar.bz2
iphone-notes-50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3.tar.xz
iphone-notes-50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3.zip
fix: run create/status headless without a visible browser
Use a saved storage-state session for note ops so only `login` opens a window; launchPersistentContext was flashing Chromium on Linux. Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index b90b8f0..abb3fa0 100644
--- a/README.md
+++ b/README.md
@@ -20,9 +20,9 @@ icloud-note create --title "Hello" --body "From Linux"
| Command | Purpose |
|---|---|
| `icloud-note setup` | Install Playwright Chromium + `~/.local/bin` wrapper |
-| `icloud-note login` | Headed sign-in; saves session under `~/.config/icloud-notes/` |
-| `icloud-note status` | Check whether the saved session can open Notes |
-| `icloud-note create` | Create a note (`--title`, `--body` / `--body-file`) |
+| `icloud-note login` | **Only** command that opens a visible browser (one-time Apple ID) |
+| `icloud-note status` | Headless check that the saved session can open Notes |
+| `icloud-note create` | Headless create (`--title`, `--body` / `--body-file`) — no window |
## Layout
@@ -37,7 +37,8 @@ Runtime config (not in git):
```text
~/.config/icloud-notes/
- browser-profile/ Playwright persistent profile (private)
+ storage-state.json Cookies/session for headless create (private)
+ browser-profile/ Used only during `login` (private)
node_modules/ Playwright install
```