KeiSeiKit-1.0/_blocks/INDEX.md
Parfii-bot 5b8e066888
Some checks are pending
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / preflight (push) Waiting to run
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / vps-smoke (push) Waiting to run
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:frustration-matrix,kei-frustration-loop,kei-skill-importer,kei-projects-index,kei-projects-watcher,kei-gdrive-import,kei-leak-matrix,kei-skills,kei-gateway,kei-cron-scheduler,kei-export-trajectories,kei-backend-daytona,kei-d… (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-compute-baremetal,kei-compute-vultr,kei-compute-linode,kei-compute-digitalocean,kei-svc-systemd,kei-llm-bridge-mlx name:hosted-sleep-compute]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-diff,kei-scheduler,kei-watch,kei-prune,kei-discover,kei-brain-view,kei-hibernate,kei-ledger-sign,kei-fork name:wave13-15]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-git-gitea,kei-git-forgejo,kei-git-gitlab,kei-git-bitbucket,kei-memory-sled,kei-memory-redis,kei-memory-postgres,kei-memory-sqlite,kei-auth-google,kei-auth-apple,kei-auth-magiclink,kei-auth-webauthn,kei-notify-slack,kei-n… (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-ledger,kei-migrate,kei-changelog,kei-memory,kei-store,kei-conflict-scan,kei-refactor-engine,kei-graph-check,kei-shared,kei-dna-index,kei-pet name:core]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-machine-probe,kei-llm-ollama,kei-llm-llamacpp,kei-llm-mlx,kei-llm-router,kei-model name:llm-stack]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-router,kei-sage,kei-task,kei-chat-store,kei-crossdomain,kei-search-core,kei-content-store,kei-social-store,kei-curator,kei-auth,kei-artifact name:mcp-lbm]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:keisei,kei-forge,kei-runtime,kei-runtime-core,kei-atom-discovery,kei-agent-runtime,kei-capability,kei-provision,kei-entity-store,kei-pipe,kei-cache,kei-spawn,kei-replay name:atom-substrate]) (push) Blocked by required conditions
refactor(install): production-ready финальный круг
1. lib-onboarding.sh раскидан на 3 куба (Constructor Pattern <200 LOC):
   - lib-onboarding-registry.sh (79 LOC) — парсеры providers/models.toml
     + onboarding_fallback_providers (14 провайдеров)
     + onboarding_auth_env_for_provider helper (был inline в collect_auth)
   - lib-onboarding-ui.sh (189 LOC) — pick_language/transport/provider/model
     + collect_auth (whiptail/bash select)
   - lib-onboarding-state.sh (57 LOC) — write_secrets + write_config
     + user-model-override.toml для kei-model-router
   - lib-onboarding.sh (95 LOC) — тонкий оркестратор: should_run + run

   Сам lib-onboarding.sh source'ит 3 подкуба автоматически. Глобалы
   (ONBOARDING_*, REGISTRY_*, ONBOARDED_FLAG, etc.) объявлены в
   оркестраторе, подкубы их используют через имена.

2. lib-menu.sh локализован:
   - whiptail title + radiolist prompt через ${STR_MENU_TITLE} +
     ${STR_MENU_SUBSTRATE} + ${STR_MENU_PROFILE_PROMPT}.
   - Plain heading тоже использует словарь.
   - 12 коротких имён профилей (minimal/core/dev/...) — оставлены EN
     как стабильные id (не переводятся).

3. _blocks/build-index.sh — детерминированная регенерация INDEX.md.
   Группировка по 14 категорийным префиксам + "Прочие" для остальных.
   Безопасно перезапускать. INDEX.md обновлён через этот скрипт
   (минимальный diff — добавлена ссылка на build-index.sh в шапке).

Проверено: bash -n чисто, unit тесты onboarding_list_providers/
transports/models OK, non-TTY smoke ./install.sh --profile=minimal
--no-execute проходит.
2026-05-17 23:57:23 +08:00

