poe2brain 0.2.2__tar.gz → 0.2.5__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.
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.agents/skills/poe2brain/SKILL.md +4 -4
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.agents/skills/poe2brain/references/pob2-workflows.md +3 -3
- poe2brain-0.2.5/.github/workflows/canary.yml +73 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.github/workflows/release.yml +24 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.github/workflows/sync-build-index.yml +19 -15
- poe2brain-0.2.5/.github/workflows/sync-market-snapshot.yml +93 -0
- poe2brain-0.2.5/.github/workflows/watch-upstreams.yml +121 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/AGENTS.md +1 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/PKG-INFO +10 -9
- {poe2brain-0.2.2 → poe2brain-0.2.5}/README.md +9 -8
- {poe2brain-0.2.2 → poe2brain-0.2.5}/README_ZH.md +9 -8
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/poe2_0.5.5.sqlite +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/docs/zh/CN_FREE_SETUP.md +14 -5
- {poe2brain-0.2.2 → poe2brain-0.2.5}/docs/zh/CN_REALM.md +4 -5
- {poe2brain-0.2.2 → poe2brain-0.2.5}/docs/zh/QUICKSTART_WINDOWS.md +29 -9
- {poe2brain-0.2.2 → poe2brain-0.2.5}/plugin.json +1 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/pyproject.toml +1 -1
- poe2brain-0.2.5/scripts/check_upstreams.py +394 -0
- poe2brain-0.2.5/scripts/publish_gitcode_release.py +207 -0
- poe2brain-0.2.5/scripts/run_canary.py +401 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/scripts/sync_build_index.py +318 -222
- {poe2brain-0.2.2 → poe2brain-0.2.5}/scripts/sync_gamedata.py +4 -1
- poe2brain-0.2.5/scripts/sync_market_snapshot.py +397 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/__init__.py +1 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/cli.py +13 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/config.py +31 -3
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/filters/neversink.py +42 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/knowledge/meta.py +70 -12
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/knowledge/service.py +82 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/knowledge/zh_aliases.py +203 -21
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/mcp_server.py +25 -15
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/builds.py +13 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/ninja.py +1 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/ninja/service.py +42 -25
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/bootstrap.py +93 -5
- poe2brain-0.2.5/src/poe2brain/pob/cn.py +1612 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/local_sync.py +6 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/lua/pob2_bridge.lua +210 -3
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/oauth.py +57 -6
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/service.py +72 -16
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/setup_tools.py +5 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/economy.py +395 -8
- poe2brain-0.2.5/tests/test_actions_pipelines.py +343 -0
- poe2brain-0.2.5/tests/test_cn_equipment_source.py +293 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_economy_trade2.py +2 -2
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_gemling_journey.py +115 -3
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_item_parser_matcher.py +1 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_budget.py +2 -2
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_oauth.py +43 -1
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_windows_oauth_zh.py +23 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/uv.lock +1 -1
- poe2brain-0.2.2/src/poe2brain/pob/cn.py +0 -220
- poe2brain-0.2.2/tests/test_cn_equipment_source.py +0 -71
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.agents/mcp_config.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.agents/skills/poe2brain/references/crafting-playbook.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.agents/skills/poe2brain/references/filters-and-ninja.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.agents/skills/poe2brain/references/mechanics-0.5.5.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.agents/skills/poe2brain/references/trade-economy.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.devin/mcp_config.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.github/pull_request_template.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.github/workflows/ci.yml +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.github/workflows/cla.yml +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.github/workflows/mirror-gitcode.yml +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.gitignore +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/.mcp.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/ATTRIBUTION.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/CLA.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/CONTRIBUTING.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/LICENSE +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/README.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/__init__.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/fixed-budget-oracle.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/fixtures/amazon_ice_shot_0_5_5.xml +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/fixtures/automatic-upgrade-offers.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/fixtures/broken_legacy.filter +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/fixtures/fixed-budget-oracle-offers.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/fixtures/triage_dump_0_5_5.txt +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/fixtures/zh_bow_0_5_5.txt +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/poe2_bench_0_5_5.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/results/codex_0_5_5.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/run_benchmark.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/benchmarks/scorer.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/ee2/LICENSE.Exiled-Exchange-2 +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/ee2/ee2_item_drop.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/ee2/ee2_items.ndjson +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/ee2/ee2_manifest.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/ee2/ee2_remnants.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/ee2/ee2_stats.ndjson +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/ee2/trade2_official_stats.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/filter/LICENSE.NeverSink +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/filter/LICENSE.filter-data +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/filter/item_classes_0.5.5.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/mechanics_facts.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/modsview_weights.json.gz +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/weights_overrides.json +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/data/zh_localization_0.5.5.json.gz +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/docs/assets/hero-banner.svg +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/docs/zh/AGENT_SETUP.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/docs/zh/PLAYBOOKS.md +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/scripts/bootstrap_pob2.sh +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/scripts/install_cn.ps1 +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/scripts/sync_build_names_zh.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/crafting/__init__.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/crafting/planner.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/crafting/pool.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/crafting/profit.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/filters/__init__.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/filters/generator.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/filters/grammar.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/filters/preview.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/filters/soundpacks.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/filters/themes.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/filters/validator.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/http.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/impersonate.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/knowledge/__init__.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/knowledge/db.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/knowledge/waystone_regex.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/__init__.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/common.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/crafting.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/filters.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/items.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/knowledge.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/models/trade.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/ninja/__init__.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/ninja/protobuf.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/ninja/store.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/ninja/xml_inspector.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/__init__.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/bridge.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/budget.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/daemon.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/pob/win_luajit.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/__init__.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/advisor.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/arbitrage.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/budget_offers.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/ee2_bundle.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/farming.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/item_parser.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/stat_matcher.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/trade2_client.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/src/poe2brain/trade/upgrade_queries.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/conftest.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/fixtures/LICENSE.pobr +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/fixtures/sample_builds_0.5.5.json.gz +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_arbitrage.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_benchmark.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_browser_impersonation.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_budget_search_snapshots.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_build_names_zh.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_cli_mcp.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_craft_profit.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_crafting.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_farming_and_presets.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_filters.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_foundation.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_game_realm.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_journeys_builds.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_journeys_community.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_journeys_craft_trade.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_journeys_filters.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_knowledge.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_meta_ladder.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_ninja.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_attribute_reload.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_bridge.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_budget_oracle.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_chakra.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_cross_build.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_granted_skill_import.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_planner_equipment.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_resource_lifecycle.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_pob_rune_import.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_setup_tools.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_trade_resist_floors.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_upgrade_queries.py +0 -0
- {poe2brain-0.2.2 → poe2brain-0.2.5}/tests/test_ux_presets_enrichment.py +0 -0
|
@@ -21,7 +21,7 @@ Use `poe2brain` (`poe2` CLI `--json` and `poe2brain` MCP server) as the single s
|
|
|
21
21
|
Both surfaces call the same typed Python engine in the local `poe2brain` checkout.
|
|
22
22
|
- **In shell-capable coding harnesses (Antigravity, Claude Code, Codex, Devin):** Prefer `uv --directory <poe2brain-checkout> run poe2 ... --json` when batching calls, piping item text from files, or filtering large outputs with `jq`.
|
|
23
23
|
- **For single-turn lookups or chat-only harnesses:** Call the matching `poe2brain` MCP tool directly.
|
|
24
|
-
- Answer Chinese build questions in Chinese in either realm. Pass `lang="zh"` to build-reading MCP tools or use `--lang zh --json` on the CLI. Use the returned `names_zh` for skills, support gems, passives, classes and ascendancies. Keep the source spelling when a name has no verified Chinese equivalent. For an unresolved nickname, retain stated details such as socket count and ask for the in-game Ctrl+C item text.
|
|
24
|
+
- Answer Chinese build questions in Chinese in either realm. Pass `lang="zh"` to build-reading MCP tools or use `--lang zh --json` on the CLI. Use the returned `names_zh` for skills, support gems, passives, classes and ascendancies; when translating foreign build guides into `zh-CN` or `zh-TW`, verify passive/skill/unique names via `poe2_search_knowledge` (`metadata.locales`) instead of guessing. Keep the source spelling when a name has no verified Chinese equivalent. For an unresolved nickname, retain stated details such as socket count and ask for the in-game Ctrl+C item text.
|
|
25
25
|
- When a tool returns `BrowserVerificationRequired`, show the player its `browser_url` as a clickable link (or re-call with `open_browser=True` / CLI `--open-browser` when the player asks to pop open the browser directly). Ask them to complete the site's check there and paste the PoB export code, or the item text and asking price, back into the conversation. Resume with that input. On third-party build hosts (`poe.ninja`, `pobb.in`, `poe2db.tw`, `maxroll.gg`, `api.poe2scout.com`) the engine first retries Cloudflare-challenged responses through a `curl_cffi` Chrome-impersonated session automatically (disable via `POE2BRAIN_BROWSER_IMPERSONATION=0`); GGG hosts never use impersonation, so trade/OAuth challenges always surface this handoff.
|
|
26
26
|
- **First use & update check:** Read `poe2_status` (`poe2 version --json`). If `game_realm` is unset, ask the player to choose 国服 (`cn`) or 国际服 (`international`) and call `poe2_init`. If `update.patch_outdated` is `true`, warn the player immediately before quoting mechanics or build numbers that local gamedata targets an older PoE2 patch, and offer to run `update.upgrade_command` (or share `update.upgrade_command` + `update.mcp_reload_hint` in chat-only clients); if `update.update_available` and `update.should_notify` are `true`, briefly mention the update.
|
|
27
27
|
- **For 国服 / 腾讯服:** Choose the character import, filter and price sources documented in the [Tencent realm guide](../../../docs/zh/CN_REALM.md).
|
|
@@ -42,7 +42,7 @@ 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` + `backed_by`, `active_skill_telemetry`, `buff_provenance`, `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`, `spirit_reservations`, `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`). |
|
|
@@ -54,7 +54,7 @@ Both surfaces call the same typed Python engine in the local `poe2brain` checkou
|
|
|
54
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
|
-
| **PoB2** | `poe2_pob_import_character` | `poe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --json` | Import a
|
|
57
|
+
| **PoB2** | `poe2_pob_import_character` | `poe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --json` | Import a direct WeGame `#/share/…` link, PoE2DB character page, PoB code, or GGG OAuth character. |
|
|
58
58
|
| **Economy** | `poe2_currency_price` | `poe2 econ price "<query>" [--league "Forbidden Rites"] --json` | Live `CurrencyQuote` normalized to `{exalted, chaos, divine}` (`Exalted = 1.0`) with 7d trend and `poe.ninja` exchange volume. |
|
|
59
59
|
| **Economy** | `poe2_market_scan` | `poe2 econ scan [--category <cat>] [--min-volume-divine 5.0] [--league "Forbidden Rites"] --json` | High-liquidity exchange movers, numeraire-normalized cross-source spreads, and high-value chanceable Uniques. |
|
|
60
60
|
| **Economy** | `poe2_boss_ev` | `poe2 econ bosses [--encounter <id>] [--league "Forbidden Rites"] --json` | Live Pinnacle Boss & Trial ticket costs vs chase unique drops (Arbiter, Xesht, Simulacrum, King in the Mists, Olroth, Sekhema/Zarokh, Trialmaster) with jackpot-to-ticket ratios and variable-roll warnings. |
|
|
@@ -99,7 +99,7 @@ Both surfaces call the same typed Python engine in the local `poe2brain` checkou
|
|
|
99
99
|
### Playbook A: Meta/Ascendancy Selection, Build Audit, Progression Diff & HC Survival
|
|
100
100
|
Read [pob2-workflows.md](references/pob2-workflows.md) (and [mechanics-0.5.5.md](references/mechanics-0.5.5.md) when mechanics interact).
|
|
101
101
|
1. **Verify Live Meta & Ascendancy Notables**: For *"best build / best ascendancy / SSF reroll"* prompts, call `poe2_meta_ladder` and `poe2_inspect_ascendancy` (all 23 PoE2 `0.5.5` Ascendancies; blocks PoE1/unreleased traps). For SSF chase drops (`Svalinn`, `Choir of the Storm`, `Rakiata's Flow`), run `poe2_ninja_search --ssf-viable --exclude-unique "Temporalis,Mageblood,Headhunter,Kalandra's Touch"` to isolate low-unique setups without T0 co-dependencies.
|
|
102
|
-
2. **Load, Dewater & Diff Progression Slots**: Load `eN...` codes or `poe.ninja` characters into `main` (and early snapshots into `early` via `poe2_ninja_character --probe-timeline` -> `--timemachine <earliest> --load-pob --slot early`). Run `poe2_pob_audit` to strip PoB-warrior inflation, and run `poe2_pob_compare --slot-a early --slot-b main --dewater` for exact gear/skill/keystone diffs and `0.5.5` Gold respec cost (`1x` passive, `5x` Ascendancy; Orbs of Regret do not exist).
|
|
102
|
+
2. **Load, Dewater & Diff Progression Slots**: Load `eN...` codes or `poe.ninja` characters into `main` (and early snapshots into `early` via `poe2_ninja_character --probe-timeline` -> `--timemachine <earliest> --load-pob --slot early`). Run `poe2_pob_audit` to strip PoB-warrior inflation (sustainable Rage on hit/regen and 100%-skip charges are preserved; read `totem_per_totem_dps`, `multi_part_skill_dps`, and `unmodeled_headhunter_buffs` caveats), and run `poe2_pob_compare --slot-a early --slot-b main --dewater` for exact gear/skill/keystone diffs and `0.5.5` Gold respec cost (`1x` passive, `5x` Ascendancy; Orbs of Regret do not exist). On any Lv60+ leveling or endgame plan, always enforce a **survival budget** (75% elemental resist caps under `-60%` endgame penalty + life/ES floor) alongside DPS rather than recommending pure damage.
|
|
103
103
|
3. **Run Hardcore / Pinnacle Rip Audits (`poe2_pob_hc_audit`)**: On HC or Pinnacle boss builds, call `poe2_pob_hc_audit` to verify sustainable Phys/Ele/Chaos Max Hits, catch lethal **non-CI Low-Life ES Bleed/Poison bypass** (`bleed_poison_es_bypass`) and **Chaos `2x` ES damage** (`chaos_2x_es_vulnerability`), check Belt Charms, and rank top defensive EHP passive respecs with exact Gold cost.
|
|
104
104
|
4. **Optimize Tree, Radius Jewels, Gems, What-If Hypotheses & Gear Upgrades**: Run `poe2_pob_calc_breakdown` to explain where any stat (`FullDPS`, `ManaCost`, `EnergyShield`, `CritChance`) comes from (`BASE`/`INC`/`MORE`), `poe2_pob_suggest_nodes` (`perPoint`/`total`/`anoint`), `poe2_pob_radius_jewels` (`Controlled Metamorphosis` / `Against the Darkness` socket × ring placement), `poe2_pob_supports` (full `GetMiscCalculator()` Tier `I`–`III` + Lineage support ranking with Mana/Spirit/conflict checks), `poe2_pob_what_if` (transactional multi-change experiments & borrowed reference-slot attribution), and `poe2_pob_stat_weights` -> `poe2_find_upgrades` (with automatic `20%` Quality + Greater Rune top-off normalization on non-corrupted candidates).
|
|
105
105
|
|
|
@@ -10,9 +10,9 @@ For converted characters, read `skill_groups` alongside the saved and calculated
|
|
|
10
10
|
```bash
|
|
11
11
|
uv run poe2 bootstrap pob2
|
|
12
12
|
```
|
|
13
|
-
2. **Supported Build Inputs (`poe2_pob_load`)**:
|
|
13
|
+
2. **Supported Build Inputs (`poe2_pob_load` & `poe2_pob_import_character`)**:
|
|
14
14
|
- **`eN...` Share Codes** (PoB2 export strings, decoded via ZLib `wbits=47` / encoded `wbits=15`).
|
|
15
|
-
-
|
|
15
|
+
- **Share & Character URLs**: `https://pobb.in/<id>`, `https://poe2db.tw/pob/<id>`, `https://maxroll.gg/poe2/pob/<id>`, `https://poe.ninja/poe2/...`, converted `https://poe2db.tw/cn/qq_build?name=...`, and **direct mainland WeGame share links** (`https://www.wegame.com.cn/helper/poe2/#/share/<token>`, zero cookies/auth).
|
|
16
16
|
- **Raw PoB2 `.xml` files**.
|
|
17
17
|
- **Official GGG `.build` JSON planner files** (`BuildExportPoE2.lua`).
|
|
18
18
|
3. **Named Build Slots & Undo/Redo**:
|
|
@@ -48,7 +48,7 @@ Public build guides and user-exported PoBs routinely inflate `FullDPS` by **2x
|
|
|
48
48
|
|
|
49
49
|
### How to Report Audit Output
|
|
50
50
|
- Always show **both** `raw_stats.full_dps` / `raw_stats.total_ehp` and `sustainable_pinnacle_stats.full_dps` / `sustainable_pinnacle_stats.total_ehp` (`dps_inflation_pct`, `ehp_inflation_pct`).
|
|
51
|
-
- Check `skill_weapon_sets` (which skills/auras/totems are bound to `Set 1`, `Set 2`, or `Both`, and `source_item_name` for item-granted skills), `unselected_quest_rewards` (when converted character exports omit Act 4 Halls of the Dead or Interlude 2 Qimah resistance/attribute choices), and `import_warnings` (partial `.build` slots, unplaced Chakra runes, or duplicate item-granted + standalone gem groups).
|
|
51
|
+
- Check `skill_weapon_sets` (which skills/auras/totems are bound to `Set 1`, `Set 2`, or `Both`, and `source_item_name` for item-granted skills), `spirit_reservations` (un-clamped per-skill Spirit reservation breakdown — public/WeGame character exports enable all socketed persistent buffs by default, so negative `spirit_unreserved` often indicates a backup buff toggled off in-game), `unselected_quest_rewards` (when converted character exports omit Act 4 Halls of the Dead or Interlude 2 Qimah resistance/attribute choices), and `import_warnings` (partial `.build` slots, unplaced Chakra runes, or duplicate item-granted + standalone gem groups).
|
|
52
52
|
- For campaign or low-level off-ladder characters that return `HTTP 404` on `poe.ninja`, create a baseline via `poe2_pob_create` (or `poe2_pob_import_local`) and run `poe2_plan_upgrades` / `poe2_pob_suggest_nodes` (honoring `survival_check` so Lv 45+ builds never ignore the `-60%` endgame resistance penalty).
|
|
53
53
|
- List the top culprits from `stripped_flags` (`flag`, `raw_value`, `dps_inflation_pct`) and use `sustainable_pinnacle_stats` as the baseline for all downstream upgrade comparisons.
|
|
54
54
|
|
|
@@ -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
|
-
#
|
|
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
|
-
|
|
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 "
|
|
112
|
-
--notes
|
|
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
|
|
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.
|
|
3
|
+
Version: 0.2.5
|
|
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
|
|
@@ -220,17 +220,18 @@ uv run poe2 version --json
|
|
|
220
220
|
uv run poe2 pob import-local --list
|
|
221
221
|
uv run poe2 pob import-local --slot main
|
|
222
222
|
```
|
|
223
|
-
- **Option 2 —
|
|
224
|
-
```bash
|
|
225
|
-
uv run poe2 auth login
|
|
226
|
-
uv run poe2 pob import-character --list
|
|
227
|
-
uv run poe2 pob import-character "<CharacterName>" --slot main
|
|
228
|
-
```
|
|
229
|
-
- **Option 3 — `poe.ninja` Character URL or Any PoB2 Share Code (`poe2db` / `maxroll` / `pobb.in`):**
|
|
223
|
+
- **Option 2 — `poe.ninja` Character URL or Any PoB2 Share Code (`poe2db` / `maxroll` / `pobb.in` / WeGame):**
|
|
230
224
|
```bash
|
|
231
225
|
uv run poe2 ninja character "<poe.ninja_url>" --load-pob --slot main
|
|
232
226
|
uv run poe2 pob load "<eN..._code_or_pobb.in_url>" --slot main
|
|
233
227
|
```
|
|
228
|
+
- **Option 3 — Official GGG OAuth 2.1 PKCE (Pending GGG Client Approval Until PoE2 1.0):**
|
|
229
|
+
GGG has paused new OAuth client approvals until 1.0, so the default `poe2brain` client ID currently returns `invalid_client`. Use Option 1 or Option 2 unless you supply your own GGG-approved `POE2BRAIN_OAUTH_CLIENT_ID`:
|
|
230
|
+
```bash
|
|
231
|
+
POE2BRAIN_OAUTH_CLIENT_ID="<your_approved_client_id>" uv run poe2 auth login
|
|
232
|
+
uv run poe2 pob import-character --list
|
|
233
|
+
uv run poe2 pob import-character "<CharacterName>" --slot main
|
|
234
|
+
```
|
|
234
235
|
|
|
235
236
|
---
|
|
236
237
|
|
|
@@ -306,7 +307,7 @@ Every single MCP tool maps 1:1 to a `poe2 ... --json` CLI command over the exact
|
|
|
306
307
|
| **PoB2** | `poe2_pob_radius_jewels` | `poe2 pob radius-jewels [--jewel "<jewel>"] [--slot main] [--stat FullDPS] [--max-dist 10] [--top 10] --json` | Rank Passive Tree Jewel Sockets × radius rings (`Controlled Metamorphosis` / `Against the Darkness`) by per-point gain & travel points saved. |
|
|
307
308
|
| **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`) with per-piece attribution, 3-scenario matrix, and automatic rollback. |
|
|
308
309
|
| **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 (zero-auth Day-1 sync on Windows/macOS/Linux). |
|
|
309
|
-
| **PoB2** | `poe2_pob_import_character` | `poe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --json` | Import a
|
|
310
|
+
| **PoB2** | `poe2_pob_import_character` | `poe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --json` | Import a direct WeGame `#/share/…` link, PoE2DB character page, PoB code, or GGG OAuth character. |
|
|
310
311
|
| **Economy** | `poe2_currency_price` | `poe2 econ price "<query>" [--league "Forbidden Rites"] --json` | Live `CurrencyQuote` normalized to `{exalted, chaos, divine}` (`Exalted = 1.0`) with 7d trend and volume. |
|
|
311
312
|
| **Economy** | `poe2_market_scan` | `poe2 econ scan [--category <cat>] [--min-volume-divine 5.0] [--league "Forbidden Rites"] --json` | High-liquidity exchange movers, numeraire-normalized cross-source spreads, and chanceable Uniques. |
|
|
312
313
|
| **Economy** | `poe2_boss_ev` | `poe2 econ bosses [--encounter <id>] [--league "Forbidden Rites"] --json` | Live Pinnacle Boss & Trial entry costs vs chase unique drops (Arbiter, Xesht, Simulacrum, King in the Mists, Olroth, Sekhema, Trialmaster) with jackpot ratios & variable-roll notes. |
|
|
@@ -200,17 +200,18 @@ uv run poe2 version --json
|
|
|
200
200
|
uv run poe2 pob import-local --list
|
|
201
201
|
uv run poe2 pob import-local --slot main
|
|
202
202
|
```
|
|
203
|
-
- **Option 2 —
|
|
204
|
-
```bash
|
|
205
|
-
uv run poe2 auth login
|
|
206
|
-
uv run poe2 pob import-character --list
|
|
207
|
-
uv run poe2 pob import-character "<CharacterName>" --slot main
|
|
208
|
-
```
|
|
209
|
-
- **Option 3 — `poe.ninja` Character URL or Any PoB2 Share Code (`poe2db` / `maxroll` / `pobb.in`):**
|
|
203
|
+
- **Option 2 — `poe.ninja` Character URL or Any PoB2 Share Code (`poe2db` / `maxroll` / `pobb.in` / WeGame):**
|
|
210
204
|
```bash
|
|
211
205
|
uv run poe2 ninja character "<poe.ninja_url>" --load-pob --slot main
|
|
212
206
|
uv run poe2 pob load "<eN..._code_or_pobb.in_url>" --slot main
|
|
213
207
|
```
|
|
208
|
+
- **Option 3 — Official GGG OAuth 2.1 PKCE (Pending GGG Client Approval Until PoE2 1.0):**
|
|
209
|
+
GGG has paused new OAuth client approvals until 1.0, so the default `poe2brain` client ID currently returns `invalid_client`. Use Option 1 or Option 2 unless you supply your own GGG-approved `POE2BRAIN_OAUTH_CLIENT_ID`:
|
|
210
|
+
```bash
|
|
211
|
+
POE2BRAIN_OAUTH_CLIENT_ID="<your_approved_client_id>" uv run poe2 auth login
|
|
212
|
+
uv run poe2 pob import-character --list
|
|
213
|
+
uv run poe2 pob import-character "<CharacterName>" --slot main
|
|
214
|
+
```
|
|
214
215
|
|
|
215
216
|
---
|
|
216
217
|
|
|
@@ -286,7 +287,7 @@ Every single MCP tool maps 1:1 to a `poe2 ... --json` CLI command over the exact
|
|
|
286
287
|
| **PoB2** | `poe2_pob_radius_jewels` | `poe2 pob radius-jewels [--jewel "<jewel>"] [--slot main] [--stat FullDPS] [--max-dist 10] [--top 10] --json` | Rank Passive Tree Jewel Sockets × radius rings (`Controlled Metamorphosis` / `Against the Darkness`) by per-point gain & travel points saved. |
|
|
287
288
|
| **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`) with per-piece attribution, 3-scenario matrix, and automatic rollback. |
|
|
288
289
|
| **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 (zero-auth Day-1 sync on Windows/macOS/Linux). |
|
|
289
|
-
| **PoB2** | `poe2_pob_import_character` | `poe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --json` | Import a
|
|
290
|
+
| **PoB2** | `poe2_pob_import_character` | `poe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --json` | Import a direct WeGame `#/share/…` link, PoE2DB character page, PoB code, or GGG OAuth character. |
|
|
290
291
|
| **Economy** | `poe2_currency_price` | `poe2 econ price "<query>" [--league "Forbidden Rites"] --json` | Live `CurrencyQuote` normalized to `{exalted, chaos, divine}` (`Exalted = 1.0`) with 7d trend and volume. |
|
|
291
292
|
| **Economy** | `poe2_market_scan` | `poe2 econ scan [--category <cat>] [--min-volume-divine 5.0] [--league "Forbidden Rites"] --json` | High-liquidity exchange movers, numeraire-normalized cross-source spreads, and chanceable Uniques. |
|
|
292
293
|
| **Economy** | `poe2_boss_ev` | `poe2 econ bosses [--encounter <id>] [--league "Forbidden Rites"] --json` | Live Pinnacle Boss & Trial entry costs vs chase unique drops (Arbiter, Xesht, Simulacrum, King in the Mists, Olroth, Sekhema, Trialmaster) with jackpot ratios & variable-roll notes. |
|
|
@@ -180,18 +180,19 @@ uv run poe2 version --json
|
|
|
180
180
|
uv run poe2 pob import-local --list
|
|
181
181
|
uv run poe2 pob import-local --slot main
|
|
182
182
|
```
|
|
183
|
-
- **国服角色:** 在 WeGame
|
|
184
|
-
- **方式 B
|
|
185
|
-
```bash
|
|
186
|
-
uv run poe2 auth login
|
|
187
|
-
uv run poe2 pob import-character --list
|
|
188
|
-
uv run poe2 pob import-character "你的角色名" --slot main
|
|
189
|
-
```
|
|
190
|
-
- **方式 C:直接导入 `poe.ninja` / `poe2db` / `maxroll` / `pobb.in` 链接或 `eN...` 分享码**
|
|
183
|
+
- **国服角色:** 在 WeGame 一键分享角色后,直接运行 `uv run poe2 pob import-character "https://www.wegame.com.cn/helper/poe2/#/share/…" --slot main` 免中转导入(也兼容 PoE2DB 角色页或 PoB 码)。[国服导入步骤](docs/zh/CN_REALM.md)
|
|
184
|
+
- **方式 B:直接导入 `poe.ninja` / `poe2db` / `maxroll` / `pobb.in` 链接或 `eN...` 分享码**
|
|
191
185
|
```bash
|
|
192
186
|
uv run poe2 ninja character "https://poe.ninja/poe2/builds/..." --load-pob --slot main
|
|
193
187
|
uv run poe2 pob load "eN..." --slot main
|
|
194
188
|
```
|
|
189
|
+
- **方式 C(国际服,等待 GGG 1.0 审批):官方 GGG OAuth 2.1 PKCE 登录**
|
|
190
|
+
GGG 目前暂停了新的 OAuth 客户端审批(需等 PoE2 1.0),默认 `client_id` 会被拒(`invalid_client`)。请优先用方式 A / 方式 B / 国服 WeGame 分享链接;如果你已有 GGG 批准的自有 `client_id`,可通过 `POE2BRAIN_OAUTH_CLIENT_ID` 启用:
|
|
191
|
+
```bash
|
|
192
|
+
POE2BRAIN_OAUTH_CLIENT_ID="你的已获批client_id" uv run poe2 auth login
|
|
193
|
+
uv run poe2 pob import-character --list
|
|
194
|
+
uv run poe2 pob import-character "你的角色名" --slot main
|
|
195
|
+
```
|
|
195
196
|
|
|
196
197
|
---
|
|
197
198
|
|
|
Binary file
|