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>
A new "draft" permission lets a plugin read what's being typed in the message box (zeron.draft) and take the whole draft out and put it back later (take_draft, put_draft, swap_draft, drop_draft). Zeron keeps a taken draft itself, so a plugin never sees file paths. This is what a prompt stash needs: write in the wrong chat, set it aside, restore it in the right one.
- plugins-builtin/*, plugins-dev/*: the SDK re-copied from plugins-sdk
(#1290 added accounts.pin to the canonical copy only).
- Zeron v2's record re-blessed: its composer and lane tab already carry
the default's model-default and remote-files fixes; tokens.luau's change
was a comment.
- ds/shortcut_recorder: the platform's command key is written `cmd`, as
commands spell it. Off a Mac, Ctrl+B was recorded `ctrl+b`, so Settings
→ Shortcuts let another command take Toggle sidebar's key. On a Mac
the combinations are written as before.
- Tests that took a Mac's keys for every platform's: the rival plugins'
key (meta is Super off a Mac), the rebinding (Control+Option+T is Super
there), the editor's line-edge keys (End/Home, not Ctrl+arrow), and the
editor's secondary click (the word selected on a Mac only, as zgx has it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
- A4: re-copy apps/zgx/plugins-sdk/zeron.luau into all 14 copies (git,
github, parallax-scenes, 11 plugins-dev examples); 12 lacked the agents
block, all lacked the "project" context fix. examples_tests
`sdk_copies_match_canonical` checks them byte for byte. The beta packaging
(macOS, Linux, Windows) stamps the canonical SDK into each shipped builtin,
so builtins can't ship a stale one. Builtins aren't signed (the engine scans
them as Zeron's own), so nothing to re-sign.
- A6: a `zgx` CI suite (zgx-tests.yml, planned by scripts/ci/plan.py): apps/zgx
unit tests and the Luau UI tests (`zgx test ui`, CLI at the pinned rev) on
macOS and Linux, plus the engine's plugin tests on macOS. Known failures
(10 Rust, 2 Luau About tests) live in scripts/ci/zgx-known-failures.txt;
anything else fails. core-tests also runs engine tests/plugin_services.rs.
No Windows job yet.
- B13: plugins-dev/install.sh refuses ~/.zeron as well as ~/.comet-native
(and anything under them, symlinks resolved); its default is every example.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Plugins and templates: consent bound to capabilities, engine-held decisions, hardened runtime
- Consent binds a capability digest (programs, MCP servers, tools, network hosts, services, module replacement); it re-asks only when that grows. UI targets never ask.
- "You" is this device's key; code-running powers are never auto-granted; keys are revoked on sign-out and rotation, listed and revocable in Settings, and new keys are announced.
- Decisions and signing need a one-time review the consent window holds; agents get a scoped IPC token; agent-created chats can't exceed their creator's access; peers can't allow; relayed calls carry the edge-verified device.
- Runtime: text-only Luau, one command policy (env allow-list, hardened git/gh), plugin network blocks private ranges unless declared, safe path joins, verified snapshots, hardened built-in Git service.
- App: ui.change can't override modules, Settings sealed, decision controls protected, plugins get ids and resolve data through grants, consent sheet hardened, dev switches debug-only.
- Templates: unapproved templates run as previews with Keep/Revert, a host-owned way back on every platform, safe mode, no builtin-theme spoofing, increasing versions.
- Edge: step-up for key registration and account deletion, key list/revoke, reserved names, invitation/image/admin limits, relay device stamp.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
* Signing keys register on the first sign-in, revocations act at once, setup and layout fixes
- A sign-in registers this device's key with its fresh ticket, also on a local-mode engine; new keys are noticed at start; a revoked own key rotates at once (peers are told), drops code-running grants and shows a notice.
- Calls during unfinished account setup answer setup_incomplete; plugins and templates load once an organization is chosen.
- The host strip's wrapper fills the window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
* Engine: only plugin and template calls answer setup_incomplete during onboarding; everything else waits as before
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
* zgx: Zeron's interface on zgx (app, design system, plugins, onboarding, Zeron Preview)
A new desktop app in apps/zgx: Zeron's interface written in Luau on zgx,
its design system, built-in plugins (Git, GitHub, Parallax scenes) and
theme templates, plus the engine and edge work it needs (plugin services
and agent tools, the agent registry, project icons, profile, organisation
admin, onboarding, plugin signing keys) and a separate Zeron Preview
package and workflow (preview-v* tags, off until enabled).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix Linux and Windows builds: Listener's signing_in, Command::as_std on Windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Engine: plugin watchers ignore reads (inotify loop), per-component snapshot paths, Windows create-over-folder is DestinationExists
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* zgx as a beta channel of Zeron.app; shared CLI, launch and notify crates; update channels
- Update channels (stable/beta) with semver prereleases, cross-channel installs, ZeronEngineVersion and a macOS 13 floor for beta; "Get beta updates" in the current app's Check for Updates.
- The command line moves into crates/cli and engine start-up into crates/launch, shared by the current app, zeron-engine and zgx; zgx hands engine commands to the bundle's Zeron Engine helper.
- zgx beta packaging and .github/workflows/zgx-beta.yml (beta-v* tags, gated by ZGX_BETA_ENABLED); the separate Preview packaging is removed.
- Templates install from links with updates, an Unverified badge for unknown authors, the Archived settings page, the Cloud repository picker, palette sub-steps without scope tabs.
- Git plugin refreshes on file changes; GitHub plugin batches, tiers and throttles its polling; failed PR watches retry with backoff.
- zgx f81d5e99.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* zgx: registry agents' sign-in state, methods and icons; PR badges isolated per session
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Harness: registry sign-in uses the crate's Child (Windows build)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>