poe2brain 0.2.1__tar.gz → 0.2.2__tar.gz

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 (171) hide show
  1. {poe2brain-0.2.1 → poe2brain-0.2.2}/.agents/skills/poe2brain/SKILL.md +6 -6
  2. {poe2brain-0.2.1 → poe2brain-0.2.2}/.github/workflows/release.yml +7 -2
  3. {poe2brain-0.2.1 → poe2brain-0.2.2}/PKG-INFO +1 -1
  4. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/poe2_0.5.5.sqlite +0 -0
  5. poe2brain-0.2.2/data/zh_localization_0.5.5.json.gz +0 -0
  6. {poe2brain-0.2.1 → poe2brain-0.2.2}/plugin.json +1 -1
  7. {poe2brain-0.2.1 → poe2brain-0.2.2}/pyproject.toml +1 -1
  8. {poe2brain-0.2.1 → poe2brain-0.2.2}/scripts/sync_build_names_zh.py +122 -14
  9. {poe2brain-0.2.1 → poe2brain-0.2.2}/scripts/sync_gamedata.py +447 -20
  10. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/__init__.py +1 -1
  11. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/cli.py +49 -6
  12. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/config.py +38 -0
  13. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/knowledge/db.py +5 -0
  14. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/knowledge/meta.py +14 -1
  15. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/knowledge/service.py +176 -2
  16. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/knowledge/zh_aliases.py +134 -2
  17. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/mcp_server.py +61 -8
  18. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/builds.py +21 -0
  19. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/knowledge.py +1 -0
  20. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/ninja/service.py +34 -15
  21. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/budget.py +64 -14
  22. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/local_sync.py +19 -0
  23. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/lua/pob2_bridge.lua +610 -18
  24. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/service.py +173 -2
  25. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/economy.py +3 -0
  26. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/trade2_client.py +3 -0
  27. poe2brain-0.2.2/tests/test_gemling_journey.py +162 -0
  28. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_journeys_community.py +145 -0
  29. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_budget.py +18 -2
  30. {poe2brain-0.2.1 → poe2brain-0.2.2}/uv.lock +1 -1
  31. poe2brain-0.2.1/data/zh_localization_0.5.5.json.gz +0 -0
  32. {poe2brain-0.2.1 → poe2brain-0.2.2}/.agents/mcp_config.json +0 -0
  33. {poe2brain-0.2.1 → poe2brain-0.2.2}/.agents/skills/poe2brain/references/crafting-playbook.md +0 -0
  34. {poe2brain-0.2.1 → poe2brain-0.2.2}/.agents/skills/poe2brain/references/filters-and-ninja.md +0 -0
  35. {poe2brain-0.2.1 → poe2brain-0.2.2}/.agents/skills/poe2brain/references/mechanics-0.5.5.md +0 -0
  36. {poe2brain-0.2.1 → poe2brain-0.2.2}/.agents/skills/poe2brain/references/pob2-workflows.md +0 -0
  37. {poe2brain-0.2.1 → poe2brain-0.2.2}/.agents/skills/poe2brain/references/trade-economy.md +0 -0
  38. {poe2brain-0.2.1 → poe2brain-0.2.2}/.devin/mcp_config.json +0 -0
  39. {poe2brain-0.2.1 → poe2brain-0.2.2}/.github/pull_request_template.md +0 -0
  40. {poe2brain-0.2.1 → poe2brain-0.2.2}/.github/workflows/ci.yml +0 -0
  41. {poe2brain-0.2.1 → poe2brain-0.2.2}/.github/workflows/cla.yml +0 -0
  42. {poe2brain-0.2.1 → poe2brain-0.2.2}/.github/workflows/mirror-gitcode.yml +0 -0
  43. {poe2brain-0.2.1 → poe2brain-0.2.2}/.github/workflows/sync-build-index.yml +0 -0
  44. {poe2brain-0.2.1 → poe2brain-0.2.2}/.gitignore +0 -0
  45. {poe2brain-0.2.1 → poe2brain-0.2.2}/.mcp.json +0 -0
  46. {poe2brain-0.2.1 → poe2brain-0.2.2}/AGENTS.md +0 -0
  47. {poe2brain-0.2.1 → poe2brain-0.2.2}/ATTRIBUTION.md +0 -0
  48. {poe2brain-0.2.1 → poe2brain-0.2.2}/CLA.md +0 -0
  49. {poe2brain-0.2.1 → poe2brain-0.2.2}/CONTRIBUTING.md +0 -0
  50. {poe2brain-0.2.1 → poe2brain-0.2.2}/LICENSE +0 -0
  51. {poe2brain-0.2.1 → poe2brain-0.2.2}/README.md +0 -0
  52. {poe2brain-0.2.1 → poe2brain-0.2.2}/README_ZH.md +0 -0
  53. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/README.md +0 -0
  54. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/__init__.py +0 -0
  55. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/fixed-budget-oracle.md +0 -0
  56. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/fixtures/amazon_ice_shot_0_5_5.xml +0 -0
  57. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/fixtures/automatic-upgrade-offers.json +0 -0
  58. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/fixtures/broken_legacy.filter +0 -0
  59. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/fixtures/fixed-budget-oracle-offers.json +0 -0
  60. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/fixtures/triage_dump_0_5_5.txt +0 -0
  61. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/fixtures/zh_bow_0_5_5.txt +0 -0
  62. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/poe2_bench_0_5_5.json +0 -0
  63. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/results/codex_0_5_5.json +0 -0
  64. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/run_benchmark.py +0 -0
  65. {poe2brain-0.2.1 → poe2brain-0.2.2}/benchmarks/scorer.py +0 -0
  66. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/ee2/LICENSE.Exiled-Exchange-2 +0 -0
  67. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/ee2/ee2_item_drop.json +0 -0
  68. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/ee2/ee2_items.ndjson +0 -0
  69. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/ee2/ee2_manifest.json +0 -0
  70. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/ee2/ee2_remnants.json +0 -0
  71. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/ee2/ee2_stats.ndjson +0 -0
  72. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/ee2/trade2_official_stats.json +0 -0
  73. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/filter/LICENSE.NeverSink +0 -0
  74. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/filter/LICENSE.filter-data +0 -0
  75. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/filter/item_classes_0.5.5.json +0 -0
  76. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/mechanics_facts.json +0 -0
  77. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/modsview_weights.json.gz +0 -0
  78. {poe2brain-0.2.1 → poe2brain-0.2.2}/data/weights_overrides.json +0 -0
  79. {poe2brain-0.2.1 → poe2brain-0.2.2}/docs/assets/hero-banner.svg +0 -0
  80. {poe2brain-0.2.1 → poe2brain-0.2.2}/docs/zh/AGENT_SETUP.md +0 -0
  81. {poe2brain-0.2.1 → poe2brain-0.2.2}/docs/zh/CN_FREE_SETUP.md +0 -0
  82. {poe2brain-0.2.1 → poe2brain-0.2.2}/docs/zh/CN_REALM.md +0 -0
  83. {poe2brain-0.2.1 → poe2brain-0.2.2}/docs/zh/PLAYBOOKS.md +0 -0
  84. {poe2brain-0.2.1 → poe2brain-0.2.2}/docs/zh/QUICKSTART_WINDOWS.md +0 -0
  85. {poe2brain-0.2.1 → poe2brain-0.2.2}/scripts/bootstrap_pob2.sh +0 -0
  86. {poe2brain-0.2.1 → poe2brain-0.2.2}/scripts/install_cn.ps1 +0 -0
  87. {poe2brain-0.2.1 → poe2brain-0.2.2}/scripts/sync_build_index.py +0 -0
  88. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/crafting/__init__.py +0 -0
  89. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/crafting/planner.py +0 -0
  90. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/crafting/pool.py +0 -0
  91. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/crafting/profit.py +0 -0
  92. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/filters/__init__.py +0 -0
  93. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/filters/generator.py +0 -0
  94. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/filters/grammar.py +0 -0
  95. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/filters/neversink.py +0 -0
  96. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/filters/preview.py +0 -0
  97. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/filters/soundpacks.py +0 -0
  98. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/filters/themes.py +0 -0
  99. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/filters/validator.py +0 -0
  100. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/http.py +0 -0
  101. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/impersonate.py +0 -0
  102. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/knowledge/__init__.py +0 -0
  103. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/knowledge/waystone_regex.py +0 -0
  104. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/__init__.py +0 -0
  105. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/common.py +0 -0
  106. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/crafting.py +0 -0
  107. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/filters.py +0 -0
  108. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/items.py +0 -0
  109. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/ninja.py +0 -0
  110. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/models/trade.py +0 -0
  111. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/ninja/__init__.py +0 -0
  112. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/ninja/protobuf.py +0 -0
  113. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/ninja/store.py +0 -0
  114. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/ninja/xml_inspector.py +0 -0
  115. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/__init__.py +0 -0
  116. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/bootstrap.py +0 -0
  117. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/bridge.py +0 -0
  118. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/cn.py +0 -0
  119. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/daemon.py +0 -0
  120. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/oauth.py +0 -0
  121. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/pob/win_luajit.py +0 -0
  122. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/setup_tools.py +0 -0
  123. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/__init__.py +0 -0
  124. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/advisor.py +0 -0
  125. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/arbitrage.py +0 -0
  126. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/budget_offers.py +0 -0
  127. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/ee2_bundle.py +0 -0
  128. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/farming.py +0 -0
  129. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/item_parser.py +0 -0
  130. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/stat_matcher.py +0 -0
  131. {poe2brain-0.2.1 → poe2brain-0.2.2}/src/poe2brain/trade/upgrade_queries.py +0 -0
  132. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/conftest.py +0 -0
  133. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/fixtures/LICENSE.pobr +0 -0
  134. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/fixtures/sample_builds_0.5.5.json.gz +0 -0
  135. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_arbitrage.py +0 -0
  136. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_benchmark.py +0 -0
  137. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_browser_impersonation.py +0 -0
  138. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_budget_search_snapshots.py +0 -0
  139. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_build_names_zh.py +0 -0
  140. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_cli_mcp.py +0 -0
  141. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_cn_equipment_source.py +0 -0
  142. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_craft_profit.py +0 -0
  143. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_crafting.py +0 -0
  144. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_economy_trade2.py +0 -0
  145. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_farming_and_presets.py +0 -0
  146. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_filters.py +0 -0
  147. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_foundation.py +0 -0
  148. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_game_realm.py +0 -0
  149. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_item_parser_matcher.py +0 -0
  150. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_journeys_builds.py +0 -0
  151. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_journeys_craft_trade.py +0 -0
  152. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_journeys_filters.py +0 -0
  153. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_knowledge.py +0 -0
  154. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_meta_ladder.py +0 -0
  155. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_ninja.py +0 -0
  156. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob.py +0 -0
  157. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_attribute_reload.py +0 -0
  158. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_bridge.py +0 -0
  159. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_budget_oracle.py +0 -0
  160. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_chakra.py +0 -0
  161. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_cross_build.py +0 -0
  162. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_granted_skill_import.py +0 -0
  163. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_oauth.py +0 -0
  164. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_planner_equipment.py +0 -0
  165. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_resource_lifecycle.py +0 -0
  166. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_pob_rune_import.py +0 -0
  167. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_setup_tools.py +0 -0
  168. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_trade_resist_floors.py +0 -0
  169. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_upgrade_queries.py +0 -0
  170. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_ux_presets_enrichment.py +0 -0
  171. {poe2brain-0.2.1 → poe2brain-0.2.2}/tests/test_windows_oauth_zh.py +0 -0
