11 Commits
Author SHA1 Message Date
Erfan YousefiandClaude Opus 4.8 897fd38066 build: add Makefile as the single entry point for dev/CI/release
One make interface that runs the same commands locally and in CI.

- `make validate` = fmt-check -> check -> test -> release build (the pre-PR gate).
- `make ci` (alias) is now what .github/workflows/ci.yml runs; release.yml's
  validate stage runs `make validate` and its per-target build/package runs
  `make package TARGET=<triple>` (byte-identical artifact: krust-<triple>.tar.gz
  containing krust-<triple>/{krust,README.md,LICENSE}).
- Convenience targets: fmt, check, clippy, test, build(-release), run, clean,
  package; lab-{up,load,contexts,crds,churn,down} wrap scripts/scale; and
  bench/bench-contexts/soak/discover/metrics wrap the headless harnesses.
- cargo is resolved robustly (PATH, then a Homebrew keg-only rustup, else
  plain cargo) and its dir is put on PATH so external subcommands (cargo-fmt,
  cargo-clippy) and rustc resolve even when rustup is keg-only.
- dist/ (package output) gitignored. Docs (contributor guide, AGENTS, README)
  point at `make validate`.

Verified locally: make validate green (85 tests), make package produces the
release tarball, cargo resolves with no keg on PATH. CI running `make ci` on
this PR is the cross-environment proof.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 00:00:48 +02:00
Erfan YousefiandClaude Opus 4.8 8b1c78f025 fix(ui): make per-view help accurate and keymap-aware
The on-screen help line drifted from actual behavior and hardcoded default
keys, so it misled operators (especially with a customized keymap).

- Help key hints are now derived from the active keymap (`Keymap::hint`), so they
  reflect remapped bindings instead of hardcoded defaults.
- Table pane: removed the bogus `ctrl+d/u page` (paging is detail-only; `ctrl+d`
  is delete here) and `gg` (table uses a single `g`); added the bindings that
  were missing — namespace cycle, sort, reverse, events, help toggle, clear-filter.
- Detail/Logs panes: advertise `t table` and `esc close` (both worked, unlisted);
  clarified `gg/G`, `ctrl+d/u half-page`, `n/N match`, `/ search`.
- Docs reconciled: operator-guide navigation + commands (incl. `:api` / dynamic
  resource browse), README scope note for dynamic discovery.

Tests: keymap hint rendering (default + remapped), and per-pane help accuracy
(table excludes paging/gg and includes namespace/sort/delete; detail includes
close/table/edit).

Validation: fmt, check, test (80 passed / 4 ignored), release build all green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 16:23:03 +02:00
Erfan Yousefi a2b07f1e70 docs: split operator/contributor guides and sharpen README product scope
- rewrite README for operator-first onboarding with clear goal/approach intro

- expand scope section with concrete supported resources and workflows

- add docs/operator-guide.md for runtime usage, navigation, logs, secrets, and troubleshooting

- add docs/contributor-guide.md for engineering standards, validation, and release responsibilities

- simplify CONTRIBUTING.md into a concise entrypoint that links to the detailed contributor guide

- remove docs/status.md and drop update-status job from release workflow
2026-03-08 14:15:00 +01:00
Erfan Yousefi 74393dd794 ci(release): standardize workflows and enforce deterministic release guarantees
- standardize workflow display names to Krust / <Pipeline> convention

- ensure main-driven release pipeline always triggers and uses preflight docs-only gating

- verify release artifacts post-publish (linux/mac tarballs, SHA256SUMS, krust.rb)

- enforce semver bump and Cargo.toml version commit before tagging

- sync homebrew tap as part of release pipeline using generated formula from release checksums

- keep standalone Homebrew Tap workflow as manual fallback only

- update README release flow to document asset verification and tap sync
2026-03-08 13:16:15 +01:00
Erfan Yousefi 5411d9bec8 ci(release): main-driven semver release pipeline with loop guards
- make Release workflow run from main pushes and manual dispatch

- run validate gate (fmt/check/test/release build) before publishing

- compute semver bump automatically (major: BREAKING/!, minor: feat, patch otherwise)

- bump Cargo package version and push release tag from pipeline

- publish multi-platform artifacts and checksums to GitHub Releases

- add automated docs/status.md update after successful publish

- prevent circular release runs via [skip ci], bot actor guard, and docs/markdown push path ignores

- scope CI workflow to PR/manual to keep release pipeline as single main-path publisher
2026-03-08 13:05:10 +01:00
Erfan Yousefi 08a75daf23 feat(release,ui): accelerate pulse rendering and automate Homebrew tap publishing
- add cached pulse metrics keyed by context/namespace/store revision to avoid recomputing heavy counts on every frame

- wire render loop to consume cached pulse metrics and invalidate only when underlying store revision changes

- add regression test for pulse cache reuse/invalidation behavior

- improve release workflow with manual dispatch support, deterministic tag/version resolution, checksum artifact generation, and idempotent release asset publishing

- add Homebrew tap sync workflow that generates and pushes Formula/krust.rb from release SHA256SUMS

- add formula generator script for macOS arm64/amd64 and linux amd64 release tarballs

