mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-26 19:07:17 +00:00
- 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)
27 lines
831 B
TypeScript
27 lines
831 B
TypeScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
|
|
import { selectPluginThemeTokens } from './pluginContributionEnvironment.ts';
|
|
|
|
test('plugin theme tokens come from the themed app surface style', () => {
|
|
assert.deepEqual(selectPluginThemeTokens({
|
|
'--background': '220 10% 10%',
|
|
'--foreground': '0 0% 98%',
|
|
'--card': '220 10% 12%',
|
|
'--primary': '210 90% 55%',
|
|
'--destructive': '0 84% 60%',
|
|
'--radius': '0.5rem',
|
|
'--font-mono': '"JetBrains Mono", monospace',
|
|
colorScheme: 'dark',
|
|
'--unknown-plugin-token': 'ignored',
|
|
}), {
|
|
'--background': '220 10% 10%',
|
|
'--foreground': '0 0% 98%',
|
|
'--card': '220 10% 12%',
|
|
'--primary': '210 90% 55%',
|
|
'--destructive': '0 84% 60%',
|
|
'--radius': '0.5rem',
|
|
'--font-mono': '"JetBrains Mono", monospace',
|
|
});
|
|
});
|