Commit Graph
3 Commits
Author SHA1 Message Date
ArtemFilin1990 7748c89f96 feat: add seed-database workflow with D1-compatible schema
- .github/workflows/seed-database.yml  — GitHub Actions workflow
  Триггеры: push на main (data/**) + workflow_dispatch (dry_run, reset_db)
  Этапы: checkout → build SQL → apply schema → execute seed → verify counts

- tools/scripts/build_bearings_seed.py — генератор seed SQL
  Читает: brands.csv, import_analogs.csv, nomenclature.csv, master_catalog.csv
  Выдаёт: seed/*.sql (батчи 500/1000 строк) + seed/manifest.json

- data/schema/d1_schema.sql — SQLite-совместимая схема для D1
  Таблицы: bearings, manufacturers, analogs, nomenclature, search_history
  Фиксы: SERIAL→INTEGER PRIMARY KEY AUTOINCREMENT, TIMESTAMP→TEXT, DECIMAL→REAL

Secrets required: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID
2026-03-26 14:46:30 +00:00
anthropic-code-agent[bot]andArtemFilin1990 0a42fa910c Fix incomplete script path corrections across repository
- Updated all CI/CD workflow files (.github/workflows/) to use tools/scripts/ paths
- Updated CONTRIBUTING.md and all documentation in docs/ directory
- Updated data/inbox/inbox/ documentation files
- Updated tools/scripts/generate_sources_table.py self-references
- Fixed pr-checks.yml linting paths (black, ruff, mypy, coverage)
- All validations passing with new paths

Co-authored-by: ArtemFilin1990 <221041513+ArtemFilin1990@users.noreply.github.com>
2026-02-05 21:17:37 +00:00
copilot-swe-agent[bot]andArtemFilin1990 fd20fce7fe refactor: migrate files to new directory structure (docs, data, src, tools, config)
Co-authored-by: ArtemFilin1990 <221041513+ArtemFilin1990@users.noreply.github.com>
2026-02-05 08:56:28 +00:00