@@ -30,9 +30,9 @@ Both surfaces call the same typed Python engine in the local `poe2brain` checkou
30
30
  | :--- | :--- | :--- | :--- |
31
31
  | **Setup** | `poe2_init` | `poe2 init <realm> --json` | Save the player’s realm for the CLI and MCP. |
32
32
  | **Health** | `poe2_status` | `poe2 version --json` | Verify patch (`0.5.5`), default league (`Forbidden Rites`), SQLite DB (`data/poe2_0.5.5.sqlite`), and headless PoB2 runtime (`~/.cache/poe2brain/pob2`). |
33
- | **Knowledge** | `poe2_search_knowledge` | `poe2 wiki search "<query>" [--category <cat>] [--limit 12] --json` | FTS5 + exact search across 769 GGG `KeywordPopups`, 54 anti-hallucination rules, 1,711 gems, 443 uniques, 3,219 live bases, 313 augments, 293 crafting levers, and 882 runeforge recipes. |
33
+ | **Knowledge** | `poe2_search_knowledge` | `poe2 wiki search "<query>" [--category <cat>] [--limit 12] --json` | Tri-locale (`en` + `zh-CN` + `zh-TW`) + CJK trigram FTS5 search across 769 GGG `KeywordPopups`, 54 anti-hallucination rules, 1,711 gems, 443 uniques, 4,622 bases, 313 augments, 619 Spectres/Companions, 29 permanent quest rewards, 293 crafting levers, and 882 runeforge/remnant recipes. |
34
34
  | **Knowledge** | `poe2_explain_mechanic` | `poe2 wiki mechanic "<topic>" --json` | Authoritative `MechanicFact` (`poe1_trap`, `poe2_live_rule`, `formula_expr`) + official GGG keyword popups. |
