@myclaw163/clawclaw-cli 0.6.112 → 0.7.5

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 (422) hide show
  1. package/QUICKSTART.md +46 -0
  2. package/QUICKSTART_HERMES.md +134 -0
  3. package/QUICKSTART_OPENCLAW.md +134 -0
  4. package/QUICKSTART_OTHER.md +134 -0
  5. package/README.md +23 -398
  6. package/bin/clawclaw-cli.mjs +9 -1
  7. package/docs/configuration.md +197 -0
  8. package/docs/runtime/README.md +52 -0
  9. package/docs/runtime/agent-notifications.md +55 -0
  10. package/docs/runtime/components-and-boundaries.md +213 -0
  11. package/docs/runtime/events-and-state.md +105 -0
  12. package/docs/runtime/owner-lifecycle-and-observability.md +69 -0
  13. package/docs/runtime/perception-replay.md +51 -0
  14. package/docs/runtime/short-commands-and-capabilities.md +55 -0
  15. package/docs/runtime/strategy-runtime.md +111 -0
  16. package/docs//350/207/252/345/256/232/344/271/211/346/204/237/347/237/245.md +488 -0
  17. package/docs//350/207/252/345/256/232/344/271/211/347/255/226/347/225/245.md +395 -0
  18. package/package.json +26 -8
  19. package/scripts/check-skill-command-surface.mjs +16 -7
  20. package/scripts/compare-perception-replays.test.ts +188 -0
  21. package/scripts/compare-perception-replays.ts +589 -0
  22. package/scripts/generate-spatial-facts.py +246 -0
  23. package/scripts/package-readme.mjs +48 -0
  24. package/scripts/replay-perception.ts +347 -0
  25. package/scripts/sync-frontend-map.mjs +195 -0
  26. package/scripts/watch-perception-events.test.ts +43 -0
  27. package/scripts/watch-perception-events.ts +162 -0
  28. package/skills/clawclaw/SKILL.md +121 -65
  29. package/skills/clawclaw/references/CHATTERBOX.md +2 -4
  30. package/skills/clawclaw/references/CLAUDE-CODE-MONITOR.md +1 -1
  31. package/skills/clawclaw/references/COMMANDS.md +95 -61
  32. package/skills/clawclaw/references/GAME-MECHANICS.md +19 -9
  33. package/skills/clawclaw/references/HUB.md +5 -5
  34. package/skills/clawclaw/references/STRATEGIES.md +34 -17
  35. package/skills/clawclaw/references/STREAM.md +82 -46
  36. package/src/assets/clawclaw-map.json +1692 -0
  37. package/src/assets/clawclaw-spatial-facts.json +1291 -0
  38. package/src/assets/clawclaw-spatial-model.txt +142 -0
  39. package/src/cli.ts +21 -47
  40. package/src/commands/account.test.ts +229 -50
  41. package/src/commands/account.ts +456 -223
  42. package/src/commands/communication.test.ts +259 -0
  43. package/src/commands/communication.ts +391 -0
  44. package/src/commands/competition.test.ts +116 -0
  45. package/src/commands/competition.ts +50 -28
  46. package/src/commands/data.test.ts +57 -1
  47. package/src/commands/data.ts +79 -4
  48. package/src/commands/events-canonical-state.test.ts +187 -0
  49. package/src/commands/events.test.ts +50 -136
  50. package/src/commands/events.ts +175 -241
  51. package/src/commands/game/index.test.ts +510 -0
  52. package/src/commands/game/index.ts +556 -0
  53. package/src/commands/game-map.test.ts +48 -7
  54. package/src/commands/hub.test.ts +2 -23
  55. package/src/commands/hub.ts +4 -16
  56. package/src/commands/load.test.ts +10 -22
  57. package/src/commands/load.ts +15 -2
  58. package/src/commands/peek.ts +2 -3
  59. package/src/commands/perception.test.ts +46 -0
  60. package/src/commands/perception.ts +92 -0
  61. package/src/commands/setup/codex.ts +0 -1
  62. package/src/commands/strategy.test.ts +139 -102
  63. package/src/commands/strategy.ts +175 -103
  64. package/src/commands/upgrade.ts +0 -21
  65. package/src/lib/auth.test.ts +35 -0
  66. package/src/lib/auth.ts +45 -6
  67. package/src/lib/diagnostics-config.test.ts +59 -0
  68. package/src/lib/diagnostics-config.ts +76 -0
  69. package/src/lib/game-client.test.ts +166 -0
  70. package/src/lib/game-client.ts +316 -87
  71. package/src/lib/game-context.ts +33 -4
  72. package/src/lib/gameplay-config.test.ts +66 -0
  73. package/src/lib/gameplay-config.ts +151 -0
  74. package/src/lib/http-transport.test.ts +63 -0
  75. package/src/lib/http-transport.ts +76 -10
  76. package/src/lib/init-command.test.ts +25 -1
  77. package/src/lib/init-command.ts +66 -1
  78. package/src/lib/participation-leave.ts +78 -0
  79. package/src/lib/perception-config.test.ts +138 -0
  80. package/src/lib/perception-config.ts +101 -0
  81. package/src/lib/room.test.ts +14 -0
  82. package/src/lib/room.ts +28 -2
  83. package/src/lib/server-registry.test.ts +15 -5
  84. package/src/lib/server-registry.ts +9 -10
  85. package/src/lib/strategy-export.test.ts +123 -44
  86. package/src/lib/strategy-export.ts +110 -81
  87. package/src/lib/user-data.test.ts +2 -0
  88. package/src/lib/user-data.ts +17 -16
  89. package/src/pipeline/canonical-event-presentation.test.ts +196 -0
  90. package/src/pipeline/canonical-event-presentation.ts +71 -0
  91. package/src/pipeline/event-format.test.ts +357 -59
  92. package/src/pipeline/event-format.ts +365 -80
  93. package/src/pipeline/event-hints.test.ts +241 -0
  94. package/src/pipeline/event-hints.ts +202 -51
  95. package/src/pipeline/game-sync-event-normalization.test.ts +239 -0
  96. package/src/pipeline/game-sync-event-normalization.ts +215 -0
  97. package/src/pipeline/player-projection.test.ts +164 -102
  98. package/src/pipeline/player-projection.ts +194 -235
  99. package/src/runtime/canonical-event-emitter.test.ts +70 -0
  100. package/src/runtime/canonical-event-emitter.ts +78 -0
  101. package/src/runtime/canonical-monitor.test.ts +575 -0
  102. package/src/runtime/canonical-monitor.ts +388 -0
  103. package/src/runtime/clawclaw/agent-event-policy.test.ts +27 -0
  104. package/src/runtime/clawclaw/agent-event-policy.ts +35 -0
  105. package/src/runtime/clawclaw/index.ts +4 -0
  106. package/src/runtime/clawclaw/notifications.test.ts +47 -0
  107. package/src/runtime/clawclaw/notifications.ts +65 -0
  108. package/src/runtime/clawclaw/owner-lock.test.ts +221 -0
  109. package/src/runtime/clawclaw/owner.ts +945 -0
  110. package/src/runtime/clawclaw/plugins/action/action-plugin.ts +299 -0
  111. package/src/runtime/clawclaw/plugins/action/index.ts +1 -0
  112. package/src/runtime/clawclaw/plugins/assembly.test.ts +81 -0
  113. package/src/runtime/clawclaw/plugins/assembly.ts +116 -0
  114. package/src/runtime/clawclaw/plugins/derived-event/derived-event-plugin.test.ts +150 -0
  115. package/src/runtime/clawclaw/plugins/derived-event/derived-event-plugin.ts +100 -0
  116. package/src/runtime/clawclaw/plugins/derived-event/derived-event-rules.ts +162 -0
  117. package/src/runtime/clawclaw/plugins/derived-event/index.ts +2 -0
  118. package/src/runtime/clawclaw/plugins/game-query/game-query-plugin.test.ts +223 -0
  119. package/src/runtime/clawclaw/plugins/game-query/game-query-plugin.ts +236 -0
  120. package/src/runtime/clawclaw/plugins/game-query/index.ts +1 -0
  121. package/src/runtime/clawclaw/plugins/index.ts +7 -0
  122. package/src/runtime/clawclaw/plugins/mailbox/index.ts +3 -0
  123. package/src/runtime/clawclaw/plugins/mailbox/mailbox-plugin.ts +77 -0
  124. package/src/runtime/clawclaw/plugins/mailbox/mailbox-presentation.ts +91 -0
  125. package/src/runtime/clawclaw/plugins/mailbox/mailbox-service.test.ts +1008 -0
  126. package/src/runtime/clawclaw/plugins/mailbox/mailbox-service.ts +475 -0
  127. package/src/runtime/clawclaw/plugins/perception/contracts.ts +32 -0
  128. package/src/runtime/clawclaw/plugins/perception/index.ts +8 -0
  129. package/src/runtime/clawclaw/plugins/perception/module-runner.test.ts +204 -0
  130. package/src/runtime/clawclaw/plugins/perception/module-runner.ts +290 -0
  131. package/src/runtime/clawclaw/plugins/perception/modules/co-movement-module.ts +324 -0
  132. package/src/runtime/clawclaw/plugins/perception/modules/follow-module.ts +365 -0
  133. package/src/runtime/clawclaw/plugins/perception/modules/index.ts +7 -0
  134. package/src/runtime/clawclaw/plugins/perception/modules/motion-module.test.ts +341 -0
  135. package/src/runtime/clawclaw/plugins/perception/modules/motion-module.ts +447 -0
  136. package/src/runtime/clawclaw/plugins/perception/modules/parallel-module-test-helpers.ts +30 -0
  137. package/src/runtime/clawclaw/plugins/perception/modules/relation-stability.test.ts +289 -0
  138. package/src/runtime/clawclaw/plugins/perception/modules/route-module.test.ts +180 -0
  139. package/src/runtime/clawclaw/plugins/perception/modules/route-module.ts +329 -0
  140. package/src/runtime/clawclaw/plugins/perception/modules/spatial-module.test.ts +82 -0
  141. package/src/runtime/clawclaw/plugins/perception/modules/spatial-module.ts +172 -0
  142. package/src/runtime/clawclaw/plugins/perception/modules/stop-module.test.ts +212 -0
  143. package/src/runtime/clawclaw/plugins/perception/modules/stop-module.ts +256 -0
  144. package/src/runtime/clawclaw/plugins/perception/modules/temporal-evidence.test.ts +121 -0
  145. package/src/runtime/clawclaw/plugins/perception/modules/visibility-module.test.ts +106 -0
  146. package/src/runtime/clawclaw/plugins/perception/modules/visibility-module.ts +225 -0
  147. package/src/runtime/clawclaw/plugins/perception/official-module-ids.ts +11 -0
  148. package/src/runtime/clawclaw/plugins/perception/official-modules.ts +31 -0
  149. package/src/runtime/clawclaw/plugins/perception/perception-analysis-thread-pool.test.ts +759 -0
  150. package/src/runtime/clawclaw/plugins/perception/perception-analysis-thread-pool.ts +707 -0
  151. package/src/runtime/clawclaw/plugins/perception/perception-analysis-thread-worker.ts +215 -0
  152. package/src/runtime/clawclaw/plugins/perception/perception-module-loader.ts +61 -0
  153. package/src/runtime/clawclaw/plugins/perception/perception-plugin.test.ts +1516 -0
  154. package/src/runtime/clawclaw/plugins/perception/perception-plugin.ts +1529 -0
  155. package/src/runtime/clawclaw/plugins/perception/perception-source.test.ts +119 -0
  156. package/src/runtime/clawclaw/plugins/perception/perception-source.ts +244 -0
  157. package/src/runtime/clawclaw/plugins/perception/replay.test.ts +65 -0
  158. package/src/runtime/clawclaw/plugins/perception/replay.ts +86 -0
  159. package/src/runtime/clawclaw/plugins/perception/shared/math.ts +107 -0
  160. package/src/runtime/clawclaw/plugins/perception/spatial-facts.ts +114 -0
  161. package/src/runtime/clawclaw/plugins/perception/visual-state-projector.ts +98 -0
  162. package/src/runtime/clawclaw/plugins/runtime-plugins.test.ts +1019 -0
  163. package/src/runtime/clawclaw/plugins/source/game-transport.test.ts +287 -0
  164. package/src/runtime/clawclaw/plugins/source/game-transport.ts +281 -0
  165. package/src/runtime/clawclaw/plugins/source/index.ts +5 -0
  166. package/src/runtime/clawclaw/plugins/source/player-change-tracker.test.ts +270 -0
  167. package/src/runtime/clawclaw/plugins/source/player-change-tracker.ts +151 -0
  168. package/src/runtime/clawclaw/plugins/source/room-transport.test.ts +307 -0
  169. package/src/runtime/clawclaw/plugins/source/room-transport.ts +480 -0
  170. package/src/runtime/clawclaw/plugins/source/source-plugin.test.ts +1909 -0
  171. package/src/runtime/clawclaw/plugins/source/source-plugin.ts +2055 -0
  172. package/src/runtime/clawclaw/plugins/source/source-transports.ts +30 -0
  173. package/src/runtime/clawclaw/plugins/source/types.ts +79 -0
  174. package/src/runtime/clawclaw/plugins/strategy/context-capabilities.ts +5 -0
  175. package/src/runtime/clawclaw/plugins/strategy/examples/task-only-strategy.test.ts +177 -0
  176. package/src/runtime/clawclaw/plugins/strategy/examples/task-only-strategy.ts +185 -0
  177. package/src/runtime/clawclaw/plugins/strategy/index.ts +8 -0
  178. package/src/runtime/clawclaw/plugins/strategy/local-strategy-executor.ts +412 -0
  179. package/src/runtime/clawclaw/plugins/strategy/strategy-action.ts +73 -0
  180. package/src/runtime/clawclaw/plugins/strategy/strategy-analysis-thread-host.ts +183 -0
  181. package/src/runtime/clawclaw/plugins/strategy/strategy-executor-types.ts +25 -0
  182. package/src/runtime/clawclaw/plugins/strategy/strategy-executor.test.ts +693 -0
  183. package/src/runtime/clawclaw/plugins/strategy/strategy-game-api.ts +57 -0
  184. package/src/runtime/clawclaw/plugins/strategy/strategy-module-loader.ts +164 -0
  185. package/src/runtime/clawclaw/plugins/strategy/strategy-plugin.test.ts +1936 -0
  186. package/src/runtime/clawclaw/plugins/strategy/strategy-plugin.ts +1557 -0
  187. package/src/runtime/clawclaw/plugins/strategy/strategy-source.test.ts +131 -0
  188. package/src/runtime/clawclaw/plugins/strategy/strategy-source.ts +413 -0
  189. package/src/runtime/clawclaw/plugins/strategy/thread-strategy-executor.ts +792 -0
  190. package/src/runtime/clawclaw/runtime-data-export.test.ts +249 -0
  191. package/src/runtime/clawclaw/runtime-data-export.ts +402 -0
  192. package/src/runtime/clawclaw/runtime-state.ts +98 -0
  193. package/src/runtime/clawclaw/runtime.ts +133 -0
  194. package/src/runtime/clawclaw-event-catalog.test.ts +74 -0
  195. package/src/runtime/clawclaw-event-catalog.ts +266 -0
  196. package/src/runtime/clawclaw-position.ts +4 -0
  197. package/src/runtime/clawclaw-room-state.ts +51 -0
  198. package/src/runtime/framework/action-diagnostics.test.ts +81 -0
  199. package/src/runtime/framework/action-diagnostics.ts +146 -0
  200. package/src/runtime/framework/capability-registry.test.ts +282 -0
  201. package/src/runtime/framework/capability-registry.ts +283 -0
  202. package/src/runtime/framework/contracts.ts +118 -0
  203. package/src/runtime/framework/control/control-scheduler.ts +1260 -0
  204. package/src/runtime/framework/control/domain-set.ts +81 -0
  205. package/src/runtime/framework/control/index.ts +3 -0
  206. package/src/runtime/framework/control/types.ts +184 -0
  207. package/src/runtime/framework/control-coordinator.test.ts +660 -0
  208. package/src/runtime/framework/control-coordinator.ts +11 -0
  209. package/src/runtime/framework/events/event-catalog.ts +74 -0
  210. package/src/runtime/framework/events/event-delivery-service.test.ts +84 -0
  211. package/src/runtime/framework/events/event-delivery-service.ts +198 -0
  212. package/src/runtime/framework/events/event-ingress.test.ts +178 -0
  213. package/src/runtime/framework/events/event-ingress.ts +97 -0
  214. package/src/runtime/framework/events/event-repository.ts +59 -0
  215. package/src/runtime/framework/events/index.ts +7 -0
  216. package/src/runtime/framework/events/mailbox-event-repositories.test.ts +594 -0
  217. package/src/runtime/framework/events/memory-event-repository.ts +928 -0
  218. package/src/runtime/framework/events/sqlite-event-repository.test.ts +200 -0
  219. package/src/runtime/framework/events/sqlite-event-repository.ts +1681 -0
  220. package/src/runtime/framework/events/test-helpers.ts +78 -0
  221. package/src/runtime/framework/events/types.ts +286 -0
  222. package/src/runtime/framework/index.ts +7 -0
  223. package/src/runtime/framework/load-node-sqlite.ts +17 -0
  224. package/src/runtime/framework/mailbox/coalescer.test.ts +55 -0
  225. package/src/runtime/framework/mailbox/coalescer.ts +83 -0
  226. package/src/runtime/framework/mailbox/host-notification-sink.ts +44 -0
  227. package/src/runtime/framework/mailbox/identity.test.ts +38 -0
  228. package/src/runtime/framework/mailbox/identity.ts +38 -0
  229. package/src/runtime/framework/mailbox/index.ts +7 -0
  230. package/src/runtime/framework/mailbox/mailbox-dispatcher.test.ts +513 -0
  231. package/src/runtime/framework/mailbox/mailbox-dispatcher.ts +282 -0
  232. package/src/runtime/framework/mailbox/mailbox-repository.ts +44 -0
  233. package/src/runtime/framework/mailbox/notification-projector.test.ts +77 -0
  234. package/src/runtime/framework/mailbox/notification-projector.ts +65 -0
  235. package/src/runtime/framework/mailbox/types.ts +139 -0
  236. package/src/runtime/framework/modules/runtime-module-loader-hooks.d.mts +19 -0
  237. package/src/runtime/framework/modules/runtime-module-loader-hooks.mjs +117 -0
  238. package/src/runtime/framework/modules/runtime-module-loader.test.ts +209 -0
  239. package/src/runtime/framework/modules/runtime-module-loader.ts +71 -0
  240. package/src/runtime/framework/modules/runtime-module-worker-bootstrap.mjs +23 -0
  241. package/src/runtime/framework/participation-manager.test.ts +108 -0
  242. package/src/runtime/framework/participation-manager.ts +244 -0
  243. package/src/runtime/framework/plugins/contracts.ts +382 -0
  244. package/src/runtime/framework/plugins/index.ts +4 -0
  245. package/src/runtime/framework/plugins/runtime-event-identity.ts +17 -0
  246. package/src/runtime/framework/plugins/runtime-input-journal.test.ts +179 -0
  247. package/src/runtime/framework/plugins/runtime-input-journal.ts +693 -0
  248. package/src/runtime/framework/plugins/runtime-plugin-scheduler.test.ts +1994 -0
  249. package/src/runtime/framework/plugins/runtime-plugin-scheduler.ts +1860 -0
  250. package/src/runtime/framework/runtime.ts +1756 -0
  251. package/src/runtime/framework/serial-task-queue.ts +14 -0
  252. package/src/runtime/framework/state/contracts.ts +49 -0
  253. package/src/runtime/framework/state/current-state-store.ts +184 -0
  254. package/src/runtime/framework/state/durable-agent-state-snapshot.test.ts +144 -0
  255. package/src/runtime/framework/state/durable-agent-state-snapshot.ts +209 -0
  256. package/src/runtime/framework/state/freshness.ts +72 -0
  257. package/src/runtime/framework/state/history/contracts.ts +150 -0
  258. package/src/runtime/framework/state/history/history-writer.ts +194 -0
  259. package/src/runtime/framework/state/history/memory-state-history-repository.ts +178 -0
  260. package/src/runtime/framework/state/history/sqlite-state-history-repository.test.ts +157 -0
  261. package/src/runtime/framework/state/history/sqlite-state-history-repository.ts +629 -0
  262. package/src/runtime/framework/state/history/state-history.test.ts +251 -0
  263. package/src/runtime/framework/state/history/trajectory-projector.ts +209 -0
  264. package/src/runtime/framework/state/index.ts +13 -0
  265. package/src/runtime/framework/state/state-core.test.ts +197 -0
  266. package/src/runtime/framework/state/state-ingress.ts +95 -0
  267. package/src/runtime/framework/state/state-provider.ts +62 -0
  268. package/src/runtime/framework/state/types.ts +155 -0
  269. package/src/runtime/game-sync-protocol.test.ts +123 -0
  270. package/src/runtime/game-sync-protocol.ts +261 -0
  271. package/src/runtime/mailbox-host-relay.test.ts +248 -0
  272. package/src/runtime/mailbox-host-relay.ts +300 -0
  273. package/src/runtime/observability/factory.ts +188 -0
  274. package/src/runtime/observability/index.ts +6 -0
  275. package/src/runtime/observability/observability.test.ts +561 -0
  276. package/src/runtime/observability/recorder.ts +209 -0
  277. package/src/runtime/observability/redaction.ts +154 -0
  278. package/src/runtime/observability/reporter.ts +154 -0
  279. package/src/runtime/observability/sinks.ts +135 -0
  280. package/src/runtime/observability/types.ts +92 -0
  281. package/src/runtime/owner-control.test.ts +153 -0
  282. package/src/runtime/owner-control.ts +206 -42
  283. package/src/runtime/parent-process-watch.test.ts +27 -0
  284. package/src/runtime/parent-process-watch.ts +51 -0
  285. package/src/runtime/pending-event-handoff.test.ts +29 -0
  286. package/src/runtime/pending-event-handoff.ts +61 -0
  287. package/src/runtime/raw-ws-log.test.ts +86 -17
  288. package/src/runtime/raw-ws-log.ts +230 -21
  289. package/src/runtime/runtime-logger.test.ts +58 -0
  290. package/src/runtime/runtime-logger.ts +10 -13
  291. package/src/runtime/runtime-persistence.test.ts +26 -0
  292. package/src/runtime/runtime.test.ts +1704 -0
  293. package/src/runtime/ws-client.test.ts +496 -103
  294. package/src/runtime/ws-client.ts +546 -166
  295. package/src/sdk/action.ts +3 -1
  296. package/src/sdk/index.ts +4 -19
  297. package/src/sdk/perception-plugin/index.test.ts +22 -0
  298. package/src/sdk/perception-plugin/index.ts +285 -0
  299. package/src/sdk/strategy-plugin/index.test.ts +952 -0
  300. package/src/sdk/strategy-plugin/index.ts +1324 -0
  301. package/src/sdk/types.ts +3 -1
  302. package/src/short-command/classifier.test.ts +107 -0
  303. package/src/short-command/classifier.ts +169 -0
  304. package/src/short-command/index.ts +7 -0
  305. package/src/short-command/presenter.test.ts +119 -0
  306. package/src/short-command/presenter.ts +308 -0
  307. package/src/short-command/process-io.ts +13 -0
  308. package/src/short-command/response-contract.ts +58 -0
  309. package/src/short-command/runner.test.ts +78 -0
  310. package/src/short-command/runner.ts +164 -0
  311. package/src/short-command/sensitive-data-filter.test.ts +56 -0
  312. package/src/short-command/sensitive-data-filter.ts +123 -0
  313. package/src/short-command/transport-response.test.ts +39 -0
  314. package/src/short-command/transport-response.ts +89 -0
  315. package/src/short-command/types.ts +92 -0
  316. package/src/strategies/avoid-lone.ts +18 -11
  317. package/src/strategies/avoid-players.ts +29 -13
  318. package/src/strategies/corpse-patrol.ts +29 -11
  319. package/src/strategies/crab-sabotage.ts +31 -18
  320. package/src/strategies/custom-module.test.ts +3 -5
  321. package/src/strategies/find-player.ts +34 -15
  322. package/src/strategies/game-utils.test.ts +42 -0
  323. package/src/strategies/game-utils.ts +143 -53
  324. package/src/strategies/goals/avoid-lone-top.ts +22 -1
  325. package/src/strategies/goals/avoid-players-top.test.ts +13 -0
  326. package/src/strategies/goals/avoid-players-top.ts +6 -5
  327. package/src/strategies/goals/corpse-patrol-top.ts +9 -2
  328. package/src/strategies/goals/crab-octopus-reflexes.ts +6 -2
  329. package/src/strategies/goals/crab-sabotage-top.ts +7 -1
  330. package/src/strategies/goals/emergency-hunt-goal.ts +15 -3
  331. package/src/strategies/goals/find-player-top.ts +47 -3
  332. package/src/strategies/goals/flee-players-goal.ts +2 -0
  333. package/src/strategies/goals/follow-companion-goal.ts +27 -3
  334. package/src/strategies/goals/hide-top.ts +47 -5
  335. package/src/strategies/goals/keep-away-goal.ts +24 -2
  336. package/src/strategies/goals/kill-frenzy-top.ts +12 -2
  337. package/src/strategies/goals/kill-lone-top.test.ts +72 -0
  338. package/src/strategies/goals/kill-lone-top.ts +8 -6
  339. package/src/strategies/goals/kill-target-goal.ts +16 -7
  340. package/src/strategies/goals/kill-target-top.ts +16 -2
  341. package/src/strategies/goals/linger-corpse-goal.ts +11 -3
  342. package/src/strategies/goals/lone-kill-core.ts +4 -2
  343. package/src/strategies/goals/move-room-goal.ts +46 -4
  344. package/src/strategies/goals/normal-shrimp-top.test.ts +16 -0
  345. package/src/strategies/goals/normal-shrimp-top.ts +18 -18
  346. package/src/strategies/goals/paradise-fish-top.test.ts +78 -0
  347. package/src/strategies/goals/paradise-fish-top.ts +16 -6
  348. package/src/strategies/goals/patrol-top.ts +14 -3
  349. package/src/strategies/goals/report-patrol-top.ts +14 -3
  350. package/src/strategies/goals/safe-task-goal.ts +32 -4
  351. package/src/strategies/goals/social-task-top.ts +39 -8
  352. package/src/strategies/goals/task-kill-report-top.ts +33 -10
  353. package/src/strategies/goals/task-only-top.test.ts +89 -0
  354. package/src/strategies/goals/task-only-top.ts +9 -2
  355. package/src/strategies/goals/task-or-patrol-goal.ts +21 -3
  356. package/src/strategies/goals/warrior-shrimp-top.test.ts +75 -23
  357. package/src/strategies/goals/warrior-shrimp-top.ts +34 -13
  358. package/src/strategies/greeting.ts +10 -3
  359. package/src/strategies/hide-spots.ts +4 -0
  360. package/src/strategies/hide.ts +35 -20
  361. package/src/strategies/kill-frenzy.ts +18 -12
  362. package/src/strategies/kill-lone.ts +43 -12
  363. package/src/strategies/kill-target.ts +34 -17
  364. package/src/strategies/lone-kill-task.ts +31 -18
  365. package/src/strategies/move-room.ts +32 -15
  366. package/src/strategies/off-route-points.ts +12 -4
  367. package/src/strategies/paradise-fish.ts +49 -14
  368. package/src/strategies/pathfind/astar-path.test.ts +73 -0
  369. package/src/strategies/pathfind/astar-path.ts +196 -0
  370. package/src/strategies/pathfind/escape-planner.test.ts +27 -1
  371. package/src/strategies/pathfind/escape-planner.ts +108 -0
  372. package/src/strategies/patrol.ts +18 -11
  373. package/src/strategies/report-patrol.ts +18 -11
  374. package/src/strategies/shrimp-memory.ts +66 -14
  375. package/src/strategies/social-task.ts +49 -45
  376. package/src/strategies/task-kill-report.ts +34 -16
  377. package/src/strategies/task-only.test.ts +124 -0
  378. package/src/strategies/task-only.ts +20 -11
  379. package/src/strategies/task-report.ts +29 -11
  380. package/src/strategies/types.ts +29 -62
  381. package/src/strategies/warrior-memory.ts +44 -14
  382. package/scripts/check_monitor.test.mjs +0 -212
  383. package/skills/clawclaw/references/KNOWLEDGE.md +0 -42
  384. package/src/assets/clawclaw-ascii-map.txt +0 -40
  385. package/src/commands/do.test.ts +0 -117
  386. package/src/commands/do.ts +0 -195
  387. package/src/commands/game-monitor-status.test.ts +0 -58
  388. package/src/commands/game-start-plan.test.ts +0 -356
  389. package/src/commands/game.ts +0 -2046
  390. package/src/commands/history-player.test.ts +0 -105
  391. package/src/commands/history.ts +0 -573
  392. package/src/commands/knowledge.test.ts +0 -13
  393. package/src/commands/knowledge.ts +0 -176
  394. package/src/commands/meeting-history.test.ts +0 -106
  395. package/src/commands/state.ts +0 -46
  396. package/src/commands/watch.test.ts +0 -1313
  397. package/src/commands/watch.ts +0 -824
  398. package/src/lib/knowledge-store.test.ts +0 -170
  399. package/src/lib/knowledge-store.ts +0 -369
  400. package/src/perception/player-history-store.test.ts +0 -177
  401. package/src/perception/player-history-store.ts +0 -262
  402. package/src/pipeline/event-store.test.ts +0 -28
  403. package/src/pipeline/event-store.ts +0 -193
  404. package/src/pipeline/pipeline.ts +0 -35
  405. package/src/runtime/event-daemon.test.ts +0 -268
  406. package/src/runtime/event-daemon.ts +0 -531
  407. package/src/runtime/room-lobby-runtime.test.ts +0 -95
  408. package/src/runtime/room-lobby-runtime.ts +0 -367
  409. package/src/strategies/avoid-players.knowledge.md +0 -19
  410. package/src/strategies/kill-lone.knowledge.md +0 -17
  411. package/src/strategies/knowledge-contract.ts +0 -85
  412. package/src/strategies/loader.test.ts +0 -710
  413. package/src/strategies/loader.ts +0 -183
  414. package/src/strategies/new-events-backfill.ts +0 -98
  415. package/src/strategies/paradise-fish.knowledge.md +0 -19
  416. package/src/strategies/scanner.ts +0 -238
  417. package/src/strategies/shrimp-memory.knowledge.md +0 -19
  418. package/src/strategies/social-task.test.ts +0 -28
  419. package/src/strategies/spawn.ts +0 -82
  420. package/src/strategies/strategy-loop.test.ts +0 -15
  421. package/src/strategies/strategy-loop.ts +0 -748
  422. package/src/strategies/warrior-memory.knowledge.md +0 -21
