@principal-ai/principal-view-react 0.15.10 → 0.16.0
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/dist/components/session-events/SessionEventFeed.d.ts +32 -0
- package/dist/components/session-events/SessionEventFeed.d.ts.map +1 -0
- package/dist/components/session-events/SessionEventFeed.js +656 -0
- package/dist/components/session-events/SessionEventFeed.js.map +1 -0
- package/dist/components/session-events/index.d.ts +7 -0
- package/dist/components/session-events/index.d.ts.map +1 -0
- package/dist/components/session-events/index.js +6 -0
- package/dist/components/session-events/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/components/session-events/SessionEventFeed.tsx +1151 -0
- package/src/components/session-events/index.ts +13 -0
- package/src/index.ts +11 -0
- package/src/stories/ChangeTypeVisual.stories.tsx +67 -0
- package/src/stories/RawEventCards.stories.tsx +49 -0
- package/src/stories/data/opencode-session-raw-events.json +15609 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SessionEventFeed — a three-column diagnostic feed over one agent session's
|
|
3
|
+
* events, showing the raw V1 event → repo-normalized → accumulated (UI) pipeline
|
|
4
|
+
* for every row.
|
|
5
|
+
*
|
|
6
|
+
* Input rows match the trail-viewer's `SessionEventRow` wire shape:
|
|
7
|
+
* { seq, type, raw, normalized, accumulated }
|
|
8
|
+
* `raw` is the raw V1 event payload, `normalized` its repo-normalized form, and
|
|
9
|
+
* `accumulated` the AgentSessionEvent the File City UI actually renders (null
|
|
10
|
+
* when the accumulator drops the event).
|
|
11
|
+
*
|
|
12
|
+
* Dark diagnostic palette — intentionally self-contained rather than themed.
|
|
13
|
+
*/
|
|
14
|
+
import type { AgentSessionEvent } from '@principal-ai/agent-monitoring';
|
|
15
|
+
export interface SessionEventFeedRow {
|
|
16
|
+
seq: number;
|
|
17
|
+
type: string;
|
|
18
|
+
raw: unknown;
|
|
19
|
+
normalized?: Record<string, unknown>;
|
|
20
|
+
accumulated: AgentSessionEvent | null;
|
|
21
|
+
}
|
|
22
|
+
export interface SessionEventFeedProps {
|
|
23
|
+
title?: string;
|
|
24
|
+
rows: SessionEventFeedRow[];
|
|
25
|
+
}
|
|
26
|
+
export interface SessionEventFeedGroupedProps {
|
|
27
|
+
title?: string;
|
|
28
|
+
rows: SessionEventFeedRow[];
|
|
29
|
+
}
|
|
30
|
+
export declare function SessionEventFeed({ title, rows }: SessionEventFeedProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function SessionEventFeedGrouped({ title, rows }: SessionEventFeedGroupedProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=SessionEventFeed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionEventFeed.d.ts","sourceRoot":"","sources":["../../../src/components/session-events/SessionEventFeed.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EACV,iBAAiB,EAIlB,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,EAAE,CAAC;CAC7B;AAw0BD,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,qBAAqB,2CAyEtE;AAED,wBAAgB,uBAAuB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,4BAA4B,2CA0BpF"}
|