35
- | **Knowledge** | `poe2_inspect_gem` | `poe2 wiki gem "<name>" --json` | Active, Spirit, Meta, Tiered Support (`I`/`II`/`III`), and `lineage_support` (`max_copies_per_char=1`) gem stats and tag compatibility. |
35
+ | **Knowledge** | `poe2_inspect_gem` | `poe2 wiki gem "<name>" --json` | Active, Spirit, Meta, Tiered Support (`I`–`V`), and `lineage_support` (`max_copies_per_char=1`) gem stats, `cast_time`, `crit_chance`, `mana_cost_l1`/`l20`, `spirit_reservation_l1`/`l20`, `skill_types`, and `stat_sets`. |
36
36
  | **Knowledge** | `poe2_inspect_base` | `poe2 wiki base "<name>" [--ilvl 82] --json` | Base properties, implicits, `poe2db_slug`, top `display_tier=1` affixes at `ilvl`, and automatic PoE1 / stale `Expert ` base-name correction. |
37
37
  | **Knowledge** | `poe2_inspect_unique` | `poe2 wiki unique "<name>" --json` | Unique base type, implicits, explicits, and `is_chanceable` status. |
38
38
  | **Knowledge** | `poe2_inspect_augment` | `poe2 wiki augment "<query>" --json` | Runes, Soul Cores, Azmeri Idols, Shaman Bonded bonuses, and Patch `0.5` Verisium Anvil / Kalguuran Remnant recipes. |
