claude-live 3.0.0 → 3.0.1
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 +1 -8
- package/client/dist/assets/{AgentDemoScene-DmPViizX.js → AgentDemoScene-CXlvncAb.js} +1 -1
- package/client/dist/assets/ColonizationDemoScene-Cils_y13.js +1 -0
- package/client/dist/assets/{EffectDemoScene-DiyNw7OL.js → EffectDemoScene-BXqCMwER.js} +1 -1
- package/client/dist/assets/{SakuraPage-BuSWb222.js → SakuraPage-BfD0y3D9.js} +10 -10
- package/client/dist/assets/{index-TkH4paIm.css → index-nnbWctP_.css} +1 -1
- package/client/dist/assets/index-zmiMo1Db.js +4430 -0
- package/client/dist/index.html +2 -2
- package/package.json +1 -1
- package/server/index.js +14 -0
- package/client/dist/assets/index-D3vltDuF.js +0 -4446
package/client/dist/index.html
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
body { background: #080808; overflow: hidden; }
|
|
12
12
|
#root { width: 100vw; height: 100vh; }
|
|
13
13
|
</style>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-zmiMo1Db.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/index-nnbWctP_.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="root"></div>
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -32,6 +32,11 @@ const MIME = {
|
|
|
32
32
|
const clients = new Set()
|
|
33
33
|
const eventHistory = [] // all events seen since server start
|
|
34
34
|
const MAX_HISTORY = 5000
|
|
35
|
+
const CORS_HEADERS = {
|
|
36
|
+
'Access-Control-Allow-Origin': '*',
|
|
37
|
+
'Access-Control-Allow-Methods': 'GET,POST,OPTIONS',
|
|
38
|
+
'Access-Control-Allow-Headers': 'Content-Type',
|
|
39
|
+
}
|
|
35
40
|
|
|
36
41
|
function filterHistory(events, { sessionId, projectId }) {
|
|
37
42
|
return events.filter(event => {
|
|
@@ -54,6 +59,15 @@ function broadcast(data) {
|
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
const server = createServer((req, res) => {
|
|
62
|
+
for (const [key, value] of Object.entries(CORS_HEADERS)) {
|
|
63
|
+
res.setHeader(key, value)
|
|
64
|
+
}
|
|
65
|
+
if (req.method === 'OPTIONS') {
|
|
66
|
+
res.writeHead(204)
|
|
67
|
+
res.end()
|
|
68
|
+
return
|
|
69
|
+
}
|
|
70
|
+
|
|
57
71
|
const requestUrl = new URL(req.url || '/', 'http://localhost')
|
|
58
72
|
const pathname = requestUrl.pathname
|
|
59
73
|
|