Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
42 lines
1.6 KiB
Go
42 lines
1.6 KiB
Go
// Package projection preserves the historical daemon import path for the
|
|
// canonical activity projection contract. New consumers should import
|
|
// store-sqlite/canonical directly.
|
|
package projection
|
|
|
|
import canonical "github.com/tutti-os/tutti/packages/agent/store-sqlite/canonical"
|
|
|
|
// Deprecated: use canonical.SessionSnapshot.
|
|
type SessionSnapshot = canonical.SessionSnapshot
|
|
|
|
// Deprecated: use canonical.SessionStateReport.
|
|
type SessionStateReport = canonical.SessionStateReport
|
|
|
|
// Deprecated: use canonical.SessionProjection.
|
|
type SessionProjection = canonical.SessionProjection
|
|
|
|
// Deprecated: use canonical.MessageSnapshot.
|
|
type MessageSnapshot = canonical.MessageSnapshot
|
|
|
|
// Deprecated: use canonical.MessageUpdate.
|
|
type MessageUpdate = canonical.MessageUpdate
|
|
|
|
func ProjectSessionState(existing SessionSnapshot, hasExisting bool, report SessionStateReport, nowUnixMS int64) SessionProjection {
|
|
return canonical.ProjectSessionState(existing, hasExisting, report, nowUnixMS)
|
|
}
|
|
|
|
func ProjectMessageUpdate(existing MessageSnapshot, hasExisting bool, update MessageUpdate, version uint64, nowUnixMS int64) (MessageSnapshot, bool) {
|
|
return canonical.ProjectMessageUpdate(existing, hasExisting, update, version, nowUnixMS)
|
|
}
|
|
|
|
func MergeMessageStatus(existing, incoming string) string {
|
|
return canonical.MergeMessageStatus(existing, incoming)
|
|
}
|
|
|
|
func IsTerminalMessageStatus(status string) bool {
|
|
return canonical.IsTerminalMessageStatus(status)
|
|
}
|
|
|
|
func CanonicalSessionStatus(lifecycleStatus, currentPhase string) string {
|
|
return canonical.CanonicalSessionStatus(lifecycleStatus, currentPhase)
|
|
}
|