@@ -42,16 +42,16 @@ Both surfaces call the same typed Python engine in the local `poe2brain` checkou
42
42
  | **PoB2** | `poe2_pob_load` | `poe2 pob load <code_url_or_file> [--slot main] [--skill-group N] --json` | Load `eN...` share code, `poe.ninja` / `poe2db.tw` / `maxroll.gg` / `pobb.in` URL, PoB XML, or GGG `.build` JSON into named slot (`main`, `ref`, `candidate`) and return `BuildStats`. Match the player’s main skill in `skill_groups` and pass its group to recalculate. |
43
43
  | **PoB2** | `poe2_pob_export` | `poe2 pob export --slot main --format code --json` | Return a share code to reopen the saved build in PoB2. Use `xml` for inspection or `ggg_json` for the game planner. |
44
44
  | **PoB2** | `poe2_pob_stats` | `poe2 pob stats [--slot main] --json` | Extract `FullDPS`, `TotalEHP`, `Life`, `ES`, `Mana`, `Spirit`, resists, `chaos_immune`, Max Hits, `movement_speed_mod`, `movement_speed_while_using_skill`, `attack_cast_speed`, crit, `Block`, `Deflection`, `Evasion`, and `Armour`. |
45
- | **PoB2** | `poe2_pob_audit` | `poe2 pob audit [<code_url_or_file>] [--slot main] --json` | **Dewatering & Weapon Swap audit**: strip PoB-warrior config inflation and return `DewateredAudit` (`raw_stats` vs `sustainable_pinnacle_stats`, `stripped_flags`, `skill_weapon_sets`, `unselected_quest_rewards`, `weapon_swap_audit`, `attribute_margins`, `bottlenecks`, and `hc_rip_risks`). |
45
+ | **PoB2** | `poe2_pob_audit` | `poe2 pob audit [<code_url_or_file>] [--slot main] --json` | **Dewatering & Weapon Swap audit**: strip PoB-warrior config inflation and return `DewateredAudit` (`raw_stats` vs `sustainable_pinnacle_stats`, `stripped_flags` + `backed_by`, `active_skill_telemetry`, `buff_provenance`, `skill_weapon_sets`, `unselected_quest_rewards`, `weapon_swap_audit`, `attribute_margins`, `bottlenecks`, and `hc_rip_risks`). |
46
46
  | **PoB2** | `poe2_pob_compare` | `poe2 pob compare [--slot-a early] [--slot-b main] [--dewater] --json` | Diff two persisted PoB2 slots across DPS/EHP, added/removed Uniques & gear, skill/support links, keystones/notables, and exact `0.5.5` Gold respec cost (`BuildSlotComparison`). |
47
47
  | **PoB2** | `poe2_pob_hc_audit` | `poe2 pob hc-audit [<code_url_or_file>] [--slot main] [--top-nodes 5] --json` | **HC Pinnacle Boss rip audit**: sustainable Phys/Ele/Chaos Max Hits, Bleed/Poison ES-bypass & Chaos `2x` ES checks, Charm audit, and top defensive EHP passive respecs + Gold cost (`HcRipAuditReport`). |
48
48
  | **PoB2** | `poe2_pob_eval_item` | `poe2 pob eval-item --equip-slot "<slot>" --item-text "<text>" [--slot main] --json` | Non-destructive `GetMiscCalculator()` swap returning `ItemUpgradeDiff` (`full_dps_delta`, `total_ehp_delta`, `phys_max_hit_delta`, `spirit_unreserved_delta`, `resist_deltas`). |
49
49
  | **PoB2** | `poe2_pob_stat_weights` | `poe2 pob weights --equip-slot "<slot>" [--objective balanced\|dps\|ehp] [--slot main] --json` | Compute exact marginal stat weights (`SlotStatWeights`, works on occupied or empty slots) and compile an unauthenticated-safe `trade2` `type: "count"` query (`trade2_weighted_filter`). |
