Skip to content

Commit 90d2ac0

Browse files
committed
Remove data directory and use home Victoria folder
1 parent 009629f commit 90d2ac0

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# THIS GETS TEMPLATED vvv
55
crush.json
66

7-
# Data folder
8-
data/
9-
107
# VICTORIA.md master is kept in victoria-main
118
VICTORIA.md
129

CRUSH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
You are Victoria, Elcano's adtech AI agent. Your full identity and capabilities are defined in `VICTORIA.md`.
55

66
## Data Access
7-
- Data files in `data/` folder (CSV and Excel files via MotherDuck MCP)
7+
- Data files in `~/Victoria` folder (CSV and Excel files via MotherDuck MCP)
88
- Snowflake databases (read-only access via Snowflake MCP)
99

1010
## Quick Start

crush.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"args": [
1515
"mcp-server-motherduck",
1616
"--db-path",
17-
"data/adtech.duckdb"
17+
"${VICTORIA_HOME}/adtech.duckdb"
1818
]
1919
}
2020
}

data/.gitkeep

Whitespace-only changes.

victoria.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
APP_HOME = Path.home() / "Victoria"
3939
APP_HOME.mkdir(exist_ok=True)
40+
os.environ.setdefault("VICTORIA_HOME", str(APP_HOME))
4041

4142
def resource_path(name: str) -> Path:
4243
base = Path(getattr(sys, "_MEIPASS", Path(__file__).resolve().parent))
@@ -685,12 +686,28 @@ def remove_local_duckdb():
685686
except Exception as e:
686687
warn(f"Could not remove {db_path}: {e}")
687688

689+
def open_victoria_folder():
690+
"""Open the Victoria data folder in the system file browser."""
691+
try:
692+
if os.name == "nt":
693+
os.startfile(str(APP_HOME)) # type: ignore[attr-defined]
694+
elif sys.platform == "darwin":
695+
subprocess.run(["open", str(APP_HOME)], check=False)
696+
else:
697+
subprocess.run(["xdg-open", str(APP_HOME)], check=False)
698+
except Exception as e:
699+
warn(f"Could not open Victoria folder: {e}")
700+
688701
def main():
689702
ensure_default_files()
690703
clear_screen()
691704
banner()
692705
remove_local_duckdb()
693-
706+
707+
print(f"{T.CYAN}{T.FOLDER} Place files to analyze in: {T.WHITE}{APP_HOME}{T.NC}")
708+
print(f"{T.DIM}file://{APP_HOME}{T.NC}")
709+
open_victoria_folder()
710+
694711
print(f"{T.GREEN}{T.ROCKET} Welcome to Victoria - Your AdTech Data Navigator!{T.NC}")
695712

696713
# Show terminal capabilities for debugging (remove in production)

0 commit comments

Comments
 (0)