Index of every page on this site: llms.txt
All skills
opencoredev avatar

/test-t3-app

@de3bbc4
by OpenCoreopencoredev/akeru-bot132 stars
12
Run it yourself

Launch and verify Akeru Bot web and desktop in isolated development environments. Use for browser testing, Electron-specific checks, pairing recovery, debug access, and fixture setup.

  • 3 files
  • 10.6 KB
  • Updated 3 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/opencoredev/akeru-bot/test-t3-app

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencessqlite-fixtures.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

SQLite fixtures

Load this reference when inspecting or seeding isolated Akeru Bot state. Use deterministic visual fixtures for repeatable checks; use application commands to verify business behavior.

Repeatable visual fixtures

Create a fresh empty home and seed a scenario before starting the server:

FIXTURE_HOME=$(mktemp -d /tmp/akeru-ui.XXXXXX)
vp run dev:fixture --base-dir "$FIXTURE_HOME" --case populated
vp run dev --home-dir "$FIXTURE_HOME"

Start the final command as a background task. Retain the printed home and task handle.

Cases are empty, populated, and edge. The fixture command runs migrations and creates deterministic projection data without provider calls. Populated data includes a bot and completed chats; edge data adds empty states, a long title, and an archived chat.

The command accepts only an empty directory or its own unused fixture directory. Repeated offline runs replace projection data and back up an existing database. After the app adds credentials, provider state, or events, create a fresh fixture home rather than resetting it. The helper refuses a running database, shared Akeru home paths, and redirected fixture state.

These are display fixtures, not a coherent event history. Use the app's commands for tests of edits, persistence, projection rebuilds, or server behavior. For a data-specific defect, take a read-only VACUUM INTO snapshot as described in AGENTS.md.

Select the correct database

When --base-dir or --home-dir is explicit, runtime state lives under <base-dir>/userdata and the database path is <base-dir>/userdata/state.sqlite. The <base-dir>/dev state directory is only the fallback for an implicit development home, preventing an ordinary vp run dev from touching production state.

Start the target runtime once before seeding so all migrations have run. Use an isolated base directory. Stop the server before writes to avoid racing application state or an active projection.

Use the helper

List tables:

node apps/server/scripts/t3-sqlite-state.ts query \
  --base-dir <base-dir> \
  --sql "SELECT name FROM sqlite_schema WHERE type = 'table' ORDER BY name"

Inspect current columns before writing a fixture:

node apps/server/scripts/t3-sqlite-state.ts query \
  --base-dir <base-dir> \
  --sql "PRAGMA table_info(projection_threads)"

Apply a SQL fixture from a file:

node apps/server/scripts/t3-sqlite-state.ts exec \
  --base-dir <base-dir> \
  --file /tmp/t3-seed.sql

Use one statement per invocation for both query and exec; the helper wraps writes in a transaction and prints the backup path after a successful mutation. Use a single insert with multiple value rows when a fixture needs several records.

Seed projection data carefully

The web UI primarily reads these projection tables:

  • projection_projects
  • projection_threads
  • projection_thread_messages
  • projection_thread_activities
  • projection_thread_sessions
  • projection_turns
  • projection_pending_approvals
  • projection_thread_proposed_plans

Inspect PRAGMA table_info(<table>) and the current migrations under apps/server/src/persistence/Migrations/ before constructing inserts. Keep identifiers unique, timestamps as ISO strings, JSON columns valid, and related project/thread/turn IDs consistent.

For a substantial current example, inspect seedDatabase in scripts/mobile-showcase-environment.ts. Adapt its column set to the target database instead of assuming copied SQL remains current.

Direct projection writes are appropriate for ephemeral visual states, edge-case counts, long titles, activity lists, and similar UI fixtures. They do not create a coherent orchestration event history. Do not modify orchestration_events unless the test specifically exercises projector internals, and do not use direct projection writes to claim backend business behavior works.

Use the app's commands or APIs for behavior tests. Use node apps/server/src/bin.ts auth ... for auth state rather than editing auth_pairing_links or auth_sessions.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at de3bbc4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 months ago

README badge

README badge for opencoredev/akeru-bot/test-t3-app