50
- | **PoB2** | `poe2_pob_suggest_nodes` | `poe2 pob nodes [--mode perPoint\|total\|anoint\|megalomaniac] [--slot main] [--top 10] --json` | Rank reachable passive notables (`perPoint`/`total`), Amulet Liquid Emotion anoints (`anoint`), or `Megalomaniac` 2–3 notable combos + clickable `trade2` search URL (`megalomaniac`). |
50
+ | **PoB2** | `poe2_pob_suggest_nodes` | `poe2 pob nodes [--mode perPoint\|total\|anoint\|megalomaniac\|search] [--query "<stat_or_name>"] [--budget-points <n>] [--slot main] [--top 10] --json` | Rank reachable passive notables (`perPoint`/`total`), Amulet Liquid Emotion anoints (`anoint`), `Megalomaniac` combos (`megalomaniac`), or search & Steiner-path the `0_5` passive tree (`search`). |
51
51
  | **PoB2** | `poe2_pob_optimize_runes` | `poe2 pob runes [--slot main] [--objective balanced\|dps\|ehp\|spirit\|rarity] [--max-budget <ex>] --json` | Solve Armour/Weapon Rune & Soul Core **Resist Tetris** & socket optimization using SQLite `0.5.5` slot effects, live prices, and transactional PoB2 DPS/EHP/Resist verification (`RuneOptimizationReport`). |
52
52
  | **PoB2** | `poe2_pob_calc_breakdown` | `poe2 pob calc-breakdown "<query>" [--slot main] [--skill-group <idx>] [--max-mods 40] --json` | Inspect exact PoB2 calculation formulas & `BASE`/`INC`/`MORE`/`FLAG` modifier provenance (`CalcBreakdownReport`) grouped by Item/Tree/Skill/Config source, catching wrong-`skillGroup` traps. |
53
53
  | **PoB2** | `poe2_pob_supports` | `poe2 pob supports [--slot main] [--group <idx>] [--replace-slot <n>] [--replace-gem "<name>"] [--max-tier <1..5>] [--lineage/--no-lineage] [--top 15] --json` | Rank all compatible PoE2 `0.5.5` Support Gems (Tier `I`–`III` + Lineage) via `GetMiscCalculator()` with DPS/EHP deltas, Mana sustain, Spirit overflow, and cross-group Lineage `max_copies=1` conflict checks. |
54
- | **PoB2** | `poe2_pob_radius_jewels` | `poe2 pob radius-jewels --jewel "<jewel>" [--slot main] [--stat FullDPS] [--max-dist 10] [--top 10] --json` | Rank sockets for Against the Darkness using its small radius and the returned example rolls. For Controlled Metamorphosis, compare projected passive allocations across the eight rings. |
54
+ | **PoB2** | `poe2_pob_radius_jewels` | `poe2 pob radius-jewels --jewel "<jewel>" [--slot main] [--stat FullDPS] [--max-dist 10] [--top 10] --json` | Rank passive jewel sockets across `Controlled Metamorphosis` rings, `Against the Darkness` Small radius, or `Heroic Tragedy` / `Undying Hate` Timeless Conqueror variants & nearby Keystones. |
55
55
  | **PoB2** | `poe2_pob_what_if` | `poe2 pob what-if [--slot main] [--equip "Slot=TextOrPath"] [--edit-slot "<slot>" --add-mod "<line>" --remove-mod "<sub>" --set-quality 20] [--alloc-node <id>] [--dealloc-node <id>] [--config k=v] [--borrow-from <ref> --borrow-slot "<slot>"] [--scenario-matrix] [--apply] --json` | Transactional multi-change PoB2 hypothesis sandbox (`WhatIfReport`): test item edits, passive swaps, config overrides, or borrowed reference-build pieces with per-piece attribution, 3-scenario matrix, and automatic rollback unless `--apply` is passed. |
56
56
  | **PoB2** | `poe2_pob_import_local` | `poe2 pob import-local [<name_or_path>] [--dir <builds_dir>] [--slot main] [--list] --json` | Discover or load saved local Path of Building (PoE2) `.xml` builds directly without OAuth (Windows/macOS/Linux Day-1 sync). |
57
57
  | **PoB2** | `poe2_pob_import_character` | `poe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --json` | Import a converted Tencent PoE2DB character page or PoB code. International users can list and import account characters via GGG OAuth. |
@@ -64,7 +64,7 @@ Both surfaces call the same typed Python engine in the local `poe2brain` checkou
64
64
  | **Trade** | `poe2_price_check` | `poe2 trade check [--file <path> \| --text "<ctrl_c>"] [--include-whisper] [--league "Forbidden Rites"] --json` | 3-tier price check returning `PriceCheckResult`: defaults to real buyout pricing, deduplicates price-fixer accounts, and emits clickable `trade_url`. |
65
65
  | **Trade** | `poe2_triage_dump` | `poe2 trade triage [--file <path> \| --text "<multi_item_dump>"] [--min-exalted 5.0] [--include-whisper] [--live-trade/--no-live-trade] --json` | Batch price-check & classify multi-item `Ctrl+C` dump tabs into `sell_instant`, `craft_finish_ev`, `high_variance_id_or_unveil`, and `salvage_or_vendor` (`DumpTriageReport`). |
