poe2brain 0.2.2__tar.gz → 0.2.4__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 (178) hide show
  1. poe2brain-0.2.4/.github/workflows/canary.yml +73 -0
  2. {poe2brain-0.2.2 → poe2brain-0.2.4}/.github/workflows/release.yml +24 -1
  3. {poe2brain-0.2.2 → poe2brain-0.2.4}/.github/workflows/sync-build-index.yml +19 -15
  4. poe2brain-0.2.4/.github/workflows/sync-market-snapshot.yml +93 -0
  5. poe2brain-0.2.4/.github/workflows/watch-upstreams.yml +121 -0
  6. {poe2brain-0.2.2 → poe2brain-0.2.4}/AGENTS.md +1 -1
  7. {poe2brain-0.2.2 → poe2brain-0.2.4}/PKG-INFO +1 -1
  8. {poe2brain-0.2.2 → poe2brain-0.2.4}/plugin.json +1 -1
  9. {poe2brain-0.2.2 → poe2brain-0.2.4}/pyproject.toml +1 -1
  10. poe2brain-0.2.4/scripts/check_upstreams.py +394 -0
  11. poe2brain-0.2.4/scripts/publish_gitcode_release.py +207 -0
  12. poe2brain-0.2.4/scripts/run_canary.py +401 -0
  13. {poe2brain-0.2.2 → poe2brain-0.2.4}/scripts/sync_build_index.py +318 -222
  14. poe2brain-0.2.4/scripts/sync_market_snapshot.py +397 -0
  15. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/__init__.py +1 -1
  16. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/config.py +10 -0
  17. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/filters/neversink.py +42 -1
  18. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/knowledge/meta.py +70 -12
  19. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/bootstrap.py +21 -0
  20. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/economy.py +395 -8
  21. poe2brain-0.2.4/tests/test_actions_pipelines.py +343 -0
  22. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_economy_trade2.py +2 -2
  23. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_item_parser_matcher.py +1 -1
  24. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_budget.py +2 -2
  25. {poe2brain-0.2.2 → poe2brain-0.2.4}/uv.lock +1 -1
  26. {poe2brain-0.2.2 → poe2brain-0.2.4}/.agents/mcp_config.json +0 -0
  27. {poe2brain-0.2.2 → poe2brain-0.2.4}/.agents/skills/poe2brain/SKILL.md +0 -0
  28. {poe2brain-0.2.2 → poe2brain-0.2.4}/.agents/skills/poe2brain/references/crafting-playbook.md +0 -0
  29. {poe2brain-0.2.2 → poe2brain-0.2.4}/.agents/skills/poe2brain/references/filters-and-ninja.md +0 -0
  30. {poe2brain-0.2.2 → poe2brain-0.2.4}/.agents/skills/poe2brain/references/mechanics-0.5.5.md +0 -0
  31. {poe2brain-0.2.2 → poe2brain-0.2.4}/.agents/skills/poe2brain/references/pob2-workflows.md +0 -0
  32. {poe2brain-0.2.2 → poe2brain-0.2.4}/.agents/skills/poe2brain/references/trade-economy.md +0 -0
  33. {poe2brain-0.2.2 → poe2brain-0.2.4}/.devin/mcp_config.json +0 -0
  34. {poe2brain-0.2.2 → poe2brain-0.2.4}/.github/pull_request_template.md +0 -0
  35. {poe2brain-0.2.2 → poe2brain-0.2.4}/.github/workflows/ci.yml +0 -0
  36. {poe2brain-0.2.2 → poe2brain-0.2.4}/.github/workflows/cla.yml +0 -0
  37. {poe2brain-0.2.2 → poe2brain-0.2.4}/.github/workflows/mirror-gitcode.yml +0 -0
  38. {poe2brain-0.2.2 → poe2brain-0.2.4}/.gitignore +0 -0
  39. {poe2brain-0.2.2 → poe2brain-0.2.4}/.mcp.json +0 -0
  40. {poe2brain-0.2.2 → poe2brain-0.2.4}/ATTRIBUTION.md +0 -0
  41. {poe2brain-0.2.2 → poe2brain-0.2.4}/CLA.md +0 -0
  42. {poe2brain-0.2.2 → poe2brain-0.2.4}/CONTRIBUTING.md +0 -0
  43. {poe2brain-0.2.2 → poe2brain-0.2.4}/LICENSE +0 -0
  44. {poe2brain-0.2.2 → poe2brain-0.2.4}/README.md +0 -0
  45. {poe2brain-0.2.2 → poe2brain-0.2.4}/README_ZH.md +0 -0
  46. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/README.md +0 -0
  47. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/__init__.py +0 -0
  48. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/fixed-budget-oracle.md +0 -0
  49. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/fixtures/amazon_ice_shot_0_5_5.xml +0 -0
  50. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/fixtures/automatic-upgrade-offers.json +0 -0
  51. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/fixtures/broken_legacy.filter +0 -0
  52. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/fixtures/fixed-budget-oracle-offers.json +0 -0
  53. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/fixtures/triage_dump_0_5_5.txt +0 -0
  54. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/fixtures/zh_bow_0_5_5.txt +0 -0
  55. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/poe2_bench_0_5_5.json +0 -0
  56. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/results/codex_0_5_5.json +0 -0
  57. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/run_benchmark.py +0 -0
  58. {poe2brain-0.2.2 → poe2brain-0.2.4}/benchmarks/scorer.py +0 -0
  59. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/ee2/LICENSE.Exiled-Exchange-2 +0 -0
  60. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/ee2/ee2_item_drop.json +0 -0
  61. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/ee2/ee2_items.ndjson +0 -0
  62. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/ee2/ee2_manifest.json +0 -0
  63. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/ee2/ee2_remnants.json +0 -0
  64. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/ee2/ee2_stats.ndjson +0 -0
  65. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/ee2/trade2_official_stats.json +0 -0
  66. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/filter/LICENSE.NeverSink +0 -0
  67. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/filter/LICENSE.filter-data +0 -0
  68. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/filter/item_classes_0.5.5.json +0 -0
  69. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/mechanics_facts.json +0 -0
  70. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/modsview_weights.json.gz +0 -0
  71. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/poe2_0.5.5.sqlite +0 -0
  72. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/weights_overrides.json +0 -0
  73. {poe2brain-0.2.2 → poe2brain-0.2.4}/data/zh_localization_0.5.5.json.gz +0 -0
  74. {poe2brain-0.2.2 → poe2brain-0.2.4}/docs/assets/hero-banner.svg +0 -0
  75. {poe2brain-0.2.2 → poe2brain-0.2.4}/docs/zh/AGENT_SETUP.md +0 -0
  76. {poe2brain-0.2.2 → poe2brain-0.2.4}/docs/zh/CN_FREE_SETUP.md +0 -0
  77. {poe2brain-0.2.2 → poe2brain-0.2.4}/docs/zh/CN_REALM.md +0 -0
  78. {poe2brain-0.2.2 → poe2brain-0.2.4}/docs/zh/PLAYBOOKS.md +0 -0
  79. {poe2brain-0.2.2 → poe2brain-0.2.4}/docs/zh/QUICKSTART_WINDOWS.md +0 -0
  80. {poe2brain-0.2.2 → poe2brain-0.2.4}/scripts/bootstrap_pob2.sh +0 -0
  81. {poe2brain-0.2.2 → poe2brain-0.2.4}/scripts/install_cn.ps1 +0 -0
  82. {poe2brain-0.2.2 → poe2brain-0.2.4}/scripts/sync_build_names_zh.py +0 -0
  83. {poe2brain-0.2.2 → poe2brain-0.2.4}/scripts/sync_gamedata.py +0 -0
  84. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/cli.py +0 -0
  85. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/crafting/__init__.py +0 -0
  86. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/crafting/planner.py +0 -0
  87. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/crafting/pool.py +0 -0
  88. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/crafting/profit.py +0 -0
  89. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/filters/__init__.py +0 -0
  90. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/filters/generator.py +0 -0
  91. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/filters/grammar.py +0 -0
  92. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/filters/preview.py +0 -0
  93. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/filters/soundpacks.py +0 -0
  94. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/filters/themes.py +0 -0
  95. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/filters/validator.py +0 -0
  96. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/http.py +0 -0
  97. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/impersonate.py +0 -0
  98. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/knowledge/__init__.py +0 -0
  99. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/knowledge/db.py +0 -0
  100. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/knowledge/service.py +0 -0
  101. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/knowledge/waystone_regex.py +0 -0
  102. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/knowledge/zh_aliases.py +0 -0
  103. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/mcp_server.py +0 -0
  104. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/__init__.py +0 -0
  105. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/builds.py +0 -0
  106. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/common.py +0 -0
  107. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/crafting.py +0 -0
  108. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/filters.py +0 -0
  109. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/items.py +0 -0
  110. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/knowledge.py +0 -0
  111. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/ninja.py +0 -0
  112. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/models/trade.py +0 -0
  113. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/ninja/__init__.py +0 -0
  114. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/ninja/protobuf.py +0 -0
  115. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/ninja/service.py +0 -0
  116. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/ninja/store.py +0 -0
  117. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/ninja/xml_inspector.py +0 -0
  118. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/__init__.py +0 -0
  119. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/bridge.py +0 -0
  120. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/budget.py +0 -0
  121. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/cn.py +0 -0
  122. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/daemon.py +0 -0
  123. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/local_sync.py +0 -0
  124. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/lua/pob2_bridge.lua +0 -0
  125. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/oauth.py +0 -0
  126. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/service.py +0 -0
  127. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/pob/win_luajit.py +0 -0
  128. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/setup_tools.py +0 -0
  129. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/__init__.py +0 -0
  130. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/advisor.py +0 -0
  131. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/arbitrage.py +0 -0
  132. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/budget_offers.py +0 -0
  133. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/ee2_bundle.py +0 -0
  134. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/farming.py +0 -0
  135. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/item_parser.py +0 -0
  136. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/stat_matcher.py +0 -0
  137. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/trade2_client.py +0 -0
  138. {poe2brain-0.2.2 → poe2brain-0.2.4}/src/poe2brain/trade/upgrade_queries.py +0 -0
  139. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/conftest.py +0 -0
  140. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/fixtures/LICENSE.pobr +0 -0
  141. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/fixtures/sample_builds_0.5.5.json.gz +0 -0
  142. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_arbitrage.py +0 -0
  143. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_benchmark.py +0 -0
  144. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_browser_impersonation.py +0 -0
  145. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_budget_search_snapshots.py +0 -0
  146. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_build_names_zh.py +0 -0
  147. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_cli_mcp.py +0 -0
  148. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_cn_equipment_source.py +0 -0
  149. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_craft_profit.py +0 -0
  150. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_crafting.py +0 -0
  151. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_farming_and_presets.py +0 -0
  152. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_filters.py +0 -0
  153. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_foundation.py +0 -0
  154. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_game_realm.py +0 -0
  155. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_gemling_journey.py +0 -0
  156. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_journeys_builds.py +0 -0
  157. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_journeys_community.py +0 -0
  158. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_journeys_craft_trade.py +0 -0
  159. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_journeys_filters.py +0 -0
  160. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_knowledge.py +0 -0
  161. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_meta_ladder.py +0 -0
  162. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_ninja.py +0 -0
  163. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob.py +0 -0
  164. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_attribute_reload.py +0 -0
  165. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_bridge.py +0 -0
  166. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_budget_oracle.py +0 -0
  167. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_chakra.py +0 -0
  168. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_cross_build.py +0 -0
  169. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_granted_skill_import.py +0 -0
  170. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_oauth.py +0 -0
  171. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_planner_equipment.py +0 -0
  172. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_resource_lifecycle.py +0 -0
  173. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_pob_rune_import.py +0 -0
  174. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_setup_tools.py +0 -0
  175. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_trade_resist_floors.py +0 -0
  176. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_upgrade_queries.py +0 -0
  177. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_ux_presets_enrichment.py +0 -0
  178. {poe2brain-0.2.2 → poe2brain-0.2.4}/tests/test_windows_oauth_zh.py +0 -0
