nttd 0.0.3__py3-none-any.whl

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 (201) hide show
  1. nttd/__init__.py +0 -0
  2. nttd/_data/config/actions/descriptions.json +1052 -0
  3. nttd/_data/config/actions/enums.json +402 -0
  4. nttd/_data/config/actions/manifest.json +5308 -0
  5. nttd/_data/config/benchmark/README.md +95 -0
  6. nttd/_data/config/benchmark/profile.conf +116 -0
  7. nttd/_data/config/benchmark/t1_256_flat_1001_realtime.conf +48 -0
  8. nttd/_data/config/benchmark/t1_256_flat_1001_stepped.conf +61 -0
  9. nttd/_data/config/benchmark/t2_256_flat_1001_realtime.conf +47 -0
  10. nttd/_data/config/benchmark/t2_256_flat_1001_stepped.conf +60 -0
  11. nttd/_data/config/benchmark/t3_512_hilly_2001_realtime.conf +48 -0
  12. nttd/_data/config/benchmark/t3_512_hilly_2001_stepped.conf +61 -0
  13. nttd/_data/config/benchmark/t4_512_hilly_2001_realtime.conf +48 -0
  14. nttd/_data/config/benchmark/t4_512_hilly_2001_stepped.conf +61 -0
  15. nttd/_data/ottd_config/README.md +788 -0
  16. nttd/_data/ottd_config/ai/nttd-idle/info.nut +12 -0
  17. nttd/_data/ottd_config/ai/nttd-idle/main.nut +9 -0
  18. nttd/_data/ottd_config/game/nttd-gs/info.nut +14 -0
  19. nttd/_data/ottd_config/game/nttd-gs/main.nut +5291 -0
  20. nttd/_data/ottd_config/openttd.cfg +474 -0
  21. nttd/_data/ottd_config/scripts/autoexec.scr +3 -0
  22. nttd/actions/__init__.py +0 -0
  23. nttd/actions/gate.py +102 -0
  24. nttd/actions/gs_reply.py +81 -0
  25. nttd/actions/tracker.py +51 -0
  26. nttd/analysis/__init__.py +0 -0
  27. nttd/analysis/business_metrics.py +399 -0
  28. nttd/analysis/date_utils.py +63 -0
  29. nttd/analysis/loader.py +210 -0
  30. nttd/analysis/plots.py +698 -0
  31. nttd/analysis/reports/__init__.py +0 -0
  32. nttd/analysis/reports/action_analysis.py +108 -0
  33. nttd/analysis/reports/cargo_delivery.py +225 -0
  34. nttd/analysis/reports/cargo_distances.py +321 -0
  35. nttd/analysis/reports/cargo_routes.py +236 -0
  36. nttd/analysis/reports/events_timeline.py +57 -0
  37. nttd/analysis/reports/financial.py +119 -0
  38. nttd/analysis/reports/infrastructure.py +91 -0
  39. nttd/analysis/reports/orders.py +179 -0
  40. nttd/analysis/reports/registry.py +222 -0
  41. nttd/analysis/reports/renderer.py +130 -0
  42. nttd/analysis/reports/route_completion.py +251 -0
  43. nttd/analysis/reports/session_summary.py +65 -0
  44. nttd/analysis/reports/stations.py +158 -0
  45. nttd/analysis/reports/terrain_palette.py +161 -0
  46. nttd/analysis/reports/tile_map.py +204 -0
  47. nttd/analysis/reports/vehicle_fleet.py +93 -0
  48. nttd/analysis/reports/video.py +615 -0
  49. nttd/analysis/reports/world_state.py +134 -0
  50. nttd/analysis/score.py +111 -0
  51. nttd/api/__init__.py +0 -0
  52. nttd/api/action_routes.py +352 -0
  53. nttd/api/actions_routes.py +94 -0
  54. nttd/api/admin_routes.py +621 -0
  55. nttd/api/agent_routes.py +66 -0
  56. nttd/api/analysis_routes.py +105 -0
  57. nttd/api/app.py +149 -0
  58. nttd/api/benchmark_routes.py +118 -0
  59. nttd/api/control_routes.py +406 -0
  60. nttd/api/dependencies.py +22 -0
  61. nttd/api/observation_routes.py +595 -0
  62. nttd/api/participant_auth.py +108 -0
  63. nttd/api/scored_guard.py +87 -0
  64. nttd/api/snapshot_routes.py +76 -0
  65. nttd/api/tiers.py +64 -0
  66. nttd/api/ws_routes.py +143 -0
  67. nttd/bridge/__init__.py +0 -0
  68. nttd/bridge/admin_client.py +592 -0
  69. nttd/bridge/bridge.py +81 -0
  70. nttd/bridge/command_names.py +68 -0
  71. nttd/bridge/poll_packet.py +35 -0
  72. nttd/cli/__init__.py +0 -0
  73. nttd/cli/actions_command.py +217 -0
  74. nttd/cli/analyze_command.py +166 -0
  75. nttd/cli/app.py +65 -0
  76. nttd/cli/benchmark_command.py +377 -0
  77. nttd/cli/helpers.py +173 -0
  78. nttd/cli/mcp_command.py +50 -0
  79. nttd/cli/monitor_command.py +64 -0
  80. nttd/cli/result_command.py +283 -0
  81. nttd/cli/scenario_commands.py +149 -0
  82. nttd/cli/server_command.py +43 -0
  83. nttd/cli/session_commands.py +343 -0
  84. nttd/cli/submit_command.py +109 -0
  85. nttd/cli/verify_command.py +155 -0
  86. nttd/config/__init__.py +0 -0
  87. nttd/config/action_manifest.py +104 -0
  88. nttd/config/benchmark_profile.py +372 -0
  89. nttd/config/error_codes.py +72 -0
  90. nttd/config/scenario_config.py +854 -0
  91. nttd/config/task_instance.py +140 -0
  92. nttd/constants.py +216 -0
  93. nttd/interpreter/__init__.py +0 -0
  94. nttd/interpreter/action_schema.py +32 -0
  95. nttd/interpreter/parser.py +94 -0
  96. nttd/interpreter/validator.py +86 -0
  97. nttd/mcp/__init__.py +0 -0
  98. nttd/mcp/__main__.py +5 -0
  99. nttd/mcp/action_types.py +37 -0
  100. nttd/mcp/participant_client.py +113 -0
  101. nttd/mcp/server.py +112 -0
  102. nttd/mcp/tools/__init__.py +0 -0
  103. nttd/mcp/tools/act.py +63 -0
  104. nttd/mcp/tools/catalogue.py +62 -0
  105. nttd/mcp/tools/observe.py +26 -0
  106. nttd/mcp/tools/query.py +41 -0
  107. nttd/mcp/tools/step.py +37 -0
  108. nttd/monitor/__init__.py +0 -0
  109. nttd/monitor/assets.py +301 -0
  110. nttd/monitor/charts.py +281 -0
  111. nttd/monitor/health.py +214 -0
  112. nttd/monitor/page.py +345 -0
  113. nttd/monitor/registry.py +148 -0
  114. nttd/monitor/request_handler.py +126 -0
  115. nttd/monitor/scale.py +90 -0
  116. nttd/monitor/sentry.py +80 -0
  117. nttd/monitor/server.py +133 -0
  118. nttd/monitor/session_feed.py +329 -0
  119. nttd/monitor/terrain_png.py +160 -0
  120. nttd/monitor/worldmap.py +238 -0
  121. nttd/pathfinding/__init__.py +0 -0
  122. nttd/pathfinding/astar.py +121 -0
  123. nttd/pathfinding/rail.py +182 -0
  124. nttd/pathfinding/road.py +164 -0
  125. nttd/pathfinding/service.py +105 -0
  126. nttd/pathfinding/tile_cache.py +131 -0
  127. nttd/pathfinding/water.py +71 -0
  128. nttd/resources.py +68 -0
  129. nttd/rl/__init__.py +0 -0
  130. nttd/rl/env.py +264 -0
  131. nttd/runtime/__init__.py +0 -0
  132. nttd/runtime/company_lock.py +47 -0
  133. nttd/runtime/config_builder.py +278 -0
  134. nttd/runtime/end_conditions.py +192 -0
  135. nttd/runtime/final_save.py +154 -0
  136. nttd/runtime/orchestrator.py +1054 -0
  137. nttd/runtime/participant_registry.py +139 -0
  138. nttd/runtime/participant_report.py +167 -0
  139. nttd/runtime/scored_lock.py +88 -0
  140. nttd/runtime/session_manager.py +635 -0
  141. nttd/runtime/session_runtime.py +479 -0
  142. nttd/runtime/step_errors.py +69 -0
  143. nttd/runtime/step_gate.py +114 -0
  144. nttd/schemas/__init__.py +0 -0
  145. nttd/schemas/action_envelope.py +19 -0
  146. nttd/schemas/action_result.py +54 -0
  147. nttd/schemas/agent.py +30 -0
  148. nttd/schemas/cargo_flow.py +12 -0
  149. nttd/schemas/compact_snapshot.py +74 -0
  150. nttd/schemas/company.py +33 -0
  151. nttd/schemas/game.py +27 -0
  152. nttd/schemas/industry.py +26 -0
  153. nttd/schemas/infrastructure.py +15 -0
  154. nttd/schemas/route.py +32 -0
  155. nttd/schemas/snapshot.py +25 -0
  156. nttd/schemas/spend_report.py +67 -0
  157. nttd/schemas/station.py +31 -0
  158. nttd/schemas/step_result.py +101 -0
  159. nttd/schemas/subsidy.py +21 -0
  160. nttd/schemas/town.py +12 -0
  161. nttd/schemas/vehicle.py +40 -0
  162. nttd/schemas/verification.py +82 -0
  163. nttd/state/__init__.py +0 -0
  164. nttd/state/agent_registry.py +54 -0
  165. nttd/state/route_planner.py +366 -0
  166. nttd/state/route_registry.py +293 -0
  167. nttd/state/situation.py +286 -0
  168. nttd/state/snapshot_broker.py +35 -0
  169. nttd/state/snapshot_class.py +97 -0
  170. nttd/state/tile_footprint.py +153 -0
  171. nttd/state/world.py +366 -0
  172. nttd/store/__init__.py +0 -0
  173. nttd/store/map_digest.py +102 -0
  174. nttd/store/parquet_reader.py +177 -0
  175. nttd/store/parquet_writer.py +174 -0
  176. nttd/store/recorder.py +382 -0
  177. nttd/store/repositories/__init__.py +0 -0
  178. nttd/store/repositories/session_repo.py +188 -0
  179. nttd/store/result_writer.py +372 -0
  180. nttd/store/session_paths.py +54 -0
  181. nttd/store/session_writer.py +135 -0
  182. nttd/store/submission_bundle.py +186 -0
  183. nttd/store/terrain_scan.py +67 -0
  184. nttd/store/tile_writer.py +180 -0
  185. nttd/store/verification_gaps.py +64 -0
  186. nttd/utils/__init__.py +0 -0
  187. nttd/utils/game_date.py +61 -0
  188. nttd/utils/game_text.py +134 -0
  189. nttd/utils/name_generator.py +75 -0
  190. nttd/verify/__init__.py +0 -0
  191. nttd/verify/checks.py +225 -0
  192. nttd/verify/headless_openttd.py +182 -0
  193. nttd/verify/replay.py +189 -0
  194. nttd/verify/validator.py +268 -0
  195. nttd/version.py +28 -0
  196. nttd-0.0.3.dist-info/METADATA +438 -0
  197. nttd-0.0.3.dist-info/RECORD +201 -0
  198. nttd-0.0.3.dist-info/WHEEL +4 -0
  199. nttd-0.0.3.dist-info/entry_points.txt +2 -0
  200. nttd-0.0.3.dist-info/licenses/LICENSE +202 -0
  201. nttd-0.0.3.dist-info/licenses/NOTICE +44 -0
nttd/__init__.py ADDED
File without changes