mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-27 22:29:15 +01:00
Some checks are pending
crdt_sync_dart tests / test (push) Waiting to run
crdt_sync_flutter tests / test (push) Waiting to run
file length / file-length (push) Waiting to run
kuhy_credit drift / drift (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
Every app that syncs or shares data is offline-first, whatever the transport (~/.claude/rules/offline-first.instructions.md). crdt_sync_dart documents the contract and test/offline_first_test.dart checks it: a write is readable at once and after restart, an offline tick keeps it, it is pushed once the remote is back, and pulled peer data stays readable. DOCS-offline-first.md audits every syncing app with evidence and names the fix per failing row. Bug-class-check: crdt_sync_dart/test/offline_first_test.dart Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
2.6 KiB
Markdown
28 lines
2.6 KiB
Markdown
# utils
|
|
|
|
Monorepo of shared gates and libraries (app_errors, dep_freshness, file_length, md_naming,
|
|
repo_contract, coverage_gaps, devstats (`devstats/run.sh`: one-shot run + HTML report), crdt-sync, gatelock, freedays, sickdays, earned_time, music_theory, game_recording,
|
|
flutter_web_drive (headless Flutter-web E2E driver + MCP), ...).
|
|
`godot_dev_tools/` is a Godot addon (GDScript): `godot_dev_tools/test.sh` runs its GUT tests.
|
|
`kuhy_credit/` is the shared "Created by kuhy" credit, one implementation per stack (web, Flutter,
|
|
Godot, Tk, terminal, LaTeX) generated from `kuhy_credit/credit.json`; `kuhy_credit/README.md` lists each
|
|
stack's test and E2E command, `python -m generator.generate --check` (from `kuhy_credit/`) the drift check.
|
|
Python packages with a root-level `<pkg>/tests` run with `PYTHONPATH=.`;
|
|
subprojects with their own `pyproject.toml` run via `scripts/run_subproject_tests.sh <dir>`.
|
|
`scripts/check_repo_contract.sh` is the REAL shared gate (not a shim): never
|
|
overwrite it with `repo_contract/templates/check_repo_contract.shim.sh`.
|
|
|
|
## Commands
|
|
|
|
- run: n/a: collection of gates and libraries, no single entry point
|
|
- test: `PYTHONPATH=. python -m pytest -q agent_ready/tests coverage_gaps/tests dep_freshness/tests devstats/tests file_length/tests flutter_web_drive/tests home_paths/tests md_naming/tests repo_contract/tests scripts/tests unified-design-system/tests`
|
|
- test-changed: `scripts/test_changed.sh`
|
|
- lint: `ruff check agent_ready coverage_gaps devstats flutter_web_drive repo_contract`
|
|
- coverage: `PYTHONPATH=. python -m pytest -q agent_ready/tests devstats/tests flutter_web_drive/tests repo_contract/tests unified-design-system/tests --cov=agent_ready --cov=devstats --cov=flutter_web_drive --cov=repo_contract --cov=conformance --cov=conformance_diff --cov-branch --cov-report=xml --cov-fail-under=100`
|
|
- coverage-gaps: `coverage-gaps coverage.xml`
|
|
- deploy: `git -C ~/src/utils pull --ff-only && ~/src/utils/scripts/deploy.sh` (installs the sickdays CLI + launcher from the live checkout, then exits 1 unless every released library's version tag is on origin and matches HEAD and the live `sickdays` runs the text-free checkout; `--verify-only` for the health check alone)
|
|
|
|
## Rules
|
|
|
|
- Offline-first: every app that syncs or shares data, whatever the transport, saves each write locally first (readable at once) and keeps all pulled data, details included (`~/.claude/rules/offline-first.instructions.md`; audit `DOCS-offline-first.md`). The `crdt_sync_dart` contract is in its README ("Offline-first contract"), check `cd crdt_sync_dart && dart test test/offline_first_test.dart`.
|