@@ -0,0 +1,73 @@
1
+ name: Upstream & CN Mirror Canary
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "23 */6 * * *"
6
+ workflow_dispatch:
7
+ inputs:
8
+ league:
9
+ description: "Optional PoE2 league override"
10
+ required: false
11
+ default: ""
12
+
13
+ permissions:
14
+ contents: read
15
+ issues: write
16
+
17
+ concurrency:
18
+ group: upstream-canary
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ canary:
23
+ name: Probe Upstream APIs, Edges & CN Mirrors
24
+ runs-on: ubuntu-latest
25
+ timeout-minutes: 10
26
+ steps:
27
+ - name: Checkout repository
28
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
29
+
30
+ - name: Install uv
31
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
32
+ with:
33
+ enable-cache: true
34
+ python-version: "3.12"
35
+
36
+ - name: Install dependencies
37
+ run: uv sync
38
+
39
+ - name: Run upstream & mirror canary
40
+ id: probe
41
+ continue-on-error: true
42
+ run: |
43
+ ARGS=(--json-out dist/canary_report.json --md-out dist/canary_summary.md)
44
+ if [ -n "${{ inputs.league }}" ]; then
45
+ ARGS+=(--league "${{ inputs.league }}")
46
+ fi
47
+ uv run python scripts/run_canary.py "${ARGS[@]}"
48
+
49
+ - name: Open or close tracking issue on required-feed regression
50
+ if: github.event_name == 'schedule'
51
+ env:
52
+ GH_TOKEN: ${{ github.token }}
53
+ OUTCOME: ${{ steps.probe.outcome }}
54
+ run: |
55
+ TITLE="[Canary] PoE2 upstream feed or edge regression detected"
56
+ EXISTING_NUM="$(gh issue list --state open --search "\"${TITLE}\" in:title" --json number --jq '.[0].number // empty')"
57
+ if [ "${OUTCOME}" != "success" ]; then
58
+ BODY="$(cat dist/canary_summary.md)"
59
+ RUN_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
60
+ FULL_BODY="${BODY}"$'\n'"Workflow run: ${RUN_URL}"
61
+ if [ -n "${EXISTING_NUM}" ]; then
62
+ gh issue comment "${EXISTING_NUM}" --body "${FULL_BODY}"
63
+ else
64
+ gh issue create --title "${TITLE}" --body "${FULL_BODY}"
65
+ fi
66
+ exit 1
67
+ elif [ -n "${EXISTING_NUM}" ]; then
68
+ gh issue close "${EXISTING_NUM}" --comment "All required PoE2 upstream feeds recovered in ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}."
69
+ fi
70
+
71
+ - name: Enforce canary result on manual dispatch
72
+ if: steps.probe.outcome != 'success'
73
+ run: exit 1
@@ -65,9 +65,10 @@ jobs:
65
65
  name: python-package-distributions
