@industry-theme/file-city-panel 0.5.60 → 0.5.62

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.
Files changed (35) hide show
  1. package/dist/index.d.ts +13 -3
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/panels/FileCitySequenceExplorerPanel/FileCitySequenceExplorer/FileCitySequenceExplorer.d.ts +6 -0
  4. package/dist/panels/FileCitySequenceExplorerPanel/FileCitySequenceExplorer/FileCitySequenceExplorer.d.ts.map +1 -1
  5. package/dist/panels/FileCitySequenceExplorerPanel/FileCitySequenceExplorer/styles.d.ts +1 -2
  6. package/dist/panels/FileCitySequenceExplorerPanel/FileCitySequenceExplorer/styles.d.ts.map +1 -1
  7. package/dist/panels/FileCitySequenceExplorerPanel/FileCitySequenceExplorerPanel.d.ts +5 -0
  8. package/dist/panels/FileCitySequenceExplorerPanel/FileCitySequenceExplorerPanel.d.ts.map +1 -1
  9. package/dist/panels/FileCityTrailExplorerPanel/FileCityTrailExplorerPanel.d.ts +23 -0
  10. package/dist/panels/FileCityTrailExplorerPanel/FileCityTrailExplorerPanel.d.ts.map +1 -0
  11. package/dist/panels/FileCityTrailExplorerPanel/buildSequenceViewInputs.d.ts +29 -0
  12. package/dist/panels/FileCityTrailExplorerPanel/buildSequenceViewInputs.d.ts.map +1 -0
  13. package/dist/panels/FileCityTrailExplorerPanel/cameraFraming.d.ts +42 -0
  14. package/dist/panels/FileCityTrailExplorerPanel/cameraFraming.d.ts.map +1 -0
  15. package/dist/panels/FileCityTrailExplorerPanel/index.d.ts +2 -0
  16. package/dist/panels/FileCityTrailExplorerPanel/index.d.ts.map +1 -0
  17. package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailDiffSnippetView.d.ts +45 -0
  18. package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailDiffSnippetView.d.ts.map +1 -0
  19. package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailLeaderLine.d.ts +39 -0
  20. package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailLeaderLine.d.ts.map +1 -0
  21. package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailMarkdownOverlay.d.ts +50 -0
  22. package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailMarkdownOverlay.d.ts.map +1 -0
  23. package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailSnippetView.d.ts +35 -0
  24. package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailSnippetView.d.ts.map +1 -0
  25. package/dist/panels/utils/styles.d.ts +22 -0
  26. package/dist/panels/utils/styles.d.ts.map +1 -0
  27. package/dist/panels.bundle.js +1904 -250
  28. package/dist/panels.bundle.js.map +1 -1
  29. package/dist/types/FileCityTrailExplorerPanel.d.ts +83 -0
  30. package/dist/types/FileCityTrailExplorerPanel.d.ts.map +1 -0
  31. package/dist/types/Trail.d.ts +508 -0
  32. package/dist/types/Trail.d.ts.map +1 -0
  33. package/dist/types/index.d.ts +2 -0
  34. package/dist/types/index.d.ts.map +1 -1
  35. package/package.json +1 -1
