Files
Termind/Frameworks/TermindPersistence/PersistentSkillPackage.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

20 lines
557 B
Swift

import AgentKit
import Foundation
import SwiftData
/// Additive backing keeps the published PersistentAgentSkill schema unchanged.
@Model
public final class PersistentSkillPackage {
@Attribute(.unique) public var skillID: UUID = UUID()
public var data = Data()
public init(skillID: UUID, package: AgentSkillPackage) throws {
self.skillID = skillID
data = try JSONEncoder().encode(package)
}
public func value() throws -> AgentSkillPackage {
try JSONDecoder().decode(AgentSkillPackage.self, from: data)
}
}