Branch WIP: hooks system, bench harness, single-exe stub, installer hardening#9
Merged
Conversation
…b, installer hardening Bundles the work-in-progress on this branch that was NOT part of the antivirus-manifest PR (#8). These span several features and share wiring files (lib.rs, the ai/* modules, both tauri.conf.json), so they are committed together rather than split line-by-line. - Hooks system: Claude Code-style agent lifecycle hooks (ai/hooks.rs engine; PreToolUse/PostToolUse/UserPromptSubmit/Stop wiring; hooks.json config; the Settings -> Hooks UI). Files: HOOKS.md, src-tauri/src/ai/hooks.rs, src/components/settings/sections/HooksSection.tsx, plus wiring in ai/{agent,cron,mod,tools}.rs, commands/ai.rs, lib.rs, SettingsModal.tsx, lib/tauri.ts. - Bench harness: src-tauri/src/bench.rs, bench/README.md, bench/results/hooks.json. - Single-exe installer stub: installer/stub/ + installer/build-single-exe.ps1 (self-extracting GNU launcher; version/manifest metadata to reduce AV dropper heuristics). - Installer reliability + config metadata: installer/src/install.rs hardening, installer/Cargo.{toml,lock}, and publisher/copyright metadata in both tauri.conf.json files. NOTE: in-progress — review each feature for completeness before merging. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts: # installer/build-single-exe.ps1 # installer/stub/build.rs # installer/stub/src/main.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The remaining in-progress work on the branch that was not part of the antivirus-manifest PR (#8, now merged to main). Conflicts with main have been resolved (see below), so this PR now cleanly contains just the remaining work.
What's here (vs current
main)PreToolUse/PostToolUse/UserPromptSubmit/Stop). Enginesrc-tauri/src/ai/hooks.rs,hooks.jsonconfig, the Settings → Hooks UI. Files:HOOKS.md,hooks.rs,HooksSection.tsx+ wiring inai/{agent,cron,mod,tools}.rs,commands/ai.rs,lib.rs,SettingsModal.tsx,lib/tauri.ts.src-tauri/src/bench.rs,bench/README.md,bench/results/hooks.json.mainalready shipped an early stub (ddae1a3); this upgrades it to the hardened version: named%LOCALAPPDATA%\xConsole-Setupstaging instead of random%TEMP%, awindres-embedded VERSIONINFO + application manifest (stub/app.rc,stub/app.manifest), and optional code-signing inbuild-single-exe.ps1— the dropper-heuristic mitigations from the AV work.tauri.conf.jsonfiles.Conflict resolution
mainadvanced while this branch was open (PR #8 merged + an earlier copy of the stub landed viaddae1a3). I mergedorigin/mainin and, for the three conflicting stub files (build-single-exe.ps1,stub/build.rs,stub/src/main.rs), kept this branch's version — it is a strict superset of main's (adds the AV hardening: named staging, windres metadata, signing). Net diff is now just the items above.This is work-in-progress committed from the working tree — the hooks and bench features have not been reviewed for completeness or verified to build as a set in this pass. The stub was build-verified earlier this session. Review each feature before merging.
🤖 Generated with Claude Code