Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# THIS GETS TEMPLATED vvv
crush.json

# Data folder
data/

# VICTORIA.md master is kept in victoria-main
VICTORIA.md

Expand Down
2 changes: 1 addition & 1 deletion CRUSH.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
You are Victoria, Elcano's adtech AI agent. Your full identity and capabilities are defined in `VICTORIA.md`.

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

## Quick Start
Expand Down
2 changes: 1 addition & 1 deletion crush.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"args": [
"mcp-server-motherduck",
"--db-path",
"data/adtech.duckdb"
"${VICTORIA_HOME}/adtech.duckdb"
]
}
}
Expand Down
Empty file removed data/.gitkeep
Empty file.
19 changes: 18 additions & 1 deletion victoria.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

APP_HOME = Path.home() / "Victoria"
APP_HOME.mkdir(exist_ok=True)
os.environ.setdefault("VICTORIA_HOME", str(APP_HOME))

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

def open_victoria_folder():
"""Open the Victoria data folder in the system file browser."""
try:
if os.name == "nt":
os.startfile(str(APP_HOME)) # type: ignore[attr-defined]
elif sys.platform == "darwin":
subprocess.run(["open", str(APP_HOME)], check=False)
else:
subprocess.run(["xdg-open", str(APP_HOME)], check=False)
except Exception as e:
warn(f"Could not open Victoria folder: {e}")

def main():
ensure_default_files()
clear_screen()
banner()
remove_local_duckdb()


print(f"{T.CYAN}{T.FOLDER} Place files to analyze in: {T.WHITE}{APP_HOME}{T.NC}")
print(f"{T.DIM}file://{APP_HOME}{T.NC}")
open_victoria_folder()

print(f"{T.GREEN}{T.ROCKET} Welcome to Victoria - Your AdTech Data Navigator!{T.NC}")

# Show terminal capabilities for debugging (remove in production)
Expand Down
Loading