psinetron-opencode-visualizer 1.0.0 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "psinetron-opencode-visualizer",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "index.ts",
5
5
  "description": "OpenCode session visualizer — real-time pixel-art office scene with animated agents",
6
6
  "files": [
@@ -837,21 +837,6 @@ function connect() {
837
837
  }
838
838
 
839
839
  sock.onclose = () => {
840
- // Walk all agents to rest area, then exit
841
- for (const a of agents) {
842
- if (a.state === "walking_to_exit" || a.state === "exiting") continue
843
- if (a.state === "walking" && a.exitingAfterRest) continue
844
- if (a.coffeeSpot >= 0) reservedCoffeeSpots.delete(a.coffeeSpot)
845
- a.deskIndex = -1
846
- a.coffeeSpot = -1
847
- const restPos = randomRestPos()
848
- a.state = "walking"
849
- a.goalState = "rest_area"
850
- a.exitingAfterRest = true
851
- a.path = findPath(a.x, a.y, restPos.x, restPos.y)
852
- a.pathIndex = 0
853
- a.pathProgress = 0
854
- }
855
840
  setTimeout(connect, 2000)
856
841
  }
857
842
  }