opencroc 1.8.1 → 1.8.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 (37) hide show
  1. package/dist/cli/index.js +755 -8
  2. package/dist/cli/index.js.map +1 -1
  3. package/dist/index.d.ts +128 -1
  4. package/dist/index.js +548 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/web/dist/assets/main-Ccg3eDNK.js +1 -0
  7. package/dist/web/dist/assets/office-runtime-B3iNctxE.css +1 -0
  8. package/dist/web/dist/assets/office-runtime-BsCh82Pj.js +183 -0
  9. package/dist/web/dist/assets/pixel-page-3BYGm7dH.js +470 -0
  10. package/dist/web/dist/assets/react-vendor-C8RhVn0h.js +49 -0
  11. package/dist/web/dist/assets/studio-page-BInoyoV2.css +1 -0
  12. package/dist/web/dist/assets/studio-page-o3SCvE_v.js +351 -0
  13. package/dist/web/dist/assets/three-addons-BdrPp04O.js +470 -0
  14. package/dist/web/dist/assets/three-core-CsxM1PCY.js +4057 -0
  15. package/dist/web/dist/index.html +15 -0
  16. package/package.json +11 -2
  17. package/dist/web/index-studio.html +0 -1644
  18. package/dist/web/index-v2-pixel.html +0 -1571
  19. package/dist/web/index.html +0 -573
  20. package/dist/web/js/agents.js +0 -465
  21. package/dist/web/js/camera.js +0 -125
  22. package/dist/web/js/dataviz.js +0 -288
  23. package/dist/web/js/effects.js +0 -345
  24. package/dist/web/js/engine.js +0 -489
  25. package/dist/web/js/office.js +0 -816
  26. package/dist/web/js/state.js +0 -37
  27. package/dist/web/js/ui.js +0 -384
  28. /package/dist/web/{assets → dist}/botreview/char_0.png +0 -0
  29. /package/dist/web/{assets → dist}/botreview/char_1.png +0 -0
  30. /package/dist/web/{assets → dist}/botreview/char_2.png +0 -0
  31. /package/dist/web/{assets → dist}/botreview/coffee-machine.gif +0 -0
  32. /package/dist/web/{assets → dist}/botreview/server.gif +0 -0
  33. /package/dist/web/{assets → dist}/botreview/walls.png +0 -0
  34. /package/dist/web/{assets → dist}/star/desk-v3.webp +0 -0
  35. /package/dist/web/{assets → dist}/star/office_bg_small.webp +0 -0
  36. /package/dist/web/{assets → dist}/star/star-idle-v5.png +0 -0
  37. /package/dist/web/{assets → dist}/star/star-working-spritesheet-grid.webp +0 -0
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN" data-theme="light">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
6
+ <title>OpenCroc Studio</title>
7
+ <script type="module" crossorigin src="/dist/assets/main-Ccg3eDNK.js"></script>
8
+ <link rel="modulepreload" crossorigin href="/dist/assets/react-vendor-C8RhVn0h.js">
9
+ <link rel="modulepreload" crossorigin href="/dist/assets/studio-page-o3SCvE_v.js">
10
+ <link rel="stylesheet" crossorigin href="/dist/assets/studio-page-BInoyoV2.css">
11
+ </head>
12
+ <body>
13
+ <div id="root"></div>
14
+ </body>
15
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencroc",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "AI-native project intelligence platform — universal scanner, knowledge graph, risk analysis, multi-perspective reports, and E2E testing",
5
5
  "keywords": [
6
6
  "project-intelligence",
@@ -39,9 +39,11 @@
39
39
  "LICENSE"
40
40
  ],
41
41
  "scripts": {
42
- "build": "tsup",
42
+ "build": "npm run web:build && tsup",
43
43
  "dev": "tsup --watch",
44
44
  "serve": "node dist/cli/index.js serve",
45
+ "web:build": "vite build --config src/web/vite.config.ts",
46
+ "web:dev": "vite --config src/web/vite.config.ts",
45
47
  "lint": "eslint src/",
46
48
  "lint:fix": "eslint src/ --fix",
47
49
  "test": "vitest run --config vitest.config.ts",
@@ -59,17 +61,24 @@
59
61
  "cosmiconfig": "^9.0.0",
60
62
  "fastify": "^5.8.2",
61
63
  "glob": "^10.3.10",
64
+ "react": "^19.2.4",
65
+ "react-dom": "^19.2.4",
66
+ "three": "^0.183.2",
62
67
  "ts-morph": "^22.0.0"
63
68
  },
64
69
  "devDependencies": {
65
70
  "@eslint/js": "^10.0.1",
66
71
  "@types/node": "^20.11.0",
72
+ "@types/react": "^19.2.14",
73
+ "@types/react-dom": "^19.2.3",
67
74
  "@types/ws": "^8.18.1",
75
+ "@vitejs/plugin-react": "^4.3.4",
68
76
  "eslint": "^10.0.3",
69
77
  "globals": "^17.4.0",
70
78
  "tsup": "^8.0.0",
71
79
  "typescript": "^5.4.0",
72
80
  "typescript-eslint": "^8.57.0",
81
+ "vite": "^5.4.21",
73
82
  "vitest": "^1.6.0"
74
83
  },
75
84
  "peerDependencies": {