Files
Termind/Frameworks/TermindApplication/MemoryPersisting.swift
T
Kaede Akino 8d591dd0f6 Add global Hermes memory and skill package tools
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.
2026-09-17 07:54:04 +08:00

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
}