@@ -0,0 +1,83 @@
1
+ /**
2
+ * FileCityTrailExplorerPanel — actions, context, and slice data types.
3
+ *
4
+ * Mirrors the per-panel pattern of `FileCitySequenceExplorerPanel.ts`:
5
+ * actions are panel-private (not on the shared `PanelActions` umbrella),
6
+ * every slice and action is required, and "feature disabled" hosts
7
+ * permanently wire `data: null` to gate the corresponding UI.
8
+ *
9
+ * Context surface is intentionally narrower than the sequence panel:
10
+ * trails don't have scopes/areas (sequence-diagram authoring concepts)
11
+ * and v1 trails don't need the working-tree / commit affordances.
12
+ *
13
+ * See `docs/TRAIL_RENAME.md` for the medium design and
14
+ * `docs/EXPLORER_SHAREABLES.md` for the shared-vs-specific catalog.
15
+ */
16
+ import type { PanelActions as CorePanelActions, PanelComponentProps as CorePanelComponentProps, DataSlice } from '@principal-ade/panel-framework-core';
17
+ import type { FileTree } from '@principal-ai/repository-abstraction';
18
+ import type { TrailPayload, TrailNote, TrailNoteDraft } from './Trail';
19
+ import type { LineCountsSliceData } from './index';
20
+ /**
21
+ * Identifier for the repo this panel represents. The host's
22
+ * panel→repo-id registry uses this to decide which trail markers
23
+ * belong to this panel.
24
+ *
25
+ * `id` is what `TrailMarker.repo` references. The optional path / owner
26
+ * / name fields are host-private resolution hints (electron has an
27
+ * absolute filesystem `path`; web hosts have GitHub `owner`/`name`).
28
+ * Trails themselves never carry filesystem paths — those live on the
29
+ * panel's identifier, not on the payload.
30
+ */
31
+ export interface FileCityTrailExplorerRepository {
32
+ /**
33
+ * Stable repo id matching `TrailRepo.id` on payloads. The trail
34
+ * panel filters markers by this — only markers with `marker.repo`
35
+ * matching this id (or unspecified, when the trail is single-repo)
36
+ * highlight in this panel's city.
37
+ */
38
+ id: string;
39
+ path?: string | null;
40
+ owner?: string | null;
41
+ name?: string | null;
42
+ }
43
+ export interface FileCityTrailExplorerPanelContext {
44
+ /** Required, always-loaded — the panel cannot render without a tree. */
45
+ fileTree: DataSlice<FileTree>;
46
+ /** Per-file line counts for building heights. */
47
+ lineCounts: DataSlice<LineCountsSliceData | null>;
48
+ /**
49
+ * Active trail payload. Drives every overlay and the marker drawer.
50
+ * `data: null` means "no trail loaded" — the panel renders an empty
51
+ * state.
52
+ */
53
+ trail: DataSlice<TrailPayload | null>;
54
+ /** Repository identifier — not a slice. */
55
+ repository: FileCityTrailExplorerRepository | null;
56
+ }
57
+ export interface FileCityTrailExplorerPanelActions extends CorePanelActions {
58
+ /** Open a file in the host's active editor. */
59
+ openFile: (filePath: string, line?: number) => void;
60
+ /**
61
+ * Read a file's text content for snippet rendering. Path is
62
+ * repo-relative (`marker.sourcePath`); the host scopes the read to
63
+ * this panel's repo via its panel→repo-id registry.
64
+ *
65
+ * This is the v1 snippet resolver. The panel routes all snippet
66
+ * content through this action — never reads the filesystem directly
67
+ * — so future content sources (baked snippet content, historic
68
+ * fetches) plug in without changing the panel.
69
+ */
70
+ readFile: (path: string) => Promise<string>;
71
+ /**
72
+ * Persist a new note on the active trail. Returns the saved note
73
+ * (host fills id + timestamps), or `null` if the host couldn't
74
+ * persist.
75
+ */
76
+ createTrailNote: (payloadId: string, draft: TrailNoteDraft) => Promise<TrailNote | null>;
77
+ /** Update a note's body. Returns the updated note. */
78
+ updateTrailNote: (payloadId: string, noteId: string, body: string) => Promise<TrailNote | null>;
79
+ /** Delete a note. */
80
+ deleteTrailNote: (payloadId: string, noteId: string) => Promise<void>;
81
+ }
82
+ export type FileCityTrailExplorerPanelPropsTyped = CorePanelComponentProps<FileCityTrailExplorerPanelActions, FileCityTrailExplorerPanelContext>;
83
+ //# sourceMappingURL=FileCityTrailExplorerPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileCityTrailExplorerPanel.d.ts","sourceRoot":"","sources":["../../src/types/FileCityTrailExplorerPanel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,mBAAmB,IAAI,uBAAuB,EAC9C,SAAS,EACV,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAMnD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAMD,MAAM,WAAW,iCAAiC;IAChD,wEAAwE;IACxE,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAE9B,iDAAiD;IACjD,UAAU,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IAElD;;;;OAIG;IACH,KAAK,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAEtC,2CAA2C;IAC3C,UAAU,EAAE,+BAA+B,GAAG,IAAI,CAAC;CACpD;AAMD,MAAM,WAAW,iCAAkC,SAAQ,gBAAgB;IACzE,+CAA+C;IAC/C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpD;;;;;;;;;OASG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAK5C;;;;OAIG;IACH,eAAe,EAAE,CACf,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,cAAc,KAClB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAE/B,sDAAsD;IACtD,eAAe,EAAE,CACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAE/B,qBAAqB;IACrB,eAAe,EAAE,CACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAMD,MAAM,MAAM,oCAAoC,GAAG,uBAAuB,CACxE,iCAAiC,EACjC,iCAAiC,CAClC,CAAC"}
@@ -0,0 +1,508 @@
1
+ /**
2
+ * Trail types.
3
+ *
4
+ * Trails are a new authored-walkthrough medium that ships parallel to the
5
+ * existing sequence-diagram stack (`./SequenceDiagram.ts`). Trails do not
6
+ * read sequence-diagram payloads; sequence-diagram code does not read trail
7
+ * payloads. The only shared point of contact is the upstream
8
+ * `SequenceDiagramRenderer` from `@principal-ai/principal-view-react`,
9
+ * which the `views[].kind:'sequence'` renderer feeds at render time.
10
+ *
11
+ * See `docs/TRAIL_RENAME.md` for the full design — particularly the
12
+ * "Coexistence with sequence diagrams" and "Addressing markers across
13
+ * repos and time" sections.
14
+ *
15
+ * v1 ships:
16
+ * - `TrailPayload` shape, including the `repos[]` registry and provenance
17
+ * - `TrailMarker` content fields (sourcePath, snippet, description)
18
+ * - `TrailSliceSnippet` and `TrailDiffSnippet`
19
+ * - `TrailView` discriminated union (only `kind:'sequence'` has a registered
20
+ * renderer in v1; other kinds are declared so the schema is committed)
21
+ * - Notes anchored to marker ids (snippet anchors and markdown anchors)
22
+ *
23
+ * v1 explicitly does NOT ship (all non-breaking future additions):
24
+ * - Per-marker time pin (`marker.at`)
25
+ * - Baked slice content (`TrailSliceSnippet.contents`)
26
+ * - Two-sided historic diffs (`TrailDiffSnippet.oldRef` / `newRef`)
27
+ * - File-rename archeology for File City highlight
28
+ *
29
+ * Two consumer-side disciplines that are cheap now and expensive to
30
+ * retrofit (renderer-side, not schema-side):
31
+ * 1. `marker.sourcePath` resolves against the marker's repo at trail
32
+ * authoring time, not against "the working tree." V1 happens to read
33
+ * the working tree because no historic resolver exists yet, but the
34
+ * *contract* is "resolve against trail provenance."
35
+ * 2. `TrailSliceSnippet`'s contract is "line numbers index into a content
36
+ * source" — content source unspecified. Route content through a
37
+ * resolver, not direct fs reads.
38
+ */
39
+ import type { SequenceEdge } from '@principal-ai/principal-view-react';
40
+ /**
41
+ * One repo a trail touches. Carries portable identity (so a trail authored
42
+ * on machine A renders on machine B) and the commit it was authored
43
+ * against (provenance — recorded now, interpreted later).
44
+ *
45
+ * Filesystem paths are deliberately absent: hosts maintain their own
46
+ * private mapping from "open File City panel" → "which `TrailRepo.id`
47
+ * this panel represents." The schema never carries a producer-machine
48
+ * filesystem layout.
49
+ */
50
+ export interface TrailRepo {
51
+ /**
52
+ * Stable repo identity referenced by `TrailMarker.repo`. Producer
53
+ * choice — typically the human-friendly repo name (e.g. `auth-server`).
54
+ * See `docs/TRAIL_RENAME.md` open question on identity stability.
55
+ */
56
+ id: string;
57
+ /** Human label for picker UIs and overlays. */
58
+ name: string;
59
+ /**
60
+ * Remote location — meaningful on any machine. Optional because not
61
+ * every repo has a remote (private internal tools, throwaway local
62
+ * projects). When set, consumers can resolve historic content via the
63
+ * remote's API.
64
+ */
65
+ remote?: {
66
+ host: 'github' | 'gitlab' | 'bitbucket' | 'other';
67
+ owner: string;
68
+ name: string;
69
+ };
70
+ /**
71
+ * The commit this trail was authored against. Producers fill via
72
+ * `git rev-parse HEAD` at payload construction; consumers tolerate
73
+ * absence. v1 doesn't use this for content resolution (the working
74
+ * tree is the only resolver), but recording it now is what unlocks
75
+ * future historic-content features without bifurcating trail cohorts.
76
+ */
77
+ authoredAtSha?: string;
78
+ /**
79
+ * Branch/tag at author time — for human display ("authored on `main` at
80
+ * `abc1234`"). Not used for resolution; the sha is authoritative.
81
+ */
82
+ authoredAtRef?: string;
83
+ /**
84
+ * Future hydration baseline — the ref a future content-fetcher uses
85
+ * when no per-marker time pin is set. v1 consumers ignore this.
86
+ */
87
+ defaultRef?: string;
88
+ }
89
+ /**
90
+ * Single-file window over the marker's `sourcePath`. Line numbers index
91
+ * into the resolved content source.
92
+ *
93
+ * V1 content source is the working tree (resolved via a host-provided
94
+ * resolver — not a direct fs read). Future, non-breaking addition:
95
+ * `contents?: string` for durable archival trails that bake content at
96
+ * author time.
97
+ */
98
+ export interface TrailSliceSnippet {
99
+ kind: 'slice';
100
+ /** First line of the snippet (1-based, inclusive). */
101
+ startLine: number;
102
+ /** Last line of the snippet (1-based, inclusive). */
103
+ endLine: number;
104
+ /** Line to highlight as the focus point. Defaults to `startLine`. */
105
+ focusLine?: number;
106
+ /** Lines of context above/below the snippet. Defaults to 2. */
107
+ contextLines?: number;
108
+ }
109
+ /**
110
+ * Before/after view inline. Used by code-review walkthroughs where each
111
+ * marker represents a change region in a PR.
112
+ */
113
+ export interface TrailDiffSnippet {
114
+ kind: 'diff';
115
+ /** Pre-change file contents (full file or a pre-sliced window). */
116
+ oldContents: string;
117
+ /**
118
+ * Post-change file contents. When omitted, the renderer resolves the
119
+ * post-change content via the host's resolver and diffs against
120
+ * `oldContents`.
121
+ */
122
+ newContents?: string;
123
+ /**
124
+ * Snippet window (1-based, inclusive) applied to both sides before
125
+ * diffing. Producers must set this — derive from contents length when
126
+ * the snippet covers the whole file.
127
+ */
128
+ startLine: number;
129
+ /** 1-based, inclusive. */
130
+ endLine: number;
131
+ /** Line in the post-change window to call out (1-based). */
132
+ focusLine?: number;
133
+ /** Lines of unchanged context kept around the window. Defaults to 2. */
134
+ contextLines?: number;
135
+ /** Pierre rendering style. Defaults to `'unified'`. */
136
+ diffStyle?: 'unified' | 'split';
137
+ /** Syntax-highlighting hint (e.g. `'typescript'`, `'python'`). */
138
+ language?: string;
139
+ /**
140
+ * Forward-compat scaffolding for two-sided historic diffs. No producer
141
+ * sets this in v1; the field is declared so future consumers can
142
+ * resolve `oldContents`/`newContents` from a remote ref.
143
+ */
144
+ gitRef?: {
145
+ sha: string;
146
+ path: string;
147
+ branch?: string;
148
+ };
149
+ }
150
+ export type TrailMarkerSnippet = TrailSliceSnippet | TrailDiffSnippet;
151
+ /**
152
+ * One marker on a trail. Carries the *content* a reader consumes at this
153
+ * stop (sourcePath, snippet, description) — the *structure between
154
+ * markers* (lanes/edges/tree shape/etc.) lives on the matching `TrailView`
155
+ * block, not here.
156
+ *
157
+ * Marker ids are referenced by every view block, every note, and every
158
+ * edge. They must be stable across edits.
159
+ */
160
+ export interface TrailMarker {
161
+ /** Stable id referenced by views and notes. */
162
+ id: string;
163
+ /**
164
+ * Display label. Falls back to a view-derived name when omitted (e.g.
165
+ * the sequence view uses its `name` namespace).
166
+ */
167
+ label?: string;
168
+ /**
169
+ * Which `TrailRepo.id` this marker is anchored to. Defaults to
170
+ * `repos[0].id` when the trail has a single repo. Required when
171
+ * `payload.repos.length > 1`.
172
+ */
173
+ repo?: string;
174
+ /**
175
+ * Path within the marker's repo (repo-relative, never absolute). Drives
176
+ * the File City highlight + leader line + Pierre snippet drawer.
177
+ *
178
+ * Resolution contract: against the marker's repo at trail authoring
179
+ * time. V1 consumers happen to read the working tree because no
180
+ * historic resolver exists yet, but writing the contract this way
181
+ * means future historic resolution is a strict refinement.
182
+ */
183
+ sourcePath?: string;
184
+ /** Slice or diff snippet rendered inline in the panel's drawer. */
185
+ snippet?: TrailMarkerSnippet;
186
+ /**
187
+ * Markdown description surfaced in the left-edge overlay when the
188
+ * marker is selected. Provides the "why" alongside the snippet's
189
+ * "what."
190
+ */
191
+ description?: string;
192
+ }
193
+ /**
194
+ * Per-marker structural data for the sequence view. References a marker
195
+ * by id and carries the swimlane-renderer-specific fields (lane derivation
196
+ * via dotted namespace, participant override, move-event flag, type
197
+ * styling).
198
+ *
199
+ * The trail explorer panel constructs `SequenceEvent[]` inputs for the
200
+ * upstream `SequenceDiagramRenderer` by joining each `SequenceMarkerRef`
201
+ * with its `TrailMarker` at render time.
202
+ */
203
+ export interface SequenceMarkerRef {
204
+ /** Foreign key into `TrailPayload.markers[].id`. */
205
+ markerId: string;
206
+ /**
207
+ * Dotted, namespaced identifier the swimlane renderer uses to derive
208
+ * lanes (e.g. `auth.validation.started`). The first dotted segment
209
+ * becomes the default lane.
210
+ */
211
+ name: string;
212
+ /**
213
+ * Lane bucket override. For move events, this is the *target* lane.
214
+ * When unset, the lane derives from `name`.
215
+ */
216
+ participant?: string;
217
+ /** Whether this marker crosses participant boundaries (move event). */
218
+ moveEvent?: boolean;
219
+ /** Optional event type for styling. */
220
+ type?: string;
221
+ }
222
+ /** Layout knobs forwarded to the sequence renderer. */
223
+ export interface SequenceViewLayout {
224
+ /**
225
+ * Resolved namespaces in left-to-right order. Listed lanes are placed
226
+ * first; unlisted lanes fall back to first-marker order behind them.
227
+ * Unknown entries are ignored.
228
+ */
229
+ laneOrder?: string[];
230
+ }
231
+ /**
232
+ * Discriminated union of view blocks. The host's renderer registry maps
233
+ * each `kind` to a React component; the panel picks `views[0]` by
234
+ * default and exposes a toggle when more than one is present.
235
+ *
236
+ * v1 only registers a renderer for `kind:'sequence'`. The other kinds
237
+ * are declared so the schema is committed in code, but producers
238
+ * shipping v1 trails should ship `views: [{ kind: 'sequence', ... }]`.
239
+ *
240
+ * Each view references marker ids; first-class actor nodes that don't
241
+ * correspond to a marker (e.g. `User`, `Browser` in a sequence view)
242
+ * live in the view block as their own typed entries — see
243
+ * `SequenceViewActor`.
244
+ */
245
+ export type TrailView = TrailSequenceView | TrailLinearView | TrailGraphView | TrailTreeView | TrailTimelineView;
246
+ /** First-class actor in a sequence view that doesn't correspond to a marker. */
247
+ export interface SequenceViewActor {
248
+ /** Lane id — namespace string just like `SequenceMarkerRef.name`. */
249
+ name: string;
250
+ /** Display label; defaults to last namespace segment of `name`. */
251
+ label?: string;
252
+ }
253
+ /**
254
+ * Swimlane node-and-edge view. Same renderer as the existing
255
+ * sequence-diagram implementation (`SequenceDiagramRenderer` from
256
+ * `@principal-ai/principal-view-react`); only the inputs differ.
257
+ */
258
+ export interface TrailSequenceView {
259
+ kind: 'sequence';
260
+ /** Per-marker structural fields. Order in this array drives default render order. */
261
+ markers: SequenceMarkerRef[];
262
+ /** Edges between markers (by marker id). Reuses the upstream edge type. */
263
+ edges: SequenceEdge[];
264
+ /** Optional first-class actor lanes that don't correspond to markers. */
265
+ actors?: SequenceViewActor[];
266
+ /** Renderer layout knobs. */
267
+ layout?: SequenceViewLayout;
268
+ }
269
+ /**
270
+ * Linear list. v1 has no registered renderer; declared so producers can
271
+ * commit to a linear-only trail and a future linear renderer picks it
272
+ * up without schema changes.
273
+ */
274
+ export interface TrailLinearView {
275
+ kind: 'linear';
276
+ /**
277
+ * Marker ids in display order. When omitted, defaults to the order
278
+ * of `payload.markers[]`.
279
+ */
280
+ order?: string[];
281
+ }
282
+ /**
283
+ * Graph view — nodes and edges, free-form layout. v1 has no registered
284
+ * renderer; node/edge/layout shapes are intentionally `unknown` until
285
+ * a renderer claims the kind and commits to a contract.
286
+ */
287
+ export interface TrailGraphView {
288
+ kind: 'graph';
289
+ nodes: unknown[];
290
+ edges: unknown[];
291
+ layout?: unknown;
292
+ }
293
+ /**
294
+ * Tree view — parent/child relationships keyed by marker id. v1 has no
295
+ * registered renderer.
296
+ */
297
+ export interface TrailTreeView {
298
+ kind: 'tree';
299
+ /** `parent[childMarkerId]` = parent marker id, or `null` for roots. */
300
+ parent: Record<string, string | null>;
301
+ }
302
+ /**
303
+ * Timeline view — markers placed at ISO 8601 timestamps. v1 has no
304
+ * registered renderer.
305
+ */
306
+ export interface TrailTimelineView {
307
+ kind: 'timeline';
308
+ /** `at[markerId]` = ISO 8601 timestamp. */
309
+ at: Record<string, string>;
310
+ }
311
+ /**
312
+ * One disjoint line range covered by a slice anchor. Multi-range notes
313
+ * (e.g. a comment that spans two related code blocks) carry their own
314
+ * re-anchor fingerprints per range.
315
+ */
316
+ export interface TrailSliceRange {
317
+ /** 1-based absolute line in the source file (inclusive). */
318
+ startLine: number;
319
+ /** 1-based absolute line (inclusive). For single-line ranges, equals `startLine`. */
320
+ endLine: number;
321
+ /** `startLine`'s text at creation time — re-anchor fingerprint. */
322
+ startLineText: string;
323
+ /** `endLine`'s text at creation time. Equals `startLineText` for single-line ranges. */
324
+ endLineText: string;
325
+ }
326
+ export interface TrailSnippetSliceAnchor {
327
+ kind: 'slice';
328
+ /**
329
+ * One or more disjoint ranges this note covers. Multi-range notes show
330
+ * one indicator pill per range start; the side panel renders one
331
+ * thread.
332
+ */
333
+ ranges: TrailSliceRange[];
334
+ }
335
+ export interface TrailSnippetDiffAnchor {
336
+ kind: 'diff';
337
+ side: 'deletions' | 'additions';
338
+ lineNumber: number;
339
+ }
340
+ /**
341
+ * Note attached to a snippet line. Lives on `payload.notes` so persistence
342
+ * and broadcast piggyback on the existing payload path. Only the renderer
343
+ * or host can mutate notes — external HTTP POSTs of payloads must strip
344
+ * this field during validation.
345
+ */
346
+ export interface TrailSnippetNote {
347
+ id: string;
348
+ kind: 'snippet';
349
+ scope: {
350
+ markerId: string;
351
+ };
352
+ anchor: TrailSnippetSliceAnchor | TrailSnippetDiffAnchor;
353
+ body: string;
354
+ /** Required. Hosts identify the author at write time. */
355
+ author: string;
356
+ /** ISO 8601. */
357
+ createdAt: string;
358
+ /** ISO 8601 — equals `createdAt` until first edit. */
359
+ updatedAt: string;
360
+ }
361
+ /**
362
+ * Markdown notes anchor to a quoted span using the W3C text-quote
363
+ * selector (matches themed-markdown's `Annotation.anchor` shape).
364
+ */
365
+ export interface TrailMarkdownTextQuoteAnchor {
366
+ kind: 'text-quote';
367
+ exact: string;
368
+ prefix?: string;
369
+ suffix?: string;
370
+ }
371
+ /**
372
+ * Where in the markdown overlay the note is anchored. The overlay swaps
373
+ * between a marker's `description` and the payload's `summary`.
374
+ */
375
+ export type TrailMarkdownNoteScope = {
376
+ kind: 'description';
377
+ markerId: string;
378
+ } | {
379
+ kind: 'summary';
380
+ };
381
+ /**
382
+ * Note attached to a markdown selection in the left-edge overlay. Same
383
+ * persistence story as `TrailSnippetNote` — lives on `payload.notes`,
384
+ * mutated only via host actions, stripped from external HTTP payloads
385
+ * during validation.
386
+ */
387
+ export interface TrailMarkdownNote {
388
+ id: string;
389
+ kind: 'markdown';
390
+ scope: TrailMarkdownNoteScope;
391
+ anchor: TrailMarkdownTextQuoteAnchor;
392
+ body: string;
393
+ author: string;
394
+ createdAt: string;
395
+ updatedAt: string;
396
+ }
397
+ /** Discriminated union of all note variants. */
398
+ export type TrailNote = TrailSnippetNote | TrailMarkdownNote;
399
+ /**
400
+ * Payload accepted by note-creation endpoints. Server fills `id`,
401
+ * `createdAt`, `updatedAt`. Discriminated on `kind` so handlers can
402
+ * narrow without conditional fields.
403
+ */
404
+ export type TrailNoteDraft = Omit<TrailSnippetNote, 'id' | 'createdAt' | 'updatedAt'> | Omit<TrailMarkdownNote, 'id' | 'createdAt' | 'updatedAt'>;
405
+ /**
406
+ * Trail payload. The complete artifact a trail explorer panel renders.
407
+ *
408
+ * Producers build it with `id` and timestamps already set; storage layers
409
+ * reject payloads missing required fields.
410
+ */
411
+ export interface TrailPayload {
412
+ /**
413
+ * Stable id. Producers generate it (e.g. `crypto.randomUUID()`);
414
+ * storage layers reject payloads missing it.
415
+ */
416
+ id: string;
417
+ /**
418
+ * Title shown in the drawer header. Hosts derive a default
419
+ * (e.g. first marker label or `"Untitled trail"`) at construction time.
420
+ */
421
+ title: string;
422
+ /**
423
+ * Free-form categorization. Used by web-ade's share flow to tag
424
+ * payloads (e.g. `'pr-walkthrough'`, `'incident'`).
425
+ */
426
+ kind?: string;
427
+ /**
428
+ * Markdown summary of the whole trail. Surfaced in the left-edge
429
+ * overlay when no marker is selected; per-marker `description` takes
430
+ * over once the user picks a marker.
431
+ */
432
+ summary?: string;
433
+ /**
434
+ * Repo registry. Optional for single-repo trails, in which case the
435
+ * payload-level `authoredAt` shorthand provides provenance and markers
436
+ * omit `repo`. When `repos.length > 1`, every marker must set `repo`
437
+ * to a registered id.
438
+ *
439
+ * Consumers normalize both shapes (registry vs. shorthand) into a
440
+ * one-element registry at read time.
441
+ */
442
+ repos?: TrailRepo[];
443
+ /**
444
+ * Single-repo provenance shorthand. Set when `repos[]` is omitted
445
+ * (single-repo trails); ignored when `repos[]` is present.
446
+ */
447
+ authoredAt?: {
448
+ sha: string;
449
+ ref?: string;
450
+ };
451
+ /** Markers in default display order. */
452
+ markers: TrailMarker[];
453
+ /**
454
+ * One or more view blocks. v1 only registers a renderer for
455
+ * `kind:'sequence'`; producers should ship that view in v1 trails.
456
+ */
457
+ views: TrailView[];
458
+ /**
459
+ * User-authored notes anchored to markers. Mutated only via host
460
+ * endpoints; external HTTP POSTs must strip this field during
461
+ * validation.
462
+ */
463
+ notes?: TrailNote[];
464
+ /**
465
+ * ISO 8601 — set at payload creation. Storage layers reject payloads
466
+ * missing it.
467
+ */
468
+ createdAt: string;
469
+ /**
470
+ * ISO 8601 — equals `createdAt` until first edit, then bumped on
471
+ * every persist.
472
+ */
473
+ updatedAt: string;
474
+ }
475
+ /**
476
+ * Manifest entry that summarizes a trail without loading it. Only the
477
+ * fields any picker UI actually needs.
478
+ *
479
+ * Each host extends this with storage-specific fields (filesystem path /
480
+ * S3 ownership / GitHub repo id / etc.) on its own side. Do NOT add
481
+ * storage-coupled fields here — they're host-private by design.
482
+ */
483
+ export interface BaseTrailIndexEntry {
484
+ id: string;
485
+ /**
486
+ * Required. Hosts must provide a non-empty string — derive from the
487
+ * payload (e.g. first marker label) or fall back to a placeholder
488
+ * like `"Untitled trail"` at index time.
489
+ */
490
+ title: string;
491
+ /**
492
+ * Required. First ~200 chars of `payload.summary`, or empty string
493
+ * when the payload has no summary.
494
+ */
495
+ summaryPreview: string;
496
+ /** Number of markers. */
497
+ markerCount: number;
498
+ /** Repo names (for multi-repo trail badges in pickers). */
499
+ repoNames: string[];
500
+ /** Convenience: whether any marker carries a diff snippet. */
501
+ hasDiffSnippets: boolean;
502
+ /** ISO 8601. */
503
+ createdAt: string;
504
+ /** ISO 8601. */
505
+ updatedAt: string;
506
+ sizeBytes: number;
507
+ }
508
+ //# sourceMappingURL=Trail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Trail.d.ts","sourceRoot":"","sources":["../../src/types/Trail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAMvE;;;;;;;;;GASG;AACH,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;QAClD,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IAEF;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEv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G;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB;;;OAGG;IACH,UAAU,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAE3C,wCAAwC;IACxC,OAAO,EAAE,WAAW,EAAE,CAAC;IAEvB;;;OAGG;IACH,KAAK,EAAE,SAAS,EAAE,CAAC;IAEnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB,yBAAyB;IACzB,WAAW,EAAE,MAAM,CAAC;IAEpB,2DAA2D;IAC3D,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,8DAA8D;IAC9D,eAAe,EAAE,OAAO,CAAC;IAEzB,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;IAElB,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -199,6 +199,8 @@ export type { TextToSpeechAdapter, TTSState, TTSOptions, TTSEvent, TourAudioCont
199
199
  export type { ImageResolutionContext, } from './TourExtensions';
