You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9829d41
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: website/llms.txt
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -563,7 +563,7 @@ In `standard`, `cms`, `smooth-sailing`, and `everything`. Not in `minimal`. It a
563
563
- External / cross-device clobbers (another device, a CLI tool, a raw disk edit) produce no `save-saved` here, so on non-livesync presets they surface on the next reload (the page-load `GET`). Hyperclay Local's sync watcher reloads the page on external change, which re-runs that check.
564
564
- A user choice POSTs to `POST /_/data-loss/<id>` with `{ choice, file }`. Restore and revert reload the page (~350ms) after success.
565
565
- On init it also calls `initUserGesture()` (so save provenance is correct even in presets without autosave) and `Mutation.ensureObserving()`.
566
-
- The chip's root carries `no-save` and `snapshot-remove`, so it never reaches a saved file. Feedback uses `window.toast`.
566
+
- The chip's root carries `no-save` and `snapshot-remove`, the legacy alias for `no-snapshot`, so it never reaches a saved file. Feedback uses `window.toast`.
Real-time DOM sync across browsers via SSE. When one user saves, all connected browsers see the changes instantly via HyperMorph. Works with Hyperclay Local app.
1390
+
Real-time DOM sync across browsers via SSE. Edit-mode tabs exchange working snapshots on the live lane as changes are captured. View-mode tabs receive durable documents on the saved lane after the host persists them. HyperMorph applies both in place. Works with Hyperclay Local app.
1391
1391
1392
1392
## Access
1393
1393
@@ -1404,7 +1404,7 @@ Real-time DOM sync across browsers via SSE. When one user saves, all connected b
1404
1404
1405
1405
| Name | Type | Default | Description |
1406
1406
|------|------|---------|-------------|
1407
-
| file | string | — | Optional. A presence guard and log label only; it does **not** select the sync channel. The channel is keyed off the page URL (`window.location.href` / the `Page-URL` header). Auto-detected from the pathname when omitted |
1407
+
| file | string | — | Optional. A presence guard and log label only; it does **not** select the sync channel. The current page URL selects the channel, sent as `Document-URL` on the spec POST and `document-url` on the spec GET. Older hosts use the discovered legacy wire. Auto-detected from the pathname when omitted |
1408
1408
1409
1409
## Example
1410
1410
@@ -2700,15 +2700,15 @@ In every preset: `minimal`, `standard`, `smooth-sailing`, and `everything`. The
4. SERIALIZE "<!DOCTYPE html>" + clone.outerHTML → sent to server
2709
2709
```
2710
2710
2711
-
`captureForComparison` and the compare half of `captureForSaveAndComparison` additionally strip every region whose autosave-trigger is off (`[no-trigger-autosave]`, plus `[no-save]`, `[freeze]`, and `[no-watch]`) so runtime-only elements do not trip dirty-checking. See [region attributes](./region-attributes.md); the legacy `save-*` / `mutations-ignore` markers are recognized as aliases.
2711
+
`captureForComparison` and the compare half of `captureForSaveAndComparison` additionally strip every region whose autosave-trigger is off (`[no-trigger-autosave]`, plus `[no-save]`, `[freeze]`, and `[no-watch]`) so runtime-only elements do not trip dirty-checking. See [region attributes](./region-attributes.md); the legacy `save-*`, `mutations-ignore`, and `snapshot-remove` markers are recognized as aliases.
2712
2712
2713
2713
## Hooks
2714
2714
@@ -2724,7 +2724,7 @@ Each callback receives the cloned `<html>` element (`HTMLElement`) and mutates i
| `captureForSave({ emitForSync = true })` | `string` | Full save pipeline. Emits `hyperclay:snapshot-ready`, then runs prepare phase. Returns `"<!DOCTYPE html>" + outerHTML` |
2729
2729
| `captureForComparison()` | `string` | Like the save path but also strips every region whose autosave-trigger is off (`[no-trigger-autosave]` and friends). For comparing current state against a baseline. Does not emit `snapshot-ready` |
2730
2730
| `captureForSaveAndComparison({ emitForSync = true })` | `{ forSave, forComparison }` | Single clone, then forks into a save string and a comparison string. Cheaper than calling both separately |
@@ -2746,7 +2746,7 @@ These markup hooks are processed during capture. Inline attribute handlers run v
2746
2746
| Attribute | Phase | Effect |
2747
2747
|-----------|-------|--------|
2748
2748
| `onbeforesnapshot` | snapshot (save + sync) | Inline JS runs on the cloned element before any stripping |
2749
-
| `snapshot-remove` | snapshot (save + sync) | Element is removed from every snapshot, so it never reaches a save, a comparison, or a live-sync broadcast |
2749
+
| `no-snapshot` | snapshot (save + sync) | Element is removed from every snapshot, so it never reaches a save, a comparison, or a live-sync broadcast (legacy alias: `snapshot-remove`) |
2750
2750
| `onbeforesave` | prepare (save + compare) | Inline JS runs on the cloned element before save-specific stripping |
2751
2751
| `no-save` | prepare (save + compare) | Element is removed from the saved HTML entirely (legacy alias: `save-remove`) |
2752
2752
| `no-trigger-autosave` | comparison only | Element is excluded from dirty-checking but still saved as-is (legacy alias: `save-ignore`) |
@@ -2765,7 +2765,7 @@ When `isCodeMirrorPage()` is true, the capture functions bypass the DOM snapshot
2765
2765
2766
2766
## Hyperclay Local
2767
2767
2768
-
On `localhost` / `127.0.0.1`, `captureForSaveAndComparison` stores the full unstripped snapshot HTML on `window.__hyperclaySnapshotHtml`. The save system sends both the stripped content and this full snapshot as JSON so the desktop platform can mirror the page exactly. The value is cleared after each send.
2768
+
Saving uses the same two requests on every host. The save system sends the stripped document as text to `/_/save`. When live-sync is loaded, it separately sends the prepared snapshot root as JSON to `/_/sync`, or to the discovered legacy relay on an older host.
- `message` is inserted as HTML (`innerHTML`), so do not pass untrusted user input.
3176
-
- A toast auto-dismisses after ~6.6s and is also click-to-dismiss. Its container and styles carry `save-remove`/`snapshot-remove`, so they never reach a saved file.
3176
+
- A toast auto-dismisses after ~6.6s and is also click-to-dismiss. Its container and styles use the legacy `save-remove` and `snapshot-remove` aliases for `no-save` and `no-snapshot`, so they never reach a saved file.
0 commit comments