diff --git a/scripts/rebuild_adam_daily_hub_index.py b/scripts/rebuild_adam_daily_hub_index.py new file mode 100644 index 000000000..93c8f81c1 --- /dev/null +++ b/scripts/rebuild_adam_daily_hub_index.py @@ -0,0 +1,105 @@ +import os +import re + +base_dir = "showcase/data/adam_daily" +output_file = "showcase/adam_daily_hub_index.html" + +# Read the original file to keep the nice styling +if os.path.exists("showcase/adam_daily_hub.html"): + with open("showcase/adam_daily_hub.html", "r") as f: + content = f.read() +else: + print("Base file missing.") + exit(1) + +# Try to find all date directories +dates = [] +for item in os.listdir(base_dir): + if os.path.isdir(os.path.join(base_dir, item)) and re.match(r"^\d{4}-\d{2}-\d{2}$", item): + dates.append(item) + +dates.sort(reverse=True) # newest first + +# Generate HTML blocks +html_blocks = [] +for date in dates: + date_dir = os.path.join(base_dir, date) + + # We only care about HTML and MD files + files = [] + for f in os.listdir(date_dir): + if f.endswith(".html") or f.endswith(".md"): + files.append(f) + + files.sort(reverse=True) # sort files alphabetically + + if not files: + continue + + block = f""" +
+
+ +

{date}

+ +
+""" + + for f in files: + ext = f.split(".")[-1].upper() + color = "term-cyan" if ext == "HTML" else "term-amber" + + block += f""" + +
+ {ext} + +
+

{f}

