Files
luma/Sources/LumaCore/AddressAnnotations.swift
Ole André Vadla Ravnås 22fce67575 core: Add AddressNote model and persistence
Threads anchored to an address, each with a chain of messages
(user/assistant/system). Notes carry editors[], messages carry
a single immutable author. rebuildAddressAnnotations folds note
counts into the gutter so the UI can render breadcrumbs.
2026-05-18 00:25:58 +02:00

28 lines
708 B
Swift

import Foundation
public struct InstrumentAddressDecoration: Identifiable, Hashable, Sendable {
public let id: UUID
public let help: String?
public init(id: UUID = UUID(), help: String?) {
self.id = id
self.help = help
}
}
public struct AddressAnnotation: Sendable {
public var decorations: [InstrumentAddressDecoration] = []
public var tracerHookID: UUID? = nil
public var noteCount: Int = 0
public init(
decorations: [InstrumentAddressDecoration] = [],
tracerHookID: UUID? = nil,
noteCount: Int = 0
) {
self.decorations = decorations
self.tracerHookID = tracerHookID
self.noteCount = noteCount
}
}