@sentry/junior 0.91.0 → 0.92.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/{agent-hooks-MXAF7RQL.js → agent-hooks-BYSSWCNW.js} +7 -7
- package/dist/api/people/list.d.ts +3 -3
- package/dist/api/people/list.js +15 -15
- package/dist/api/people/list.query.d.ts +2 -2
- package/dist/api/people/profile.d.ts +3 -3
- package/dist/api/people/profile.js +12 -12
- package/dist/api/people/profile.query.d.ts +2 -2
- package/dist/api/people/shared.d.ts +13 -13
- package/dist/api/people/types.d.ts +12 -12
- package/dist/api-reference.d.ts +1 -1
- package/dist/app.js +334 -263
- package/dist/{catalog-runtime-DXE6NXHT.js → catalog-runtime-NZHMSMYC.js} +2 -2
- package/dist/chat/actor.d.ts +75 -0
- package/dist/chat/agent/prompt.d.ts +2 -2
- package/dist/chat/agent/request.d.ts +13 -13
- package/dist/chat/agent/resume.d.ts +5 -4
- package/dist/chat/agent/tools.d.ts +2 -2
- package/dist/chat/capabilities/jr-rpc-command.d.ts +1 -1
- package/dist/chat/conversation-privacy.d.ts +11 -0
- package/dist/chat/conversations/sql/migrations.d.ts +1 -1
- package/dist/chat/conversations/sql/schema/conversations.d.ts +2 -19
- package/dist/chat/conversations/sql/schema.d.ts +2 -19
- package/dist/chat/conversations/sql/store.d.ts +3 -3
- package/dist/chat/conversations/store.d.ts +4 -4
- package/dist/chat/credentials/context.d.ts +4 -4
- package/dist/chat/logging.d.ts +2 -2
- package/dist/chat/no-reply.d.ts +1 -1
- package/dist/chat/oauth-flow.d.ts +1 -1
- package/dist/chat/pi/messages.d.ts +2 -2
- package/dist/chat/pi/transcript.d.ts +15 -0
- package/dist/chat/plugins/agent-hooks.d.ts +3 -3
- package/dist/chat/plugins/credential-hooks.d.ts +2 -8
- package/dist/chat/prompt.d.ts +3 -6
- package/dist/chat/runtime/reply-executor.d.ts +1 -1
- package/dist/chat/runtime/turn-input.d.ts +1 -1
- package/dist/chat/sandbox/egress/schemas.d.ts +2 -2
- package/dist/chat/sandbox/egress/session.d.ts +1 -1
- package/dist/chat/services/context-compaction.d.ts +1 -1
- package/dist/chat/services/conversation-memory.d.ts +1 -1
- package/dist/chat/services/mcp-auth-orchestration.d.ts +1 -1
- package/dist/chat/services/message-actor-identity.d.ts +4 -4
- package/dist/chat/services/pending-auth.d.ts +2 -2
- package/dist/chat/services/plugin-auth-orchestration.d.ts +1 -1
- package/dist/chat/services/provider-default-config.d.ts +1 -1
- package/dist/chat/services/subscribed-decision.d.ts +1 -1
- package/dist/chat/services/turn-result.d.ts +1 -1
- package/dist/chat/services/turn-session-record.d.ts +11 -8
- package/dist/chat/services/turn-thinking-level.d.ts +1 -1
- package/dist/chat/slack/assistant-thread/title.d.ts +1 -1
- package/dist/chat/slack/tools/canvas/create.d.ts +41 -1
- package/dist/chat/slack/tools/canvas/edit.d.ts +60 -1
- package/dist/chat/slack/tools/canvas/read.d.ts +60 -1
- package/dist/chat/slack/tools/canvas/write.d.ts +41 -1
- package/dist/chat/slack/tools/channel-list-messages.d.ts +45 -1
- package/dist/chat/slack/tools/context.d.ts +3 -3
- package/dist/chat/slack/tools/list/add-items.d.ts +42 -1
- package/dist/chat/slack/tools/list/create.d.ts +40 -1
- package/dist/chat/slack/tools/list/get-items.d.ts +40 -1
- package/dist/chat/slack/tools/list/update-item.d.ts +46 -1
- package/dist/chat/slack/tools/message-add-reaction.d.ts +40 -1
- package/dist/chat/slack/tools/send-message.d.ts +45 -1
- package/dist/chat/slack/tools/thread-read.d.ts +44 -1
- package/dist/chat/slack/tools/user-lookup.d.ts +45 -1
- package/dist/chat/slack/user.d.ts +3 -3
- package/dist/chat/slack/vision-context.d.ts +2 -2
- package/dist/chat/sql/schema.d.ts +2 -19
- package/dist/chat/state/conversation-details.d.ts +4 -4
- package/dist/chat/state/conversation.d.ts +1 -1
- package/dist/chat/state/session-log.d.ts +140 -26
- package/dist/chat/state/turn-session.d.ts +18 -5
- package/dist/chat/task-execution/slack-work.d.ts +2 -2
- package/dist/chat/task-execution/state.d.ts +4 -4
- package/dist/chat/tool-support/zod-tool.d.ts +16 -4
- package/dist/chat/tools/advisor/tool.d.ts +41 -1
- package/dist/chat/tools/definition.d.ts +10 -0
- package/dist/chat/tools/execute-tool.d.ts +41 -1
- package/dist/chat/tools/resource-events.d.ts +124 -3
- package/dist/chat/tools/runtime/report-progress.d.ts +40 -1
- package/dist/chat/tools/sandbox/bash.d.ts +41 -1
- package/dist/chat/tools/sandbox/edit-file.d.ts +44 -1
- package/dist/chat/tools/sandbox/find-files.d.ts +42 -1
- package/dist/chat/tools/sandbox/grep.d.ts +46 -1
- package/dist/chat/tools/sandbox/list-dir.d.ts +41 -1
- package/dist/chat/tools/sandbox/read-file.d.ts +42 -1
- package/dist/chat/tools/sandbox/write-file.d.ts +41 -1
- package/dist/chat/tools/search-tools.d.ts +102 -1
- package/dist/chat/tools/skill/call-mcp-tool.d.ts +10 -1
- package/dist/chat/tools/skill/load-skill.d.ts +40 -1
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +100 -1
- package/dist/chat/tools/system-time.d.ts +38 -1
- package/dist/chat/tools/types.d.ts +4 -4
- package/dist/chat/tools/web/fetch-tool.d.ts +41 -1
- package/dist/chat/tools/web/image-generate.d.ts +62 -1
- package/dist/chat/tools/web/search.d.ts +41 -1
- package/dist/{chunk-HXL2ZV74.js → chunk-3F54A3YM.js} +82 -11
- package/dist/{chunk-ZGDTBSQ7.js → chunk-7DVIELX3.js} +405 -136
- package/dist/{chunk-GCWD2VHP.js → chunk-7FS3K243.js} +284 -124
- package/dist/{chunk-AOISHLSF.js → chunk-ACJENBVF.js} +143 -20
- package/dist/{chunk-IRRMABQD.js → chunk-APIVR44P.js} +10 -10
- package/dist/{chunk-PIB4EOW6.js → chunk-BMQ5DXHV.js} +19 -72
- package/dist/{chunk-XP7F4LYB.js → chunk-BTH37NCU.js} +4 -4
- package/dist/{chunk-5GBUZI6M.js → chunk-H7KUZAMZ.js} +4 -4
- package/dist/{chunk-TYUXD3FN.js → chunk-MC4ZZE4Q.js} +1 -1
- package/dist/{chunk-QCKGI74V.js → chunk-N25HRI6B.js} +10 -10
- package/dist/{chunk-2S7M37HY.js → chunk-NIFONS4W.js} +86 -47
- package/dist/{chunk-ONFOWI2D.js → chunk-OJP53WIU.js} +16 -15
- package/dist/{chunk-NW7AXDA5.js → chunk-OZJXGX4U.js} +2 -2
- package/dist/{chunk-KC42JAAQ.js → chunk-PFXC67GJ.js} +3 -3
- package/dist/{chunk-ZUK7BL63.js → chunk-S6QKIGRM.js} +66 -54
- package/dist/{chunk-IX76WFJV.js → chunk-TF5VLGA7.js} +10 -10
- package/dist/{chunk-DACFZ5CI.js → chunk-VY7TVOIK.js} +16 -12
- package/dist/{chunk-AN2437E3.js → chunk-YTNPU7I2.js} +2 -2
- package/dist/{chunk-3MPOMK3K.js → chunk-YYBX2BD5.js} +61 -3
- package/dist/{chunk-RS6ANWVT.js → chunk-ZATRYQLR.js} +1 -1
- package/dist/cli/chat.js +20 -20
- package/dist/cli/check.js +3 -3
- package/dist/cli/plugins.js +9 -9
- package/dist/cli/snapshot-warmup.js +6 -6
- package/dist/cli/upgrade.js +9 -9
- package/dist/{db-CXI7PR5U.js → db-GCK43OO3.js} +4 -4
- package/dist/instrumentation.js +1 -1
- package/dist/reporting/conversations.d.ts +3 -3
- package/dist/reporting.d.ts +1 -1
- package/dist/reporting.js +48 -50
- package/dist/{runner-FKL3RAHA.js → runner-XWTFA26U.js} +20 -18
- package/dist/{validation-I7GD2YWS.js → validation-KYAWETI4.js} +3 -3
- package/package.json +6 -6
- package/dist/chat/requester.d.ts +0 -68
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-VY7TVOIK.js";
|
|
15
|
+
import "./chunk-OZJXGX4U.js";
|
|
16
16
|
import "./chunk-G3E7SCME.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-ZATRYQLR.js";
|
|
18
|
+
import "./chunk-NIFONS4W.js";
|
|
19
|
+
import "./chunk-3F54A3YM.js";
|
|
20
|
+
import "./chunk-YYBX2BD5.js";
|
|
21
21
|
import "./chunk-GHGPTPBL.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-S6QKIGRM.js";
|
|
23
23
|
import "./chunk-OB42YVAE.js";
|
|
24
24
|
import "./chunk-3DA7X2U3.js";
|
|
25
25
|
import "./chunk-LFLTJQVR.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActorDirectoryReport } from "./types";
|
|
2
2
|
/** Load the people list from verified user identities in SQL. */
|
|
3
|
-
export declare function readPeopleList(): Promise<
|
|
4
|
-
export type {
|
|
3
|
+
export declare function readPeopleList(): Promise<ActorDirectoryReport>;
|
|
4
|
+
export type { ActorDirectoryReport, ActorIdentity, ActorSummaryReport, ActorTotalsReport, } from "./types";
|
package/dist/api/people/list.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SAMPLE_LIMIT,
|
|
3
|
+
actorRows,
|
|
3
4
|
addSignals,
|
|
4
5
|
emptyTotals,
|
|
5
6
|
identityWithEmail,
|
|
6
7
|
mergeIdentity,
|
|
7
8
|
reportDate,
|
|
8
9
|
reportTime,
|
|
9
|
-
requesterRows,
|
|
10
10
|
signals,
|
|
11
11
|
summaryFromRow
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-APIVR44P.js";
|
|
13
|
+
import "../../chunk-NIFONS4W.js";
|
|
14
|
+
import "../../chunk-3F54A3YM.js";
|
|
15
|
+
import "../../chunk-YYBX2BD5.js";
|
|
16
16
|
import "../../chunk-GHGPTPBL.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-S6QKIGRM.js";
|
|
18
18
|
import "../../chunk-OB42YVAE.js";
|
|
19
19
|
import "../../chunk-3DA7X2U3.js";
|
|
20
20
|
import "../../chunk-LFLTJQVR.js";
|
|
@@ -31,41 +31,41 @@ function directoryItem(accumulator) {
|
|
|
31
31
|
firstSeenAt: new Date(accumulator.firstSeenMs).toISOString(),
|
|
32
32
|
hung: accumulator.hung,
|
|
33
33
|
lastSeenAt: new Date(accumulator.lastSeenMs).toISOString(),
|
|
34
|
-
|
|
34
|
+
actor: accumulator.actor,
|
|
35
35
|
runs: accumulator.runs
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
async function readPeopleListFromSql(options = {}) {
|
|
39
39
|
const nowMs = Date.now();
|
|
40
|
-
const { rows, truncated } = await
|
|
40
|
+
const { rows, truncated } = await actorRows(options);
|
|
41
41
|
const people = /* @__PURE__ */ new Map();
|
|
42
42
|
for (const row of rows) {
|
|
43
43
|
const summary = summaryFromRow(row, nowMs);
|
|
44
|
-
const
|
|
45
|
-
if (!
|
|
44
|
+
const actor = identityWithEmail(summary.actorIdentity);
|
|
45
|
+
if (!actor) continue;
|
|
46
46
|
const firstSeenMs = reportTime(summary.startedAt) ?? row.createdAt.getTime();
|
|
47
47
|
const lastSeenMs = reportTime(summary.lastSeenAt) ?? row.lastActivityAt.getTime();
|
|
48
48
|
const date = reportDate(summary.lastSeenAt);
|
|
49
|
-
const accumulator = people.get(
|
|
49
|
+
const accumulator = people.get(actor.email) ?? {
|
|
50
50
|
...emptyTotals(),
|
|
51
51
|
activeDates: /* @__PURE__ */ new Set(),
|
|
52
52
|
firstSeenMs,
|
|
53
53
|
lastSeenMs,
|
|
54
|
-
|
|
54
|
+
actor
|
|
55
55
|
};
|
|
56
|
-
accumulator.
|
|
56
|
+
accumulator.actor = mergeIdentity(accumulator.actor, actor);
|
|
57
57
|
accumulator.conversations += 1;
|
|
58
58
|
accumulator.runs += 1;
|
|
59
59
|
addSignals(accumulator, signals(summary));
|
|
60
60
|
accumulator.firstSeenMs = Math.min(accumulator.firstSeenMs, firstSeenMs);
|
|
61
61
|
accumulator.lastSeenMs = Math.max(accumulator.lastSeenMs, lastSeenMs);
|
|
62
62
|
if (date) accumulator.activeDates.add(date);
|
|
63
|
-
people.set(
|
|
63
|
+
people.set(actor.email, accumulator);
|
|
64
64
|
}
|
|
65
65
|
return {
|
|
66
66
|
generatedAt: new Date(nowMs).toISOString(),
|
|
67
67
|
people: [...people.values()].map(directoryItem).sort(
|
|
68
|
-
(left, right) => (reportTime(right.lastSeenAt) ?? 0) - (reportTime(left.lastSeenAt) ?? 0) || right.conversations - left.conversations || left.
|
|
68
|
+
(left, right) => (reportTime(right.lastSeenAt) ?? 0) - (reportTime(left.lastSeenAt) ?? 0) || right.conversations - left.conversations || left.actor.email.localeCompare(right.actor.email)
|
|
69
69
|
),
|
|
70
70
|
sampleLimit: SAMPLE_LIMIT,
|
|
71
71
|
sampleSize: rows.length,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActorDirectoryReport } from "./types";
|
|
2
2
|
import { type PeopleApiQueryOptions } from "./shared";
|
|
3
3
|
/** Load the people list from the configured or injected SQL database. */
|
|
4
|
-
export declare function readPeopleListFromSql(options?: PeopleApiQueryOptions): Promise<
|
|
4
|
+
export declare function readPeopleListFromSql(options?: PeopleApiQueryOptions): Promise<ActorDirectoryReport>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActorProfileReport } from "./types";
|
|
2
2
|
/** Load one person profile from verified user identities in SQL. */
|
|
3
|
-
export declare function readPeopleProfile(email: string): Promise<
|
|
4
|
-
export type { ConversationStatsItem, ConversationSummaryReport, PeopleConversationStatus, PeopleConversationSurface,
|
|
3
|
+
export declare function readPeopleProfile(email: string): Promise<ActorProfileReport>;
|
|
4
|
+
export type { ConversationStatsItem, ConversationSummaryReport, PeopleConversationStatus, PeopleConversationSurface, ActorActivityDayReport, ActorIdentity, ActorProfileReport, ActorTotalsReport, } from "./types";
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
RECENT_LIMIT,
|
|
4
4
|
SAMPLE_LIMIT,
|
|
5
5
|
activityDays,
|
|
6
|
+
actorRows,
|
|
6
7
|
addSignals,
|
|
7
8
|
emptyActivityDay,
|
|
8
9
|
emptyStatsItem,
|
|
@@ -12,18 +13,17 @@ import {
|
|
|
12
13
|
normalizeEmail,
|
|
13
14
|
reportDate,
|
|
14
15
|
reportTime,
|
|
15
|
-
requesterRows,
|
|
16
16
|
signals,
|
|
17
17
|
slackLocationLabel,
|
|
18
18
|
statsItems,
|
|
19
19
|
summaryFromRow,
|
|
20
20
|
surfaceLabel
|
|
21
|
-
} from "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
21
|
+
} from "../../chunk-APIVR44P.js";
|
|
22
|
+
import "../../chunk-NIFONS4W.js";
|
|
23
|
+
import "../../chunk-3F54A3YM.js";
|
|
24
|
+
import "../../chunk-YYBX2BD5.js";
|
|
25
25
|
import "../../chunk-GHGPTPBL.js";
|
|
26
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-S6QKIGRM.js";
|
|
27
27
|
import "../../chunk-OB42YVAE.js";
|
|
28
28
|
import "../../chunk-3DA7X2U3.js";
|
|
29
29
|
import "../../chunk-LFLTJQVR.js";
|
|
@@ -40,7 +40,7 @@ function emptyProfile(email, nowMs) {
|
|
|
40
40
|
generatedAt: new Date(nowMs).toISOString(),
|
|
41
41
|
locations: [],
|
|
42
42
|
recentConversations: [],
|
|
43
|
-
|
|
43
|
+
actor: { email },
|
|
44
44
|
sampleLimit: SAMPLE_LIMIT,
|
|
45
45
|
sampleSize: 0,
|
|
46
46
|
source: "conversation_index",
|
|
@@ -57,8 +57,8 @@ async function readPeopleProfileFromSql(email, options = {}) {
|
|
|
57
57
|
if (!normalizedEmail) {
|
|
58
58
|
return emptyProfile("", nowMs);
|
|
59
59
|
}
|
|
60
|
-
const { rows, truncated } = await
|
|
61
|
-
let
|
|
60
|
+
const { rows, truncated } = await actorRows(options, normalizedEmail);
|
|
61
|
+
let actor;
|
|
62
62
|
const totals = emptyTotals();
|
|
63
63
|
const activeDates = /* @__PURE__ */ new Set();
|
|
64
64
|
const days = /* @__PURE__ */ new Map();
|
|
@@ -67,9 +67,9 @@ async function readPeopleProfileFromSql(email, options = {}) {
|
|
|
67
67
|
const recentConversations = [];
|
|
68
68
|
for (const row of rows) {
|
|
69
69
|
const summary = summaryFromRow(row, nowMs);
|
|
70
|
-
const identity = identityWithEmail(summary.
|
|
70
|
+
const identity = identityWithEmail(summary.actorIdentity);
|
|
71
71
|
if (identity) {
|
|
72
|
-
|
|
72
|
+
actor = actor ? mergeIdentity(actor, identity) : identity;
|
|
73
73
|
}
|
|
74
74
|
recentConversations.push(summary);
|
|
75
75
|
const value = signals(summary);
|
|
@@ -110,7 +110,7 @@ async function readPeopleProfileFromSql(email, options = {}) {
|
|
|
110
110
|
recentConversations: recentConversations.sort(
|
|
111
111
|
(left, right) => (reportTime(right.lastSeenAt) ?? 0) - (reportTime(left.lastSeenAt) ?? 0) || right.conversationId.localeCompare(left.conversationId)
|
|
112
112
|
).slice(0, RECENT_LIMIT),
|
|
113
|
-
|
|
113
|
+
actor: actor ?? { email: normalizedEmail },
|
|
114
114
|
sampleLimit: SAMPLE_LIMIT,
|
|
115
115
|
sampleSize: rows.length,
|
|
116
116
|
source: "conversation_index",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActorProfileReport } from "./types";
|
|
2
2
|
import { type PeopleApiQueryOptions } from "./shared";
|
|
3
3
|
/** Load one person profile from the configured or injected SQL database. */
|
|
4
|
-
export declare function readPeopleProfileFromSql(email: string, options?: PeopleApiQueryOptions): Promise<
|
|
4
|
+
export declare function readPeopleProfileFromSql(email: string, options?: PeopleApiQueryOptions): Promise<ActorProfileReport>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JuniorDatabase } from "@/chat/sql/db";
|
|
2
|
-
import type { ConversationStatsItem, ConversationSummaryReport, PeopleConversationSurface,
|
|
2
|
+
import type { ConversationStatsItem, ConversationSummaryReport, PeopleConversationSurface, ActorActivityDayReport, ActorIdentity, ActorTotalsReport } from "./types";
|
|
3
3
|
export declare const SAMPLE_LIMIT = 5000;
|
|
4
4
|
export declare const RECENT_LIMIT = 25;
|
|
5
5
|
export declare const ACTIVITY_DAYS = 366;
|
|
@@ -23,11 +23,11 @@ export declare function slackLocationLabel(args: {
|
|
|
23
23
|
/** Project one SQL conversation row into the people API conversation summary. */
|
|
24
24
|
export declare function summaryFromRow(row: PeopleConversationRow, nowMs: number): ConversationSummaryReport;
|
|
25
25
|
/** Build a zeroed totals object for people API aggregations. */
|
|
26
|
-
export declare function emptyTotals():
|
|
26
|
+
export declare function emptyTotals(): ActorTotalsReport;
|
|
27
27
|
/** Build a zeroed labeled stats row for people API aggregations. */
|
|
28
28
|
export declare function emptyStatsItem(label: string): ConversationStatsItem;
|
|
29
29
|
/** Build a zeroed activity day for the people profile window. */
|
|
30
|
-
export declare function emptyActivityDay(date: string):
|
|
30
|
+
export declare function emptyActivityDay(date: string): ActorActivityDayReport;
|
|
31
31
|
/** Collapse a conversation summary status into aggregate counters. */
|
|
32
32
|
export declare function signals(summary: ConversationSummaryReport): {
|
|
33
33
|
active: boolean;
|
|
@@ -35,25 +35,25 @@ export declare function signals(summary: ConversationSummaryReport): {
|
|
|
35
35
|
hung: boolean;
|
|
36
36
|
};
|
|
37
37
|
/** Add status counters into a people API aggregate row. */
|
|
38
|
-
export declare function addSignals(target: Pick<
|
|
39
|
-
/** Return only
|
|
40
|
-
export declare function identityWithEmail(
|
|
38
|
+
export declare function addSignals(target: Pick<ActorTotalsReport, "active" | "failed" | "hung">, value: ReturnType<typeof signals>): void;
|
|
39
|
+
/** Return only actor identities that can be grouped by normalized email. */
|
|
40
|
+
export declare function identityWithEmail(actor: ActorIdentity | undefined): (ActorIdentity & {
|
|
41
41
|
email: string;
|
|
42
42
|
}) | undefined;
|
|
43
43
|
/** Preserve the first observed person fields while filling missing details. */
|
|
44
|
-
export declare function mergeIdentity(current:
|
|
44
|
+
export declare function mergeIdentity(current: ActorIdentity & {
|
|
45
45
|
email: string;
|
|
46
|
-
}, next:
|
|
46
|
+
}, next: ActorIdentity & {
|
|
47
47
|
email: string;
|
|
48
|
-
}):
|
|
48
|
+
}): ActorIdentity & {
|
|
49
49
|
email: string;
|
|
50
50
|
};
|
|
51
51
|
/** Fill the fixed people profile activity window from sparse day totals. */
|
|
52
|
-
export declare function activityDays(days: Map<string,
|
|
52
|
+
export declare function activityDays(days: Map<string, ActorActivityDayReport>, nowMs: number): ActorActivityDayReport[];
|
|
53
53
|
/** Return deterministic stats rows for people API responses. */
|
|
54
54
|
export declare function statsItems(map: Map<string, ConversationStatsItem>): ConversationStatsItem[];
|
|
55
|
-
/** Read verified
|
|
56
|
-
export declare function
|
|
55
|
+
/** Read verified actor conversation rows directly from the SQL identity model. */
|
|
56
|
+
export declare function actorRows(options?: PeopleApiQueryOptions, email?: string): Promise<{
|
|
57
57
|
rows: {
|
|
58
58
|
channelName: string | null;
|
|
59
59
|
conversationId: string;
|
|
@@ -73,4 +73,4 @@ export declare function requesterRows(options?: PeopleApiQueryOptions, email?: s
|
|
|
73
73
|
}[];
|
|
74
74
|
truncated: boolean;
|
|
75
75
|
}>;
|
|
76
|
-
export type PeopleConversationRow = Awaited<ReturnType<typeof
|
|
76
|
+
export type PeopleConversationRow = Awaited<ReturnType<typeof actorRows>>["rows"][number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type PeopleConversationStatus = "active" | "completed" | "failed" | "hung";
|
|
2
2
|
export type PeopleConversationSurface = "api" | "internal" | "scheduler" | "slack";
|
|
3
|
-
export interface
|
|
3
|
+
export interface ActorIdentity {
|
|
4
4
|
email?: string;
|
|
5
5
|
fullName?: string;
|
|
6
6
|
slackUserId?: string;
|
|
@@ -19,7 +19,7 @@ export interface ConversationSummaryReport {
|
|
|
19
19
|
channel?: string;
|
|
20
20
|
channelName?: string;
|
|
21
21
|
channelNameRedacted?: boolean;
|
|
22
|
-
|
|
22
|
+
actorIdentity?: ActorIdentity;
|
|
23
23
|
}
|
|
24
24
|
export interface ConversationStatsItem {
|
|
25
25
|
active: number;
|
|
@@ -31,7 +31,7 @@ export interface ConversationStatsItem {
|
|
|
31
31
|
runs: number;
|
|
32
32
|
tokens?: number;
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
34
|
+
export interface ActorActivityDayReport {
|
|
35
35
|
active: number;
|
|
36
36
|
conversations: number;
|
|
37
37
|
date: string;
|
|
@@ -41,7 +41,7 @@ export interface RequesterActivityDayReport {
|
|
|
41
41
|
runs: number;
|
|
42
42
|
tokens?: number;
|
|
43
43
|
}
|
|
44
|
-
export interface
|
|
44
|
+
export interface ActorTotalsReport {
|
|
45
45
|
active: number;
|
|
46
46
|
activeDays: number;
|
|
47
47
|
conversations: number;
|
|
@@ -51,34 +51,34 @@ export interface RequesterTotalsReport {
|
|
|
51
51
|
runs: number;
|
|
52
52
|
tokens?: number;
|
|
53
53
|
}
|
|
54
|
-
export interface
|
|
54
|
+
export interface ActorSummaryReport extends ActorTotalsReport {
|
|
55
55
|
firstSeenAt: string;
|
|
56
56
|
lastSeenAt: string;
|
|
57
|
-
|
|
57
|
+
actor: ActorIdentity & {
|
|
58
58
|
email: string;
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
export interface
|
|
61
|
+
export interface ActorDirectoryReport {
|
|
62
62
|
generatedAt: string;
|
|
63
|
-
people:
|
|
63
|
+
people: ActorSummaryReport[];
|
|
64
64
|
sampleLimit: number;
|
|
65
65
|
sampleSize: number;
|
|
66
66
|
source: "conversation_index";
|
|
67
67
|
truncated: boolean;
|
|
68
68
|
}
|
|
69
|
-
export interface
|
|
70
|
-
activityDays:
|
|
69
|
+
export interface ActorProfileReport {
|
|
70
|
+
activityDays: ActorActivityDayReport[];
|
|
71
71
|
generatedAt: string;
|
|
72
72
|
locations: ConversationStatsItem[];
|
|
73
73
|
recentConversations: ConversationSummaryReport[];
|
|
74
|
-
|
|
74
|
+
actor: ActorIdentity & {
|
|
75
75
|
email: string;
|
|
76
76
|
};
|
|
77
77
|
sampleLimit: number;
|
|
78
78
|
sampleSize: number;
|
|
79
79
|
source: "conversation_index";
|
|
80
80
|
surfaces: ConversationStatsItem[];
|
|
81
|
-
totals:
|
|
81
|
+
totals: ActorTotalsReport;
|
|
82
82
|
truncated: boolean;
|
|
83
83
|
windowEnd: string;
|
|
84
84
|
windowStart: string;
|
package/dist/api-reference.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export type { JuniorPluginInput, JuniorPluginSet, JuniorPluginSetOptions, } from
|
|
|
8
8
|
export type { PluginRunContext, PluginRunTranscriptEntry, PluginTaskContext, PluginTaskDefinition, PluginTasks, SubscribableResource, } from "@sentry/junior-plugin-api";
|
|
9
9
|
export { definePluginTool, pluginRunContextSchema, pluginRunTranscriptEntrySchema, } from "@sentry/junior-plugin-api";
|
|
10
10
|
export { createJuniorReporting } from "./reporting";
|
|
11
|
-
export type { PluginConversationStatus, PluginConversations, PluginConversationSummary, ConversationActivityReport, ConversationActivityStatus, ConversationFeed, ConversationReport, ConversationReportStatus, ConversationRunReport, ConversationSubagentActivityReport, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationToolActivityReport, ConversationUsage, HealthReport, JuniorReporting, PluginOperationalReport, PluginOperationalReportFeed, PluginPackageContentItemReport, PluginPackageContentReport, PluginReport,
|
|
11
|
+
export type { PluginConversationStatus, PluginConversations, PluginConversationSummary, ConversationActivityReport, ConversationActivityStatus, ConversationFeed, ConversationReport, ConversationReportStatus, ConversationRunReport, ConversationSubagentActivityReport, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationToolActivityReport, ConversationUsage, HealthReport, JuniorReporting, PluginOperationalReport, PluginOperationalReportFeed, PluginPackageContentItemReport, PluginPackageContentReport, PluginReport, ActorIdentity, RuntimeInfoReport, SkillReport, TranscriptMessage, TranscriptPart, TranscriptPartType, TranscriptRole, } from "./reporting";
|
|
12
12
|
export { juniorVercelConfig } from "./vercel";
|
|
13
13
|
export type { JuniorVercelConfigOptions } from "./vercel";
|