@sentry/junior 0.128.1 → 0.130.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-IWQNFJMS.js → agent-hooks-LJHLLMFC.js} +9 -9
- package/dist/api/schema/task.d.ts +152 -0
- package/dist/api/schema.d.ts +2 -0
- package/dist/api/schema.js +13 -3
- package/dist/api/tasks/routes.d.ts +4 -0
- package/dist/api.js +425 -23
- package/dist/app.js +309 -27
- package/dist/{catalog-runtime-KLSYFS4A.js → catalog-runtime-45AHWLJL.js} +5 -5
- package/dist/chat/agent-dispatch/context.d.ts +18 -0
- package/dist/chat/event-tasks/store.d.ts +7 -1
- package/dist/chat/event-tasks/tool-support.d.ts +1 -0
- package/dist/chat/resource-events/runtime-catalog.d.ts +3 -0
- package/dist/chat/scheduled-tasks/cadence.d.ts +27 -0
- package/dist/chat/scheduled-tasks/heartbeat.d.ts +6 -0
- package/dist/chat/scheduled-tasks/identity.d.ts +6 -0
- package/dist/chat/scheduled-tasks/personal.d.ts +26 -0
- package/dist/chat/scheduled-tasks/schedule-intent.d.ts +61 -0
- package/dist/chat/scheduled-tasks/store.d.ts +77 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +203 -0
- package/dist/chat/scheduled-tasks/tools/create.d.ts +80 -0
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +56 -0
- package/dist/chat/scheduled-tasks/tools/list.d.ts +54 -0
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +56 -0
- package/dist/chat/scheduled-tasks/tools/update.d.ts +82 -0
- package/dist/chat/scheduled-tasks/tools.d.ts +6 -0
- package/dist/chat/scheduled-tasks/types.d.ts +81 -0
- package/dist/chat/tasks/read.d.ts +9 -0
- package/dist/chat/tools/scheduled-tasks.d.ts +4 -0
- package/dist/{chunk-AAMF2IRC.js → chunk-224V72RX.js} +1308 -804
- package/dist/{chunk-54KP2EAH.js → chunk-2V7BQAJ6.js} +12 -12
- package/dist/{chunk-J3YIO3LE.js → chunk-4AF3XOZI.js} +3 -3
- package/dist/{chunk-S2O64VXP.js → chunk-4X2MZ4FP.js} +6 -6
- package/dist/{chunk-5IR7SGRO.js → chunk-5I4SWLD7.js} +2 -2
- package/dist/{chunk-OIQCRZ67.js → chunk-5XDJRSU5.js} +4 -4
- package/dist/{chunk-MZ6ZOWMJ.js → chunk-7OO3LMEP.js} +1 -1
- package/dist/{chunk-Q5TMMCBV.js → chunk-A64VQ4N4.js} +1 -1
- package/dist/{chunk-R2LXTX4J.js → chunk-ATCTPG7J.js} +1 -1
- package/dist/{chunk-AFJF3RGU.js → chunk-BVKP37NE.js} +61 -13
- package/dist/{chunk-EHEACYJ6.js → chunk-DMS2RTEK.js} +1 -1
- package/dist/{chunk-H4HMCSOZ.js → chunk-EKZSU2RK.js} +5 -5
- package/dist/chunk-GXO3EXBM.js +1470 -0
- package/dist/{chunk-ETGUGGO2.js → chunk-H6GDE77O.js} +7 -7
- package/dist/{chunk-P7UUNWC4.js → chunk-HJHTRJKR.js} +4 -4
- package/dist/{chunk-TONH5NXR.js → chunk-J6B27DOC.js} +1 -1
- package/dist/{chunk-SHMHHXD5.js → chunk-KB2M27DL.js} +58 -0
- package/dist/{chunk-EOIA25WC.js → chunk-LYEXN7FN.js} +2 -2
- package/dist/{chunk-O3C5BJFD.js → chunk-PVHL3274.js} +1 -1
- package/dist/{chunk-O3YROBH4.js → chunk-RTJCNKQD.js} +1 -1
- package/dist/{chunk-LIJ4APSS.js → chunk-UDYVHDLH.js} +1 -1
- package/dist/{chunk-PLAMHS3D.js → chunk-XRROAXID.js} +2 -2
- package/dist/{chunk-MKM5552O.js → chunk-Z72XGIFF.js} +1 -2
- package/dist/cli/chat.js +24 -24
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +9 -17
- package/dist/db/schema/scheduled-tasks.d.ts +257 -0
- package/dist/db/schema.d.ts +258 -1
- package/dist/{db-VOU5QNLY.js → db-XE6DXA5Z.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-GS7FBYBC.js → oauth-callback-server-O42UXC7E.js} +17 -17
- package/dist/{runner-GSJSBI3J.js → runner-BSP3374N.js} +11 -11
- package/dist/{skills-DSHG54LM.js → skills-BNLHOZ75.js} +6 -6
- package/dist/{validation-25XWT6TA.js → validation-O7BF3JX6.js} +6 -6
- package/dist/version.js +1 -1
- package/migrations/0016_neat_the_anarchist.sql +171 -0
- package/migrations/meta/0016_snapshot.json +1617 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -5
- package/dist/chunk-REHOYCYS.js +0 -37
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
persistAuthPauseTurnState,
|
|
14
14
|
requireTurnFailureEventId,
|
|
15
15
|
scheduleSessionCompletedPluginTasks
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4X2MZ4FP.js";
|
|
17
17
|
import {
|
|
18
18
|
buildSentryConversationUrl
|
|
19
19
|
} from "./chunk-4CODA7P5.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
resolveBaseUrl,
|
|
41
41
|
resolvePluginOAuthAccount,
|
|
42
42
|
truncateStatusText
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-H6GDE77O.js";
|
|
44
44
|
import {
|
|
45
45
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
46
46
|
TurnSliceLimitExceededError,
|
|
@@ -73,13 +73,13 @@ import {
|
|
|
73
73
|
recordDeliveredAssistantMessage,
|
|
74
74
|
turnHasReply,
|
|
75
75
|
updateConversationStats
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-5XDJRSU5.js";
|
|
77
77
|
import {
|
|
78
78
|
parseSlackThreadId,
|
|
79
79
|
readSlackRawMessageContext,
|
|
80
80
|
resolveSlackChannelIdFromMessage,
|
|
81
81
|
resolveSlackChannelIdFromThreadId
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-UDYVHDLH.js";
|
|
83
83
|
import {
|
|
84
84
|
SlackActionError,
|
|
85
85
|
getDashboardConversationLink,
|
|
@@ -88,19 +88,19 @@ import {
|
|
|
88
88
|
getSlackClient,
|
|
89
89
|
isDmChannel,
|
|
90
90
|
normalizeSlackConversationId
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-EKZSU2RK.js";
|
|
92
92
|
import {
|
|
93
93
|
getConversationEventStore,
|
|
94
94
|
getConversationStore,
|
|
95
95
|
parseDestination,
|
|
96
96
|
requireSlackDestination,
|
|
97
97
|
sameDestination
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-4AF3XOZI.js";
|
|
99
99
|
import {
|
|
100
100
|
acquireActiveLock,
|
|
101
101
|
getDefaultRedisStateAdapterFor,
|
|
102
102
|
getStateAdapter
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-7OO3LMEP.js";
|
|
104
104
|
import {
|
|
105
105
|
FUNCTION_TIMEOUT_BUFFER_SECONDS,
|
|
106
106
|
botConfig,
|
|
@@ -109,18 +109,18 @@ import {
|
|
|
109
109
|
getRuntimeMetadata,
|
|
110
110
|
normalizeSlackEmojiName,
|
|
111
111
|
standardModelId
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-5I4SWLD7.js";
|
|
113
113
|
import {
|
|
114
114
|
discoverSkills
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-LYEXN7FN.js";
|
|
116
116
|
import {
|
|
117
117
|
pluginCatalogRuntime
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-ATCTPG7J.js";
|
|
119
119
|
import {
|
|
120
120
|
buildOAuthTokenRequest,
|
|
121
121
|
hasRequiredOAuthScope,
|
|
122
122
|
parseOAuthTokenResponse
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-RTJCNKQD.js";
|
|
124
124
|
import {
|
|
125
125
|
createSlackResumeActor,
|
|
126
126
|
isUserActor,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
toOptionalNumber,
|
|
140
140
|
toOptionalString,
|
|
141
141
|
withLogContext
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-J6B27DOC.js";
|
|
143
143
|
import {
|
|
144
144
|
homeDir
|
|
145
145
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
juniorConversations,
|
|
5
5
|
juniorIdentities,
|
|
6
6
|
juniorUsers
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KB2M27DL.js";
|
|
8
8
|
import {
|
|
9
9
|
TURN_REASONING_LEVELS,
|
|
10
10
|
getChatConfig,
|
|
11
11
|
modelProfileSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5I4SWLD7.js";
|
|
13
13
|
import {
|
|
14
14
|
juniorDestinations
|
|
15
15
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-F3B2YJ76.js";
|
|
20
20
|
import {
|
|
21
21
|
normalizeIdentityEmail
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J6B27DOC.js";
|
|
23
23
|
|
|
24
24
|
// src/chat/conversations/sql/store.ts
|
|
25
25
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
persistThreadStateById,
|
|
23
23
|
stripRuntimeTurnContext,
|
|
24
24
|
updateConversationStats
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5XDJRSU5.js";
|
|
26
26
|
import {
|
|
27
27
|
createPluginConversationEvents,
|
|
28
28
|
createPluginEmbedder,
|
|
@@ -30,26 +30,26 @@ import {
|
|
|
30
30
|
createPluginModel,
|
|
31
31
|
createPluginState,
|
|
32
32
|
getPlugins
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EKZSU2RK.js";
|
|
34
34
|
import {
|
|
35
35
|
getDb,
|
|
36
36
|
sameActorIdentity
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-4AF3XOZI.js";
|
|
38
38
|
import {
|
|
39
39
|
getStateAdapter
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7OO3LMEP.js";
|
|
41
41
|
import {
|
|
42
42
|
ProviderError,
|
|
43
43
|
findProviderError,
|
|
44
44
|
getProviderErrorAttributes,
|
|
45
45
|
getProviderErrorUserMessage
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-5I4SWLD7.js";
|
|
47
47
|
import {
|
|
48
48
|
parseSlackMessageTs
|
|
49
49
|
} from "./chunk-F3B2YJ76.js";
|
|
50
50
|
import {
|
|
51
51
|
buildTurnFailureResponse
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-J6B27DOC.js";
|
|
53
53
|
|
|
54
54
|
// src/chat/runtime/delivered-turn-state.ts
|
|
55
55
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
toCanonicalInputMessage,
|
|
4
4
|
toCanonicalOutputMessage,
|
|
5
5
|
toGenAiMessagesTraceAttributes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DMS2RTEK.js";
|
|
7
7
|
import {
|
|
8
8
|
extractGenAiUsageAttributes,
|
|
9
9
|
logException,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
normalizeGenAiFinishReason,
|
|
12
12
|
serializeGenAiAttribute,
|
|
13
13
|
withSpan
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J6B27DOC.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/config.ts
|
|
17
17
|
import { getModel as getModel2 } from "@earendil-works/pi-ai/compat";
|
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
instructionProvenanceFor,
|
|
17
17
|
sanitizePostgresJson,
|
|
18
18
|
withConversationEventLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4AF3XOZI.js";
|
|
20
20
|
import {
|
|
21
21
|
getStateAdapter,
|
|
22
22
|
sleep
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7OO3LMEP.js";
|
|
24
24
|
import {
|
|
25
25
|
botConfig,
|
|
26
26
|
escapeXml,
|
|
27
27
|
resolveGatewayModel,
|
|
28
28
|
unwrapCurrentInstruction
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5I4SWLD7.js";
|
|
30
30
|
import {
|
|
31
31
|
toStoredSlackActor
|
|
32
32
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
setSpanAttributes,
|
|
42
42
|
toOptionalNumber,
|
|
43
43
|
toOptionalString
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-J6B27DOC.js";
|
|
45
45
|
|
|
46
46
|
// src/chat/turn-context-tag.ts
|
|
47
47
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -589,20 +589,63 @@ var createdPersonalTokenSchema = personalTokenMetadataSchema.extend({ token: z6.
|
|
|
589
589
|
var personalTokenParamsSchema = z6.object({ id: z6.string().uuid() }).strict();
|
|
590
590
|
var revokePersonalTokenResponseSchema = z6.object({ revoked: z6.literal(true) }).strict();
|
|
591
591
|
|
|
592
|
-
// src/api/schema/
|
|
592
|
+
// src/api/schema/task.ts
|
|
593
593
|
import { z as z7 } from "zod";
|
|
594
|
-
var
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
594
|
+
var taskDestinationSchema = z7.object({
|
|
595
|
+
channelId: z7.string().min(1),
|
|
596
|
+
label: z7.string().min(1),
|
|
597
|
+
teamId: z7.string().min(1),
|
|
598
|
+
visibility: z7.enum(["private", "public"])
|
|
599
|
+
}).strict();
|
|
600
|
+
var taskSummaryBaseSchema = z7.object({
|
|
601
|
+
createdAt: z7.string().datetime(),
|
|
602
|
+
createdBy: z7.string().min(1),
|
|
603
|
+
createdByEmail: z7.string().trim().email().optional(),
|
|
604
|
+
destination: taskDestinationSchema,
|
|
605
|
+
id: z7.string().min(1),
|
|
606
|
+
instruction: z7.string().min(1),
|
|
607
|
+
ownedByViewer: z7.boolean()
|
|
608
|
+
});
|
|
609
|
+
var scheduledTaskSummarySchema = taskSummaryBaseSchema.extend({
|
|
610
|
+
kind: z7.literal("scheduled"),
|
|
611
|
+
nextRunAt: z7.string().datetime().optional(),
|
|
612
|
+
schedule: z7.string().min(1),
|
|
613
|
+
status: z7.enum(["active", "paused", "blocked"])
|
|
614
|
+
}).strict();
|
|
615
|
+
var eventTaskSummarySchema = taskSummaryBaseSchema.extend({
|
|
616
|
+
events: z7.array(z7.string().min(1)).min(1),
|
|
617
|
+
kind: z7.literal("event"),
|
|
618
|
+
resource: z7.string().min(1),
|
|
619
|
+
source: z7.string().min(1),
|
|
620
|
+
triggerAvailable: z7.boolean()
|
|
621
|
+
}).strict();
|
|
622
|
+
var taskSummarySchema = z7.discriminatedUnion("kind", [
|
|
623
|
+
scheduledTaskSummarySchema,
|
|
624
|
+
eventTaskSummarySchema
|
|
625
|
+
]);
|
|
626
|
+
var taskListSchema = z7.object({
|
|
627
|
+
tasks: z7.array(taskSummarySchema),
|
|
628
|
+
truncated: z7.boolean()
|
|
629
|
+
}).strict();
|
|
630
|
+
var taskParamsSchema = z7.object({
|
|
631
|
+
id: z7.string().min(1),
|
|
632
|
+
kind: z7.enum(["scheduled", "event"])
|
|
633
|
+
}).strict();
|
|
634
|
+
|
|
635
|
+
// src/api/schema/stats.ts
|
|
636
|
+
import { z as z8 } from "zod";
|
|
637
|
+
var statSchema = z8.object({
|
|
638
|
+
count: z8.number().int().nonnegative(),
|
|
639
|
+
date: z8.string(),
|
|
640
|
+
metric: z8.string().min(1),
|
|
641
|
+
name: z8.string().min(1),
|
|
642
|
+
namespace: z8.string().min(1)
|
|
643
|
+
}).strict();
|
|
644
|
+
var statsReportSchema = z8.object({
|
|
645
|
+
generatedAt: z8.string().datetime(),
|
|
646
|
+
stats: z8.array(statSchema),
|
|
647
|
+
windowEnd: z8.string(),
|
|
648
|
+
windowStart: z8.string()
|
|
606
649
|
}).strict();
|
|
607
650
|
|
|
608
651
|
export {
|
|
@@ -638,6 +681,11 @@ export {
|
|
|
638
681
|
createdPersonalTokenSchema,
|
|
639
682
|
personalTokenParamsSchema,
|
|
640
683
|
revokePersonalTokenResponseSchema,
|
|
684
|
+
scheduledTaskSummarySchema,
|
|
685
|
+
eventTaskSummarySchema,
|
|
686
|
+
taskSummarySchema,
|
|
687
|
+
taskListSchema,
|
|
688
|
+
taskParamsSchema,
|
|
641
689
|
statSchema,
|
|
642
690
|
statsReportSchema
|
|
643
691
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConversationEventStore,
|
|
3
3
|
getDb
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4AF3XOZI.js";
|
|
5
5
|
import {
|
|
6
6
|
juniorConversationAnnotations,
|
|
7
7
|
juniorConversationEvents,
|
|
8
8
|
juniorIdentities,
|
|
9
9
|
juniorUsers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KB2M27DL.js";
|
|
11
11
|
import {
|
|
12
12
|
SANDBOX_WORKSPACE_ROOT,
|
|
13
13
|
getStateAdapter,
|
|
14
14
|
sleep
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7OO3LMEP.js";
|
|
16
16
|
import {
|
|
17
17
|
botConfig,
|
|
18
18
|
completeObject,
|
|
19
19
|
embedTexts,
|
|
20
20
|
getSlackBotToken,
|
|
21
21
|
standardModelId
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5I4SWLD7.js";
|
|
23
23
|
import {
|
|
24
24
|
isActorUserId,
|
|
25
25
|
parseActorUserId
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
setSpanAttributes,
|
|
38
38
|
setSpanStatus,
|
|
39
39
|
withSpan
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-J6B27DOC.js";
|
|
41
41
|
|
|
42
42
|
// src/chat/plugins/agent-hooks.ts
|
|
43
43
|
import {
|