Files
Docwell/Packages/editor/src/index.ts
T
tajniak81andClaude Opus 5.5 c239d859b8 Transcribe long recordings, read scanned PDFs, and bring AI writing to phones
Follow-ups to Phase E (ADR-15):

- Recordings over 25 MB are cut into pieces and transcribed in turn:
  with ffmpeg (now in the server and all-in-one images) any format is
  re-encoded to 16 kHz mono MP3 in 20-minute pieces; without it, MP3 is
  cut at frame boundaries and WAV at sample boundaries in Go.
- PDFs without a text layer are written out by a document-capable chat
  model (Anthropic document input, OpenAI file input); Ollama is skipped.
- Phone app: AI answers render as Markdown with tappable citations; the
  editing toolbar opens the writing actions on the selection; audio
  files get Transcribe. Editor bridge protocol 4 adds setAi,
  getSelection, insertMarkdown and transcribe/transcribed.
- The transcript HTML builder moves to @docwell/editor, shared by the
  web app and the phone editor.
- An integration test runs chat, Transcribe and writing actions on a
  device against a live server; the editor test no longer expects
  headings to have only a level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:04:10 +01:00

40 lines
1.7 KiB
TypeScript

// SPDX-License-Identifier: AGPL-3.0-or-later
export { default as DocwellEditor } from "./DocwellEditor.vue";
export type { JSONContent } from "@tiptap/core";
export { docwellExtensions, userColor, type CollabUser, type ExtensionOptions } from "./extensions";
export { decodeAnchor, encodeAnchor, setCommentMarks, type CommentAnchor, type CommentMark } from "./comments";
export { englishLabels, type EditorLabels } from "./labels";
export type { MentionHost, Person } from "./mention";
export { filterCommands, slashCommands, type SlashCommand } from "./slash";
export { insertFiles, isMedia, type FileHost, type UploadedFile } from "./files";
export { insertSyncedPage, SyncedPage, type SyncedPageHost } from "./syncedpage";
export { CollabProvider, type CollabProviderOptions, type CollabStatus } from "./provider";
export { linkedPage, pagePath, type PageHost, type PageRef as LinkablePage } from "./pagelinks";
export { headingsOf, type Heading } from "./toc";
export { findMatches, type FindMatch } from "./find";
export { blockHash, linkedBlock, scrollToBlock } from "./blocklinks";
export { linkedRecord, openRecord, recordHash } from "./database/links";
export { followLink, isTargetHash } from "./hashlinks";
export { embedSource, type LinkHost, type LinkPreview } from "./embeds";
export { dateChoices, formatDate, type DateChoice } from "./dates";
export {
aiActions,
transcriptHTML,
transcriptParagraphs,
type AiAction,
type AiHost,
type AiWriteRequest,
type TranscriptResult,
} from "./ai";
export { default as DocwellEdgeless } from "./DocwellEdgeless.vue";
export type { ElementComment } from "@docwell/canvas";
export {
canvasLabels,
hasSurface,
mountEdgeless,
surfaceOfJSON,
type Edgeless,
type EdgelessOptions,
} from "./edgeless";