Open source CapCut alternative.
TypeScript
Document spawn label editor behavior
David Le1c76c8b5c901
diff --git a/docs/guides/pointer-prompt-overlay.md b/docs/guides/pointer-prompt-overlay.mdindex f6ec87b0..98daff5f 100644--- a/docs/guides/pointer-prompt-overlay.md+++ b/docs/guides/pointer-prompt-overlay.md@@ -11,8 +11,8 @@ quick local-app actions:- When a typed prompt or notch follow-up is submitted, show a task spawn cue: the notch arrow rotates toward the exit direction, moves out of the notch, and a Donkey cursor overlay travels onto the desktop.- Spawned cursors travel to a known safe visible target window when one is available. Otherwise they hold about 250 px below the notch near screen center as a loading/thinking state, then retarget if the destination becomes visible.- Multiple spawned cursors can be present at the same time. The newest spawned cursor is selected by default, and clicking a cursor or its label selects it as the current agent.-- A stationary spawned cursor types compact progress text in its label. Clicking or focusing the label expands a smaller multiline follow-up input; while that input is focused or dirty, the cursor stays still until the user submits with Return or the send button, or collapses it with Escape.-- Holding Command while a spawned cursor is selected pauses that cursor for voice input. Donkey expands the cursor label into the compact input, records while Command is held, transcribes the speech into that input on release, submits it as a same-thread follow-up, and then lets the cursor retarget to the next action.+- A stationary spawned cursor types the submitted turn first, then compact progress or response text in its label. Conversational responses, clarifications, review waits, failures, and other attention states stay visible so the user can read them and follow up; completed action-only cursors may fade out. Spawn labels clamp to two lines by default, reveal the full label on hover only when the collapsed label would truncate, and select the cursor on click. Clicking a tasked label turns the same agent-colored surface into an inline editor with the agent message above and a lighter color-matched user input area below; Return submits the typed follow-up to that spawn's task, Shift-Return inserts a newline, Escape returns to the label, and an idle editor closes when focus moves elsewhere.+- Double-Command always opens the centered prompt, even when spawned cursors are visible. If a spawned cursor is selected, centered typed or voice input attaches to that task behind the scenes; otherwise Donkey uses the latest interactable spawned cursor before falling back to follow-up resolution.- Keep prompt submissions, voice transcripts, and follow-ups on the same agent-harness path: task-thread routing, context assembly, conversational response, clarification, review, catalog-backed action parsing, task validation, and guarded local-app execution when a turn is actionable.- Resolve model-classified local-item requests against local apps, files, and folders by querying the current Mac with the SQLite-backed agent memory store, Spotlight/`mdfind`, and bounded filesystem fallback. If the requested local item cannot be found, keep the task safe and report that it was not found instead of falling back to a vague clarification.- Handle scriptable app tasks as guarded AppleScript automation when possible. Commands may use task metadata, generated source, or compact templates; completion is verified through generic task verification policy instead of requiring visible result text for every app.@@ -26,7 +26,7 @@ quick local-app actions:- `PointerPromptOverlayController` owns AppKit surfaces, placement, hover tracking, focus, keyboard shortcut recognition, dismissal, file-drop routing, and microphone level capture.- SwiftUI rendering lives in `DonkeyUI` and consumes state/contracts from `DonkeyContracts`. It should not perform command parsing, model calls, input execution, screen capture, or microphone capture.- `PointerPromptOverlayModel` owns product state. Durable task data is persisted through Core Data in Application Support.-- Spawn display state is typed state. The model emits progress, target hints, and current selection; the overlay controller resolves hints against safe visible windows and owns Command-hold voice capture for the selected spawn; SwiftUI only renders the notch cue, cursors, labels, selection state, and compact inputs.+- Spawn display state is typed state. The model emits progress, target hints, and current selection; the overlay controller resolves hints against safe visible windows and keeps voice capture on the centered prompt; SwiftUI renders the notch cue, cursors, labels, label-to-editor transition, and selection state.- Notch geometry comes from the active `NSScreen`, preferring safe-area and auxiliary-top metrics over hardcoded notch sizes. Content must stay out of the physical notch void; displays without a physical notch should use the same top-center composition without reserving unavailable space.- `PointerPromptNotchLayout` is the shared source for notch surface frames, content frames, corner radii, and notch-safe offsets. `canRenderTextInTopRow` describes whether text can draw in the top row, not whether that row exists.- The prompt is a compact black composer: single-line text is pill-shaped, multiline text becomes a bounded rounded rectangle, Return submits, Shift-Return inserts a newline, Escape and outside clicks dismiss, and non-input capsule areas can drag the modal.@@ -45,9 +45,9 @@ Manually verify:- The notch renders at the top center, respects physical notch safe areas, expands only from visible notch hover, and accepts expanded controls/clicks.- Double-Command release opens a centered focused text prompt; double-Command hold opens the same prompt with voice active; typed text shows a primary send button and a secondary microphone affordance; unrelated Command use does not activate the overlay.- Typed, voice, and follow-up submissions create or update durable task threads, answer non-actionable conversation without showing action failure, show action status in the notch when work runs, and preserve per-task pause/resume behavior.-- Typed prompt and notch follow-up submissions show the spawn sequence: notch cue, desktop cursor emergence, direct travel to a known target or fallback holding point, typed progress label, retargeting when the target becomes visible, and fade-out for completed conversational turns.-- Stationary spawn labels expand on click/focus, accept compact multiline follow-up text, submit with Return or the send button, insert newlines with Shift-Return, collapse with Escape, and keep the cursor from moving while the draft is active.-- With multiple spawned cursors visible, clicking a cursor selects it; holding Command speaks to the selected/latest cursor, pauses movement during recording, shows transcription in that cursor's input, and resumes by submitting the transcript as a follow-up.+- Typed prompt and notch follow-up submissions show the spawn sequence: notch cue, desktop cursor emergence, direct travel to a known target or fallback holding point, typed submitted-turn label, typed progress/response label, retargeting when the target becomes visible, persistent labels for conversational or attention states, and fade-out only for completed action-only turns.+- Stationary spawn labels clamp to two lines, reveal the full label on hover only when truncated, select the cursor on click, and transition in place into a same-styled inline editor for tasked follow-ups.+- With multiple spawned cursors visible, clicking a cursor selects it; double-Command still opens the centered prompt, and the submitted typed or voice turn routes to the selected/latest cursor's task without opening the inline label editor.- Open requests for installed apps, files, and folders launch or open the local item; missing local items show a not-found result and log the lookup provider/reason.- LLM-classified visual-only prompts complete as visualization turns and show the animated cursor with typed labels without moving the real pointer.- Normal local-app tasks can produce visualization steps for planning, observing, navigating, acting, and verifying. The visualization must not claim completion unless the runtime verification state supports it.