vzcode 2.35.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/assets/buildWorker-BZlya278.js +687 -0
- package/dist/assets/index-DT8aFBKg.js +356 -0
- package/dist/assets/index-DyMLoJaw.css +1 -0
- package/dist/assets/{worker-D8p1JlHW.js → worker-1oQYaz-F.js} +251 -251
- package/dist/assets/worker-BfgPD8zR.js +125 -0
- package/dist/assets/{worker-k7HZ3t-V.js → worker-CoJaqtpi.js} +12 -12
- package/dist/index.html +2 -2
- package/dist/ot.js +180 -2
- package/dist/server/createServer.js +281 -0
- package/dist/server/index.js +6 -269
- package/package.json +14 -6
- package/src/client/AIAssist/AIAssistWidget/index.tsx +2 -2
- package/src/client/AIAssist/AIAssistWidget/style.scss +8 -8
- package/src/client/AIAssist/Spinner.jsx +2 -2
- package/src/client/App/style.scss +6 -9
- package/src/client/CodeEditor/getOrCreateEditor.tsx +1 -15
- package/src/client/CodeEditor/style.scss +13 -13
- package/src/client/CodeErrorOverlay/index.tsx +1 -1
- package/src/client/CodeErrorOverlay/style.scss +3 -3
- package/src/client/ImageViewer/style.scss +6 -6
- package/src/client/RunCodeWidget/index.tsx +3 -3
- package/src/client/RunCodeWidget/style.scss +2 -2
- package/src/client/TabList/Tab.tsx +2 -2
- package/src/client/TabList/style.scss +6 -5
- package/src/client/VZKeyboardShortcutsDoc.tsx +4 -4
- package/src/client/VZSettings.tsx +27 -19
- package/src/client/VZSidebar/AIChatWrapper.tsx +85 -0
- package/src/client/VZSidebar/CreateDirModal.tsx +3 -3
- package/src/client/VZSidebar/CreateFileModal.tsx +3 -3
- package/src/client/VZSidebar/DeleteConfirmationModal.tsx +2 -2
- package/src/client/VZSidebar/Item.tsx +4 -4
- package/src/client/VZSidebar/Search.tsx +2 -2
- package/src/client/VZSidebar/VisualEditor/VisualEditor.tsx +13 -9
- package/src/client/VZSidebar/VisualEditor/colorUtils.ts +14 -0
- package/src/client/VZSidebar/VoiceChatModal.tsx +1 -1
- package/src/client/VZSidebar/index.tsx +25 -22
- package/src/client/VZSidebar/styles.scss +99 -98
- package/src/client/main.jsx +1 -0
- package/src/client/standalone.scss +6 -0
- package/src/client/ui.scss +317 -0
- package/src/client/ui.tsx +323 -0
- package/src/client/useOpenDirectories.ts +0 -1
- package/src/llm-streaming-server/README.md +5 -3
- package/src/llm-streaming-ui/README.md +44 -42
- package/src/llm-streaming-ui/components/ChatInput.tsx +31 -67
- package/src/llm-streaming-ui/components/DiffView.scss +1 -1
- package/src/llm-streaming-ui/components/DiffView.tsx +6 -24
- package/src/llm-streaming-ui/components/FileEditingIndicator.tsx +1 -1
- package/src/llm-streaming-ui/components/Message.tsx +11 -27
- package/src/llm-streaming-ui/components/MessageList.tsx +15 -29
- package/src/llm-streaming-ui/components/Spinner.scss +37 -0
- package/src/llm-streaming-ui/components/Spinner.tsx +59 -0
- package/src/llm-streaming-ui/components/icons.tsx +68 -0
- package/src/llm-streaming-ui/components/index.tsx +34 -30
- package/src/llm-streaming-ui/components/styles.scss +127 -75
- package/src/llm-streaming-ui/index.ts +13 -0
- package/src/llm-streaming-ui/props.ts +137 -0
- package/src/ot.ts +221 -4
- package/src/server/createServer.ts +413 -0
- package/src/server/index.ts +8 -333
- package/dist/assets/bootstrap-icons-BeopsB42.woff +0 -0
- package/dist/assets/bootstrap-icons-mSm7cUeB.woff2 +0 -0
- package/dist/assets/buildWorker-DylWm2VX.js +0 -687
- package/dist/assets/index-Dyt9tpmu.css +0 -1
- package/dist/assets/index-rg2Zvfo_.js +0 -364
- package/dist/assets/worker-b9bkZkXK.js +0 -116
- package/src/client/AIAssist/AIAssistCodeMirrorKeyMap.ts +0 -42
- package/src/client/AIAssist/generateFilesContext.ts +0 -25
- package/src/client/AIAssist/index.ts +0 -2
- package/src/client/CodeEditor/InteractiveWidgets/highlightWidgets.ts +0 -79
- package/src/client/bootstrap.ts +0 -26
- /package/src/{client → llm-streaming-ui}/hooks/useAutoScroll.ts +0 -0
- /package/src/{client → llm-streaming-ui}/utils/scrollUtils.ts +0 -0
package/README.md
CHANGED
|
@@ -521,3 +521,33 @@ VZCode is inspired by [VizHub v2](https://github.com/vizhub-core/vizhub/). VizHu
|
|
|
521
521
|
- [VizHub Discord](https://discord.com/invite/wbtJ7SCtYr)
|
|
522
522
|
- [GitHub Repository](https://github.com/vizhub-core/vzcode)
|
|
523
523
|
- [Discord Channel within RCOS](https://discord.com/channels/738593165438746634/1066068656045441044)
|
|
524
|
+
|
|
525
|
+
### Embedded editor styling
|
|
526
|
+
|
|
527
|
+
VZCode uses native React controls and editor-scoped SCSS. Importing the editor
|
|
528
|
+
does not inject Bootstrap, Bootstrap Icons, or VizHub UI CSS. The editor's
|
|
529
|
+
colors are exposed as overridable `--vz-color-*` variables on the `.app`
|
|
530
|
+
container. `src/client/App/style.scss` does not reset `html`, `body`,
|
|
531
|
+
or `:root`; the standalone app loads `src/client/standalone.scss` to size
|
|
532
|
+
its own document.
|
|
533
|
+
|
|
534
|
+
Hosts like VizHub AI Studio can continue importing
|
|
535
|
+
`vzcode/src/client/App/style.scss` in their client editor chunk.
|
|
536
|
+
The controls and dialogs are styled without requiring a host framework.
|
|
537
|
+
|
|
538
|
+
#### Legacy appearance compatibility
|
|
539
|
+
|
|
540
|
+
The Bootstrap-free editor keeps the original VizHub appearance. The scoped
|
|
541
|
+
palette in `src/client/ui.scss` is derived from
|
|
542
|
+
[`vizhub-ui/scss/_variables.scss`](https://github.com/vizhub-studio/vizhub-ui/blob/main/scss/_variables.scss)
|
|
543
|
+
and the font roles from
|
|
544
|
+
[`vizhub-ui/scss/_overrides.scss`](https://github.com/vizhub-studio/vizhub-ui/blob/main/scss/_overrides.scss):
|
|
545
|
+
Inter for UI text, Poppins for headings, and Roboto Mono for code.
|
|
546
|
+
It retains the original neutral navy scale (`#1f2022`, `#202e46`,
|
|
547
|
+
`#576786`, `#bdc7dc`) and action blue (`#3866e9`).
|
|
548
|
+
|
|
549
|
+
All tokens are VZCode-local; hosts must not load the retired `vizhub-ui`
|
|
550
|
+
stylesheet. Native modal controls use the original light VizHub palette;
|
|
551
|
+
file-search controls retain the dark editor theme. The
|
|
552
|
+
`test/editorStyleIsolation.test.ts` checks token values and forbids
|
|
553
|
+
Bootstrap-era utility classes in production code.
|