- update README Homebrew install flow to short tap syntax and ignore .idea in repo
2026-03-08 12:46:13 +01:00
Erfan Yousefi ffa8a7cb50 feat: establish krust v0.1 foundation with k9s-compatible UX and OSS release scaffolding
This commit consolidates the first production-ready baseline for krust, including core runtime behavior, operator UX, safety rails, and project publication assets.\n\nCore runtime and architecture\n- Implement lazy, active-scope watch-plan reconciliation across contexts/kinds/namespaces\n- Keep warm-context retention bounded by TTL for faster context switching\n- Add bounded watch reconnect handling and terminal handling for RBAC-forbidden watchers\n- Keep invalidation-driven rendering with FPS control and bounded log/state paths\n\nOperator UX and workflows\n- Expand k9s-style navigation/command aliases for supported Kubernetes resources\n- Improve pane consistency for table/detail/log overlays and scrolling behavior\n- Add detail viewer search semantics (non-destructive search/highlight) with match navigation\n- Add YAML/JSON detail format toggle and syntax highlighting for both formats\n- Add secret decode pane improvements and format-aware edit/apply behavior\n- Add clipboard copy and dump flows with native backend + OSC52 fallback\n\nSafety and action model\n- Keep readonly enforcement for mutation paths\n- Maintain guarded action behavior and clearer error/status surfacing\n\nDocumentation and open-source readiness\n- Rewrite README for community-facing onboarding and operational clarity\n- Add architecture and performance guides under docs/\n- Add CONTRIBUTING guide and PR template\n- Add GitHub Actions CI pipeline (fmt/check/test/release build)\n- Add GitHub Actions release pipeline for tagged multi-platform artifacts\n- Add Cargo package metadata and repository links\n- Add .gitignore hygiene for macOS Finder artifacts\n\nQuality and verification\n- Bring strict clippy (-D warnings) to clean state for current codebase\n- Validate full required pipeline: fmt, check, test, and release build
2026-03-08 03:29:19 +01:00
Erfan Yousefi 17b4f09a11 perf: tighten watch scope, remove drill overhead, and benchmark hot paths
- remove dormant drill hierarchy paths from UI hot flow to reduce branching and dead state
- add active watch-plan reconciliation keyed by context+kind+namespace
- keep only active context fully hot with bounded warm-context TTL retention
- add runtime knobs warm_contexts and warm_context_ttl_secs and wire through startup options
- optimize logs rendering: non-wrap mode now renders viewport-only slices (O(visible))
- add versioned joined-log cache to avoid repeated full joins in wrap mode
- keep log memory bounded with existing line/byte caps and preserve search/highlight UX
- retain cached view projection by state revision + request to limit recompute churn
- add ignored perf benchmarks for projector, log viewport rendering, and warm-context selection
- update README runtime config and architecture notes
2026-03-07 14:07:07 +01:00
Erfan Yousefi de34b95fbf feat: expand krs into power-user multi-cluster TUI milestone
This checkpoint captures the latest end-to-end UX and engine improvements for high-scale Kubernetes navigation and operations.

Highlights

- add GenAI-native AGENTS.md operating contract with mandatory fmt/check/test/release pipeline

- require explicit user authorization before commits while preserving agent autonomy for commit boundaries

- define performance-first thinking model for large multi-context, high-resource clusters

- implement command field and richer command handling paths including contexts/resources/container command support

- improve context and namespace selection flows with enter-based selection behavior

- add real-time filtering and command autocomplete refinements

- add Vim-like detail-pane navigation/search motions (/, ?, n/N, gg/G, ctrl+d/u)

- add detail-pane search filtering and visual match highlighting

- upgrade detail/log viewer titles with stateful viewer metadata (mode/search/line/wrap)

- add container picker UX via 'c' key and :c command for pod container targeting

- expand log streaming to aggregate multi-target streams:

  * pod -> all containers by default (or selected container override)

  * replicaset -> all replica pods

  * deployment -> all replica pods via owned ReplicaSets

- prefix aggregated log lines with source identity for fast human parsing

- keep bounded log buffers and reconnect behavior for resilient streaming

- update watch activation to ensure dependent resource kinds are observed when logs require fanout

- update help/status messaging to surface new controls and behavior
2026-03-07 12:59:40 +01:00
Erfan Yousefi 58ce46c14c feat(krs): bootstrap high-performance k8s TUI foundation with k9s-style workflows
Establish the initial Rust codebase for krs and deliver a usable multi-context Kubernetes terminal navigator with latency-first behavior, command field UX, and guarded operations.

Highlights

- implement layered architecture: cluster IO -> state cache -> view projector -> ratatui renderer

- add async runtime wiring with tokio + kube + kube_runtime watcher loops

- support broad resource coverage (pods, deploys, rs, sts, ds, svc, ing, cm, secrets, jobs, cronjobs, pvc/pv, nodes, namespaces, events, rbac, netpol, hpa, pdb)

- add bounded StateDelta-driven cache updates and invalidation-based rendering loop with FPS cap

- implement command line UX and parser for k9s-style resource commands and args (:po, :svc, :ctx, :ns, -A, -n/--namespace, --context, labels, /filter)

- add command input line, history navigation ([, ], -), and resource alias overlays

- add selectable context overlay with keyboard/mouse navigation and Enter-to-switch

- enforce efficient startup/watch behavior with lazy context client initialization and on-demand watch activation

- harden RBAC-denied watcher handling (disable forbidden watcher and avoid retry flood)

- set keybinding defaults aligned with requested behavior (d=describe, ctrl+d=delete, shift+e=events, ctrl+c=quit)

- add guarded delete flow (confirmation TTL, RBAC-aware error rendering; pod delete implemented)

- lock scrolling to in-app panes/overlays and enable mouse-capture lifecycle management

- add config/keymap loading, CLI options, docs, and parser-focused unit tests

Compatibility/targeting

- target Kubernetes 1.33+ via k8s-openapi v1_33

- keep plugin system out of scope by design

Validation

- cargo test passed

- cargo build --release passed
2026-03-07 09:34:19 +01:00
Erfan 2aae4756d7 Initial commit 2026-03-07 08:11:17 +01:00