Add opt-in GRDB memory with frozen conversation snapshots, background learning, session search, and a user-only Destroy action on both platforms. Persist and synchronize complete skill packages with the new AgentKit management tools. Pin signed AgentKit 0.12.3 and GRDB 7.11.1. Add the V18 package migration, regression coverage, bilingual UI snapshots, and architecture records. Validation: AgentKit and iOS suites, focused macOS skills/memory/architecture/localization tests, Swift formatting, and Chinese localization checks passed. Full macOS runs exposed intermittent existing waveform-rendering and metrics-timing failures.
17 lines
784 B
Swift
17 lines
784 B
Swift
import AgentKit
|
|
import Foundation
|
|
|
|
public nonisolated protocol MemoryPersisting: AgentMemoryAccessing {
|
|
func snapshot(for conversationID: UUID) async throws -> String
|
|
func replaceHistory(_ conversations: [StoredAgentConversation]) async throws
|
|
func rebuildHistoryIndex() async throws
|
|
func lastReviewedMessage(_ conversationID: UUID) async throws -> UUID?
|
|
func markReviewed(_ messageID: UUID, conversationID: UUID) async throws
|
|
func applyReview(
|
|
_ operations: [AgentMemoryOperation], expected: AgentMemoryState, messageID: UUID, conversationID: UUID
|
|
) async throws -> AgentMemoryState?
|
|
func replaceTarget(_ target: AgentMemoryTarget, text: String) async throws -> AgentMemoryState
|
|
func close() async throws
|
|
func destroy() async throws
|
|
}
|