Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
feat(open-knowledge): empty-state "Create with agent" composer (#1928)
sarahf25b2695c61c
diff --git a/.changeset/empty-state-create-with-agent-composer.md b/.changeset/empty-state-create-with-agent-composer.mdnew file mode 100644index 000000000..b34b844e3--- /dev/null+++ b/.changeset/empty-state-create-with-agent-composer.md@@ -0,0 +1,9 @@+---+"@inkeep/open-knowledge": patch+---++Add an AI prompt composer to the empty-state screens. Describe what you want to build and hand it off to your coding agent (Claude, Codex, or Cursor) — it composes a project brief and opens the agent to scaffold your knowledge base to match, using the same handoff path as "Open with AI". One-click starter prompts are tailored to the surface (build-from-scratch ideas on a brand-new project; spec / architecture prompts when the project already has content). The agent picker lists your installed agents and remembers your last choice per machine; when none are installed, Create is disabled with a hint.++The composer now leads both empty-state surfaces; the old "With AI" editor-launch cards and the "New file" card on the post-init screen are gone (a "or create a new file" link covers blank files). Starter-pack descriptions are shorter and friendlier, and the "Entity vault (GBrain-compatible)" pack is renamed "Personal CRM".++When OK runs embedded inside a host agent (Cursor/Codex/Claude) — where launching an agent would loop back — the empty state shows the same starter prompts as copy-to-paste rows instead, so you can grab one and paste it straight into the chat without leaving the agent.diff --git a/packages/app/src/components/EmptyEditorState.tsx b/packages/app/src/components/EmptyEditorState.tsxindex 3a378c7cb..c14509829 100644--- a/packages/app/src/components/EmptyEditorState.tsx+++ b/packages/app/src/components/EmptyEditorState.tsx@@ -2,12 +2,15 @@ import { DocumentListSuccessSchema } from '@inkeep/open-knowledge-core';import { Trans, useLingui } from '@lingui/react/macro';import { ArrowRightIcon } from 'lucide-react';import { useEffect, useRef, useState } from 'react';+import { CopyablePromptList } from '@/components/empty-state/CopyablePromptList';+import { CreatePromptComposer } from '@/components/empty-state/CreatePromptComposer';import { CreateView } from '@/components/empty-state/CreateView';import { EmptyStateHeader } from '@/components/empty-state/EmptyStateHeader';import { filterVisibleEntries } from '@/components/file-tree-utils';import { PackCardGrid } from '@/components/PackCardGrid';import { SeedDialog } from '@/components/SeedDialog';import { Button } from '@/components/ui/button';+import { useIsEmbedded } from '@/hooks/use-is-embedded';import { emitCreateTopLevelFile } from '@/lib/create-file-events';import type { OkPackId } from '@/lib/desktop-bridge-types';import { subscribeToDocumentsChanged } from '@/lib/documents-events';@@ -127,17 +130,32 @@ function OnboardingView({onPackSelect: (packId: OkPackId) => void;}) {const { t } = useLingui();+ const isEmbedded = useIsEmbedded();return (<div className="flex w-full flex-col gap-10 py-12 max-w-5xl my-auto"><EmptyStateHeader- title={t`Let's set up your project.`}- subtitle={t`Pick a starter pack to scaffold folders, templates, and AI-readable rules.`}+ title={t`What would you like to create?`}+ subtitle={+ isEmbedded+ ? t`Copy a prompt and paste it into your agent to set up your project.`+ : t`Describe what you're working on and the agent sets it up for you.`+ }celebrateSignal={celebrateSignal}/>- {/* Group the grid + escape hatch in their own tight container so the- link sits close beneath the cards while the header above keeps the- parent's wider `gap-10` breathing room. */}- <div className="flex w-full flex-col gap-3">+ {/* AI surface up top — the primary path. Non-embedded: compose a brief and+ hand off to a coding agent. Embedded (OK inside Cursor/Codex/Claude):+ show the same starter prompts as copy-to-paste rows, since the launch+ handoff would loop back. `new-project`: brand-new project. */}+ {isEmbedded ? (+ <CopyablePromptList scenario="new-project" />+ ) : (+ <CreatePromptComposer scenario="new-project" />+ )}+ {/* Group the divider + grid + escape hatch in their own tight container+ so the link sits close beneath the cards while the header/composer+ above keep the parent's wider `gap-10` breathing room. */}+ <div className="flex w-full flex-col gap-4">+ <TemplateDivider label={isEmbedded ? t`Use a starter pack` : t`Or use a starter pack`} /><PackCardGrid onPackSelect={onPackSelect} />{/* Escape hatch for users who don't want a scaffolded layout — firesthe same window-level event the sidebar toolbar uses, so the new@@ -150,10 +168,22 @@ function OnboardingView({onClick={() => emitCreateTopLevelFile()}><Trans>- or start from scratch <ArrowRightIcon aria-hidden="true" className="size-3" />+ or create a new file <ArrowRightIcon aria-hidden="true" className="size-3" /></Trans></Button></div></div>);}++/** Labeled hairline rule above the starter-pack grid ("Or start from a+ * template"). Mirrors the screenshot's section divider. */+function TemplateDivider({ label }: { label: string }) {+ return (+ <div className="flex items-center gap-3">+ <span className="font-mono text-2xs uppercase tracking-wider text-muted-foreground whitespace-nowrap">+ {label}+ </span>+ </div>+ );+}diff --git a/packages/app/src/components/PackCardGrid.test.ts b/packages/app/src/components/PackCardGrid.test.tsdeleted file mode 100644index 92cbc5d89..000000000--- a/packages/app/src/components/PackCardGrid.test.ts+++ /dev/null@@ -1,16 +0,0 @@-import { describe, expect, test } from 'bun:test';-import { formatEntryCounts } from './PackCardGrid';--describe('formatEntryCounts() — card subtitle formatting', () => {- test('renders "N files · N folders" for mixed packs', () => {- expect(formatEntryCounts({ files: 4, folders: 3 })).toBe('4 files · 3 folders');- });-- test('elides the file segment for folder-only packs', () => {- expect(formatEntryCounts({ files: 0, folders: 2 })).toBe('2 folders');- });-- test('singularizes when count is 1', () => {- expect(formatEntryCounts({ files: 1, folders: 1 })).toBe('1 file · 1 folder');- });-});diff --git a/packages/app/src/components/PackCardGrid.tsx b/packages/app/src/components/PackCardGrid.tsxindex 05286d41f..eae18104d 100644--- a/packages/app/src/components/PackCardGrid.tsx+++ b/packages/app/src/components/PackCardGrid.tsx@@ -1,5 +1,4 @@// biome-ignore-all lint/plugin/no-raw-html-interactive-element: pre-rule backlog — file uses raw <button>/<input>/<textarea> awaiting shadcn migration; tracked at https://github.com/inkeep/open-knowledge/blob/main/biome-plugins/README.md#no-raw-html-interactive-elementgrit-import { plural, t } from '@lingui/core/macro';import { Trans, useLingui } from '@lingui/react/macro';import { Compass, GitBranch, Library, Loader2, Network, PenLine, StickyNote } from 'lucide-react';import { useEffect, useState } from 'react';@@ -112,39 +111,26 @@ interface PackCardProps {function PackCard({ pack, onSelect }: PackCardProps) {const Icon = iconForPack(pack.id);- const { files, folders } = pack.entryCounts;return (<buttontype="button"onClick={onSelect}className="group flex h-full flex-col items-start gap-4 rounded-2xl border border-border/60 bg-card p-5 text-left transition-[border-color,box-shadow,transform] hover:border-border hover:shadow-sm focus-visible:border-ring focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px">- <div className="flex flex-col gap-2.5">+ <div className="flex flex-col gap-2"><div className="flex flex-col sm:flex-row items-start sm:items-center gap-2">- <span- aria-hidden="true"- className="flex size-8 items-center justify-center rounded-lg bg-primary/5 text-primary"- >- <Icon className="size-4" />+ <span aria-hidden="true" className="text-muted-foreground">+ <Icon className="size-3.5" /></span><h3 className="text-sm font-medium leading-tight">{pack.name}</h3></div><p className="text-1sm leading-relaxed text-muted-foreground">{pack.description}</p></div>- <p className="mt-auto pt-2 font-mono text-2xs uppercase tracking-wider text-muted-foreground">- {formatEntryCounts({ files, folders })}- </p></button>);}-export function formatEntryCounts({ files, folders }: { files: number; folders: number }): string {- const fileLabel = files > 0 ? plural(files, { one: '# file', other: '# files' }) : null;- const folderLabel = plural(folders, { one: '# folder', other: '# folders' });- return fileLabel ? t`${fileLabel} · ${folderLabel}` : folderLabel;-}-function PackCardSkeleton() {return (<div className="flex h-full min-h-[200px] flex-col items-start gap-4 rounded-xl border border-border/60 bg-card p-6">diff --git a/packages/app/src/components/SeedDialog.tsx b/packages/app/src/components/SeedDialog.tsxindex 74cc5b758..464668e4c 100644--- a/packages/app/src/components/SeedDialog.tsx+++ b/packages/app/src/components/SeedDialog.tsx@@ -211,7 +211,7 @@ export function SeedDialog({ open, onOpenChange, onSeedApplied, initialPackId }:return (<DialogRoot open={open} onOpenChange={onOpenChange}>- <DialogContent className="sm:max-w-4xl" data-ok-layer-spawned="">+ <DialogContent className="sm:max-w-3xl" data-ok-layer-spawned=""><DialogHeader><DialogTitle>{title}</DialogTitle><DialogDescription>{description}</DialogDescription>diff --git a/packages/app/src/components/empty-state/AgentHandoffGrid.dom.test.tsx b/packages/app/src/components/empty-state/AgentHandoffGrid.dom.test.tsxdeleted file mode 100644index 36632de95..000000000--- a/packages/app/src/components/empty-state/AgentHandoffGrid.dom.test.tsx+++ /dev/null@@ -1,127 +0,0 @@-import { afterEach, describe, expect, mock, test } from 'bun:test';-import type { HandoffTarget, InstallState, TargetData } from '@inkeep/open-knowledge-core';-import { cleanup, render, screen } from '@testing-library/react';-import userEvent from '@testing-library/user-event';--const states: Partial<Record<HandoffTarget, InstallState>> = {};-const refreshCalls: string[] = [];-const dispatchCalls: Array<{ target: HandoffTarget; input: unknown }> = [];-const installCalls: TargetData[] = [];-let workspace: unknown = { projectDir: '/project' };--mock.module('@/components/handoff/OpenInAgentMenuItem', () => ({- TargetIcon: ({ id }: { id: HandoffTarget }) => <svg data-testid={`target-icon-${id}`} />,-}));--mock.module('@/components/handoff/useInstalledAgents', () => ({- useInstalledAgents: () => ({- states,- refresh: () => {- refreshCalls.push('refresh');- },- }),-}));--mock.module('@/components/handoff/useHandoffDispatch', () => ({- buildProjectScopedHandoffInput: ({ workspace: currentWorkspace }: { workspace: unknown }) =>- currentWorkspace === null ? null : { scope: 'project', workspace: currentWorkspace },- openInstallUrl: (target: TargetData) => {- installCalls.push(target);- return Promise.resolve();- },- useHandoffDispatch: () => ({- dispatch: (target: HandoffTarget, input: unknown) => {- dispatchCalls.push({ target, input });- return Promise.resolve({ ok: true });- },- }),-}));--mock.module('@/lib/use-workspace', () => ({- useWorkspace: () => workspace,-}));--async function renderAgentHandoffGrid() {- const { AgentHandoffGrid } = await import('./AgentHandoffGrid');- render(<AgentHandoffGrid />);-}--function setInstallStates(value: InstallState['installed']) {- states['claude-code'] = { installed: value };- states.codex = { installed: value };- states.cursor = { installed: value };-}--describe('AgentHandoffGrid runtime behavior', () => {- afterEach(() => {- cleanup();- for (const key of Object.keys(states) as HandoffTarget[]) delete states[key];- refreshCalls.length = 0;- dispatchCalls.length = 0;- installCalls.length = 0;- workspace = { projectDir: '/project' };- });-- test('exports the component', async () => {- const mod = await import('./AgentHandoffGrid');- expect(typeof mod.AgentHandoffGrid).toBe('function');- });-- test('renders only visible installed targets as Open buttons and dispatches through the shared hook', async () => {- setInstallStates(true);- await renderAgentHandoffGrid();-- const buttons = screen.getAllByRole('button');- expect(buttons).toHaveLength(3);- expect(screen.queryByText('Claude Cowork')).toBeNull();- expect(screen.getByText('Claude')).not.toBeNull();- expect(screen.getByText('Codex')).not.toBeNull();- expect(screen.getByText('Cursor')).not.toBeNull();- expect(buttons.every((button) => button.textContent?.includes('Open'))).toBe(true);-- await userEvent.click(screen.getByRole('button', { name: /Codex/ }));- expect(dispatchCalls).toEqual([- {- target: 'codex',- input: { scope: 'project', workspace: { projectDir: '/project' } },- },- ]);- });-- test('disables installed Open buttons while workspace input is unavailable', async () => {- setInstallStates(true);- workspace = null;- await renderAgentHandoffGrid();-- for (const button of screen.getAllByRole('button')) {- expect((button as HTMLButtonElement).disabled).toBe(true);- expect(button.textContent).toContain('Open');- }- });-- test('missing targets open the install URL and refresh probe state', async () => {- setInstallStates(false);- await renderAgentHandoffGrid();-- const codex = screen.getByRole('button', { name: /Codex/ });- expect(codex.textContent).toContain('Install');- expect((codex as HTMLButtonElement).disabled).toBe(false);-- await userEvent.click(codex);- expect(installCalls.map((target) => target.id)).toEqual(['codex']);- expect(refreshCalls).toEqual(['refresh']);- expect(dispatchCalls).toEqual([]);- });-- test('pending targets render disabled Checking buttons instead of install links', async () => {- setInstallStates(null);- await renderAgentHandoffGrid();-- for (const button of screen.getAllByRole('button')) {- expect((button as HTMLButtonElement).disabled).toBe(true);- expect(button.textContent).toContain('Checking');- }- expect(installCalls).toEqual([]);- expect(dispatchCalls).toEqual([]);- });-});diff --git a/packages/app/src/components/empty-state/AgentHandoffGrid.tsx b/packages/app/src/components/empty-state/AgentHandoffGrid.tsxdeleted file mode 100644index 489ab195c..000000000--- a/packages/app/src/components/empty-state/AgentHandoffGrid.tsx+++ /dev/null@@ -1,84 +0,0 @@-// biome-ignore-all lint/plugin/no-raw-html-interactive-element: pre-rule backlog — file uses raw <button>/<input>/<textarea> awaiting shadcn migration; tracked at https://github.com/inkeep/open-knowledge/blob/main/biome-plugins/README.md#no-raw-html-interactive-elementgrit-import type { TargetData } from '@inkeep/open-knowledge-core';-import { ArrowUpRight } from 'lucide-react';-import { TargetIcon } from '@/components/handoff/OpenInAgentMenuItem';-import {- buildProjectScopedHandoffInput,- openInstallUrl,- useHandoffDispatch,-} from '@/components/handoff/useHandoffDispatch';-import { useInstalledAgents } from '@/components/handoff/useInstalledAgents';-import { VISIBLE_TARGETS } from '@/lib/handoff/targets';-import { useWorkspace } from '@/lib/use-workspace';-import { cn } from '@/lib/utils';--interface AgentHandoffGridProps {- readonly className?: string;-}--export function AgentHandoffGrid({ className }: AgentHandoffGridProps) {- const { states, refresh } = useInstalledAgents();- const { dispatch } = useHandoffDispatch();- const workspace = useWorkspace();- const handoffInput = buildProjectScopedHandoffInput({ workspace });-- return (- <div className={cn('grid w-full max-w-5xl gap-4 sm:grid-cols-3', className)}>- {VISIBLE_TARGETS.map((target) => {- const probed = states[target.id]?.installed;- const status: CardStatus =- probed === true ? 'installed' : probed === false ? 'missing' : 'pending';- return (- <AgentHandoffCard- key={target.id}- target={target}- status={status}- onOpen={- status === 'installed' && handoffInput !== null- ? () => {- void dispatch(target.id, handoffInput);- }- : undefined- }- onInstall={() => {- void openInstallUrl(target);- void refresh();- }}- />- );- })}- </div>- );-}--type CardStatus = 'installed' | 'missing' | 'pending';--interface AgentHandoffCardProps {- readonly target: TargetData;- readonly status: CardStatus;- readonly onOpen?: () => void;- readonly onInstall: () => void;-}--function AgentHandoffCard({ target, status, onOpen, onInstall }: AgentHandoffCardProps) {- const onClick = status === 'installed' ? onOpen : status === 'missing' ? onInstall : undefined;- const disabled = status === 'pending' || (status === 'installed' && onOpen === undefined);- const label = status === 'installed' ? 'Open' : status === 'missing' ? 'Install' : 'Checking';- return (- <button- type="button"- onClick={onClick}- disabled={disabled}- className="group flex h-full flex-row items-center justify-between gap-4 rounded-xl border border-border/60 bg-card p-4 text-left transition-[border-color,box-shadow,transform] hover:border-border hover:shadow-sm focus-visible:border-ring focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:cursor-not-allowed disabled:opacity-60"- >- <div className="flex flex-col sm:flex-row items-start sm:items-center gap-2">- <TargetIcon id={target.id} aria-hidden="true" className="size-4" />- <h3 className="text-sm font-medium leading-tight">{target.displayName}</h3>- </div>- <p className="inline-flex items-center gap-1 font-mono text-2xs uppercase tracking-wider text-muted-foreground">- {label}- {status === 'missing' ? <ArrowUpRight aria-hidden="true" className="size-3" /> : null}- </p>- </button>- );-}diff --git a/packages/app/src/components/empty-state/CopyablePromptList.tsx b/packages/app/src/components/empty-state/CopyablePromptList.tsxnew file mode 100644index 000000000..7c72dacd8--- /dev/null+++ b/packages/app/src/components/empty-state/CopyablePromptList.tsx@@ -0,0 +1,87 @@+import { useLingui } from '@lingui/react/macro';+import { Check, Copy } from 'lucide-react';+import { useEffect, useRef, useState } from 'react';+import {+ type CreateScenario,+ useCreateSuggestions,+} from '@/components/empty-state/use-create-suggestions';+import { Button } from '@/components/ui/button';+import { cn } from '@/lib/utils';++interface CopyablePromptListProps {+ readonly scenario: CreateScenario;+ readonly className?: string;+}++export function CopyablePromptList({ scenario, className }: CopyablePromptListProps) {+ const { t } = useLingui();+ const suggestions = useCreateSuggestions(scenario);+ const [copiedId, setCopiedId] = useState<string | null>(null);+ const resetTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);++ useEffect(() => () => clearTimeout(resetTimerRef.current), []);++ function handleCopy(id: string, prompt: string) {+ if (!navigator.clipboard) return;+ void navigator.clipboard+ .writeText(prompt)+ .then(() => {+ setCopiedId(id);+ clearTimeout(resetTimerRef.current);+ resetTimerRef.current = setTimeout(() => setCopiedId(null), 1600);+ })+ .catch(() => {});+ }++ return (+ <ul+ className={cn(+ 'w-full divide-y divide-border/60 overflow-hidden rounded-2xl border border-border/60 bg-card',+ className,+ )}+ >+ {suggestions.map((suggestion) => {+ const Icon = suggestion.icon;+ const copied = copiedId === suggestion.id;+ return (+ <li+ key={suggestion.id}+ className="group flex items-start gap-3 p-3.5"+ data-testid={`copy-prompt-${suggestion.id}`}+ >+ {/* mt-0.5 optically centers the icon on the title line (vs the+ two-line label/preview block). */}+ <Icon className="mt-0.5 size-4 shrink-0 text-muted-foreground" aria-hidden="true" />+ <div className="flex min-w-0 flex-1 flex-col gap-1.5">+ <span className="text-sm font-medium leading-tight text-foreground">+ {suggestion.label}+ </span>+ <span className="truncate text-1sm leading-relaxed text-muted-foreground">+ {suggestion.prompt}+ </span>+ </div>+ <Button+ type="button"+ variant="outline"+ size="sm"+ onClick={() => handleCopy(suggestion.id, suggestion.prompt)}+ aria-label={copied ? t`Copied` : t`Copy ${suggestion.label} prompt`}+ className={cn(+ 'shrink-0 gap-1.5 transition-opacity focus-visible:opacity-100 uppercase font-mono',+ copied ? 'opacity-100' : 'opacity-0 group-hover:opacity-100',+ )}+ data-testid={`copy-prompt-button-${suggestion.id}`}+ >+ {copied ? (+ <Check className="size-3.5" aria-hidden="true" />+ ) : (+ <Copy className="size-3.5" aria-hidden="true" />+ )}+ {copied ? t`Copied` : t`Copy`}+ </Button>+ </li>+ );+ })}+ </ul>+ );+}diff --git a/packages/app/src/components/empty-state/CreatePromptComposer.tsx b/packages/app/src/components/empty-state/CreatePromptComposer.tsxnew file mode 100644index 000000000..5462a345b--- /dev/null+++ b/packages/app/src/components/empty-state/CreatePromptComposer.tsx@@ -0,0 +1,232 @@+import type { HandoffTarget } from '@inkeep/open-knowledge-core';+import { Trans, useLingui } from '@lingui/react/macro';+import { ArrowUpRight, Check, ChevronDown, Sparkles } from 'lucide-react';+import { useEffect, useRef, useState } from 'react';+import {+ type CreateScenario,+ useCreateSuggestions,+} from '@/components/empty-state/use-create-suggestions';+import { TargetIcon } from '@/components/handoff/OpenInAgentMenuItem';+import {+ buildCreateHandoffInput,+ getDisplayNameDefault,+ openInstallUrl,+ useHandoffDispatch,+} from '@/components/handoff/useHandoffDispatch';+import { useInstalledAgents } from '@/components/handoff/useInstalledAgents';+import { Button } from '@/components/ui/button';+import { ButtonGroup } from '@/components/ui/button-group';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { Textarea } from '@/components/ui/textarea';+import { VISIBLE_TARGETS } from '@/lib/handoff/targets';+import {+ readPreferredAgent,+ resolvePreferredAgent,+ writePreferredAgent,+} from '@/lib/preferred-agent-store';+import { useWorkspace } from '@/lib/use-workspace';+import { cn } from '@/lib/utils';++interface CreatePromptComposerProps {+ readonly scenario: CreateScenario;+ readonly className?: string;+}++export function CreatePromptComposer({ scenario, className }: CreatePromptComposerProps) {+ const { t } = useLingui();+ const { states, refresh } = useInstalledAgents();+ const { dispatch } = useHandoffDispatch();+ const workspace = useWorkspace();++ const [description, setDescription] = useState('');+ const [selectedAgentId, setSelectedAgentId] = useState<HandoffTarget | null>(() =>+ readPreferredAgent(),+ );+ const userPickedRef = useRef(false);++ const textareaRef = useRef<HTMLTextAreaElement>(null);++ const suggestions = useCreateSuggestions(scenario);++ const selectableTargets = VISIBLE_TARGETS.filter(+ (target) => states[target.id]?.installed === true,+ );+ const probeSettled = VISIBLE_TARGETS.every((target) => states[target.id]?.installed != null);+ const noAgentsInstalled = probeSettled && selectableTargets.length === 0;++ useEffect(() => {+ if (!probeSettled || userPickedRef.current) return;+ const resolved = resolvePreferredAgent({ lastUsed: readPreferredAgent(), states });+ setSelectedAgentId((current) => (resolved === current ? current : resolved));+ }, [probeSettled, states]);++ function chooseAgent(targetId: HandoffTarget) {+ userPickedRef.current = true;+ setSelectedAgentId(targetId);+ writePreferredAgent(targetId);+ }++ function handleCreate(targetId: HandoffTarget) {+ const desc = description.trim();+ writePreferredAgent(targetId);+ const input = buildCreateHandoffInput({ workspace, description: desc, scenario });+ if (input === null) return; // Workspace not resolved yet — disabled-trigger contract.+ void dispatch(targetId, input);+ }++ function handleKeyDown(event: React.KeyboardEvent<HTMLTextAreaElement>) {+ if ((event.metaKey || event.ctrlKey) && event.key === 'Enter') {+ event.preventDefault();+ if (selectedAgentId !== null) handleCreate(selectedAgentId);+ }+ }++ function applySuggestion(prompt: string) {+ setDescription(prompt);+ textareaRef.current?.focus();+ }++ if (noAgentsInstalled) {+ return (+ <div+ className={cn(+ 'flex w-full flex-wrap items-center justify-between gap-3 rounded-2xl border border-border/60 bg-card px-4 py-3',+ className,+ )}+ data-testid="create-no-agents"+ >+ <div className="flex min-w-0 items-center gap-2.5">+ <Sparkles aria-hidden="true" className="size-4 shrink-0 text-muted-foreground" />+ <span className="text-1sm text-muted-foreground">+ <Trans>Install an AI agent to create with AI</Trans>+ </span>+ </div>+ <div className="flex flex-wrap items-center gap-1.5">+ {VISIBLE_TARGETS.map((target) => (+ <Button+ key={target.id}+ type="button"+ variant="outline"+ size="sm"+ onClick={() => void openInstallUrl(target)}+ className="gap-1.5"+ data-testid={`install-agent-${target.id}`}+ >+ <TargetIcon id={target.id} aria-hidden="true" className="size-3.5" />+ {target.displayName}+ <ArrowUpRight aria-hidden="true" className="size-3" />+ </Button>+ ))}+ </div>+ </div>+ );+ }++ return (+ <div+ className={cn(+ 'flex w-full flex-col rounded-2xl border border-border/60 bg-card shadow-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50',+ className,+ )}+ >+ {/* The card owns the border + focus ring; the textarea drops its own+ (border-0 + ring-0) so the whole card lights up on focus instead of+ nesting a second outline. */}+ <Textarea+ ref={textareaRef}+ value={description}+ onChange={(event) => setDescription(event.target.value)}+ onKeyDown={handleKeyDown}+ rows={4}+ placeholder={t`A team knowledge base, a personal wiki, project docs...`}+ aria-label={t`Describe the project you want to create`}+ className="min-h-[112px] resize-none rounded-2xl border-0 bg-transparent px-4 py-3.5 text-sm leading-relaxed shadow-none focus-visible:border-0 focus-visible:ring-0"+ />+ {/* Footer row: starter-brief chips (prefill the field, no auto-create) on+ the left, the Create split button pinned right. Chips wrap among+ themselves on narrow widths while the button stays put. */}+ <div className="flex flex-wrap items-center justify-between gap-2 px-3 pb-3">+ <div className="flex min-w-0 flex-wrap items-center gap-2">+ {suggestions.map((suggestion) => {+ const Icon = suggestion.icon;+ return (+ <Button+ key={suggestion.id}+ type="button"+ variant="outline"+ size="sm"+ onClick={() => applySuggestion(suggestion.prompt)}+ className="gap-1.5 rounded-md font-normal text-muted-foreground hover:text-foreground"+ data-testid={`create-suggestion-${suggestion.id}`}+ >+ <Icon className="size-3.5" aria-hidden="true" />+ {suggestion.label}+ </Button>+ );+ })}+ </div>+ {selectedAgentId === null ? (+ <Button+ type="button"+ variant="outline"+ disabled+ className="gap-1.5"+ data-testid="create-with-agent"+ >+ <Trans>Create</Trans>+ </Button>+ ) : (+ <ButtonGroup>+ <Button+ type="button"+ onClick={() => handleCreate(selectedAgentId)}+ variant="outline"+ className="gap-1.5"+ data-testid="create-with-agent"+ >+ <TargetIcon id={selectedAgentId} aria-hidden="true" className="size-3.5" />+ <Trans>Create with {getDisplayNameDefault(selectedAgentId)}</Trans>+ </Button>+ <DropdownMenu+ onOpenChange={(open) => {+ if (open) void refresh();+ }}+ >+ <DropdownMenuTrigger asChild>+ <Button+ type="button"+ aria-label={t`Choose agent`}+ size="icon"+ variant="outline"+ data-testid="create-with-agent-menu"+ >+ <ChevronDown aria-hidden="true" className="size-3.5" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="min-w-[200px]">+ {selectableTargets.map((target) => (+ <DropdownMenuItem+ key={target.id}+ onSelect={() => chooseAgent(target.id)}+ data-testid={`create-agent-option-${target.id}`}+ >+ <TargetIcon id={target.id} aria-hidden="true" className="size-4" />+ <span className="flex-1">{target.displayName}</span>+ {target.id === selectedAgentId ? (+ <Check aria-hidden="true" className="size-4 text-muted-foreground" />+ ) : null}+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ </ButtonGroup>+ )}+ </div>+ </div>+ );+}diff --git a/packages/app/src/components/empty-state/CreateView.tsx b/packages/app/src/components/empty-state/CreateView.tsxindex 8a3abca4a..ec1632818 100644--- a/packages/app/src/components/empty-state/CreateView.tsx+++ b/packages/app/src/components/empty-state/CreateView.tsx@@ -1,16 +1,14 @@import type { TemplatesListEntry } from '@inkeep/open-knowledge-core';import { Trans, useLingui } from '@lingui/react/macro';-import { FilePlus2, Plus } from 'lucide-react';-import { AgentHandoffGrid } from '@/components/empty-state/AgentHandoffGrid';+import { ArrowRightIcon, Plus } from 'lucide-react';+import { CopyablePromptList } from '@/components/empty-state/CopyablePromptList';+import { CreatePromptComposer } from '@/components/empty-state/CreatePromptComposer';import { EmptyStateHeader } from '@/components/empty-state/EmptyStateHeader';-import { KeyboardHintsFooter } from '@/components/empty-state/KeyboardHintsFooter';import { Badge } from '@/components/ui/badge';import { Button } from '@/components/ui/button';-import { Kbd } from '@/components/ui/kbd';import { useAllTemplates } from '@/hooks/use-folder-config';import { useIsEmbedded } from '@/hooks/use-is-embedded';import { emitCreateTopLevelFile } from '@/lib/create-file-events';-import { formatShortcut } from '@/lib/keyboard-shortcuts';interface CreateViewProps {readonly celebrateSignal: number;@@ -26,22 +24,31 @@ export function CreateView({ celebrateSignal, onAddStarterPack }: CreateViewPropconst templates = templatesState.status === 'ready' ? templatesState.data : [];const templatesLoading = templatesState.status === 'loading' || templatesState.status === 'idle';const templatesError = templatesState.status === 'error';- const shortcut = formatShortcut('new-item');return (<div className="flex w-full flex-col gap-10 py-12 max-w-5xl my-auto"><EmptyStateHeadertitle={t`Create something great.`}- subtitle={t`Start a blank file, scaffold from a template, or open this folder in your AI editor.`}+ subtitle={+ isEmbedded+ ? t`Copy a prompt for your agent, start a blank file, or scaffold from a template.`+ : t`Describe what you want to build, start a blank file, or scaffold from a template.`+ }celebrateSignal={celebrateSignal}/>- <div className="flex w-full flex-col gap-8">- <PrimaryNewFileCard- shortcutLabel={shortcut}- onClick={() => emitCreateTopLevelFile({ initialDir })}- />+ {/* AI surface up top — the primary path. Non-embedded: compose a brief and+ hand off to a coding agent. Embedded (OK inside Cursor/Codex/Claude):+ the handoff would loop back, so show the same starter prompts as+ copy-to-paste rows instead. `existing-repo`: project already has+ content, so prompts pitch spec / architecture work. */}+ {isEmbedded ? (+ <CopyablePromptList scenario="existing-repo" />+ ) : (+ <CreatePromptComposer scenario="existing-repo" />+ )}+ <div className="flex w-full flex-col gap-8">{templatesLoading || templatesError || templates.length > 0 ? (<TemplatesSectiontemplates={templates}@@ -51,8 +58,6 @@ export function CreateView({ celebrateSignal, onAddStarterPack }: CreateViewProp/>) : null}- {isEmbedded ? null : <WithAiSection />}-<div className="flex w-full items-center justify-between gap-4"><ButtononClick={onAddStarterPack}@@ -63,37 +68,25 @@ export function CreateView({ celebrateSignal, onAddStarterPack }: CreateViewProp<Plus aria-hidden="true" className="size-3" /><Trans>Add a starter pack</Trans></Button>- <KeyboardHintsFooter />+ {/* Escape hatch — fires the same window-level event the sidebar+ toolbar uses, so the new file lands with the standard inline-rename+ flow. Mirrors OnboardingView's "or create a new file" link. */}+ <Button+ variant="link"+ className="text-muted-foreground font-normal justify-end"+ size="sm"+ onClick={() => emitCreateTopLevelFile({ initialDir })}+ >+ <Trans>+ or create a new file <ArrowRightIcon aria-hidden="true" className="size-3" />+ </Trans>+ </Button></div></div></div>);}-interface PrimaryNewFileCardProps {- readonly shortcutLabel: string;- readonly onClick: () => void;-}--function PrimaryNewFileCard({ shortcutLabel, onClick }: PrimaryNewFileCardProps) {- return (- <Button- type="button"- variant="ghost"- onClick={onClick}- className="group flex h-auto w-full items-center justify-between gap-4 rounded-xl border border-border/60 bg-card p-4 text-left transition-colors hover:bg-muted/50 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50"- >- <div className="flex items-center gap-3">- <FilePlus2 aria-hidden="true" className="size-4 text-muted-foreground" />- <span className="text-sm font-medium leading-tight text-foreground">- <Trans>New file</Trans>- </span>- </div>- <Kbd>{shortcutLabel}</Kbd>- </Button>- );-}-interface TemplatesSectionProps {readonly templates: readonly TemplatesListEntry[];readonly loading: boolean;@@ -119,7 +112,7 @@ function TemplatesSection({ templates, loading, error, onSelect }: TemplatesSect</Badge>)}</header>- {/* Cap at ~5 rows so With AI stays in the viewport regardless of+ {/* Cap the height so the footer stays in the viewport regardless oftemplate count. */}<div className="w-full overflow-hidden rounded-xl border border-border/60 bg-card"><section@@ -196,15 +189,3 @@ function TemplateRow({ template, targetLabel, onClick }: TemplateRowProps) {</Button>);}--function WithAiSection() {- const { t } = useLingui();- return (- <section aria-label={t`With AI`} className="flex w-full flex-col gap-3">- <header className="font-mono text-2xs uppercase tracking-wider text-muted-foreground">- <Trans>With AI</Trans>- </header>- <AgentHandoffGrid />- </section>- );-}diff --git a/packages/app/src/components/empty-state/KeyboardHintsFooter.tsx b/packages/app/src/components/empty-state/KeyboardHintsFooter.tsxdeleted file mode 100644index 5fbc50ba7..000000000--- a/packages/app/src/components/empty-state/KeyboardHintsFooter.tsx+++ /dev/null@@ -1,15 +0,0 @@-import { Trans } from '@lingui/react/macro';-import { Kbd } from '@/components/ui/kbd';-import { formatShortcut } from '@/lib/keyboard-shortcuts';--export function KeyboardHintsFooter() {- const shortcut = formatShortcut('command-palette');- return (- <p className="text-1sm text-muted-foreground">- <Kbd>{shortcut}</Kbd>{' '}- <span>- <Trans>Search</Trans>- </span>- </p>- );-}diff --git a/packages/app/src/components/empty-state/use-create-suggestions.ts b/packages/app/src/components/empty-state/use-create-suggestions.tsnew file mode 100644index 000000000..a7fab0a9a--- /dev/null+++ b/packages/app/src/components/empty-state/use-create-suggestions.ts@@ -0,0 +1,60 @@+import type { CreateScenario } from '@inkeep/open-knowledge-core';+import { useLingui } from '@lingui/react/macro';+import { Bird, FileCode2, ListTree, Network, Telescope } from 'lucide-react';+import type { ComponentType } from 'react';++export type { CreateScenario };++export interface CreateSuggestion {+ readonly id: string;+ readonly icon: ComponentType<{ className?: string }>;+ readonly label: string;+ /** Full prompt — prefilled into the composer, or copied verbatim in the+ * embedded list. */+ readonly prompt: string;+}++export function useCreateSuggestions(scenario: CreateScenario): readonly CreateSuggestion[] {+ const { t } = useLingui();+ return scenario === 'existing-repo'+ ? [+ {+ id: 'draft-spec',+ icon: FileCode2,+ label: t`Draft a spec`,+ prompt: t`Read through this codebase and draft a technical spec for the most complex module: an overview, the architecture, key files, and open questions, all linked from a specs index page.`,+ },+ {+ id: 'organize-specs',+ icon: ListTree,+ label: t`Organize specs`,+ prompt: t`Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code.`,+ },+ {+ id: 'document-architecture',+ icon: Network,+ label: t`Map the architecture`,+ prompt: t`Document the architecture of this repo: create an overview page that links to a page per major module describing its responsibilities and entry points.`,+ },+ ]+ : [+ {+ id: 'competitor-research',+ icon: Telescope,+ label: t`Competitor research`,+ prompt: t`Build a competitor research knowledge base. Start with an overview page, then add cross-linked pages for each competitor, their products and pricing, and the sources behind every claim.`,+ },+ {+ id: 'eng-specs',+ icon: FileCode2,+ label: t`Eng specs`,+ prompt: t`Draft a technical spec for my project. Start with an overview, then add cross-linked pages for the architecture, the key modules, and the open questions, all linked from a specs index.`,+ },+ {+ id: 'bird-wiki',+ icon: Bird,+ label: t`Bird wiki`,+ prompt: t`Build a knowledge wiki about the different types of flightless birds. Start with an overview page, then add cross-linked pages for each major group (ratites like ostriches, emus, and kiwis; penguins; and flightless rails), the regions they live in, and a timeline of how flightlessness evolved.`,+ },+ ];+}diff --git a/packages/app/src/components/handoff/useHandoffDispatch.test.ts b/packages/app/src/components/handoff/useHandoffDispatch.test.tsindex 983dad778..0e3786181 100644--- a/packages/app/src/components/handoff/useHandoffDispatch.test.ts+++ b/packages/app/src/components/handoff/useHandoffDispatch.test.ts@@ -646,6 +646,52 @@ describe('buildProjectScopedHandoffInput — empty-state cards helper', () => {});});+describe('buildCreateHandoffInput — empty-state create-composer helper', () => {+ test('null workspace returns null (composer dispatches disabled while resolving)', async () => {+ const { buildCreateHandoffInput } = await import('./useHandoffDispatch');+ expect(+ buildCreateHandoffInput({ workspace: null, description: 'a wiki', scenario: 'new-project' }),+ ).toBeNull();+ });++ test('empty workspace.contentDir returns null (same falsy guard as siblings)', async () => {+ const { buildCreateHandoffInput } = await import('./useHandoffDispatch');+ expect(+ buildCreateHandoffInput({+ workspace: { contentDir: '', pathSeparator: '/' },+ description: 'a wiki',+ scenario: 'new-project',+ }),+ ).toBeNull();+ });++ test('carries the brief + scenario on the create-scope shape (docContext null, empty docPath)', async () => {+ const { buildCreateHandoffInput } = await import('./useHandoffDispatch');+ const input = buildCreateHandoffInput({+ workspace: { contentDir: '/Users/sarah/proj', pathSeparator: '/' },+ description: 'a research knowledge base',+ scenario: 'existing-repo',+ });+ expect(input).toEqual({+ docContext: null,+ createDescription: 'a research knowledge base',+ createScenario: 'existing-repo',+ projectDir: '/Users/sarah/proj',+ docPath: '',+ });+ });++ test('empty description is preserved verbatim (composer degrades it, not the builder)', async () => {+ const { buildCreateHandoffInput } = await import('./useHandoffDispatch');+ const input = buildCreateHandoffInput({+ workspace: { contentDir: '/Users/sarah/proj', pathSeparator: '/' },+ description: '',+ scenario: 'new-project',+ });+ expect(input?.createDescription).toBe('');+ });+});+describe('buildFolderHandoffInput — folder-scoped helper (D23 / FR4 / FR14)', () => {test('null workspace returns null (submenu renders disabled while resolving)', async () => {const { buildFolderHandoffInput } = await import('./useHandoffDispatch');@@ -823,6 +869,73 @@ describe('selectScopedPrompt — template selection across autoOpen modes', () =expect(out).toBe("Let's work on this project using Open Knowledge.");});+ test('create scope (createDescription set) returns composeCreatePrompt with the scenario', async () => {+ const { selectScopedPrompt } = await import('./useHandoffDispatch');+ const { composeCreatePrompt } = await import('@inkeep/open-knowledge-core');+ const out = selectScopedPrompt(+ {+ docContext: null,+ createDescription: 'a worldbuilding wiki',+ createScenario: 'new-project',+ projectDir: '/proj',+ docPath: '',+ },+ 'claude-code',+ true,+ );+ expect(out).toBe(composeCreatePrompt('a worldbuilding wiki', true, 'new-project'));+ expect(out).toContain('> a worldbuilding wiki');+ expect(out).toContain('Open the OK editor in web view.');+ });++ test('create scope threads existing-repo — no "new project" framing', async () => {+ const { selectScopedPrompt } = await import('./useHandoffDispatch');+ const out = selectScopedPrompt(+ {+ docContext: null,+ createDescription: 'draft a spec for this codebase',+ createScenario: 'existing-repo',+ projectDir: '/proj',+ docPath: '',+ },+ 'claude-code',+ true,+ );+ expect(out).not.toContain('new Open Knowledge project');+ expect(out).toContain('> draft a spec for this codebase');+ });++ test('create scope defaults to new-project when createScenario is absent', async () => {+ const { selectScopedPrompt } = await import('./useHandoffDispatch');+ const { composeCreatePrompt } = await import('@inkeep/open-knowledge-core');+ const out = selectScopedPrompt(+ { docContext: null, createDescription: 'a wiki', projectDir: '/proj', docPath: '' },+ 'claude-code',+ false,+ );+ expect(out).toBe(composeCreatePrompt('a wiki', false, 'new-project'));+ });++ test('create scope with empty createDescription routes to the create composer, NOT empty-space', async () => {+ const { selectScopedPrompt } = await import('./useHandoffDispatch');+ const { composeCreatePrompt, composeEmptySpacePrompt } = await import(+ '@inkeep/open-knowledge-core'+ );+ const out = selectScopedPrompt(+ {+ docContext: null,+ createDescription: '',+ createScenario: 'new-project',+ projectDir: '/proj',+ docPath: '',+ },+ 'claude-code',+ true,+ );+ expect(out).toBe(composeCreatePrompt('', true, 'new-project'));+ expect(out).not.toBe(composeEmptySpacePrompt(true));+ });+test('precedence: docContext beats folderRelativePath when both are set (defensive ordering)', async () => {const { selectScopedPrompt } = await import('./useHandoffDispatch');const { composeFilePrompt } = await import('@inkeep/open-knowledge-core');diff --git a/packages/app/src/components/handoff/useHandoffDispatch.ts b/packages/app/src/components/handoff/useHandoffDispatch.tsindex 0317a4851..91e2a223d 100644--- a/packages/app/src/components/handoff/useHandoffDispatch.ts+++ b/packages/app/src/components/handoff/useHandoffDispatch.ts@@ -1,4 +1,6 @@import {+ type CreateScenario,+ composeCreatePrompt,composeEmptySpacePrompt,composeFilePrompt,composeFolderPrompt,@@ -45,6 +47,17 @@ export interface HandoffDispatchInput {* it lives in and the user's instruction. Set for selection scope only;* absent for file / folder / project scope. */readonly selection?: SelectionContext;+ /** Create-scope brief — the user's free-form description of the knowledge+ * base they want to scaffold, typed into the empty-state "Create with+ * <agent>" composer. Set by `buildCreateHandoffInput`; absent for every+ * other scope. When present (even as the empty string), `selectScopedPrompt`+ * composes via `composeCreatePrompt` instead of the bare project directive. */+ readonly createDescription?: string;+ /** Create-scope surface — `new-project` (onboarding) vs `existing-repo`+ * (post-init). Selects the `composeCreatePrompt` framing so an existing+ * project isn't described as a brand-new one. Set alongside+ * `createDescription`; defaults to `new-project` if absent. */+ readonly createScenario?: CreateScenario;readonly projectDir: string;readonly docPath: string;}@@ -74,6 +87,25 @@ export function buildProjectScopedHandoffInput(args: {};}+export function buildCreateHandoffInput(args: {+ readonly workspace: Workspace | null;+ readonly description: string;+ readonly scenario: CreateScenario;+}): HandoffDispatchInput | null {+ if (!args.workspace?.contentDir) return null;+ return {+ docContext: null,+ createDescription: args.description,+ createScenario: args.scenario,+ projectDir: args.workspace.contentDir,+ docPath: '',+ };+}++export function openInstallUrl(target: TargetData): Promise<void> {+ return defaultOpenExternal(target.installUrl).then(() => undefined);+}+export function buildFolderHandoffInput(args: {readonly folderRelativePath: string;readonly workspace: Workspace | null;@@ -119,10 +151,6 @@ export function buildSelectionOrDocHandoffInput(args: {return buildSelectionHandoffInput(args) ?? buildHandoffInput(args);}-export function openInstallUrl(target: TargetData): Promise<void> {- return defaultOpenExternal(target.installUrl).then(() => undefined);-}-export interface ToastAction {readonly label: string;readonly onClick: () => void;@@ -193,6 +221,13 @@ export function selectScopedPrompt(if (input.folderRelativePath) {return composeFolderPrompt(input.folderRelativePath, autoOpen);}+ if (input.createDescription !== undefined) {+ return composeCreatePrompt(+ input.createDescription,+ autoOpen,+ input.createScenario ?? 'new-project',+ );+ }return composeEmptySpacePrompt(autoOpen);}diff --git a/packages/app/src/components/ui/button-group.tsx b/packages/app/src/components/ui/button-group.tsxnew file mode 100644index 000000000..14e9a4958--- /dev/null+++ b/packages/app/src/components/ui/button-group.tsx@@ -0,0 +1,78 @@+import { cva, type VariantProps } from 'class-variance-authority';+import { Slot } from 'radix-ui';+import { Separator } from '@/components/ui/separator';+import { cn } from '@/lib/utils';++const buttonGroupVariants = cva(+ "group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",+ {+ variants: {+ orientation: {+ horizontal:+ '[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!',+ vertical:+ 'flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!',+ },+ },+ defaultVariants: {+ orientation: 'horizontal',+ },+ },+);++function ButtonGroup({+ className,+ orientation,+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>) {+ return (+ // biome-ignore lint/a11y/useSemanticElements: a button group is a generic toolbar-style cluster of buttons, not a form control set; <fieldset> would impose form-field semantics + default chrome. role="group" on a div is the shadcn-canonical shape.+ <div+ role="group"+ data-slot="button-group"+ data-orientation={orientation}+ className={cn(buttonGroupVariants({ orientation }), className)}+ {...props}+ />+ );+}++function ButtonGroupText({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<'div'> & {+ asChild?: boolean;+}) {+ const Comp = asChild ? Slot.Root : 'div';++ return (+ <Comp+ className={cn(+ "flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ />+ );+}++function ButtonGroupSeparator({+ className,+ orientation = 'vertical',+ ...props+}: React.ComponentProps<typeof Separator>) {+ return (+ <Separator+ data-slot="button-group-separator"+ orientation={orientation}+ className={cn(+ 'relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto',+ className,+ )}+ {...props}+ />+ );+}++export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };diff --git a/packages/app/src/lib/preferred-agent-store.test.ts b/packages/app/src/lib/preferred-agent-store.test.tsnew file mode 100644index 000000000..379220b56--- /dev/null+++ b/packages/app/src/lib/preferred-agent-store.test.ts@@ -0,0 +1,131 @@+import { describe, expect, test } from 'bun:test';+import type { HandoffTarget, InstallState } from '@inkeep/open-knowledge-core';+import {+ PREFERRED_AGENT_KEY,+ type PreferredAgentStorage,+ readPreferredAgent,+ resolvePreferredAgent,+ writePreferredAgent,+} from './preferred-agent-store.ts';++function fakeStorage(initial: Record<string, string> = {}): PreferredAgentStorage & {+ map: Record<string, string>;+} {+ const map = { ...initial };+ return {+ map,+ getItem: (key) => map[key] ?? null,+ setItem: (key, value) => {+ map[key] = value;+ },+ };+}++function states(+ overrides: Partial<Record<HandoffTarget, boolean | null>>,+): Record<HandoffTarget, InstallState> {+ const base: Record<HandoffTarget, boolean | null> = {+ 'claude-cowork': false,+ 'claude-code': false,+ codex: false,+ cursor: false,+ ...overrides,+ };+ return Object.fromEntries(+ Object.entries(base).map(([id, installed]) => [id, { installed }]),+ ) as Record<HandoffTarget, InstallState>;+}++describe('readPreferredAgent / writePreferredAgent — device-local round-trip', () => {+ test('round-trips a valid visible target', () => {+ const storage = fakeStorage();+ writePreferredAgent('codex', storage);+ expect(readPreferredAgent(storage)).toBe('codex');+ });++ test('returns null when nothing stored', () => {+ expect(readPreferredAgent(fakeStorage())).toBeNull();+ });++ test('rejects an unknown / corrupt stored value (validates against VISIBLE_TARGETS)', () => {+ expect(readPreferredAgent(fakeStorage({ [PREFERRED_AGENT_KEY]: 'netscape' }))).toBeNull();+ });++ test('rejects claude-cowork — it is in KNOWN_TARGETS but hidden from every UI surface', () => {+ expect(readPreferredAgent(fakeStorage({ [PREFERRED_AGENT_KEY]: 'claude-cowork' }))).toBeNull();+ });++ test('read survives a throwing storage (private mode) by returning null', () => {+ const throwing: PreferredAgentStorage = {+ getItem: () => {+ throw new Error('SecurityError');+ },+ setItem: () => {},+ };+ expect(readPreferredAgent(throwing)).toBeNull();+ });++ test('write survives a throwing storage (quota exceeded) by swallowing silently', () => {+ const throwing: PreferredAgentStorage = {+ getItem: () => null,+ setItem: () => {+ throw new Error('QuotaExceededError');+ },+ };+ expect(() => writePreferredAgent('codex', throwing)).not.toThrow();+ });+});++describe('resolvePreferredAgent — installed-only (last-used → first installed → null)', () => {+ test('priority 1: persisted last-used wins when it is installed', () => {+ expect(resolvePreferredAgent({ lastUsed: 'codex', states: states({ codex: true }) })).toBe(+ 'codex',+ );+ });++ test('persisted last-used is discarded when not installed here (no dead default)', () => {+ expect(+ resolvePreferredAgent({+ lastUsed: 'cursor',+ states: states({ 'claude-code': true, cursor: false }),+ }),+ ).toBe('claude-code');+ });++ test('persisted Claude is discarded when Claude Desktop is not installed (no web fallback)', () => {+ expect(+ resolvePreferredAgent({ lastUsed: 'claude-code', states: states({ 'claude-code': false }) }),+ ).toBeNull();+ });++ test('priority 2: no usable last-used → first installed in VISIBLE_TARGETS order (Claude first)', () => {+ expect(+ resolvePreferredAgent({+ lastUsed: null,+ states: states({ 'claude-code': true, codex: true }),+ }),+ ).toBe('claude-code');+ });++ test('priority 2: Claude absent → first installed other (the infer-from-install win)', () => {+ expect(+ resolvePreferredAgent({+ lastUsed: null,+ states: states({ 'claude-code': false, codex: true }),+ }),+ ).toBe('codex');+ });++ test('priority 2: Claude absent + two others installed → first in order (codex before cursor)', () => {+ expect(+ resolvePreferredAgent({+ lastUsed: null,+ states: states({ 'claude-code': false, codex: true, cursor: true }),+ }),+ ).toBe('codex');+ });++ test('priority 3: nothing installed → null (composer renders the disabled "no agents" state)', () => {+ expect(resolvePreferredAgent({ lastUsed: null, states: states({}) })).toBeNull();+ });+});diff --git a/packages/app/src/lib/preferred-agent-store.ts b/packages/app/src/lib/preferred-agent-store.tsnew file mode 100644index 000000000..c28688220--- /dev/null+++ b/packages/app/src/lib/preferred-agent-store.ts@@ -0,0 +1,41 @@+import type { HandoffTarget, InstallState } from '@inkeep/open-knowledge-core';+import { VISIBLE_TARGETS } from '@/lib/handoff/targets';++export const PREFERRED_AGENT_KEY = 'ok-preferred-agent-v1';++export interface PreferredAgentStorage {+ getItem(key: string): string | null;+ setItem(key: string, value: string): void;+}++const VISIBLE_IDS = new Set<string>(VISIBLE_TARGETS.map((target) => target.id));++function isVisibleTarget(value: unknown): value is HandoffTarget {+ return typeof value === 'string' && VISIBLE_IDS.has(value);+}++export function readPreferredAgent(storage?: PreferredAgentStorage): HandoffTarget | null {+ try {+ const raw = (storage ?? localStorage).getItem(PREFERRED_AGENT_KEY);+ return isVisibleTarget(raw) ? raw : null;+ } catch {+ return null; // localStorage unavailable (private mode, disabled) — no memory.+ }+}++/** Persist the preference. Swallows quota / availability errors — the in-memory+ * selection still holds for the session. */+export function writePreferredAgent(id: HandoffTarget, storage?: PreferredAgentStorage): void {+ try {+ (storage ?? localStorage).setItem(PREFERRED_AGENT_KEY, id);+ } catch {}+}++export function resolvePreferredAgent(args: {+ lastUsed: HandoffTarget | null;+ states: Record<HandoffTarget, InstallState>;+}): HandoffTarget | null {+ const { lastUsed, states } = args;+ if (lastUsed && states[lastUsed]?.installed === true) return lastUsed;+ return VISIBLE_TARGETS.find((target) => states[target.id]?.installed === true)?.id ?? null;+}diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex 0d40e50b4..3d8d5df79 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -45,6 +45,7 @@["targetLabel"]],"0eHrMb": ["Could not complete delete"],+ "0jD-Gn": ["A team knowledge base, a personal wiki, project docs..."],"0kTAXe": ["Open source: ", ["mirrorSrc"]],"0njBIq": ["Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills, and <2>.claude/launch.json</2>.<3/><4>Shared</4> commits them to git, so anyone who clones the repo gets the same setup. <5/><6>Local only</6> keeps them out of git (via <7>.git/info/exclude</7>)."@@ -80,7 +81,6 @@"2277Tu": ["Collapse graph"],"237hSL": ["Ended"],"25Pw6a": ["Cloning"],- "27ANM6": ["With AI"],"27XW26": ["Clone happens in the Project Navigator. Reclick the share link there."],"29VNqC": ["Unknown error"],"29XZXN": ["Set git identity"],@@ -110,9 +110,11 @@"36WXSC": ["Couldn't delete template: ", ["error"]],"379t2h": ["Unified diff"],"38foVZ": ["Loading diff"],+ "3DTatP": ["Copy a prompt for your agent, start a blank file, or scaffold from a template."],"3Fcb0I": ["Open graph"],"3HNlwb": ["Hello, world!"],"3Ib6FN": ["Move down"],+ "3IseAk": ["Install an AI agent to create with AI"],"3J7d2N": ["Big section heading."],"3JYy1p": ["Branch ", ["0"], " no longer exists. Cloned to default branch."],"3MnvrL": ["Showing top ", ["0"], " matches — keep typing to narrow"],@@ -156,7 +158,6 @@"4TzU0n": ["Initialize"],"4buZWd": ["Inherited from ", ["path"]],"4c_a6S": ["Nothing set yet."],- "4etMqs": [["files", "plural", { "one": ["#", " file"], "other": ["#", " files"] }]],"4g19V6": ["Failed to update property"],"4hJhzz": ["Table"],"4jDd0j": ["Anyone can see"],@@ -252,13 +253,18 @@"6caB2T": ["Connect an existing repository"],"6cuT_1": ["Open date picker for ", ["keyName"]],"6cyguR": ["Connect GitHub to continue."],+ "6eniID": ["Map the architecture"],"6fGjTz": ["Show fewer"],"6gRgw8": ["Retry"],+ "6h4zVU": ["What would you like to create?"],"6hfDJr": ["Server error: ", ["status"]],"6ibbCg": ["Create your first file"],"6ki7F2": [["0", "plural", { "one": ["#", " item"], "other": ["#", " items"] }]],"6m_7We": ["Open this settings dialog."],"6q0rnH": ["writing"],+ "6qMe0o": [+ "Draft a technical spec for my project. Start with an overview, then add cross-linked pages for the architecture, the key modules, and the open questions, all linked from a specs index."+ ],"6s7LXO": ["Heads up"],"6u9LvN": [["days", "plural", { "one": ["#", " day ago"], "other": ["#", " days ago"] }]],"6vEr3W": ["Link target"],@@ -277,6 +283,7 @@"7PzzBU": ["User"],"7_bFEL": ["Drag ", ["patternText"], " to reorder"],"7d1a0d": ["Public"],+ "7hctf2": ["Describe the project you want to create"],"7kdoVR": ["Open the Open with AI menu for the current editor selection."],"7nrKys": ["Open Knowledge is using a GitHub account provided by the gh CLI. There's no separate Open Knowledge credential to disconnect."@@ -336,6 +343,7 @@"9UQ730": ["Clone"],"9bCiQ8": ["No pages are missing incoming graph links."],"9clcD5": ["Open documents tagged #", ["chip"]],+ "9dw5bW": ["Create with ", ["0"]],"9euN0m": [["count",@@ -387,7 +395,6 @@],"Aif3E7": ["Enable semantic search"],"Am78jY": ["Drag ", ["keyName"], " to reorder"],- "AoX5ld": [["folders", "plural", { "one": ["#", " folder"], "other": ["#", " folders"] }]],"AqnqMJ": ["API key set"],"ArBWJf": ["Undo last edit"],"B11p-O": ["Edit markdown link"],@@ -527,6 +534,7 @@],"FjkaiT": ["Zoom out"],"FnMkli": ["Sync disabled — you don't have permission to push"],+ "FqTpiN": ["Bird wiki"],"Fqr8BP": ["Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."],"FvMSms": ["Renaming changes the file on disk and the id agents use to pick this template."],"FvpFSZ": ["Reveal in Finder, ", ["hint"]],@@ -549,6 +557,7 @@"GQDSBN": ["Layout options"],"GUYwCr": ["Dismiss notice"],"GUpclA": ["Created if missing; reused if it exists."],+ "GUqTzn": ["Competitor research"],"GXf9hG": ["Cloning ", ["repoName"], "..."],"G_686w": ["Task List"],"G_mWXb": ["Filter languages"],@@ -561,6 +570,7 @@"GhjUB_": ["Reconnected"],"Gp_twO": ["Local path"],"GsBUCk": ["Loading settings"],+ "GubkSu": ["Use a starter pack"],"GuqOb1": ["Failed to load headings"],"Gx0VS1": ["e.g. drafts/ or *.draft.md"],"H-vDm3": ["Relaunching to install the update…"],@@ -646,6 +656,9 @@"KDuPiY": ["Uploading ", ["fileName"]],"KDw4GX": ["Try again"],"KFdXwz": ["Show panel (", ["panelShortcut"], ")"],+ "KOZud0": [+ "Build a competitor research knowledge base. Start with an overview page, then add cross-linked pages for each competitor, their products and pricing, and the sources behind every claim."+ ],"KPW5WC": ["moved template"],"KRJ6xh": ["No tags yet. Continue typing to create one."],"KWL_Ih": ["Blog post"],@@ -670,6 +683,7 @@"L-rMC9": ["Reset to default"],"L1ZE3M": ["Document statistics"],"L3CEC1": ["this item"],+ "L4Cdd9": ["or create a new file <0/>"],"L5Xu8C": ["This project is running a different, incompatible build of Open Knowledge than this app (v",["0"],@@ -683,9 +697,6 @@"LDuM35": ["Replace current match from field"],"LE7t79": ["Clone to a new folder"],"LKOLNn": ["No AI agents installed"],- "LMbgDK": [- "Start a blank file, scaffold from a template, or open this folder in your AI editor."- ],"LNum6A": [["minutes"], " min ago"],"LRgZAt": [["owner"], "/", ["name"], " already exists"],"LXdWeS": ["Medium section heading."],@@ -693,6 +704,7 @@"LYufDw": ["Failed to enable semantic search — ", ["detail"]],"Lcehxn": ["Save resolution"],"LdABLa": ["Could not open ", ["target"], ". Try opening it manually."],+ "LdKIHS": ["Draft a spec"],"LhWYpm": ["Other OK paths are tracked upstream:"],"LlHqdU": ["Initializing project"],"Llyqvo": ["This usually means one of:"],@@ -726,6 +738,7 @@"Md709y": ["Loading ", ["fileName"]],"MmDDWK": ["Recently opened"],"Mnavhe": [["propPanelDescriptorLabel"], " Properties"],+ "MqQoV-": ["Describe what you want to build, start a blank file, or scaffold from a template."],"MrwYIK": ["Toggle a source comment through CodeMirror."],"MsuXaI": ["Hide panel (", ["panelShortcut"], ")"],"N1YYa7": ["Loading image"],@@ -744,6 +757,9 @@"NSnIUP": ["Two-page (even)"],"NUr4kz": ["A reusable starting point for new documents in this folder."],"NYUhy5": ["Subfolder name"],+ "N_7kkF": [+ "Read through this codebase and draft a technical spec for the most complex module: an overview, the architecture, key files, and open questions, all linked from a specs index page."+ ],"NjrIak": ["File: <0>", ["fixedName"], ".md</0>"],"NkXEFS": ["Restore failed — document unchanged"],"NlZjSM": [@@ -824,7 +840,6 @@"Q6hhn8": ["Preferences"],"Q8A-U_": ["Connected to"],"QDZbvN": [["diffDays"], "d ago"],- "QI4KgP": [["fileLabel"], " · ", ["folderLabel"]],"QOINDn": ["empty"],"QQghPu": ["Install in Claude Desktop"],"QR5SP1": ["created template"],@@ -832,6 +847,7 @@"QcpeeE": ["Navigate to ", ["docName"]],"QlxHAH": ["Showing results for \"", ["semanticResultsLabel"], "\""],"QqBQu1": ["Label <0>(visible link text)</0>"],+ "Qvls7J": ["Eng specs"],"QyioBP": ["Move up"],"R0cyYB": [[@@ -849,6 +865,7 @@"A real shell is off for this project. Turning it on runs commands with the full access of your macOS user account."],"RDrXh4": ["Configure user, project, and integration settings."],+ "RG4XHV": ["Copy ", ["0"], " prompt"],"RGCCrg": ["Copy share link"],"RGkNeJ": ["Initialize a starter pack"],"RJ3a8Z": ["Looking for <0>", ["lookingForUrl"], "</0>."],@@ -971,7 +988,6 @@"W0i24j": ["Object"],"W1qRuM": ["This document is already active in the editor. Use Open to collapse the graph."],"W5A0Ly": ["An unexpected error occurred."],- "W8uemY": ["Pick a starter pack to scaffold folders, templates, and AI-readable rules."],"W8vpBM": ["starter pack"],"W9_Bub": ["Local changes overlap with incoming sync"],"WEzuMq": ["Create a new Open Knowledge project in the folder of your choice."],@@ -1083,7 +1099,6 @@"ZWyHmq": ["This project"],"ZhhOwV": ["Quote"],"ZjtgI-": ["Command palette"],- "ZmGmNh": ["Let's set up your project."],"Zon_qG": ["Mirror source <0>", ["label"], "</0>"],"ZptNUh": ["Show ", ["hidden"], " more"],"ZsGpr_": ["Paste link"],@@ -1210,6 +1225,7 @@"cs4mps": ["Config sharing"],"csDS2L": ["Available"],"ct2kv5": ["No headings in ", ["pageTarget"]],+ "cuA8QW": ["Organize specs"],"d2uTPx": ["Server error (HTTP ", ["status"], ")"],"d5rK4X": [["chars", "plural", { "one": ["char"], "other": ["chars"] }]],"dD7NPy": ["Outline"],@@ -1255,7 +1271,6 @@],"eVPynQ": ["Open <0><1>", ["verificationUri"], "</1><2/></0> and enter this code:"],"emgiet": ["Authoritative content; mirrored verbatim everywhere it's referenced."],- "ensWZc": ["or start from scratch <0/>"],"euc6Ns": ["Duplicate"],"evs0iw": ["Tags matching \"", ["tagListQuery"], "\""],"f1XQyZ": ["Move block"],@@ -1400,6 +1415,9 @@"jhtG3I": [" Your selection has been restored."],"jjtmV_": ["First file name"],"jol95m": ["Failed to open Project Navigator."],+ "jtg_8-": [+ "Build a knowledge wiki about the different types of flightless birds. Start with an overview page, then add cross-linked pages for each major group (ratites like ostriches, emus, and kiwis; penguins; and flightless rails), the regions they live in, and a timeline of how flightlessness evolved."+ ],"ju38ms": ["This project has no git repository — sharing mode does not apply. Initialize a repo to enable the toggle."],@@ -1473,6 +1491,9 @@"Adds the Open Knowledge skill to the <0>Claude Desktop App</0> so it's available in Chat and Cowork sessions."],"mNY1G6": ["Undo all edits"],+ "mPy9lS": [+ "Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code."+ ],"mSJ3Rn": ["Computing scaffold plan"],"mSpqzP": [[@@ -1547,6 +1568,7 @@"nrGWJ7": ["Git identity isn't set — commits use a default author. Set yours so teammates see your name."],+ "nskygk": ["Choose agent"],"nzaV6Q": ["Page thumbnails"],"o2yoFu": ["Reveal in Finder, No workspace"],"o49mDZ": ["Loading timeline history"],@@ -1632,6 +1654,7 @@"qioCwA": ["Jump to page ", ["pageNumber"]],"qjHMHf": ["Failed to disable sync — ", ["detail"]],"qo4zCg": ["Path cannot contain backslashes"],+ "qpQwGC": ["Describe what you're working on and the agent sets it up for you."],"qvWGzP": ["Collapse all"],"qvcK7S": ["Open Knowledge will create commits and push them to your remote automatically. If you do not want automatic commits in your git history, you should not enable auto-sync."@@ -1734,6 +1757,9 @@"u6Hp4N": ["Markdown"],"u7H-Wn": ["Show panel (", ["panelShortcutLabel"], ")"],"uCaIdy": ["GitHub sign-in is missing or expired. Reconnect to resume syncing."],+ "uDlyqd": [+ "Document the architecture of this repo: create an overview page that links to a page per major module describing its responsibilities and entry points."+ ],"uF9ruK": ["Saving"],"uH_S-u": [["loadErrorTitle"], ": ", ["message"]],"uKRYiW": ["Sync status unavailable — server error."],@@ -1776,6 +1802,7 @@"v7lbnC": ["Find next match"],"vDXqVv": ["Insert a markdown hard break."],"vEJDlt": ["The file is in your Trash; the file-watcher will reconcile."],+ "vGeNNQ": ["Copy a prompt and paste it into your agent to set up your project."],"vIxrEk": ["Fit width"],"vLyv1R": ["Hide"],"vPYaz3": ["Scaffold directly under this project."],@@ -1839,6 +1866,7 @@"xaDWAI": ["Switch project"],"xbdtfY": ["Markdown source"],"xc4g25": ["Parse failed"],+ "xeXS4P": ["Or use a starter pack"],"xeiujy": ["Text"],"xhlFsx": ["Inherited — set a value here to replace it."],"xiv-dW": ["No files yet."],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex cdeec4449..6e020870d 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -242,18 +242,6 @@ msgstr "{failedCount, plural, one {1 file failed to upload} other {{failedCount}msgid "{fileCount, plural, one {# file} other {# files}}"msgstr "{fileCount, plural, one {# file} other {# files}}"-#: src/components/PackCardGrid.tsx-msgid "{fileLabel} · {folderLabel}"-msgstr "{fileLabel} · {folderLabel}"--#: src/components/PackCardGrid.tsx-msgid "{files, plural, one {# file} other {# files}}"-msgstr "{files, plural, one {# file} other {# files}}"--#: src/components/PackCardGrid.tsx-msgid "{folders, plural, one {# folder} other {# folders}}"-msgstr "{folders, plural, one {# folder} other {# folders}}"-#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx#: src/components/SyncStatusBadge.tsx@@ -464,6 +452,10 @@ msgstr "A reusable starting point for new documents in this folder."msgid "A short line shown under the name in the template list."msgstr "A short line shown under the name in the template list."+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "A team knowledge base, a personal wiki, project docs..."+msgstr "A team knowledge base, a personal wiki, project docs..."+#: src/components/TemplateForm.tsxmsgid "A template named <0>{trimmedSlug}</0> already exists here. Saving creates a local copy that overrides it for this folder."msgstr "A template named <0>{trimmedSlug}</0> already exists here. Saving creates a local copy that overrides it for this folder."@@ -777,6 +769,10 @@ msgstr "Beta channel"msgid "Big section heading."msgstr "Big section heading."+#: src/components/empty-state/use-create-suggestions.ts+msgid "Bird wiki"+msgstr "Bird wiki"+#: src/components/NewItemDialog.tsxmsgid "Blank note"msgstr "Blank note"@@ -851,6 +847,14 @@ msgstr "Browse"msgid "Browse your repos:"msgstr "Browse your repos:"+#: src/components/empty-state/use-create-suggestions.ts+msgid "Build a competitor research knowledge base. Start with an overview page, then add cross-linked pages for each competitor, their products and pricing, and the sources behind every claim."+msgstr "Build a competitor research knowledge base. Start with an overview page, then add cross-linked pages for each competitor, their products and pricing, and the sources behind every claim."++#: src/components/empty-state/use-create-suggestions.ts+msgid "Build a knowledge wiki about the different types of flightless birds. Start with an overview page, then add cross-linked pages for each major group (ratites like ostriches, emus, and kiwis; penguins; and flightless rails), the regions they live in, and a timeline of how flightlessness evolved."+msgstr "Build a knowledge wiki about the different types of flightless birds. Start with an overview page, then add cross-linked pages for each major group (ratites like ostriches, emus, and kiwis; penguins; and flightless rails), the regions they live in, and a timeline of how flightlessness evolved."+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Building <0>openknowledge.skill</0> and opening the Claude Desktop App"msgstr "Building <0>openknowledge.skill</0> and opening the Claude Desktop App"@@ -943,6 +947,10 @@ msgstr "Checking..."msgid "Checklist with checkboxes."msgstr "Checklist with checkboxes."+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "Choose agent"+msgstr "Choose agent"+#: src/components/settings/SharingSection.tsxmsgid "Choose whether this project's Open Knowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."msgstr "Choose whether this project's Open Knowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."@@ -1170,6 +1178,10 @@ msgstr "Commit or stash changes to switch:"msgid "Commits happen automatically"msgstr "Commits happen automatically"+#: src/components/empty-state/use-create-suggestions.ts+msgid "Competitor research"+msgstr "Competitor research"+#: src/components/CloneDialog.tsxmsgid "Complete"msgstr "Complete"@@ -1306,6 +1318,7 @@ msgstr "Convert selection to footnote"msgid "Convert the current block to a paragraph."msgstr "Convert the current block to a paragraph."+#: src/components/empty-state/CopyablePromptList.tsx#: src/components/InstallInClaudeDesktopDialog.tsx#: src/editor/extensions/CodeBlockView.tsxmsgid "Copied"@@ -1321,10 +1334,24 @@ msgstr "Copied full path"msgid "Copied relative path"msgstr "Copied relative path"+#: src/components/empty-state/CopyablePromptList.tsx#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Copy"msgstr "Copy"+#. placeholder {0}: suggestion.label+#: src/components/empty-state/CopyablePromptList.tsx+msgid "Copy {0} prompt"+msgstr "Copy {0} prompt"++#: src/components/EmptyEditorState.tsx+msgid "Copy a prompt and paste it into your agent to set up your project."+msgstr "Copy a prompt and paste it into your agent to set up your project."++#: src/components/empty-state/CreateView.tsx+msgid "Copy a prompt for your agent, start a blank file, or scaffold from a template."+msgstr "Copy a prompt for your agent, start a blank file, or scaffold from a template."+#: src/editor/extensions/CodeBlockView.tsxmsgid "Copy code"msgstr "Copy code"@@ -1598,6 +1625,7 @@ msgid "Counting markdown files"msgstr "Counting markdown files"#: src/components/CreateProjectDialog.tsx+#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/NewItemDialog.tsx#: src/components/TemplateRow.tsxmsgid "Create"@@ -1646,6 +1674,11 @@ msgstr "Create something great."msgid "Create template"msgstr "Create template"+#. placeholder {0}: getDisplayNameDefault(selectedAgentId)+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "Create with {0}"+msgstr "Create with {0}"+#: src/components/FileTree.tsxmsgid "Create your first file"msgstr "Create your first file"@@ -1756,6 +1789,18 @@ msgstr "deleted template"msgid "Deleting"msgstr "Deleting"+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "Describe the project you want to create"+msgstr "Describe the project you want to create"++#: src/components/empty-state/CreateView.tsx+msgid "Describe what you want to build, start a blank file, or scaffold from a template."+msgstr "Describe what you want to build, start a blank file, or scaffold from a template."++#: src/components/EmptyEditorState.tsx+msgid "Describe what you're working on and the agent sets it up for you."+msgstr "Describe what you're working on and the agent sets it up for you."+#: src/components/TemplateForm.tsxmsgid "Description"msgstr "Description"@@ -1857,6 +1902,10 @@ msgstr "Document panels"msgid "Document statistics"msgstr "Document statistics"+#: src/components/empty-state/use-create-suggestions.ts+msgid "Document the architecture of this repo: create an overview page that links to a page per major module describing its responsibilities and entry points."+msgstr "Document the architecture of this repo: create an overview page that links to a page per major module describing its responsibilities and entry points."+#: src/components/HelpPopover.tsxmsgid "Documentation"msgstr "Documentation"@@ -1892,6 +1941,14 @@ msgstr "Download started"msgid "Downloads {shareOwner}/{shareRepo} from GitHub."msgstr "Downloads {shareOwner}/{shareRepo} from GitHub."+#: src/components/empty-state/use-create-suggestions.ts+msgid "Draft a spec"+msgstr "Draft a spec"++#: src/components/empty-state/use-create-suggestions.ts+msgid "Draft a technical spec for my project. Start with an overview, then add cross-linked pages for the architecture, the key modules, and the open questions, all linked from a specs index."+msgstr "Draft a technical spec for my project. Start with an overview, then add cross-linked pages for the architecture, the key modules, and the open questions, all linked from a specs index."+#: src/components/FrontmatterRow.tsxmsgid "Drag {keyName} to reorder"msgstr "Drag {keyName} to reorder"@@ -2085,6 +2142,10 @@ msgstr "Enable terminal for this project"msgid "Ended"msgstr "Ended"+#: src/components/empty-state/use-create-suggestions.ts+msgid "Eng specs"+msgstr "Eng specs"+#: src/components/SeedDialog.tsxmsgid "Enter a folder name (e.g. brain)."msgstr "Enter a folder name (e.g. brain)."@@ -2891,6 +2952,10 @@ msgstr "Install"msgid "Install {brand} →"msgstr "Install {brand} →"+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "Install an AI agent to create with AI"+msgstr "Install an AI agent to create with AI"+#. Dialog title — installing the Open Knowledge skill into the Claude Desktop App#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Install for Claude Chat & Cowork"@@ -3001,10 +3066,6 @@ msgstr "Layout options"msgid "Let Tab leave the source editor instead of indenting."msgstr "Let Tab leave the source editor instead of indenting."-#: src/components/EmptyEditorState.tsx-msgid "Let's set up your project."-msgstr "Let's set up your project."-#: src/components/settings/SettingsDialogBody.tsxmsgid "Light, dark, or follow the OS."msgstr "Light, dark, or follow the OS."@@ -3196,6 +3257,10 @@ msgstr "Manage hidden files in Settings → Ignore patterns."msgid "Manage the GitHub account Open Knowledge uses to browse and sync your repositories."msgstr "Manage the GitHub account Open Knowledge uses to browse and sync your repositories."+#: src/components/empty-state/use-create-suggestions.ts+msgid "Map the architecture"+msgstr "Map the architecture"+#: src/editor/slash-command/component-items.tsxmsgid "Mark a block as the source of truth. Mirror references elsewhere render this content read-only and update live as you edit here."msgstr "Mark a block as the source of truth. Mirror references elsewhere render this content read-only and update live as you edit here."@@ -3406,7 +3471,6 @@ msgid "New"msgstr "New"#: src/components/CommandPalette.tsx-#: src/components/empty-state/CreateView.tsx#: src/components/FileSidebar.tsx#: src/components/FileTree.tsx#: src/components/NewItemDialog.tsx@@ -4013,9 +4077,14 @@ msgstr "Opens a folder picker to choose where to clone the repository."msgid "Opens in a new tab"msgstr "Opens in a new tab"+#: src/components/empty-state/CreateView.tsx+#: src/components/EmptyEditorState.tsx+msgid "or create a new file <0/>"+msgstr "or create a new file <0/>"+#: src/components/EmptyEditorState.tsx-msgid "or start from scratch <0/>"-msgstr "or start from scratch <0/>"+msgid "Or use a starter pack"+msgstr "Or use a starter pack"#: src/lib/keyboard-shortcuts.tsmsgid "Ordered list"@@ -4025,6 +4094,14 @@ msgstr "Ordered list"msgid "Ordered List"msgstr "Ordered List"+#: src/components/empty-state/use-create-suggestions.ts+msgid "Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code."+msgstr "Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code."++#: src/components/empty-state/use-create-suggestions.ts+msgid "Organize specs"+msgstr "Organize specs"+#: src/components/GraphPanel.tsxmsgid "Orphan mode"msgstr "Orphan mode"@@ -4192,10 +4269,6 @@ msgstr "Pick a layout that matches what you're building. Each pack ships with fomsgid "Pick a name"msgstr "Pick a name"-#: src/components/EmptyEditorState.tsx-msgid "Pick a starter pack to scaffold folders, templates, and AI-readable rules."-msgstr "Pick a starter pack to scaffold folders, templates, and AI-readable rules."-#: src/components/ShareReceiveDialog.tsxmsgid "Pick the folder where you've cloned it."msgstr "Pick the folder where you've cloned it."@@ -4359,6 +4432,10 @@ msgstr "Quote"msgid "Re-authenticate with GitHub"msgstr "Re-authenticate with GitHub"+#: src/components/empty-state/use-create-suggestions.ts+msgid "Read through this codebase and draft a technical spec for the most complex module: an overview, the architecture, key files, and open questions, all linked from a specs index page."+msgstr "Read through this codebase and draft a technical spec for the most complex module: an overview, the architecture, key files, and open questions, all linked from a specs index page."+#: src/editor/slash-command/component-items.tsxmsgid "Read-only copy of a MirrorSource block from another doc. Edit at the source — every Mirror reflects the change live."msgstr "Read-only copy of a MirrorSource block from another doc. Edit at the source — every Mirror reflects the change live."@@ -4750,7 +4827,6 @@ msgid "Scope: "msgstr "Scope: "#: src/components/CommandPalette.tsx-#: src/components/empty-state/KeyboardHintsFooter.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/SidebarSearchBar.tsx#: src/lib/keyboard-shortcuts.ts@@ -5185,10 +5261,6 @@ msgstr "Split list item"msgid "Start"msgstr "Start"-#: src/components/empty-state/CreateView.tsx-msgid "Start a blank file, scaffold from a template, or open this folder in your AI editor."-msgstr "Start a blank file, scaffold from a template, or open this folder in your AI editor."-#: src/components/NavigatorApp.tsxmsgid "Start a new Open Knowledge project."msgstr "Start a new Open Knowledge project."@@ -5945,6 +6017,10 @@ msgstr "Upstream sync"msgid "Use a folder you already have."msgstr "Use a folder you already have."+#: src/components/EmptyEditorState.tsx+msgid "Use a starter pack"+msgstr "Use a starter pack"+#: src/components/ShareButton.tsxmsgid "Use Cmd/Ctrl+C to copy the link below, or open OK in the desktop app."msgstr "Use Cmd/Ctrl+C to copy the link below, or open OK in the desktop app."@@ -6046,6 +6122,10 @@ msgstr "What is this knowledge base for?"msgid "What should the AI do? (optional)"msgstr "What should the AI do? (optional)"+#: src/components/EmptyEditorState.tsx+msgid "What would you like to create?"+msgstr "What would you like to create?"+#: src/components/settings/SettingsDialogBody.tsxmsgid "When enabled, the agent opens or refreshes the preview after each edit. Disable if you manage your own preview window (OK Desktop, a browser tab on another display, etc.)."msgstr "When enabled, the agent opens or refreshes the preview after each edit. Disable if you manage your own preview window (OK Desktop, a browser tab on another display, etc.)."@@ -6078,10 +6158,6 @@ msgstr "Will be saved as <0>{sanitized}</0>."msgid "Will replace existing Open Knowledge entry"msgstr "Will replace existing Open Knowledge entry"-#: src/components/empty-state/CreateView.tsx-msgid "With AI"-msgstr "With AI"-#: src/components/settings/SettingsDialogBody.tsxmsgid "Word wrap"msgstr "Word wrap"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex d9bc7e4de..8f6069ece 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -45,6 +45,7 @@["targetLabel"]],"0eHrMb": ["Ćōũĺď ńōţ ćōḿƥĺēţē ďēĺēţē"],+ "0jD-Gn": ["À ţēàḿ ķńōŵĺēďĝē ƀàśē, à ƥēŕśōńàĺ ŵĩķĩ, ƥŕōĴēćţ ďōćś..."],"0kTAXe": ["Ōƥēń śōũŕćē: ", ["mirrorSrc"]],"0njBIq": ["Śēţũƥ ƒĩĺēś ĩńćĺũďē: <0>.ōķ/</0>, ÀĨ-ţōōĺ ḾĆƤ ćōńƒĩĝś (<1>.ḿćƥ.Ĵśōń</1> àńď ƥēŕ-ţōōĺ ƒĩĺēś), ƥŕōĴēćţ śķĩĺĺś, àńď <2>.ćĺàũďē/ĺàũńćĥ.Ĵśōń</2>.<3/><4>Śĥàŕēď</4> ćōḿḿĩţś ţĥēḿ ţō ĝĩţ, śō àńŷōńē ŵĥō ćĺōńēś ţĥē ŕēƥō ĝēţś ţĥē śàḿē śēţũƥ. <5/><6>Ĺōćàĺ ōńĺŷ</6> ķēēƥś ţĥēḿ ōũţ ōƒ ĝĩţ (vĩà <7>.ĝĩţ/ĩńƒō/ēxćĺũďē</7>)."@@ -80,7 +81,6 @@"2277Tu": ["Ćōĺĺàƥśē ĝŕàƥĥ"],"237hSL": ["Ēńďēď"],"25Pw6a": ["Ćĺōńĩńĝ"],- "27ANM6": ["Ŵĩţĥ ÀĨ"],"27XW26": ["Ćĺōńē ĥàƥƥēńś ĩń ţĥē ƤŕōĴēćţ Ńàvĩĝàţōŕ. Ŕēćĺĩćķ ţĥē śĥàŕē ĺĩńķ ţĥēŕē."],"29VNqC": ["Ũńķńōŵń ēŕŕōŕ"],"29XZXN": ["Śēţ ĝĩţ ĩďēńţĩţŷ"],@@ -110,9 +110,11 @@"36WXSC": ["Ćōũĺďń'ţ ďēĺēţē ţēḿƥĺàţē: ", ["error"]],"379t2h": ["Ũńĩƒĩēď ďĩƒƒ"],"38foVZ": ["Ĺōàďĩńĝ ďĩƒƒ"],+ "3DTatP": ["Ćōƥŷ à ƥŕōḿƥţ ƒōŕ ŷōũŕ àĝēńţ, śţàŕţ à ƀĺàńķ ƒĩĺē, ōŕ śćàƒƒōĺď ƒŕōḿ à ţēḿƥĺàţē."],"3Fcb0I": ["Ōƥēń ĝŕàƥĥ"],"3HNlwb": ["Ĥēĺĺō, ŵōŕĺď!"],"3Ib6FN": ["Ḿōvē ďōŵń"],+ "3IseAk": ["Ĩńśţàĺĺ àń ÀĨ àĝēńţ ţō ćŕēàţē ŵĩţĥ ÀĨ"],"3J7d2N": ["ßĩĝ śēćţĩōń ĥēàďĩńĝ."],"3JYy1p": ["ßŕàńćĥ ", ["0"], " ńō ĺōńĝēŕ ēxĩśţś. Ćĺōńēď ţō ďēƒàũĺţ ƀŕàńćĥ."],"3MnvrL": ["Śĥōŵĩńĝ ţōƥ ", ["0"], " ḿàţćĥēś — ķēēƥ ţŷƥĩńĝ ţō ńàŕŕōŵ"],@@ -156,7 +158,6 @@"4TzU0n": ["Ĩńĩţĩàĺĩźē"],"4buZWd": ["Ĩńĥēŕĩţēď ƒŕōḿ ", ["path"]],"4c_a6S": ["Ńōţĥĩńĝ śēţ ŷēţ."],- "4etMqs": [["files", "plural", { "one": ["#", " ƒĩĺē"], "other": ["#", " ƒĩĺēś"] }]],"4g19V6": ["Ƒàĩĺēď ţō ũƥďàţē ƥŕōƥēŕţŷ"],"4hJhzz": ["Ţàƀĺē"],"4jDd0j": ["Àńŷōńē ćàń śēē"],@@ -252,13 +253,18 @@"6caB2T": ["Ćōńńēćţ àń ēxĩśţĩńĝ ŕēƥōśĩţōŕŷ"],"6cuT_1": ["Ōƥēń ďàţē ƥĩćķēŕ ƒōŕ ", ["keyName"]],"6cyguR": ["Ćōńńēćţ ĜĩţĤũƀ ţō ćōńţĩńũē."],+ "6eniID": ["Ḿàƥ ţĥē àŕćĥĩţēćţũŕē"],"6fGjTz": ["Śĥōŵ ƒēŵēŕ"],"6gRgw8": ["Ŕēţŕŷ"],+ "6h4zVU": ["Ŵĥàţ ŵōũĺď ŷōũ ĺĩķē ţō ćŕēàţē?"],"6hfDJr": ["Śēŕvēŕ ēŕŕōŕ: ", ["status"]],"6ibbCg": ["Ćŕēàţē ŷōũŕ ƒĩŕśţ ƒĩĺē"],"6ki7F2": [["0", "plural", { "one": ["#", " ĩţēḿ"], "other": ["#", " ĩţēḿś"] }]],"6m_7We": ["Ōƥēń ţĥĩś śēţţĩńĝś ďĩàĺōĝ."],"6q0rnH": ["ŵŕĩţĩńĝ"],+ "6qMe0o": [+ "Ďŕàƒţ à ţēćĥńĩćàĺ śƥēć ƒōŕ ḿŷ ƥŕōĴēćţ. Śţàŕţ ŵĩţĥ àń ōvēŕvĩēŵ, ţĥēń àďď ćŕōśś-ĺĩńķēď ƥàĝēś ƒōŕ ţĥē àŕćĥĩţēćţũŕē, ţĥē ķēŷ ḿōďũĺēś, àńď ţĥē ōƥēń ǫũēśţĩōńś, àĺĺ ĺĩńķēď ƒŕōḿ à śƥēćś ĩńďēx."+ ],"6s7LXO": ["Ĥēàďś ũƥ"],"6u9LvN": [["days", "plural", { "one": ["#", " ďàŷ àĝō"], "other": ["#", " ďàŷś àĝō"] }]],"6vEr3W": ["Ĺĩńķ ţàŕĝēţ"],@@ -277,6 +283,7 @@"7PzzBU": ["Ũśēŕ"],"7_bFEL": ["Ďŕàĝ ", ["patternText"], " ţō ŕēōŕďēŕ"],"7d1a0d": ["Ƥũƀĺĩć"],+ "7hctf2": ["Ďēśćŕĩƀē ţĥē ƥŕōĴēćţ ŷōũ ŵàńţ ţō ćŕēàţē"],"7kdoVR": ["Ōƥēń ţĥē Ōƥēń ŵĩţĥ ÀĨ ḿēńũ ƒōŕ ţĥē ćũŕŕēńţ ēďĩţōŕ śēĺēćţĩōń."],"7nrKys": ["Ōƥēń Ķńōŵĺēďĝē ĩś ũśĩńĝ à ĜĩţĤũƀ àććōũńţ ƥŕōvĩďēď ƀŷ ţĥē ĝĥ ĆĹĨ. Ţĥēŕē'ś ńō śēƥàŕàţē Ōƥēń Ķńōŵĺēďĝē ćŕēďēńţĩàĺ ţō ďĩśćōńńēćţ."@@ -336,6 +343,7 @@"9UQ730": ["Ćĺōńē"],"9bCiQ8": ["Ńō ƥàĝēś àŕē ḿĩśśĩńĝ ĩńćōḿĩńĝ ĝŕàƥĥ ĺĩńķś."],"9clcD5": ["Ōƥēń ďōćũḿēńţś ţàĝĝēď #", ["chip"]],+ "9dw5bW": ["Ćŕēàţē ŵĩţĥ ", ["0"]],"9euN0m": [["count",@@ -387,7 +395,6 @@],"Aif3E7": ["Ēńàƀĺē śēḿàńţĩć śēàŕćĥ"],"Am78jY": ["Ďŕàĝ ", ["keyName"], " ţō ŕēōŕďēŕ"],- "AoX5ld": [["folders", "plural", { "one": ["#", " ƒōĺďēŕ"], "other": ["#", " ƒōĺďēŕś"] }]],"AqnqMJ": ["ÀƤĨ ķēŷ śēţ"],"ArBWJf": ["Ũńďō ĺàśţ ēďĩţ"],"B11p-O": ["Ēďĩţ ḿàŕķďōŵń ĺĩńķ"],@@ -527,6 +534,7 @@],"FjkaiT": ["Źōōḿ ōũţ"],"FnMkli": ["Śŷńć ďĩśàƀĺēď — ŷōũ ďōń'ţ ĥàvē ƥēŕḿĩśśĩōń ţō ƥũśĥ"],+ "FqTpiN": ["ßĩŕď ŵĩķĩ"],"Fqr8BP": ["Ḿũĺţĩ-ƥàĝē ƤĎƑ vĩēŵēŕ ŵĩţĥ ţōōĺƀàŕ ćōńţŕōĺś (ţĥũḿƀńàĩĺś, ƥàĝē ńàv, źōōḿ)."],"FvMSms": ["Ŕēńàḿĩńĝ ćĥàńĝēś ţĥē ƒĩĺē ōń ďĩśķ àńď ţĥē ĩď àĝēńţś ũśē ţō ƥĩćķ ţĥĩś ţēḿƥĺàţē."],"FvpFSZ": ["Ŕēvēàĺ ĩń Ƒĩńďēŕ, ", ["hint"]],@@ -549,6 +557,7 @@"GQDSBN": ["Ĺàŷōũţ ōƥţĩōńś"],"GUYwCr": ["Ďĩśḿĩśś ńōţĩćē"],"GUpclA": ["Ćŕēàţēď ĩƒ ḿĩśśĩńĝ; ŕēũśēď ĩƒ ĩţ ēxĩśţś."],+ "GUqTzn": ["Ćōḿƥēţĩţōŕ ŕēśēàŕćĥ"],"GXf9hG": ["Ćĺōńĩńĝ ", ["repoName"], "..."],"G_686w": ["Ţàśķ Ĺĩśţ"],"G_mWXb": ["Ƒĩĺţēŕ ĺàńĝũàĝēś"],@@ -561,6 +570,7 @@"GhjUB_": ["Ŕēćōńńēćţēď"],"Gp_twO": ["Ĺōćàĺ ƥàţĥ"],"GsBUCk": ["Ĺōàďĩńĝ śēţţĩńĝś"],+ "GubkSu": ["Ũśē à śţàŕţēŕ ƥàćķ"],"GuqOb1": ["Ƒàĩĺēď ţō ĺōàď ĥēàďĩńĝś"],"Gx0VS1": ["ē.ĝ. ďŕàƒţś/ ōŕ *.ďŕàƒţ.ḿď"],"H-vDm3": ["Ŕēĺàũńćĥĩńĝ ţō ĩńśţàĺĺ ţĥē ũƥďàţē…"],@@ -646,6 +656,9 @@"KDuPiY": ["Ũƥĺōàďĩńĝ ", ["fileName"]],"KDw4GX": ["Ţŕŷ àĝàĩń"],"KFdXwz": ["Śĥōŵ ƥàńēĺ (", ["panelShortcut"], ")"],+ "KOZud0": [+ "ßũĩĺď à ćōḿƥēţĩţōŕ ŕēśēàŕćĥ ķńōŵĺēďĝē ƀàśē. Śţàŕţ ŵĩţĥ àń ōvēŕvĩēŵ ƥàĝē, ţĥēń àďď ćŕōśś-ĺĩńķēď ƥàĝēś ƒōŕ ēàćĥ ćōḿƥēţĩţōŕ, ţĥēĩŕ ƥŕōďũćţś àńď ƥŕĩćĩńĝ, àńď ţĥē śōũŕćēś ƀēĥĩńď ēvēŕŷ ćĺàĩḿ."+ ],"KPW5WC": ["ḿōvēď ţēḿƥĺàţē"],"KRJ6xh": ["Ńō ţàĝś ŷēţ. Ćōńţĩńũē ţŷƥĩńĝ ţō ćŕēàţē ōńē."],"KWL_Ih": ["ßĺōĝ ƥōśţ"],@@ -670,6 +683,7 @@"L-rMC9": ["Ŕēśēţ ţō ďēƒàũĺţ"],"L1ZE3M": ["Ďōćũḿēńţ śţàţĩśţĩćś"],"L3CEC1": ["ţĥĩś ĩţēḿ"],+ "L4Cdd9": ["ōŕ ćŕēàţē à ńēŵ ƒĩĺē <0/>"],"L5Xu8C": ["Ţĥĩś ƥŕōĴēćţ ĩś ŕũńńĩńĝ à ďĩƒƒēŕēńţ, ĩńćōḿƥàţĩƀĺē ƀũĩĺď ōƒ Ōƥēń Ķńōŵĺēďĝē ţĥàń ţĥĩś àƥƥ (v",["0"],@@ -683,9 +697,6 @@"LDuM35": ["Ŕēƥĺàćē ćũŕŕēńţ ḿàţćĥ ƒŕōḿ ƒĩēĺď"],"LE7t79": ["Ćĺōńē ţō à ńēŵ ƒōĺďēŕ"],"LKOLNn": ["Ńō ÀĨ àĝēńţś ĩńśţàĺĺēď"],- "LMbgDK": [- "Śţàŕţ à ƀĺàńķ ƒĩĺē, śćàƒƒōĺď ƒŕōḿ à ţēḿƥĺàţē, ōŕ ōƥēń ţĥĩś ƒōĺďēŕ ĩń ŷōũŕ ÀĨ ēďĩţōŕ."- ],"LNum6A": [["minutes"], " ḿĩń àĝō"],"LRgZAt": [["owner"], "/", ["name"], " àĺŕēàďŷ ēxĩśţś"],"LXdWeS": ["Ḿēďĩũḿ śēćţĩōń ĥēàďĩńĝ."],@@ -693,6 +704,7 @@"LYufDw": ["Ƒàĩĺēď ţō ēńàƀĺē śēḿàńţĩć śēàŕćĥ — ", ["detail"]],"Lcehxn": ["Śàvē ŕēśōĺũţĩōń"],"LdABLa": ["Ćōũĺď ńōţ ōƥēń ", ["target"], ". Ţŕŷ ōƥēńĩńĝ ĩţ ḿàńũàĺĺŷ."],+ "LdKIHS": ["Ďŕàƒţ à śƥēć"],"LhWYpm": ["Ōţĥēŕ ŌĶ ƥàţĥś àŕē ţŕàćķēď ũƥśţŕēàḿ:"],"LlHqdU": ["Ĩńĩţĩàĺĩźĩńĝ ƥŕōĴēćţ"],"Llyqvo": ["Ţĥĩś ũśũàĺĺŷ ḿēàńś ōńē ōƒ:"],@@ -726,6 +738,7 @@"Md709y": ["Ĺōàďĩńĝ ", ["fileName"]],"MmDDWK": ["Ŕēćēńţĺŷ ōƥēńēď"],"Mnavhe": [["propPanelDescriptorLabel"], " Ƥŕōƥēŕţĩēś"],+ "MqQoV-": ["Ďēśćŕĩƀē ŵĥàţ ŷōũ ŵàńţ ţō ƀũĩĺď, śţàŕţ à ƀĺàńķ ƒĩĺē, ōŕ śćàƒƒōĺď ƒŕōḿ à ţēḿƥĺàţē."],"MrwYIK": ["Ţōĝĝĺē à śōũŕćē ćōḿḿēńţ ţĥŕōũĝĥ ĆōďēḾĩŕŕōŕ."],"MsuXaI": ["Ĥĩďē ƥàńēĺ (", ["panelShortcut"], ")"],"N1YYa7": ["Ĺōàďĩńĝ ĩḿàĝē"],@@ -744,6 +757,9 @@"NSnIUP": ["Ţŵō-ƥàĝē (ēvēń)"],"NUr4kz": ["À ŕēũśàƀĺē śţàŕţĩńĝ ƥōĩńţ ƒōŕ ńēŵ ďōćũḿēńţś ĩń ţĥĩś ƒōĺďēŕ."],"NYUhy5": ["Śũƀƒōĺďēŕ ńàḿē"],+ "N_7kkF": [+ "Ŕēàď ţĥŕōũĝĥ ţĥĩś ćōďēƀàśē àńď ďŕàƒţ à ţēćĥńĩćàĺ śƥēć ƒōŕ ţĥē ḿōśţ ćōḿƥĺēx ḿōďũĺē: àń ōvēŕvĩēŵ, ţĥē àŕćĥĩţēćţũŕē, ķēŷ ƒĩĺēś, àńď ōƥēń ǫũēśţĩōńś, àĺĺ ĺĩńķēď ƒŕōḿ à śƥēćś ĩńďēx ƥàĝē."+ ],"NjrIak": ["Ƒĩĺē: <0>", ["fixedName"], ".ḿď</0>"],"NkXEFS": ["Ŕēśţōŕē ƒàĩĺēď — ďōćũḿēńţ ũńćĥàńĝēď"],"NlZjSM": [@@ -824,7 +840,6 @@"Q6hhn8": ["Ƥŕēƒēŕēńćēś"],"Q8A-U_": ["Ćōńńēćţēď ţō"],"QDZbvN": [["diffDays"], "ď àĝō"],- "QI4KgP": [["fileLabel"], " · ", ["folderLabel"]],"QOINDn": ["ēḿƥţŷ"],"QQghPu": ["Ĩńśţàĺĺ ĩń Ćĺàũďē Ďēśķţōƥ"],"QR5SP1": ["ćŕēàţēď ţēḿƥĺàţē"],@@ -832,6 +847,7 @@"QcpeeE": ["Ńàvĩĝàţē ţō ", ["docName"]],"QlxHAH": ["Śĥōŵĩńĝ ŕēśũĺţś ƒōŕ \"", ["semanticResultsLabel"], "\""],"QqBQu1": ["Ĺàƀēĺ <0>(vĩśĩƀĺē ĺĩńķ ţēxţ)</0>"],+ "Qvls7J": ["Ēńĝ śƥēćś"],"QyioBP": ["Ḿōvē ũƥ"],"R0cyYB": [[@@ -849,6 +865,7 @@"À ŕēàĺ śĥēĺĺ ĩś ōƒƒ ƒōŕ ţĥĩś ƥŕōĴēćţ. Ţũŕńĩńĝ ĩţ ōń ŕũńś ćōḿḿàńďś ŵĩţĥ ţĥē ƒũĺĺ àććēśś ōƒ ŷōũŕ ḿàćŌŚ ũśēŕ àććōũńţ."],"RDrXh4": ["Ćōńƒĩĝũŕē ũśēŕ, ƥŕōĴēćţ, àńď ĩńţēĝŕàţĩōń śēţţĩńĝś."],+ "RG4XHV": ["Ćōƥŷ ", ["0"], " ƥŕōḿƥţ"],"RGCCrg": ["Ćōƥŷ śĥàŕē ĺĩńķ"],"RGkNeJ": ["Ĩńĩţĩàĺĩźē à śţàŕţēŕ ƥàćķ"],"RJ3a8Z": ["Ĺōōķĩńĝ ƒōŕ <0>", ["lookingForUrl"], "</0>."],@@ -971,7 +988,6 @@"W0i24j": ["ŌƀĴēćţ"],"W1qRuM": ["Ţĥĩś ďōćũḿēńţ ĩś àĺŕēàďŷ àćţĩvē ĩń ţĥē ēďĩţōŕ. Ũśē Ōƥēń ţō ćōĺĺàƥśē ţĥē ĝŕàƥĥ."],"W5A0Ly": ["Àń ũńēxƥēćţēď ēŕŕōŕ ōććũŕŕēď."],- "W8uemY": ["Ƥĩćķ à śţàŕţēŕ ƥàćķ ţō śćàƒƒōĺď ƒōĺďēŕś, ţēḿƥĺàţēś, àńď ÀĨ-ŕēàďàƀĺē ŕũĺēś."],"W8vpBM": ["śţàŕţēŕ ƥàćķ"],"W9_Bub": ["Ĺōćàĺ ćĥàńĝēś ōvēŕĺàƥ ŵĩţĥ ĩńćōḿĩńĝ śŷńć"],"WEzuMq": ["Ćŕēàţē à ńēŵ Ōƥēń Ķńōŵĺēďĝē ƥŕōĴēćţ ĩń ţĥē ƒōĺďēŕ ōƒ ŷōũŕ ćĥōĩćē."],@@ -1083,7 +1099,6 @@"ZWyHmq": ["Ţĥĩś ƥŕōĴēćţ"],"ZhhOwV": ["Ǫũōţē"],"ZjtgI-": ["Ćōḿḿàńď ƥàĺēţţē"],- "ZmGmNh": ["Ĺēţ'ś śēţ ũƥ ŷōũŕ ƥŕōĴēćţ."],"Zon_qG": ["Ḿĩŕŕōŕ śōũŕćē <0>", ["label"], "</0>"],"ZptNUh": ["Śĥōŵ ", ["hidden"], " ḿōŕē"],"ZsGpr_": ["Ƥàśţē ĺĩńķ"],@@ -1210,6 +1225,7 @@"cs4mps": ["Ćōńƒĩĝ śĥàŕĩńĝ"],"csDS2L": ["Àvàĩĺàƀĺē"],"ct2kv5": ["Ńō ĥēàďĩńĝś ĩń ", ["pageTarget"]],+ "cuA8QW": ["Ōŕĝàńĩźē śƥēćś"],"d2uTPx": ["Śēŕvēŕ ēŕŕōŕ (ĤŢŢƤ ", ["status"], ")"],"d5rK4X": [["chars", "plural", { "one": ["ćĥàŕ"], "other": ["ćĥàŕś"] }]],"dD7NPy": ["Ōũţĺĩńē"],@@ -1255,7 +1271,6 @@],"eVPynQ": ["Ōƥēń <0><1>", ["verificationUri"], "</1><2/></0> àńď ēńţēŕ ţĥĩś ćōďē:"],"emgiet": ["Àũţĥōŕĩţàţĩvē ćōńţēńţ; ḿĩŕŕōŕēď vēŕƀàţĩḿ ēvēŕŷŵĥēŕē ĩţ'ś ŕēƒēŕēńćēď."],- "ensWZc": ["ōŕ śţàŕţ ƒŕōḿ śćŕàţćĥ <0/>"],"euc6Ns": ["Ďũƥĺĩćàţē"],"evs0iw": ["Ţàĝś ḿàţćĥĩńĝ \"", ["tagListQuery"], "\""],"f1XQyZ": ["Ḿōvē ƀĺōćķ"],@@ -1400,6 +1415,9 @@"jhtG3I": [" Ŷōũŕ śēĺēćţĩōń ĥàś ƀēēń ŕēśţōŕēď."],"jjtmV_": ["Ƒĩŕśţ ƒĩĺē ńàḿē"],"jol95m": ["Ƒàĩĺēď ţō ōƥēń ƤŕōĴēćţ Ńàvĩĝàţōŕ."],+ "jtg_8-": [+ "ßũĩĺď à ķńōŵĺēďĝē ŵĩķĩ àƀōũţ ţĥē ďĩƒƒēŕēńţ ţŷƥēś ōƒ ƒĺĩĝĥţĺēśś ƀĩŕďś. Śţàŕţ ŵĩţĥ àń ōvēŕvĩēŵ ƥàĝē, ţĥēń àďď ćŕōśś-ĺĩńķēď ƥàĝēś ƒōŕ ēàćĥ ḿàĴōŕ ĝŕōũƥ (ŕàţĩţēś ĺĩķē ōśţŕĩćĥēś, ēḿũś, àńď ķĩŵĩś; ƥēńĝũĩńś; àńď ƒĺĩĝĥţĺēśś ŕàĩĺś), ţĥē ŕēĝĩōńś ţĥēŷ ĺĩvē ĩń, àńď à ţĩḿēĺĩńē ōƒ ĥōŵ ƒĺĩĝĥţĺēśśńēśś ēvōĺvēď."+ ],"ju38ms": ["Ţĥĩś ƥŕōĴēćţ ĥàś ńō ĝĩţ ŕēƥōśĩţōŕŷ — śĥàŕĩńĝ ḿōďē ďōēś ńōţ àƥƥĺŷ. Ĩńĩţĩàĺĩźē à ŕēƥō ţō ēńàƀĺē ţĥē ţōĝĝĺē."],@@ -1473,6 +1491,9 @@"Àďďś ţĥē Ōƥēń Ķńōŵĺēďĝē śķĩĺĺ ţō ţĥē <0>Ćĺàũďē Ďēśķţōƥ Àƥƥ</0> śō ĩţ'ś àvàĩĺàƀĺē ĩń Ćĥàţ àńď Ćōŵōŕķ śēśśĩōńś."],"mNY1G6": ["Ũńďō àĺĺ ēďĩţś"],+ "mPy9lS": [+ "Ōŕĝàńĩźē ḿŷ ēxĩśţĩńĝ śƥēćś ĩńţō à ĺĩńķēď ĩńďēx ĝŕōũƥēď ƀŷ àŕēà, àńď ƒĺàĝ àńŷ ţĥàţ ĥàvē ďŕĩƒţēď ōũţ ōƒ śŷńć ŵĩţĥ ţĥē ćũŕŕēńţ ćōďē."+ ],"mSJ3Rn": ["Ćōḿƥũţĩńĝ śćàƒƒōĺď ƥĺàń"],"mSpqzP": [[@@ -1547,6 +1568,7 @@"nrGWJ7": ["Ĝĩţ ĩďēńţĩţŷ ĩśń'ţ śēţ — ćōḿḿĩţś ũśē à ďēƒàũĺţ àũţĥōŕ. Śēţ ŷōũŕś śō ţēàḿḿàţēś śēē ŷōũŕ ńàḿē."],+ "nskygk": ["Ćĥōōśē àĝēńţ"],"nzaV6Q": ["Ƥàĝē ţĥũḿƀńàĩĺś"],"o2yoFu": ["Ŕēvēàĺ ĩń Ƒĩńďēŕ, Ńō ŵōŕķśƥàćē"],"o49mDZ": ["Ĺōàďĩńĝ ţĩḿēĺĩńē ĥĩśţōŕŷ"],@@ -1632,6 +1654,7 @@"qioCwA": ["ĵũḿƥ ţō ƥàĝē ", ["pageNumber"]],"qjHMHf": ["Ƒàĩĺēď ţō ďĩśàƀĺē śŷńć — ", ["detail"]],"qo4zCg": ["Ƥàţĥ ćàńńōţ ćōńţàĩń ƀàćķśĺàśĥēś"],+ "qpQwGC": ["Ďēśćŕĩƀē ŵĥàţ ŷōũ'ŕē ŵōŕķĩńĝ ōń àńď ţĥē àĝēńţ śēţś ĩţ ũƥ ƒōŕ ŷōũ."],"qvWGzP": ["Ćōĺĺàƥśē àĺĺ"],"qvcK7S": ["Ōƥēń Ķńōŵĺēďĝē ŵĩĺĺ ćŕēàţē ćōḿḿĩţś àńď ƥũśĥ ţĥēḿ ţō ŷōũŕ ŕēḿōţē àũţōḿàţĩćàĺĺŷ. Ĩƒ ŷōũ ďō ńōţ ŵàńţ àũţōḿàţĩć ćōḿḿĩţś ĩń ŷōũŕ ĝĩţ ĥĩśţōŕŷ, ŷōũ śĥōũĺď ńōţ ēńàƀĺē àũţō-śŷńć."@@ -1734,6 +1757,9 @@"u6Hp4N": ["Ḿàŕķďōŵń"],"u7H-Wn": ["Śĥōŵ ƥàńēĺ (", ["panelShortcutLabel"], ")"],"uCaIdy": ["ĜĩţĤũƀ śĩĝń-ĩń ĩś ḿĩśśĩńĝ ōŕ ēxƥĩŕēď. Ŕēćōńńēćţ ţō ŕēśũḿē śŷńćĩńĝ."],+ "uDlyqd": [+ "Ďōćũḿēńţ ţĥē àŕćĥĩţēćţũŕē ōƒ ţĥĩś ŕēƥō: ćŕēàţē àń ōvēŕvĩēŵ ƥàĝē ţĥàţ ĺĩńķś ţō à ƥàĝē ƥēŕ ḿàĴōŕ ḿōďũĺē ďēśćŕĩƀĩńĝ ĩţś ŕēśƥōńśĩƀĩĺĩţĩēś àńď ēńţŕŷ ƥōĩńţś."+ ],"uF9ruK": ["Śàvĩńĝ"],"uH_S-u": [["loadErrorTitle"], ": ", ["message"]],"uKRYiW": ["Śŷńć śţàţũś ũńàvàĩĺàƀĺē — śēŕvēŕ ēŕŕōŕ."],@@ -1776,6 +1802,7 @@"v7lbnC": ["Ƒĩńď ńēxţ ḿàţćĥ"],"vDXqVv": ["Ĩńśēŕţ à ḿàŕķďōŵń ĥàŕď ƀŕēàķ."],"vEJDlt": ["Ţĥē ƒĩĺē ĩś ĩń ŷōũŕ Ţŕàśĥ; ţĥē ƒĩĺē-ŵàţćĥēŕ ŵĩĺĺ ŕēćōńćĩĺē."],+ "vGeNNQ": ["Ćōƥŷ à ƥŕōḿƥţ àńď ƥàśţē ĩţ ĩńţō ŷōũŕ àĝēńţ ţō śēţ ũƥ ŷōũŕ ƥŕōĴēćţ."],"vIxrEk": ["Ƒĩţ ŵĩďţĥ"],"vLyv1R": ["Ĥĩďē"],"vPYaz3": ["Śćàƒƒōĺď ďĩŕēćţĺŷ ũńďēŕ ţĥĩś ƥŕōĴēćţ."],@@ -1839,6 +1866,7 @@"xaDWAI": ["Śŵĩţćĥ ƥŕōĴēćţ"],"xbdtfY": ["Ḿàŕķďōŵń śōũŕćē"],"xc4g25": ["Ƥàŕśē ƒàĩĺēď"],+ "xeXS4P": ["Ōŕ ũśē à śţàŕţēŕ ƥàćķ"],"xeiujy": ["Ţēxţ"],"xhlFsx": ["Ĩńĥēŕĩţēď — śēţ à vàĺũē ĥēŕē ţō ŕēƥĺàćē ĩţ."],"xiv-dW": ["Ńō ƒĩĺēś ŷēţ."],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 759d70a86..77c4eb45b 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -242,18 +242,6 @@ msgstr ""msgid "{fileCount, plural, one {# file} other {# files}}"msgstr ""-#: src/components/PackCardGrid.tsx-msgid "{fileLabel} · {folderLabel}"-msgstr ""--#: src/components/PackCardGrid.tsx-msgid "{files, plural, one {# file} other {# files}}"-msgstr ""--#: src/components/PackCardGrid.tsx-msgid "{folders, plural, one {# folder} other {# folders}}"-msgstr ""-#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx#: src/components/SyncStatusBadge.tsx@@ -459,6 +447,10 @@ msgstr ""msgid "A short line shown under the name in the template list."msgstr ""+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "A team knowledge base, a personal wiki, project docs..."+msgstr ""+#: src/components/TemplateForm.tsxmsgid "A template named <0>{trimmedSlug}</0> already exists here. Saving creates a local copy that overrides it for this folder."msgstr ""@@ -772,6 +764,10 @@ msgstr ""msgid "Big section heading."msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Bird wiki"+msgstr ""+#: src/components/NewItemDialog.tsxmsgid "Blank note"msgstr ""@@ -846,6 +842,14 @@ msgstr ""msgid "Browse your repos:"msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Build a competitor research knowledge base. Start with an overview page, then add cross-linked pages for each competitor, their products and pricing, and the sources behind every claim."+msgstr ""++#: src/components/empty-state/use-create-suggestions.ts+msgid "Build a knowledge wiki about the different types of flightless birds. Start with an overview page, then add cross-linked pages for each major group (ratites like ostriches, emus, and kiwis; penguins; and flightless rails), the regions they live in, and a timeline of how flightlessness evolved."+msgstr ""+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Building <0>openknowledge.skill</0> and opening the Claude Desktop App"msgstr ""@@ -938,6 +942,10 @@ msgstr ""msgid "Checklist with checkboxes."msgstr ""+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "Choose agent"+msgstr ""+#: src/components/settings/SharingSection.tsxmsgid "Choose whether this project's Open Knowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."msgstr ""@@ -1165,6 +1173,10 @@ msgstr ""msgid "Commits happen automatically"msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Competitor research"+msgstr ""+#: src/components/CloneDialog.tsxmsgid "Complete"msgstr ""@@ -1301,6 +1313,7 @@ msgstr ""msgid "Convert the current block to a paragraph."msgstr ""+#: src/components/empty-state/CopyablePromptList.tsx#: src/components/InstallInClaudeDesktopDialog.tsx#: src/editor/extensions/CodeBlockView.tsxmsgid "Copied"@@ -1316,10 +1329,24 @@ msgstr ""msgid "Copied relative path"msgstr ""+#: src/components/empty-state/CopyablePromptList.tsx#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Copy"msgstr ""+#. placeholder {0}: suggestion.label+#: src/components/empty-state/CopyablePromptList.tsx+msgid "Copy {0} prompt"+msgstr ""++#: src/components/EmptyEditorState.tsx+msgid "Copy a prompt and paste it into your agent to set up your project."+msgstr ""++#: src/components/empty-state/CreateView.tsx+msgid "Copy a prompt for your agent, start a blank file, or scaffold from a template."+msgstr ""+#: src/editor/extensions/CodeBlockView.tsxmsgid "Copy code"msgstr ""@@ -1593,6 +1620,7 @@ msgid "Counting markdown files"msgstr ""#: src/components/CreateProjectDialog.tsx+#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/NewItemDialog.tsx#: src/components/TemplateRow.tsxmsgid "Create"@@ -1641,6 +1669,11 @@ msgstr ""msgid "Create template"msgstr ""+#. placeholder {0}: getDisplayNameDefault(selectedAgentId)+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "Create with {0}"+msgstr ""+#: src/components/FileTree.tsxmsgid "Create your first file"msgstr ""@@ -1751,6 +1784,18 @@ msgstr ""msgid "Deleting"msgstr ""+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "Describe the project you want to create"+msgstr ""++#: src/components/empty-state/CreateView.tsx+msgid "Describe what you want to build, start a blank file, or scaffold from a template."+msgstr ""++#: src/components/EmptyEditorState.tsx+msgid "Describe what you're working on and the agent sets it up for you."+msgstr ""+#: src/components/TemplateForm.tsxmsgid "Description"msgstr ""@@ -1852,6 +1897,10 @@ msgstr ""msgid "Document statistics"msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Document the architecture of this repo: create an overview page that links to a page per major module describing its responsibilities and entry points."+msgstr ""+#: src/components/HelpPopover.tsxmsgid "Documentation"msgstr ""@@ -1887,6 +1936,14 @@ msgstr ""msgid "Downloads {shareOwner}/{shareRepo} from GitHub."msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Draft a spec"+msgstr ""++#: src/components/empty-state/use-create-suggestions.ts+msgid "Draft a technical spec for my project. Start with an overview, then add cross-linked pages for the architecture, the key modules, and the open questions, all linked from a specs index."+msgstr ""+#: src/components/FrontmatterRow.tsxmsgid "Drag {keyName} to reorder"msgstr ""@@ -2080,6 +2137,10 @@ msgstr ""msgid "Ended"msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Eng specs"+msgstr ""+#: src/components/SeedDialog.tsxmsgid "Enter a folder name (e.g. brain)."msgstr ""@@ -2886,6 +2947,10 @@ msgstr ""msgid "Install {brand} →"msgstr ""+#: src/components/empty-state/CreatePromptComposer.tsx+msgid "Install an AI agent to create with AI"+msgstr ""+#. Dialog title — installing the Open Knowledge skill into the Claude Desktop App#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Install for Claude Chat & Cowork"@@ -2996,10 +3061,6 @@ msgstr ""msgid "Let Tab leave the source editor instead of indenting."msgstr ""-#: src/components/EmptyEditorState.tsx-msgid "Let's set up your project."-msgstr ""-#: src/components/settings/SettingsDialogBody.tsxmsgid "Light, dark, or follow the OS."msgstr ""@@ -3191,6 +3252,10 @@ msgstr ""msgid "Manage the GitHub account Open Knowledge uses to browse and sync your repositories."msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Map the architecture"+msgstr ""+#: src/editor/slash-command/component-items.tsxmsgid "Mark a block as the source of truth. Mirror references elsewhere render this content read-only and update live as you edit here."msgstr ""@@ -3401,7 +3466,6 @@ msgid "New"msgstr ""#: src/components/CommandPalette.tsx-#: src/components/empty-state/CreateView.tsx#: src/components/FileSidebar.tsx#: src/components/FileTree.tsx#: src/components/NewItemDialog.tsx@@ -4008,8 +4072,13 @@ msgstr ""msgid "Opens in a new tab"msgstr ""+#: src/components/empty-state/CreateView.tsx#: src/components/EmptyEditorState.tsx-msgid "or start from scratch <0/>"+msgid "or create a new file <0/>"+msgstr ""++#: src/components/EmptyEditorState.tsx+msgid "Or use a starter pack"msgstr ""#: src/lib/keyboard-shortcuts.ts@@ -4020,6 +4089,14 @@ msgstr ""msgid "Ordered List"msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code."+msgstr ""++#: src/components/empty-state/use-create-suggestions.ts+msgid "Organize specs"+msgstr ""+#: src/components/GraphPanel.tsxmsgid "Orphan mode"msgstr ""@@ -4187,10 +4264,6 @@ msgstr ""msgid "Pick a name"msgstr ""-#: src/components/EmptyEditorState.tsx-msgid "Pick a starter pack to scaffold folders, templates, and AI-readable rules."-msgstr ""-#: src/components/ShareReceiveDialog.tsxmsgid "Pick the folder where you've cloned it."msgstr ""@@ -4354,6 +4427,10 @@ msgstr ""msgid "Re-authenticate with GitHub"msgstr ""+#: src/components/empty-state/use-create-suggestions.ts+msgid "Read through this codebase and draft a technical spec for the most complex module: an overview, the architecture, key files, and open questions, all linked from a specs index page."+msgstr ""+#: src/editor/slash-command/component-items.tsxmsgid "Read-only copy of a MirrorSource block from another doc. Edit at the source — every Mirror reflects the change live."msgstr ""@@ -4745,7 +4822,6 @@ msgid "Scope: "msgstr ""#: src/components/CommandPalette.tsx-#: src/components/empty-state/KeyboardHintsFooter.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/SidebarSearchBar.tsx#: src/lib/keyboard-shortcuts.ts@@ -5180,10 +5256,6 @@ msgstr ""msgid "Start"msgstr ""-#: src/components/empty-state/CreateView.tsx-msgid "Start a blank file, scaffold from a template, or open this folder in your AI editor."-msgstr ""-#: src/components/NavigatorApp.tsxmsgid "Start a new Open Knowledge project."msgstr ""@@ -5940,6 +6012,10 @@ msgstr ""msgid "Use a folder you already have."msgstr ""+#: src/components/EmptyEditorState.tsx+msgid "Use a starter pack"+msgstr ""+#: src/components/ShareButton.tsxmsgid "Use Cmd/Ctrl+C to copy the link below, or open OK in the desktop app."msgstr ""@@ -6041,6 +6117,10 @@ msgstr ""msgid "What should the AI do? (optional)"msgstr ""+#: src/components/EmptyEditorState.tsx+msgid "What would you like to create?"+msgstr ""+#: src/components/settings/SettingsDialogBody.tsxmsgid "When enabled, the agent opens or refreshes the preview after each edit. Disable if you manage your own preview window (OK Desktop, a browser tab on another display, etc.)."msgstr ""@@ -6073,10 +6153,6 @@ msgstr ""msgid "Will replace existing Open Knowledge entry"msgstr ""-#: src/components/empty-state/CreateView.tsx-msgid "With AI"-msgstr ""-#: src/components/settings/SettingsDialogBody.tsxmsgid "Word wrap"msgstr ""diff --git a/packages/core/src/handoff/index.ts b/packages/core/src/handoff/index.tsindex 47a7e6e70..c34c5f5b5 100644--- a/packages/core/src/handoff/index.ts+++ b/packages/core/src/handoff/index.ts@@ -2,6 +2,8 @@ export { buildClaudeUrl } from './claude-url.ts';export { buildCodexUrl } from './codex-url.ts';export { buildCursorUrl } from './cursor-url.ts';export {+ type CreateScenario,+ composeCreatePrompt,composeEmptySpacePrompt,composeFilePrompt,composeFolderPrompt,diff --git a/packages/core/src/handoff/prompt-composer.test.ts b/packages/core/src/handoff/prompt-composer.test.tsindex f52d29eab..d8a60a0b2 100644--- a/packages/core/src/handoff/prompt-composer.test.ts+++ b/packages/core/src/handoff/prompt-composer.test.ts@@ -3,6 +3,7 @@ import { buildClaudeUrl } from './claude-url.ts';import { buildCodexUrl } from './codex-url.ts';import { buildCursorUrl } from './cursor-url.ts';import {+ composeCreatePrompt,composeEmptySpacePrompt,composeFilePrompt,composeFolderPrompt,@@ -139,6 +140,66 @@ test('composeEmptySpacePrompt is deterministic across calls', () => {expect(composeEmptySpacePrompt(false)).toBe(composeEmptySpacePrompt(false));});+test('composeCreatePrompt new-project blockquotes the brief + appends the scaffold directive (autoOpen=true)', () => {+ expect(composeCreatePrompt('a wiki for my D&D campaign', true, 'new-project')).toBe(+ "I'm setting up a new Open Knowledge project. Here's what I want to create:\n" ++ '\n' ++ '> a wiki for my D&D campaign\n' ++ '\n' ++ 'Scaffold the folders, templates, and AI-readable rules to match, using Open Knowledge.' ++ ' Open the OK editor in web view.',+ );+});++test('composeCreatePrompt new-project drops the Open-the-OK-editor trailer when autoOpen=false', () => {+ expect(composeCreatePrompt('a wiki', false, 'new-project')).toBe(+ "I'm setting up a new Open Knowledge project. Here's what I want to create:\n" ++ '\n' ++ '> a wiki\n' ++ '\n' ++ 'Scaffold the folders, templates, and AI-readable rules to match, using Open Knowledge.',+ );+});++test('composeCreatePrompt existing-repo does NOT say "new project" or scaffold from scratch', () => {+ const out = composeCreatePrompt(+ 'Read through this codebase and draft a technical spec.',+ true,+ 'existing-repo',+ );+ expect(out).toBe(+ "Here's what I'd like to do in this Open Knowledge project:\n" ++ '\n' ++ '> Read through this codebase and draft a technical spec.' ++ ' Open the OK editor in web view.',+ );+ expect(out).not.toContain('new Open Knowledge project');+ expect(out).not.toContain('Scaffold the folders');+});++test('composeCreatePrompt blockquotes every line of a multi-line brief', () => {+ expect(+ composeCreatePrompt('research notes\nwith weekly reviews', false, 'new-project'),+ ).toContain('> research notes\n> with weekly reviews');+});++test('composeCreatePrompt degrades an empty brief to a scenario-appropriate bare directive', () => {+ const newProjectExpected =+ "Let's set up a new Open Knowledge project." ++ ' Scaffold the folders, templates, and AI-readable rules to match, using Open Knowledge.';+ expect(composeCreatePrompt('', false, 'new-project')).toBe(newProjectExpected);+ expect(composeCreatePrompt(' \n ', false, 'new-project')).toBe(newProjectExpected);+ expect(composeCreatePrompt('', false, 'existing-repo')).toBe(+ "Let's work on this project using Open Knowledge.",+ );+});++test('composeCreatePrompt does NOT sanitize the brief — user input is trusted, not a path', () => {+ expect(composeCreatePrompt('use `code` fences', false, 'new-project')).toContain(+ '> use `code` fences',+ );+});+test('the three templates emit distinct outputs (no accidental aliasing)', () => {expect(composeFilePrompt('foo.md', true)).not.toBe(composeFolderPrompt('foo.md', true));expect(composeFolderPrompt('foo', true)).not.toBe(composeEmptySpacePrompt(true));diff --git a/packages/core/src/handoff/prompt-composer.ts b/packages/core/src/handoff/prompt-composer.tsindex 8148930bb..d60294f28 100644--- a/packages/core/src/handoff/prompt-composer.ts+++ b/packages/core/src/handoff/prompt-composer.ts@@ -51,6 +51,48 @@ export function composeEmptySpacePrompt(autoOpen: boolean): string {return autoOpen ? `${base} Open the OK editor in web view.` : base;}+export type CreateScenario = 'new-project' | 'existing-repo';++export function composeCreatePrompt(+ description: string,+ autoOpen: boolean,+ scenario: CreateScenario,+): string {+ const trimmed = description.trim();+ const openTrailer = autoOpen ? ' Open the OK editor in web view.' : '';+ const blockquote = (text: string): string =>+ text+ .split('\n')+ .map((line) => `> ${line}`)+ .join('\n');++ if (scenario === 'existing-repo') {+ const base =+ trimmed === ''+ ? `Let's work on this project using Open Knowledge.`+ : [+ "Here's what I'd like to do in this Open Knowledge project:",+ '',+ blockquote(trimmed),+ ].join('\n');+ return `${base}${openTrailer}`;+ }++ const scaffold =+ 'Scaffold the folders, templates, and AI-readable rules to match, using Open Knowledge.';+ const base =+ trimmed === ''+ ? `Let's set up a new Open Knowledge project. ${scaffold}`+ : [+ "I'm setting up a new Open Knowledge project. Here's what I want to create:",+ '',+ blockquote(trimmed),+ '',+ scaffold,+ ].join('\n');+ return `${base}${openTrailer}`;+}+const MAX_HANDOFF_URL_LENGTH = 4096;const URL_OVERHEAD_RESERVE = 1024;diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex 16da05287..548e25fc9 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -348,6 +348,8 @@ export {buildClaudeUrl,buildCodexUrl,buildCursorUrl,+ type CreateScenario,+ composeCreatePrompt,composeEmptySpacePrompt,composeFilePrompt,composeFolderPrompt,diff --git a/packages/server/src/seed/starter.test.ts b/packages/server/src/seed/starter.test.tsindex 738000b24..b0af991b4 100644--- a/packages/server/src/seed/starter.test.ts+++ b/packages/server/src/seed/starter.test.ts@@ -309,12 +309,10 @@ describe('Entity vault pack — GBrain-compatible Markdown shape', () => {expect((STARTER_PACKS as Record<string, unknown>).gbrain).toBeUndefined();});- test('metadata ties Entity vault to GBrain compatibility without a replacement-engine claim', () => {- expect(ENTITY_VAULT_PACK.name).toBe('Entity vault (GBrain-compatible)');- expect(ENTITY_VAULT_PACK.description).toContain('people, companies, meetings, and concepts');- expect(ENTITY_VAULT_PACK.description).toContain('GBrain-compatible Markdown');- expect(ENTITY_VAULT_PACK.description).toContain('OK handles editing and review');- expect(ENTITY_VAULT_PACK.description).not.toContain('Gbrain');+ test('display name is the plain-language "Personal CRM"; copy stays novice-friendly', () => {+ expect(ENTITY_VAULT_PACK.name).toBe('Personal CRM');+ expect(ENTITY_VAULT_PACK.description).toContain('people, companies, and meetings');+ expect(ENTITY_VAULT_PACK.description).not.toMatch(/replaces?\s+gbrain/i);});test('entity templates keep title + type in the generated document frontmatter', () => {diff --git a/packages/server/src/seed/starter.ts b/packages/server/src/seed/starter.tsindex 26696aead..5f66d6d65 100644--- a/packages/server/src/seed/starter.ts+++ b/packages/server/src/seed/starter.ts@@ -1051,8 +1051,7 @@ export const STARTER_PACKS: Readonly<Record<PackId, StarterPack>> = {'knowledge-base': {id: 'knowledge-base',name: 'Knowledge base',- description:- 'Source-grounded canonical articles. Three layers (sources → research → articles) wired to the ingest / research / consolidate MCP tools.',+ description: 'Trusted articles from your sources.',defaultSubfolder: 'brain',folders: KNOWLEDGE_BASE_FOLDERS,templates: KNOWLEDGE_BASE_TEMPLATES,@@ -1061,8 +1060,7 @@ export const STARTER_PACKS: Readonly<Record<PackId, StarterPack>> = {'software-lifecycle': {id: 'software-lifecycle',name: 'Software lifecycle',- description:- 'Proposals, decisions, specs, postmortems, guides. The doc lifecycle for an engineering team or OSS project.',+ description: 'Proposals, decisions, and specs.',defaultSubfolder: 'project-docs',folders: SOFTWARE_LIFECYCLE_FOLDERS,templates: SOFTWARE_LIFECYCLE_TEMPLATES,@@ -1070,8 +1068,7 @@ export const STARTER_PACKS: Readonly<Record<PackId, StarterPack>> = {'plain-notes': {id: 'plain-notes',name: 'Plain notes',- description:- 'Just notes/ + daily/. The "I just want to write" escape hatch. No posture imposed, link freely.',+ description: 'Notes and daily entries.',defaultSubfolder: undefined,folders: PLAIN_NOTES_FOLDERS,templates: PLAIN_NOTES_TEMPLATES,@@ -1079,8 +1076,7 @@ export const STARTER_PACKS: Readonly<Record<PackId, StarterPack>> = {worldbuilding: {id: 'worldbuilding',name: 'Worldbuilding',- description:- 'Encyclopedia for fiction: characters, settings, themes, factions, lore. The graph is the product; agent excels at auto-stub creation and dead-link cleanup.',+ description: 'A wiki for your story world.',defaultSubfolder: 'world',folders: WORLDBUILDING_FOLDERS,templates: WORLDBUILDING_TEMPLATES,@@ -1088,17 +1084,15 @@ export const STARTER_PACKS: Readonly<Record<PackId, StarterPack>> = {'writing-pipeline': {id: 'writing-pipeline',name: 'Writing pipeline',- description:- 'Three-stage drafting flow: ideas → drafts → published. Lean by default; CRDT history covers per-file revisions.',+ description: 'From first draft to finished piece.',defaultSubfolder: 'writing',folders: WRITING_PIPELINE_FOLDERS,templates: WRITING_PIPELINE_TEMPLATES,},'entity-vault': {id: 'entity-vault',- name: 'Entity vault (GBrain-compatible)',- description:- 'Track people, companies, meetings, and concepts with dossiers: rewritable summaries plus append-only evidence timelines. GBrain-compatible Markdown; OK handles editing and review.',+ name: 'Personal CRM',+ description: 'Track the people, companies, and meetings.',defaultSubfolder: 'vault',folders: ENTITY_VAULT_FOLDERS,templates: ENTITY_VAULT_TEMPLATES,