tavern-harness 0.1.1 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tavern-harness",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Tavern Harness — 酒馆模式下的本地 AI Agent 助手(MyAgent-Android 的 Web 复刻)",
5
5
  "private": false,
6
6
  "type": "module",
package/src/main.tsx CHANGED
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom/client';
1
+ import { StrictMode } from 'react';
2
+ import { createRoot } from 'react-dom/client';
3
3
  import App from './App';
4
4
  import { initDatabase } from './db/database';
5
5
  import { applyThemeFromCache } from './theme/theme';
@@ -15,9 +15,9 @@ async function bootstrap() {
15
15
  }
16
16
 
17
17
  bootstrap().then(() => {
18
- ReactDOM.createRoot(document.getElementById('root')!).render(
19
- <React.StrictMode>
18
+ createRoot(document.getElementById('root')!).render(
19
+ <StrictMode>
20
20
  <App />
21
- </React.StrictMode>
21
+ </StrictMode>
22
22
  );
23
23
  });
package/vite.config.ts CHANGED
@@ -263,7 +263,19 @@ function sandboxProxyPlugin(): Plugin {
263
263
  export default defineConfig({
264
264
  plugins: [react(), corsProxyPlugin(), sandboxProxyPlugin()],
265
265
  optimizeDeps: {
266
- include: ['zustand', 'use-sync-external-store/shim/with-selector'],
266
+ include: [
267
+ '@dnd-kit/core',
268
+ '@dnd-kit/sortable',
269
+ '@dnd-kit/utilities',
270
+ 'dexie',
271
+ 'dompurify',
272
+ 'katex',
273
+ 'marked',
274
+ 'react',
275
+ 'react-dom',
276
+ 'use-sync-external-store/shim/with-selector',
277
+ 'zustand',
278
+ ],
267
279
  },
268
280
  server: {
269
281
  port: 5173,