feat: add TraitsTab component for managing agent traits
Some checks failed
CI / build-and-test (push) Failing after -32m5s

- Implemented TraitsTab.svelte to handle CRUD operations for agent traits.
- Integrated grid for displaying traits with context menu actions for add, edit, and delete.
- Added trait instruction editing functionality with a dedicated editor.
- Updated AdminShell to include PersonasPage for navigation.
- Enhanced AppSidebar with a new entry for Personas.
- Extended ShellPage type to include 'personas'.
- Defined new types for AgentPersona, AgentPart, and AgentTrait in types.ts.
This commit is contained in:
2026-05-05 14:51:58 +02:00
parent e285a03639
commit 9230f39cb6
48 changed files with 6979 additions and 2240 deletions

View File

@@ -3,6 +3,8 @@ set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
out_dir="${repo_root}/internal/generatedmodels"
resolve_spec_models_file="${repo_root}/internal/app/resolvespec_models_generated.go"
resolve_spec_template="${repo_root}/scripts/templates/resolvespec_models.tmpl"
resolve_relspec() {
if [[ -n "${RELSPEC:-}" ]]; then
@@ -44,6 +46,12 @@ mkdir -p "${out_dir}"
--to-path "${out_dir}" \
--package generatedmodels
"${relspec_bin}" templ \
--from dbml \
--from-list "${schema_list}" \
--template "${resolve_spec_template}" \
--output "${resolve_spec_models_file}"
# relspec currently emits a few files with unused fmt imports; strip only when fmt is unused.
for file in "${out_dir}"/*.go; do
sed -i 's/fmt.Sprintf("%d", m.ID)/fmt.Sprintf("%v", m.ID)/g' "${file}"
@@ -56,3 +64,4 @@ done
bash "${repo_root}/scripts/patch-generated-models.sh"
gofmt -w "${out_dir}"/*.go
gofmt -w "${resolve_spec_models_file}"