Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
feat(open-knowledge): in-app feedback form → Linear intake (#2769)
sarah46e41bccafc0
diff --git a/.changeset/in-app-feedback-form.md b/.changeset/in-app-feedback-form.mdnew file mode 100644index 000000000..d7e10af77--- /dev/null+++ b/.changeset/in-app-feedback-form.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": minor+---++Add an in-app feedback form. A new "Provide feedback" action in the Resources menu opens a short form to rate OpenKnowledge (good / not great), pick what got in the way, add a message, attach up to three screenshots, and optionally share an email for follow-up. Submissions file a ticket to the OpenKnowledge team's feedback intake.diff --git a/knip.config.ts b/knip.config.tsindex 6f8bbbc63..d8a79af2f 100644--- a/knip.config.ts+++ b/knip.config.ts@@ -122,7 +122,9 @@ export default {'packages/server': {entry: ['src/**/*.test.ts'],project: 'src/**',- ignoreDependencies: ['@types/shell-quote'],+ ignoreDependencies: [+ '@types/shell-quote',+ ],},'packages/cli': {entry: ['src/**/*.test.ts', 'scripts/*.ts', 'tests/**/*.ts'],diff --git a/packages/app/package.json b/packages/app/package.jsonindex 7dc5e3646..f8d2217a8 100644--- a/packages/app/package.json+++ b/packages/app/package.json@@ -45,21 +45,21 @@{"name": "main app bundle (gzipped)","path": "dist/assets/index-*.js",- "limit": "482 kB",+ "limit": "485 kB","gzip": true,"running": false},{"name": "all JS chunks combined (gzipped)","path": "dist/assets/*.js",- "limit": "3.5 MB",+ "limit": "3.55 MB","gzip": true,"running": false},{"name": "main CSS (gzipped)","path": "dist/assets/index-*.css",- "limit": "57 kB",+ "limit": "59 kB","gzip": true,"running": false}diff --git a/packages/app/src/components/FeedbackForm.tsx b/packages/app/src/components/FeedbackForm.tsxnew file mode 100644index 000000000..55a757cfc--- /dev/null+++ b/packages/app/src/components/FeedbackForm.tsx@@ -0,0 +1,410 @@+import { zodResolver } from '@hookform/resolvers/zod';+import type { MessageDescriptor } from '@lingui/core';+import { msg } from '@lingui/core/macro';+import { Trans, useLingui } from '@lingui/react/macro';+import { Paperclip, ThumbsDown, ThumbsUp, X } from 'lucide-react';+import { type FC, useEffect, useRef, useState } from 'react';+import { useForm, useWatch } from 'react-hook-form';+import { toast } from 'sonner';+import { z } from 'zod';+import { fileToFeedbackAttachment, submitFeedback } from '@/lib/feedback';+import { cn } from '@/lib/utils';+import {+ Attachment,+ AttachmentAction,+ AttachmentActions,+ AttachmentContent,+ AttachmentDescription,+ AttachmentGroup,+ AttachmentMedia,+ AttachmentTitle,+} from './ui/attachment';+import { Button } from './ui/button';+import { Checkbox } from './ui/checkbox';+import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from './ui/form';+import { Input } from './ui/input';+import { Textarea } from './ui/textarea';+import { ToggleGroup, ToggleGroupItem } from './ui/toggle-group';+import { Tooltip, TooltipContent, TooltipTrigger } from './ui/tooltip';++// Multi-select reasons, only surfaced when the "Not great" rating is chosen.+// Lazy MessageDescriptors so labels resolve against the active locale per render.+const REASONS: { value: string; label: MessageDescriptor }[] = [+ { value: 'too-slow', label: msg`Too slow` },+ { value: 'hard-to-use', label: msg`Hard to use` },+ { value: 'missing-feature', label: msg`Missing a feature` },+ { value: 'something-broke', label: msg`Something broke` },+ { value: 'formatting', label: msg`Formatting looked wrong` },+ { value: 'other', label: msg`Other` },+];++// Attachment caps. The route ships each image base64-encoded inside a single+// POST, so the total is bounded well under Vercel's ~4.5 MB body cap (base64+// inflates ~33%); the count keeps the ticket and the picker manageable.+const MAX_ATTACHMENTS = 3;+const MAX_ATTACHMENTS_TOTAL_BYTES = 3 * 1024 * 1024;+const ACCEPTED_IMAGE_TYPES = ['image/png', 'image/jpeg', 'image/webp'];++// Shared selected-state look for the rating buttons and the reason pills.+const selectedStateClassName =+ 'data-[state=on]:border-primary data-[state=on]:bg-primary/5 data-[state=on]:text-primary';++const pillClassName = `rounded-full border border-input bg-transparent px-3 ${selectedStateClassName}`;++function formatFileSize(bytes: number): string {+ if (bytes < 1024) return `${bytes} B`;+ if (bytes < 1024 * 1024) return `${Math.round(bytes / 1024)} KB`;+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;+}++// Merge a fresh FileList into the current selection: keep only accepted image+// types, drop name+size duplicates, and cap at MAX_ATTACHMENTS. Total-size and+// type validation still runs in the schema so the user sees a message rather+// than a silent drop for anything this filter lets through.+function mergeAttachments(current: File[], picked: FileList | null): File[] {+ const seen = new Set(current.map((f) => `${f.name}:${f.size}`));+ const accepted = Array.from(picked ?? []).filter(+ (f) => ACCEPTED_IMAGE_TYPES.includes(f.type) && !seen.has(`${f.name}:${f.size}`),+ );+ return [...current, ...accepted].slice(0, MAX_ATTACHMENTS);+}++// Object-URL lifecycle for a single image thumbnail: created on mount, revoked+// on unmount/file-change so previews don't leak. `alt=""` — the filename lives+// in the sibling AttachmentTitle, so the thumbnail is decorative.+const AttachmentImagePreview: FC<{ file: File }> = ({ file }) => {+ const [url, setUrl] = useState<string | null>(null);+ useEffect(() => {+ const objectUrl = URL.createObjectURL(file);+ setUrl(objectUrl);+ return () => URL.revokeObjectURL(objectUrl);+ }, [file]);+ return url ? <img src={url} alt="" className="size-full object-cover" /> : null;+};++export const FeedbackForm = ({+ onSuccess,+ source = 'resources_menu',+}: {+ /** Called after a confirmed submit (e.g. to close the dialog). */+ onSuccess?: () => void;+ /** Which in-app surface opened the form; sent for analytics attribution. */+ source?: string;+}) => {+ const { t } = useLingui();+ const fileInputRef = useRef<HTMLInputElement>(null);++ // Email is only required once the user opts into follow-ups, so its+ // validation is conditional on `shareEmail` rather than always-on.+ const schema = z+ .object({+ rating: z.enum(['positive', 'negative'], { error: t`Please choose Good or Not great.` }),+ reasons: z.array(z.string()),+ message: z.string(),+ attachments: z+ .array(z.instanceof(File))+ .max(MAX_ATTACHMENTS, t`You can attach up to ${MAX_ATTACHMENTS} images.`)+ .refine(+ (files) => files.every((f) => ACCEPTED_IMAGE_TYPES.includes(f.type)),+ t`Only PNG, JPEG, or WebP images are allowed.`,+ )+ .refine(+ (files) => files.reduce((total, f) => total + f.size, 0) <= MAX_ATTACHMENTS_TOTAL_BYTES,+ t`Attachments must total under 3 MB.`,+ ),+ shareEmail: z.boolean(),+ email: z.string(),+ })+ .refine((data) => !data.shareEmail || z.email().safeParse(data.email).success, {+ path: ['email'],+ message: t`Please enter a valid email.`,+ });++ const form = useForm<z.infer<typeof schema>>({+ resolver: zodResolver(schema),+ defaultValues: {+ rating: undefined,+ reasons: [],+ message: '',+ attachments: [],+ shareEmail: false,+ email: '',+ },+ });++ const rating = useWatch({ control: form.control, name: 'rating' });+ const shareEmail = useWatch({ control: form.control, name: 'shareEmail' });++ // Attachments are driven directly off form state (not a FormField) so the+ // trigger can sit inside the textarea's corner while the previews render+ // below it — two spots that can't share one FormField render.+ const attachments = useWatch({ control: form.control, name: 'attachments' });+ const atMaxAttachments = attachments.length >= MAX_ATTACHMENTS;+ const attachmentsError = form.formState.errors.attachments;+ const setAttachments = (files: File[]) =>+ form.setValue('attachments', files, { shouldValidate: true });++ const onSubmit = async (data: z.infer<typeof schema>) => {+ // Guard the whole body: RHF's handleSubmit does not catch a rejected onValid+ // callback, so an unhandled throw (e.g. a FileReader read error while+ // base64-encoding an attachment) would leave isSubmitting stuck true and the+ // Send button frozen with no feedback. submitFeedback already catches its+ // own transport errors; this covers the attachment-conversion step before it.+ try {+ const attachments = data.attachments.length+ ? await Promise.all(data.attachments.map(fileToFeedbackAttachment))+ : undefined;+ const result = await submitFeedback({+ kind: 'general',+ rating: data.rating,+ reasons: data.reasons,+ message: data.message.trim() || undefined,+ email: data.shareEmail && data.email ? data.email : undefined,+ attachments,+ source,+ });+ if (result.ok) {+ toast.success(t`Thanks for the feedback!`);+ form.reset();+ onSuccess?.();+ return;+ }+ if (result.reason === 'unavailable') {+ toast.error(t`Feedback isn't available right now. Please try again later.`);+ return;+ }+ toast.error(t`Something went wrong sending your feedback. Please try again.`);+ } catch (err) {+ // Reaches here only on an unexpected throw before/around submit (e.g. a+ // FileReader read error while encoding an attachment); log for diagnosis,+ // then show the same generic error.+ console.warn(+ `[feedback] action=submit result=unexpected-error message=${err instanceof Error ? err.message : String(err)}`,+ );+ toast.error(t`Something went wrong sending your feedback. Please try again.`);+ }+ };++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-5">+ {/* Rating — single choice, drives whether the reason pills show. */}+ <FormField+ control={form.control}+ name="rating"+ render={({ field }) => (+ <FormItem>+ <FormControl>+ <ToggleGroup+ type="single"+ variant="outline"+ spacing={2}+ value={field.value ?? ''}+ onValueChange={(value) => {+ if (!value) return;+ field.onChange(value);+ // Reasons are bad-only; drop any prior selection when the+ // pills are hidden so they don't leak into the payload.+ if (value === 'positive') form.setValue('reasons', []);+ }}+ className="w-full"+ >+ <ToggleGroupItem+ value="positive"+ className={`h-auto flex-1 justify-center gap-2 py-2 ${selectedStateClassName}`}+ >+ <ThumbsUp className="size-4" />+ <Trans>Good</Trans>+ </ToggleGroupItem>+ <ToggleGroupItem+ value="negative"+ className={`h-auto flex-1 justify-center gap-2 py-2 ${selectedStateClassName}`}+ >+ <ThumbsDown className="size-4" />+ <Trans>Not great</Trans>+ </ToggleGroupItem>+ </ToggleGroup>+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ <div className="space-y-3">+ {/* Reason pills — only shown when the "Not great" rating is selected. */}+ {rating === 'negative' && (+ <FormField+ control={form.control}+ name="reasons"+ render={({ field }) => (+ <FormItem>+ <FormLabel>+ <Trans>What got in the way?</Trans>+ </FormLabel>+ <FormControl>+ <ToggleGroup+ type="multiple"+ variant="outline"+ spacing={2}+ value={field.value}+ onValueChange={field.onChange}+ className="w-full flex-wrap justify-start"+ >+ {REASONS.map((reason) => (+ <ToggleGroupItem+ key={reason.value}+ value={reason.value}+ className={pillClassName}+ >+ {t(reason.label)}+ </ToggleGroupItem>+ ))}+ </ToggleGroup>+ </FormControl>+ </FormItem>+ )}+ />+ )}++ {/* Message with the attach button tucked into its bottom-left corner —+ a real sibling button positioned over the textarea, not inside it —+ and the attachment previews rendered below. */}+ <div className="space-y-2">+ <FormField+ control={form.control}+ name="message"+ render={({ field }) => (+ <FormItem>+ <FormControl>+ <div className="relative">+ <Textarea+ {...field}+ placeholder={t`Tell us more (optional)`}+ className="min-h-20 resize-none pb-9"+ />+ <Tooltip>+ {/* Disabled buttons emit no pointer events, so the tooltip+ trigger sits on a wrapping span (shadcn's documented+ pattern); the button itself is truly disabled at the cap. */}+ <TooltipTrigger asChild>+ <span+ className={cn(+ 'absolute bottom-1.5 left-1.5 inline-flex',+ atMaxAttachments && 'cursor-not-allowed',+ )}+ >+ <Button+ type="button"+ variant="ghost"+ size="icon"+ disabled={atMaxAttachments}+ onClick={() => fileInputRef.current?.click()}+ className="size-7 text-muted-foreground"+ >+ <Paperclip className="size-4" />+ <span className="sr-only">+ <Trans>Attach images</Trans>+ </span>+ </Button>+ </span>+ </TooltipTrigger>+ <TooltipContent>+ {atMaxAttachments ? (+ <Trans>Maximum {MAX_ATTACHMENTS} attachments</Trans>+ ) : (+ <Trans>Attach images</Trans>+ )}+ </TooltipContent>+ </Tooltip>+ <Input+ ref={fileInputRef}+ type="file"+ accept={ACCEPTED_IMAGE_TYPES.join(',')}+ multiple+ className="hidden"+ onChange={(e) => {+ setAttachments(mergeAttachments(attachments, e.target.files));+ // Reset so re-picking the same file re-fires onChange.+ e.target.value = '';+ }}+ />+ </div>+ </FormControl>+ </FormItem>+ )}+ />++ {attachments.length > 0 && (+ <AttachmentGroup>+ {attachments.map((file, index) => (+ <Attachment key={`${file.name}:${file.size}`} size="xs">+ <AttachmentMedia variant="image">+ <AttachmentImagePreview file={file} />+ </AttachmentMedia>+ <AttachmentContent>+ <AttachmentTitle>{file.name}</AttachmentTitle>+ <AttachmentDescription>{formatFileSize(file.size)}</AttachmentDescription>+ </AttachmentContent>+ <AttachmentActions>+ <AttachmentAction+ type="button"+ aria-label={t`Remove ${file.name}`}+ onClick={() => setAttachments(attachments.filter((_, i) => i !== index))}+ >+ <X className="size-3.5" />+ </AttachmentAction>+ </AttachmentActions>+ </Attachment>+ ))}+ </AttachmentGroup>+ )}++ {attachmentsError?.message && (+ <p className="text-destructive text-sm">{attachmentsError.message}</p>+ )}+ </div>+ </div>+ <div className="space-y-2">+ {/* Email opt-in — the address field only appears once checked. */}+ <FormField+ control={form.control}+ name="shareEmail"+ render={({ field }) => (+ <FormItem className="flex flex-row items-center gap-2 space-y-0">+ <FormControl>+ <Checkbox+ checked={field.value}+ onCheckedChange={(checked) => field.onChange(checked === true)}+ />+ </FormControl>+ <FormLabel className="font-normal">+ <Trans>Share your email for followups</Trans>+ </FormLabel>+ </FormItem>+ )}+ />++ {shareEmail && (+ <FormField+ control={form.control}+ name="email"+ render={({ field }) => (+ <FormItem>+ <FormControl>+ <Input {...field} type="email" placeholder={t`[email protected]`} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ )}+ </div>++ <div className="flex justify-end">+ <Button type="submit" disabled={form.formState.isSubmitting}>+ {form.formState.isSubmitting ? <Trans>Sending</Trans> : <Trans>Send</Trans>}+ </Button>+ </div>+ </form>+ </Form>+ );+};diff --git a/packages/app/src/components/FeedbackFormDialog.tsx b/packages/app/src/components/FeedbackFormDialog.tsxnew file mode 100644index 000000000..a059c877a--- /dev/null+++ b/packages/app/src/components/FeedbackFormDialog.tsx@@ -0,0 +1,37 @@+import { Trans } from '@lingui/react/macro';+import { lazy, Suspense } from 'react';+import { Dialog, DialogContent, DialogHeader, DialogTitle } from './ui/dialog';++// Lazy so the form's deps (zod schema, react-hook-form, the attachment UI, its+// icons) only enter the bundle graph the first time the dialog opens — mirrors+// ReportBugDialog's lazy-body split. The header renders immediately; only the+// form body suspends.+const FeedbackForm = lazy(() =>+ import('./FeedbackForm').then((m) => ({ default: m.FeedbackForm })),+);++export const FeedbackFormDialog = ({+ open,+ onOpenChange,+ source,+}: {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ /** Which in-app surface opened the form; forwarded for analytics attribution. */+ source?: string;+}) => {+ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>+ <Trans>How do you like OpenKnowledge?</Trans>+ </DialogTitle>+ </DialogHeader>+ <Suspense fallback={null}>+ <FeedbackForm source={source} onSuccess={() => onOpenChange(false)} />+ </Suspense>+ </DialogContent>+ </Dialog>+ );+};diff --git a/packages/app/src/components/HelpPopover.dom.test.tsx b/packages/app/src/components/HelpPopover.dom.test.tsxindex 07eef1883..85888dd51 100644--- a/packages/app/src/components/HelpPopover.dom.test.tsx+++ b/packages/app/src/components/HelpPopover.dom.test.tsx@@ -1,20 +1,20 @@-import { afterEach, beforeEach, describe, expect, mock, test } from 'bun:test';import * as actualLinguiMacro from '@lingui/react/macro';import { cleanup, render, screen, waitFor, within } from '@testing-library/react';import userEvent from '@testing-library/user-event';import type { ReactNode } from 'react';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import { TooltipProvider } from '@/components/ui/tooltip';import { renderLinguiTemplate } from '@/test-utils/lingui-mock';-mock.module('@lingui/core/macro', () => ({ ...actualLinguiMacro, msg: renderLinguiTemplate }));+vi.doMock('@lingui/core/macro', () => ({ ...actualLinguiMacro, msg: renderLinguiTemplate }));-mock.module('@lingui/react/macro', () => ({+vi.doMock('@lingui/react/macro', () => ({...actualLinguiMacro,Trans: ({ children }: { children: ReactNode }) => <>{children}</>,useLingui: () => ({ t: renderLinguiTemplate }),}));-mock.module('@/lib/external-link', () => ({+vi.doMock('@/lib/external-link', () => ({dispatchExternalLinkClick: () => {},}));@@ -48,7 +48,7 @@ describe('HelpPopover runtime behavior', () => {beforeEach(() => {// Stub the GitHub star-count fetch so the count is deterministic and no// real network call fires during the test.- globalThis.fetch = mock(+ globalThis.fetch = vi.fn(async () =>new Response(JSON.stringify({ stargazers_count: 1234 }), {status: 200,@@ -89,6 +89,8 @@ describe('HelpPopover runtime behavior', () => {const nav = screen.getByRole('navigation', { name: 'Resources' });const links = within(nav).getAllByRole('link');+ // Resources holds a single external link (Docs); the issue-reporting and+ // feedback entries render as in-app action buttons, not links.expect(links.map(linkShape)).toEqual([{label: 'Docs',@@ -97,20 +99,6 @@ describe('HelpPopover runtime behavior', () => {rel: 'noopener noreferrer',hasIcon: true,},- {- label: 'File an issue',- href: 'https://github.com/inkeep/open-knowledge/issues/new',- target: '_blank',- rel: 'noopener noreferrer',- hasIcon: true,- },- {- label: 'Website',- href: 'https://openknowledge.ai/',- target: '_blank',- rel: 'noopener noreferrer',- hasIcon: true,- },]);});@@ -181,15 +169,17 @@ describe('HelpPopover with the desktop bridge present', () => {(window as unknown as { okDesktop?: unknown }).okDesktop = undefined;});- test('adds a Report a bug action immediately after File an issue', async () => {+ test('adds Report a bug and Provide feedback actions after the Docs link', async () => {await renderOpenHelpPopover();const nav = screen.getByRole('navigation', { name: 'Resources' });- const fileAnIssue = within(nav).getByRole('link', { name: 'File an issue' });+ const docs = within(nav).getByRole('link', { name: 'Docs' });const reportBug = within(nav).getByRole('button', { name: 'Report a bug' });+ const provideFeedback = within(nav).getByRole('button', { name: 'Provide feedback' });- // Positioned right after the File an issue row so the two issue-reporting- // actions sit together (DOCUMENT_POSITION_FOLLOWING === 4).- expect(fileAnIssue.compareDocumentPosition(reportBug)).toBe(Node.DOCUMENT_POSITION_FOLLOWING);+ // Both in-app actions follow the Docs link (DOCUMENT_POSITION_FOLLOWING === 4);+ // report-bug is desktop-only, so it only appears with the bridge present.+ expect(docs.compareDocumentPosition(reportBug)).toBe(Node.DOCUMENT_POSITION_FOLLOWING);+ expect(docs.compareDocumentPosition(provideFeedback)).toBe(Node.DOCUMENT_POSITION_FOLLOWING);});});diff --git a/packages/app/src/components/HelpPopover.tsx b/packages/app/src/components/HelpPopover.tsxindex 5fa51ffbb..afaf6bafc 100644--- a/packages/app/src/components/HelpPopover.tsx+++ b/packages/app/src/components/HelpPopover.tsx@@ -2,9 +2,9 @@ import { getGitHubStars } from '@inkeep/open-knowledge-core';import type { MessageDescriptor } from '@lingui/core';import { msg } from '@lingui/core/macro';import { Trans, useLingui } from '@lingui/react/macro';-import { BookOpen, Bug, CircleDot, CircleHelp, Globe, Mail, Megaphone, Star } from 'lucide-react';+import { BookOpen, Bug, CircleHelp, Mail, Megaphone, MessageSquare, Star } from 'lucide-react';import type { ComponentProps, FC, ReactNode } from 'react';-import { Fragment, useEffect, useState } from 'react';+import { useEffect, useState } from 'react';import { ReportBugDialog } from '@/components/ReportBugDialog';import { SubscribeForm } from '@/components/SubscribeForm';import { Button } from '@/components/ui/button';@@ -14,6 +14,7 @@ import { dispatchExternalLinkClick } from '@/lib/external-link';import { DISCORD_INVITE_URL, GITHUB_REPO_URL, X_PROFILE_URL } from '@/lib/social-links';import { subscribeCardStore } from '@/lib/subscribe-card-store';import { cn } from '@/lib/utils';+import { FeedbackFormDialog } from './FeedbackFormDialog';import { DiscordIcon } from './icons/discord';import { GithubIcon } from './icons/github';import { XTwitterIcon } from './icons/x-twitter';@@ -33,19 +34,11 @@ interface ResourceSection {links: ResourceLink[];}-// Anchor for the desktop-only "Report a bug" action row, which is interleaved-// directly after this link in the Resources list.-const FILE_AN_ISSUE_HREF = `${GITHUB_REPO_URL}/issues/new`;-const sections: ResourceSection[] = [{key: 'resources',heading: msg`Resources`,- links: [- { label: msg`Docs`, href: 'https://openknowledge.ai/docs', icon: BookOpen },- { label: msg`File an issue`, href: FILE_AN_ISSUE_HREF, icon: CircleDot },- { label: msg`Website`, href: 'https://openknowledge.ai/', icon: Globe },- ],+ links: [{ label: msg`Docs`, href: 'https://openknowledge.ai/docs', icon: BookOpen }],},{key: 'community',@@ -107,17 +100,21 @@ const ResourceLinkRow: FC<{ link: ResourceLink; trailing?: ReactNode }> = ({ lin);};-// Desktop-only action row: opens the in-app Report-a-bug dialog rather than-// navigating out, so it renders as a button styled to match the link rows.-const ReportBugRow: FC<{ onSelect: () => void }> = ({ onSelect }) => (+// Action row: opens an in-app dialog rather than navigating out, so it renders+// as a button styled to match the external-link rows.+const ActionRow: FC<{+ icon: FC<ComponentProps<'svg'>>;+ onSelect: () => void;+ children: ReactNode;+}> = ({ icon: Icon, onSelect, children }) => (<li><Buttonvariant="ghost"className={cn(rowClassName, 'h-auto w-full justify-start font-normal')}onClick={onSelect}>- <Bug aria-hidden="true" className="size-4 shrink-0" />- <Trans>Report a bug</Trans>+ <Icon aria-hidden="true" className="size-4 shrink-0" />+ {children}</Button></li>);@@ -131,6 +128,7 @@ export const HelpPopover: FC = () => {const [popoverOpen, setPopoverOpen] = useState(false);const [subscribeOpen, setSubscribeOpen] = useState(false);const [reportBugOpen, setReportBugOpen] = useState(false);+ const [feedbackOpen, setFeedbackOpen] = useState(false);const [starCount, setStarCount] = useState<number | null>(null);// The Report-a-bug flow (bundle create + upload) lives entirely behind the@@ -188,27 +186,45 @@ export const HelpPopover: FC = () => {<nav aria-label={t(section.heading)}><ul className="space-y-0.5">{section.links.map((link) => (- <Fragment key={link.href}>- <ResourceLinkRow- link={link}- trailing={- link.href === GITHUB_REPO_URL && starCount !== null ? (- <StarCount count={starCount} />- ) : undefined- }- />- {/* Interleaved right after "File an issue" so the two- issue-reporting actions sit together; desktop-only. */}- {hasDesktopBridge && link.href === FILE_AN_ISSUE_HREF && (- <ReportBugRow+ <ResourceLinkRow+ key={link.href}+ link={link}+ trailing={+ link.href === GITHUB_REPO_URL && starCount !== null ? (+ <StarCount count={starCount} />+ ) : undefined+ }+ />+ ))}+ {/* In-app dialog actions: they open a dialog rather than+ navigating out, so they live outside the section's link+ data and render at the end of the Resources list. */}+ {section.key === 'resources' && (+ <>+ {/* Report-a-bug is desktop-only — its bundle create ++ upload flow lives behind the Electron bridge. */}+ {hasDesktopBridge && (+ <ActionRow+ icon={Bug}onSelect={() => {setPopoverOpen(false);setReportBugOpen(true);}}- />+ >+ <Trans>Report a bug</Trans>+ </ActionRow>)}- </Fragment>- ))}+ <ActionRow+ icon={MessageSquare}+ onSelect={() => {+ setPopoverOpen(false);+ setFeedbackOpen(true);+ }}+ >+ <Trans>Provide feedback</Trans>+ </ActionRow>+ </>+ )}</ul></nav></div>@@ -255,9 +271,11 @@ export const HelpPopover: FC = () => {</div></PopoverContent></Popover>- {/* Sibling to the Popover so the dialog survives the menu closing on- select. Desktop-only — gated on the same bridge as the trigger row. */}+ {/* Siblings to the Popover so the dialogs survive the menu closing on+ select. Report-a-bug is desktop-only — gated on the same bridge as+ its trigger row. */}{hasDesktopBridge && <ReportBugDialog open={reportBugOpen} onOpenChange={setReportBugOpen} />}+ <FeedbackFormDialog open={feedbackOpen} onOpenChange={setFeedbackOpen} /></>);};diff --git a/packages/app/src/components/ReportBugDialogBody.tsx b/packages/app/src/components/ReportBugDialogBody.tsxindex 63109c1fe..9847bce01 100644--- a/packages/app/src/components/ReportBugDialogBody.tsx+++ b/packages/app/src/components/ReportBugDialogBody.tsx@@ -547,7 +547,7 @@ function ReportBugDialog({disabled={phase.creating}className="mt-0.5"/>- <div className="flex min-w-0 flex-col gap-1.5">+ <div className="flex min-w-0 flex-col gap-0.5"><label htmlFor={screenshotId} className="text-sm font-medium"><Trans>Screenshot</Trans></label>@@ -559,7 +559,7 @@ function ReportBugDialog({</p>{/* Preview dims when excluded so the checkbox state readsat a glance; the label above already names it. */}- <div className="mt-0.5 overflow-hidden rounded-md border bg-muted/40">+ <div className="mt-2 overflow-hidden rounded-md border bg-muted/40"><imgsrc={screenshot.dataUrl}alt={t`Preview of the screenshot`}diff --git a/packages/app/src/components/ui/attachment.tsx b/packages/app/src/components/ui/attachment.tsxnew file mode 100644index 000000000..00a342982--- /dev/null+++ b/packages/app/src/components/ui/attachment.tsx@@ -0,0 +1,191 @@+import { cva, type VariantProps } from 'class-variance-authority';+import { Slot } from 'radix-ui';+import type * as React from 'react';+import { Button } from '@/components/ui/button';+import { cn } from '@/lib/utils';++const attachmentVariants = cva(+ 'group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed',+ {+ variants: {+ size: {+ default:+ 'gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2',+ sm: 'gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5',+ xs: 'gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1',+ },+ orientation: {+ horizontal: 'min-w-40 items-center',+ vertical: 'w-24 flex-col has-data-[slot=attachment-content]:w-30',+ },+ },+ },+);++function Attachment({+ className,+ state = 'done',+ size = 'default',+ orientation = 'horizontal',+ ...props+}: React.ComponentProps<'div'> &+ VariantProps<typeof attachmentVariants> & {+ state?: 'idle' | 'uploading' | 'processing' | 'error' | 'done';+ }) {+ return (+ <div+ data-slot="attachment"+ data-state={state}+ data-size={size}+ data-orientation={orientation}+ className={cn(attachmentVariants({ size, orientation }), className)}+ {...props}+ />+ );+}++const attachmentMediaVariants = cva(+ "relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5",+ {+ variants: {+ variant: {+ icon: '',+ image:+ 'opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover',+ },+ },+ defaultVariants: {+ variant: 'icon',+ },+ },+);++function AttachmentMedia({+ className,+ variant = 'icon',+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof attachmentMediaVariants>) {+ return (+ <div+ data-slot="attachment-media"+ data-variant={variant}+ className={cn(attachmentMediaVariants({ variant }), className)}+ {...props}+ />+ );+}++function AttachmentContent({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="attachment-content"+ className={cn(+ 'max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1',+ className,+ )}+ {...props}+ />+ );+}++function AttachmentTitle({ className, ...props }: React.ComponentProps<'span'>) {+ return (+ <span+ data-slot="attachment-title"+ className={cn(+ 'block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer',+ className,+ )}+ {...props}+ />+ );+}++function AttachmentDescription({ className, ...props }: React.ComponentProps<'span'>) {+ return (+ <span+ data-slot="attachment-description"+ className={cn(+ 'mt-0.5 block min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive/80',+ 'max-w-full',+ className,+ )}+ {...props}+ />+ );+}++function AttachmentActions({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="attachment-actions"+ className={cn(+ 'relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1',+ className,+ )}+ {...props}+ />+ );+}++function AttachmentAction({+ className,+ variant,+ size = 'icon-xs',+ ...props+}: React.ComponentProps<typeof Button>) {+ return (+ <Button+ data-slot="attachment-action"+ variant={variant ?? 'ghost'}+ size={size}+ className={cn(className)}+ {...props}+ />+ );+}++function AttachmentTrigger({+ className,+ asChild = false,+ type,+ ...props+}: React.ComponentProps<'button'> & {+ asChild?: boolean;+}) {+ const Comp = asChild ? Slot.Root : 'button';++ return (+ <Comp+ data-slot="attachment-trigger"+ type={asChild ? undefined : (type ?? 'button')}+ className={cn('absolute inset-0 z-10 outline-none', className)}+ {...props}+ />+ );+}++function AttachmentGroup({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="attachment-group"+ className={cn(+ 'flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start',+ className,+ )}+ {...props}+ />+ );+}++export {+ Attachment,+ AttachmentAction,+ AttachmentActions,+ AttachmentContent,+ AttachmentDescription,+ AttachmentGroup,+ AttachmentMedia,+ AttachmentTitle,+ AttachmentTrigger,+};diff --git a/packages/app/src/globals.css b/packages/app/src/globals.cssindex 77012fa76..f9c709f89 100644--- a/packages/app/src/globals.css+++ b/packages/app/src/globals.css@@ -2501,6 +2501,94 @@ button:active:not(:disabled) {);}+/* shadcn Attachment component utilities (src/components/ui/attachment.tsx).+ The registry item references these but ships none of them, and the repo's own+ scroll-fade masks use different class names, so they're defined here.++ `.scroll-fade-x` mirrors `.scroll-fade-mask-x`: this static rule is the+ Firefox fallback (always-on edge fade); the @supports block below makes the+ fade scroll-driven in Chromium/Electron, so an edge only fades when there's+ content to scroll past it — without it the first card's left edge is always+ masked and appears clipped. */+.scroll-fade-x {+ -webkit-mask-image: linear-gradient(+ to right,+ transparent 0,+ black 1rem,+ black calc(100% - 1rem),+ transparent 100%+ );+ mask-image: linear-gradient(+ to right,+ transparent 0,+ black 1rem,+ black calc(100% - 1rem),+ transparent 100%+ );+}++@supports (animation-timeline: scroll(self)) {+ .scroll-fade-x {+ -webkit-mask-image: linear-gradient(+ to right,+ rgba(0, 0, 0, var(--scroll-fade-left)) 0,+ black 1rem,+ black calc(100% - 1rem),+ rgba(0, 0, 0, var(--scroll-fade-right)) 100%+ );+ mask-image: linear-gradient(+ to right,+ rgba(0, 0, 0, var(--scroll-fade-left)) 0,+ black 1rem,+ black calc(100% - 1rem),+ rgba(0, 0, 0, var(--scroll-fade-right)) 100%+ );+ animation-name: scroll-fade-left-in, scroll-fade-right-out;+ animation-duration: auto;+ animation-timing-function: linear;+ animation-fill-mode: both;+ animation-timeline: scroll(self inline);+ animation-range:+ 0 1rem,+ calc(100% - 1rem) 100%;+ }+}++.scrollbar-none {+ scrollbar-width: none;+}+.scrollbar-none::-webkit-scrollbar {+ display: none;+}++/* `shimmer` is applied through a `group-data-[state=…]/attachment:shimmer`+ variant, so it must be a real Tailwind utility (not a plain class) for the+ variant to resolve. Only the uploading/processing attachment states trigger+ it — the feedback picker's attachments are always `done`. */+@utility shimmer {+ background: linear-gradient(+ 90deg,+ var(--muted-foreground) 25%,+ var(--foreground) 50%,+ var(--muted-foreground) 75%+ );+ background-size: 200% 100%;+ -webkit-background-clip: text;+ background-clip: text;+ -webkit-text-fill-color: transparent;+ color: transparent;+ animation: shimmer 1.5s linear infinite;+}++@keyframes shimmer {+ from {+ background-position: 200% 0;+ }+ to {+ background-position: -200% 0;+ }+}+@supports (animation-timeline: scroll(self)) {.scroll-fade-mask {-webkit-mask-image: linear-gradient(diff --git a/packages/app/src/lib/feedback.ts b/packages/app/src/lib/feedback.tsnew file mode 100644index 000000000..89caa7d80--- /dev/null+++ b/packages/app/src/lib/feedback.ts@@ -0,0 +1,122 @@+/**+ * Feedback transport. Like the subscribe + bug-report flows, the editor app is+ * served locally (Electron / `localhost`) with no backend that could hold the+ * Linear secret, so we POST cross-origin to the `/api/feedback` route served+ * centrally at the apex (the route answers CORS + preflight for this reason).+ *+ * Single-shot: the payload carries any images inline as base64 (the route caps+ * the total well under Vercel's request-body limit), and the response returns+ * the filed Linear issue reference.+ */+import { BROWSER_RUNTIME_VERSION } from './client-version';++const importMetaEnv = (import.meta as unknown as { env?: Record<string, string | undefined> }).env;++// Intake origin: the apex by default, overridable at dev time to a locally-run+// marketing site (Vite exposes `VITE_*` env). The web analog of the desktop+// bug-report client's `OK_BUG_REPORT_INTAKE_URL` seam:+// VITE_OK_FEEDBACK_INTAKE_ORIGIN=http://localhost:3200 pnpm dev+const FEEDBACK_ENDPOINT = new URL(+ '/api/feedback',+ importMetaEnv?.VITE_OK_FEEDBACK_INTAKE_ORIGIN || 'https://openknowledge.ai',+).href;++type FeedbackKind = 'general' | 'uninstall';+type FeedbackRating = 'positive' | 'negative';++// The route accepts only these image types; kept in sync with the intake schema+// (a cross-deploy contract — app and marketing ship separately).+type FeedbackImageType = 'image/png' | 'image/jpeg' | 'image/webp';++export interface FeedbackAttachmentPayload {+ contentType: FeedbackImageType;+ /** Base64 with no `data:` prefix. */+ base64: string;+}++export interface FeedbackPayload {+ kind: FeedbackKind;+ rating?: FeedbackRating;+ reasons: string[];+ message?: string;+ email?: string;+ attachments?: FeedbackAttachmentPayload[];+ /** Which in-app surface opened the form (bounded, for analytics). */+ source?: string;+}++export type FeedbackResult =+ | { ok: true; reference: string }+ // `invalid` — the payload was rejected (400) or too large (413).+ // `unavailable` — feedback is turned off server-side (503).+ // `error` — anything else (Linear failure, network, parse): retryable.+ | { ok: false; reason: 'invalid' | 'unavailable' | 'error' };++/** Reads a File into base64 (no `data:` prefix), for inline transport. */+function fileToBase64(file: File): Promise<string> {+ return new Promise((resolve, reject) => {+ const reader = new FileReader();+ reader.onload = () => {+ const result = typeof reader.result === 'string' ? reader.result : '';+ const comma = result.indexOf(',');+ resolve(comma === -1 ? '' : result.slice(comma + 1));+ };+ reader.onerror = () => reject(reader.error ?? new Error('file read failed'));+ reader.readAsDataURL(file);+ });+}++/** Maps a picked image File to the wire attachment shape. */+export async function fileToFeedbackAttachment(file: File): Promise<FeedbackAttachmentPayload> {+ return { contentType: file.type as FeedbackImageType, base64: await fileToBase64(file) };+}++function resolvePlatform(): string {+ return (typeof window !== 'undefined' && window.okDesktop?.platform) || 'web';+}++export async function submitFeedback(payload: FeedbackPayload): Promise<FeedbackResult> {+ try {+ const response = await fetch(FEEDBACK_ENDPOINT, {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({+ ...payload,+ appVersion: BROWSER_RUNTIME_VERSION,+ platform: resolvePlatform(),+ }),+ // Longer than subscribe: the request carries image bytes and the route+ // uploads them to Linear before filing. Matches the route's maxDuration.+ signal: AbortSignal.timeout(30_000),+ });+ if (response.ok) {+ // The report filed (200); a parse failure only costs us the Linear+ // reference in the success toast, so warn (for drift diagnosis) but still+ // report success rather than a spurious error.+ const data = (await response.json().catch((err) => {+ console.warn(+ `[feedback] action=submit result=ok-parse-error message=${err instanceof Error ? err.message : String(err)}`,+ );+ return null;+ })) as { reference?: unknown } | null;+ const reference = data && typeof data.reference === 'string' ? data.reference : '';+ return { ok: true, reference };+ }+ if (response.status === 400 || response.status === 413) {+ return { ok: false, reason: 'invalid' };+ }+ if (response.status === 503) {+ return { ok: false, reason: 'unavailable' };+ }+ // Log HTTP errors (502/500/429/...) for parity with the network-error path.+ console.warn(`[feedback] action=submit result=http-error status=${response.status}`);+ return { ok: false, reason: 'error' };+ } catch (err) {+ console.warn(+ `[feedback] action=submit result=network-error message=${+ err instanceof Error ? err.message : String(err)+ }`,+ );+ return { ok: false, reason: 'error' };+ }+}diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex 15a5e884f..d53cdd356 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -120,6 +120,7 @@"1njn7W": ["Light"],"1nke1r": ["Open ", ["0"], " on GitHub (opens in a new tab)"],"1t_NnN": ["Reject"],+ "1uyUjj": ["Provide feedback"],"2-CeZn": ["Your report is saved on this Mac, so nothing was lost. You can email it to us instead."],@@ -185,6 +186,7 @@"3Ijjy1": ["Couldn't load this skill's files."],"3J7d2N": ["Big section heading."],"3JYy1p": ["Branch ", ["0"], " no longer exists. Cloned to default branch."],+ "3LbBJn": ["Attach images"],"3MnvrL": ["Showing top ", ["0"], " matches — keep typing to narrow"],"3Mwaly": ["Could not initialize ", ["0"], "."],"3SDfZl": [@@ -478,6 +480,7 @@"9Vh9Jf": ["Reopen this window to sign in with your browser"],"9XIEYq": ["Attach the file in an email to <0/>"],"9bCiQ8": ["No pages are missing incoming graph links."],+ "9bG48P": ["Sending"],"9clcD5": ["Open documents tagged #", ["chip"]],"9dw5bW": ["Create with ", ["0"]],"9euN0m": [@@ -524,6 +527,7 @@"AQGtjK": ["Commands run with the full access of your macOS user account on this machine. Turn this off to disable the shell."],+ "ASqqsQ": ["Maximum ", ["MAX_ATTACHMENTS"], " attachments"],"ATGYL1": ["Email address"],"AVW-K9": ["Failed to load orphan pages"],"AWOSPo": ["Zoom in"],@@ -633,7 +637,9 @@["1", "plural", { "one": ["#", " folder"], "other": ["#", " folders"] }]," and starter templates) in the folder of your choice."],+ "D2emTw": ["Something went wrong sending your feedback. Please try again."],"D4H2N6": ["Remove ", ["tag"]],+ "D8JJwQ": ["Feedback isn't available right now. Please try again later."],"D8OV7J": ["Only collaborators"],"DDTdLl": ["Code block settings"],"DELNQk": ["Collaborators see your in-progress edits as soon as they sync."],@@ -694,6 +700,7 @@],"E7BhZn": ["Blank note"],"E9bKSA": ["Creating"],+ "E9gh86": ["You can attach up to ", ["MAX_ATTACHMENTS"], " images."],"EARn6h": ["Couldn't share skills — ", ["detail"], "."],"EBVbtP": ["Could not duplicate item"],"EDl9kS": ["Subscribe"],@@ -794,6 +801,7 @@"FqGWeR": ["Couldn't reach the agent registry."],"FqTpiN": ["Bird wiki"],"Fqr8BP": ["Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."],+ "Fqx38P": ["What got in the way?"],"Fsx78O": ["Add the <0>ok</0> command to your terminal"],"FvMSms": ["Renaming changes the file on disk and the id agents use to pick this template."],"FvpFSZ": ["Reveal in Finder, ", ["hint"]],@@ -858,6 +866,7 @@"GuqOb1": ["Failed to load headings"],"Gx0VS1": ["e.g. drafts/ or *.draft.md"],"GzPQ2f": ["Stay in the loop"],+ "H-hzll": ["Please choose Good or Not great."],"H-vDm3": ["Relaunching to install the update…"],"H08D2X": ["Open a single markdown file in a temporary session, without project setup."],"H0WlWQ": ["Grid of rows and columns with a header row."],@@ -925,6 +934,7 @@"IrC12v": ["Application"],"IreQBq": ["Repository"],"It9ARY": ["Toggle the right document panel."],+ "ItxGi3": ["Attachments must total under 3 MB."],"Ix0K8o": ["Hide external URL nodes"],"IxyZXD": ["Screenshot"],"Izb10l": ["Fix all ", ["count"], " fixable problems"],@@ -937,6 +947,7 @@"No disconnected pages. Pages appear here only when they have no incoming and no outgoing graph edges."],"JE21eh": ["Symlink to ", ["targetPath"]],+ "JHf6qZ": ["[email protected]"],"JJcBCm": [["0"], " total"],"JK-Ave": ["Hide thumbnails"],"JL3si7": ["Updating"],@@ -1076,6 +1087,7 @@}]],+ "LvdLef": ["Thanks for the feedback!"],"LwMxXg": ["Failed to open worktree."],"M-IF14": ["Report reference"],"M1OfV9": ["Next source diagnostic"],@@ -1087,6 +1099,7 @@"M6mvVi": ["Copy relative path"],"M9597s": ["Preparing share URL..."],"MCjC9A": ["Delete ", ["deleteDescriptorLabel"]],+ "MDBJwN": ["Hard to use"],"MDZSJe": ["When the agent runs its scheduled work."],"MGb89P": ["Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."@@ -1187,6 +1200,7 @@"O9oQJS": ["Send report"],"OD0FCX": ["Hidden “", ["basename"], "”"],"ODGGlj": ["Folder name: ", ["detail"]],+ "OEEQKT": ["Good"],"OETysD": ["No hub pages yet. Hubs appear once pages accumulate inbound graph links."],"OEu_0l": ["Failed to load skills: ", ["0"]],"OFBmkg": [@@ -1221,7 +1235,6 @@"Okd2Xv": ["Toggle underline formatting."],"OlAl5i": ["Expand all"],"OmHTGj": ["Disable git auto-sync"],- "On0aF2": ["Website"],"Oo_WWc": ["No pages found"],"Oos8fo": ["Copy command"],"OplnBG": ["Managing AI tools is unavailable in this build."],@@ -1241,7 +1254,6 @@"PB4upl": ["Find previous match"],"PBwmDJ": ["Searching by meaning"],"PBxg_E": ["Not now"],- "PCNIuJ": ["File an issue"],"PCSkw2": ["Skills"],"PIMM5l": ["You're subscribed!"],"PKLY-1": ["Opening..."],@@ -1294,6 +1306,7 @@"QcpeeE": ["Navigate to ", ["docName"]],"QfFBdJ": ["The template's filename (without `.md`)."],"Qj4RL5": ["Completed:"],+ "QlAG4m": ["Tell us more (optional)"],"QlxHAH": ["Showing results for \"", ["semanticResultsLabel"], "\""],"QnjpOq": ["What do you want to build?"],"QqBQu1": ["Label <0>(visible link text)</0>"],@@ -1341,6 +1354,7 @@"RaPMZv": ["Keyboard shortcuts available in the editor and workspace."],"Rah7yq": ["What should the AI do? (optional)"],"Rb1zMa": ["No excerpt"],+ "RcrskJ": ["Formatting looked wrong"],"RfHNf8": ["Open activity panel for ", ["tooltipName"]],"RfaEio": ["Toggle source comment"],"RfilGt": ["No rules match your filters."],@@ -1369,7 +1383,9 @@"S9t1PI": ["Fixing ", ["0"], "/", ["1"]],"SCoBBH": ["Tag suggestions"],"SCzAbA": [["phase"], " — ", ["pct"], "%"],+ "SF9qpO": ["Share your email for followups"],"SFN6dN": ["Heading 3"],+ "SItQRc": ["How do you like OpenKnowledge?"],"SOPwPh": ["Restore to this edit"],"SQWJ-i": ["Restore sessions"],"STTOnz": [["keyName"], " type: complex value (nested; read-only)"],@@ -1420,6 +1436,7 @@"Tz0i8g": ["Settings"],"Tz4dq-": ["This request is no longer active."],"Tz9pJB": ["Clone stream ended unexpectedly — check if the clone completed"],+ "U0QBh4": ["Not great"],"U2Kx6T": ["Close all unpinned"],"U2pMtf": ["tag-name"],"U3IvM5": ["Full guide"],@@ -1631,6 +1648,7 @@"YEP3X2": ["Delete a table when the active table cell selection covers the full table."],"YGIi_c": ["Reinstall"],"YJ1BTp": ["A skill with that name already exists."],+ "YJPN3F": ["Too slow"],"YKLP_-": ["Template renamed"],"YLMBSd": ["e.g. The editor froze after I pasted a large table"],"YPFBfr": [["detail"], " - ", ["kind"], " \"", ["createdPath"], "\" still exists on disk"],@@ -1728,6 +1746,7 @@],"_FLBbi": [["sizeText"], " · secrets redacted · crash dump not redacted"],"_IGfXZ": ["OpenKnowledge quit unexpectedly last time."],+ "_IX_7x": ["Other"],"_NX6gG": ["Managing project AI tools is unavailable in this build."],"_PACVa": ["Release notes"],"_PBJRl": ["Add at least one letter or number."],@@ -1790,6 +1809,7 @@"adsMWO": ["Resolving deltas"],"aiArms": ["We couldn't clone this repository."],"ajz9F8": ["Couldn't load conflict content for ", ["filePath"], ". Try reloading the page."],+ "anmUZq": ["Missing a feature"],"aoa6xA": ["network error (is `ok ui` running?)"],"arUUsK": ["Product updates"],"ax9kie": ["Link preview settings not yet loaded — try again in a moment"],@@ -1907,6 +1927,7 @@],"dURmlQ": ["\"frontmatter\" is a reserved property name"],"dVaXnv": ["Content rules not yet loaded — try again in a moment"],+ "dXCi3J": ["Something broke"],"dXWMFn": ["Removes this skill from your editors."],"dYCvMf": ["Couldn't resume this conversation: ", ["0"]],"dbapvC": ["Follow us on social media"],@@ -1990,6 +2011,7 @@"fru3T7": ["Could not fix ", ["0"], " of ", ["1"], " files."],"fuJZKk": ["Search branches"],"fwhX-N": ["Indent or outdent source"],+ "fwrPh4": ["Please enter a valid email."],"fxJk_6": ["<0>Have more to add?</0> Write to <1/> and mention your reference."],"fxbCNQ": ["Synced. The link is up to date."],"g3UF2V": ["Accept"],@@ -2607,6 +2629,7 @@"s0_GnA": ["Opening ", ["openingLabel"], "…"],"s1c0ja": ["Bullet List"],"s3caR3": ["Deleting"],+ "s7us1p": ["Only PNG, JPEG, or WebP images are allowed."],"sE7R19": ["Could not load templates: ",["templatesError"],@@ -2773,6 +2796,7 @@"w4hMYl": ["Could not read branch state for this project. Close this dialog and open the share link again."],+ "w61W3L": ["Remove ", ["0"]],"w6sBjd": ["Terminal settings not yet loaded — try again in a moment"],"w6sT-y": ["Follow the agent's edits"],"w7SsvI": ["That folder isn't an OpenKnowledge project yet. Initialize it and open?"],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 05d33ed7d..0796c6160 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -1176,6 +1176,10 @@ msgstr "Asset reference"msgid "Asset: {title}"msgstr "Asset: {title}"+#: src/components/FeedbackForm.tsx+msgid "Attach images"+msgstr "Attach images"+#: src/components/ReportBugDialogBody.tsxmsgid "Attach the file in an email to <0/>"msgstr "Attach the file in an email to <0/>"@@ -1184,6 +1188,10 @@ msgstr "Attach the file in an email to <0/>"msgid "Attachments"msgstr "Attachments"+#: src/components/FeedbackForm.tsx+msgid "Attachments must total under 3 MB."+msgstr "Attachments must total under 3 MB."+#: src/editor/slash-command/component-items.tsxmsgid "Authoritative content; mirrored verbatim everywhere it's referenced."msgstr "Authoritative content; mirrored verbatim everywhere it's referenced."@@ -3769,6 +3777,10 @@ msgstr "Failed to update the project sync default — {detail}"msgid "Failed to upload file"msgstr "Failed to upload file"+#: src/components/FeedbackForm.tsx+msgid "Feedback isn't available right now. Please try again later."+msgstr "Feedback isn't available right now. Please try again later."+#: src/editor/slash-command/items.tsxmsgid "Fenced code block with monospace text."msgstr "Fenced code block with monospace text."@@ -3793,10 +3805,6 @@ msgstr "File"msgid "File already exists"msgstr "File already exists"-#: src/components/HelpPopover.tsx-msgid "File an issue"-msgstr "File an issue"-#: src/components/FileTree.tsxmsgid "File drop zone"msgstr "File drop zone"@@ -4000,6 +4008,10 @@ msgstr "Footnote"msgid "Force stop"msgstr "Force stop"+#: src/components/FeedbackForm.tsx+msgid "Formatting looked wrong"+msgstr "Formatting looked wrong"+#: src/components/LinksPanel.tsxmsgid "Forward-links response did not match expected shape."msgstr "Forward-links response did not match expected shape."@@ -4120,6 +4132,10 @@ msgstr "Go to line {displayLine}"msgid "Go to line {displayLine} in {0}"msgstr "Go to line {displayLine} in {0}"+#: src/components/FeedbackForm.tsx+msgid "Good"+msgstr "Good"+#: src/components/DocPanel.tsx#: src/components/GraphPanel.tsxmsgid "Graph"@@ -4145,6 +4161,10 @@ msgstr "guides/install or https://example.com"msgid "Hard break"msgstr "Hard break"+#: src/components/FeedbackForm.tsx+msgid "Hard to use"+msgstr "Hard to use"+#: src/components/NavigatorApp.tsxmsgid "Have something else in mind?"msgstr "Have something else in mind?"@@ -4324,6 +4344,10 @@ msgstr "Horizontal rule that divides sections."msgid "Hotkeys"msgstr "Hotkeys"+#: src/components/FeedbackFormDialog.tsx+msgid "How do you like OpenKnowledge?"+msgstr "How do you like OpenKnowledge?"+#: src/components/ShareButton.tsxmsgid "How does sharing work?"msgstr "How does sharing work?"@@ -5017,6 +5041,10 @@ msgstr "markdownlint rules"msgid "Match case"msgstr "Match case"+#: src/components/FeedbackForm.tsx+msgid "Maximum {MAX_ATTACHMENTS} attachments"+msgstr "Maximum {MAX_ATTACHMENTS} attachments"+#: src/components/TerminalNewChatButton.tsxmsgid "Maximum agents already running"msgstr "Maximum agents already running"@@ -5079,6 +5107,10 @@ msgstr "Mirror source <0>api-spec</0>"msgid "Missing"msgstr "Missing"+#: src/components/FeedbackForm.tsx+msgid "Missing a feature"+msgstr "Missing a feature"+#: src/components/LinksPanel.tsxmsgid "Missing page — click to create"msgstr "Missing page — click to create"@@ -5690,6 +5722,10 @@ msgstr "Not connected"msgid "Not connected to GitHub."msgstr "Not connected to GitHub."+#: src/components/FeedbackForm.tsx+msgid "Not great"+msgstr "Not great"+#: src/components/NotInSidebarIndicator.tsxmsgid "Not in sidebar"msgstr "Not in sidebar"@@ -5807,6 +5843,10 @@ msgstr "Only markdown files"msgid "Only modified"msgstr "Only modified"+#: src/components/FeedbackForm.tsx+msgid "Only PNG, JPEG, or WebP images are allowed."+msgstr "Only PNG, JPEG, or WebP images are allowed."+#: src/editor/components/TagDialog.tsxmsgid "Only the current document uses <0>#{tag}</0>."msgstr "Only the current document uses <0>#{tag}</0>."@@ -6185,6 +6225,10 @@ msgstr "Orphan mode"msgid "Orphans"msgstr "Orphans"+#: src/components/FeedbackForm.tsx+msgid "Other"+msgstr "Other"+#: src/components/settings/SharingSection.tsxmsgid "Other OK paths are tracked upstream:"msgstr "Other OK paths are tracked upstream:"@@ -6413,10 +6457,18 @@ msgstr "Plain"msgid "Plan ({done}/{0})"msgstr "Plan ({done}/{0})"+#: src/components/FeedbackForm.tsx+msgid "Please choose Good or Not great."+msgstr "Please choose Good or Not great."+#: src/components/SubscribeForm.tsxmsgid "Please enter a valid email address."msgstr "Please enter a valid email address."+#: src/components/FeedbackForm.tsx+msgid "Please enter a valid email."+msgstr "Please enter a valid email."+#: src/components/settings/LintingSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Plugins"@@ -6586,6 +6638,10 @@ msgstr "Property value"msgid "Protected branch — cannot push"msgstr "Protected branch — cannot push"+#: src/components/HelpPopover.tsx+msgid "Provide feedback"+msgstr "Provide feedback"+#: src/components/TemplateForm.tsxmsgid "provisional"msgstr "provisional"@@ -6768,6 +6824,11 @@ msgstr "Remote branch <0>{remoteCheckoutRef}</0> will be checked out as a new lomsgid "Remove"msgstr "Remove"+#. placeholder {0}: file.name+#: src/components/FeedbackForm.tsx+msgid "Remove {0}"+msgstr "Remove {0}"+#: src/components/PropertyWidgets.tsxmsgid "Remove {chip}"msgstr "Remove {chip}"@@ -7462,6 +7523,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to keymsgstr "Semantic search is on, but no API key is set — search falls back to keyword matching. Add one in <0>Settings → Account</0> (it's stored once for your whole machine)."#: src/components/acp/ThreadView.tsx+#: src/components/FeedbackForm.tsxmsgid "Send"msgstr "Send"@@ -7477,6 +7539,10 @@ msgstr "Send to"msgid "Send your report by email"msgstr "Send your report by email"+#: src/components/FeedbackForm.tsx+msgid "Sending"+msgstr "Sending"+#: src/components/ReportBugDialogBody.tsxmsgid "Sending report"msgstr "Sending report"@@ -7610,6 +7676,10 @@ msgstr "Share this setup with your team?"msgid "Share URL"msgstr "Share URL"+#: src/components/FeedbackForm.tsx+msgid "Share your email for followups"+msgstr "Share your email for followups"+#: src/components/settings/SharingSection.tsx#: src/components/SharingModeField.tsxmsgid "Shared"@@ -7876,6 +7946,10 @@ msgstr "Slash commands"msgid "Small section heading."msgstr "Small section heading."+#: src/components/FeedbackForm.tsx+msgid "Something broke"+msgstr "Something broke"+#: src/components/AppErrorBoundary.tsxmsgid "Something went wrong"msgstr "Something went wrong"@@ -7892,6 +7966,10 @@ msgstr "Something went wrong opening \"{docName}\"."msgid "Something went wrong opening this file (HTTP {status})."msgstr "Something went wrong opening this file (HTTP {status})."+#: src/components/FeedbackForm.tsx+msgid "Something went wrong sending your feedback. Please try again."+msgstr "Something went wrong sending your feedback. Please try again."+#: src/components/TerminalGate.tsxmsgid "Something went wrong starting the terminal."msgstr "Something went wrong starting the terminal."@@ -8282,6 +8360,10 @@ msgstr "Teaches coding agents in this project to read and write through OpenKnowmsgid "Team Wiki"msgstr "Team Wiki"+#: src/components/FeedbackForm.tsx+msgid "Tell us more (optional)"+msgstr "Tell us more (optional)"+#: src/components/ReportBugDialogBody.tsxmsgid "Tell us what went wrong and we'll gather the logs. Nothing leaves your Mac until you've reviewed it."msgstr "Tell us what went wrong and we'll gather the logs. Nothing leaves your Mac until you've reviewed it."@@ -8375,6 +8457,10 @@ msgstr "Text"msgid "Thanks for subscribing. Watch your inbox for product updates."msgstr "Thanks for subscribing. Watch your inbox for product updates."+#: src/components/FeedbackForm.tsx+msgid "Thanks for the feedback!"+msgstr "Thanks for the feedback!"+#: src/components/ReportBugDialogBody.tsxmsgid "Thanks for the report!"msgstr "Thanks for the report!"@@ -8847,6 +8933,10 @@ msgstr "Toggle thumbnails"msgid "Toggle underline formatting."msgstr "Toggle underline formatting."+#: src/components/FeedbackForm.tsx+msgid "Too slow"+msgstr "Too slow"+#: src/components/GraphPanel.tsxmsgid "Top linked pages"msgstr "Top linked pages"@@ -9263,10 +9353,6 @@ msgstr "We'll create a repository and start syncing — no terminal needed."msgid "We've filed it with the team and attached your logs."msgstr "We've filed it with the team and attached your logs."-#: src/components/HelpPopover.tsx-msgid "Website"-msgstr "Website"-#: src/components/NewSkillDialog.tsxmsgid "What agents match on to decide when to use the skill."msgstr "What agents match on to decide when to use the skill."@@ -9283,6 +9369,10 @@ msgstr "What do you want to build?"msgid "What gets created"msgstr "What gets created"+#: src/components/FeedbackForm.tsx+msgid "What got in the way?"+msgstr "What got in the way?"+#: src/components/ReportBugDialogBody.tsxmsgid "What happened?"msgstr "What happened?"@@ -9444,6 +9534,10 @@ msgstr "You can also create one from a terminal with <0>ok bug-report</0>."msgid "You can also manage this in Settings."msgstr "You can also manage this in Settings."+#: src/components/FeedbackForm.tsx+msgid "You can attach up to {MAX_ATTACHMENTS} images."+msgstr "You can attach up to {MAX_ATTACHMENTS} images."+#: src/components/AutoSyncOnboardingDialog.tsxmsgid "You can turn this on later in <0>Settings → Sync</0>."msgstr "You can turn this on later in <0>Settings → Sync</0>."@@ -9512,6 +9606,10 @@ msgstr "You're signed out — sign in to resume syncing."msgid "You're subscribed!"msgstr "You're subscribed!"+#: src/components/FeedbackForm.tsx+msgid "[email protected]"+msgstr "[email protected]"+#: src/components/ShareBranchSwitchDialog.tsxmsgid "Your copy of branch <0>{shareBranch}</0> has changes that aren't on GitHub. The {targetNoun} will appear once the branch syncs."msgstr "Your copy of branch <0>{shareBranch}</0> has changes that aren't on GitHub. The {targetNoun} will appear once the branch syncs."diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 99a2fef53..d050325ca 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -120,6 +120,7 @@"1njn7W": ["Ĺĩĝĥţ"],"1nke1r": ["Ōƥēń ", ["0"], " ōń ĜĩţĤũƀ (ōƥēńś ĩń à ńēŵ ţàƀ)"],"1t_NnN": ["ŔēĴēćţ"],+ "1uyUjj": ["Ƥŕōvĩďē ƒēēďƀàćķ"],"2-CeZn": ["Ŷōũŕ ŕēƥōŕţ ĩś śàvēď ōń ţĥĩś Ḿàć, śō ńōţĥĩńĝ ŵàś ĺōśţ. Ŷōũ ćàń ēḿàĩĺ ĩţ ţō ũś ĩńśţēàď."],@@ -185,6 +186,7 @@"3Ijjy1": ["Ćōũĺďń'ţ ĺōàď ţĥĩś śķĩĺĺ'ś ƒĩĺēś."],"3J7d2N": ["ßĩĝ śēćţĩōń ĥēàďĩńĝ."],"3JYy1p": ["ßŕàńćĥ ", ["0"], " ńō ĺōńĝēŕ ēxĩśţś. Ćĺōńēď ţō ďēƒàũĺţ ƀŕàńćĥ."],+ "3LbBJn": ["Àţţàćĥ ĩḿàĝēś"],"3MnvrL": ["Śĥōŵĩńĝ ţōƥ ", ["0"], " ḿàţćĥēś — ķēēƥ ţŷƥĩńĝ ţō ńàŕŕōŵ"],"3Mwaly": ["Ćōũĺď ńōţ ĩńĩţĩàĺĩźē ", ["0"], "."],"3SDfZl": [@@ -478,6 +480,7 @@"9Vh9Jf": ["Ŕēōƥēń ţĥĩś ŵĩńďōŵ ţō śĩĝń ĩń ŵĩţĥ ŷōũŕ ƀŕōŵśēŕ"],"9XIEYq": ["Àţţàćĥ ţĥē ƒĩĺē ĩń àń ēḿàĩĺ ţō <0/>"],"9bCiQ8": ["Ńō ƥàĝēś àŕē ḿĩśśĩńĝ ĩńćōḿĩńĝ ĝŕàƥĥ ĺĩńķś."],+ "9bG48P": ["Śēńďĩńĝ"],"9clcD5": ["Ōƥēń ďōćũḿēńţś ţàĝĝēď #", ["chip"]],"9dw5bW": ["Ćŕēàţē ŵĩţĥ ", ["0"]],"9euN0m": [@@ -524,6 +527,7 @@"AQGtjK": ["Ćōḿḿàńďś ŕũń ŵĩţĥ ţĥē ƒũĺĺ àććēśś ōƒ ŷōũŕ ḿàćŌŚ ũśēŕ àććōũńţ ōń ţĥĩś ḿàćĥĩńē. Ţũŕń ţĥĩś ōƒƒ ţō ďĩśàƀĺē ţĥē śĥēĺĺ."],+ "ASqqsQ": ["Ḿàxĩḿũḿ ", ["MAX_ATTACHMENTS"], " àţţàćĥḿēńţś"],"ATGYL1": ["Ēḿàĩĺ àďďŕēśś"],"AVW-K9": ["Ƒàĩĺēď ţō ĺōàď ōŕƥĥàń ƥàĝēś"],"AWOSPo": ["Źōōḿ ĩń"],@@ -633,7 +637,9 @@["1", "plural", { "one": ["#", " ƒōĺďēŕ"], "other": ["#", " ƒōĺďēŕś"] }]," àńď śţàŕţēŕ ţēḿƥĺàţēś) ĩń ţĥē ƒōĺďēŕ ōƒ ŷōũŕ ćĥōĩćē."],+ "D2emTw": ["Śōḿēţĥĩńĝ ŵēńţ ŵŕōńĝ śēńďĩńĝ ŷōũŕ ƒēēďƀàćķ. Ƥĺēàśē ţŕŷ àĝàĩń."],"D4H2N6": ["Ŕēḿōvē ", ["tag"]],+ "D8JJwQ": ["Ƒēēďƀàćķ ĩśń'ţ àvàĩĺàƀĺē ŕĩĝĥţ ńōŵ. Ƥĺēàśē ţŕŷ àĝàĩń ĺàţēŕ."],"D8OV7J": ["Ōńĺŷ ćōĺĺàƀōŕàţōŕś"],"DDTdLl": ["Ćōďē ƀĺōćķ śēţţĩńĝś"],"DELNQk": ["Ćōĺĺàƀōŕàţōŕś śēē ŷōũŕ ĩń-ƥŕōĝŕēśś ēďĩţś àś śōōń àś ţĥēŷ śŷńć."],@@ -694,6 +700,7 @@],"E7BhZn": ["ßĺàńķ ńōţē"],"E9bKSA": ["Ćŕēàţĩńĝ"],+ "E9gh86": ["Ŷōũ ćàń àţţàćĥ ũƥ ţō ", ["MAX_ATTACHMENTS"], " ĩḿàĝēś."],"EARn6h": ["Ćōũĺďń'ţ śĥàŕē śķĩĺĺś — ", ["detail"], "."],"EBVbtP": ["Ćōũĺď ńōţ ďũƥĺĩćàţē ĩţēḿ"],"EDl9kS": ["Śũƀśćŕĩƀē"],@@ -794,6 +801,7 @@"FqGWeR": ["Ćōũĺďń'ţ ŕēàćĥ ţĥē àĝēńţ ŕēĝĩśţŕŷ."],"FqTpiN": ["ßĩŕď ŵĩķĩ"],"Fqr8BP": ["Ḿũĺţĩ-ƥàĝē ƤĎƑ vĩēŵēŕ ŵĩţĥ ţōōĺƀàŕ ćōńţŕōĺś (ţĥũḿƀńàĩĺś, ƥàĝē ńàv, źōōḿ)."],+ "Fqx38P": ["Ŵĥàţ ĝōţ ĩń ţĥē ŵàŷ?"],"Fsx78O": ["Àďď ţĥē <0>ōķ</0> ćōḿḿàńď ţō ŷōũŕ ţēŕḿĩńàĺ"],"FvMSms": ["Ŕēńàḿĩńĝ ćĥàńĝēś ţĥē ƒĩĺē ōń ďĩśķ àńď ţĥē ĩď àĝēńţś ũśē ţō ƥĩćķ ţĥĩś ţēḿƥĺàţē."],"FvpFSZ": ["Ŕēvēàĺ ĩń Ƒĩńďēŕ, ", ["hint"]],@@ -858,6 +866,7 @@"GuqOb1": ["Ƒàĩĺēď ţō ĺōàď ĥēàďĩńĝś"],"Gx0VS1": ["ē.ĝ. ďŕàƒţś/ ōŕ *.ďŕàƒţ.ḿď"],"GzPQ2f": ["Śţàŷ ĩń ţĥē ĺōōƥ"],+ "H-hzll": ["Ƥĺēàśē ćĥōōśē Ĝōōď ōŕ Ńōţ ĝŕēàţ."],"H-vDm3": ["Ŕēĺàũńćĥĩńĝ ţō ĩńśţàĺĺ ţĥē ũƥďàţē…"],"H08D2X": ["Ōƥēń à śĩńĝĺē ḿàŕķďōŵń ƒĩĺē ĩń à ţēḿƥōŕàŕŷ śēśśĩōń, ŵĩţĥōũţ ƥŕōĴēćţ śēţũƥ."],"H0WlWQ": ["Ĝŕĩď ōƒ ŕōŵś àńď ćōĺũḿńś ŵĩţĥ à ĥēàďēŕ ŕōŵ."],@@ -925,6 +934,7 @@"IrC12v": ["Àƥƥĺĩćàţĩōń"],"IreQBq": ["Ŕēƥōśĩţōŕŷ"],"It9ARY": ["Ţōĝĝĺē ţĥē ŕĩĝĥţ ďōćũḿēńţ ƥàńēĺ."],+ "ItxGi3": ["Àţţàćĥḿēńţś ḿũśţ ţōţàĺ ũńďēŕ 3 Ḿß."],"Ix0K8o": ["Ĥĩďē ēxţēŕńàĺ ŨŔĹ ńōďēś"],"IxyZXD": ["Śćŕēēńśĥōţ"],"Izb10l": ["Ƒĩx àĺĺ ", ["count"], " ƒĩxàƀĺē ƥŕōƀĺēḿś"],@@ -937,6 +947,7 @@"Ńō ďĩśćōńńēćţēď ƥàĝēś. Ƥàĝēś àƥƥēàŕ ĥēŕē ōńĺŷ ŵĥēń ţĥēŷ ĥàvē ńō ĩńćōḿĩńĝ àńď ńō ōũţĝōĩńĝ ĝŕàƥĥ ēďĝēś."],"JE21eh": ["Śŷḿĺĩńķ ţō ", ["targetPath"]],+ "JHf6qZ": ["ŷōũ@ćōḿƥàńŷ.ćōḿ"],"JJcBCm": [["0"], " ţōţàĺ"],"JK-Ave": ["Ĥĩďē ţĥũḿƀńàĩĺś"],"JL3si7": ["Ũƥďàţĩńĝ"],@@ -1076,6 +1087,7 @@}]],+ "LvdLef": ["Ţĥàńķś ƒōŕ ţĥē ƒēēďƀàćķ!"],"LwMxXg": ["Ƒàĩĺēď ţō ōƥēń ŵōŕķţŕēē."],"M-IF14": ["Ŕēƥōŕţ ŕēƒēŕēńćē"],"M1OfV9": ["Ńēxţ śōũŕćē ďĩàĝńōśţĩć"],@@ -1087,6 +1099,7 @@"M6mvVi": ["Ćōƥŷ ŕēĺàţĩvē ƥàţĥ"],"M9597s": ["Ƥŕēƥàŕĩńĝ śĥàŕē ŨŔĹ..."],"MCjC9A": ["Ďēĺēţē ", ["deleteDescriptorLabel"]],+ "MDBJwN": ["Ĥàŕď ţō ũśē"],"MDZSJe": ["Ŵĥēń ţĥē àĝēńţ ŕũńś ĩţś śćĥēďũĺēď ŵōŕķ."],"MGb89P": ["Ĩńśēŕţ, ďēĺēţē, ḿōvē, ćōƥŷ, àńď ĩńďēńţ śōũŕćē ēďĩţōŕ ĺĩńēś ţĥŕōũĝĥ ĆōďēḾĩŕŕōŕ'ś ďēƒàũĺţ ķēŷḿàƥ."@@ -1187,6 +1200,7 @@"O9oQJS": ["Śēńď ŕēƥōŕţ"],"OD0FCX": ["Ĥĩďďēń “", ["basename"], "”"],"ODGGlj": ["Ƒōĺďēŕ ńàḿē: ", ["detail"]],+ "OEEQKT": ["Ĝōōď"],"OETysD": ["Ńō ĥũƀ ƥàĝēś ŷēţ. Ĥũƀś àƥƥēàŕ ōńćē ƥàĝēś àććũḿũĺàţē ĩńƀōũńď ĝŕàƥĥ ĺĩńķś."],"OEu_0l": ["Ƒàĩĺēď ţō ĺōàď śķĩĺĺś: ", ["0"]],"OFBmkg": [@@ -1221,7 +1235,6 @@"Okd2Xv": ["Ţōĝĝĺē ũńďēŕĺĩńē ƒōŕḿàţţĩńĝ."],"OlAl5i": ["Ēxƥàńď àĺĺ"],"OmHTGj": ["Ďĩśàƀĺē ĝĩţ àũţō-śŷńć"],- "On0aF2": ["Ŵēƀśĩţē"],"Oo_WWc": ["Ńō ƥàĝēś ƒōũńď"],"Oos8fo": ["Ćōƥŷ ćōḿḿàńď"],"OplnBG": ["Ḿàńàĝĩńĝ ÀĨ ţōōĺś ĩś ũńàvàĩĺàƀĺē ĩń ţĥĩś ƀũĩĺď."],@@ -1241,7 +1254,6 @@"PB4upl": ["Ƒĩńď ƥŕēvĩōũś ḿàţćĥ"],"PBwmDJ": ["Śēàŕćĥĩńĝ ƀŷ ḿēàńĩńĝ"],"PBxg_E": ["Ńōţ ńōŵ"],- "PCNIuJ": ["Ƒĩĺē àń ĩśśũē"],"PCSkw2": ["Śķĩĺĺś"],"PIMM5l": ["Ŷōũ'ŕē śũƀśćŕĩƀēď!"],"PKLY-1": ["Ōƥēńĩńĝ..."],@@ -1294,6 +1306,7 @@"QcpeeE": ["Ńàvĩĝàţē ţō ", ["docName"]],"QfFBdJ": ["Ţĥē ţēḿƥĺàţē'ś ƒĩĺēńàḿē (ŵĩţĥōũţ `.ḿď`)."],"Qj4RL5": ["Ćōḿƥĺēţēď:"],+ "QlAG4m": ["Ţēĺĺ ũś ḿōŕē (ōƥţĩōńàĺ)"],"QlxHAH": ["Śĥōŵĩńĝ ŕēśũĺţś ƒōŕ \"", ["semanticResultsLabel"], "\""],"QnjpOq": ["Ŵĥàţ ďō ŷōũ ŵàńţ ţō ƀũĩĺď?"],"QqBQu1": ["Ĺàƀēĺ <0>(vĩśĩƀĺē ĺĩńķ ţēxţ)</0>"],@@ -1341,6 +1354,7 @@"RaPMZv": ["Ķēŷƀōàŕď śĥōŕţćũţś àvàĩĺàƀĺē ĩń ţĥē ēďĩţōŕ àńď ŵōŕķśƥàćē."],"Rah7yq": ["Ŵĥàţ śĥōũĺď ţĥē ÀĨ ďō? (ōƥţĩōńàĺ)"],"Rb1zMa": ["Ńō ēxćēŕƥţ"],+ "RcrskJ": ["Ƒōŕḿàţţĩńĝ ĺōōķēď ŵŕōńĝ"],"RfHNf8": ["Ōƥēń àćţĩvĩţŷ ƥàńēĺ ƒōŕ ", ["tooltipName"]],"RfaEio": ["Ţōĝĝĺē śōũŕćē ćōḿḿēńţ"],"RfilGt": ["Ńō ŕũĺēś ḿàţćĥ ŷōũŕ ƒĩĺţēŕś."],@@ -1369,7 +1383,9 @@"S9t1PI": ["Ƒĩxĩńĝ ", ["0"], "/", ["1"]],"SCoBBH": ["Ţàĝ śũĝĝēśţĩōńś"],"SCzAbA": [["phase"], " — ", ["pct"], "%"],+ "SF9qpO": ["Śĥàŕē ŷōũŕ ēḿàĩĺ ƒōŕ ƒōĺĺōŵũƥś"],"SFN6dN": ["Ĥēàďĩńĝ 3"],+ "SItQRc": ["Ĥōŵ ďō ŷōũ ĺĩķē ŌƥēńĶńōŵĺēďĝē?"],"SOPwPh": ["Ŕēśţōŕē ţō ţĥĩś ēďĩţ"],"SQWJ-i": ["Ŕēśţōŕē śēśśĩōńś"],"STTOnz": [["keyName"], " ţŷƥē: ćōḿƥĺēx vàĺũē (ńēśţēď; ŕēàď-ōńĺŷ)"],@@ -1420,6 +1436,7 @@"Tz0i8g": ["Śēţţĩńĝś"],"Tz4dq-": ["Ţĥĩś ŕēǫũēśţ ĩś ńō ĺōńĝēŕ àćţĩvē."],"Tz9pJB": ["Ćĺōńē śţŕēàḿ ēńďēď ũńēxƥēćţēďĺŷ — ćĥēćķ ĩƒ ţĥē ćĺōńē ćōḿƥĺēţēď"],+ "U0QBh4": ["Ńōţ ĝŕēàţ"],"U2Kx6T": ["Ćĺōśē àĺĺ ũńƥĩńńēď"],"U2pMtf": ["ţàĝ-ńàḿē"],"U3IvM5": ["Ƒũĺĺ ĝũĩďē"],@@ -1631,6 +1648,7 @@"YEP3X2": ["Ďēĺēţē à ţàƀĺē ŵĥēń ţĥē àćţĩvē ţàƀĺē ćēĺĺ śēĺēćţĩōń ćōvēŕś ţĥē ƒũĺĺ ţàƀĺē."],"YGIi_c": ["Ŕēĩńśţàĺĺ"],"YJ1BTp": ["À śķĩĺĺ ŵĩţĥ ţĥàţ ńàḿē àĺŕēàďŷ ēxĩśţś."],+ "YJPN3F": ["Ţōō śĺōŵ"],"YKLP_-": ["Ţēḿƥĺàţē ŕēńàḿēď"],"YLMBSd": ["ē.ĝ. Ţĥē ēďĩţōŕ ƒŕōźē àƒţēŕ Ĩ ƥàśţēď à ĺàŕĝē ţàƀĺē"],"YPFBfr": [["detail"], " - ", ["kind"], " \"", ["createdPath"], "\" śţĩĺĺ ēxĩśţś ōń ďĩśķ"],@@ -1728,6 +1746,7 @@],"_FLBbi": [["sizeText"], " · śēćŕēţś ŕēďàćţēď · ćŕàśĥ ďũḿƥ ńōţ ŕēďàćţēď"],"_IGfXZ": ["ŌƥēńĶńōŵĺēďĝē ǫũĩţ ũńēxƥēćţēďĺŷ ĺàśţ ţĩḿē."],+ "_IX_7x": ["Ōţĥēŕ"],"_NX6gG": ["Ḿàńàĝĩńĝ ƥŕōĴēćţ ÀĨ ţōōĺś ĩś ũńàvàĩĺàƀĺē ĩń ţĥĩś ƀũĩĺď."],"_PACVa": ["Ŕēĺēàśē ńōţēś"],"_PBJRl": ["Àďď àţ ĺēàśţ ōńē ĺēţţēŕ ōŕ ńũḿƀēŕ."],@@ -1790,6 +1809,7 @@"adsMWO": ["Ŕēśōĺvĩńĝ ďēĺţàś"],"aiArms": ["Ŵē ćōũĺďń'ţ ćĺōńē ţĥĩś ŕēƥōśĩţōŕŷ."],"ajz9F8": ["Ćōũĺďń'ţ ĺōàď ćōńƒĺĩćţ ćōńţēńţ ƒōŕ ", ["filePath"], ". Ţŕŷ ŕēĺōàďĩńĝ ţĥē ƥàĝē."],+ "anmUZq": ["Ḿĩśśĩńĝ à ƒēàţũŕē"],"aoa6xA": ["ńēţŵōŕķ ēŕŕōŕ (ĩś `ōķ ũĩ` ŕũńńĩńĝ?)"],"arUUsK": ["Ƥŕōďũćţ ũƥďàţēś"],"ax9kie": ["Ĺĩńķ ƥŕēvĩēŵ śēţţĩńĝś ńōţ ŷēţ ĺōàďēď — ţŕŷ àĝàĩń ĩń à ḿōḿēńţ"],@@ -1907,6 +1927,7 @@],"dURmlQ": ["\"ƒŕōńţḿàţţēŕ\" ĩś à ŕēśēŕvēď ƥŕōƥēŕţŷ ńàḿē"],"dVaXnv": ["Ćōńţēńţ ŕũĺēś ńōţ ŷēţ ĺōàďēď — ţŕŷ àĝàĩń ĩń à ḿōḿēńţ"],+ "dXCi3J": ["Śōḿēţĥĩńĝ ƀŕōķē"],"dXWMFn": ["Ŕēḿōvēś ţĥĩś śķĩĺĺ ƒŕōḿ ŷōũŕ ēďĩţōŕś."],"dYCvMf": ["Ćōũĺďń'ţ ŕēśũḿē ţĥĩś ćōńvēŕśàţĩōń: ", ["0"]],"dbapvC": ["Ƒōĺĺōŵ ũś ōń śōćĩàĺ ḿēďĩà"],@@ -1990,6 +2011,7 @@"fru3T7": ["Ćōũĺď ńōţ ƒĩx ", ["0"], " ōƒ ", ["1"], " ƒĩĺēś."],"fuJZKk": ["Śēàŕćĥ ƀŕàńćĥēś"],"fwhX-N": ["Ĩńďēńţ ōŕ ōũţďēńţ śōũŕćē"],+ "fwrPh4": ["Ƥĺēàśē ēńţēŕ à vàĺĩď ēḿàĩĺ."],"fxJk_6": ["<0>Ĥàvē ḿōŕē ţō àďď?</0> Ŵŕĩţē ţō <1/> àńď ḿēńţĩōń ŷōũŕ ŕēƒēŕēńćē."],"fxbCNQ": ["Śŷńćēď. Ţĥē ĺĩńķ ĩś ũƥ ţō ďàţē."],"g3UF2V": ["Àććēƥţ"],@@ -2607,6 +2629,7 @@"s0_GnA": ["Ōƥēńĩńĝ ", ["openingLabel"], "…"],"s1c0ja": ["ßũĺĺēţ Ĺĩśţ"],"s3caR3": ["Ďēĺēţĩńĝ"],+ "s7us1p": ["Ōńĺŷ ƤŃĜ, ĵƤĒĜ, ōŕ ŴēƀƤ ĩḿàĝēś àŕē àĺĺōŵēď."],"sE7R19": ["Ćōũĺď ńōţ ĺōàď ţēḿƥĺàţēś: ",["templatesError"],@@ -2773,6 +2796,7 @@"w4hMYl": ["Ćōũĺď ńōţ ŕēàď ƀŕàńćĥ śţàţē ƒōŕ ţĥĩś ƥŕōĴēćţ. Ćĺōśē ţĥĩś ďĩàĺōĝ àńď ōƥēń ţĥē śĥàŕē ĺĩńķ àĝàĩń."],+ "w61W3L": ["Ŕēḿōvē ", ["0"]],"w6sBjd": ["Ţēŕḿĩńàĺ śēţţĩńĝś ńōţ ŷēţ ĺōàďēď — ţŕŷ àĝàĩń ĩń à ḿōḿēńţ"],"w6sT-y": ["Ƒōĺĺōŵ ţĥē àĝēńţ'ś ēďĩţś"],"w7SsvI": ["Ţĥàţ ƒōĺďēŕ ĩśń'ţ àń ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţ ŷēţ. Ĩńĩţĩàĺĩźē ĩţ àńď ōƥēń?"],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 81ebb3b94..7f7e8e29a 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -1172,6 +1172,10 @@ msgstr ""msgid "Asset: {title}"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Attach images"+msgstr ""+#: src/components/ReportBugDialogBody.tsxmsgid "Attach the file in an email to <0/>"msgstr ""@@ -1180,6 +1184,10 @@ msgstr ""msgid "Attachments"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Attachments must total under 3 MB."+msgstr ""+#: src/editor/slash-command/component-items.tsxmsgid "Authoritative content; mirrored verbatim everywhere it's referenced."msgstr ""@@ -3765,6 +3773,10 @@ msgstr ""msgid "Failed to upload file"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Feedback isn't available right now. Please try again later."+msgstr ""+#: src/editor/slash-command/items.tsxmsgid "Fenced code block with monospace text."msgstr ""@@ -3789,10 +3801,6 @@ msgstr ""msgid "File already exists"msgstr ""-#: src/components/HelpPopover.tsx-msgid "File an issue"-msgstr ""-#: src/components/FileTree.tsxmsgid "File drop zone"msgstr ""@@ -3996,6 +4004,10 @@ msgstr ""msgid "Force stop"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Formatting looked wrong"+msgstr ""+#: src/components/LinksPanel.tsxmsgid "Forward-links response did not match expected shape."msgstr ""@@ -4116,6 +4128,10 @@ msgstr ""msgid "Go to line {displayLine} in {0}"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Good"+msgstr ""+#: src/components/DocPanel.tsx#: src/components/GraphPanel.tsxmsgid "Graph"@@ -4141,6 +4157,10 @@ msgstr ""msgid "Hard break"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Hard to use"+msgstr ""+#: src/components/NavigatorApp.tsxmsgid "Have something else in mind?"msgstr ""@@ -4320,6 +4340,10 @@ msgstr ""msgid "Hotkeys"msgstr ""+#: src/components/FeedbackFormDialog.tsx+msgid "How do you like OpenKnowledge?"+msgstr ""+#: src/components/ShareButton.tsxmsgid "How does sharing work?"msgstr ""@@ -5013,6 +5037,10 @@ msgstr ""msgid "Match case"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Maximum {MAX_ATTACHMENTS} attachments"+msgstr ""+#: src/components/TerminalNewChatButton.tsxmsgid "Maximum agents already running"msgstr ""@@ -5075,6 +5103,10 @@ msgstr ""msgid "Missing"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Missing a feature"+msgstr ""+#: src/components/LinksPanel.tsxmsgid "Missing page — click to create"msgstr ""@@ -5686,6 +5718,10 @@ msgstr ""msgid "Not connected to GitHub."msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Not great"+msgstr ""+#: src/components/NotInSidebarIndicator.tsxmsgid "Not in sidebar"msgstr ""@@ -5803,6 +5839,10 @@ msgstr ""msgid "Only modified"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Only PNG, JPEG, or WebP images are allowed."+msgstr ""+#: src/editor/components/TagDialog.tsxmsgid "Only the current document uses <0>#{tag}</0>."msgstr ""@@ -6181,6 +6221,10 @@ msgstr ""msgid "Orphans"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Other"+msgstr ""+#: src/components/settings/SharingSection.tsxmsgid "Other OK paths are tracked upstream:"msgstr ""@@ -6409,10 +6453,18 @@ msgstr ""msgid "Plan ({done}/{0})"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Please choose Good or Not great."+msgstr ""+#: src/components/SubscribeForm.tsxmsgid "Please enter a valid email address."msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Please enter a valid email."+msgstr ""+#: src/components/settings/LintingSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Plugins"@@ -6582,6 +6634,10 @@ msgstr ""msgid "Protected branch — cannot push"msgstr ""+#: src/components/HelpPopover.tsx+msgid "Provide feedback"+msgstr ""+#: src/components/TemplateForm.tsxmsgid "provisional"msgstr ""@@ -6764,6 +6820,11 @@ msgstr ""msgid "Remove"msgstr ""+#. placeholder {0}: file.name+#: src/components/FeedbackForm.tsx+msgid "Remove {0}"+msgstr ""+#: src/components/PropertyWidgets.tsxmsgid "Remove {chip}"msgstr ""@@ -7458,6 +7519,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to keymsgstr ""#: src/components/acp/ThreadView.tsx+#: src/components/FeedbackForm.tsxmsgid "Send"msgstr ""@@ -7473,6 +7535,10 @@ msgstr ""msgid "Send your report by email"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Sending"+msgstr ""+#: src/components/ReportBugDialogBody.tsxmsgid "Sending report"msgstr ""@@ -7606,6 +7672,10 @@ msgstr ""msgid "Share URL"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Share your email for followups"+msgstr ""+#: src/components/settings/SharingSection.tsx#: src/components/SharingModeField.tsxmsgid "Shared"@@ -7872,6 +7942,10 @@ msgstr ""msgid "Small section heading."msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Something broke"+msgstr ""+#: src/components/AppErrorBoundary.tsxmsgid "Something went wrong"msgstr ""@@ -7888,6 +7962,10 @@ msgstr ""msgid "Something went wrong opening this file (HTTP {status})."msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Something went wrong sending your feedback. Please try again."+msgstr ""+#: src/components/TerminalGate.tsxmsgid "Something went wrong starting the terminal."msgstr ""@@ -8278,6 +8356,10 @@ msgstr ""msgid "Team Wiki"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Tell us more (optional)"+msgstr ""+#: src/components/ReportBugDialogBody.tsxmsgid "Tell us what went wrong and we'll gather the logs. Nothing leaves your Mac until you've reviewed it."msgstr ""@@ -8371,6 +8453,10 @@ msgstr ""msgid "Thanks for subscribing. Watch your inbox for product updates."msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Thanks for the feedback!"+msgstr ""+#: src/components/ReportBugDialogBody.tsxmsgid "Thanks for the report!"msgstr ""@@ -8843,6 +8929,10 @@ msgstr ""msgid "Toggle underline formatting."msgstr ""+#: src/components/FeedbackForm.tsx+msgid "Too slow"+msgstr ""+#: src/components/GraphPanel.tsxmsgid "Top linked pages"msgstr ""@@ -9259,10 +9349,6 @@ msgstr ""msgid "We've filed it with the team and attached your logs."msgstr ""-#: src/components/HelpPopover.tsx-msgid "Website"-msgstr ""-#: src/components/NewSkillDialog.tsxmsgid "What agents match on to decide when to use the skill."msgstr ""@@ -9279,6 +9365,10 @@ msgstr ""msgid "What gets created"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "What got in the way?"+msgstr ""+#: src/components/ReportBugDialogBody.tsxmsgid "What happened?"msgstr ""@@ -9440,6 +9530,10 @@ msgstr ""msgid "You can also manage this in Settings."msgstr ""+#: src/components/FeedbackForm.tsx+msgid "You can attach up to {MAX_ATTACHMENTS} images."+msgstr ""+#: src/components/AutoSyncOnboardingDialog.tsxmsgid "You can turn this on later in <0>Settings → Sync</0>."msgstr ""@@ -9508,6 +9602,10 @@ msgstr ""msgid "You're subscribed!"msgstr ""+#: src/components/FeedbackForm.tsx+msgid "[email protected]"+msgstr ""+#: src/components/ShareBranchSwitchDialog.tsxmsgid "Your copy of branch <0>{shareBranch}</0> has changes that aren't on GitHub. The {targetNoun} will appear once the branch syncs."msgstr ""diff --git a/packages/core/src/bridge/bind-frontmatter-doc.ts b/packages/core/src/bridge/bind-frontmatter-doc.tsindex c014b1413..8f9d95287 100644--- a/packages/core/src/bridge/bind-frontmatter-doc.ts+++ b/packages/core/src/bridge/bind-frontmatter-doc.ts@@ -1,3 +1,4 @@+import type * as Y from 'yjs';import type { Err, Ok, Result } from '../config/result.ts';import { type FrontmatterValidationError, toFrontmatterIssue } from '../frontmatter/errors.ts';diff --git a/packages/core/src/bridge/bridge-invariant.ts b/packages/core/src/bridge/bridge-invariant.tsindex 005627195..8bfdb40cd 100644--- a/packages/core/src/bridge/bridge-invariant.ts+++ b/packages/core/src/bridge/bridge-invariant.ts@@ -1,3 +1,4 @@+import { fnv1aDigest } from './hash-util.ts';export type BridgeInvariantSite = 'observer-b' | 'persistence' | 'test-harness';diff --git a/packages/core/src/bridge/doc-boundary-space.ts b/packages/core/src/bridge/doc-boundary-space.tsindex 8890f6739..c18c086d5 100644--- a/packages/core/src/bridge/doc-boundary-space.ts+++ b/packages/core/src/bridge/doc-boundary-space.ts@@ -1,3 +1,4 @@+import { FRONTMATTER_RE, stripFrontmatter } from '../extensions/frontmatter.ts';const LEADING_BOUNDARY_RE = /^(?:\r?\n)+/;diff --git a/packages/core/src/bridge/growth-detect.ts b/packages/core/src/bridge/growth-detect.tsindex 9d9c244b0..463e89595 100644--- a/packages/core/src/bridge/growth-detect.ts+++ b/packages/core/src/bridge/growth-detect.ts@@ -1,3 +1,4 @@+const DEFAULT_MIN_SUBSTANTIVE_LINE_LENGTH = 16;export const DUPLICATION_GATE_MIN_LINE_LENGTH = 8;diff --git a/packages/core/src/bridge/merge-three-way.ts b/packages/core/src/bridge/merge-three-way.tsindex 3ab9cc6ef..3c927eb47 100644--- a/packages/core/src/bridge/merge-three-way.ts+++ b/packages/core/src/bridge/merge-three-way.ts@@ -38,6 +38,7 @@ function mergeThreeWayImpl(baseline: string, userText: string, agentText: stringreturn parts.join('\n');}+export type BridgeMergeContentLossSide = 'user' | 'agent';export type BridgeMergeContentLossWhich = 'substring' | 'order' | 'growth';diff --git a/packages/core/src/bridge/normalize.ts b/packages/core/src/bridge/normalize.tsindex 4b8890476..3f0880aa5 100644--- a/packages/core/src/bridge/normalize.ts+++ b/packages/core/src/bridge/normalize.ts@@ -1,3 +1,4 @@+const COMMONMARK_ESCAPE_RE = /\\([!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~])/g;const TABLE_ALIGN_ROW_RE = /^\s*\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)+\|?\s*$/;diff --git a/packages/core/src/bridge/pm-structural-equivalence.ts b/packages/core/src/bridge/pm-structural-equivalence.tsindex 754dc5cc2..0be5203e4 100644--- a/packages/core/src/bridge/pm-structural-equivalence.ts+++ b/packages/core/src/bridge/pm-structural-equivalence.ts@@ -32,6 +32,7 @@ const BR_SENTINEL: PmStructuralNode = { type: '__br__' };const BR_LITERAL_RE = /^<br\s*\/?>$/i;+interface DegradeEntry {readonly label: string;readonly severity: ToleranceClassSeverity;@@ -127,6 +128,7 @@ export interface ComparePmStructuralOptions {ignoreAttrs?: (attrKey: string) => boolean;}+/** Rebuild a node with `fn` applied to each child; identity when childless.* Shared by the degrade canonicalizers so none re-implements the walk. */function mapChildren(@@ -248,6 +250,7 @@ function applyDegrades(tree: PmStructuralNode): {return { normalized: current, fired };}+export function comparePmStructural(expected: PmStructuralNode,actual: PmStructuralNode,diff --git a/packages/core/src/bridge/subsequence.ts b/packages/core/src/bridge/subsequence.tsindex af20de1e2..dca644141 100644--- a/packages/core/src/bridge/subsequence.ts+++ b/packages/core/src/bridge/subsequence.ts@@ -1,3 +1,4 @@+/** True when `needle` is a subsequence of `haystack` (two-pointer, O(n+m)):* insertions in `haystack` are free; any dropped or substituted `needle` byte* fails. */diff --git a/packages/core/src/markdown/callout-transformer.ts b/packages/core/src/markdown/callout-transformer.tsindex 83d47404a..a363dfd54 100644--- a/packages/core/src/markdown/callout-transformer.ts+++ b/packages/core/src/markdown/callout-transformer.ts@@ -1,3 +1,4 @@+import type { Blockquote, Paragraph, Root } from 'mdast';import type { MdxJsxAttribute, MdxJsxFlowElement } from 'mdast-util-mdx';import { visit } from 'unist-util-visit';diff --git a/packages/core/src/markdown/comment-promoter.ts b/packages/core/src/markdown/comment-promoter.tsindex 193e286b0..47f0d07e4 100644--- a/packages/core/src/markdown/comment-promoter.ts+++ b/packages/core/src/markdown/comment-promoter.ts@@ -1,3 +1,4 @@+import type { Nodes, Paragraph, PhrasingContent, Root, RootContent, Text } from 'mdast';import { SKIP, visit } from 'unist-util-visit';import type { VFile } from 'vfile';diff --git a/packages/core/src/markdown/dedent-block-jsx-close.ts b/packages/core/src/markdown/dedent-block-jsx-close.tsindex ece5c02a1..b6299a948 100644--- a/packages/core/src/markdown/dedent-block-jsx-close.ts+++ b/packages/core/src/markdown/dedent-block-jsx-close.ts@@ -1,3 +1,4 @@+import { findFencedRegions, isInsideFence } from './fence-regions.ts';const INDENTED_BLOCK_JSX_CLOSE_RE = /^([ ]{1,3})(<\/[A-Z][A-Za-z0-9_]*\s*>)([ \t]*)$/gm;diff --git a/packages/core/src/markdown/details-accordion-promoter.ts b/packages/core/src/markdown/details-accordion-promoter.tsindex 54774764a..acd398aa6 100644--- a/packages/core/src/markdown/details-accordion-promoter.ts+++ b/packages/core/src/markdown/details-accordion-promoter.ts@@ -1,3 +1,4 @@+import type { Nodes, Paragraph, Parent, Root, Text } from 'mdast';import type { MdxJsxAttribute, MdxJsxFlowElement } from 'mdast-util-mdx';import { visit } from 'unist-util-visit';diff --git a/packages/core/src/markdown/fence-regions.ts b/packages/core/src/markdown/fence-regions.tsindex c7518d614..fb5ac8e8a 100644--- a/packages/core/src/markdown/fence-regions.ts+++ b/packages/core/src/markdown/fence-regions.ts@@ -1,3 +1,4 @@+const FENCE_RE = /^(`{3,}|~{3,})/gm;export function findFencedRegions(src: string): Array<[number, number]> {diff --git a/packages/core/src/markdown/fixtures/index.ts b/packages/core/src/markdown/fixtures/index.tsindex 00f5771ee..6931623c7 100644--- a/packages/core/src/markdown/fixtures/index.ts+++ b/packages/core/src/markdown/fixtures/index.ts@@ -1,3 +1,4 @@+import { readFileSync } from 'node:fs';import { dirname, resolve } from 'node:path';import { fileURLToPath } from 'node:url';@@ -8,6 +9,7 @@ function fixturePath(...segments: string[]): string {return resolve(FIXTURES_DIR, ...segments);}+interface GfmExample {section: string;markdown: string;@@ -17,6 +19,7 @@ export function loadGfmExamples(): GfmExample[] {return JSON.parse(readFileSync(fixturePath('gfm', 'examples.json'), 'utf8')) as GfmExample[];}+interface MdxCrashEntry {id: string;input: string;@@ -68,6 +71,7 @@ export function loadLargeEmbedFixtures(): LargeEmbedFixture[] {) as LargeEmbedFixture[];}+export function loadPrd6955Before(): string {return readFileSync(fixturePath('regression', 'prd-6955-before.md'), 'utf8');}@@ -76,6 +80,7 @@ export function loadPrd6955CorruptedTriplicated(): string {return readFileSync(fixturePath('regression', 'prd-6955-corrupted-triplicated.md'), 'utf8');}+export interface NgPinnedCase {id: string;name: string;@@ -92,6 +97,7 @@ export function loadNgPinnedCases(): NgPinnedCase[] {) as NgPinnedCase[];}+export function loadLargeRealistic(): string {return readFileSync(fixturePath('perf', 'large-realistic.md'), 'utf8');}diff --git a/packages/core/src/markdown/fixtures/perf/generate.ts b/packages/core/src/markdown/fixtures/perf/generate.tsindex 8b1eb8519..daa3ef82b 100644--- a/packages/core/src/markdown/fixtures/perf/generate.ts+++ b/packages/core/src/markdown/fixtures/perf/generate.ts@@ -1,3 +1,4 @@+import { writeFileSync } from 'node:fs';import { dirname, resolve } from 'node:path';import { fileURLToPath } from 'node:url';@@ -10,6 +11,7 @@ const BASELINE_ONLY_COUNTS = [500, 2500] as const;const SEED = 0xf1de1117;+function mulberry32(seed: number): () => number {let a = seed >>> 0;return () => {@@ -36,6 +38,7 @@ function pickWeighted<T>(rand: () => number, items: readonly [T, number][]): T {return items[items.length - 1][0];}+const WORDS = ['lorem','ipsum',@@ -153,6 +156,7 @@ function mdxBlock(rand: () => number): string {return `<${name}>\n\n${sentence(rand)}\n\n</${name}>`;}+type BlockKind = 'paragraph' | 'heading' | 'list' | 'code' | 'table' | 'mdx';const MIX: readonly [BlockKind, number][] = [@@ -191,6 +195,7 @@ function generateDocument(blockCount: number, seed: number): string {return `${blocks.join('\n\n')}\n`;}+function main(): void {for (const count of [...BLOCK_COUNTS, ...BASELINE_ONLY_COUNTS]) {const doc = generateDocument(count, SEED);diff --git a/packages/core/src/markdown/guard-flanking-matrix.ts b/packages/core/src/markdown/guard-flanking-matrix.tsindex 420dc0fe5..32c055c5b 100644--- a/packages/core/src/markdown/guard-flanking-matrix.ts+++ b/packages/core/src/markdown/guard-flanking-matrix.ts@@ -7,6 +7,7 @@ import {import { BACKSLASH_GUARD_SUBSTITUTIONS, encodeBackslashEscapes } from './backslash-escape-guard.ts';import { ENTITY_REF_GUARD_SUBSTITUTIONS, encodeEntityRefs } from './entity-ref-guard.ts';+export const ATTENTION_DELIMITERS = ['*', '_', '**', '~~', '=='] as const;export type FlankClass = 'whitespace' | 'punctuation' | 'other';diff --git a/packages/core/src/markdown/handler-shadow-audit.ts b/packages/core/src/markdown/handler-shadow-audit.tsindex 2653473da..283913255 100644--- a/packages/core/src/markdown/handler-shadow-audit.ts+++ b/packages/core/src/markdown/handler-shadow-audit.ts@@ -1,3 +1,4 @@+export interface HandlerShadowWitness {input: string;expect: 'byte' | 'byte-and-reparse-type';diff --git a/packages/core/src/markdown/highlight-promoter.ts b/packages/core/src/markdown/highlight-promoter.tsindex f55912407..6319f264f 100644--- a/packages/core/src/markdown/highlight-promoter.ts+++ b/packages/core/src/markdown/highlight-promoter.ts@@ -1,3 +1,4 @@+import type { Nodes, Parent, PhrasingContent, Root, Text } from 'mdast';import type { MdxJsxTextElement } from 'mdast-util-mdx';import { SKIP, visit } from 'unist-util-visit';diff --git a/packages/core/src/markdown/html-to-mdast.ts b/packages/core/src/markdown/html-to-mdast.tsindex b1f252c31..8dc3a81b5 100644--- a/packages/core/src/markdown/html-to-mdast.ts+++ b/packages/core/src/markdown/html-to-mdast.ts@@ -1,3 +1,4 @@+import type { Root as HastRoot } from 'hast';import type { List, Root as MdastRoot } from 'mdast';import rehypeParse from 'rehype-parse';@@ -85,7 +86,8 @@ export function htmlToMdast(html: string, options?: HtmlToMdastOptions): MdastRothrow new HtmlPayloadTooLargeError(html.length, maxBytes);}- const processor = unified().use(rehypeParse, { fragment: true });+ const processor = unified()+ .use(rehypeParse, { fragment: true });for (const plugin of cleanupPlugins) {processor.use(plugin);diff --git a/packages/core/src/markdown/image-promoter.ts b/packages/core/src/markdown/image-promoter.tsindex 706fa9afb..994eb6917 100644--- a/packages/core/src/markdown/image-promoter.ts+++ b/packages/core/src/markdown/image-promoter.ts@@ -1,3 +1,4 @@+import type { Image, Paragraph, Root } from 'mdast';import type { MdxJsxAttribute, MdxJsxFlowElement } from 'mdast-util-mdx';import { visit } from 'unist-util-visit';diff --git a/packages/core/src/markdown/index.ts b/packages/core/src/markdown/index.tsindex 8b36807fd..fc30bda02 100644--- a/packages/core/src/markdown/index.ts+++ b/packages/core/src/markdown/index.ts@@ -1,3 +1,4 @@+import {type FromProseMirrorOptions,fromPmMark,@@ -196,6 +197,7 @@ export class MarkdownManager {}}+const registry = createRegistry();function destructureAttrs(@@ -244,6 +246,7 @@ function destructureAttrs(return result;}+function hasDirtyDescendant(node: PmNode): boolean {let found = false;node.descendants((child) => {@@ -263,6 +266,7 @@ function effectiveDirty(node: PmNode, freshnessChecker?: StructuralFreshnessChecreturn freshnessChecker ? freshnessChecker.isDiverged(node.toJSON()) : false;}+function isEmptyMdastParagraph(node: MdastNodes): boolean {if (node.type !== 'paragraph') return false;const children = node.children ?? [];@@ -331,6 +335,7 @@ function extractTextFromMdastNodes(nodes: MdastNodes[]): string {return out;}+import {AUDIO_EXTENSIONS,FILE_ATTACHMENT_EXTENSIONS,@@ -577,6 +582,7 @@ function buildMdastToPmHandlers(}));}+if (m.emphasis) {handlers.emphasis = toPmMark(m.emphasis, (node: Emphasis) => ({sourceDelimiter: node.data?.sourceDelimiter ?? '*',@@ -657,6 +663,7 @@ function buildMdastToPmHandlers(}));}+if (m.link) {const sourceLiteralMark = m.sourceLiteral;handlers.link = (node: Link, _parent: MdastParent, state: MdastToPmState) => {@@ -935,6 +942,7 @@ function buildMdastToPmHandlers(};}+const blockUnknownHandler = (node: {type: string;position?: { start: { offset: number }; end: { offset: number } };@@ -1060,6 +1068,7 @@ function buildMdastToPmHandlers(return handlers as RemarkProseMirrorOptions['handlers'];}+function buildPmToMdastHandlers(schema: Schema,freshness: FreshnessCheckerHolder,diff --git a/packages/core/src/markdown/lint/config-files.ts b/packages/core/src/markdown/lint/config-files.tsindex 312c9c74b..94b34dee1 100644--- a/packages/core/src/markdown/lint/config-files.ts+++ b/packages/core/src/markdown/lint/config-files.ts@@ -1,3 +1,4 @@+const MARKDOWNLINT_JSON_CONFIG_FILES: ReadonlySet<string> = new Set(['.markdownlint.json','.markdownlint.jsonc',diff --git a/packages/core/src/markdown/lint/config-schemas.ts b/packages/core/src/markdown/lint/config-schemas.tsindex e78a1381d..207cd95c2 100644--- a/packages/core/src/markdown/lint/config-schemas.ts+++ b/packages/core/src/markdown/lint/config-schemas.ts@@ -29,6 +29,7 @@ const fullPluginShape = Object.fromEntries(LINT_PLUGINS.map((plugin) => [plugin.id, plugin.sliceSchema]),) as z.ZodRawShape;+export const LinterConfigSchema = z.object({enabled: z.boolean(),plugins: z.object(fullPluginShape),diff --git a/packages/core/src/markdown/lint/default-config.ts b/packages/core/src/markdown/lint/default-config.tsindex d48eea5e4..a51f2ffb0 100644--- a/packages/core/src/markdown/lint/default-config.ts+++ b/packages/core/src/markdown/lint/default-config.ts@@ -6,6 +6,7 @@ export const DEFAULT_MARKDOWNLINT_CONFIG: Record<string, MarkdownlintRuleSettingMD013: false,};+export function resolveMarkdownlintConfig(rules: Record<string, MarkdownlintRuleSetting> | undefined,): Configuration {diff --git a/packages/core/src/markdown/lint/index.ts b/packages/core/src/markdown/lint/index.tsindex 8a154ce30..d763d8d28 100644--- a/packages/core/src/markdown/lint/index.ts+++ b/packages/core/src/markdown/lint/index.ts@@ -1,3 +1,4 @@+import { LINT_PLUGINS, type LinterConfig } from './plugins.ts';import type { LintDiagnostic } from './types.ts';diff --git a/packages/core/src/markdown/lint/plugins.ts b/packages/core/src/markdown/lint/plugins.tsindex 1cd40ef3a..65a1b564c 100644--- a/packages/core/src/markdown/lint/plugins.ts+++ b/packages/core/src/markdown/lint/plugins.ts@@ -1,3 +1,4 @@+import { z } from 'zod';import { DEFAULT_MARKDOWNLINT_CONFIG, resolveMarkdownlintConfig } from './default-config.ts';import { fixMarkdownText, runMarkdownlint } from './markdownlint-runner.ts';@@ -8,6 +9,7 @@ import {type MarkdownlintSlice,} from './types.ts';+const MarkdownlintRuleSettingSchema = z.union([z.boolean(),z.enum(MARKDOWNLINT_RULE_SEVERITIES),diff --git a/packages/core/src/markdown/lint/types.ts b/packages/core/src/markdown/lint/types.tsindex 617f6e5b9..3651bd7eb 100644--- a/packages/core/src/markdown/lint/types.ts+++ b/packages/core/src/markdown/lint/types.ts@@ -1,3 +1,4 @@+export const LINT_PLUGIN_IDS = ['markdownlint'] as const;export type LintPluginId = (typeof LINT_PLUGIN_IDS)[number];@@ -41,6 +42,7 @@ export interface MarkdownlintSlice {rules: Record<string, MarkdownlintRuleSetting>;}+interface RuleOptionSpecBase {key: string;description: string;diff --git a/packages/core/src/markdown/math-promoter.ts b/packages/core/src/markdown/math-promoter.tsindex a5b511f25..bd79424c7 100644--- a/packages/core/src/markdown/math-promoter.ts+++ b/packages/core/src/markdown/math-promoter.ts@@ -1,3 +1,4 @@+import type { Code, Root } from 'mdast';import type { Math as MdastMath } from 'mdast-util-math';import type { MdxJsxAttribute, MdxJsxFlowElement } from 'mdast-util-mdx';diff --git a/packages/core/src/markdown/mdast-to-hast-handlers.ts b/packages/core/src/markdown/mdast-to-hast-handlers.tsindex 679c72ef7..f84967798 100644--- a/packages/core/src/markdown/mdast-to-hast-handlers.ts+++ b/packages/core/src/markdown/mdast-to-hast-handlers.ts@@ -1,3 +1,4 @@+import type { Comment, Element, ElementContent, Properties } from 'hast';import type { FootnoteDefinition, FootnoteReference } from 'mdast';import type { MdxJsxFlowElement, MdxJsxTextElement } from 'mdast-util-mdx';diff --git a/packages/core/src/markdown/mdast-to-html.ts b/packages/core/src/markdown/mdast-to-html.tsindex 8ce2b2492..df788a80d 100644--- a/packages/core/src/markdown/mdast-to-html.ts+++ b/packages/core/src/markdown/mdast-to-html.ts@@ -1,3 +1,4 @@+import type { Element, Root as HastRoot, Text as HastText } from 'hast';import type { Root as MdastRoot, Text as MdastText } from 'mdast';import type { Handler } from 'mdast-util-to-hast';diff --git a/packages/core/src/markdown/merged-walker.ts b/packages/core/src/markdown/merged-walker.tsindex bfd7e3109..fa3cfcd86 100644--- a/packages/core/src/markdown/merged-walker.ts+++ b/packages/core/src/markdown/merged-walker.ts@@ -1,3 +1,4 @@+import type { Nodes, Parent, Root } from 'mdast';import { SKIP, visit } from 'unist-util-visit';import type { VFile } from 'vfile';diff --git a/packages/core/src/markdown/mermaid-promoter.ts b/packages/core/src/markdown/mermaid-promoter.tsindex 1a897fca8..17ed2b829 100644--- a/packages/core/src/markdown/mermaid-promoter.ts+++ b/packages/core/src/markdown/mermaid-promoter.ts@@ -1,3 +1,4 @@+import type { Code, Root } from 'mdast';import type { MdxJsxAttribute, MdxJsxFlowElement } from 'mdast-util-mdx';import { visit } from 'unist-util-visit';diff --git a/packages/core/src/markdown/parse-with-fallback.ts b/packages/core/src/markdown/parse-with-fallback.tsindex 9864b3b60..7e4a9a48b 100644--- a/packages/core/src/markdown/parse-with-fallback.ts+++ b/packages/core/src/markdown/parse-with-fallback.ts@@ -168,6 +168,7 @@ export function parseRecursive(}}+interface VFilePlace {offset?: number;start?: { offset?: number };@@ -186,6 +187,7 @@ function extractErrorOffset(err: unknown): number | undefined {return undefined;}+interface Region {start: number;end: number;@@ -209,6 +211,7 @@ function nearestBlankLineAfter(src: string, offset: number): number | null {return null;}+export interface TagEvent {kind: 'open' | 'close' | 'self-close';name: string;@@ -355,6 +358,7 @@ function findFallbackRegion(src: string, errorOffset: number): Region {return { start: blockStart, end: blockEnd };}+interface SourceBlock {src: string;start: number;@@ -452,6 +456,7 @@ function tryPerBlockFallback(};}+function wholeDocRawText(source: string): JSONContent {return {type: 'doc',diff --git a/packages/core/src/markdown/parser-drop-closure.ts b/packages/core/src/markdown/parser-drop-closure.tsindex e6ab4fd57..43d420187 100644--- a/packages/core/src/markdown/parser-drop-closure.ts+++ b/packages/core/src/markdown/parser-drop-closure.ts@@ -1,3 +1,4 @@+export type DroppedTokenAdjudication =| {kind: 'format-dof-axis';diff --git a/packages/core/src/markdown/pipeline.ts b/packages/core/src/markdown/pipeline.tsindex 7f2d5adca..e9e507469 100644--- a/packages/core/src/markdown/pipeline.ts+++ b/packages/core/src/markdown/pipeline.ts@@ -1,3 +1,4 @@+import {type FromProseMirrorOptions,fromProseMirror,diff --git a/packages/core/src/markdown/position-aware-join.ts b/packages/core/src/markdown/position-aware-join.tsindex 5a5e4c42a..f8f5e8530 100644--- a/packages/core/src/markdown/position-aware-join.ts+++ b/packages/core/src/markdown/position-aware-join.ts@@ -1,3 +1,4 @@+import type { Join } from 'mdast-util-to-markdown';import type { Position } from 'unist';diff --git a/packages/core/src/markdown/position-slice.ts b/packages/core/src/markdown/position-slice.tsindex 0f399d34c..e5b4c9eba 100644--- a/packages/core/src/markdown/position-slice.ts+++ b/packages/core/src/markdown/position-slice.ts@@ -1,3 +1,4 @@+import type { Nodes, Root } from 'mdast';import { visit } from 'unist-util-visit';import type { VFile } from 'vfile';@@ -476,7 +477,8 @@ export function applyPositionSliceToNode(const first = source[startOff];if (first !== '[' && first !== '<' && !node.title) {node.data.sourceStyle = 'gfm-autolink';- } else if (first === '[') {+ }+ else if (first === '[') {const slice = source.slice(startOff, endOff);const closeBracketIdx = slice.lastIndexOf('](');if (closeBracketIdx !== -1) {diff --git a/packages/core/src/markdown/rehype-plugins/skip-notion-whitespace.ts b/packages/core/src/markdown/rehype-plugins/skip-notion-whitespace.tsindex db10fa54b..ca225ce9b 100644--- a/packages/core/src/markdown/rehype-plugins/skip-notion-whitespace.ts+++ b/packages/core/src/markdown/rehype-plugins/skip-notion-whitespace.ts@@ -1,3 +1,4 @@+import type { Comment, Element, Root, Text } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/rehype-plugins/strip-cocoa-meta.ts b/packages/core/src/markdown/rehype-plugins/strip-cocoa-meta.tsindex 34068d103..3a2524a9a 100644--- a/packages/core/src/markdown/rehype-plugins/strip-cocoa-meta.ts+++ b/packages/core/src/markdown/rehype-plugins/strip-cocoa-meta.ts@@ -1,3 +1,4 @@+import type { Element, ElementContent, Root } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/rehype-plugins/strip-gdocs-wrapper.ts b/packages/core/src/markdown/rehype-plugins/strip-gdocs-wrapper.tsindex 93151d43b..2279a0189 100644--- a/packages/core/src/markdown/rehype-plugins/strip-gdocs-wrapper.ts+++ b/packages/core/src/markdown/rehype-plugins/strip-gdocs-wrapper.ts@@ -1,3 +1,4 @@+import type { Element, Root } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/rehype-plugins/strip-github-hovercard.ts b/packages/core/src/markdown/rehype-plugins/strip-github-hovercard.tsindex 188f02d83..a0f467c42 100644--- a/packages/core/src/markdown/rehype-plugins/strip-github-hovercard.ts+++ b/packages/core/src/markdown/rehype-plugins/strip-github-hovercard.ts@@ -1,3 +1,4 @@+import type { Element, Root } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/rehype-plugins/strip-gmail-classes.ts b/packages/core/src/markdown/rehype-plugins/strip-gmail-classes.tsindex 4ba2c3418..4e8542a21 100644--- a/packages/core/src/markdown/rehype-plugins/strip-gmail-classes.ts+++ b/packages/core/src/markdown/rehype-plugins/strip-gmail-classes.ts@@ -1,3 +1,4 @@+import type { Element, Root } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/rehype-plugins/strip-gsheets-wrapper.ts b/packages/core/src/markdown/rehype-plugins/strip-gsheets-wrapper.tsindex 1a74b1272..a3c96b24a 100644--- a/packages/core/src/markdown/rehype-plugins/strip-gsheets-wrapper.ts+++ b/packages/core/src/markdown/rehype-plugins/strip-gsheets-wrapper.ts@@ -1,3 +1,4 @@+import type { Element, ElementContent, Root } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/rehype-plugins/strip-mso-styles.ts b/packages/core/src/markdown/rehype-plugins/strip-mso-styles.tsindex de35e7b79..e95cf43d6 100644--- a/packages/core/src/markdown/rehype-plugins/strip-mso-styles.ts+++ b/packages/core/src/markdown/rehype-plugins/strip-mso-styles.ts@@ -1,3 +1,4 @@+import type { Comment, Element, ElementContent, Root } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/rehype-plugins/strip-slack-classes.ts b/packages/core/src/markdown/rehype-plugins/strip-slack-classes.tsindex b4be1b2ea..ffdb4d5b5 100644--- a/packages/core/src/markdown/rehype-plugins/strip-slack-classes.ts+++ b/packages/core/src/markdown/rehype-plugins/strip-slack-classes.ts@@ -1,3 +1,4 @@+import type { Element, ElementContent, Root } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/rehype-plugins/strip-vscode-spans.ts b/packages/core/src/markdown/rehype-plugins/strip-vscode-spans.tsindex 3c8d88b7c..e2a96d1a7 100644--- a/packages/core/src/markdown/rehype-plugins/strip-vscode-spans.ts+++ b/packages/core/src/markdown/rehype-plugins/strip-vscode-spans.ts@@ -1,3 +1,4 @@+import type { Element, Root } from 'hast';import type { Plugin } from 'unified';diff --git a/packages/core/src/markdown/resolve-image-url.ts b/packages/core/src/markdown/resolve-image-url.tsindex cf2c9da8e..0389575ac 100644--- a/packages/core/src/markdown/resolve-image-url.ts+++ b/packages/core/src/markdown/resolve-image-url.ts@@ -1,3 +1,4 @@+import { isRelativeUrl } from './safe-url.ts';function isDevDiagnosticContext(): boolean {diff --git a/packages/core/src/markdown/safe-url.ts b/packages/core/src/markdown/safe-url.tsindex 4d3250d3a..8be632ba4 100644--- a/packages/core/src/markdown/safe-url.ts+++ b/packages/core/src/markdown/safe-url.ts@@ -1,3 +1,4 @@+export const SAFE_URL_SCHEMES = ['https', 'http', 'mailto', 'tel', 'ftp', 'sms'] as const;const SCHEME_ALT = SAFE_URL_SCHEMES.map((s) => `${s}:`).join('|');diff --git a/packages/core/src/markdown/serialize-helpers.ts b/packages/core/src/markdown/serialize-helpers.tsindex 46cc6a074..542204403 100644--- a/packages/core/src/markdown/serialize-helpers.ts+++ b/packages/core/src/markdown/serialize-helpers.ts@@ -1,3 +1,4 @@+import type { Node as PmNode } from '@tiptap/pm/model';import type { MdxJsxAttribute, MdxJsxExpressionAttribute, MdxJsxFlowElement } from 'mdast-util-mdx';import type { PropDef, SerializeContext } from '../registry/types.ts';diff --git a/packages/core/src/markdown/single-dollar-math-promoter.ts b/packages/core/src/markdown/single-dollar-math-promoter.tsindex be97d4d62..fe73659e6 100644--- a/packages/core/src/markdown/single-dollar-math-promoter.ts+++ b/packages/core/src/markdown/single-dollar-math-promoter.ts@@ -1,3 +1,4 @@+import type { PhrasingContent, Root, Text } from 'mdast';import type { InlineMath } from 'mdast-util-math';import { SKIP, visit } from 'unist-util-visit';diff --git a/packages/core/src/markdown/to-markdown-handlers.ts b/packages/core/src/markdown/to-markdown-handlers.tsindex 8f4e9a41c..7bce04302 100644--- a/packages/core/src/markdown/to-markdown-handlers.ts+++ b/packages/core/src/markdown/to-markdown-handlers.ts@@ -1,3 +1,4 @@+import type { Nodes, Parents } from 'mdast';import type { MdxJsxAttribute, MdxJsxExpressionAttribute, MdxJsxFlowElement } from 'mdast-util-mdx';import type { Handle, Info, State } from 'mdast-util-to-markdown';diff --git a/packages/core/src/markdown/unknown-mdast-guard.ts b/packages/core/src/markdown/unknown-mdast-guard.tsindex cd245c38c..c5bfd2386 100644--- a/packages/core/src/markdown/unknown-mdast-guard.ts+++ b/packages/core/src/markdown/unknown-mdast-guard.ts@@ -1,3 +1,4 @@+import type { Root as MdastRoot } from 'mdast';import type { VFile } from 'vfile';diff --git a/packages/core/src/markdown/whitespace-char-ref.ts b/packages/core/src/markdown/whitespace-char-ref.tsindex d578476a7..ac9f5239b 100644--- a/packages/core/src/markdown/whitespace-char-ref.ts+++ b/packages/core/src/markdown/whitespace-char-ref.ts@@ -1,3 +1,4 @@+const INLINE_WHITESPACE_BY_CODE: ReadonlyMap<number, string> = new Map([[0x20, ' '],[0x09, '\t'],diff --git a/packages/core/src/markdown/wiki-link-micromark.ts b/packages/core/src/markdown/wiki-link-micromark.tsindex 6dad26200..afd9936fe 100644--- a/packages/core/src/markdown/wiki-link-micromark.ts+++ b/packages/core/src/markdown/wiki-link-micromark.ts@@ -17,6 +17,7 @@ declare module 'micromark-util-types' {}}+const CODE_BANG = 33; // !const CODE_LBRACKET = 91; // [const CODE_RBRACKET = 93; // ]@@ -260,6 +261,7 @@ export function wikiLinkSyntax(): Extension {};}+function enterWikiLink(this: CompileContext, token: Token) {this.enter({@@ -385,6 +387,7 @@ export const wikiLinkToMarkdown: {unsafe: [{ character: '[', inConstruct: ['phrasing'] }],};+const MICROMARK_EXT = wikiLinkSyntax();export function remarkWikiLink(this: Processor) {