@sentry/junior 0.191.0 → 0.192.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-HIWWBBKO.js → agent-hooks-3JY76L5X.js} +11 -11
- package/dist/api/activity.d.ts +3 -1
- package/dist/api/code/overview.d.ts +12 -0
- package/dist/api/locations/detail.d.ts +8 -0
- package/dist/api/locations/list.d.ts +5 -0
- package/dist/api/people/code.d.ts +6 -0
- package/dist/api/people/shared.d.ts +2 -0
- package/dist/api/reporting-window.d.ts +40 -0
- package/dist/api/schema/code.d.ts +14 -0
- package/dist/api/schema/conversation.d.ts +27 -0
- package/dist/api/schema/location.d.ts +15 -0
- package/dist/api/schema/person.d.ts +104 -0
- package/dist/api/schema/task.d.ts +15 -2
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +2 -2
- package/dist/api.js +536 -141
- package/dist/app.js +39 -39
- package/dist/{catalog-runtime-4OKH4265.js → catalog-runtime-5JVLWXRY.js} +4 -4
- package/dist/chat/tasks/execution-stats.d.ts +12 -0
- package/dist/{chunk-L4JLLS6C.js → chunk-3ADPXQBL.js} +1 -1
- package/dist/{chunk-VGYZ3YZM.js → chunk-3O2NXVGB.js} +21 -21
- package/dist/{chunk-CUUE5MGF.js → chunk-3UJSII43.js} +3 -3
- package/dist/{chunk-X6PQKQTY.js → chunk-47JFLZSF.js} +4 -4
- package/dist/{chunk-WBNQYVCM.js → chunk-4AFSQJD6.js} +2 -2
- package/dist/{chunk-NY5SJGJZ.js → chunk-4B4DQGOM.js} +22 -22
- package/dist/{chunk-AWFSSFAX.js → chunk-4CCQZHD3.js} +9 -9
- package/dist/{chunk-DP6H3U2X.js → chunk-4WIA45WD.js} +1 -1
- package/dist/{chunk-2JAWOTUT.js → chunk-4Z7B5WVV.js} +2 -2
- package/dist/{chunk-BVWC5DBM.js → chunk-5V4BAUCH.js} +1 -1
- package/dist/{chunk-QRNJO7DZ.js → chunk-6FCKJDKS.js} +1 -1
- package/dist/{chunk-7PYCRKQL.js → chunk-6LX6KV5C.js} +3 -3
- package/dist/{chunk-WCSXTDOL.js → chunk-7XO7PTZE.js} +1 -1
- package/dist/{chunk-S7NSFCCW.js → chunk-AKR6W7VV.js} +3 -3
- package/dist/{chunk-ZNFNGDT7.js → chunk-ARSUYYQG.js} +1 -1
- package/dist/{chunk-CCPOZMS4.js → chunk-BGLMT6KP.js} +3 -3
- package/dist/{chunk-NK3UEKAW.js → chunk-BUTAWPUV.js} +50 -8
- package/dist/{chunk-LOYTPSAK.js → chunk-EIYOABL4.js} +4 -4
- package/dist/{chunk-PFAZSRGR.js → chunk-EYIMZY5O.js} +114 -19
- package/dist/{chunk-BVYUIVXE.js → chunk-EYNUOZCN.js} +1 -1
- package/dist/{chunk-EQZUBYRF.js → chunk-FGYWKKTJ.js} +1 -1
- package/dist/{chunk-3PDR63SX.js → chunk-G4E5WIRL.js} +4 -4
- package/dist/{chunk-ZRN3OS7M.js → chunk-H5Q2T5VC.js} +1 -1
- package/dist/{chunk-SEIZ2XLD.js → chunk-IBO4YFFZ.js} +1 -1
- package/dist/{chunk-Q32BSFN4.js → chunk-ITTEDZGY.js} +8 -8
- package/dist/{chunk-5IMKUVMS.js → chunk-KR5F3QSP.js} +9 -9
- package/dist/{chunk-YNRLCUCB.js → chunk-LRTEMMCZ.js} +1 -1
- package/dist/{chunk-ZJRGWZZ2.js → chunk-MB2CTEPD.js} +74 -4
- package/dist/{chunk-WNIVCR74.js → chunk-OBN7UEQJ.js} +2 -2
- package/dist/{chunk-HNMRX2EN.js → chunk-PXP2M32M.js} +5 -5
- package/dist/{chunk-TH6LMEOW.js → chunk-PXUBRZBU.js} +1 -1
- package/dist/{chunk-6KISW5UY.js → chunk-PYVGXGKC.js} +2 -2
- package/dist/{chunk-UTL3MHPC.js → chunk-RC745GGZ.js} +8 -1
- package/dist/{chunk-RZS4F5K4.js → chunk-RWBZZMW6.js} +3 -3
- package/dist/{chunk-GQN4REF5.js → chunk-SSR6YBWW.js} +6 -6
- package/dist/{chunk-MFZOIKET.js → chunk-SZ2O3CGS.js} +1 -1
- package/dist/{chunk-KTW62MG5.js → chunk-VF3EDS7P.js} +6 -6
- package/dist/{chunk-CECRMPXJ.js → chunk-YE6DVM43.js} +8 -8
- package/dist/{chunk-K2NKG42A.js → chunk-YRWGJ5OO.js} +5 -5
- package/dist/{chunk-SGRL7NV6.js → chunk-Z4DNJI5F.js} +5 -5
- package/dist/cli/chat.js +33 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/db/schema/stats.d.ts +5 -1
- package/dist/{db-LG4ZEWA3.js → db-LRM6AP66.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-KI7ZRTOG.js → oauth-callback-server-BKCDVYVH.js} +29 -29
- package/dist/reporting-schema.d.ts +2 -2
- package/dist/{runner-K2EOSAZQ.js → runner-RUXGS3E6.js} +21 -21
- package/dist/{skills-JTRDFKMA.js → skills-DXP2RCJF.js} +5 -5
- package/dist/spawn-HH7GH7XT.js +42 -0
- package/dist/task-runner-H5I7R3LJ.js +36 -0
- package/dist/{validation-NBWURHAP.js → validation-F4KYLIF2.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-35TBEAUI.js → work-UUNMNSML.js} +21 -21
- package/dist/{worker-F762M6XM.js → worker-PMIJ5NLD.js} +10 -10
- package/package.json +5 -5
- package/dist/spawn-SRBETYCF.js +0 -42
- package/dist/task-runner-INQIQ4VF.js +0 -36
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BUTAWPUV.js";
|
|
17
17
|
import "./chunk-3Y47VMHV.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-AKR6W7VV.js";
|
|
19
|
+
import "./chunk-IBO4YFFZ.js";
|
|
20
|
+
import "./chunk-6LX6KV5C.js";
|
|
21
|
+
import "./chunk-LRTEMMCZ.js";
|
|
22
22
|
import "./chunk-GFBR4S3Q.js";
|
|
23
23
|
import "./chunk-VFUK3X5B.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-4Z7B5WVV.js";
|
|
25
25
|
import "./chunk-D4YV5TDV.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-EYNUOZCN.js";
|
|
27
|
+
import "./chunk-FGYWKKTJ.js";
|
|
28
|
+
import "./chunk-6FCKJDKS.js";
|
|
29
29
|
import "./chunk-CEMMLV5L.js";
|
|
30
30
|
import "./chunk-N7TMSOZH.js";
|
|
31
31
|
import "./chunk-DWPN6SCH.js";
|
|
32
32
|
import "./chunk-TXKUKMVO.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-3ADPXQBL.js";
|
|
34
34
|
import "./chunk-PEQXYSSE.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-ARSUYYQG.js";
|
|
36
36
|
export {
|
|
37
37
|
PluginHookDeniedError,
|
|
38
38
|
applyPluginFormatMarkdown,
|
package/dist/api/activity.d.ts
CHANGED
|
@@ -10,5 +10,7 @@ export declare const dailyConversationActivitySchema: z.ZodObject<{
|
|
|
10
10
|
export type DailyConversationActivity = z.infer<typeof dailyConversationActivitySchema>;
|
|
11
11
|
/** Build a zeroed day for conversation activity projections. */
|
|
12
12
|
export declare function emptyActivityDay(date: string): DailyConversationActivity;
|
|
13
|
-
/** Fill a fixed UTC
|
|
13
|
+
/** Fill a fixed UTC day window from sparse conversation activity. */
|
|
14
14
|
export declare function activityDays(days: Map<string, DailyConversationActivity>, nowMs: number, count: number): DailyConversationActivity[];
|
|
15
|
+
/** Fill the trailing UTC hour window from sparse conversation activity. */
|
|
16
|
+
export declare function activityHours(hours: Map<string, DailyConversationActivity>, nowMs: number): DailyConversationActivity[];
|
|
@@ -43,6 +43,12 @@ export declare function readCodeOverview(nowMs?: number): Promise<{
|
|
|
43
43
|
};
|
|
44
44
|
windowEnd: string;
|
|
45
45
|
windowStart: string;
|
|
46
|
+
activityHours?: {
|
|
47
|
+
closed: number;
|
|
48
|
+
created: number;
|
|
49
|
+
date: string;
|
|
50
|
+
merged: number;
|
|
51
|
+
}[] | undefined;
|
|
46
52
|
}>;
|
|
47
53
|
/**
|
|
48
54
|
* Read person-scoped code activity linked through conversation actors on
|
|
@@ -71,4 +77,10 @@ export declare function readPersonCodeOverview(args: {
|
|
|
71
77
|
};
|
|
72
78
|
windowEnd: string;
|
|
73
79
|
windowStart: string;
|
|
80
|
+
activityHours?: {
|
|
81
|
+
closed: number;
|
|
82
|
+
created: number;
|
|
83
|
+
date: string;
|
|
84
|
+
merged: number;
|
|
85
|
+
}[] | undefined;
|
|
74
86
|
}>;
|
|
@@ -115,4 +115,12 @@ export declare function readLocationDetail(locationId: string, options?: {
|
|
|
115
115
|
windowStart: string;
|
|
116
116
|
costUsd?: number | undefined;
|
|
117
117
|
tokens?: number | undefined;
|
|
118
|
+
activityHours?: {
|
|
119
|
+
active: number;
|
|
120
|
+
conversations: number;
|
|
121
|
+
date: string;
|
|
122
|
+
durationMs: number;
|
|
123
|
+
failed: number;
|
|
124
|
+
tokens?: number | undefined;
|
|
125
|
+
}[] | undefined;
|
|
118
126
|
} | undefined>;
|
|
@@ -34,4 +34,9 @@ export declare function readLocationDirectory(): Promise<{
|
|
|
34
34
|
source: "conversation_index";
|
|
35
35
|
windowEnd: string;
|
|
36
36
|
windowStart: string;
|
|
37
|
+
activityHours?: {
|
|
38
|
+
date: string;
|
|
39
|
+
privateConversations: number;
|
|
40
|
+
publicConversations: number;
|
|
41
|
+
}[] | undefined;
|
|
37
42
|
}>;
|
|
@@ -1319,6 +1319,8 @@ export declare function emptyTotals(): ActorTotalsReport;
|
|
|
1319
1319
|
export declare function emptyActivityDay(date: string): ActorActivityDayReport;
|
|
1320
1320
|
/** Fill the fixed people profile activity window from sparse day totals. */
|
|
1321
1321
|
export declare function activityDays(days: Map<string, ActorActivityDayReport>, nowMs: number): ActorActivityDayReport[];
|
|
1322
|
+
/** Fill the trailing 24-hour people activity window from sparse hour totals. */
|
|
1323
|
+
export declare function activityHours(hours: Map<string, ActorActivityDayReport>, nowMs: number): ActorActivityDayReport[];
|
|
1322
1324
|
/** Return deterministic stats rows for people API responses. */
|
|
1323
1325
|
export declare function statsItems(map: Map<string, ConversationStatsItem>): {
|
|
1324
1326
|
label: string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** Shared UTC day/hour windows for dashboard activity series. */
|
|
2
|
+
export declare const HOUR_MS: number;
|
|
3
|
+
export declare const DAY_MS: number;
|
|
4
|
+
export declare const WINDOW_HOURS = 24;
|
|
5
|
+
/** Start of the UTC calendar day containing `valueMs`. */
|
|
6
|
+
export declare function startOfUtcDay(valueMs: number): Date;
|
|
7
|
+
/** Start of the UTC hour containing `valueMs`. */
|
|
8
|
+
export declare function startOfUtcHour(valueMs: number): Date;
|
|
9
|
+
/** UTC day key `YYYY-MM-DD`. */
|
|
10
|
+
export declare function utcDayKey(value: Date | number): string;
|
|
11
|
+
/** UTC hour key `YYYY-MM-DDTHH`. */
|
|
12
|
+
export declare function utcHourKey(value: Date | number): string;
|
|
13
|
+
/** Inclusive trailing UTC day window ending on today's UTC day. */
|
|
14
|
+
export declare function trailingUtcDayWindow(nowMs: number, dayCount: number): {
|
|
15
|
+
end: Date;
|
|
16
|
+
start: Date;
|
|
17
|
+
};
|
|
18
|
+
/** Inclusive trailing UTC hour window ending on the current UTC hour. */
|
|
19
|
+
export declare function trailingUtcHourWindow(nowMs: number, hourCount?: number): {
|
|
20
|
+
end: Date;
|
|
21
|
+
start: Date;
|
|
22
|
+
};
|
|
23
|
+
/** Fill a fixed UTC day window from a sparse map. */
|
|
24
|
+
export declare function fillUtcDays<T>(args: {
|
|
25
|
+
count: number;
|
|
26
|
+
empty(date: string): T;
|
|
27
|
+
nowMs: number;
|
|
28
|
+
rows: Map<string, T>;
|
|
29
|
+
}): T[];
|
|
30
|
+
/** Fill a fixed UTC hour window from a sparse map. */
|
|
31
|
+
export declare function fillUtcHours<T>(args: {
|
|
32
|
+
count?: number;
|
|
33
|
+
empty(date: string): T;
|
|
34
|
+
nowMs: number;
|
|
35
|
+
rows: Map<string, T>;
|
|
36
|
+
}): T[];
|
|
37
|
+
/** PostgreSQL TO_CHAR pattern for UTC day keys. */
|
|
38
|
+
export declare const PG_UTC_DAY = "YYYY-MM-DD";
|
|
39
|
+
/** PostgreSQL TO_CHAR pattern for UTC hour keys. */
|
|
40
|
+
export declare const PG_UTC_HOUR = "YYYY-MM-DD\"T\"HH24";
|
|
@@ -9,6 +9,8 @@ export declare const codeChangeSummarySchema: z.ZodObject<{
|
|
|
9
9
|
mergeRate: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
open: z.ZodNumber;
|
|
11
11
|
}, z.core.$strict>;
|
|
12
|
+
/** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) activity bucket key. */
|
|
13
|
+
export declare const codeMetricBucketSchema: z.ZodString;
|
|
12
14
|
export declare const codeActivityDaySchema: z.ZodObject<{
|
|
13
15
|
closed: z.ZodNumber;
|
|
14
16
|
created: z.ZodNumber;
|
|
@@ -50,6 +52,12 @@ export declare const codeOverviewReportSchema: z.ZodObject<{
|
|
|
50
52
|
date: z.ZodString;
|
|
51
53
|
merged: z.ZodNumber;
|
|
52
54
|
}, z.core.$strict>>;
|
|
55
|
+
activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
closed: z.ZodNumber;
|
|
57
|
+
created: z.ZodNumber;
|
|
58
|
+
date: z.ZodString;
|
|
59
|
+
merged: z.ZodNumber;
|
|
60
|
+
}, z.core.$strict>>>;
|
|
53
61
|
changes: z.ZodArray<z.ZodObject<{
|
|
54
62
|
closedAt: z.ZodOptional<z.ZodString>;
|
|
55
63
|
id: z.ZodString;
|
|
@@ -100,6 +108,12 @@ export declare const codePersonReportSchema: z.ZodObject<{
|
|
|
100
108
|
date: z.ZodString;
|
|
101
109
|
merged: z.ZodNumber;
|
|
102
110
|
}, z.core.$strict>>;
|
|
111
|
+
activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
112
|
+
closed: z.ZodNumber;
|
|
113
|
+
created: z.ZodNumber;
|
|
114
|
+
date: z.ZodString;
|
|
115
|
+
merged: z.ZodNumber;
|
|
116
|
+
}, z.core.$strict>>>;
|
|
103
117
|
generatedAt: z.ZodString;
|
|
104
118
|
summary: z.ZodObject<{
|
|
105
119
|
closed: z.ZodNumber;
|
|
@@ -1429,6 +1429,8 @@ export declare const conversationStatsItemSchema: z.ZodObject<{
|
|
|
1429
1429
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1430
1430
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1431
1431
|
}, z.core.$strict>;
|
|
1432
|
+
/** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) activity bucket key. */
|
|
1433
|
+
export declare const conversationMetricBucketSchema: z.ZodString;
|
|
1432
1434
|
export declare const conversationMetricDaySchema: z.ZodObject<{
|
|
1433
1435
|
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1434
1436
|
conversations: z.ZodNumber;
|
|
@@ -1459,6 +1461,14 @@ export declare const guardianStatsSchema: z.ZodObject<{
|
|
|
1459
1461
|
deny: z.ZodNumber;
|
|
1460
1462
|
requests: z.ZodNumber;
|
|
1461
1463
|
}, z.core.$strict>>;
|
|
1464
|
+
metricHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1465
|
+
allow: z.ZodNumber;
|
|
1466
|
+
ask: z.ZodNumber;
|
|
1467
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1468
|
+
date: z.ZodString;
|
|
1469
|
+
deny: z.ZodNumber;
|
|
1470
|
+
requests: z.ZodNumber;
|
|
1471
|
+
}, z.core.$strict>>>;
|
|
1462
1472
|
requests: z.ZodNumber;
|
|
1463
1473
|
}, z.core.$strict>;
|
|
1464
1474
|
export declare const conversationStatsReportSchema: z.ZodObject<{
|
|
@@ -1481,6 +1491,14 @@ export declare const conversationStatsReportSchema: z.ZodObject<{
|
|
|
1481
1491
|
deny: z.ZodNumber;
|
|
1482
1492
|
requests: z.ZodNumber;
|
|
1483
1493
|
}, z.core.$strict>>;
|
|
1494
|
+
metricHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1495
|
+
allow: z.ZodNumber;
|
|
1496
|
+
ask: z.ZodNumber;
|
|
1497
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1498
|
+
date: z.ZodString;
|
|
1499
|
+
deny: z.ZodNumber;
|
|
1500
|
+
requests: z.ZodNumber;
|
|
1501
|
+
}, z.core.$strict>>>;
|
|
1484
1502
|
requests: z.ZodNumber;
|
|
1485
1503
|
}, z.core.$strict>;
|
|
1486
1504
|
metricDays: z.ZodArray<z.ZodObject<{
|
|
@@ -1492,6 +1510,15 @@ export declare const conversationStatsReportSchema: z.ZodObject<{
|
|
|
1492
1510
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1493
1511
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1494
1512
|
}, z.core.$strict>>;
|
|
1513
|
+
metricHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1514
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1515
|
+
conversations: z.ZodNumber;
|
|
1516
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1517
|
+
date: z.ZodString;
|
|
1518
|
+
durationMs: z.ZodNumber;
|
|
1519
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1520
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1521
|
+
}, z.core.$strict>>>;
|
|
1495
1522
|
locations: z.ZodArray<z.ZodObject<{
|
|
1496
1523
|
active: z.ZodNumber;
|
|
1497
1524
|
conversations: z.ZodNumber;
|
|
@@ -40,6 +40,8 @@ export declare const locationActorSummaryReportSchema: z.ZodObject<{
|
|
|
40
40
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
41
41
|
}, z.core.$strict>;
|
|
42
42
|
}, z.core.$strict>;
|
|
43
|
+
/** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) activity bucket key. */
|
|
44
|
+
export declare const locationMetricBucketSchema: z.ZodString;
|
|
43
45
|
export declare const locationActivityDayReportSchema: z.ZodObject<{
|
|
44
46
|
date: z.ZodString;
|
|
45
47
|
privateConversations: z.ZodNumber;
|
|
@@ -51,6 +53,11 @@ export declare const locationDirectoryReportSchema: z.ZodObject<{
|
|
|
51
53
|
privateConversations: z.ZodNumber;
|
|
52
54
|
publicConversations: z.ZodNumber;
|
|
53
55
|
}, z.core.$strict>>;
|
|
56
|
+
activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
57
|
+
date: z.ZodString;
|
|
58
|
+
privateConversations: z.ZodNumber;
|
|
59
|
+
publicConversations: z.ZodNumber;
|
|
60
|
+
}, z.core.$strict>>>;
|
|
54
61
|
generatedAt: z.ZodString;
|
|
55
62
|
locations: z.ZodArray<z.ZodObject<{
|
|
56
63
|
active: z.ZodNumber;
|
|
@@ -118,6 +125,14 @@ export declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
118
125
|
failed: z.ZodNumber;
|
|
119
126
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
120
127
|
}, z.core.$strict>>;
|
|
128
|
+
activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
129
|
+
active: z.ZodNumber;
|
|
130
|
+
conversations: z.ZodNumber;
|
|
131
|
+
date: z.ZodString;
|
|
132
|
+
durationMs: z.ZodNumber;
|
|
133
|
+
failed: z.ZodNumber;
|
|
134
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
}, z.core.$strict>>>;
|
|
121
136
|
actors: z.ZodArray<z.ZodObject<{
|
|
122
137
|
active: z.ZodNumber;
|
|
123
138
|
conversations: z.ZodNumber;
|
|
@@ -11,6 +11,8 @@ export declare const peopleConversationStatsItemSchema: z.ZodObject<{
|
|
|
11
11
|
durationMs: z.ZodNumber;
|
|
12
12
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
}, z.core.$strict>;
|
|
14
|
+
/** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) activity bucket key. */
|
|
15
|
+
export declare const peopleMetricBucketSchema: z.ZodString;
|
|
14
16
|
export declare const actorActivityDayReportSchema: z.ZodObject<{
|
|
15
17
|
active: z.ZodNumber;
|
|
16
18
|
conversations: z.ZodNumber;
|
|
@@ -33,6 +35,40 @@ export declare const actorTotalsReportSchema: z.ZodObject<{
|
|
|
33
35
|
failed: z.ZodNumber;
|
|
34
36
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
35
37
|
}, z.core.$strict>;
|
|
38
|
+
/** Spend and activity for one people-directory range, plus the prior period's spend. */
|
|
39
|
+
export declare const actorWindowMetricsSchema: z.ZodObject<{
|
|
40
|
+
conversations: z.ZodNumber;
|
|
41
|
+
costUsd: z.ZodNumber;
|
|
42
|
+
durationMs: z.ZodNumber;
|
|
43
|
+
priorCostUsd: z.ZodNumber;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
/** People-directory ranges that match the dashboard range control. */
|
|
46
|
+
export declare const actorDirectoryWindowsSchema: z.ZodObject<{
|
|
47
|
+
1: z.ZodObject<{
|
|
48
|
+
conversations: z.ZodNumber;
|
|
49
|
+
costUsd: z.ZodNumber;
|
|
50
|
+
durationMs: z.ZodNumber;
|
|
51
|
+
priorCostUsd: z.ZodNumber;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
7: z.ZodObject<{
|
|
54
|
+
conversations: z.ZodNumber;
|
|
55
|
+
costUsd: z.ZodNumber;
|
|
56
|
+
durationMs: z.ZodNumber;
|
|
57
|
+
priorCostUsd: z.ZodNumber;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
30: z.ZodObject<{
|
|
60
|
+
conversations: z.ZodNumber;
|
|
61
|
+
costUsd: z.ZodNumber;
|
|
62
|
+
durationMs: z.ZodNumber;
|
|
63
|
+
priorCostUsd: z.ZodNumber;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
90: z.ZodObject<{
|
|
66
|
+
conversations: z.ZodNumber;
|
|
67
|
+
costUsd: z.ZodNumber;
|
|
68
|
+
durationMs: z.ZodNumber;
|
|
69
|
+
priorCostUsd: z.ZodNumber;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
}, z.core.$strict>;
|
|
36
72
|
export declare const identifiedActorSchema: z.ZodObject<{
|
|
37
73
|
fullName: z.ZodOptional<z.ZodString>;
|
|
38
74
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
@@ -54,6 +90,32 @@ export declare const actorSummaryReportSchema: z.ZodObject<{
|
|
|
54
90
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
55
91
|
email: z.ZodString;
|
|
56
92
|
}, z.core.$strict>;
|
|
93
|
+
windows: z.ZodObject<{
|
|
94
|
+
1: z.ZodObject<{
|
|
95
|
+
conversations: z.ZodNumber;
|
|
96
|
+
costUsd: z.ZodNumber;
|
|
97
|
+
durationMs: z.ZodNumber;
|
|
98
|
+
priorCostUsd: z.ZodNumber;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
7: z.ZodObject<{
|
|
101
|
+
conversations: z.ZodNumber;
|
|
102
|
+
costUsd: z.ZodNumber;
|
|
103
|
+
durationMs: z.ZodNumber;
|
|
104
|
+
priorCostUsd: z.ZodNumber;
|
|
105
|
+
}, z.core.$strict>;
|
|
106
|
+
30: z.ZodObject<{
|
|
107
|
+
conversations: z.ZodNumber;
|
|
108
|
+
costUsd: z.ZodNumber;
|
|
109
|
+
durationMs: z.ZodNumber;
|
|
110
|
+
priorCostUsd: z.ZodNumber;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
90: z.ZodObject<{
|
|
113
|
+
conversations: z.ZodNumber;
|
|
114
|
+
costUsd: z.ZodNumber;
|
|
115
|
+
durationMs: z.ZodNumber;
|
|
116
|
+
priorCostUsd: z.ZodNumber;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
}, z.core.$strict>;
|
|
57
119
|
}, z.core.$strict>;
|
|
58
120
|
export declare const actorDirectoryReportSchema: z.ZodObject<{
|
|
59
121
|
activityDays: z.ZodArray<z.ZodObject<{
|
|
@@ -61,6 +123,11 @@ export declare const actorDirectoryReportSchema: z.ZodObject<{
|
|
|
61
123
|
conversations: z.ZodNumber;
|
|
62
124
|
date: z.ZodString;
|
|
63
125
|
}, z.core.$strict>>;
|
|
126
|
+
activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
127
|
+
activePeople: z.ZodNumber;
|
|
128
|
+
conversations: z.ZodNumber;
|
|
129
|
+
date: z.ZodString;
|
|
130
|
+
}, z.core.$strict>>>;
|
|
64
131
|
generatedAt: z.ZodString;
|
|
65
132
|
people: z.ZodArray<z.ZodObject<{
|
|
66
133
|
active: z.ZodNumber;
|
|
@@ -77,6 +144,32 @@ export declare const actorDirectoryReportSchema: z.ZodObject<{
|
|
|
77
144
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
78
145
|
email: z.ZodString;
|
|
79
146
|
}, z.core.$strict>;
|
|
147
|
+
windows: z.ZodObject<{
|
|
148
|
+
1: z.ZodObject<{
|
|
149
|
+
conversations: z.ZodNumber;
|
|
150
|
+
costUsd: z.ZodNumber;
|
|
151
|
+
durationMs: z.ZodNumber;
|
|
152
|
+
priorCostUsd: z.ZodNumber;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
7: z.ZodObject<{
|
|
155
|
+
conversations: z.ZodNumber;
|
|
156
|
+
costUsd: z.ZodNumber;
|
|
157
|
+
durationMs: z.ZodNumber;
|
|
158
|
+
priorCostUsd: z.ZodNumber;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
30: z.ZodObject<{
|
|
161
|
+
conversations: z.ZodNumber;
|
|
162
|
+
costUsd: z.ZodNumber;
|
|
163
|
+
durationMs: z.ZodNumber;
|
|
164
|
+
priorCostUsd: z.ZodNumber;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
90: z.ZodObject<{
|
|
167
|
+
conversations: z.ZodNumber;
|
|
168
|
+
costUsd: z.ZodNumber;
|
|
169
|
+
durationMs: z.ZodNumber;
|
|
170
|
+
priorCostUsd: z.ZodNumber;
|
|
171
|
+
}, z.core.$strict>;
|
|
172
|
+
}, z.core.$strict>;
|
|
80
173
|
}, z.core.$strict>>;
|
|
81
174
|
source: z.ZodLiteral<"conversation_index">;
|
|
82
175
|
windowEnd: z.ZodString;
|
|
@@ -92,6 +185,15 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
92
185
|
failed: z.ZodNumber;
|
|
93
186
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
94
187
|
}, z.core.$strict>>;
|
|
188
|
+
activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
|
+
active: z.ZodNumber;
|
|
190
|
+
conversations: z.ZodNumber;
|
|
191
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
date: z.ZodString;
|
|
193
|
+
durationMs: z.ZodNumber;
|
|
194
|
+
failed: z.ZodNumber;
|
|
195
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
}, z.core.$strict>>>;
|
|
95
197
|
generatedAt: z.ZodString;
|
|
96
198
|
locations: z.ZodArray<z.ZodObject<{
|
|
97
199
|
label: z.ZodString;
|
|
@@ -237,6 +339,8 @@ export type ConversationStatsItem = z.infer<typeof peopleConversationStatsItemSc
|
|
|
237
339
|
export type ActorActivityDayReport = z.infer<typeof actorActivityDayReportSchema>;
|
|
238
340
|
export type PeopleActivityDayReport = z.infer<typeof peopleActivityDayReportSchema>;
|
|
239
341
|
export type ActorTotalsReport = z.infer<typeof actorTotalsReportSchema>;
|
|
342
|
+
export type ActorWindowMetrics = z.infer<typeof actorWindowMetricsSchema>;
|
|
343
|
+
export type ActorDirectoryWindows = z.infer<typeof actorDirectoryWindowsSchema>;
|
|
240
344
|
export type ActorSummaryReport = z.infer<typeof actorSummaryReportSchema>;
|
|
241
345
|
export type ActorDirectoryReport = z.infer<typeof actorDirectoryReportSchema>;
|
|
242
346
|
export type ActorProfileReport = z.infer<typeof actorProfileReportSchema>;
|
|
@@ -112,7 +112,9 @@ export declare const taskSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
112
112
|
source: z.ZodString;
|
|
113
113
|
triggerAvailable: z.ZodBoolean;
|
|
114
114
|
}, z.core.$strict>], "kind">;
|
|
115
|
-
/**
|
|
115
|
+
/** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) execution bucket key. */
|
|
116
|
+
export declare const taskMetricBucketSchema: z.ZodString;
|
|
117
|
+
/** One UTC day/hour of completed task executions stacked by task type. */
|
|
116
118
|
export declare const taskExecutionDaySchema: z.ZodObject<{
|
|
117
119
|
date: z.ZodString;
|
|
118
120
|
event: z.ZodNumber;
|
|
@@ -124,6 +126,11 @@ export declare const taskListSchema: z.ZodObject<{
|
|
|
124
126
|
event: z.ZodNumber;
|
|
125
127
|
scheduled: z.ZodNumber;
|
|
126
128
|
}, z.core.$strict>>;
|
|
129
|
+
executionHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
130
|
+
date: z.ZodString;
|
|
131
|
+
event: z.ZodNumber;
|
|
132
|
+
scheduled: z.ZodNumber;
|
|
133
|
+
}, z.core.$strict>>>;
|
|
127
134
|
tasks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
128
135
|
createdAt: z.ZodString;
|
|
129
136
|
createdBy: z.ZodString;
|
|
@@ -205,7 +212,7 @@ export declare const taskExecutionSchema: z.ZodObject<{
|
|
|
205
212
|
}>;
|
|
206
213
|
title: z.ZodOptional<z.ZodString>;
|
|
207
214
|
}, z.core.$strict>;
|
|
208
|
-
/** One UTC day of terminal executions for a single task, stacked by status. */
|
|
215
|
+
/** One UTC day/hour of terminal executions for a single task, stacked by status. */
|
|
209
216
|
export declare const taskExecutionStatusDaySchema: z.ZodObject<{
|
|
210
217
|
blocked: z.ZodNumber;
|
|
211
218
|
completed: z.ZodNumber;
|
|
@@ -219,6 +226,12 @@ export declare const taskExecutionListSchema: z.ZodObject<{
|
|
|
219
226
|
date: z.ZodString;
|
|
220
227
|
failed: z.ZodNumber;
|
|
221
228
|
}, z.core.$strict>>;
|
|
229
|
+
executionHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
|
+
blocked: z.ZodNumber;
|
|
231
|
+
completed: z.ZodNumber;
|
|
232
|
+
date: z.ZodString;
|
|
233
|
+
failed: z.ZodNumber;
|
|
234
|
+
}, z.core.$strict>>>;
|
|
222
235
|
executions: z.ZodArray<z.ZodObject<{
|
|
223
236
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
224
237
|
executedAt: z.ZodString;
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type { AcceptedConversationMessage, ArchiveConversationBody, ArchiveConve
|
|
|
7
7
|
export { actorDirectoryReportSchema, actorProfileReportSchema, personalSpendReportSchema, personParamsSchema, } from "./schema/person";
|
|
8
8
|
export { locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, } from "./schema/location";
|
|
9
9
|
export type { LocationActorSummaryReport, LocationActivityDayReport, LocationDetailReport, LocationDirectoryReport, LocationSummaryReport, LocationParams, } from "./schema/location";
|
|
10
|
-
export type { ActorActivityDayReport, ActorDirectoryReport, ActorProfileReport, ActorSummaryReport, ActorTotalsReport, PeopleActivityDayReport, PersonalSpendReport, PersonParams, } from "./schema/person";
|
|
10
|
+
export type { ActorActivityDayReport, ActorDirectoryReport, ActorDirectoryWindows, ActorProfileReport, ActorSummaryReport, ActorTotalsReport, ActorWindowMetrics, PeopleActivityDayReport, PersonalSpendReport, PersonParams, } from "./schema/person";
|
|
11
11
|
export { apiErrorSchema } from "./schema/common";
|
|
12
12
|
export type { ApiError } from "./schema/common";
|
|
13
13
|
export { createPersonalTokenBodySchema, createdPersonalTokenSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, revokePersonalTokenResponseSchema, } from "./schema/personal-token";
|
package/dist/api/schema.js
CHANGED
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
workspaceParamsSchema,
|
|
66
66
|
workspaceRepoSchema,
|
|
67
67
|
workspaceSchema
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-EYIMZY5O.js";
|
|
69
69
|
import {
|
|
70
70
|
healthReportSchema,
|
|
71
71
|
pluginOperationalReportFeedSchema,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
runtimeInfoReportSchema,
|
|
78
78
|
skillReportSchema,
|
|
79
79
|
skillReportsSchema
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-RC745GGZ.js";
|
|
81
81
|
import "../chunk-PDO5BLNM.js";
|
|
82
82
|
import {
|
|
83
83
|
conversationTurnFailureCodeSchema,
|