Something went wrong. Try again.
A monorepo for writing specs and other serious text on the AT Protocol.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041// draft: a block editor for specs and serious writing, with suggestions,// comments, and an assistant that proposes structured, reviewable changes.export { Draft, newBatch, type Ask, type AskRequest, type AskScope, type AskVerb, type AskStatus, type OpBatch, type CommentView } from './draft.ts';export { newActivity, applyEvent, endActivity, summariseActivity, seconds, type Activity, type ActivityStep, type ActivityUsage } from './activity.ts';export { describeAsk, doingAsk, scopeName, shortWho, VERB_NAMES } from './asks.ts';export { readLines, readSSE, countOf, elapsed, isAbort } from './assistant/stream.ts';export type { Author, BlockKind, ContextItem, DraftConfig, PMJson, PMMark, RefItem, ReferenceProvider, TermItem, UploadedFile } from './types.ts';export { ALL_BLOCKS } from './types.ts';export { newId } from './ids.ts';export { slugify, sentences, words } from './text.ts';export { countText, countNode, countJson, addCounts, formatCounts, formatLine, percentOf, NO_COUNTS, type Counts, type CountLine } from './count.ts';export { blocksOf, findBlock, blockText, isOutlineNote, dfnsIn, refsIn, emptySectionNode, repairBody, sectionsAround, targetedSectionAt, type BlockInfo, type SectionAt } from './doc.ts';export { textOfBlocks, blocksFromText, blocksEmpty, inlineText } from './blocks.ts';export { bodyExtensions, lineExtensions, type BodyOptions, type MathHooks } from './schema/extensions.ts';export { refreshSectionViews, type ViewHooks } from './schema/views.ts';export { LANGUAGES, ALIASES, canonicalLanguage } from './languages.ts';export { SuggestionStore, type SuggestionMeta, type CommentThread, type CommentReply } from './suggestions/store.ts';export { listSuggestions, liveSuggestionIds, commentRanges, type SuggestionItem, type SuggestionKind } from './suggestions/list.ts';export { opTransaction, inlineFromText, blockFromText, normaliseTarget, remarkSuggestion, OpError, OP_NAMES, DIRECT_OPS, type Op, type OutlinePart, type InlineMark, type NewBlockType } from './suggestions/ops.ts';export { outlineOps, countOps, validatePart, REF, type OutlineOp } from './suggestions/outline.ts';export { OpArrivals, splitArray, type ArrivedOp, type ArrivedPart } from './suggestions/arrival.ts';export { docForAssistant, contextForAssistant, parseReply, parseNamed, validateOp, ASSISTANT_INSTRUCTIONS, type AssistantReply, type NamedNote } from './suggestions/protocol.ts';export type { Assistant, AssistantRequest, AssistantEvent } from './assistant/types.ts';export { FakeAssistant, parseDocument } from './assistant/fake.ts';export { HttpAssistant, type HttpAssistantOptions } from './assistant/http.ts';export { OpenAIAssistant, probeEndpoints, describeError, type OpenAIAssistantOptions, type Endpoint, type ProbeResult } from './assistant/openai.ts';export { HALFMIND_LAN, HALFMIND_TUNNEL, HALFMIND_TOKEN_HEADER, HALFMIND_MODELS, halfmindEndpoints, type HalfmindRoutes } from './assistant/halfmind.ts';export { ClaudeAssistant, type ClaudeAssistantOptions } from './assistant/claude.ts';export { CodeAssistant, PeerAssistant, codePrompt, probePeer, codeEventMapper, readCodeStream, describeToolInput, shortResult, CODE_NOTE, DEFAULT_CODE_COMMAND, DEFAULT_PEER_PORT, type CodeFile, type CodeJob, type CodeResult, type CodeHooks, type CodeRunner, type CodeCheck, type CodeAssistantOptions, type PeerAssistantOptions } from './assistant/code.ts';export { loadAssistantSettings, saveAssistantSettings, assistantFromSettings, endpointsOf, shortName, DEFAULT_ASSISTANT_SETTINGS, DEFAULT_PROMPTS, type AssistantSettings, type AssistantHostOptions } from './assistant/settings.ts';export { renderSwitch } from './components/switch.ts';export { STYLE_PRESETS, DEFAULT_STYLE, DEFAULT_AVOID, stylePreset, matchingPreset, normaliseStyle, renderStyle, type StylePrefs, type StyleKnobs } from './assistant/style.ts';export { DraftEditor, SLASH_ITEMS } from './components/draft-editor.ts';export { DraftLine } from './components/draft-line.ts';export { DraftText } from './components/draft-text.ts';export { DraftSidebar, type SidebarPanel } from './components/draft-sidebar.ts';export { DraftAssistantPicker } from './components/draft-assistant-picker.ts';export { DraftStylePicker } from './components/draft-style-picker.ts';export { installTooltips, hideTooltip, parseTip, tooltipOf, type Tip } from './components/tooltip.ts';export { showPopover } from './components/popover.ts';