You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: DocCommands registry and tool-use preview (#46)
* feat: DocCommands registry and tool-use preview
Ask AI can return targeted edits (replace_range, insert_after_block,
table_add_row, table_update_cell) as a Proposed edits list. Apply N
edits commits the batch as one undo step. Anthropic tool-use when a
key is set; CLI fallback is a doccommands JSON fence. No second Rust
LLM loop.
01M18R79ZM3BMYZ56C7P874YN1
* chore: link DocCommands work item to PR 46
01M18R79ZM3BMYZ56C7P874YN1
* chore: file sidecar, nested-table, and DocCommands locator follow-ups
01M19Z6Z3XQZ03EYNXKKBG5WK7
Copy file name to clipboardExpand all lines: .work/todo.jsonl
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -227,3 +227,8 @@
227
227
{"actor":"unknown","ev":"01M19SW6929ZW4PD39M8JJBH4F","item":"01M18R79ZMKBXK2PGWR6911MJQ","op":"close","set":{"resolution":"Shared TS AI service streams via POST /api/ai/stream; Anthropic SDK with prompt cache, CLI fallback, no second Rust loop","status":"done"},"ts":"2026-08-30T17:01:05Z"}
{"actor":"unknown","ev":"01M19Z6Z3XTY3GZMZEG33THEPF","item":"01M19Z6Z3XQZ03EYNXKKBG5WK7","op":"create","set":{"body":"Packaged Tauri still one-shots Ask AI via run_llm_cli. The shared TS service (Anthropic SDK, streaming, DocCommands tools) only runs in the Bun dev server. Ship a Bun sidecar that hosts that same service so the packaged app streams and uses tools. Do not add a second Rust LLM loop.","discovered_during":"01M18R79ZMKBXK2PGWR6911MJQ","kind":"feature","level":"task","milestone":"v0.6.0","parent":"01M18R79ZMN53CMV76JFHKVEFN","priority":"P2","status":"todo","title":"Bun sidecar so packaged Tauri streams Ask AI","unplanned":true},"ts":"2026-08-30T18:34:21Z"}
233
+
{"actor":"unknown","ev":"01M19Z6Z5DGR9D6DKAHJEFFYT6","item":"01M19Z6Z5DJ54227R1WYVVX2GF","op":"create","set":{"body":"Insert Table (toolbar or /tab) while the caret is already in a table can nest a table, because cells allow block+. E2E always starts from a heading so this is untested. If the caret is in a table, insert after that table instead of nesting. Column resize stays off.","discovered_during":"01M18R79ZMK0DX0PE2DPWMZ60D","kind":"bug","level":"task","milestone":"v0.6.0","parent":"01M18R79ZMN53CMV76JFHKVEFN","priority":"P2","status":"todo","title":"Insert Table nests when the caret is already in a table","unplanned":true},"ts":"2026-08-30T18:34:21Z"}
234
+
{"actor":"unknown","ev":"01M19Z6Z6XHW247EMVAF5JFZ9H","item":"01M19Z6Z6X06VRZM95741Y2748","op":"create","set":{"body":"DocCommands apply sequentially against the updated markdown. A model that emits two replace_ranges whose old_text only exists in the original document can fail the second. Plan every command against the original snapshot (or remap locators) so a batch of tools from one turn all resolve. Try again remains the recovery until this lands.","discovered_during":"01M18R79ZM3BMYZ56C7P874YN1","kind":"bug","level":"task","milestone":"v0.6.0","parent":"01M18R79ZMN53CMV76JFHKVEFN","priority":"P2","status":"todo","title":"DocCommands batch should resolve against the original document","unplanned":true},"ts":"2026-08-30T18:34:21Z"}
Copy file name to clipboardExpand all lines: docs/designs/current_design_doc.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ immediately after exposed product and process gaps; plan
52
52
| Welcome demo datasets outside Motion workspace | Welcome HTML hardcodes `sample-data.csv` / `sample-events.jsonl`. Works when those files are in the open folder (`public/demo` or E2E seed); fails in Tauri when the folder is an unrelated project. |
53
53
| Sidebar tree, sort by date, in-file search |**Tree + content search shipped.** Sort-by-date is still open. |
54
54
| Finder Open With / Share / native chrome |**Shipped in v0.6.0 work** (`docs/plans/2026-08-30-native-mac-app.md`). |
55
-
| Ask AI (selection, `/ai`, preview) |**P1 + streaming shipped** (`docs/plans/2026-08-30-ai-editor.md`). Tables shipping in this slice. DocCommands and dictation remain P2/P3. |
class 01KYQYYN3SBWDT25TC6H3G4EAA,01KYQYYN3T2SSGG33ESEWPXKH8,01KYQYYN3T3VB8RCTMJJ13FK2H,01KYQYYN3T5W49QH05WCCYX7CE,01KYQYYN3T731B57N8NXQ8C0FQ,01KYQYYN3TA69K8848E483HC82,01KYQYYN3TKW93D9SVW07VKFZY,01M18Q560MPAYQJTA0W6F4DAW3,01M18R79ZM3BMYZ56C7P874YN1,01M18R79ZM90HJ0MBG3CX6VW7E,01M18R79ZMN53CMV76JFHKVEFN todo
108
+
class 01KYQYYN3SBWDT25TC6H3G4EAA,01KYQYYN3T2SSGG33ESEWPXKH8,01KYQYYN3T3VB8RCTMJJ13FK2H,01KYQYYN3T5W49QH05WCCYX7CE,01KYQYYN3T731B57N8NXQ8C0FQ,01KYQYYN3TA69K8848E483HC82,01KYQYYN3TKW93D9SVW07VKFZY,01M18Q560MPAYQJTA0W6F4DAW3,01M18R79ZM90HJ0MBG3CX6VW7E,01M18R79ZMN53CMV76JFHKVEFN,01M19Z6Z3XQZ03EYNXKKBG5WK7,01M19Z6Z5DJ54227R1WYVVX2GF,01M19Z6Z6X06VRZM95741Y2748 todo
101
109
```
102
110
103
111
### Hierarchy
@@ -112,15 +120,19 @@ graph TD
112
120
01KYQYYN3TA69K8848E483HC82["📦 Sidebar sort by name or date"]
0 commit comments