@sentry/junior 0.96.0 → 0.97.1
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/{agent-hooks-5URSMY3O.js → agent-hooks-XSUIVRQS.js} +8 -6
- package/dist/{reporting → api}/conversations/activity.d.ts +1 -1
- package/dist/api/conversations/detail-projection.d.ts +10 -0
- package/dist/api/conversations/detail.d.ts +3 -0
- package/dist/api/conversations/detail.query.d.ts +3 -0
- package/dist/api/conversations/list.d.ts +3 -0
- package/dist/api/conversations/list.query.d.ts +94 -0
- package/dist/api/conversations/projection.d.ts +14 -0
- package/dist/api/conversations/schema.d.ts +683 -0
- package/dist/{reporting → api}/conversations/shared.d.ts +1 -5
- package/dist/api/conversations/stats.d.ts +3 -0
- package/dist/api/conversations/stats.query.d.ts +3 -0
- package/dist/api/conversations/subagent.d.ts +3 -0
- package/dist/{reporting → api}/conversations/transcript.d.ts +4 -4
- package/dist/api/people/list.d.ts +1 -2
- package/dist/api/people/list.query.d.ts +3 -4
- package/dist/api/people/profile.d.ts +1 -2
- package/dist/api/people/profile.query.d.ts +3 -4
- package/dist/api/people/schema.d.ts +193 -0
- package/dist/api/people/shared.d.ts +31 -9
- package/dist/api/schema.d.ts +20 -0
- package/dist/api/schema.js +50 -0
- package/dist/api-reference.d.ts +4 -3
- package/dist/api.d.ts +3 -0
- package/dist/api.js +156 -0
- package/dist/app.d.ts +1 -4
- package/dist/app.js +101 -367
- package/dist/build/virtual-config.d.ts +2 -2
- package/dist/{catalog-runtime-MSMAYYIK.js → catalog-runtime-PFHVMHDR.js} +3 -2
- package/dist/chat/agent/resume.d.ts +3 -1
- package/dist/chat/agent/tools.d.ts +2 -1
- package/dist/chat/config.d.ts +1 -8
- package/dist/chat/conversations/history.d.ts +241 -27
- package/dist/chat/conversations/legacy-advisor-session.d.ts +7 -0
- package/dist/chat/conversations/legacy-import.d.ts +2 -2
- package/dist/chat/conversations/projection.d.ts +19 -3
- package/dist/chat/conversations/sql/legacy-history-import.d.ts +1 -1
- package/dist/chat/conversations/sql/store.d.ts +15 -9
- package/dist/chat/conversations/store.d.ts +9 -4
- package/dist/chat/model-profile.d.ts +14 -0
- package/dist/chat/pi/transcript.d.ts +5 -3
- package/dist/chat/resource-events/store.d.ts +2 -2
- package/dist/chat/services/context-compaction.d.ts +15 -0
- package/dist/chat/services/turn-result.d.ts +1 -0
- package/dist/chat/services/turn-session-record.d.ts +6 -6
- package/dist/chat/state/turn-session.d.ts +16 -5
- package/dist/chat/task-execution/store.d.ts +2 -2
- package/dist/chat/tools/handoff/tool.d.ts +45 -0
- package/dist/chat/tools/types.d.ts +7 -2
- package/dist/chat/usage.d.ts +25 -25
- package/dist/{chunk-RITD7E5L.js → chunk-35BNLDOJ.js} +338 -577
- package/dist/{chunk-PMNN6ST4.js → chunk-3ECW2K2O.js} +7 -2
- package/dist/{chunk-5C6XTTFI.js → chunk-3F4OPKGF.js} +89 -55
- package/dist/chunk-3V7OFJZC.js +264 -0
- package/dist/chunk-4ZNGQH7C.js +25 -0
- package/dist/{chunk-S5KZ5LPG.js → chunk-5HLDPVYS.js} +14 -447
- package/dist/{chunk-DZENG5ML.js → chunk-6U26PYI5.js} +24 -14
- package/dist/chunk-AUUCAFDE.js +546 -0
- package/dist/{chunk-6APU57E6.js → chunk-B3IT5END.js} +41 -260
- package/dist/chunk-CEA3A3UA.js +86 -0
- package/dist/{chunk-YDT7SNCN.js → chunk-D5KZYS4T.js} +1 -1
- package/dist/{chunk-YDVEH3SB.js → chunk-EEZCY5WX.js} +78 -28
- package/dist/{chunk-2NAZZPPS.js → chunk-EOWXRY5E.js} +1 -1
- package/dist/{chunk-GQ3GK22G.js → chunk-FBHZJFHI.js} +2 -2
- package/dist/{chunk-CZEX6KIQ.js → chunk-G3E7SCME.js} +0 -23
- package/dist/chunk-GUAP3H7O.js +319 -0
- package/dist/{chunk-BYZWPRJA.js → chunk-H66UCBPW.js} +6 -4
- package/dist/{chunk-L7CDEIVJ.js → chunk-LMJPRYHP.js} +4 -2
- package/dist/chunk-LUAE4MGW.js +199 -0
- package/dist/{chunk-GY34VGP5.js → chunk-LVA4I4H7.js} +3 -1
- package/dist/chunk-LVUKF5CE.js +63 -0
- package/dist/{chunk-AAZXTVJT.js → chunk-NG2AV7IB.js} +2 -72
- package/dist/chunk-ON6YKIQ7.js +260 -0
- package/dist/chunk-PDO5BLNM.js +22 -0
- package/dist/chunk-QNVHH5PU.js +20 -0
- package/dist/{chunk-P3YFQLEN.js → chunk-T533JLM3.js} +8 -10
- package/dist/chunk-UAMKJPDF.js +11 -0
- package/dist/chunk-VFH4ZKZT.js +66 -0
- package/dist/{chunk-UKHVMPX5.js → chunk-WGXMTFNU.js} +15 -17
- package/dist/{chunk-MNTINMWR.js → chunk-WJOSZOON.js} +184 -300
- package/dist/chunk-WTYEKPXU.js +451 -0
- package/dist/{chunk-IYM2SIVG.js → chunk-XIRPQQVE.js} +605 -363
- package/dist/cli/chat.js +24 -21
- package/dist/cli/check.js +4 -3
- package/dist/cli/init.js +12 -0
- package/dist/cli/plugins.js +12 -9
- package/dist/cli/snapshot-warmup.js +8 -6
- package/dist/cli/upgrade.js +265 -137
- package/dist/db/db.d.ts +4 -0
- package/dist/db/schema/conversations.d.ts +128 -0
- package/dist/db/schema.d.ts +129 -60
- package/dist/{db-2D6RMG67.js → db-BWXYIKFQ.js} +3 -3
- package/dist/detail-GA6NXWQJ.js +43 -0
- package/dist/discovery-RMHYSRL7.js +43 -0
- package/dist/handlers/health.d.ts +3 -0
- package/dist/instrumentation.js +1 -1
- package/dist/{legacy-import-VZ2MEGP7.js → legacy-import-3NQJVGQL.js} +4 -4
- package/dist/{api/people/list.js → list-A3WFRIYX.js} +26 -16
- package/dist/list-UXJI5Q5X.js +27 -0
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -1
- package/dist/plugin-conversations-DDNGC35A.js +36 -0
- package/dist/{api/people/profile.js → profile-4RYDXWTF.js} +33 -18
- package/dist/reporting/plugin-conversations.d.ts +3 -0
- package/dist/reporting-schema.d.ts +140 -0
- package/dist/reporting.d.ts +12 -81
- package/dist/{runner-JZBRQP4F.js → runner-JALSYH2P.js} +17 -12
- package/dist/skills-MAZXZ2KE.js +26 -0
- package/dist/stats-XKXH3PTY.js +217 -0
- package/dist/subagent-TZ55XY37.js +48 -0
- package/dist/usage-schema.d.ts +25 -0
- package/dist/{validation-6XOOQGME.js → validation-FMEAEKCY.js} +4 -3
- package/migrations/0000_initial.sql +115 -0
- package/migrations/0001_conversation_metrics.sql +4 -0
- package/migrations/README.md +12 -30
- package/migrations/meta/0000_snapshot.json +1 -33
- package/migrations/meta/0001_snapshot.json +972 -0
- package/migrations/meta/_journal.json +9 -2
- package/package.json +13 -17
- package/dist/api/people/types.d.ts +0 -85
- package/dist/chat/advisor-request.d.ts +0 -4
- package/dist/chat/conversations/sql/migrations.d.ts +0 -22
- package/dist/chat/tools/advisor/session-store.d.ts +0 -9
- package/dist/chat/tools/advisor/tool.d.ts +0 -72
- package/dist/chunk-RAIB6WSG.js +0 -142
- package/dist/chunk-WM6KHPBQ.js +0 -48
- package/dist/db/schema/migrations.d.ts +0 -58
- package/dist/reporting/conversations/context.d.ts +0 -8
- package/dist/reporting/conversations/details.d.ts +0 -6
- package/dist/reporting/conversations/index.d.ts +0 -4
- package/dist/reporting/conversations/statistics.d.ts +0 -4
- package/dist/reporting/conversations/summaries.d.ts +0 -20
- package/dist/reporting/conversations/types.d.ts +0 -191
- package/dist/reporting/conversations.d.ts +0 -1
- package/dist/reporting.js +0 -1155
|
@@ -11,12 +11,14 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-5HLDPVYS.js";
|
|
15
|
+
import "./chunk-WTYEKPXU.js";
|
|
16
|
+
import "./chunk-EOWXRY5E.js";
|
|
17
|
+
import "./chunk-35BNLDOJ.js";
|
|
18
|
+
import "./chunk-G3E7SCME.js";
|
|
19
|
+
import "./chunk-4ZNGQH7C.js";
|
|
20
|
+
import "./chunk-EEZCY5WX.js";
|
|
21
|
+
import "./chunk-LVA4I4H7.js";
|
|
20
22
|
import "./chunk-B7PUBQQM.js";
|
|
21
23
|
import "./chunk-I35CTGPO.js";
|
|
22
24
|
import "./chunk-OB42YVAE.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentStepEntry, StoredAgentStep } from "@/chat/conversations/history";
|
|
2
2
|
import type { PiMessage } from "@/chat/pi/messages";
|
|
3
|
-
import type { ConversationActivityReport, ConversationActivityStatus, ConversationSubagentActivityReport } from "./
|
|
3
|
+
import type { ConversationActivityReport, ConversationActivityStatus, ConversationSubagentActivityReport } from "./schema";
|
|
4
4
|
/**
|
|
5
5
|
* Build the current-run activity timeline from durable agent steps.
|
|
6
6
|
*
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Conversation } from "@/chat/conversations/store";
|
|
2
|
+
import type { ConversationDetailReport, ConversationSubagentTranscriptReport } from "./schema";
|
|
3
|
+
/** Build one conversation REST detail from durable SQL records. */
|
|
4
|
+
export declare function buildConversationDetail(args: {
|
|
5
|
+
conversation: Conversation;
|
|
6
|
+
durationMs: number;
|
|
7
|
+
usage: ConversationDetailReport["cumulativeUsage"];
|
|
8
|
+
}): Promise<ConversationDetailReport>;
|
|
9
|
+
/** Build one child-agent REST detail from durable SQL history. */
|
|
10
|
+
export declare function buildConversationSubagent(conversation: Conversation, subagentId: string): Promise<ConversationSubagentTranscriptReport>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { Conversation } from "@/chat/conversations/store";
|
|
2
|
+
import type { JuniorDatabase } from "@/db/db";
|
|
3
|
+
import type { ConversationFeed } from "./schema";
|
|
4
|
+
declare function conversationRows(db: JuniorDatabase, limit: number): Promise<{
|
|
5
|
+
conversation: {
|
|
6
|
+
conversationId: string;
|
|
7
|
+
schemaVersion: number;
|
|
8
|
+
source: import("@/chat/conversations/store").ConversationSource | null;
|
|
9
|
+
originType: string | null;
|
|
10
|
+
originId: string | null;
|
|
11
|
+
originRunId: string | null;
|
|
12
|
+
destinationId: string | null;
|
|
13
|
+
destination: {
|
|
14
|
+
platform: "slack";
|
|
15
|
+
teamId: string;
|
|
16
|
+
channelId: string;
|
|
17
|
+
} | {
|
|
18
|
+
platform: "local";
|
|
19
|
+
conversationId: string;
|
|
20
|
+
} | null;
|
|
21
|
+
actorIdentityId: string | null;
|
|
22
|
+
creatorIdentityId: string | null;
|
|
23
|
+
credentialSubjectIdentityId: string | null;
|
|
24
|
+
actor: {
|
|
25
|
+
email?: string | undefined;
|
|
26
|
+
fullName?: string | undefined;
|
|
27
|
+
platform?: "slack" | undefined;
|
|
28
|
+
slackUserId?: string | undefined;
|
|
29
|
+
slackUserName?: string | undefined;
|
|
30
|
+
teamId?: string | undefined;
|
|
31
|
+
} | null;
|
|
32
|
+
channelName: string | null;
|
|
33
|
+
title: string | null;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
lastActivityAt: Date;
|
|
36
|
+
updatedAt: Date;
|
|
37
|
+
executionUpdatedAt: Date | null;
|
|
38
|
+
executionStatus: import("@/chat/conversations/store").ConversationStatus;
|
|
39
|
+
runId: string | null;
|
|
40
|
+
lastCheckpointAt: Date | null;
|
|
41
|
+
lastEnqueuedAt: Date | null;
|
|
42
|
+
parentConversationId: string | null;
|
|
43
|
+
transcriptPurgedAt: Date | null;
|
|
44
|
+
durationMs: number;
|
|
45
|
+
usage: {
|
|
46
|
+
inputTokens?: number | undefined;
|
|
47
|
+
outputTokens?: number | undefined;
|
|
48
|
+
cachedInputTokens?: number | undefined;
|
|
49
|
+
cacheCreationTokens?: number | undefined;
|
|
50
|
+
reasoningTokens?: number | undefined;
|
|
51
|
+
totalTokens?: number | undefined;
|
|
52
|
+
cost?: {
|
|
53
|
+
input?: number | undefined;
|
|
54
|
+
output?: number | undefined;
|
|
55
|
+
cacheRead?: number | undefined;
|
|
56
|
+
cacheWrite?: number | undefined;
|
|
57
|
+
total?: number | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
} | null;
|
|
60
|
+
executionDurationMs: number;
|
|
61
|
+
executionUsage: {
|
|
62
|
+
inputTokens?: number | undefined;
|
|
63
|
+
outputTokens?: number | undefined;
|
|
64
|
+
cachedInputTokens?: number | undefined;
|
|
65
|
+
cacheCreationTokens?: number | undefined;
|
|
66
|
+
reasoningTokens?: number | undefined;
|
|
67
|
+
totalTokens?: number | undefined;
|
|
68
|
+
cost?: {
|
|
69
|
+
input?: number | undefined;
|
|
70
|
+
output?: number | undefined;
|
|
71
|
+
cacheRead?: number | undefined;
|
|
72
|
+
cacheWrite?: number | undefined;
|
|
73
|
+
total?: number | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
} | null;
|
|
76
|
+
};
|
|
77
|
+
destinationVisibility: import("../../db/schema/destinations").JuniorDestinationVisibility | null;
|
|
78
|
+
identityDisplayName: string | null;
|
|
79
|
+
identityEmail: string | null;
|
|
80
|
+
identityHandle: string | null;
|
|
81
|
+
identityProvider: string | null;
|
|
82
|
+
identitySubjectId: string | null;
|
|
83
|
+
identityTenantId: string | null;
|
|
84
|
+
}[]>;
|
|
85
|
+
type ConversationRow = Awaited<ReturnType<typeof conversationRows>>[number];
|
|
86
|
+
/** Read one normalized conversation record directly from its SQL row. */
|
|
87
|
+
export declare function readConversationRecordFromSql(conversationId: string): Promise<{
|
|
88
|
+
conversation: Conversation;
|
|
89
|
+
durationMs: number;
|
|
90
|
+
usage: ConversationRow["conversation"]["usage"];
|
|
91
|
+
} | undefined>;
|
|
92
|
+
/** Build the dashboard conversation feed directly from durable SQL rows. */
|
|
93
|
+
export declare function readConversationFeedFromSql(limit?: number): Promise<ConversationFeed>;
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Conversation as StoredConversation } from "@/chat/conversations/store";
|
|
2
|
+
import type { ConversationSummaryReport, ConversationSurface, ConversationUsage } from "./schema";
|
|
3
|
+
/** Build the privacy-safe title shared by summary and detail reports. */
|
|
4
|
+
export declare function titleFromConversation(args: {
|
|
5
|
+
conversation: StoredConversation;
|
|
6
|
+
surface: ConversationSurface;
|
|
7
|
+
}): string;
|
|
8
|
+
/** Project one durable conversation and its SQL metrics into the REST summary. */
|
|
9
|
+
export declare function conversationSummaryFromStoredConversation(args: {
|
|
10
|
+
conversation: StoredConversation;
|
|
11
|
+
durationMs: number;
|
|
12
|
+
nowMs: number;
|
|
13
|
+
usage?: ConversationUsage;
|
|
14
|
+
}): ConversationSummaryReport;
|