200
200
  export { resolveImageUrl } from './TourExtensions';
201
201
  export type { SequenceEvent, SequenceEdge, SliceSnippet, DiffSnippet, SequenceEventSnippet, FileCitySequenceEventDef, SequenceLayoutOptions, SliceRange, SnippetSliceAnchor, SnippetDiffAnchor, SequenceSnippetNote, MarkdownTextQuoteAnchor, MarkdownNoteScope, SequenceMarkdownNote, SequenceNote, SequenceNoteDraft, SequenceDiagramPayload, BaseSequenceDiagramIndexEntry, } from './SequenceDiagram';
202
+ export type { TrailRepo, TrailSliceSnippet, TrailDiffSnippet, TrailMarkerSnippet, TrailMarker, SequenceMarkerRef, SequenceViewActor, SequenceViewLayout, TrailView, TrailSequenceView, TrailLinearView, TrailGraphView, TrailTreeView, TrailTimelineView, TrailSliceRange, TrailSnippetSliceAnchor, TrailSnippetDiffAnchor, TrailSnippetNote, TrailMarkdownTextQuoteAnchor, TrailMarkdownNoteScope, TrailMarkdownNote, TrailNote, TrailNoteDraft, TrailPayload, BaseTrailIndexEntry, } from './Trail';
202
203
  export type { NodePosition, EventAttributeSchema, EventRecord, NamespaceRecord, ScopeRecord, ScopeWorkspace, AddScopeInput, AddNamespaceInput, AddPathToNamespaceInput, AddEventInput, } from './Scope';