66
66
  | **Trade** | `poe2_find_upgrades` | `poe2 trade upgrades --equip-slot "<slot>" [--max-exalted 50] [--min-spirit 0] [--include-whisper] [--normalize-topoff/--no-normalize-topoff] [--slot main] --json` | Query `trade2` using PoB2 slot weights, evaluate both raw and bench-topped-off (`20%` Quality + Artificer sockets + Greater Runes on non-corrupted items) stats via `GetMiscCalculator()`, and rank by topped-off DPS/EHP & true all-in Exalted ROI. |
67
- | **Trade** | `poe2_plan_upgrades` | `poe2 trade plan --budget 25 --budget 100 --equip-slot Gloves --equip-slot Boots --slot main --json` | Compare complete gear combinations at each Exalted budget. Supply a JSON offer array with `--offers` in either realm, or sample international buyouts using equipment slots. |
67
+ | **Trade** | `poe2_plan_upgrades` | `poe2 trade plan --budget 25 --budget 100d --equip-slot Gloves --equip-slot Boots --slot main --json` | Compare complete gear combinations (up to 10 slots) at each Exalted or Divine (`100d`) budget ceiling. Supply a JSON offer array with `--offers` in either realm, or sample international buyouts using equipment slots. |
68
68
  | **Crafting** | `poe2_craft_odds` | `poe2 craft odds --base "<base>" --ilvl 82 [--lever "<lever>"] [--target "<mod>"] [--omen "<omen>"] [--item-text "<ctrl_c>"] [--protect-existing/--no-protect-existing] --json` | Exact conditional mod-pool hit odds (`CraftActionEval`) honoring ilvl, `min_mod_level` floors, family/tag blocking, and mid-craft collateral brick protection (`protect_existing_targets=True`). |
69
69
  | **Crafting** | `poe2_craft_plan` | `poe2 craft plan --base "<base>" --ilvl 82 --target "<mod>"... [--buy-exalted <p>] [--sims 3000] --json` | Optimal state-conditional crafting policy + Monte Carlo cost (`expected_cost_exalted`, `p50`/`p80`/`p95`) + `trade_vs_craft` recommendation. |
70
70
  | **Crafting** | `poe2_scan_craft_profit` | `poe2 craft profit [--budget all\|low\|mid\|high] [--live-trade/--no-live-trade] [--league "Forbidden Rites"] --json` | Rank profitable `0.5.5` crafts across low/mid/high budgets with sanitized live inputs, `p50`/`p80` drawdowns, live `securable` exits, `competition_level`, and `niche_score`. |
@@ -101,5 +101,10 @@ jobs:
101
101
 
102
102
  - name: Publish distributions to PyPI
103
103
  env:
104
- UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
105
- run: uv publish
104
+ PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
105
+ run: |
106
+ if [ -n "${PYPI_API_TOKEN}" ]; then
107
+ uv publish --token "${PYPI_API_TOKEN}"
108
+ else
109
+ uv publish --trusted-publishing always
110
+ fi
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: poe2brain
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Agent-native Path of Exile 2 intelligence engine: Patch 0.5.5 knowledge & ladder meta, poe.ninja build discovery, headless PoB2 math, live trade & arbitrage, exact crafting solver, and validated loot filter studio.
5
5
  Project-URL: Homepage, https://github.com/lifan-builds/poe2brain
6
6
  Project-URL: Repository, https://github.com/lifan-builds/poe2brain
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "poe2brain",
3
3
  "displayName": "PoE2Brain",
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "description": "Agent-native Path of Exile 2 intelligence engine: Patch 0.5.5 knowledge & ladder meta, poe.ninja build discovery & character import, headless Path of Building 2 math, live Forbidden Rites trade & arbitrage, exact crafting solver, and custom loot filter + theme + soundpack studio.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "poe2brain"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "Agent-native Path of Exile 2 intelligence engine: Patch 0.5.5 knowledge & ladder meta, poe.ninja build discovery, headless PoB2 math, live trade & arbitrage, exact crafting solver, and validated loot filter studio."
9
9
  authors = [{ name = "lifan-builds" }]
10
10
  readme = "README.md"
@@ -45,6 +45,7 @@ class GameLabels(HTMLParser):
45
45
  ("Ascendancy", "ascendancy"),
46
46
  ("GemEffects", "skill"),
47
47
  ("PassiveSkills", "passive"),
48
+ ("UniqueItems", "unique"),
48
49
  )
49
50
  if (f"/{marker}/" in hover or f"_Data_{marker}_hover/" in hover)
50
51
  ),
@@ -61,11 +62,20 @@ class GameLabels(HTMLParser):
61
62
  self.entity = None
62
63
 
63
64
 
