Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/capabilities/activity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
activity:
title: Activity timeline
promise: >
The Activity page lists what changed, newest first, by you or an agent ("via
ChatGPT"), with filters by area. Its MCP tab shows agent tool calls with a summary
of clients and top tools.
entry: [app/src/routes/activity.tsx, app/src/server/mcp/activity-tools.ts]
implementation:
- app/src/server/events/action-events.ts
- app/src/server/events/event-scope.ts
- app/src/components/activity/ActivityEventRow.tsx
- app/src/components/activity/ActivityTimeline.tsx
- app/src/components/activity/ActivityToolbar.tsx
- app/src/components/activity/McpActivityPanel.tsx
- app/src/components/activity/activity-format.ts
- app/src/components/activity/useActivityFilters.ts
- app/src/server/activity/activity-store.ts
- app/src/server/activity/mcp-activity-store.ts
- app/src/services/activity/activity.actions.ts
- app/src/services/activity/activity.queries.ts
- app/src/services/activity/activity.service.ts
- app/src/services/activity/activity.types.ts
tests: [app/src/components/activity/activity-format.test.ts, app/src/server/mcp/activity-tools.test.ts]
21 changes: 21 additions & 0 deletions docs/capabilities/admin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
admin:
title: Admin tools
promise: >
The Admin page runs one-off data migrations with a dry run first and shows their
progress, and lists connected agents.

admin-migrations:
parent: admin
title: Data migrations
promise: >
Move inline images out of note bodies into stored files, and convert notes to
block storage, without losing text. Each run shows what it would change first.
entry: [app/src/routes/admin/index.tsx, app/src/routes/admin/migrations.tsx]
implementation:
- app/src/components/admin/BlockMigrationPanel.tsx
- app/src/services/admin/block-migration.actions.ts
- app/src/services/admin/inline-image-migration.actions.ts
- app/src/services/admin/inline-image-migration.queries.ts
- app/src/services/admin/inline-image-migration.types.ts
- app/src/server/lib/inline-image-migration.ts
tests: [app/src/server/notes/block-migration.test.ts]
14 changes: 14 additions & 0 deletions docs/capabilities/agent-inbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
agent-inbox:
parent: annotations
title: Agent inbox
promise: >
The Inbox lists the requests you left for agents and what they did, grouped by what
needs you. The sidebar shows how many items wait for you.
docs: [app/docs/agent-inbox.md]
entry: [app/src/routes/inbox.tsx]
implementation:
- app/src/components/inbox/InboxBadge.tsx
- app/src/components/inbox/InboxView.tsx
- app/src/components/inbox/NeedsYouItem.tsx
- app/src/components/inbox/inbox-format.ts
tests: [app/src/server/annotations/user-inbox.db.test.ts]
65 changes: 65 additions & 0 deletions docs/capabilities/ai.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
ai:
title: In-app AI
promise: >
Talk to an AI assistant about your notes and run saved prompts on a note or a selection.
Every run is recorded so you can see what was sent, what came back and what it cost.
entry: [app/src/components/ai/LLMSidebarHost.tsx]
implementation:
- app/src/server/lib/ai.ts
- app/src/components/ai/LLMSidebar.tsx
- app/src/components/ai/LLMSidebarBus.ts
- app/src/components/ModelSelect.tsx
- app/src/services/ai/ai-auth.ts
- app/src/services/ai/ai-chat.actions.ts
- app/src/services/ai/ai-chat.queries.ts
- app/src/services/ai/ai-models.queries.ts
tests: [app/src/server/lib/ai.test.ts, app/tests/e2e/route-hydration-smoke.spec.ts]

ai-prompts:
parent: ai
title: Write and version prompts
promise: >
Create a prompt, edit it, and keep earlier versions. A prompt designer interviews you and drafts the prompt text.
The prompt list shows how often each prompt ran and failed.
entry:
- app/src/routes/ai/prompts/[id].tsx
implementation:
- app/src/components/ai-dashboard/PromptDialogs.tsx
- app/src/components/ai-dashboard/PromptsTable.tsx
- app/src/services/ai/ai-prompt-designer.actions.ts
- app/src/services/prompts/prompts.actions.ts
- app/src/services/prompts/prompts.queries.ts
tests:
- path: app/src/components/ai-dashboard/ai-dashboard-model.test.ts
only: [statsByPrompt]

ai-prompt-runs:
parent: ai
title: Run a prompt on a note
promise: >
Run a prompt on a whole note or a selected passage with a chosen model.
The result is saved as a run you can open later.
entry:
- app/src/routes/ai/runs/[id].tsx
implementation:
- app/src/services/ai/ai-run-prompt.actions.ts
- app/src/services/ai/ai-runs.queries.ts
- app/src/components/ai-dashboard/RunStatusIcon.tsx
tests:
- path: app/src/components/ai-dashboard/ai-dashboard-model.test.ts
only: [previewText]

ai-dashboard:
parent: ai
title: AI dashboard
promise: >
See recent runs and paid model calls in one place.
Filter runs by status and search by task, model or error text.
entry: [app/src/routes/ai/index.tsx]
implementation:
- app/src/components/ai-dashboard/PaidCallsTable.tsx
- app/src/components/ai-dashboard/RunsTable.tsx
- app/src/components/ai-dashboard/ai-dashboard-model.ts
tests:
- path: app/src/components/ai-dashboard/ai-dashboard-model.test.ts
only: [runMatchesQuery]
96 changes: 96 additions & 0 deletions docs/capabilities/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
annotations:
title: Annotations
promise: >
Comment on a passage of a note, ask an assistant a question there, and review the edits it
proposes before they touch the note.
docs: [app/docs/agent-inbox.md]

annotation-notes:
parent: annotations
title: Annotate a passage
promise: >
Select text and add an annotation of a chosen type. Annotations sit in a rail beside the note at
the passage they belong to, with a legend by type, and stay attached when the note changes.
entry: [app/src/components/annotations/AnnotationRail.tsx]
implementation:
- app/src/components/annotations/AnnotationComposer.tsx
- app/src/components/annotations/AnnotationEntry.tsx
- app/src/components/annotations/AnnotationEntryMenu.tsx
- app/src/components/annotations/AnnotationLayer.tsx
- app/src/components/annotations/AnnotationLegend.tsx
- app/src/components/annotations/RailChrome.tsx
- app/src/components/annotations/annotation-context.ts
- app/src/components/annotations/railLayout.ts
- app/src/components/editor/annotations/annotationPlugin.ts
- app/src/components/editor/annotations/blockText.ts
- app/src/components/editor/annotations/passage.ts
- app/src/lib/annotations/anchor.ts
- app/src/lib/annotations/block-hash.ts
- app/src/lib/annotations/types.ts
- app/src/server/annotations/annotations.ts
- app/src/server/annotations/errors.ts
- app/src/services/annotations/annotations.actions.ts
- app/src/services/annotations/annotations.queries.ts
tests:
- app/src/components/annotations/railLayout.test.ts
- app/src/components/editor/annotations/annotationPlugin.test.ts
- app/src/server/annotations/annotations.db.test.ts

annotation-types:
parent: annotations
title: Annotation types
promise: >
Define your own annotation types, each with a name and color, and edit or remove them from the
types dialog.
entry: [app/src/components/annotations/AnnotationTypesDialog.tsx]
implementation:
- app/src/server/annotations/annotation-types.ts
tests:
- app/src/server/annotations/annotations.db.test.ts

annotation-requests:
parent: annotations
title: Ask an assistant from a note
promise: >
Turn an annotation into a request to an assistant, follow its reply in a thread, and see open
requests in your inbox. An assistant claims a request, answers it, and your inbox shows the
answer.
entry: [app/src/components/annotations/RequestThread.tsx]
implementation:
- app/src/components/annotations/NoteToAiButton.tsx
- app/src/components/annotations/TaskRequests.tsx
- app/src/lib/annotations/inbox-types.ts
- app/src/server/annotations/agent-inbox.ts
- app/src/server/annotations/requests.ts
- app/src/server/annotations/user-inbox.ts
tests:
- app/src/server/annotations/requests.db.test.ts
- app/src/server/annotations/user-inbox.db.test.ts

edit-proposals:
parent: annotations
title: Review proposed edits
promise: >
An assistant can propose changes to a block. The proposal shows over the note, and you accept or
reject it. Nothing changes the note body until you accept.
entry: [app/src/components/annotations/ProposalLayer.tsx]
implementation:
- app/src/components/editor/proposals/proposalPlugin.ts
- app/src/components/editor/proposals/proposalStyles.ts
- app/src/components/editor/proposals/proposalTransaction.ts
- app/src/server/annotations/proposals.ts
- app/src/server/annotations/switch.ts
tests:
- app/src/components/editor/proposals/proposalTransaction.test.ts
- app/src/server/annotations/proposals.db.test.ts

annotation-agent-tools:
parent: annotations
title: Assistants answer annotations
promise: >
A connected assistant can list open requests, claim and answer them, and propose block edits. These
tools never write a note body directly.
entry: [app/src/server/mcp/annotations-tools.ts]
tests:
- app/src/server/annotations/requests.db.test.ts
- app/src/server/annotations/proposals.db.test.ts
98 changes: 98 additions & 0 deletions docs/capabilities/app-shell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
app-shell:
title: App shell
promise: >
Every page sits in one shell: a sidebar with the main sections and recent notes,
a command palette, sign-in, and clear pages for errors and missing routes.
entry: [app/src/app.tsx, app/src/routes/index.tsx]
tests: [app/tests/e2e/homepage.spec.ts, app/tests/e2e/route-hydration-smoke.spec.ts]

sidebar-navigation:
parent: app-shell
title: Sidebar and recent notes
promise: >
The sidebar links to each section and lists the notes you opened recently,
newest first. It collapses on desktop and becomes an app bar on phones.
entry: [app/src/components/sidebar/AppSidebarLayout.tsx]
implementation:
- app/src/components/sidebar/AppSidebarActions.tsx
- app/src/components/sidebar/AppSidebarCanvasMenu.tsx
- app/src/components/sidebar/AppSidebarClient.tsx
- app/src/components/sidebar/AppSidebarContent.tsx
- app/src/components/sidebar/AppSidebarDesktop.tsx
- app/src/components/sidebar/AppSidebarFooter.tsx
- app/src/components/sidebar/AppSidebarMobile.tsx
- app/src/components/sidebar/AppSidebarNav.tsx
- app/src/components/sidebar/AppSidebarRecent.tsx
- app/src/components/sidebar/RecentRow.tsx
- app/src/components/sidebar/RouteProgressBar.tsx
- app/src/components/sidebar/SidebarNavLink.tsx
- app/src/components/sidebar/mobile-app-bar.ts
- app/src/components/sidebar/nav-items.ts
- app/src/components/sidebar/sidebar-collapse-cookie.ts
- app/src/components/sidebar/useMobileBarTitleOnScroll.ts
- app/src/services/recents/recents.merge.ts
- app/src/services/recents/recents.queries.ts
- app/src/services/recents/recents.types.ts
tests: [app/src/services/recents/recents.merge.test.ts, app/tests/e2e/new-note-mobile.spec.ts]

command-palette:
parent: app-shell
title: Command palette
promise: >
Cmd-K finds a note by title or path and runs app commands. Enter opens the best
match, even before results arrive; with no match, a second Enter makes a new note.
entry: [app/src/components/CommandKMenu.tsx]
implementation:
- app/src/components/command-palette/PalettePathChips.tsx
- app/src/components/command-palette/PaletteRows.tsx
- app/src/components/command-palette/PaletteSortMenu.tsx
- app/src/components/command-palette/palette-commands.ts
- app/src/components/command-palette/palette-search.queries.ts
- app/src/components/command-search.ts
tests:
- app/tests/e2e/command-palette.spec.ts
- app/src/components/command-palette/palette-commands.test.ts
- app/src/components/command-search.test.ts

sign-in:
parent: app-shell
title: Sign in
promise: Sign in with a magic link. Pages and server calls need a signed-in user.
entry: [app/src/routes/login.tsx]
implementation:
- app/src/server/magic-auth.ts
- app/src/services/auth/magic-auth.actions.ts
- app/src/services/auth/magic-auth.queries.ts
- app/src/services/auth/magic-login.ts
tests: [app/tests/e2e/auth-helper.spec.ts]

error-pages:
parent: app-shell
title: Error and not-found pages
promise: >
An unknown route shows a not-found page, and an uncaught error shows an overlay
with the message instead of a blank page.
entry: ["app/src/routes/[...404].tsx"]
implementation:
- app/src/components/errors/GlobalErrorOverlay.tsx
- app/src/components/errors/NotFoundPage.tsx
tests: [app/tests/e2e/no-page-flash.spec.ts]

background-jobs:
parent: app-shell
title: Background jobs and live updates
promise: >
Long work (embeddings, transcripts, agent runs) runs as a job; open tabs get its
progress and other live updates over one socket.
implementation:
- app/src/server/jobs-db.ts
- app/src/server/broadcast-bus.ts
- app/src/ws/jobs.ts
- app/src/lib/socket-client.ts
- app/src/lib/job-socket-client.ts
- app/src/lib/job-socket-messages.ts
- app/src/services/jobs/jobs.queries.ts
tests:
- app/src/server/jobs-db.test.ts
- app/src/server/broadcast-bus.test.ts
- app/src/lib/socket-client.test.ts
Loading
Loading