mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-11-13 15:57:22 +01:00
Delete the Eino model adapters, callbacks, middleware, orchestration, summarization and single-agent runner together with their dependencies. Chat, batch tasks, workflow Agent nodes and sub-agents now share the Pi runtime, and dispatch is a single code path instead of an engine switch. Configuration migrates eino_middleware/eino_skills to runtime/skills and drops the retired callback settings while old files still load. Settings, i18n and docs describe Pi only. Also carry the Pi follow-up fixes: empty required lists are omitted from tool schemas, historical tool results stay with their call batch, model proxies work over HTTP/1.1, single-query retrieval skips query expansion, and finalization docs match Pi lifecycle events.
36 lines
810 B
Go
36 lines
810 B
Go
package database
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
func TestBatchHITLLegacyMigration(t *testing.T) {
|
|
db, err := NewDB(filepath.Join(t.TempDir(), "legacy.db"), zap.NewNop())
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer db.Close()
|
|
if err := db.CreateBatchQueue("legacy", "test", "", "single", "manual", "", nil, "", 1, nil); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if _, err := db.Exec("ALTER TABLE batch_task_queues DROP COLUMN hitl_policy"); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if err := db.reconcileSchema(applicationSchema); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if err := db.reconcileSchema(applicationSchema); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
row, err := db.GetBatchQueue("legacy")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if row.HITLPolicy != "" {
|
|
t.Fatalf("legacy queue must inherit: %+v", row)
|
|
}
|
|
}
|