oomi-ai 0.2.38 → 0.2.40
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 +24 -14
- package/agent_instructions.md +9 -0
- package/bin/oomi-ai.js +1 -1
- package/lib/openclawPaths.js +27 -18
- package/lib/personaRuntimeManager.js +181 -61
- package/lib/personaRuntimeProcess.js +392 -49
- package/lib/personaRuntimeSupervisor.js +20 -7
- package/lib/scaffold.js +14 -14
- package/openclaw.plugin.json +1 -1
- package/package.json +10 -8
- package/templates/persona-app/package.json +6 -4
- package/templates/persona-app/src/App.css +564 -79
- package/templates/persona-app/src/App.tsx +2 -2
- package/templates/persona-app/src/main.tsx +13 -0
- package/templates/persona-app/src/pages/HomePage.tsx +120 -39
- package/templates/persona-app/src/pages/ScenePage.tsx +2 -15
- package/templates/persona-app/src/persona/notes.ts +3 -1
- package/templates/persona-app/src/spatial.ts +82 -0
- package/templates/persona-app/template.json +1 -1
- package/templates/persona-app/vendor/webspatial/FORK.md +6 -0
- package/templates/persona-app/vendor/webspatial/core-sdk/LICENSE +21 -0
- package/templates/persona-app/vendor/webspatial/core-sdk/dist/iife/index.d.ts +906 -0
- package/templates/persona-app/vendor/webspatial/core-sdk/dist/iife/index.global.js +75 -0
- package/templates/persona-app/vendor/webspatial/core-sdk/dist/iife/index.global.js.map +1 -0
- package/templates/persona-app/vendor/webspatial/core-sdk/dist/index.d.ts +906 -0
- package/templates/persona-app/vendor/webspatial/core-sdk/dist/index.js +3131 -0
- package/templates/persona-app/vendor/webspatial/core-sdk/dist/index.js.map +1 -0
- package/templates/persona-app/vendor/webspatial/core-sdk/package.json +45 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/LICENSE +21 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/default/index.d.ts +365 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/default/index.js +4296 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/default/index.js.map +1 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.d.ts +82 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.js +66 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.js.map +1 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.web.d.ts +2 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.web.js +18 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-dev-runtime.web.js.map +1 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.d.ts +5 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.js +66 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.js.map +1 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.web.d.ts +1 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.web.js +18 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/jsx/jsx-runtime.web.js.map +1 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/web/index.d.ts +365 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/web/index.js +4336 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/dist/web/index.js.map +1 -0
- package/templates/persona-app/vendor/webspatial/react-sdk/package.json +94 -0
- 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(),
|