- Updated timestamps and hashes for existing files: ba_dailies.sh, CLAUDE.md, plan.md. - Added new files under ba_auto and .claude directories with their respective metadata. - Included new scripts and configuration files to enhance functionality and organization.
196 lines
14 KiB
Markdown
196 lines
14 KiB
Markdown
# Graph Report - . (2026-07-20)
|
|
|
|
## Corpus Check
|
|
- Large corpus: 58 files · ~1,215,042 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder.
|
|
|
|
## Summary
|
|
- 364 nodes · 581 edges · 37 communities (24 shown, 13 thin omitted)
|
|
- Extraction: 98% EXTRACTED · 2% INFERRED · 0% AMBIGUOUS · INFERRED: 10 edges (avg confidence: 0.81)
|
|
- Token cost: 93,040 input · 0 output
|
|
|
|
## Community Hubs (Navigation)
|
|
- [[_COMMUNITY_Navigation & Shop Purchasing|Navigation & Shop Purchasing]]
|
|
- [[_COMMUNITY_LessonSchedule Automation|Lesson/Schedule Automation]]
|
|
- [[_COMMUNITY_Detection Engine (OCRTemplateSparkle)|Detection Engine (OCR/Template/Sparkle)]]
|
|
- [[_COMMUNITY_Bounty Sweep Automation|Bounty Sweep Automation]]
|
|
- [[_COMMUNITY_Story Sweep Automation|Story Sweep Automation]]
|
|
- [[_COMMUNITY_Event Sweep Automation|Event Sweep Automation]]
|
|
- [[_COMMUNITY_Arena (Tactical Challenge) Automation|Arena (Tactical Challenge) Automation]]
|
|
- [[_COMMUNITY_Driver Layer (xdotoolscrot Primitives)|Driver Layer (xdotool/scrot Primitives)]]
|
|
- [[_COMMUNITY_Cafe Task Automation|Cafe Task Automation]]
|
|
- [[_COMMUNITY_Daily Orchestration, Mailbox & Exit|Daily Orchestration, Mailbox & Exit]]
|
|
- [[_COMMUNITY_Cafe Reward & Main Screen Reference Screenshots|Cafe Reward & Main Screen Reference Screenshots]]
|
|
- [[_COMMUNITY_Login & Stuck-State Recovery|Login & Stuck-State Recovery]]
|
|
- [[_COMMUNITY_Cafe Room 2 Reference Screenshots|Cafe Room 2 Reference Screenshots]]
|
|
- [[_COMMUNITY_Gem Shop Automation|Gem Shop Automation]]
|
|
- [[_COMMUNITY_Circle (Clan) Automation|Circle (Clan) Automation]]
|
|
- [[_COMMUNITY_StaminaAP Mission Claim|Stamina/AP Mission Claim]]
|
|
- [[_COMMUNITY_Cafe Room 1 Reference Screenshots|Cafe Room 1 Reference Screenshots]]
|
|
- [[_COMMUNITY_Cafe Reward Cursor-On-Top Screenshots|Cafe Reward Cursor-On-Top Screenshots]]
|
|
- [[_COMMUNITY_Cafe Student Rotation Popup Reference|Cafe Student Rotation Popup Reference]]
|
|
- [[_COMMUNITY_Sparkle Detection Edge Cases (Occlusion)|Sparkle Detection Edge Cases (Occlusion)]]
|
|
- [[_COMMUNITY_Sparkle Zoomed-Out Calibration|Sparkle Zoomed-Out Calibration]]
|
|
- [[_COMMUNITY_Cafe Rank-Up Popup Reference|Cafe Rank-Up Popup Reference]]
|
|
- [[_COMMUNITY_Bash Completion Script|Bash Completion Script]]
|
|
- [[_COMMUNITY_Sparkle Cursor-On-Head Calibration|Sparkle Cursor-On-Head Calibration]]
|
|
- [[_COMMUNITY_Cafe Rank-Up Popup Reference (Student 2)|Cafe Rank-Up Popup Reference (Student 2)]]
|
|
- [[_COMMUNITY_ba_auto Package Init|ba_auto Package Init]]
|
|
- [[_COMMUNITY_ba_auto.tasks Package Init|ba_auto.tasks Package Init]]
|
|
- [[_COMMUNITY_Cron Wrapper Script|Cron Wrapper Script]]
|
|
- [[_COMMUNITY_Launcher Script (ba_dailies.sh)|Launcher Script (ba_dailies.sh)]]
|
|
- [[_COMMUNITY_Scratchpad Cleanup Script|Scratchpad Cleanup Script]]
|
|
- [[_COMMUNITY_Log Pull Script|Log Pull Script]]
|
|
- [[_COMMUNITY_Sparkle Zoomed-Centered Calibration|Sparkle Zoomed-Centered Calibration]]
|
|
- [[_COMMUNITY_Sparkle Speech-Bubble Occlusion Calibration|Sparkle Speech-Bubble Occlusion Calibration]]
|
|
- [[_COMMUNITY_Cafe Rank-Up Popup Dismissal Reference|Cafe Rank-Up Popup Dismissal Reference]]
|
|
- [[_COMMUNITY_Login Stuck-Loading Detection Reference|Login Stuck-Loading Detection Reference]]
|
|
- [[_COMMUNITY_Setup Script|Setup Script]]
|
|
- [[_COMMUNITY_Sparkle Sample Reference|Sparkle Sample Reference]]
|
|
|
|
## God Nodes (most connected - your core abstractions)
|
|
1. `run_command()` - 11 edges
|
|
2. `_sweep_latest_stage()` - 10 edges
|
|
3. `_sweep_target()` - 10 edges
|
|
4. `Cafe Room 2 Reference Screenshot` - 10 edges
|
|
5. `_sweep_target()` - 9 edges
|
|
6. `_fight_one()` - 7 edges
|
|
7. `_run_queue()` - 7 edges
|
|
8. `_wait_for_home()` - 7 edges
|
|
9. `wait()` - 6 edges
|
|
10. `run()` - 6 edges
|
|
|
|
## Surprising Connections (you probably didn't know these)
|
|
- `Cafe Student Proximity Bug (two students rendered adjacent near arcade cabinets, relevant to sparkle click-offset detection)` --conceptually_related_to--> `find_cafe_sparkle()` [INFERRED]
|
|
screenshots/cafe/bug_student_close_together.png → ba_auto/detector.py
|
|
- `Sparkle Calibration Screenshot: Student Hidden` --conceptually_related_to--> `cafe_sparkle.png Template Image` [INFERRED]
|
|
screenshots/cafe/sparkle/05_sparkle_student_hidden.png → assets/cafe_sparkle.png
|
|
- `Cafe Reward Claim Popup Screenshot` --references--> `do_cafe() cafe routine (ba_dailies.sh)` [INFERRED]
|
|
screenshots/cafe/cafe_reward/03_cafe_reward_claim_popup.png → screenshots/cafe/cafe_reward/02_cafe_reward_menu_popup.png
|
|
- `Cafe Button (Bottom Navigation)` --references--> `do_cafe() cafe routine (ba_dailies.sh)` [INFERRED]
|
|
screenshots/main/main.png → screenshots/cafe/cafe_reward/02_cafe_reward_menu_popup.png
|
|
|
|
## Import Cycles
|
|
- None detected.
|
|
|
|
## Communities (37 total, 13 thin omitted)
|
|
|
|
### Community 0 - "Navigation & Shop Purchasing"
|
|
Cohesion: 0.10
|
|
Nodes (23): click_back(), is_modal_open(), is_on_subscreen(), _not_home(), Shared navigation helpers (home, menu, popups, back/escape)., Click the shared BACK_BUTTON with retry, for callers that need to go back ex, Generic "watch the screen, react to anything recognized, stop once a recogni, Bounded "press back until the home screen is reached" loop -- the shared rec (+15 more)
|
|
|
|
### Community 1 - "Lesson/Schedule Automation"
|
|
Cohesion: 0.14
|
|
Nodes (28): _badge_rect(), _build_priority_queue(), _checkmark_rect(), _click_cell(), _close_grid_modal(), _close_region_grid(), _ensure_location_select_list(), _is_action_button_showing() (+20 more)
|
|
|
|
### Community 2 - "Detection Engine (OCR/Template/Sparkle)"
|
|
Cohesion: 0.09
|
|
Nodes (26): _color_mask(), find_cafe_sparkle(), find_color_centroid(), find_template(), _masked_template(), _ocr_crop(), Image/color matching helpers (OpenCV-based). Ported from scripts/detect_and_clic, Boolean presence check built on find_template -- the common case for screen- (+18 more)
|
|
|
|
### Community 3 - "Bounty Sweep Automation"
|
|
Cohesion: 0.18
|
|
Nodes (23): _click_max_and_verify(), _click_min_and_verify(), _click_plus_and_verify(), _click_sweep_start_and_verify(), _close_stage_modal(), _color_in_range(), _confirm_dialog_is_sweep(), _count_raised_above_one() (+15 more)
|
|
|
|
### Community 4 - "Story Sweep Automation"
|
|
Cohesion: 0.17
|
|
Nodes (23): _click_max_and_verify(), _click_plus_and_verify(), _close_stage_modal(), _color_in_range(), _count_raised_above_one(), _find_result_button(), _find_stage_row(), _go_to_region() (+15 more)
|
|
|
|
### Community 5 - "Event Sweep Automation"
|
|
Cohesion: 0.19
|
|
Nodes (22): _click_max_and_verify(), _click_plus_and_verify(), _click_sweep_start_and_verify(), _close_stage_modal(), _color_in_range(), _count_raised_above_one(), _find_result_button(), _find_stage_row() (+14 more)
|
|
|
|
### Community 6 - "Arena (Tactical Challenge) Automation"
|
|
Cohesion: 0.17
|
|
Nodes (21): _back_on_challenge_list(), _choose_enemy(), _collect_rewards(), _color_in_range(), _ensure_skip_on(), _fight_one(), _is_modal_open(), _open_opponent_modal() (+13 more)
|
|
|
|
### Community 7 - "Driver Layer (xdotool/scrot Primitives)"
|
|
Cohesion: 0.20
|
|
Nodes (17): click(), color_at(), colors_at(), drag(), focus_game(), is_game_running(), keypress(), kill_game() (+9 more)
|
|
|
|
### Community 8 - "Cafe Task Automation"
|
|
Cohesion: 0.19
|
|
Nodes (18): _claim_disabled(), _claim_income(), _dismiss_rank_up_if_shown(), _ensure_invite_sort(), _enter_room(), _invite_heart_rect(), _invite_student(), _is_swap_or_move_warning() (+10 more)
|
|
|
|
### Community 9 - "Daily Orchestration, Mailbox & Exit"
|
|
Cohesion: 0.16
|
|
Nodes (14): Central configuration for ba-auto-daily, ported from the old ba_dailies.sh., _confirm_exit(), _raise_exit_dialog(), Exit the Blue Archive client. No baas-reference counterpart -- see ba_auto/refer, run(), _claim_all_disabled(), Mailbox daily task. Ported from baas-reference module/mail.py's color-probe patt, run() (+6 more)
|
|
|
|
### Community 10 - "Cafe Reward & Main Screen Reference Screenshots"
|
|
Cohesion: 0.12
|
|
Nodes (17): do_cafe() cafe routine (ba_dailies.sh), Cafe Reward Menu Popup Screenshot, Cafe Income Popup (カフェの収入), Popup Close Button (X), Receive Button (受取 / Enter), Store 1 AP Income Panel (1号店 AP), Store 1 Credits Income Panel (1号店 Credits), Store 2 Credits Income Panel (2号店 Credits) (+9 more)
|
|
|
|
### Community 11 - "Login & Stuck-State Recovery"
|
|
Cohesion: 0.27
|
|
Nodes (14): _color_matches(), _connectivity_confirmed(), _home_nav_bar_visible(), _loading_buffer_visible(), _logo_state(), _news_dialog_open(), Login: title screen through daily popups to the true home screen. Reference flo, Positive detector for the full-bleed loading transition's center spinner bad (+6 more)
|
|
|
|
### Community 12 - "Cafe Room 2 Reference Screenshots"
|
|
Cohesion: 0.18
|
|
Nodes (11): Green Swirl Markers Above Two Students (possible status/affection indicator), Bottom Edit Toolbar (編集モード / 贈り物 / 家具情報 / プリセット / すべて収納), Comfort Level Indicator (快適度 5500), Top HUD: AP / Gold / Gems Counters, Cafe Furnishings Layout (arcade cabinets, crane machine, sofas, plants), Cafe Income Rate Display (カフェの収入 4.1%), Invitation Ticket Purchase Prompt with Countdown Timer, "Move to Store 1" Button (1号店に移動) (+3 more)
|
|
|
|
### Community 13 - "Gem Shop Automation"
|
|
Cohesion: 0.40
|
|
Nodes (9): _claim_free_package(), _close_gem_shop(), _color_matches(), _dialog_open(), _open_gem_shop(), _open_package_tab(), Gem shop (青輝石購入) daily free package. Ports module/collect_daily_free_power.py., _read_free_card_status() (+1 more)
|
|
|
|
### Community 14 - "Circle (Clan) Automation"
|
|
Cohesion: 0.52
|
|
Nodes (6): _dismiss_reward(), _enter_circle(), _leave_circle(), Circle (サークル / guild) daily check-in. Ports module/group.py. Reference flow (`i, _reached_circle(), run()
|
|
|
|
### Community 15 - "Stamina/AP Mission Claim"
|
|
Cohesion: 0.57
|
|
Nodes (6): _button_claimable(), _claim_daily_gem(), _claim_enabled(), _daily_gem_claimable(), Mission/task-menu AP+pyroxene claim. Ported from baas-reference module/collect_d, run()
|
|
|
|
### Community 16 - "Cafe Room 1 Reference Screenshots"
|
|
Cohesion: 0.29
|
|
Nodes (7): Cafe Edit-Mode Bottom Toolbar (edit/gift/furniture-info/preset/store-all), Cafe Income (カフェの収入) and Comfort Level (快適度) Display, Cafe Room 1 Reference Screenshot, "Move to Shop 2" (2号店に移動) Navigation Button, Cafe Room 1 Furniture Layout (train set, animal pen, swing, car, music stand), Student Characters Scattered in Cafe Room 1 (potential sparkle click targets), Designated Visit / Random Visit Icons (指定訪問・ランダム訪問)
|
|
|
|
### Community 17 - "Cafe Reward Cursor-On-Top Screenshots"
|
|
Cohesion: 0.33
|
|
Nodes (6): Cafe Income Percentage Display (カフェの収入 8.3%), Cafe Room Interior Scene (furniture, students, train set), Comfort Level Meter (快適度 5500), Invitation Ticket Buttons (招待券 / 追加招待券) with Countdown Timer, Cafe Top Navigation Bar (AP / Gold / Gems, Back Button, Visit Buttons), Cafe Reward Screen Screenshot (Cursor on Top)
|
|
|
|
### Community 18 - "Cafe Student Rotation Popup Reference"
|
|
Cohesion: 0.40
|
|
Nodes (5): Popup Close (X) Button, top-right corner, Student Rotation Popup Screenshot, OK Button (Enter-bound) below student list, Visited Student List Popup ("案内"), 訪問した生徒リスト (Visited Student List row of 5 avatars)
|
|
|
|
### Community 19 - "Sparkle Detection Edge Cases (Occlusion)"
|
|
Cohesion: 0.50
|
|
Nodes (4): cafe_sparkle.png Template Image, Sparkle Detection Reliability, Student/Sparkle Occlusion Edge Case, Sparkle Calibration Screenshot: Student Hidden
|
|
|
|
### Community 20 - "Sparkle Zoomed-Out Calibration"
|
|
Cohesion: 0.50
|
|
Nodes (4): Cafe HUD (currency, comfort/kaitekido 5500, income 0.0%, timer 17:41:20), Cafe Room Interior (Zoomed Out, Full Layout), Yellow/White Affection Sparkle (visible near plush character), Cafe Zoomed-Out Calibration Screenshot
|
|
|
|
### Community 21 - "Cafe Rank-Up Popup Reference"
|
|
Cohesion: 0.67
|
|
Nodes (4): Bond Rank Heart Indicator (Rank 4), Conditional Rank-Up Popup Close (Automation Gap), Student Bond Rank-Up Popup Screenshot, "Attack +12" Stat Boost Banner
|
|
|
|
### Community 23 - "Sparkle Cursor-On-Head Calibration"
|
|
Cohesion: 0.67
|
|
Nodes (3): Cafe Room UI Scene (zoomed, post-click state), Cursor Position on Student's Head After Sparkle Click, Sparkle Calibration Screenshot: Cursor on Student Head (Zoomed)
|
|
|
|
### Community 24 - "Cafe Rank-Up Popup Reference (Student 2)"
|
|
Cohesion: 1.00
|
|
Nodes (3): Bond Rank-Up Popup UI (絆ランクアップ! banner over portrait, stat-gain footer), Depicted Student (white/silver-haired, halo motif, off-shoulder outfit, Max HP +144), Rank-Up Popup Screenshot (Student B, Bond Rank 4, Max HP +144)
|
|
|
|
## Ambiguous Edges - Review These
|
|
- `Cafe Room 2 Reference Screenshot` → `Green Swirl Markers Above Two Students (possible status/affection indicator)` [AMBIGUOUS]
|
|
screenshots/cafe/room2.png · relation: conceptually_related_to
|
|
|
|
## Knowledge Gaps
|
|
- **56 isolated node(s):** `ba_cron_run.sh script`, `ba_dailies.sh script`, `clean_scratchpad.sh script`, `ba_dailies.bash script`, `pull_logs.sh script` (+51 more)
|
|
These have ≤1 connection - possible missing edges or undocumented components.
|
|
- **13 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
|
|
|
## Suggested Questions
|
|
_Questions this graph is uniquely positioned to answer:_
|
|
|
|
- **What is the exact relationship between `Cafe Room 2 Reference Screenshot` and `Green Swirl Markers Above Two Students (possible status/affection indicator)`?**
|
|
_Edge tagged AMBIGUOUS (relation: conceptually_related_to) - confidence is low._
|
|
- **What connects `Python-first Blue Archive daily-automation package.`, `Central configuration for ba-auto-daily, ported from the old ba_dailies.sh.`, `Image/color matching helpers (OpenCV-based). Ported from scripts/detect_and_clic` to the rest of the system?**
|
|
_112 weakly-connected nodes found - possible documentation gaps or missing edges._
|
|
- **Should `Navigation & Shop Purchasing` be split into smaller, more focused modules?**
|
|
_Cohesion score 0.09655172413793103 - nodes in this community are weakly interconnected._
|
|
- **Should `Lesson/Schedule Automation` be split into smaller, more focused modules?**
|
|
_Cohesion score 0.1354679802955665 - nodes in this community are weakly interconnected._
|
|
- **Should `Detection Engine (OCR/Template/Sparkle)` be split into smaller, more focused modules?**
|
|
_Cohesion score 0.09401709401709402 - nodes in this community are weakly interconnected._
|
|
- **Should `Cafe Reward & Main Screen Reference Screenshots` be split into smaller, more focused modules?**
|
|
_Cohesion score 0.125 - nodes in this community are weakly interconnected._ |