coaia-visualizer 1.6.4 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/components/asterion-foundation-card.tsx +175 -0
- package/components/asterion-session-context-badge.tsx +122 -0
- package/components/asterion-session-lineage-card.tsx +119 -0
- package/components/chart-detail.tsx +3 -0
- package/components/metadata-projections.tsx +50 -16
- package/components/narrative-beats.tsx +16 -3
- package/index.tsx +13 -2
- package/lib/asterion-metadata.ts +673 -0
- package/lib/chart-editor.ts +5 -0
- package/lib/jsonl-parser.ts +5 -0
- package/lib/types.ts +97 -0
- package/next-env.d.ts +1 -1
- package/package.json +1 -1
package/lib/types.ts
CHANGED
|
@@ -57,6 +57,101 @@ export interface RiseSpecProjection {
|
|
|
57
57
|
nextOperations: string[]
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export interface FoundationMetadata {
|
|
61
|
+
packetRoot: string
|
|
62
|
+
foundationType: string
|
|
63
|
+
parentIssue: string
|
|
64
|
+
baselineIssue: string
|
|
65
|
+
inquiryIssue: string
|
|
66
|
+
protocolIssue: string
|
|
67
|
+
schemaIssue: string
|
|
68
|
+
visualizerIssue: string
|
|
69
|
+
expectedArtifacts: string[]
|
|
70
|
+
producedArtifacts: string[]
|
|
71
|
+
evaluationStatus: "expected" | "delegated" | "produced" | "evaluated"
|
|
72
|
+
privacyClass: "public-safe" | "private" | "mixed"
|
|
73
|
+
publicationStatus: "planned" | "draft" | "reviewed" | "published"
|
|
74
|
+
commitHandles: string[]
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface SessionLineageMetadata {
|
|
78
|
+
platform: string
|
|
79
|
+
parentChartId: string
|
|
80
|
+
sourceBeat: string
|
|
81
|
+
originalSessionId: string
|
|
82
|
+
branchSessionId: string
|
|
83
|
+
branchIndex: number
|
|
84
|
+
copiedMessageCount: number
|
|
85
|
+
branchPurpose: string
|
|
86
|
+
relatedIssues: string[]
|
|
87
|
+
handoffState: "requirements-created" | "implementation-ready" | "returned-to-parent"
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface SessionContextMetadata {
|
|
91
|
+
mode: string
|
|
92
|
+
setting: string
|
|
93
|
+
captureQuality: "complete" | "partial" | "noisy" | "transcript-only"
|
|
94
|
+
continuationKind: "new" | "resumption" | "branch-return" | "daily-chronicle"
|
|
95
|
+
privateChroniclePath?: string
|
|
96
|
+
handle?: string
|
|
97
|
+
publicSummaryAllowed: boolean
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface ParsedIssueReference {
|
|
101
|
+
key: string
|
|
102
|
+
raw: string
|
|
103
|
+
label: string
|
|
104
|
+
href?: string
|
|
105
|
+
owner?: string
|
|
106
|
+
repo?: string
|
|
107
|
+
number?: number
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface ArtifactDiffEntry {
|
|
111
|
+
artifact: string
|
|
112
|
+
expected: boolean
|
|
113
|
+
produced: boolean
|
|
114
|
+
status: "matched" | "missing" | "unexpected"
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface FoundationProjection {
|
|
118
|
+
foundation: Partial<FoundationMetadata>
|
|
119
|
+
warnings: MetadataWarning[]
|
|
120
|
+
issueRefs: ParsedIssueReference[]
|
|
121
|
+
artifactDiff: ArtifactDiffEntry[]
|
|
122
|
+
sourceRecords: string[]
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface SessionLineageBranchProjection {
|
|
126
|
+
metadata: Partial<SessionLineageMetadata>
|
|
127
|
+
sourceRecordName?: string
|
|
128
|
+
sourceRecordType?: string
|
|
129
|
+
warnings: MetadataWarning[]
|
|
130
|
+
relatedIssueRefs: ParsedIssueReference[]
|
|
131
|
+
sourceBeatAnchor?: string
|
|
132
|
+
sourceBeatExistsInChart: boolean
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface SessionLineageGroupProjection {
|
|
136
|
+
sourceBeat: string
|
|
137
|
+
sourceBeatAnchor?: string
|
|
138
|
+
sourceBeatExistsInChart: boolean
|
|
139
|
+
branches: SessionLineageBranchProjection[]
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface SessionLineageProjection {
|
|
143
|
+
branches: SessionLineageBranchProjection[]
|
|
144
|
+
groupedBranches: SessionLineageGroupProjection[]
|
|
145
|
+
warnings: MetadataWarning[]
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface SessionContextProjection {
|
|
149
|
+
context: Partial<SessionContextMetadata>
|
|
150
|
+
warnings: MetadataWarning[]
|
|
151
|
+
beatName: string
|
|
152
|
+
beatIndex: number
|
|
153
|
+
}
|
|
154
|
+
|
|
60
155
|
export interface Chart {
|
|
61
156
|
id: string
|
|
62
157
|
chartEntity: EntityRecord
|
|
@@ -68,6 +163,8 @@ export interface Chart {
|
|
|
68
163
|
level: number
|
|
69
164
|
parentChart?: string
|
|
70
165
|
relations: RelationRecord[]
|
|
166
|
+
foundationProjection?: FoundationProjection
|
|
167
|
+
sessionLineageProjection?: SessionLineageProjection
|
|
71
168
|
}
|
|
72
169
|
|
|
73
170
|
export interface ParsedData {
|
package/next-env.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="next" />
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
|
-
import "./.next/types/routes.d.ts";
|
|
3
|
+
import "./.next/dev/types/routes.d.ts";
|
|
4
4
|
|
|
5
5
|
// NOTE: This file should not be edited
|
|
6
6
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|