mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 00:02:19 +00:00
b883f9a9d2
* feat: add ai chat schedule and trigger tools * refactor: use zod for ai chat workspace tools * refactor: let ai provide runnable target fields * refactor: generate ai chat workspace tool schemas * fix: add object type to composed tool schemas * fix: avoid top-level trigger schema unions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: block undeployed workspace ai tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: inject ai workspace tool target Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * test: add ai evals for workspace tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * test: make workspace tool eval prompts realistic Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: surface workspace tool errors * fix: show workspace tool success details * fix: describe workspace tool path format * fix: clarify workspace path examples * fix: tighten workspace tool validation * fix: align workspace tool prompts * chore: mark generated chat schemas * chore: mark generated cli skills --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
42 lines
1.6 KiB
Bash
Executable File
42 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Check that auto-generated system prompts are up-to-date with their sources.
|
|
# Usage: bash system_prompts/check-freshness.sh
|
|
# Exit code 0 = fresh, 1 = stale (with diff printed)
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
ROOT_DIR="$SCRIPT_DIR/.."
|
|
GENERATED_DIR="$SCRIPT_DIR/auto-generated"
|
|
CLI_SKILLS="$ROOT_DIR/cli/src/guidance/skills.gen.ts"
|
|
FRONTEND_WORKSPACE_TOOL_ZOD="$ROOT_DIR/frontend/src/lib/components/copilot/chat/workspaceToolsZod.gen.ts"
|
|
|
|
# Snapshot current state
|
|
BEFORE=$(git -C "$ROOT_DIR" diff -- "$GENERATED_DIR" "$CLI_SKILLS" "$FRONTEND_WORKSPACE_TOOL_ZOD")
|
|
UNTRACKED_BEFORE=$(git -C "$ROOT_DIR" ls-files --others --exclude-standard -- "$GENERATED_DIR" "$FRONTEND_WORKSPACE_TOOL_ZOD")
|
|
|
|
# Regenerate
|
|
echo "Running generate.py..."
|
|
python3 "$SCRIPT_DIR/generate.py"
|
|
|
|
# Compare
|
|
AFTER=$(git -C "$ROOT_DIR" diff -- "$GENERATED_DIR" "$CLI_SKILLS" "$FRONTEND_WORKSPACE_TOOL_ZOD")
|
|
UNTRACKED_AFTER=$(git -C "$ROOT_DIR" ls-files --others --exclude-standard -- "$GENERATED_DIR" "$FRONTEND_WORKSPACE_TOOL_ZOD")
|
|
|
|
if [ "$BEFORE" = "$AFTER" ] && [ "$UNTRACKED_BEFORE" = "$UNTRACKED_AFTER" ]; then
|
|
echo "Auto-generated system prompts are up-to-date."
|
|
exit 0
|
|
else
|
|
echo "ERROR: Auto-generated system prompts are stale!"
|
|
echo "Run 'python3 system_prompts/generate.py' and commit the result."
|
|
echo ""
|
|
echo "Diff:"
|
|
git -C "$ROOT_DIR" diff -- "$GENERATED_DIR" "$CLI_SKILLS" "$FRONTEND_WORKSPACE_TOOL_ZOD"
|
|
if [ "$UNTRACKED_BEFORE" != "$UNTRACKED_AFTER" ]; then
|
|
echo ""
|
|
echo "New untracked files:"
|
|
git -C "$ROOT_DIR" ls-files --others --exclude-standard -- "$GENERATED_DIR"
|
|
fi
|
|
exit 1
|
|
fi
|