Files
gitmost/packages/editor-ext/src/lib
claude_code 10fe605159 feat(editor): expose window.gitmost bridge to insert recordings as audio blocks
Add a stable native-host JS-API on window.gitmost so the gitmost.app
WKWebView wrapper can hand a recorded audio file to the current page as an
audio block without depending on editor internals (atoms/Tiptap/Yjs).

- page-editor.tsx: register/tear down window.gitmost only while an editable
  page editor is mounted (ready=true, version=1). insertRecording validates
  mime/size, decodes base64 in 4-char-aligned chunks, rejects oversized
  payloads before decoding (too-large), reuses the existing uploadAudioAction
  pipeline, resolves machine-readable error codes
  (no-editor/bad-type/too-large/insert-failed) and never throws. Cleanup is
  identity-guarded so an unmounting PageEditor cannot disable a newer live
  registration.
- editor-ext audio-upload: return the uploaded attachment from the upload fn
  so the bridge can report success + attachmentId. Backward compatible:
  existing fire-and-forget callers ignore the return value; the error path
  still swallows and returns undefined (no re-throw).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 02:24:28 +03:00
..
2026-03-24 10:52:09 +00:00
2026-02-25 22:41:54 +00:00
2026-01-24 20:41:08 +00:00
2026-02-25 22:41:54 +00:00
2026-05-14 00:37:44 +01:00
2026-01-24 23:35:04 +00:00
2026-05-20 16:47:25 +01:00
2026-04-13 01:09:36 +01:00
2025-12-11 19:32:18 +00:00
2024-06-24 20:39:12 +01:00
2025-12-06 14:46:54 +00:00
2024-07-22 10:58:32 +01:00