Commit Graph
6 Commits
Author SHA1 Message Date
faumarayandClaude Opus 4.8 23759899bb Use Api::fail() for error returns (241 sites)
Mechanically convert std::unexpected(Api::Error(ErrorCode::X, msg[, src]))
to Api::fail(ErrorCode::X, msg[, src]) across Core. Pure syntax; forwards of
existing errors (std::unexpected(x.error())) are unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 22:07:18 +03:00
faumarayandClaude Opus 4.8 9ff27483ab Own the database connection via Void::Sqlite
DatabaseImpl now holds a Void::Sqlite::Database (RAII open/close, WAL +
busy-timeout + foreign_keys); the existing raw-sqlite3 query methods borrow
its handle() unchanged. Removes the manual sqlite3_open/close + journal-mode
boilerplate.

Deliberately keeps echoion's schema_migrations migration framework rather
than switching to Void's PRAGMA user_version Migrator: existing databases
record versions in schema_migrations with user_version=0, and migrations
2/3 DROP tables — re-running them would destroy live data. Verified with an
integration test (data survives close+reopen; migrate() stays idempotent).

Link Void::Sqlite.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 16:40:55 +03:00
faumarayandClaude Opus 4.8 00759450ff Swap hand-rolled utils for Void primitives
Replace bespoke implementations with the new universal Void utilities:
- YouTubeClient: urlEncode -> Void::Encoding::Url::encode; ~140-line
  decodeHtmlEntities -> Void::Text::html_unescape; parseIso8601Duration ->
  Void::Time::parse_iso8601_interval.
- StateSerializer: getCurrentTimestampISO8601 -> Void::Time::utc_now_iso8601.
- Database: generateRpcToken's rand() loop -> Void::Random::random_string
  (seeded from std::random_device).
Link Void::Text / Void::Time / Void::Math.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 16:32:08 +03:00
faumaray 2bdb63766d Migrate core infrastructure to VoidLibrary 2026-06-22 15:53:23 +03:00
faumaray 53801f2b53 many different fixes 2026-02-03 05:07:15 +03:00
faumaray a583c17916 Initial commit 2026-02-01 23:04:49 +03:00