Commit Graph
13 Commits
Author SHA1 Message Date
陈大猫 dcc3551fa8 chore(electron): upgrade Electron 42.11.12 -> 45.5.0 with 43-45 breaking change fixes
Upgrades Electron from EOL 42.11.12 to latest stable 45.5.0 (Chromium 156.0.8078.109,
Node 24.22.3, V8 15.6) and migrates all affected Electron 43/44/45 APIs:

- Bump electron to ^45.5.0 and node-abi override to 4.43.0 so @electron/rebuild
  rebuilds node-pty, @serialport/bindings-cpp, and sqlite3 cleanly
- Electron 44 async W3C Clipboard API:
  - Migrate electron/bridges/clipboardFiles.cjs to support async clipboard.read()
    (ClipboardItem[] with text/uri-list file paths and image/* blobs) and
    clipboard.has() alongside legacy sync test mocks, plus new unit tests
  - Await clipboard.readText/writeText/readFiles/readImage/hasImage in
    electron/main/registerBridges.cjs
  - Await clipboard.readText/writeText (handling both sync mocks and Promise
    returns safely) in electron/plugins/hostInteractionService.cjs
- Electron 45 sandboxed preload Buffer removal:
  - Replace Buffer.from with standard Uint8Array in electron/preload/stageUploadFile.cjs
- Electron 44 openAsHidden removal:
  - Remove openAsHidden from app.setLoginItemSettings in electron/autoLaunch.cjs
    and update electron/autoLaunch.test.cjs
- Electron 43 Linux dialog showHiddenFiles removal:
  - Omit showHiddenFiles from dialog.showOpenDialog properties on Linux in
    electron/main/registerBridges.cjs

Verified on Electron 45.5.0:
- npm run build & npm run pack:dir (electron-builder 26.15.2 + all patches)
- Live Electron 45.5.0: async clipboard smoke, terminal-background-rendering,
  tray-panel-layout, plugin-runtime:electron (PLUGIN_RUNTIME_SMOKE_OK),
  and 5-terminal local PTY stress/leak test (0 leaks; peak JS heap 41.28 MiB;
  131 KB sandbox_bundle.js eliminated from sandboxed renderer heap)
- Unit tests: 815/815 test:plugin-runtime + all modified bridge/preload/autoLaunch tests
2026-11-27 16:04:06 +00:00
陈大猫 50b553a1b4 fix(plugins): restore NETCATTY_PLUGIN_DEV gate and harden plugin platform capabilities (#4461) 2026-11-26 23:26:18 +08:00
陈大猫 f4a087e890 feat(plugins): add host-rendered IDE primitives, STARTTLS/SSH bindings, file/secret APIs, and pooled image rasterizer (#4437)
- Add host-rendered native IDE primitives (PluginCodeEditor/Monaco, PluginDataGrid/@tanstack/react-virtual, PluginSplitPane, PluginErCanvas) with Shadow DOM slot projection (zero iframes, zero plugin JS in renderer)
- Expand Remote DOM budgets, expose full 22 Netcatty semantic CSS tokens, add dblclick/contextmenu/scroll/selection events, cursor-anchored PluginPopover, database theme icon, and full-bleed chrome flag
- Add dynamic user-approved TCP/TLS byte streams (incl. localhost opt-in blocking internal control ports), in-band STARTTLS upgrade with cert fingerprint confirmation, durable revocable Vault SSH host bindings, plugin-owned encrypted secrets, native ui.openFile/saveFile streaming handles, 4 MiB clipboard, and prefix-filtered storage.keys
- Optimize plugin view image pipeline with pooled sandboxed rasterizer window (auto-destroyed on idle/error/dispose), LRU version+hash cache in PluginViewResources, transient failure eviction in HostDrawnViewHost, renderer-side session deduplication, and RemoteImageElement cache + retry
- Temporarily enable plugin host by default in hostBootstrap.cjs (marked TODO(revert), opt-out via NETCATTY_PLUGIN_DEV=0)
2026-11-26 17:52:27 +08:00
陈大猫 8930270820 perf(plugins): arm TerminalSelectionAuthority expiry timer lazily only while handles or dialogs are active (#4399) 2026-11-25 22:03:23 +08:00
陈大猫 d4a39ad2c6 feat(plugins): add bounded SSH host byte streams (network.hostStream) (#4297)
* feat(plugins): add bounded SSH host byte streams (network.hostStream)

* fix(plugins): route plugin-stream SSH host-key verification and cancel on abort
2026-11-23 18:42:03 +08:00
陈奇 643e71b17b feat(plugins): default declared capabilities to allow with scoped policy controls 2026-10-27 02:28:08 +00:00
陈奇 bbcf9c01c3 Merge verified terminal selection and inert draft correction into acceptance 2026-10-26 20:08:08 +00:00
陈奇 3cfc7db371 feat(plugins): complete selected terminal sharing and inert input drafts 2026-10-26 18:42:37 +00:00
binaricat ccfe41f39a feat(plugins): prepare host action service and renderer execution 2026-10-26 15:41:42 +00:00
陈奇 3cdc97782e wip(plugins): save selected-terminal sharing authority and contract 2026-10-26 13:04:31 +00:00
陈奇 0a692dfc72 fix(plugins): bound interactive commands and cancel orphan host prompts 2026-10-26 09:53:25 +00:00
陈奇 d4ca123999 fix(plugins): preserve input fidelity and native permission focus handoff 2026-10-26 09:06:53 +00:00
陈奇 71d455d5de feat(plugins): add host text dialogs and explicit clipboard sharing 2026-10-26 08:05:02 +00:00