oomi-ai 0.2.39 → 0.2.41

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 (45) hide show
  1. package/README.md +5 -3
  2. package/lib/personaRuntimeManager.js +21 -17
  3. package/lib/personaRuntimeProcess.js +417 -49
  4. package/lib/scaffold.js +14 -14
  5. package/openclaw.plugin.json +1 -1
  6. package/package.json +10 -8
  7. package/templates/persona-app/package.json +6 -4
  8. package/templates/persona-app/src/App.css +562 -81
  9. package/templates/persona-app/src/App.tsx +2 -2
  10. package/templates/persona-app/src/main.tsx +13 -0
  11. package/templates/persona-app/src/pages/HomePage.tsx +117 -36
  12. package/templates/persona-app/src/pages/ScenePage.tsx +2 -15
  13. package/templates/persona-app/src/persona/notes.ts +3 -1
  14. package/templates/persona-app/src/spatial.ts +82 -0
  15. package/templates/persona-app/template.json +1 -1
  16. package/templates/persona-app/vendor/webspatial/FORK.md +6 -0
  17. package/templates/persona-app/vendor/webspatial/core-sdk/LICENSE +21 -0
  18. package/templates/persona-app/vendor/webspatial/core-sdk/dist/iife/index.d.ts +906 -0
  19. package/templates/persona-app/vendor/webspatial/core-sdk/dist/iife/index.global.js +75 -0
  20. package/templates/persona-app/vendor/webspatial/core-sdk/dist/iife/index.global.js.map +1 -0
  21. package/templates/persona-app/vendor/webspatial/core-sdk/dist/index.d.ts +906 -0
  22. package/templates/persona-app/vendor/webspatial/core-sdk/dist/index.js +3131 -0
  23. package/templates/persona-app/vendor/webspatial/core-sdk/dist/index.js.map +1 -0
  24. package/templates/persona-app/vendor/webspatial/core-sdk/package.json +45 -0
  25. package/templates/persona-app/vendor/webspatial/react-sdk/LICENSE +21 -0
  26. package/templates/persona-app/vendor/webspatial/react-sdk/dist/default/index.d.ts +365 -0
  27. package/templates/persona-app/vendor/webspatial/react-sdk/dist/default/index.js +4167 -0
  28. package/templates/persona-app/vendor/webspatial/react-sdk/dist/default/index.js.map +1 -0
  29. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.d.ts +82 -0
  30. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.js +66 -0
  31. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.js.map +1 -0
  32. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.web.d.ts +2 -0
  33. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.web.js +18 -0
  34. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.web.js.map +1 -0
  35. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.d.ts +5 -0
  36. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.js +66 -0
  37. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.js.map +1 -0
  38. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.web.d.ts +1 -0
  39. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.web.js +18 -0
  40. package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.web.js.map +1 -0
  41. package/templates/persona-app/vendor/webspatial/react-sdk/dist/web/index.d.ts +365 -0
  42. package/templates/persona-app/vendor/webspatial/react-sdk/dist/web/index.js +4207 -0
  43. package/templates/persona-app/vendor/webspatial/react-sdk/dist/web/index.js.map +1 -0
  44. package/templates/persona-app/vendor/webspatial/react-sdk/package.json +94 -0
  45. package/templates/persona-app/vite.config.ts +13 -0
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@webspatial/react-sdk",
3
+ "version": "1.2.1",
4
+ "description": "React components for WebSpatial",
5
+ "main": "./dist/default/index.js",
6
+ "type": "module",
7
+ "types": "./dist/default/index.d.ts",
8
+ "exports": {
9
+ ".": "./dist/default/index.js",
10
+ "./jsx-runtime": {
11
+ "react-server": "./dist/jsx/jsx-runtime.web.js",
12
+ "default": "./dist/jsx/jsx-runtime.js"
13
+ },
14
+ "./jsx-dev-runtime": {
15
+ "react-server": "./dist/jsx/jsx-dev-runtime.web.js",
16
+ "default": "./dist/jsx/jsx-dev-runtime.js"
17
+ },
18
+ "./default": "./dist/default/index.js",
19
+ "./default/jsx-dev-runtime": {
20
+ "react-server": "./dist/jsx/jsx-dev-runtime.web.js",
21
+ "default": "./dist/jsx/jsx-dev-runtime.js"
22
+ },
23
+ "./default/jsx-runtime": {
24
+ "react-server": "./dist/jsx/jsx-runtime.web.js",
25
+ "default": "./dist/jsx/jsx-runtime.js"
26
+ },
27
+ "./web": "./dist/web/index.js",
28
+ "./web/jsx-dev-runtime": "./dist/jsx/jsx-dev-runtime.web.js",
29
+ "./web/jsx-runtime": "./dist/jsx/jsx-runtime.web.js"
30
+ },
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "scripts": {
35
+ "test": "tsc -p ./tsconfig.json && vitest run",
36
+ "dev": "tsup --watch",
37
+ "build": "tsup",
38
+ "start": "npm run dev",
39
+ "format": "npx prettier --write 'src/**/*.ts' 'src/**/*.tsx' || true"
40
+ },
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/webspatial/webspatial-sdk.git",
44
+ "directory": "packages/react"
45
+ },
46
+ "author": "",
47
+ "license": "MIT",
48
+ "bugs": {
49
+ "url": "https://github.com/webspatial/webspatial-sdk/issues"
50
+ },
51
+ "homepage": "https://github.com/webspatial/webspatial-sdk#readme",
52
+ "peerDependencies": {
53
+ "@webspatial/core-sdk": "^1.1.0",
54
+ "react": ">=18.0.0",
55
+ "react-dom": ">=18.0.0",
56
+ "html2canvas": "^1.4.1"
57
+ },
58
+ "peerDependenciesMeta": {
59
+ "@webspatial/core-sdk": {
60
+ "optional": false
61
+ },
62
+ "react": {
63
+ "optional": true
64
+ },
65
+ "react-dom": {
66
+ "optional": true
67
+ },
68
+ "html2canvas": {
69
+ "optional": true
70
+ }
71
+ },
72
+ "devDependencies": {
73
+ "@testing-library/jest-dom": "^6.4.8",
74
+ "@testing-library/react": "^16.0.0",
75
+ "@types/node": "^22.5.5",
76
+ "@types/react": "^18.3.3",
77
+ "@types/react-dom": "^18.3.0",
78
+ "@types/unist": "^3.0.2",
79
+ "@vitest/coverage-v8": "^2.0.4",
80
+ "@vitejs/plugin-react": "^4.3.1",
81
+ "react": "^18.2.0",
82
+ "react-dom": "^18.2.0",
83
+ "esbuild": "^0.23.1",
84
+ "esbuild-plugin-d.ts": "^1.3.1",
85
+ "esbuild-plugin-define": "^0.5.0",
86
+ "jsdom": "^24.1.1",
87
+ "tiny-glob": "^0.2.9",
88
+ "tsup": "^8.4.0",
89
+ "typedoc": "^0.26.5",
90
+ "typedoc-plugin-markdown": "^4.2.2",
91
+ "typescript": "^5.5.4",
92
+ "vitest": "^2.0.4"
93
+ }
94
+ }
@@ -3,7 +3,20 @@ import webSpatial from "@webspatial/vite-plugin";
3
3
  import { defineConfig } from "vite";
4
4
  import { createHtmlPlugin } from "vite-plugin-html";
5
5
 
6
+ const isAvp = process.env.XR_ENV === "avp";
7
+
6
8
  export default defineConfig({
9
+ optimizeDeps: isAvp
10
+ ? {
11
+ exclude: [
12
+ "@webspatial/core-sdk",
13
+ "@webspatial/react-sdk",
14
+ "@webspatial/react-sdk/default",
15
+ "@webspatial/react-sdk/default/jsx-runtime",
16
+ "@webspatial/react-sdk/default/jsx-dev-runtime",
17
+ ],
18
+ }
19
+ : undefined,
7
20
  plugins: [
8
21
  react(),
9
22
  webSpatial(),