@voicethere/agent 0.7.7 → 0.7.8
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.
|
@@ -12121,7 +12121,7 @@ async function loadWorldFromRedis() {
|
|
|
12121
12121
|
}
|
|
12122
12122
|
async function saveWorldToRedis(world) {
|
|
12123
12123
|
if (!redis) return;
|
|
12124
|
-
await redis.
|
|
12124
|
+
await redis.set(REDIS_WORLD_KEY, copyWorldBuffer(world));
|
|
12125
12125
|
}
|
|
12126
12126
|
async function runSimulationTick() {
|
|
12127
12127
|
const now = Date.now();
|
|
@@ -12194,7 +12194,7 @@ async function ensureRedisWorldInitialized() {
|
|
|
12194
12194
|
const existing = await redis.getBuffer(REDIS_WORLD_KEY);
|
|
12195
12195
|
if (!existing || existing.byteLength === 0) {
|
|
12196
12196
|
const empty = createEmptyWorldBuffer();
|
|
12197
|
-
await redis.
|
|
12197
|
+
await redis.set(REDIS_WORLD_KEY, copyWorldBuffer(empty));
|
|
12198
12198
|
}
|
|
12199
12199
|
}
|
|
12200
12200
|
defineAgent({
|
package/package.json
CHANGED
package/templates/game-sync.ts
CHANGED
|
@@ -367,7 +367,7 @@ async function loadWorldFromRedis(): Promise<Float32Array> {
|
|
|
367
367
|
|
|
368
368
|
async function saveWorldToRedis(world: Float32Array): Promise<void> {
|
|
369
369
|
if (!redis) return;
|
|
370
|
-
await redis.
|
|
370
|
+
await redis.set(REDIS_WORLD_KEY, copyWorldBuffer(world));
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
async function runSimulationTick(): Promise<void> {
|
|
@@ -449,7 +449,7 @@ async function ensureRedisWorldInitialized(): Promise<void> {
|
|
|
449
449
|
const existing = await redis.getBuffer(REDIS_WORLD_KEY);
|
|
450
450
|
if (!existing || existing.byteLength === 0) {
|
|
451
451
|
const empty = createEmptyWorldBuffer();
|
|
452
|
-
await redis.
|
|
452
|
+
await redis.set(REDIS_WORLD_KEY, copyWorldBuffer(empty));
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
|