@@ -0,0 +1,1692 @@
1
+ {
2
+ "schema_version": 1,
3
+ "source": {
4
+ "authority": "frontend",
5
+ "git_url": "ssh://git@gitlab.leihuo.netease.com:32200/claw-kill/crab-kill-frontend.git",
6
+ "ref": "feature/v0.3.2",
7
+ "commit": "c98babbccb4cb3d3df0925af787ee79fb32bf515",
8
+ "map_git_blob": "33a23d56b6df4ac2143215dd10124e34363a27fe",
9
+ "map_sha256": "574d2d60814b7e51483093c7d4416730c879fedd85f86091da241bf33050b56b"
10
+ },
11
+ "coordinates": {
12
+ "orientation": "orthogonal",
13
+ "render_order": "right-down",
14
+ "x_positive": "right",
15
+ "y_positive": "down",
16
+ "tile_width_px": 4,
17
+ "tile_height_px": 4,
18
+ "width_tiles": 1203,
19
+ "height_tiles": 907,
20
+ "world_width_px": 4812,
21
+ "world_height_px": 3628
22
+ },
23
+ "rooms": [
24
+ {
25
+ "name": "浴室",
26
+ "polygon": [
27
+ [
28
+ 2390,
29
+ 148
30
+ ],
31
+ [
32
+ 2336,
33
+ 260
34
+ ],
35
+ [
36
+ 2382,
37
+ 382
38
+ ],
39
+ [
40
+ 2452,
41
+ 446
42
+ ],
43
+ [
44
+ 2576,
45
+ 444
46
+ ],
47
+ [
48
+ 2686,
49
+ 316
50
+ ],
51
+ [
52
+ 2660,
53
+ 170
54
+ ],
55
+ [
56
+ 2536,
57
+ 104
58
+ ]
59
+ ],
60
+ "bbox": {
61
+ "left": 2336,
62
+ "top": 104,
63
+ "right": 2686,
64
+ "bottom": 446
65
+ }
66
+ },
67
+ {
68
+ "name": "自助餐厅",
69
+ "polygon": [
70
+ [
71
+ 1758,
72
+ 2292
73
+ ],
74
+ [
75
+ 1695,
76
+ 2388
77
+ ],
78
+ [
79
+ 1660,
80
+ 2439
81
+ ],
82
+ [
83
+ 1471,
84
+ 2443
85
+ ],
86
+ [
87
+ 1454,
88
+ 2606
89
+ ],
90
+ [
91
+ 1460,
92
+ 2760
93
+ ],
94
+ [
95
+ 1631,
96
+ 2759
97
+ ],
98
+ [
99
+ 1732,
100
+ 2919
101
+ ],
102
+ [
103
+ 2081,
104
+ 2917
105
+ ],
106
+ [
107
+ 2083,
108
+ 2757
109
+ ],
110
+ [
111
+ 2090,
112
+ 2720
113
+ ],
114
+ [
115
+ 2099,
116
+ 2623
117
+ ],
118
+ [
119
+ 2125,
120
+ 2617
121
+ ],
122
+ [
123
+ 2131,
124
+ 2717
125
+ ],
126
+ [
127
+ 2248,
128
+ 2712
129
+ ],
130
+ [
131
+ 2328,
132
+ 2599
133
+ ],
134
+ [
135
+ 2258,
136
+ 2474
137
+ ],
138
+ [
139
+ 2159,
140
+ 2472
141
+ ],
142
+ [
143
+ 2135,
144
+ 2493
145
+ ],
146
+ [
147
+ 2105,
148
+ 2495
149
+ ],
150
+ [
151
+ 2092,
152
+ 2448
153
+ ],
154
+ [
155
+ 2068,
156
+ 2437
157
+ ],
158
+ [
159
+ 2014,
160
+ 2352
161
+ ],
162
+ [
163
+ 1969,
164
+ 2267
165
+ ],
166
+ [
167
+ 1938,
168
+ 2231
169
+ ],
170
+ [
171
+ 1811,
172
+ 2240
173
+ ]
174
+ ],
175
+ "bbox": {
176
+ "left": 1454,
177
+ "top": 2231,
178
+ "right": 2328,
179
+ "bottom": 2919
180
+ }
181
+ },
182
+ {
183
+ "name": "冷库",
184
+ "polygon": [
185
+ [
186
+ 2750,
187
+ 2958
188
+ ],
189
+ [
190
+ 2652,
191
+ 2956
192
+ ],
193
+ [
194
+ 2656,
195
+ 3118
196
+ ],
197
+ [
198
+ 2986,
199
+ 3120
200
+ ],
201
+ [
202
+ 2982,
203
+ 2754
204
+ ],
205
+ [
206
+ 2764,
207
+ 2764
208
+ ]
209
+ ],
210
+ "bbox": {
211
+ "left": 2652,
212
+ "top": 2754,
213
+ "right": 2986,
214
+ "bottom": 3120
215
+ }
216
+ },
217
+ {
218
+ "name": "制氧舱",
219
+ "polygon": [
220
+ [
221
+ 1074,
222
+ 2782
223
+ ],
224
+ [
225
+ 1070,
226
+ 3248
227
+ ],
228
+ [
229
+ 1390,
230
+ 3246
231
+ ],
232
+ [
233
+ 1392,
234
+ 3080
235
+ ],
236
+ [
237
+ 1708,
238
+ 3086
239
+ ],
240
+ [
241
+ 1714,
242
+ 2916
243
+ ],
244
+ [
245
+ 1630,
246
+ 2757
247
+ ],
248
+ [
249
+ 1433,
250
+ 2761
251
+ ],
252
+ [
253
+ 1310,
254
+ 2616
255
+ ],
256
+ [
257
+ 1054,
258
+ 2618
259
+ ],
260
+ [
261
+ 1050,
262
+ 2746
263
+ ]
264
+ ],
265
+ "bbox": {
266
+ "left": 1050,
267
+ "top": 2616,
268
+ "right": 1714,
269
+ "bottom": 3248
270
+ }
271
+ },
272
+ {
273
+ "name": "动力监控室",
274
+ "polygon": [
275
+ [
276
+ 810,
277
+ 1916
278
+ ],
279
+ [
280
+ 812,
281
+ 2046
282
+ ],
283
+ [
284
+ 738,
285
+ 2184
286
+ ],
287
+ [
288
+ 742,
289
+ 2298
290
+ ],
291
+ [
292
+ 800,
293
+ 2416
294
+ ],
295
+ [
296
+ 802,
297
+ 2544
298
+ ],
299
+ [
300
+ 532,
301
+ 2538
302
+ ],
303
+ [
304
+ 418,
305
+ 2358
306
+ ],
307
+ [
308
+ 218,
309
+ 2360
310
+ ],
311
+ [
312
+ 134,
313
+ 2208
314
+ ],
315
+ [
316
+ 216,
317
+ 2064
318
+ ],
319
+ [
320
+ 412,
321
+ 2066
322
+ ],
323
+ [
324
+ 528,
325
+ 1888
326
+ ],
327
+ [
328
+ 814,
329
+ 1888
330
+ ]
331
+ ],
332
+ "bbox": {
333
+ "left": 134,
334
+ "top": 1888,
335
+ "right": 814,
336
+ "bottom": 2544
337
+ }
338
+ },
339
+ {
340
+ "name": "能源舱",
341
+ "polygon": [
342
+ [
343
+ 1044,
344
+ 2386
345
+ ],
346
+ [
347
+ 1044,
348
+ 2548
349
+ ],
350
+ [
351
+ 1334,
352
+ 2554
353
+ ],
354
+ [
355
+ 1340,
356
+ 1706
357
+ ],
358
+ [
359
+ 1050,
360
+ 1710
361
+ ],
362
+ [
363
+ 1044,
364
+ 2066
365
+ ],
366
+ [
367
+ 803,
368
+ 2056
369
+ ],
370
+ [
371
+ 736,
372
+ 2178
373
+ ],
374
+ [
375
+ 741,
376
+ 2301
377
+ ],
378
+ [
379
+ 793,
380
+ 2404
381
+ ]
382
+ ],
383
+ "bbox": {
384
+ "left": 736,
385
+ "top": 1706,
386
+ "right": 1340,
387
+ "bottom": 2554
388
+ }
389
+ },
390
+ {
391
+ "name": "中央厨房",
392
+ "polygon": [
393
+ [
394
+ 2077,
395
+ 2925
396
+ ],
397
+ [
398
+ 2740,
399
+ 2927
400
+ ],
401
+ [
402
+ 2771,
403
+ 2767
404
+ ],
405
+ [
406
+ 3001,
407
+ 2760
408
+ ],
409
+ [
410
+ 3006,
411
+ 2428
412
+ ],
413
+ [
414
+ 2704,
415
+ 2430
416
+ ],
417
+ [
418
+ 2610,
419
+ 2574
420
+ ],
421
+ [
422
+ 2406,
423
+ 2574
424
+ ],
425
+ [
426
+ 2292,
427
+ 2756
428
+ ],
429
+ [
430
+ 2078,
431
+ 2754
432
+ ]
433
+ ],
434
+ "bbox": {
435
+ "left": 2077,
436
+ "top": 2428,
437
+ "right": 3006,
438
+ "bottom": 2927
439
+ }
440
+ },
441
+ {
442
+ "name": "情报室",
443
+ "polygon": [
444
+ [
445
+ 3582,
446
+ 2324
447
+ ],
448
+ [
449
+ 3580,
450
+ 2536
451
+ ],
452
+ [
453
+ 3624,
454
+ 2574
455
+ ],
456
+ [
457
+ 3846,
458
+ 2572
459
+ ],
460
+ [
461
+ 3946,
462
+ 2408
463
+ ],
464
+ [
465
+ 3888,
466
+ 2290
467
+ ],
468
+ [
469
+ 3882,
470
+ 2158
471
+ ],
472
+ [
473
+ 3946,
474
+ 2036
475
+ ],
476
+ [
477
+ 3866,
478
+ 1882
479
+ ],
480
+ [
481
+ 3584,
482
+ 1886
483
+ ]
484
+ ],
485
+ "bbox": {
486
+ "left": 3580,
487
+ "top": 1882,
488
+ "right": 3946,
489
+ "bottom": 2574
490
+ }
491
+ },
492
+ {
493
+ "name": "控制室",
494
+ "polygon": [
495
+ [
496
+ 3898,
497
+ 1866
498
+ ],
499
+ [
500
+ 3937,
501
+ 2033
502
+ ],
503
+ [
504
+ 3872,
505
+ 2182
506
+ ],
507
+ [
508
+ 3879,
509
+ 2290
510
+ ],
511
+ [
512
+ 3966,
513
+ 2416
514
+ ],
515
+ [
516
+ 3898,
517
+ 2584
518
+ ],
519
+ [
520
+ 4016,
521
+ 2744
522
+ ],
523
+ [
524
+ 4170,
525
+ 2736
526
+ ],
527
+ [
528
+ 4260,
529
+ 2614
530
+ ],
531
+ [
532
+ 4304,
533
+ 2601
534
+ ],
535
+ [
536
+ 4443,
537
+ 2567
538
+ ],
539
+ [
540
+ 4513,
541
+ 2470
542
+ ],
543
+ [
544
+ 4601,
545
+ 2301
546
+ ],
547
+ [
548
+ 4574,
549
+ 2054
550
+ ],
551
+ [
552
+ 4518,
553
+ 1932
554
+ ],
555
+ [
556
+ 4424,
557
+ 1865
558
+ ],
559
+ [
560
+ 4275,
561
+ 1854
562
+ ],
563
+ [
564
+ 4206,
565
+ 1720
566
+ ],
567
+ [
568
+ 4070,
569
+ 1676
570
+ ],
571
+ [
572
+ 3952,
573
+ 1730
574
+ ],
575
+ [
576
+ 3912,
577
+ 1830
578
+ ]
579
+ ],
580
+ "bbox": {
581
+ "left": 3872,
582
+ "top": 1676,
583
+ "right": 4601,
584
+ "bottom": 2744
585
+ }
586
+ },
587
+ {
588
+ "name": "导航仓",
589
+ "polygon": [
590
+ [
591
+ 2615,
592
+ 1296
593
+ ],
594
+ [
595
+ 2610,
596
+ 1858
597
+ ],
598
+ [
599
+ 2718,
600
+ 2030
601
+ ],
602
+ [
603
+ 2990,
604
+ 2024
605
+ ],
606
+ [
607
+ 2978,
608
+ 1434
609
+ ],
610
+ [
611
+ 2904,
612
+ 1316
613
+ ],
614
+ [
615
+ 2778,
616
+ 1294
617
+ ]
618
+ ],
619
+ "bbox": {
620
+ "left": 2610,
621
+ "top": 1294,
622
+ "right": 2990,
623
+ "bottom": 2030
624
+ }
625
+ },
626
+ {
627
+ "name": "酒吧",
628
+ "polygon": [
629
+ [
630
+ 1486,
631
+ 1036
632
+ ],
633
+ [
634
+ 1485,
635
+ 1254
636
+ ],
637
+ [
638
+ 1481,
639
+ 1340
640
+ ],
641
+ [
642
+ 1681,
643
+ 1347
644
+ ],
645
+ [
646
+ 1670,
647
+ 1254
648
+ ],
649
+ [
650
+ 2058,
651
+ 1254
652
+ ],
653
+ [
654
+ 2066,
655
+ 976
656
+ ],
657
+ [
658
+ 1988,
659
+ 826
660
+ ],
661
+ [
662
+ 1754,
663
+ 826
664
+ ],
665
+ [
666
+ 1750,
667
+ 1024
668
+ ]
669
+ ],
670
+ "bbox": {
671
+ "left": 1481,
672
+ "top": 826,
673
+ "right": 2066,
674
+ "bottom": 1347
675
+ }
676
+ },
677
+ {
678
+ "name": "监控室",
679
+ "polygon": [
680
+ [
681
+ 1372,
682
+ 2189
683
+ ],
684
+ [
685
+ 1743,
686
+ 2190
687
+ ],
688
+ [
689
+ 1744,
690
+ 1985
691
+ ],
692
+ [
693
+ 1758,
694
+ 1946
695
+ ],
696
+ [
697
+ 1758,
698
+ 1716
699
+ ],
700
+ [
701
+ 1362,
702
+ 1712
703
+ ],
704
+ [
705
+ 1358,
706
+ 2074
707
+ ],
708
+ [
709
+ 1358,
710
+ 2160
711
+ ]
712
+ ],
713
+ "bbox": {
714
+ "left": 1358,
715
+ "top": 1712,
716
+ "right": 1758,
717
+ "bottom": 2190
718
+ }
719
+ },
720
+ {
721
+ "name": "禁闭室",
722
+ "polygon": [
723
+ [
724
+ 1358,
725
+ 2188
726
+ ],
727
+ [
728
+ 1360,
729
+ 2376
730
+ ],
731
+ [
732
+ 1662,
733
+ 2378
734
+ ],
735
+ [
736
+ 1752,
737
+ 2216
738
+ ],
739
+ [
740
+ 1750,
741
+ 2188
742
+ ]
743
+ ],
744
+ "bbox": {
745
+ "left": 1358,
746
+ "top": 2188,
747
+ "right": 1752,
748
+ "bottom": 2378
749
+ }
750
+ },
751
+ {
752
+ "name": "休闲会所",
753
+ "polygon": [
754
+ [
755
+ 2308.060606,
756
+ 1875.909091
757
+ ],
758
+ [
759
+ 2303.030303,
760
+ 2387.878788
761
+ ],
762
+ [
763
+ 2412.121212,
764
+ 2554.545455
765
+ ],
766
+ [
767
+ 2600,
768
+ 2554.545455
769
+ ],
770
+ [
771
+ 2712.121212,
772
+ 2381.818182
773
+ ],
774
+ [
775
+ 2984.848485,
776
+ 2372.727273
777
+ ],
778
+ [
779
+ 2984.848485,
780
+ 2060.606061
781
+ ],
782
+ [
783
+ 2706.060606,
784
+ 2066.666667
785
+ ],
786
+ [
787
+ 2595.939394,
788
+ 1875.878788
789
+ ]
790
+ ],
791
+ "bbox": {
792
+ "left": 2303.030303,
793
+ "top": 1875.878788,
794
+ "right": 2984.848485,
795
+ "bottom": 2554.545455
796
+ }
797
+ },
798
+ {
799
+ "name": "居住区",
800
+ "polygon": [
801
+ [
802
+ 1743.181818,
803
+ 1995.969697
804
+ ],
805
+ [
806
+ 1738.181818,
807
+ 2109.151515
808
+ ],
809
+ [
810
+ 1806.060606,
811
+ 2112.121212
812
+ ],
813
+ [
814
+ 1804.121212,
815
+ 2245.060606
816
+ ],
817
+ [
818
+ 1935.393939,
819
+ 2239.969697
820
+ ],
821
+ [
822
+ 1933.333333,
823
+ 1836.363636
824
+ ],
825
+ [
826
+ 2021.212121,
827
+ 1833.333333
828
+ ],
829
+ [
830
+ 1996.969697,
831
+ 2172.727273
832
+ ],
833
+ [
834
+ 2272.727273,
835
+ 2172.727273
836
+ ],
837
+ [
838
+ 2278.787879,
839
+ 1872.727273
840
+ ],
841
+ [
842
+ 2554.545455,
843
+ 1881.818182
844
+ ],
845
+ [
846
+ 2560.606061,
847
+ 1545.454545
848
+ ],
849
+ [
850
+ 2384.848485,
851
+ 1551.515152
852
+ ],
853
+ [
854
+ 2381.818182,
855
+ 1512.121212
856
+ ],
857
+ [
858
+ 1987.878788,
859
+ 1509.090909
860
+ ],
861
+ [
862
+ 1984.848485,
863
+ 1751.515152
864
+ ],
865
+ [
866
+ 1924.242424,
867
+ 1742.424242
868
+ ],
869
+ [
870
+ 1918.181818,
871
+ 1533.333333
872
+ ],
873
+ [
874
+ 1812.121212,
875
+ 1530.30303
876
+ ],
877
+ [
878
+ 1812.121212,
879
+ 1969.69697
880
+ ]
881
+ ],
882
+ "bbox": {
883
+ "left": 1738.181818,
884
+ "top": 1509.090909,
885
+ "right": 2560.606061,
886
+ "bottom": 2245.060606
887
+ }
888
+ },
889
+ {
890
+ "name": "健身房",
891
+ "polygon": [
892
+ [
893
+ 2373.636364,
894
+ 645.727273
895
+ ],
896
+ [
897
+ 2196.969697,
898
+ 621.212121
899
+ ],
900
+ [
901
+ 2039.393939,
902
+ 693.939394
903
+ ],
904
+ [
905
+ 2015.151515,
906
+ 824.242424
907
+ ],
908
+ [
909
+ 2103.030303,
910
+ 963.636364
911
+ ],
912
+ [
913
+ 2312.121212,
914
+ 969.69697
915
+ ],
916
+ [
917
+ 2318.181818,
918
+ 1266.666667
919
+ ],
920
+ [
921
+ 2687.878788,
922
+ 1257.575758
923
+ ],
924
+ [
925
+ 2687.878788,
926
+ 639.393939
927
+ ]
928
+ ],
929
+ "bbox": {
930
+ "left": 2015.151515,
931
+ "top": 621.212121,
932
+ "right": 2687.878788,
933
+ "bottom": 1266.666667
934
+ }
935
+ },
936
+ {
937
+ "name": "2号走廊",
938
+ "polygon": [
939
+ [
940
+ 2144.20594,
941
+ 959.762021
942
+ ],
943
+ [
944
+ 2295.356962,
945
+ 964.791773
946
+ ],
947
+ [
948
+ 2301.754386,
949
+ 1305.263158
950
+ ],
951
+ [
952
+ 2616.195993,
953
+ 1338.596491
954
+ ],
955
+ [
956
+ 2618.145329,
957
+ 1557.502846
958
+ ],
959
+ [
960
+ 2433.408432,
961
+ 1559.724222
962
+ ],
963
+ [
964
+ 2417.54386,
965
+ 1494.736842
966
+ ],
967
+ [
968
+ 1954.385965,
969
+ 1505.263158
970
+ ],
971
+ [
972
+ 1928.099,
973
+ 1539.555857
974
+ ],
975
+ [
976
+ 1805.994407,
977
+ 1532.071656
978
+ ],
979
+ [
980
+ 1676.889813,
981
+ 1455.587455
982
+ ],
983
+ [
984
+ 1453.002773,
985
+ 1449.518185
986
+ ],
987
+ [
988
+ 1474.719298,
989
+ 1338.824561
990
+ ],
991
+ [
992
+ 2100,
993
+ 1314.035088
994
+ ],
995
+ [
996
+ 2140.68651,
997
+ 978.489716
998
+ ]
999
+ ],
1000
+ "bbox": {
1001
+ "left": 1453.002773,
1002
+ "top": 959.762021,
1003
+ "right": 2618.145329,
1004
+ "bottom": 1559.724222
1005
+ }
1006
+ },
1007
+ {
1008
+ "name": "1号走廊",
1009
+ "polygon": [
1010
+ [
1011
+ 2439.252692,
1012
+ 445.706565
1013
+ ],
1014
+ [
1015
+ 2706.243192,
1016
+ 445.817606
1017
+ ],
1018
+ [
1019
+ 2701.076631,
1020
+ 645.456102
1021
+ ],
1022
+ [
1023
+ 2370.165599,
1024
+ 645.989257
1025
+ ],
1026
+ [
1027
+ 2363.310112,
1028
+ 442.762086
1029
+ ]
1030
+ ],
1031
+ "bbox": {
1032
+ "left": 2363.310112,
1033
+ "top": 442.762086,
1034
+ "right": 2706.243192,
1035
+ "bottom": 645.989257
1036
+ }
1037
+ },
1038
+ {
1039
+ "name": "3号走廊",
1040
+ "polygon": [
1041
+ [
1042
+ 801.836455,
1043
+ 1903.596259
1044
+ ],
1045
+ [
1046
+ 804.665137,
1047
+ 2056.45786
1048
+ ],
1049
+ [
1050
+ 1022.653722,
1051
+ 2051.779935
1052
+ ],
1053
+ [
1054
+ 1021.035599,
1055
+ 1713.592233
1056
+ ],
1057
+ [
1058
+ 1077.669903,
1059
+ 1686.084142
1060
+ ],
1061
+ [
1062
+ 1675.650018,
1063
+ 1684.14532
1064
+ ],
1065
+ [
1066
+ 1675.071783,
1067
+ 1448.329843
1068
+ ],
1069
+ [
1070
+ 1457.282666,
1071
+ 1443.422105
1072
+ ],
1073
+ [
1074
+ 1408.493548,
1075
+ 1509.514367
1076
+ ],
1077
+ [
1078
+ 834.485126,
1079
+ 1525.437672
1080
+ ],
1081
+ [
1082
+ 826.860841,
1083
+ 1883.495146
1084
+ ]
1085
+ ],
1086
+ "bbox": {
1087
+ "left": 801.836455,
1088
+ "top": 1443.422105,
1089
+ "right": 1675.650018,
1090
+ "bottom": 2056.45786
1091
+ }
1092
+ },
1093
+ {
1094
+ "name": "4号走廊",
1095
+ "polygon": [
1096
+ [
1097
+ 801.734628,
1098
+ 2388.058252
1099
+ ],
1100
+ [
1101
+ 797.734628,
1102
+ 2762.135922
1103
+ ],
1104
+ [
1105
+ 1056.018692,
1106
+ 2765.187485
1107
+ ],
1108
+ [
1109
+ 1058.353534,
1110
+ 2600.323625
1111
+ ],
1112
+ [
1113
+ 1022.653722,
1114
+ 2584.142395
1115
+ ],
1116
+ [
1117
+ 1016.18123,
1118
+ 2399.676375
1119
+ ]
1120
+ ],
1121
+ "bbox": {
1122
+ "left": 797.734628,
1123
+ "top": 2388.058252,
1124
+ "right": 1058.353534,
1125
+ "bottom": 2765.187485
1126
+ }
1127
+ },
1128
+ {
1129
+ "name": "5号走廊",
1130
+ "polygon": [
1131
+ [
1132
+ 2976.106817,
1133
+ 1872.803935
1134
+ ],
1135
+ [
1136
+ 2977.863668,
1137
+ 2069.571328
1138
+ ],
1139
+ [
1140
+ 2976.000703,
1141
+ 2096.653549
1142
+ ],
1143
+ [
1144
+ 2979.486999,
1145
+ 2305.451862
1146
+ ],
1147
+ [
1148
+ 2998.945889,
1149
+ 2413.914266
1150
+ ],
1151
+ [
1152
+ 2998.657718,
1153
+ 2588.530201
1154
+ ],
1155
+ [
1156
+ 3268.861278,
1157
+ 2584.859741
1158
+ ],
1159
+ [
1160
+ 3293.198412,
1161
+ 2385.039068
1162
+ ],
1163
+ [
1164
+ 3587.805815,
1165
+ 2370.949148
1166
+ ],
1167
+ [
1168
+ 3590.367619,
1169
+ 2069.937236
1170
+ ],
1171
+ [
1172
+ 3289.355706,
1173
+ 2068.656334
1174
+ ],
1175
+ [
1176
+ 3250.928654,
1177
+ 1868.83566
1178
+ ]
1179
+ ],
1180
+ "bbox": {
1181
+ "left": 2976.000703,
1182
+ "top": 1868.83566,
1183
+ "right": 3590.367619,
1184
+ "bottom": 2588.530201
1185
+ }
1186
+ }
1187
+ ],
1188
+ "tasks": [
1189
+ {
1190
+ "id": 1,
1191
+ "name": "记录气压数据",
1192
+ "task_type": 0,
1193
+ "duration": 20,
1194
+ "x": 1141.054018,
1195
+ "y": 2850.878718,
1196
+ "room": "制氧舱"
1197
+ },
1198
+ {
1199
+ "id": 2,
1200
+ "name": "泡咖啡",
1201
+ "task_type": 0,
1202
+ "duration": 6,
1203
+ "x": 1926.306795,
1204
+ "y": 2380.073217,
1205
+ "room": "自助餐厅"
1206
+ },
1207
+ {
1208
+ "id": 1042,
1209
+ "name": "修复火灾-通讯间",
1210
+ "task_type": 2,
1211
+ "duration": 10,
1212
+ "x": 3728.261111,
1213
+ "y": 2456.366667,
1214
+ "room": "情报室"
1215
+ },
1216
+ {
1217
+ "id": 19,
1218
+ "name": "锻炼核心肌肉",
1219
+ "task_type": 0,
1220
+ "duration": 6,
1221
+ "x": 2254.305632,
1222
+ "y": 780.800066,
1223
+ "room": "健身房"
1224
+ },
1225
+ {
1226
+ "id": 33,
1227
+ "name": "激活引擎",
1228
+ "task_type": 0,
1229
+ "duration": 6,
1230
+ "x": 262.73,
1231
+ "y": 2231.12,
1232
+ "room": "动力监控室"
1233
+ },
1234
+ {
1235
+ "id": 27,
1236
+ "name": "校准深度",
1237
+ "task_type": 0,
1238
+ "duration": 10,
1239
+ "x": 1444.18271,
1240
+ "y": 1898.018916,
1241
+ "room": "监控室"
1242
+ },
1243
+ {
1244
+ "id": 22,
1245
+ "name": "调整水温设置",
1246
+ "task_type": 0,
1247
+ "duration": 6,
1248
+ "x": 2548.873233,
1249
+ "y": 207.064295,
1250
+ "room": "浴室"
1251
+ },
1252
+ {
1253
+ "id": 8,
1254
+ "name": "检查库存物资",
1255
+ "task_type": 0,
1256
+ "duration": 20,
1257
+ "x": 2686.310534,
1258
+ "y": 3049.829913,
1259
+ "room": "冷库"
1260
+ },
1261
+ {
1262
+ "id": 23,
1263
+ "name": "消毒淋浴器",
1264
+ "task_type": 0,
1265
+ "duration": 10,
1266
+ "x": 2424,
1267
+ "y": 237.666667,
1268
+ "room": "浴室"
1269
+ },
1270
+ {
1271
+ "id": 21,
1272
+ "name": "仔细擦拭雕像",
1273
+ "task_type": 0,
1274
+ "duration": 10,
1275
+ "x": 2509.166667,
1276
+ "y": 402.333333,
1277
+ "room": "浴室"
1278
+ },
1279
+ {
1280
+ "id": 25,
1281
+ "name": "维修椭圆机",
1282
+ "task_type": 0,
1283
+ "duration": 8,
1284
+ "x": 2516.333333,
1285
+ "y": 854,
1286
+ "room": "健身房"
1287
+ },
1288
+ {
1289
+ "id": 1021,
1290
+ "name": "解除毒药",
1291
+ "task_type": 2,
1292
+ "duration": 10,
1293
+ "x": 1556.666667,
1294
+ "y": 1229.333333,
1295
+ "room": "酒吧"
1296
+ },
1297
+ {
1298
+ "id": 6,
1299
+ "name": "擦拭酒瓶",
1300
+ "task_type": 0,
1301
+ "duration": 10,
1302
+ "x": 1883.363636,
1303
+ "y": 946.367997,
1304
+ "room": "酒吧"
1305
+ },
1306
+ {
1307
+ "id": 102,
1308
+ "name": "激活毒药破坏",
1309
+ "task_type": 1,
1310
+ "duration": 10,
1311
+ "x": 1883.363592,
1312
+ "y": 946.376076,
1313
+ "room": "酒吧"
1314
+ },
1315
+ {
1316
+ "id": 103,
1317
+ "name": "激活关门破坏",
1318
+ "task_type": 1,
1319
+ "duration": 10,
1320
+ "x": 1444.183333,
1321
+ "y": 1898.022222,
1322
+ "room": "监控室"
1323
+ },
1324
+ {
1325
+ "id": 18,
1326
+ "name": "核实来访者身份",
1327
+ "task_type": 0,
1328
+ "duration": 6,
1329
+ "x": 1652.909091,
1330
+ "y": 1871,
1331
+ "room": "监控室"
1332
+ },
1333
+ {
1334
+ "id": 1011,
1335
+ "name": "稳定反应堆",
1336
+ "task_type": 2,
1337
+ "duration": 7,
1338
+ "x": 1219.007576,
1339
+ "y": 1876.742424,
1340
+ "room": "能源舱"
1341
+ },
1342
+ {
1343
+ "id": 1012,
1344
+ "name": "修复能量泵",
1345
+ "task_type": 2,
1346
+ "duration": 7,
1347
+ "x": 1121.113636,
1348
+ "y": 2468.348485,
1349
+ "room": "能源舱"
1350
+ },
1351
+ {
1352
+ "id": 26,
1353
+ "name": "引擎温度校验",
1354
+ "task_type": 0,
1355
+ "duration": 10,
1356
+ "x": 688.2,
1357
+ "y": 2010.151515,
1358
+ "room": "动力监控室"
1359
+ },
1360
+ {
1361
+ "id": 28,
1362
+ "name": "启动加速模式",
1363
+ "task_type": 0,
1364
+ "duration": 10,
1365
+ "x": 585.909091,
1366
+ "y": 2049.454545,
1367
+ "room": "动力监控室"
1368
+ },
1369
+ {
1370
+ "id": 1041,
1371
+ "name": "修复火灾-发动机",
1372
+ "task_type": 2,
1373
+ "duration": 10,
1374
+ "x": 262.727273,
1375
+ "y": 2231.121212,
1376
+ "room": "动力监控室"
1377
+ },
1378
+ {
1379
+ "id": 7,
1380
+ "name": "检查反应堆",
1381
+ "task_type": 0,
1382
+ "duration": 6,
1383
+ "x": 857.029948,
1384
+ "y": 2136.330374,
1385
+ "room": "能源舱"
1386
+ },
1387
+ {
1388
+ "id": 32,
1389
+ "name": "调整能源输出",
1390
+ "task_type": 0,
1391
+ "duration": 20,
1392
+ "x": 1166.212121,
1393
+ "y": 2350.75,
1394
+ "room": "能源舱"
1395
+ },
1396
+ {
1397
+ "id": 101,
1398
+ "name": "激活能源破坏",
1399
+ "task_type": 1,
1400
+ "duration": 10,
1401
+ "x": 857.028409,
1402
+ "y": 2136.331439,
1403
+ "room": "能源舱"
1404
+ },
1405
+ {
1406
+ "id": 105,
1407
+ "name": "激活氧气破坏",
1408
+ "task_type": 1,
1409
+ "duration": 10,
1410
+ "x": 1168,
1411
+ "y": 2938,
1412
+ "room": "制氧舱"
1413
+ },
1414
+ {
1415
+ "id": 1051,
1416
+ "name": "修复氧气系统",
1417
+ "task_type": 2,
1418
+ "duration": 10,
1419
+ "x": 1168,
1420
+ "y": 2938,
1421
+ "room": "制氧舱"
1422
+ },
1423
+ {
1424
+ "id": 30,
1425
+ "name": "调整氧气浓度",
1426
+ "task_type": 0,
1427
+ "duration": 20,
1428
+ "x": 1168,
1429
+ "y": 2938,
1430
+ "room": "制氧舱"
1431
+ },
1432
+ {
1433
+ "id": 24,
1434
+ "name": "丢垃圾",
1435
+ "task_type": 0,
1436
+ "duration": 6,
1437
+ "x": 1856.666667,
1438
+ "y": 2868,
1439
+ "room": "自助餐厅"
1440
+ },
1441
+ {
1442
+ "id": 5,
1443
+ "name": "疏通售货机",
1444
+ "task_type": 0,
1445
+ "duration": 8,
1446
+ "x": 1787,
1447
+ "y": 2436,
1448
+ "room": "自助餐厅"
1449
+ },
1450
+ {
1451
+ "id": 16,
1452
+ "name": "维修饮水机",
1453
+ "task_type": 0,
1454
+ "duration": 6,
1455
+ "x": 2047.666667,
1456
+ "y": 2513.666667,
1457
+ "room": "自助餐厅"
1458
+ },
1459
+ {
1460
+ "id": 3,
1461
+ "name": "检查医疗报告",
1462
+ "task_type": 0,
1463
+ "duration": 10,
1464
+ "x": 2057.666667,
1465
+ "y": 1594.333333,
1466
+ "room": "居住区"
1467
+ },
1468
+ {
1469
+ "id": 20,
1470
+ "name": "修理电视",
1471
+ "task_type": 0,
1472
+ "duration": 6,
1473
+ "x": 2444.333333,
1474
+ "y": 2464.666667,
1475
+ "room": "休闲会所"
1476
+ },
1477
+ {
1478
+ "id": 4,
1479
+ "name": "做身体检查",
1480
+ "task_type": 0,
1481
+ "duration": 6,
1482
+ "x": 2306.666667,
1483
+ "y": 1611.333333,
1484
+ "room": "居住区"
1485
+ },
1486
+ {
1487
+ "id": 9,
1488
+ "name": "获取食材",
1489
+ "task_type": 0,
1490
+ "duration": 6,
1491
+ "x": 2763.666667,
1492
+ "y": 3055.666667,
1493
+ "room": "冷库"
1494
+ },
1495
+ {
1496
+ "id": 10,
1497
+ "name": "清洁沙发",
1498
+ "task_type": 0,
1499
+ "duration": 8,
1500
+ "x": 2887,
1501
+ "y": 2179.666667,
1502
+ "room": "休闲会所"
1503
+ },
1504
+ {
1505
+ "id": 15,
1506
+ "name": "清洗食材",
1507
+ "task_type": 0,
1508
+ "duration": 20,
1509
+ "x": 2718.333333,
1510
+ "y": 2561.666667,
1511
+ "room": "中央厨房"
1512
+ },
1513
+ {
1514
+ "id": 31,
1515
+ "name": "做饭",
1516
+ "task_type": 0,
1517
+ "duration": 8,
1518
+ "x": 2420.333333,
1519
+ "y": 2731,
1520
+ "room": "中央厨房"
1521
+ },
1522
+ {
1523
+ "id": 13,
1524
+ "name": "调试无线电频道",
1525
+ "task_type": 0,
1526
+ "duration": 6,
1527
+ "x": 3728.273872,
1528
+ "y": 2456.368316,
1529
+ "room": "情报室"
1530
+ },
1531
+ {
1532
+ "id": 104,
1533
+ "name": "激活火灾破坏",
1534
+ "task_type": 1,
1535
+ "duration": 10,
1536
+ "x": 3728.278385,
1537
+ "y": 2456.370486,
1538
+ "room": "情报室"
1539
+ },
1540
+ {
1541
+ "id": 29,
1542
+ "name": "激活加速",
1543
+ "task_type": 0,
1544
+ "duration": 10,
1545
+ "x": 4399,
1546
+ "y": 2252,
1547
+ "room": "控制室"
1548
+ },
1549
+ {
1550
+ "id": 14,
1551
+ "name": "提交报告",
1552
+ "task_type": 0,
1553
+ "duration": 10,
1554
+ "x": 4343.666667,
1555
+ "y": 2030.333333,
1556
+ "room": "控制室"
1557
+ },
1558
+ {
1559
+ "id": 34,
1560
+ "name": "降低冷库温度",
1561
+ "task_type": 0,
1562
+ "duration": 6,
1563
+ "x": 2943.333333,
1564
+ "y": 2660.666667,
1565
+ "room": "中央厨房"
1566
+ },
1567
+ {
1568
+ "id": 12,
1569
+ "name": "校准航行路线",
1570
+ "task_type": 0,
1571
+ "duration": 20,
1572
+ "x": 3766,
1573
+ "y": 2008.5,
1574
+ "room": "情报室"
1575
+ },
1576
+ {
1577
+ "id": 11,
1578
+ "name": "检查雷达信号",
1579
+ "task_type": 0,
1580
+ "duration": 10,
1581
+ "x": 2849,
1582
+ "y": 1815,
1583
+ "room": "导航仓"
1584
+ },
1585
+ {
1586
+ "id": 17,
1587
+ "name": "整理床铺",
1588
+ "task_type": 0,
1589
+ "duration": 10,
1590
+ "x": 2174.666667,
1591
+ "y": 1934.333333,
1592
+ "room": "居住区"
1593
+ },
1594
+ {
1595
+ "id": 108,
1596
+ "name": "激活航线破坏",
1597
+ "task_type": 1,
1598
+ "duration": 10,
1599
+ "x": 4399,
1600
+ "y": 2252,
1601
+ "room": "控制室"
1602
+ },
1603
+ {
1604
+ "id": 35,
1605
+ "name": "调整装置",
1606
+ "task_type": 0,
1607
+ "duration": 10,
1608
+ "x": 2708,
1609
+ "y": 2320,
1610
+ "room": "休闲会所"
1611
+ },
1612
+ {
1613
+ "id": 106,
1614
+ "name": "激活机关破坏",
1615
+ "task_type": 1,
1616
+ "duration": 10,
1617
+ "x": 2708,
1618
+ "y": 2320,
1619
+ "room": "休闲会所"
1620
+ },
1621
+ {
1622
+ "id": 36,
1623
+ "name": "取食物",
1624
+ "task_type": 0,
1625
+ "duration": 10,
1626
+ "x": 2230,
1627
+ "y": 2563,
1628
+ "room": "自助餐厅"
1629
+ },
1630
+ {
1631
+ "id": 107,
1632
+ "name": "激活食物破坏",
1633
+ "task_type": 1,
1634
+ "duration": 10,
1635
+ "x": 2230,
1636
+ "y": 2563,
1637
+ "room": "自助餐厅"
1638
+ }
1639
+ ],
1640
+ "spawn_points": [
1641
+ {
1642
+ "index": 1,
1643
+ "x": 2264.387712,
1644
+ "y": 865.051708
1645
+ },
1646
+ {
1647
+ "index": 2,
1648
+ "x": 1539.782484,
1649
+ "y": 1576.989124
1650
+ },
1651
+ {
1652
+ "index": 3,
1653
+ "x": 397.824843,
1654
+ "y": 2286.15684
1655
+ },
1656
+ {
1657
+ "index": 4,
1658
+ "x": 916.717802,
1659
+ "y": 2670.291929
1660
+ },
1661
+ {
1662
+ "index": 5,
1663
+ "x": 1232.785346,
1664
+ "y": 2836.874642
1665
+ },
1666
+ {
1667
+ "index": 6,
1668
+ "x": 2616.17821,
1669
+ "y": 2719.348216
1670
+ },
1671
+ {
1672
+ "index": 7,
1673
+ "x": 3276.63194,
1674
+ "y": 2266.708643
1675
+ },
1676
+ {
1677
+ "index": 8,
1678
+ "x": 3722.491128,
1679
+ "y": 2156.606754
1680
+ },
1681
+ {
1682
+ "index": 9,
1683
+ "x": 4088.76474,
1684
+ "y": 2631.464224
1685
+ },
1686
+ {
1687
+ "index": 10,
1688
+ "x": 4164.865484,
1689
+ "y": 2102.191185
1690
+ }
1691
+ ]
1692
+ }