149 lines
6.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Реестр блоков KeiSeiKit
> SSoT для assembler. Все блоки доступные для `blocks = [...]` в `_manifests/<agent>.toml`.
> Авто-генерируется из `_blocks/*.md` через `bash build-index.sh`.
> Каждый файл = атомарный кубик (Constructor Pattern).
Пример:
```toml
blocks = ["baseline", "rule-pre-dev-gate", "api-anthropic"]
```
## По категориям
### API
- `api-anthropic` — API — Anthropic (Claude)
- `api-apify` — API — Apify (web scraping platform)
- `api-elevenlabs` — API — ElevenLabs (voice)
- `api-fal-ai` — API — fal.ai (image / video / 3D)
- `api-graphql` — API — GraphQL (schema-first, DataLoader, subscriptions, persisted queries)
- `api-openapi-first` — API — OpenAPI-First (3.1 as single source of truth)
- `api-rest-conventions` — API — REST Conventions (verbs, status codes, resources, idempotency, ETag)
- `api-versioning-pagination-ratelimit` — API — Versioning, Pagination, Rate Limiting
### AUTH
- `auth-authorization` — AUTH — Authorization (RBAC / ABAC / ReBAC)
- `auth-oauth2-oidc` — AUTH — OAuth2 + OIDC (Authorization Code + PKCE)
- `auth-passkeys` — AUTH — Passkeys (WebAuthn / FIDO2)
- `auth-sessions` — AUTH — Sessions & Cookies (+JWT tradeoff)
### CI
- `ci-forgejo-actions` — CI — Forgejo Actions (self-hosted, Tailscale-only admin)
- `ci-github-actions` — CI — GitHub Actions (OIDC, matrix, cache, reusable workflows)
- `ci-release-automation` — CI — Release automation (SemVer, changelog, tagging)
- `ci-security-gate` — CI — Security gate (secrets, SCA, SBOM, semgrep, licenses)
### DB
- `db-drizzle` — DB — Drizzle ORM (TypeScript) patterns
- `db-migration-hygiene` — DB — Migration hygiene (universal)
- `db-postgres` — DB — PostgreSQL (current major — 17 as of 2026-04) patterns
- `db-sqlite` — DB — SQLite (prod-suitable) patterns
- `db-sqlx` — DB — SQLx (Rust) patterns
### DEPLOY
- `deploy-aws-ec2` — DEPLOY — AWS EC2 (Instance Connect + Elastic IP)
- `deploy-cloudflare` — DEPLOY — Cloudflare (Workers / Pages / R2 / KV)
- `deploy-docker` — DEPLOY — Docker
- `deploy-hetzner-cloud` — DEPLOY — Hetzner Cloud (CX22 / CAX11 + TF + Cloud Firewall)
- `deploy-local-only` — DEPLOY — LOCAL ONLY (sensitive / pre-disclosure project)
- `deploy-modal` — DEPLOY — Modal (GPU compute)
- `deploy-vps-generic` — DEPLOY — Generic VPS (provider-agnostic cloud-init + ssh-first-contact)
### DOCS
- `docs-architecture-diagrams` — DOCS — Architecture diagrams (Mermaid)
- `docs-claude-md` — DOCS — `CLAUDE.md` (project bootstrap template)
- `docs-decisions-adr` — DOCS — `DECISIONS.md` / ADR template (MADR 4.0)
- `docs-readme-template` — DOCS — Public `README.md` scaffold
- `docs-runbook` — DOCS — Operational runbook template
### DOMAIN
- `domain-has-secrets` — DOMAIN — Secrets handling
- `domain-ml-training` — DOMAIN — ML Training
- `domain-paid-apis` — DOMAIN — Paid APIs (Anthropic / OpenAI / fal.ai / Apify / Modal / AWS / GCP / ElevenLabs)
### MODE
- `mode-devils-advocate` — MODE — Devil's Advocate
- `mode-first-principles` — MODE — First Principles
- `mode-matrix` — MODE — Agent × Cognitive-Mode Matrix
- `mode-maximalist` — MODE — Maximalist
- `mode-minimalist` — MODE — Minimalist
- `mode-skeptic` — MODE — Skeptic
### OBS
- `obs-metrics` — OBSERVABILITY — Metrics (Prometheus + OTel + RED/USE)
- `obs-structured-logs` — OBSERVABILITY — Structured logs (JSON-lines)
- `obs-traces` — OBSERVABILITY — Distributed traces (OpenTelemetry + W3C traceparent)
### PATH
- `path-user-hooks` — Path atom — user-hooks
- `path-user-memory` — Path atom — user-memory
- `path-user-rules` — Path atom — user-rules
### RULE
- `rule-double-audit` — DOUBLE AUDIT PROTOCOL (mandatory when 3+ files touched)
- `rule-error-budget` — ERROR BUDGET — 3-Level Escalation
- `rule-math-first` — MATH FIRST (mandatory for ML / physics / theory work)
- `rule-pre-dev-gate` — PRE-DEV GATE — three checks before any new code
- `rule-pure-click-contract` — Pure-Click Contract
- `rule-test-first` — TEST-FIRST
### SCRAPER
- `scraper-free-tier` — DOMAIN — Scrapers Tier 1 (free APIs + open-source)
- `scraper-paid-tier` — DOMAIN — Scrapers Tier 3 (Apify / Bright Data paid)
- `scraper-unified-output` — DOMAIN — Scraper unified output invariant
### SECURITY
- `security-audit-logging` — SECURITY — Audit Logging (auditd + journald forwarding)
- `security-firewall-ufw` — SECURITY — Firewall (ufw default-deny + rate limiting + nftables alt)
- `security-patching` — SECURITY — Patching (unattended-upgrades + needrestart + reboot window)
- `security-ssh-hardening` — SECURITY — SSH Hardening (sshd_config.d/99-kei.conf)
- `security-tls-caddy` — SECURITY — TLS via Caddy (automatic ACME, HTTP-01 / DNS-01)
### STACK
- `stack-astro` — STACK — Astro 6 (Content + Marketing + Islands)
- `stack-embedded-stm32` — STACK — Embedded Rust STM32 (embassy / cortex-m)
- `stack-fastapi-postgres` — STACK — FastAPI + async SQLAlchemy 2.0 + PostgreSQL
- `stack-flutter` — STACK — Flutter + Riverpod + Clean Architecture
- `stack-go-server` — STACK — Go server
- `stack-nextjs` — STACK — Next.js 15/16 (App Router + TS + Server Components)
- `stack-python-ml` — STACK — Python ML (PyTorch / JAX)
- `stack-react-vite` — STACK — Vite + React 19 + TypeScript (SPA)
- `stack-rust-axum` — STACK — Rust HTTP server (axum + tokio + sqlx)
- `stack-rust-cli` — STACK — Rust CLI / tooling
- `stack-sveltekit` — STACK — SvelteKit (Svelte 5 Runes + TS)
- `stack-swift-ios` — STACK — Swift iOS (UIKit / SwiftUI hybrid)
- `stack-swift-spm` — STACK — Swift SPM executable (macOS)
- `stack-tailwind` — STACK — Tailwind CSS 4 (compositional add-on)
### TEST
- `test-e2e` — TEST — End-to-end (Playwright browser automation)
- `test-fuzz` — TEST — Fuzzing (input-space exploration)
- `test-load` — TEST — Load / performance testing (baseline → profile → fix)
- `test-property` — TEST — Property-based testing (invariants + shrinking)
### Прочие (без категорийного префикса)
- `baseline` — BASELINE — inherit from Main Claude (never violate)
- `evidence-grading` — EVIDENCE GRADING
- `memory-protocol` — MEMORY PROTOCOL
- `pipeline-5phase-template` — Pipeline 5-Phase Wizard Template (shared preamble)
---
Всего блоков: 84.
Перегенерация: `bash _blocks/build-index.sh`.