Skip to content
Merged
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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ All notable changes to DreamCoder will be documented in this file.
- **Sessions are nested in the sidebar.** Sessions the agent started, and conversations you forked, appear under the session they came from, with an icon for each kind and a count that collapses or expands them. Messages from another session appear in the conversation as a one-line row with the sender, which expands to the full text (#239).
- **Project board.** Each project gets a persistent board of tasks and sub-tasks that you and your sessions share; every worktree of the project uses the same board. Open it from the project in the sidebar. A task records its owner, reviewer and creator, acceptance criteria, priority, dependencies, progress, and the owner's and reviewer's reports. Sessions read and update the board with four tools (`KanbanList`, `KanbanGet`, `KanbanCreate`, `KanbanUpdate`): they split work into sub-tasks, record progress, block a task with a question, submit their work and review it. The board notifies the sessions involved when they are assigned, when work is submitted, blocked, sent back, reset or cancelled, and when you comment. `StartSession` can start a session as a task's owner or reviewer. The board page has a board view and a hierarchy view, opens a task in the side panel, and lists what waits on you under "Needs me": blocked tasks, deliveries to accept and tasks whose owner session is gone. You approve every time a session creates the board, starts a session on a task, cancels a task, changes acceptance criteria it did not set, or makes itself a reviewer; only a task's creator or you choose its reviewer (#242).
- **Side chats.** Start a side chat from the side panel's new-tab page, or select text in the conversation and choose **Start a side chat** to quote it in a new one, to ask about something without interrupting the session: it continues from the session's latest message, in the same working folder, with the same tools, and opens as a tab in the session's side panel. It shows only its own messages; the model still has the whole conversation. A session can have several. Pages, files and browser tabs a side chat opens appear in the same panel. The tab is named `btw: ` plus your first message; right-click it to rename it, or to detach it into a regular forked session in the sidebar. Closing the tab deletes the side chat, and deleting a session deletes its side chats. Side chats stay out of the sidebar, search and board pickers; `ListSessions` shows a session its own side chats so it can message them. Cmd+. stops the conversation that has the focus.
- **Slides.** The agent can make a slide deck as an artifact with the new `/slides` skill, from scratch or from a bundled slide template; the Artifacts page has a Slides entry next to Design, with the slide templates, previews and the design system library. A deck opens in the side browser with controls to page through the slides, see them all in an overview and present full screen, where elements can appear step by step. It exports as a PDF with one page per slide, a PNG of the current slide, or one HTML file that pages and presents on its own. A comment on a slide tells the agent which slide it is about, and the tab stays on your slide while the agent changes the deck.
- **Slides.** The agent can make a slide deck as an artifact with the new `/slides` skill, from scratch or from a bundled slide template; the Artifacts page has a Slides entry next to Design, with the slide templates, previews and the design system library. A deck opens in the side browser with controls to page through the slides, see them all in an overview and present full screen, where elements can appear step by step. With **Edit** on, you can change the text of a slide in place (Shift+Enter starts a new line) and reorder slides in the overview by dragging them or with Cmd/Ctrl and the arrow keys, and you can delete a slide with the toolbar button or the Delete key in the overview; the changes are saved to the deck's files. Slides glide when their order changes, and the current slide zooms between the overview and the single-slide view. It exports as a PDF with one page per slide, a PNG of the current slide, or one HTML file that pages and presents on its own. A comment on a slide tells the agent which slide it is about, and the tab stays on your slide while the agent changes the deck.

### Changed

- **You and the agent no longer write an artifact at the same time.** While you edit a slide or move or resize a board of a canvas, the agent's file edits in that artifact wait until you are done, the conversation says it is waiting for you, and if you changed files meanwhile it reads them before going on. After you change an artifact in the app, a chip above the message box tells the agent with your next message which files you changed (and, for a deck whose slides you reordered or deleted, to check its section numbers).
- **A cleaner desktop look.** All seven themes share one set of semantic colors, the conversation, sidebar and panels use one type scale (14px body text), and corners use one radius scale. The pages of the side panel (terminal, browser, files, changes) no longer draw their own frames; the terminal follows the light or dark theme, its project and branch sit in a row above the output with the clear and restart buttons, and the browser shows a loading bar under its address field.
- **The Files tab previews a file beside the tree.** Clicking a file in the tree previews it in place instead of opening a tab; the tree's right-click menu can still open it in its own tab, and recent files and typed paths on the new-tab page select the file in the Files tab. A path bar above the preview holds an editor button with a menu of editors and file managers, a preview toggle for Markdown (which opens rendered), a line-wrap toggle (on by default) and a tree toggle; in a narrow panel the tree shows until you pick a file, then hides. Each part of the path has a menu (add to chat and copy path; folders can also open in an editor, the file manager or a terminal tab started there), shows its full path on hover, and is revealed in the tree when clicked. Right-clicking a file's content adds the file or the selection to the chat, copies its path or contents, and in source view comments on the clicked line or selects all. The file tree is built on `@pierre/trees`. `.bmp` and `.ico` files now preview as images.
- **Changed files** have an open-file button and a menu on each row (add to chat, copy path, open file, open in an editor or the file manager).
Expand Down
10 changes: 8 additions & 2 deletions desktop/public/artifact-shell/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@
var dx = (event.clientX - drag.startX) / view.scale
var dy = (event.clientY - drag.startY) / view.scale
var board = drag.entry.board
if (!drag.busy) {
drag.busy = true
emit({ type: 'busy', on: true })
}
if (drag.mode === 'move') {
board.x = drag.origin.x + dx
board.y = drag.origin.y + dy
Expand All @@ -419,15 +423,17 @@
var board = activeDrag.entry.board
var origin = activeDrag.origin
var entry = activeDrag.entry
var busy = activeDrag.busy
activeDrag = null
document.body.classList.remove('dragging')
board.x = Math.round(board.x)
board.y = Math.round(board.y)
board.width = Math.round(board.width)
board.height = Math.round(board.height)
place(entry.element, board)
if (board.x === origin.x && board.y === origin.y && board.width === origin.width && board.height === origin.height) return
emit({ type: 'move', id: board.id, x: board.x, y: board.y, width: board.width, height: board.height })
var moved = board.x !== origin.x || board.y !== origin.y || board.width !== origin.width || board.height !== origin.height
if (moved) emit({ type: 'move', id: board.id, x: board.x, y: board.y, width: board.width, height: board.height })
if (busy) emit({ type: 'busy', on: false })
}
document.addEventListener('pointerup', endDrag)
document.addEventListener('pointercancel', endDrag)
Expand Down
Loading
Loading