mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-06 02:20:07 +01:00
- beacon.py: PyQt6 desktop overlay for session stops — countdown auto-continue, Whisper STT voice input, session summary display, confirm popup for destructive commands - agent-hook-lib.sh: shared bash utilities — resolve_tab (pane-file fast path + zellij process tree fallback), inject_prompt, get_prompt, play_sound - agent-hook-bridge.sh: stop/notification handler — writes /tmp sentinel files, launches beacon, injects chosen prompt back into the zellij tab; respects prefer_browser_ready_ui to skip native popup when Cockpit is running - run-codex-task.sh: headless Codex executor that fires agent-hook-bridge stop on exit, bringing Codex into the lifecycle contract for orchestration-dispatched tasks - smoke-beacon-stop.sh: integration smoke test for the full beacon stop chain - sync-agent-runtime-config.py: copies claude-prompts.json → agent-prompts.json, claude-projects.conf → agent-projects.conf for agent-agnostic naming - check-agent-runtime.sh, check-design-system.sh: dev diagnostic utilities Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
1012 B
Bash
31 lines
1012 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
fail=0
|
|
|
|
check_none() {
|
|
local label="$1"
|
|
local pattern="$2"
|
|
shift 2
|
|
local files=("$@")
|
|
|
|
if rg -n "$pattern" "${files[@]}"; then
|
|
echo
|
|
echo "design-system check failed: $label"
|
|
fail=1
|
|
fi
|
|
}
|
|
|
|
check_none "custom ui-* classes used inside @apply" '@apply .*ui-' src/app/globals.css
|
|
check_none "raw shared search input recipe outside primitive" 'w-full rounded-2xl border border-border-default bg-surface-overlay .*pl-11 .*pr-16' src/components src/app -g '!src/app/globals.css'
|
|
check_none "raw code-surface recipe outside primitive" 'rounded-\[1\.5rem\] border border-border-subtle bg-surface-overlay p-4 .*leading-relaxed text-text-secondary' src/components src/app -g '!src/app/globals.css'
|
|
check_none "raw subtle link text recipe outside primitive" 'text-xs text-text-tertiary .*hover:text-text-secondary' src/components src/app -g '!src/app/globals.css'
|
|
|
|
if [[ "$fail" -ne 0 ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
echo "design-system check: ok"
|