tavern-harness 0.1.2 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/main.tsx +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tavern-harness",
3
- "version": "0.1.2",
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
  });