refactor(agent): Pi 会话运行时 - 接入原生 Agent 与 Skills 工具链

This commit is contained in:
ddcat666 committed 2026-09-29 08:21:11 +08:00
1 parent f9b8c5a43e
commit 387d3562ad
69 files changed
+11460 -207

No files matched your search

+4 -1
View File
@@ -11,7 +11,7 @@ import (
"gorm.io/gorm"
)
const CurrentSchemaVersion int64 = 41
const CurrentSchemaVersion int64 = 42
const baselineSchemaChecksum = "sha256:open-ai-canvas-schema-v1-20260830"
const schemaMigrationAppliedAtIndexChecksum = "sha256:schema-migrations-applied-at-index-v2-20260830"
@@ -139,6 +139,9 @@ var schemaMigrations = []migration{
{version: 41, name: "resource_thumbnail", checksum: resourceThumbnailChecksum, apply: func(tx *gorm.DB) error {
return tx.AutoMigrate(&model.Resource{})
}},
{version: 42, name: "cloud_agent_pi_sessions", checksum: "sha256:cloud-agent-pi-sessions-v42-20260928", apply: func(tx *gorm.DB) error {
return tx.AutoMigrate(&model.CloudAgentPiSession{})
}},
}
func migratePrefixedIDSequenceReconcile(tx *gorm.DB) error {
+1
View File
@@ -17,6 +17,7 @@ import (
func Models() []any {
return []any{
&model.CloudAgentExecution{},
&model.CloudAgentPiSession{},
&model.CloudAgentEventRecord{},
&model.CloudAgentMessageRecord{},
&model.CloudAgentCanvasMutation{},