66
66
  path: dist/
67
67
 
68
- - name: Create or update GitHub Release
68
+ - name: Create or update GitHub Release & CN GitCode Mirror
69
69
  env:
70
70
  GH_TOKEN: ${{ github.token }}
71
+ GITCODE_TOKEN: ${{ secrets.GITCODE_TOKEN }}
71
72
  RELEASE_TAG: ${{ inputs.tag || github.ref_name }}
72
73
  run: |
73
74
  if gh release view "${RELEASE_TAG}" >/dev/null 2>&1; then
@@ -78,6 +79,28 @@ jobs:
78
79
  --generate-notes
79
80
  fi
80
81
 
82
+ NOTES="$(gh release view "${RELEASE_TAG}" --json body --jq '.body // ""')"
83
+ uv run python scripts/publish_gitcode_release.py \
84
+ --tag "${RELEASE_TAG}" \
85
+ --title "poe2brain ${RELEASE_TAG}" \
86
+ --notes "${NOTES}" \
87
+ --skip-if-no-token \
88
+ dist/*
89
+
90
+ - name: Dispatch release sync to poe2brain-web (when WEB_SYNC_PAT is configured)
91
+ env:
92
+ WEB_SYNC_PAT: ${{ secrets.WEB_SYNC_PAT }}
93
+ RELEASE_TAG: ${{ inputs.tag || github.ref_name }}
94
+ run: |
95
+ if [ -z "${WEB_SYNC_PAT}" ]; then
96
+ echo "WEB_SYNC_PAT unset; poe2brain-web scheduled sync will pick up ${RELEASE_TAG}."
97
+ exit 0
98
+ fi
99
+ GH_TOKEN="${WEB_SYNC_PAT}" gh api \
100
+ repos/lifan-builds/poe2brain-web/dispatches \
101
+ -f event_type="poe2brain-release" \
102
+ -f "client_payload[tag]=${RELEASE_TAG}"
103
+
81
104
  publish-pypi:
82
105
  name: Publish to PyPI (when configured)
83
106
  needs: release
@@ -2,18 +2,14 @@ name: Sync Build Index (Rolling Release)
2
2
 
3
3
  on:
4
4
  schedule:
5
- # Daily incremental refresh & headless PoB2 dewatering at 06:17 UTC
6
- - cron: "17 6 * * *"
5
+ # Twice-daily incremental community/ladder refresh & headless PoB2 dewatering
6
+ - cron: "17 6,18 * * *"
7
7
  workflow_dispatch:
8
8
  inputs:
9
9
  league:
10
10
  description: "PoE2 league name (defaults to config DEFAULT_LEAGUE)"
11
11
  required: false
12
12
  default: "Forbidden Rites"
13
- max_live_fetches:
14
- description: "Max polite live poe.ninja PoB fetches per run"
15
- required: false
16
- default: "150"
17
13
  force_reaudit:
18
14
  description: "Force headless PoB2 re-audit across all builds"
19
15
  required: false
@@ -62,8 +58,9 @@ jobs:
62
58
  run: |
63
59
  ARGS=(
64
60
  --out-dir dist/build-index
65
- --max-live-fetches "${{ inputs.max_live_fetches || '150' }}"
66
61
  --community-feed "https://poe2brain.clifan.com/api/ninja/submissions"
62
+ --community-feed "https://cn.poe2brain.clifan.com/api/ninja/submissions"
63
+ --community-feed "data/curated_builds.json"
67
64
  )
68
65
  if [ -n "${{ inputs.league }}" ]; then
69
66
  ARGS+=(--league "${{ inputs.league }}")
@@ -73,13 +70,14 @@ jobs:
73
70
  fi
74
71
  uv run python scripts/sync_build_index.py "${ARGS[@]}"
75
72
 
76
- - name: Publish rolling build-index GitHub Release
73
+ - name: Publish rolling build-index GitHub Release & CN GitCode Mirror
77
74
  env:
78
75
  GH_TOKEN: ${{ github.token }}
76
+ GITCODE_TOKEN: ${{ secrets.GITCODE_TOKEN }}
79
77
  run: |
80
78
  TAG="build-index"
81
79
  UPDATED_AT="$(uv run python -c "import json; print(json.load(open('dist/build-index/manifest.json'))['updated_at'])")"
82
- SUMMARY="$(uv run python - <<'PY'
80
+ uv run python - <<'PY' > dist/build-index-notes.md
83
81
  import json
84
82
  with open("dist/build-index/manifest.json", encoding="utf-8") as fh:
85
83
  m = json.load(fh)
@@ -99,16 +97,22 @@ jobs:
99
97
  )
100
98
  print("\n".join(lines))
101
99
  PY
102
- )"
103
100
 
101
+ TITLE="PoE2 Build Index (Rolling · ${UPDATED_AT})"
104
102
  if gh release view "${TAG}" >/dev/null 2>&1; then
105
103
  gh release upload "${TAG}" dist/build-index/* --clobber
106
- gh release edit "${TAG}" \
107
- --title "PoE2 Build Index (Rolling · ${UPDATED_AT})" \
108
- --notes "${SUMMARY}"
104
+ gh release edit "${TAG}" --title "${TITLE}" --notes-file dist/build-index-notes.md
109
105
  else
110
106
  gh release create "${TAG}" dist/build-index/* \
111
- --title "PoE2 Build Index (Rolling · ${UPDATED_AT})" \
112
- --notes "${SUMMARY}" \
107
+ --title "${TITLE}" \
108
+ --notes-file dist/build-index-notes.md \
113
109
  --prerelease=false
114
110
  fi
111
+
112
+ uv run python scripts/publish_gitcode_release.py \
113
+ --tag "${TAG}" \
114
+ --title "${TITLE}" \
115
+ --notes-file dist/build-index-notes.md \
116
+ --prerelease \
117
+ --skip-if-no-token \
118
+ dist/build-index/*
@@ -0,0 +1,93 @@
1
+ name: Sync Market & Filter Snapshot (Hourly Rolling Release)
2
+
3
+ on:
4
+ schedule:
5
+ # Hourly refresh aligned with poe.ninja's ~60m PoE2 economy cadence
6
+ - cron: "7 * * * *"
7
+ workflow_dispatch:
8
+ inputs:
9
+ league:
10
+ description: "Optional PoE2 league override (auto-discovers active challenge league when blank)"
11
+ required: false
12
+ default: ""
13
+
14
+ permissions:
15
+ contents: write
16
+
17
+ concurrency:
18
+ group: sync-market-snapshot
19
+ cancel-in-progress: false
20
+
21
+ jobs:
22
+ sync-market:
23
+ name: Build & Publish PoE2 Economy + NeverSink Snapshot
24
+ runs-on: ubuntu-latest
25
+ timeout-minutes: 10
26
+
27
+ steps:
28
+ - name: Checkout repository
29
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
30
+
31
+ - name: Install uv
32
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
33
+ with:
34
+ enable-cache: true
35
+ python-version: "3.12"
36
+
37
+ - name: Install dependencies
38
+ run: uv sync
39
+
40
+ - name: Aggregate economy, uniques, boss EV & NeverSink bundle
41
+ env:
42
+ GGG_OAUTH_CLIENT_ID: ${{ secrets.GGG_OAUTH_CLIENT_ID }}
43
+ GGG_OAUTH_CLIENT_SECRET: ${{ secrets.GGG_OAUTH_CLIENT_SECRET }}
44
+ run: |
45
+ ARGS=(--out-dir dist/market-data)
46
+ if [ -n "${{ inputs.league }}" ]; then
47
+ ARGS+=(--league "${{ inputs.league }}")
48
+ fi
49
+ uv run python scripts/sync_market_snapshot.py "${ARGS[@]}"
50
+
51
+ - name: Publish rolling market-data GitHub Release & CN GitCode Mirror
52
+ env:
53
+ GH_TOKEN: ${{ github.token }}
54
+ GITCODE_TOKEN: ${{ secrets.GITCODE_TOKEN }}
55
+ run: |
56
+ TAG="market-data"
57
+ UPDATED_AT="$(uv run python -c "import json; print(json.load(open('dist/market-data/manifest.json'))['updated_at'])")"
58
+ uv run python - <<'PY' > dist/market-data-notes.md
59
+ import json
60
+ with open("dist/market-data/manifest.json", encoding="utf-8") as fh:
61
+ m = json.load(fh)
62
+ lines = [
63
+ f"Rolling hourly PoE2 `{m['patch']}` economy & NeverSink snapshot (updated `{m['updated_at']}`).",
64
+ "",
65
+ "| League | Mode | Priced Items | 1 Divine (Ex) | 1 Chaos (Ex) | Asset |",
66
+ "|---|---|---:|---:|---:|---|",
67
+ ]
68
+ for s in m["slices"]:
69
+ lines.append(
70
+ f"| {s['league']} | `{s['mode']}` | {s['priced_count']} | "
71
+ f"{s['divine_exalted']:.1f} | {s['chaos_exalted']:.2f} | `{s['asset']}` |"
72
+ )
73
+ print("\n".join(lines))
74
+ PY
75
+
76
+ TITLE="PoE2 Market & Filter Snapshot (Rolling · ${UPDATED_AT})"
77
+ if gh release view "${TAG}" >/dev/null 2>&1; then
78
+ gh release upload "${TAG}" dist/market-data/* --clobber
79
+ gh release edit "${TAG}" --title "${TITLE}" --notes-file dist/market-data-notes.md
80
+ else
81
+ gh release create "${TAG}" dist/market-data/* \
82
+ --title "${TITLE}" \
83
+ --notes-file dist/market-data-notes.md \
84
+ --prerelease=false
85
+ fi
86
+
87
+ uv run python scripts/publish_gitcode_release.py \
88
+ --tag "${TAG}" \
89
+ --title "${TITLE}" \
90
+ --notes-file dist/market-data-notes.md \
91
+ --prerelease \
92
+ --skip-if-no-token \
93
+ dist/market-data/*
@@ -0,0 +1,121 @@
1
+ name: Watch PoE2 Upstreams & Patch Drift
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "43 */6 * * *"
6
+ workflow_dispatch:
7
+ inputs:
8
+ force_rebuild:
9
+ description: "Force SQLite gamedata rebuild & PR check even without upstream SHA change"
10
+ required: false
11
+ type: boolean
12
+ default: false
13
+ apply_league:
14
+ description: "Also update DEFAULT_LEAGUE when a new PoE2 challenge league launches"
15
+ required: false
16
+ type: boolean
17
+ default: false
18
+
19
+ permissions:
20
+ contents: write
21
+ pull-requests: write
22
+ issues: write
23
+
24
+ concurrency:
25
+ group: watch-upstreams
26
+ cancel-in-progress: false
27
+
28
+ jobs:
29
+ watch:
30
+ name: Check PoB2, RePoE2, EE2 & Live League Drift
31
+ runs-on: ubuntu-latest
32
+ timeout-minutes: 25
33
+
34
+ steps:
35
+ - name: Checkout repository
36
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
37
+
38
+ - name: Install uv
39
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
40
+ with:
41
+ enable-cache: true
42
+ python-version: "3.12"
43
+
44
+ - name: Install dependencies
45
+ run: uv sync
46
+
47
+ - name: Check upstream commits, TreeData folders & active league
48
+ id: check
49
+ env:
50
+ GH_TOKEN: ${{ github.token }}
51
+ run: |
52
+ uv run python scripts/check_upstreams.py \
53
+ --json-out dist/upstream_check.json \
54
+ --md-out dist/upstream_check.md
55
+ DRIFT="$(uv run python -c "import json; print('true' if json.load(open('dist/upstream_check.json'))['drift_detected'] else 'false')")"
56
+ echo "drift=${DRIFT}" >> "${GITHUB_OUTPUT}"
57
+
58
+ - name: Cache headless LuaJIT runtime
59
+ if: steps.check.outputs.drift == 'true' || inputs.force_rebuild == true
60
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
61
+ with:
62
+ path: ~/.cache/poe2brain/pob2/bin
63
+ key: luajit-linux-${{ hashFiles('scripts/bootstrap_pob2.sh') }}
64
+
65
+ - name: Rebuild SQLite gamedata & bootstrap latest PathOfBuilding-PoE2
66
+ if: steps.check.outputs.drift == 'true' || inputs.force_rebuild == true
67
+ env:
68
+ GH_TOKEN: ${{ github.token }}
69
+ run: |
70
+ ARGS=(--apply --json-out dist/upstream_apply.json --md-out dist/upstream_pr.md)
71
+ if [ "${{ inputs.apply_league }}" = "true" ]; then
72
+ ARGS+=(--apply-league)
73
+ fi
74
+ uv run python scripts/check_upstreams.py "${ARGS[@]}"
75
+
76
+ - name: Run ruff & full offline + headless PoB2 test suite
77
+ id: verify
78
+ if: steps.check.outputs.drift == 'true' || inputs.force_rebuild == true
79
+ continue-on-error: true
80
+ run: |
81
+ uv run ruff check .
82
+ uv run pytest -v -k "not test_live_"
83
+
84
+ - name: Open or update automated upstream-sync Pull Request
85
+ if: steps.check.outputs.drift == 'true' || inputs.force_rebuild == true
86
+ env:
87
+ GH_TOKEN: ${{ github.token }}
88
+ VERIFY_OUTCOME: ${{ steps.verify.outcome }}
89
+ run: |
90
+ if git diff --quiet -- src/ data/; then
91
+ echo "No tracked gamedata or pin files changed after rebuild."
92
+ exit 0
93
+ fi
94
+
95
+ BRANCH="chore/upstream-gamedata-sync"
96
+ git add src/poe2brain/config.py data/
97
+ git -c user.name="github-actions[bot]" \
98
+ -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \
99
+ commit -m "Sync upstream PoE2 gamedata & PathOfBuilding-PoE2 pin"
100
+ git push --force origin "HEAD:refs/heads/${BRANCH}"
101
+
102
+ STATUS_NOTE="All offline & headless PoB2 tests passed."
103
+ DRAFT_ARGS=()
104
+ if [ "${VERIFY_OUTCOME}" != "success" ]; then
105
+ STATUS_NOTE="WARNING: Verification failed in ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} — opened as draft for manual inspection."
106
+ DRAFT_ARGS+=(--draft)
107
+ fi
108
+ printf "\n### Verification\n- %s\n" "${STATUS_NOTE}" >> dist/upstream_pr.md
109
+
110
+ TITLE="Sync upstream PoE2 gamedata & PathOfBuilding-PoE2"
111
+ EXISTING_PR="$(gh pr list --head "${BRANCH}" --state open --json number --jq '.[0].number // empty')"
112
+ if [ -n "${EXISTING_PR}" ]; then
113
+ gh pr edit "${EXISTING_PR}" --title "${TITLE}" --body-file dist/upstream_pr.md
114
+ else
115
+ gh pr create \
116
+ --base main \
117
+ --head "${BRANCH}" \
118
+ --title "${TITLE}" \
119
+ --body-file dist/upstream_pr.md \
120
+ "${DRAFT_ARGS[@]}"
121
+ fi
@@ -41,7 +41,7 @@ Pull requests back to this repository are welcome.
41
41
  - **Unit Currency**: Normalize economy and crafting math to **`Exalted = 1.0`** (with Chaos and Divine equivalents). Never default missing/unquoted crafting currencies to `0.0` (`None` = unavailable).
