0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
comet/apps/zgx/ui
Wing e1894e5522 Plugins: compose can replace a draft's words or write another chat's; draft_of reads any chat's
What #1446 asked for that #1445's draft API didn't cover:
- `zeron.compose(text, { replace = true, session? })` ("compose"): the
  words put in place of the draft's (its chips stay, so a rewrite keeps
  what it carries), and in another chat's draft (`session`). Words alone
  are added after what's there, as ever. Nothing is sent.
- `zeron.draft_of(session)` ("draft"): a promise of any chat's draft as it
  is, as `zeron.draft()` says it (text, chat, chips by kind and name,
  never a path), read once in the host where the app keeps it.

The composer's handling of a plugin's words is one path now (words alone
come as a string). Consent: "compose" says it may replace what you wrote;
"draft" says it sees your words in any chat. Docs, SDK (and its copies).

Tests: src/plugins `compose_takes_words_alone_or_with_replace_and_a_chat`,
`a_chats_draft_is_read_where_it_is_kept_without_paths`;
ui/tests/plugin_compose_replace.test.luau. Full UI suite (1422) and
plugins:: (248) pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-14 19:58:13 -07:00
..
account zgx: "Task completed" chime rings on a finished turn, not on your send 2026-11-14 19:43:53 -07:00
assets Providers: API keys, Claude for Pi, cards like Claude Code's, Hermes fixes 2026-11-13 13:52:59 -07:00
demos zgx demos: the editors' code size is text_size, not an inert size 2026-11-09 05:58:57 -07:00
ds Windows: messages have their time again, and Copy shows without one 2026-11-14 09:07:13 -07:00
locales Plugins: compose can replace a draft's words or write another chat's; draft_of reads any chat's 2026-11-14 19:58:13 -07:00
screens Plugins: compose can replace a draft's words or write another chat's; draft_of reads any chat's 2026-11-14 19:58:13 -07:00
templates/zeron-v2 fix(zgx): a sent pick is cleared by what it holds, not by table identity 2026-11-13 21:26:07 -07:00
tests Plugins: compose can replace a draft's words or write another chat's; draft_of reads any chat's 2026-11-14 19:58:13 -07:00
.luaurc zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
activity_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
activity_rows_fixture.luau zgx: a tool group's calls are rows of a virtual list, each cheap to build 2026-11-09 16:09:51 -07:00
agent_marks_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
app.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
boundary_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
browser_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
cargo_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
chart_fixture.luau zgx: a chart keeps its height under the pointer 2026-11-11 00:44:21 -07:00
chat_fixture.luau Plugins: a plugin can read the composer's draft and set it aside 2026-11-15 04:59:16 +07:00
chimes_fixture.luau zgx: "Task completed" chime rings on a finished turn, not on your send 2026-11-14 19:43:53 -07:00
cloud_stub.luau Merge zeron/zgx-cloud-machines 2026-11-07 19:38:39 -07:00
command_palette_order_fixture.luau Command palette: narrowing a search no longer sorts hits with no place in the list (#1158) 2026-11-03 12:07:11 -07:00
composer_count_fixture.luau zgx: Ctrl+/ finds a composer that replaced another 2026-11-11 11:27:59 -08:00
composer_fixture.luau test(zgx): validate composer rendering and frame stability 2026-11-08 19:51:56 -03:00
composer_metrics_fixture.luau perf(zgx): composer measures only what can change its layout 2026-11-13 21:26:07 -07:00
composer_place_fixture.luau fix(zgx): open Work in submenus immediately on hover 2026-11-08 23:18:55 -07:00
composer_transition_fixture.luau perf(zgx): avoid redundant composer updates while resizing 2026-11-13 20:25:34 -03:00
composer_transition_preview.luau docs(zgx): composer doc follows the pin and the fixes; preview keeps settings 2026-11-13 21:26:07 -07:00
consent.luau zgx: the plugin and template permission windows can be dragged by their top (#1215) 2026-11-03 21:56:32 -07:00
consent_fixture.luau Plugins: a plugin can read the composer's draft and set it aside 2026-11-15 04:59:16 +07:00
date_picker_fixture.luau zgx: Activity on the engine's waits and sleep; Woke, Custom sleep and Stop waiting 2026-11-06 15:27:56 -07:00
demo_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
dictation_fixture.luau zgx dictation: the voice bar's waveform follows the microphone 2026-11-09 23:57:58 -07:00
display_tools_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
editor_menu_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
elapsed_fixture.luau zgx: a running timer shows its seconds past the first minute 2026-11-05 12:17:52 -07:00
engine_update_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
files_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
files_stub.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
forward_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
gallery.luau zgx: the gallery's wallpaper and Zeron v2's draw their effects on the picture's grid too 2026-11-08 21:37:44 +01:00
git_diff_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
git_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
git_pages_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
github_board_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
github_capture_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
github_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
github_viewer_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
hit_cover_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
hit_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
host_toasts_fixture.luau zgx: template and security notices as host toasts in the window's corner (#1195) 2026-11-03 18:01:26 -07:00
intro.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
invite_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
lanes_fixture.luau zgx: @ searches a remote chat's files on its own device 2026-11-10 21:55:18 -07:00
lightbox_fixture.luau zgx: toasts no longer dim the window (#1152) 2026-11-03 11:56:20 -07:00
long_chat_fixture.luau zgx: tests that the transcript draws what it lays out, rows apart 2026-11-10 16:40:33 -07:00
markdown_pictures_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
markdown_stream_fixture.luau zgx: a streaming reply's parse costs a chunk what's new 2026-11-09 02:17:06 -07:00
markdown_window_fixture.luau zgx transcript: the wheel moves the view by what it asked 2026-11-03 22:23:51 -07:00
math_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
math_live_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
md_blocks_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
mermaid_fixture.luau zgx: Mermaid diagrams in replies (#1162) 2026-11-04 13:13:03 -07:00
onboarding_order.luau zgx: who already had Zeron is welcomed once with the intro and their username; sign out opens one setup 2026-11-04 11:19:21 -07:00
panel_context_fixture.luau feat(zgx): drag file and side-chat tabs into composers as context 2026-11-08 19:57:17 -07:00
panel_fixture.luau Merge main 2026-11-06 05:44:07 -07:00
panel_home_fixture.luau zgx: the sidebar opens with Activity; off, by project then device, no empty projects 2026-11-08 16:44:15 -07:00
parity_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
picker_fixture.luau Model picker: solid panel that opens out in one step; reasoning thumb follows the pointer (#1163) 2026-11-03 11:35:24 -07:00
picker_sources_fixture.luau Model picker: say a model's provider where two share a name 2026-11-11 15:11:53 -07:00
picture_aspect_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
plugin_settings_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
plugin_surfaces_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
plugins_devices_fixture.luau zgx: "this computer" on every platform; no box behind Windows' caption buttons in v3 2026-11-04 10:48:31 -07:00
plugins_fixture.luau Plugins launch: export a package, plain-words install errors, tampered sheet 2026-11-09 16:49:50 -07:00
private_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
provider_groups_fixture.luau Provider accounts: review and security fixes 2026-11-13 15:22:37 -07:00
providers_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
registry_stub.luau zgx: "this computer" on every platform; no box behind Windows' caption buttons in v3 2026-11-04 10:48:31 -07:00
reply_images_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
reply_pictures_fixture.luau zgx: "this computer" on every platform; no box behind Windows' caption buttons in v3 2026-11-04 10:48:31 -07:00
reply_pictures_gallery_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
resets_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
review_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
ring_visibility_fixture.luau zgx: a working ring that shows again turns in step with the rest 2026-11-07 08:47:15 -07:00
running_tray_fixture.luau zgx composer deck: alerts, rolling counts, nothing opens itself 2026-11-06 12:50:33 -07:00
segmented_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
sent_pictures_fixture.luau zgx: "this computer" on every platform; no box behind Windows' caption buttons in v3 2026-11-04 10:48:31 -07:00
settings_stub.luau Merge commit 'refs/pull/1223/head' of github-winglee:zeronsh/zeron into zeron/laurent-chips 2026-11-09 23:57:57 -07:00
shell_fixture.luau zgx: the active tab always stands on its wash 2026-11-12 00:44:10 -07:00
sidebar_defaults_fixture.luau zgx: the sidebar opens with Activity; off, by project then device, no empty projects 2026-11-08 16:44:15 -07:00
sidebar_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
table_fixture.luau zgx: tests that every word of a reply's table is in view or can be scrolled to 2026-11-10 18:26:27 -07:00
template_consent.luau zgx: the plugin and template permission windows can be dragged by their top (#1215) 2026-11-03 21:56:32 -07:00
template_consent_fixture.luau Plugins and templates: consent bound to capabilities, engine-held decisions, hardened runtime (#1139) 2026-11-03 11:33:36 -07:00
templates_fixture.luau zgx: themes apart from templates, a Themes page, and plain copy (#1177) 2026-11-03 14:58:45 -07:00
theme.luau zgx: themes apart from templates, a Themes page, and plain copy (#1177) 2026-11-03 14:58:45 -07:00
theme_check_fixture.luau zgx: themes apart from templates, a Themes page, and plain copy (#1177) 2026-11-03 14:58:45 -07:00
themes_fixture.luau Theme tools for agents: list, read, create, edit, delete and use themes (#1188) 2026-11-03 16:17:36 -07:00
themes_fixture_data.luau zgx: themes apart from templates, a Themes page, and plain copy (#1177) 2026-11-03 14:58:45 -07:00
titlebar_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
tool_detail_fixture.luau zgx: a command's output shows its last 10 lines, and all of them from its host (#1192) 2026-11-03 18:13:09 -07:00
tool_pictures_fixture.luau zgx: a tool's result pictures are small thumbnails that open the lightbox 2026-11-03 17:46:33 -08:00
tree_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
updates_fixture.luau zgx updates: a review dialog, Skip, and a panel that fits its rows 2026-11-05 16:19:43 -07:00
viewer_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
visuals_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
visuals_folder_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
visuals_waiting_fixture.luau zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00
voice_fixture.luau zgx: dictation as a feature of the app, with Settings → Voice 2026-11-09 03:36:57 -07:00
waiting_toasts_fixture.luau zgx: a waiting plugin's notice keeps its Review, and stays until it's dealt with (#1217) 2026-11-03 22:23:46 -07:00