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

+11
View File
@@ -27,6 +27,17 @@ type CloudAgentExecution struct {
UpdatedAt time.Time
}
// CloudAgentPiSession stores Pi's native JSONL session independently from the
// bounded control checkpoint. Pi owns transcript and compaction semantics;
// Go only persists the opaque session snapshot and its revision.
type CloudAgentPiSession struct {
RunID string `gorm:"primaryKey;size:80"`
UserID string `gorm:"index;size:36;not null"`
SessionJSONL string `gorm:"column:session_jsonl;type:text;not null"`
Revision int64 `gorm:"not null;default:1"`
UpdatedAt time.Time
}
// Journal rows are append-only and commit in the same transaction as the run.
type CloudAgentEventRecord struct {
RunID string `gorm:"primaryKey;size:80"`