203
204
  export type { LatestCommitFileEntry, LatestCommitSliceData, AreaWorkspace, FileCitySequenceExplorerRepository, FileCitySequenceExplorerPanelContext, AddToScopeActionInput, AddAreaActionInput, AddPathToAreaActionInput, FileCitySequenceExplorerPanelActions, FileCitySequenceExplorerPanelPropsTyped, } from './FileCitySequenceExplorerPanel';
205
+ export type { FileCityTrailExplorerRepository, FileCityTrailExplorerPanelContext, FileCityTrailExplorerPanelActions, FileCityTrailExplorerPanelPropsTyped, } from './FileCityTrailExplorerPanel';
204
206
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EAEV,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EAGf,cAAc,EACd,UAAU,EACV,iBAAiB,EAGjB,iBAAiB,EACjB,mBAAmB,EAGnB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,WAAW,EAGX,kBAAkB,EAClB,WAAW,EACX,mBAAmB,GACpB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,mBAAmB,IAAI,uB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qBAAqB,EACrB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAI3B,YAAY,EACV,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GACd,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,kCAAkC,EAClC,oCAAoC,EACpC,qBAAqB,EACrB,kBAAkB,EAClB,wBAAwB,EACxB,oCAAoC,EACpC,uCAAuC,GACxC,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EAEV,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EAGf,cAAc,EACd,UAAU,EACV,iBAAiB,EAGjB,iBAAiB,EACjB,mBAAmB,EAGnB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,WAAW,EAGX,kBAAkB,EAClB,WAAW,EACX,mBAAmB,GACpB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,mBAAmB,IAAI,uBAAuB,EAC9C,SAAS,EACV,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AACp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jB,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,4BAA4B,EAC5B,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,YAAY,EACZ,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAIjB,YAAY,EACV,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GACd,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,kCAAkC,EAClC,oCAAoC,EACpC,qBAAqB,EACrB,kBAAkB,EAClB,wBAAwB,EACxB,oCAAoC,EACpC,uCAAuC,GACxC,MAAM,iCAAiC,CAAC;AAIzC,YAAY,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,iCAAiC,EACjC,oCAAoC,GACrC,MAAM,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@industry-theme/file-city-panel",
3
- "version": "0.5.60",
3
+ "version": "0.5.62",
4
4
  "description": "File City visualization panel extension for @principal-ade/panel-framework-core",
5
5
  "type": "module",
6
6
  "main": "dist/panels.bundle.js",