Skip to content

Branch WIP: hooks system, bench harness, single-exe stub, installer hardening#9

Merged
DemOnJR merged 2 commits into
mainfrom
remaining-branch-work
Jun 26, 2026
Merged

Branch WIP: hooks system, bench harness, single-exe stub, installer hardening#9
DemOnJR merged 2 commits into
mainfrom
remaining-branch-work

Conversation

@DemOnJR

@DemOnJR DemOnJR commented Jun 26, 2026

Copy link
Copy Markdown
Owner

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)

  • Hooks system — Claude Code–style agent lifecycle hooks (PreToolUse/PostToolUse/UserPromptSubmit/Stop). Engine src-tauri/src/ai/hooks.rs, hooks.json config, the Settings → Hooks UI. Files: HOOKS.md, hooks.rs, HooksSection.tsx + wiring in ai/{agent,cron,mod,tools}.rs, commands/ai.rs, lib.rs, SettingsModal.tsx, lib/tauri.ts.
  • Bench harnesssrc-tauri/src/bench.rs, bench/README.md, bench/results/hooks.json.
  • Single-exe installer stub — AV-hardening upgrade. main already shipped an early stub (ddae1a3); this upgrades it to the hardened version: named %LOCALAPPDATA%\xConsole-Setup staging instead of random %TEMP%, a windres-embedded VERSIONINFO + application manifest (stub/app.rc, stub/app.manifest), and optional code-signing in build-single-exe.ps1 — the dropper-heuristic mitigations from the AV work.
  • Config metadata — publisher/copyright in both tauri.conf.json files.

Conflict resolution

main advanced while this branch was open (PR #8 merged + an earlier copy of the stub landed via ddae1a3). I merged origin/main in 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.

⚠️ Status: in progress

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

DemOnJR and others added 2 commits June 26, 2026 20:48
…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
@DemOnJR DemOnJR merged commit 15bf639 into main Jun 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant