feat: persist LinkSub topology references

This commit is contained in:
2026-08-02 23:41:16 -04:00
parent 9def4708ea
commit d3d88b297b
11 changed files with 69 additions and 26 deletions

View File

@@ -1,17 +1,7 @@
import type { SubshapeRef } from './types'
import type { SubshapeRef, TopoRefValue } from './types'
import { matchSubshapes, type SubshapeMatch, type SubshapeSignature } from './topologyNaming'
export type PersistedTopoRef = {
schemaVersion: 1
objectId: string
kind: SubshapeRef['kind']
persistentId: string
topologyVersion: number
generation: number
status: NonNullable<SubshapeRef['status']>
signature?: string
candidates?: string[]
}
export type PersistedTopoRef = TopoRefValue
export type TopoRefResolution = {
status: 'resolved' | 'ambiguous' | 'deleted'