42
42
  - **Tier Direction**: Store both `internal_rank_asc` (`1` = lowest ilvl `.datc64` rank) and `display_tier` (`1` = best in-game PoE2 tooltip tier since `0.2.1`); always present `display_tier` to callers.
43
43
  - **Active Patch Filtering**: Honor `is_active_drop_in_patch` so dormant PoE1 currencies (`Scouring`, `Alteration`, `Fusing`, `Fossils`), removed `0.4` `Homogenising` Omens, and phased-out `0.5` `Recombinators` are blocked from active league recommendations.
44
- - **Trade & Filter Hygiene**: Distinguish async Gold-fee Instant Buyout (`SaleType.SECURABLE`, `listing.fee`) from `SaleType.WHISPER` listings, deduplicate price-fixer accounts by `account_name`, never call `poe.ninja`'s dead `/poe2/api/economy/stash/...` (`404`), Cloudflare-gated `/api/protected/...` (`403`), or `poe2scout.com/api` (HTML) URLs, translate SQLite `item_class` IDs through `to_filter_class()` before emitting `.filter` blocks, and never write to the real `~/Library/Application Support/Path of Exile 2` directory during automated tests.
44
+ - **Trade & Filter Hygiene**: Distinguish async Gold-fee Instant Buyout (`SaleType.SECURABLE`, `listing.fee`) from `SaleType.WHISPER` listings, deduplicate price-fixer accounts by `account_name`, never call `poe.ninja`'s PoE1-only `/poe2/api/economy/stash/current/currency/...` (`404`), closed `/poe2/builds` / `/api/protected/...` (`403`) in batch scrapers, or `poe2scout.com/api` (HTML) URLs, translate SQLite `item_class` IDs through `to_filter_class()` before emitting `.filter` blocks, and never write to the real `~/Library/Application Support/Path of Exile 2` directory during automated tests.
45
45
  3. **GPL-3.0-only Licensing & Clean-Room Upstream Attribution**:
46
46
  - This repository is licensed under **`GPL-3.0-only`** (`LICENSE`) with Section 7 attribution terms (`ATTRIBUTION.md`) and a one-time contributor CLA (`CLA.md`, `.github/workflows/cla.yml`). Always preserve copyright holder `lifan-builds` (never personal legal name) and keep `Based on poe2brain by lifan-builds (https://github.com/lifan-builds/poe2brain)` in `--version`, MCP server metadata, and `README.md`.
47
47
  - Vendor or adapt only permissive MIT/BSD/Apache upstream data and code with preserved license attribution (`PathOfBuildingCommunity/PathOfBuilding-PoE2`, `Kvan7/Exiled-Exchange-2` in `data/ee2/LICENSE.Exiled-Exchange-2`, `ackness/pobr` test fixture in `tests/fixtures/LICENSE.pobr`, `repoe-fork/poe2` & `thmsndk/vscode.poe2-filter` in `data/filter/LICENSE.filter-data`, and `NeverSinkDev/NeverSink-Filter-for-PoE2`).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: poe2brain
3
- Version: 0.2.2
3
+ Version: 0.2.4
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.2",
4
+ "version": "0.2.4",
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.2"
7
+ version = "0.2.4"
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"