64
- def game_labels(http: Poe2HttpClient):
65
- labels = {kind: defaultdict(set) for kind in ("class", "ascendancy", "skill", "passive")}
66
- for page in ("Skill_Gems", "Support_Gems", "Ascendancy_class", "Keystone", "Notable"):
65
+ def game_labels(http: Poe2HttpClient, target_lang: str = "cn") -> dict[str, dict[str, str]]:
66
+ kinds = ("class", "ascendancy", "skill", "passive", "unique")
67
+ labels = {kind: defaultdict(set) for kind in kinds}
68
+ pages = (
69
+ "Skill_Gems",
70
+ "Support_Gems",
71
+ "Ascendancy_class",
72
+ "Keystone",
73
+ "Notable",
74
+ "Unique_item",
75
+ )
76
+ for page in pages:
67
77
  catalogs = []
68
- for lang in ("us", "cn"):
78
+ for lang in ("us", target_lang):
69
79
  catalog = GameLabels()
70
80
  catalog.feed(http.get_text(f"https://poe2db.tw/{lang}/{page}"))
71
81
  if not catalog.labels:
@@ -84,6 +94,28 @@ def game_labels(http: Poe2HttpClient):
84
94
  }
85
95
 
86
96
 
97
+ def trade_static_labels(http: Poe2HttpClient) -> dict[str, str]:
98
+ en_cat = http.get_json("https://www.pathofexile.com/api/trade2/data/static")["result"]
99
+ zh_cat = http.get_json("https://poe.game.qq.com/api/trade2/data/static")["result"]
100
+ en_by_id = {
101
+ e["id"]: e["text"].strip()
102
+ for g in en_cat
103
+ for e in g.get("entries", [])
104
+ if e.get("id") and e.get("text")
105
+ }
106
+ zh_by_id = {
107
+ e["id"]: e["text"].strip()
108
+ for g in zh_cat
109
+ for e in g.get("entries", [])
110
+ if e.get("id") and e.get("text")
111
+ }
112
+ return {
113
+ en_by_id[k]: zh_by_id[k]
114
+ for k in (en_by_id.keys() & zh_by_id.keys())
115
+ if re.search(r"[\u3400-\u9fff]", zh_by_id[k])
116
+ }
117
+
118
+
87
119
  def trade_modifier_templates(http: Poe2HttpClient) -> dict[str, str]:
88
120
  locales = []
89
121
  for host in ("www.pathofexile.com", "poe.game.qq.com"):
@@ -115,9 +147,11 @@ def main() -> None:
115
147
  rev = json.loads((ee2 / "ee2_manifest.json").read_text())["commit"]
116
148
  base = f"https://raw.githubusercontent.com/Kvan7/Exiled-Exchange-2/{rev}/renderer/public/data/cmn-Hant"
117
149
  with closing(Poe2HttpClient()) as http:
118
- catalog = game_labels(http)
150
+ catalog = game_labels(http, "cn")
151
+ tw_catalog = game_labels(http, "tw")
152
+ static_currencies = trade_static_labels(http)
119
153
  templates = trade_modifier_templates(http)
120
- gems = http.get_text(f"{base}/items.ndjson")
154
+ ee2_items_raw = http.get_text(f"{base}/items.ndjson")
121
155
  chinese = http.get_text(f"{base}/stats.ndjson")
122
156
  english = (ee2 / "ee2_stats.ndjson").read_text()
123
157
  en_stats, zh_stats = (
@@ -125,12 +159,26 @@ def main() -> None:
125
159
  for text in (english, chinese)
126
160
  )
127
161
  converter = OpenCC("t2s")
162
+ ee2_rows = [json.loads(line) for line in ee2_items_raw.splitlines() if line.strip()]
163
+
164
+ def _norm_roman(txt: str) -> str:
165
+ return re.sub(r"(?<=[\u3400-\u9fff])([IVX]+)$", r" \1", txt)
166
+
128
167
  skills = {
129
- row["refName"]: re.sub(
130
- r"(?<=[\u3400-\u9fff])([IVX]+)$", r" \1", converter.convert(row["name"])
131
- )
132
- for row in map(json.loads, gems.splitlines())
133
- if row["namespace"] == "GEM"
168
+ row["refName"]: _norm_roman(converter.convert(row["name"]))
169
+ for row in ee2_rows
170
+ if row.get("namespace") == "GEM" and row.get("refName") and row.get("name")
171
+ }
172
+ uniques: dict[str, str] = {
173
+ row["refName"]: converter.convert(row["name"])
174
+ for row in ee2_rows
175
+ if row.get("namespace") == "UNIQUE" and row.get("refName") and row.get("name")
176
+ }
177
+ uniques.update(catalog["unique"])
178
+ base_items_zh: dict[str, str] = {
179
+ row["refName"]: converter.convert(row["name"])
180
+ for row in ee2_rows
181
+ if row.get("namespace") == "ITEM" and row.get("refName") and row.get("name")
134
182
  }
135
183
  passives = {}