+
PATH: data/adam_daily/{date}/{f}
+
+""" + + block += """ +
+
+""" + html_blocks.append(block) + +# Try to replace the content inside the timeline container +import re +# Find the start of the timeline container +match = re.search(r'(]*class="[^"]*timeline[^"]*"[^>]*>)', content) + +if not match: + # Alternative: replace the masonry container + match = re.search(r'(]*class="[^"]*masonry-grid[^"]*"[^>]*>)', content) + +if match: + print("Found container, replacing content...") + start_idx = match.end() + + # Replace masonry with a simple block layout container for timeline + prefix = content[:start_idx].replace('class="masonry-grid w-full"', 'class="relative pl-6 border-l border-white/10"') + + # Find the end of the main tag + end_match = re.search(r'', content) + if end_match: + suffix = "\n \n " + content[end_match.start():] + + # update title + prefix = prefix.replace(">Adam Daily Hub", ">Adam Daily Archive Index") + prefix = prefix.replace("

Select a date or event to review intelligence modules, scenario analyses, and structural frameworks.

", "

Complete chronological index of all Market Mayhem, briefs, and daily intelligence artifacts.

") + + # Remove the filter buttons + prefix = re.sub(r'
.*?
', '', prefix, flags=re.DOTALL) + + new_content = prefix + "".join(html_blocks) + suffix + + with open(output_file, "w") as f: + f.write(new_content) + print("Done.") + else: + print("Could not find ") +else: + print("Could not find container") diff --git a/showcase/adam_daily_hub_index.html b/showcase/adam_daily_hub_index.html index e060e3391..b92caaf7e 100644 --- a/showcase/adam_daily_hub_index.html +++ b/showcase/adam_daily_hub_index.html @@ -3,8 +3,9 @@ - ADAM-DAILY // ALL REPORTS HUB + ADAM-DAILY // INTELLIGENCE HUB + - -
- -
-
-
-
- A -
-

ADAM DAILY DIRECTORY

+ +
+ +
+
+
A
+
+

Adam Daily Hub

+

Intelligence Aggregation Engine

+
+
+
-
-
-

COMPLETE INTELLIGENCE ARCHIVE

-

- SYSTEM STATUS: ONLINE | INDEXED DATES: 48 | LAST UPDATE: LIVE -

+ +
+
+
+

Insider Access Required

+

Enter clearance key to decrypt payload.

+ +
+ + + +
+
+ +
+ @@ -231,8 +275,8 @@

index.html

- MARKDOWN - + MD +

daily_brief.md

PATH: data/adam_daily/2026-05-26/daily_brief.md
@@ -259,8 +303,8 @@

index.html

- MARKDOWN - + MD +

daily_brief.md

PATH: data/adam_daily/2026-05-24/daily_brief.md
@@ -287,8 +331,8 @@

index.html

- MARKDOWN - + MD +

daily_brief.md

PATH: data/adam_daily/2026-05-23/daily_brief.md
@@ -313,22 +357,22 @@

index.html

PATH: data/adam_daily/2026-05-22/index.html
- +
- MARKDOWN - + MD +
-

daily_brief.md

-
PATH: data/adam_daily/2026-05-22/daily_brief.md
+

entropy_intel.md

+
PATH: data/adam_daily/2026-05-22/entropy_intel.md
- +
- MARKDOWN - + MD +
-

entropy_intel.md

-
PATH: data/adam_daily/2026-05-22/entropy_intel.md
+

daily_brief.md

+
PATH: data/adam_daily/2026-05-22/daily_brief.md
@@ -361,8 +405,8 @@

heatmap.html

- MARKDOWN - + MD +

daily_brief.md

PATH: data/adam_daily/2026-05-21/daily_brief.md
@@ -380,8 +424,8 @@

- MARKDOWN - + MD +

daily_brief.md

PATH: data/adam_daily/2026-05-20/daily_brief.md
@@ -408,8 +452,8 @@

index.html

- MARKDOWN - + MD +

daily_brief.md

PATH: data/adam_daily/2026-05-19/daily_brief.md
@@ -425,15 +469,6 @@

- -
- HTML - -
-

brief.html

-
PATH: data/adam_daily/2026-05-18/brief.html
-
-

@@ -482,8 +526,8 @@

index.html

- MARKDOWN - + MD +

daily_brief.md

PATH: data/adam_daily/2026-05-17/daily_brief.md
@@ -499,40 +543,40 @@

- +
- HTML - + MD +
-

index.html

-
PATH: data/adam_daily/2026-05-16/index.html
+

mm_vOS.md

+
PATH: data/adam_daily/2026-05-16/mm_vOS.md
- +
- MARKDOWN - + MD +
-

daily_brief.md

-
PATH: data/adam_daily/2026-05-16/daily_brief.md
+

mm_2026-05-16.md

+
PATH: data/adam_daily/2026-05-16/mm_2026-05-16.md
- +
- MARKDOWN - + HTML +
-

mm_2026-05-16.md

-
PATH: data/adam_daily/2026-05-16/mm_2026-05-16.md
+

index.html

+
PATH: data/adam_daily/2026-05-16/index.html
- +
- MARKDOWN - + MD +
-

mm_vOS.md

-
PATH: data/adam_daily/2026-05-16/mm_vOS.md
+

daily_brief.md

+
PATH: data/adam_daily/2026-05-16/daily_brief.md

@@ -545,22 +589,22 @@

- +
- MARKDOWN - + MD +
-

daily_brief.md

-
PATH: data/adam_daily/2026-05-15/daily_brief.md
+

flow_report.md

+
PATH: data/adam_daily/2026-05-15/flow_report.md
- +
- MARKDOWN - + MD +
-

flow_report.md

-
PATH: data/adam_daily/2026-05-15/flow_report.md
+

daily_brief.md

+
PATH: data/adam_daily/2026-05-15/daily_brief.md
@@ -610,6 +654,15 @@

sim.html

PATH: data/adam_daily/2026-05-13/sim.html
+ +
+ MD + +
+

prompt.md

+
PATH: data/adam_daily/2026-05-13/prompt.md
+
+ @@ -703,15 +747,6 @@

- -
- HTML - -
-

index_vJULES.html

-
PATH: data/adam_daily/2026-05-09/index_vJULES.html
-
- @@ -834,22 +878,22 @@

- +
HTML
-

index.html

-
PATH: data/adam_daily/2026-05-03/index.html
+

index_v55.html

+
PATH: data/adam_daily/2026-05-03/index_v55.html
- +
HTML
-

index_v55.html

-
PATH: data/adam_daily/2026-05-03/index_v55.html
+

index.html

+
PATH: data/adam_daily/2026-05-03/index.html
@@ -945,22 +989,22 @@

index_desktop.html

PATH: data/adam_daily/2026-04-30/index_desktop.html
- +
HTML
-

index.html

-
PATH: data/adam_daily/2026-04-30/index.html
+

index_WIP.html

+
PATH: data/adam_daily/2026-04-30/index_WIP.html
- +
HTML
-

index_WIP.html

-
PATH: data/adam_daily/2026-04-30/index_WIP.html
+

index.html

+
PATH: data/adam_daily/2026-04-30/index.html
@@ -973,15 +1017,6 @@

- -
- HTML - -
-

index_v50.html

-
PATH: data/adam_daily/2026-04-29/index_v50.html
-
- @@ -1046,22 +1090,22 @@

index_vOLD.html

PATH: data/adam_daily/2026-04-28/index_vOLD.html
- +
HTML
-

index_v40.html

-
PATH: data/adam_daily/2026-04-28/index_v40.html
+

index_v50WIP.html

+
PATH: data/adam_daily/2026-04-28/index_v50WIP.html
- +
HTML
-

index_v50WIP.html

-
PATH: data/adam_daily/2026-04-28/index_v50WIP.html
+

index_v40.html

+
PATH: data/adam_daily/2026-04-28/index_v40.html
@@ -1111,22 +1155,22 @@

- +
HTML
-

index.html

-
PATH: data/adam_daily/2026-04-22/index.html
+

lme_scanner.html

+
PATH: data/adam_daily/2026-04-22/lme_scanner.html
- +
HTML
-

lme_scanner.html

-
PATH: data/adam_daily/2026-04-22/lme_scanner.html
+

index.html

+
PATH: data/adam_daily/2026-04-22/index.html
@@ -1177,22 +1221,22 @@

- +
HTML
-

index.html

-
PATH: data/adam_daily/2026-04-12/index.html
+

market_mayhem_2026-04-12.html

+
PATH: data/adam_daily/2026-04-12/market_mayhem_2026-04-12.html
- +
HTML
-

market_mayhem_2026-04-12.html

-
PATH: data/adam_daily/2026-04-12/market_mayhem_2026-04-12.html
+

index.html

+
PATH: data/adam_daily/2026-04-12/index.html
@@ -1233,22 +1277,22 @@

- +
HTML
-

index.html

-
PATH: data/adam_daily/2026-04-08/index.html
+

market_mayhem_2026-04-08.html

+
PATH: data/adam_daily/2026-04-08/market_mayhem_2026-04-08.html
- +
HTML
-

market_mayhem_2026-04-08.html

-
PATH: data/adam_daily/2026-04-08/market_mayhem_2026-04-08.html
+

index.html

+
PATH: data/adam_daily/2026-04-08/index.html
@@ -1356,6 +1400,15 @@

+ +
+ MD + +
+

report.md

+
PATH: data/adam_daily/2026-03-27/report.md
+
+ @@ -1384,6 +1428,15 @@

+ +
+ MD + +
+

market_mayhem_2026-03-24.md

+
PATH: data/adam_daily/2026-03-24/market_mayhem_2026-03-24.md
+
+ @@ -1414,8 +1458,8 @@

- MARKDOWN - + MD +

market_mayhem_2020-03-16.md

PATH: data/adam_daily/2020-03-16/market_mayhem_2020-03-16.md
@@ -1433,8 +1477,8 @@

- MARKDOWN - + MD +

market_mayhem_2008-09-15.md

PATH: data/adam_daily/2008-09-15/market_mayhem_2008-09-15.md
@@ -1452,8 +1496,8 @@

- MARKDOWN - + MD +

market_mayhem_2000-03-10.md

PATH: data/adam_daily/2000-03-10/market_mayhem_2000-03-10.md
@@ -1471,8 +1515,8 @@

- MARKDOWN - + MD +

market_mayhem_1987-10-23.md

PATH: data/adam_daily/1987-10-23/market_mayhem_1987-10-23.md
@@ -1484,8 +1528,61 @@

market_mayhem_1987-10-23. -
- ADAM SYSTEM ARCHIVE // GENERATED DYNAMICALLY -
+ diff --git a/showcase/data/adam_daily/index.html b/showcase/data/adam_daily/index.html index 927d18ae7..a91ed866f 100644 --- a/showcase/data/adam_daily/index.html +++ b/showcase/data/adam_daily/index.html @@ -285,7 +285,7 @@