136
184
  for ref, en_pattern, zh_pattern, target in (
@@ -167,8 +215,23 @@ def main() -> None:
167
215
  skills.update({en: next(iter(zh)) for en, zh in official_grants.items() if len(zh) == 1})
168
216
  passives.update(catalog["passive"])
169
217
  src = get_pob2_paths().src_dir
170
- classes = json.loads((src / "TreeData" / "0_5" / "tree.json").read_text())["classes"]
218
+ tree = json.loads((src / "TreeData" / "0_5" / "tree.json").read_text())
219
+ classes = tree["classes"]
171
220
  catalog["class"] = {c["name"]: catalog["class"][c["name"]] for c in classes}
221
+ with closing(Poe2HttpClient()) as http:
222
+ for node in (tree.get("nodes") or {}).values():
223
+ if not isinstance(node, dict) or not node.get("ascendancyName"):
224
+ continue
225
+ if not (node.get("isNotable") or node.get("isMultipleChoiceOption")):
226
+ continue
227
+ en_node = str(node.get("name") or "").strip()
228
+ if not en_node or en_node in passives:
229
+ continue
230
+ slug = re.sub(r"[^A-Za-z0-9]+", "_", en_node).strip("_")
231
+ page_html = http.get_text(f"https://poe2db.tw/cn/{slug}")
232
+ title_m = re.search(r"<title>([^<]+?)\s*-\s*流亡2编年史", page_html)
233
+ if title_m and re.search(r"[\u4e00-\u9fff]", title_m.group(1)):
234
+ passives.setdefault(en_node, title_m.group(1).strip())
172
235
  base_names: dict[str, set[str]] = defaultdict(set)
173
236
  for gem in parse_pob_gems(src / "Data" / "Gems.lua").values():
174
237
  if gem["base_type_name"] and gem["name"] in skills:
@@ -176,11 +239,56 @@ def main() -> None:
176
239
  for name, translations in base_names.items():
177
240
  if len(translations) == 1:
178
241
  skills.setdefault(name, next(iter(translations)))
179
- data = {**catalog, "passive": passives, "skill": skills}
242
+ data = {
243
+ "class": catalog["class"],
244
+ "ascendancy": catalog["ascendancy"],
245
+ "passive": passives,
246
+ "skill": skills,
247
+ "unique": uniques,
248
+ "base_item": base_items_zh,
249
+ "currency": static_currencies,
250
+ }
251
+ entity_aliases: list[list[str]] = []
252
+ seen_aliases: set[tuple[str, str, str, str]] = set()
253
+
254
+ def _add_alias(cat: str, en_nm: str, loc: str, zh_nm: str) -> None:
255
+ zh_clean = zh_nm.strip()
256
+ if not en_nm or not zh_clean or not re.search(r"[\u3400-\u9fff]", zh_clean):
257
+ return
258
+ key = (cat, en_nm, loc, zh_clean)
259
+ if key not in seen_aliases:
260
+ seen_aliases.add(key)
261
+ entity_aliases.append([cat, en_nm, loc, zh_clean])
262
+
263
+ for cat, mapping in data.items():
264
+ for en_nm, zh_nm in sorted(mapping.items()):
265
+ _add_alias(cat, en_nm, "zh-CN", zh_nm)
266
+
267
+ for cat, mapping in tw_catalog.items():
268
+ for en_nm, tw_nm in sorted(mapping.items()):
269
+ tw_fmt = _norm_roman(tw_nm) if cat == "skill" else tw_nm
270
+ _add_alias(cat, en_nm, "zh-TW", tw_fmt)
271
+ _add_alias(cat, en_nm, "zh-TW-s", _norm_roman(converter.convert(tw_nm)))
272
+
273
+ ns_to_cat = {"GEM": "skill", "UNIQUE": "unique", "ITEM": "base_item"}
274
+ for row in ee2_rows:
275
+ cat = ns_to_cat.get(str(row.get("namespace") or ""))
276
+ en_nm = str(row.get("refName") or "").strip()
277
+ tw_nm = str(row.get("name") or "").strip()
278
+ if cat and en_nm and tw_nm:
279
+ _add_alias(cat, en_nm, "zh-TW", _norm_roman(tw_nm))
280
+ _add_alias(cat, en_nm, "zh-TW-s", _norm_roman(converter.convert(tw_nm)))
281
+
282
+ entity_aliases.sort()
180
283
  seed_path = BUNDLED_DATA_DIR / f"zh_localization_{POE2_PATCH}.json.gz"
181
284
  with gzip.open(seed_path, "wt", encoding="utf-8") as gz:
182
285
  json.dump(
183
- {"patch": POE2_PATCH, "build_names": data, "item_modifiers": templates},
286
+ {
287
+ "patch": POE2_PATCH,
288
+ "build_names": data,
289
+ "entity_aliases": entity_aliases,
290
+ "item_modifiers": templates,
291
+ },
184
292
  gz,
185
293
  sort_keys=True,
186
294
  ensure_ascii=False,