@sentry/junior 0.161.0 → 0.163.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/README.md +2 -0
- package/dist/{agent-hooks-O75UJNC6.js → agent-hooks-6IX5CV7G.js} +10 -10
- package/dist/api/acp/route.d.ts +13 -0
- package/dist/api/locations/detail.d.ts +1 -1
- package/dist/api/schema/conversation.d.ts +3 -0
- package/dist/api/schema/location.d.ts +1 -0
- package/dist/api/schema/person.d.ts +1 -0
- package/dist/api.js +204 -403
- package/dist/app.d.ts +2 -2
- package/dist/app.js +480 -38
- package/dist/{catalog-runtime-Z3FHU4ZY.js → catalog-runtime-NEPZNTOM.js} +5 -5
- package/dist/chat/agent/sandbox.d.ts +4 -0
- package/dist/chat/api-turns/cancellation.d.ts +27 -0
- package/dist/chat/api-turns/routing.d.ts +31 -0
- package/dist/chat/api-turns/work.d.ts +12 -29
- package/dist/chat/app/conversation-work.d.ts +6 -1
- package/dist/chat/app/production.d.ts +2 -2
- package/dist/chat/conversations/history.d.ts +3 -0
- package/dist/chat/conversations/message-search.d.ts +6 -0
- package/dist/chat/conversations/turn-lifecycle.d.ts +1 -1
- package/dist/chat/experimental.d.ts +1 -1
- package/dist/chat/plugins/agent-hooks.d.ts +4 -0
- package/dist/chat/repository-instructions.d.ts +1 -1
- package/dist/chat/sandbox/paths.d.ts +1 -0
- package/dist/chat/sandbox/prepare-workspace.d.ts +11 -0
- package/dist/chat/sandbox/ref.d.ts +1 -0
- package/dist/chat/sandbox/sandbox.d.ts +4 -0
- package/dist/chat/sandbox/session.d.ts +4 -0
- package/dist/chat/sandbox/snapshot/profile.d.ts +4 -3
- package/dist/chat/sandbox/snapshot/resolve.d.ts +4 -0
- package/dist/chat/sandbox/workspace.d.ts +4 -0
- package/dist/chat/slack/tools/conversation-message-search.d.ts +9 -0
- package/dist/chat/tools/types.d.ts +5 -0
- package/dist/chat/workspaces/checkout-path.d.ts +4 -0
- package/dist/chat/workspaces/store.d.ts +8 -0
- package/dist/chat/workspaces/tools.d.ts +4 -0
- package/dist/chat/workspaces/types.d.ts +13 -0
- package/dist/{chunk-WKN4ZQTZ.js → chunk-2FBPN2Y4.js} +4 -1
- package/dist/{chunk-QHXT7LLF.js → chunk-2HBJQEBE.js} +1 -1
- package/dist/{chunk-VXFDVY4C.js → chunk-3OZNFCPR.js} +6 -6
- package/dist/{chunk-EAIQBR66.js → chunk-3T7RJVDJ.js} +1 -1
- package/dist/{chunk-DGKLYDX7.js → chunk-4P2XNVTO.js} +2 -2
- package/dist/{chunk-FLMD25Y5.js → chunk-ATWHPSMF.js} +40 -2
- package/dist/{chunk-IRHX2S46.js → chunk-BLZUFHM7.js} +1 -1
- package/dist/chunk-BVREIWBD.js +131 -0
- package/dist/{chunk-QQ7SY5IZ.js → chunk-EKGJVUVS.js} +9 -6
- package/dist/{chunk-ZBCLWBMV.js → chunk-FEIHINKR.js} +5 -5
- package/dist/{chunk-MVG5UPLM.js → chunk-GCLHNRMU.js} +1 -1
- package/dist/{chunk-YSWHAOPQ.js → chunk-ICJ3KCA2.js} +1 -1
- package/dist/{chunk-G35DUPNB.js → chunk-IIT23D3M.js} +4 -4
- package/dist/{chunk-OYQEO72I.js → chunk-IX4XI42N.js} +417 -136
- package/dist/{chunk-U2XOBFDK.js → chunk-JI5EPI3O.js} +50 -5
- package/dist/{chunk-IW7C5C7E.js → chunk-KD3ROG6P.js} +17 -17
- package/dist/{chunk-4WAZ6DGX.js → chunk-MWVQ35U6.js} +543 -164
- package/dist/{chunk-STZVUVMS.js → chunk-MXFL7LNZ.js} +12 -7
- package/dist/{chunk-HSFYTIS2.js → chunk-NL53P7PS.js} +1 -1
- package/dist/{chunk-6WTDZKFR.js → chunk-O4IK4O7C.js} +1 -1
- package/dist/{chunk-OPIJ6HY3.js → chunk-O5ZZL7IR.js} +9 -9
- package/dist/{chunk-CGAIDDLD.js → chunk-RK7KPI6G.js} +1 -1
- package/dist/{chunk-V67ORYKQ.js → chunk-RTPJRLOP.js} +9 -9
- package/dist/{chunk-6ILVZOF6.js → chunk-SR6WRBJW.js} +4 -4
- package/dist/{chunk-RULQD7OX.js → chunk-THS4CKN4.js} +46 -87
- package/dist/{chunk-IYFKONIL.js → chunk-TPDNZCZU.js} +1 -1
- package/dist/{chunk-DNSIU27S.js → chunk-TPT6EF7K.js} +1 -1
- package/dist/{chunk-5IDFPCON.js → chunk-VRS6WDK5.js} +1 -1
- package/dist/{chunk-O7JTSJPU.js → chunk-WPGYWDJR.js} +6 -6
- package/dist/{chunk-OY2DBUV4.js → chunk-XY2IVIAY.js} +5 -5
- package/dist/{chunk-RVENVPNO.js → chunk-YAUQXZVT.js} +2 -2
- package/dist/{chunk-WVSQ2SCS.js → chunk-ZDKTZG3G.js} +1 -1
- package/dist/{chunk-MNY5M7RB.js → chunk-ZF6IC27P.js} +87 -10
- package/dist/cli/chat.js +32 -32
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +10 -10
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/workspaces.d.ts +169 -0
- package/dist/db/schema.d.ts +169 -1
- package/dist/{db-KKOZRE62.js → db-6VBMHVW2.js} +7 -7
- package/dist/{experimental-HH6OM6UH.js → experimental-XVDOSRBS.js} +1 -1
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-5AUZDWXA.js → oauth-callback-server-5NCCUIM2.js} +24 -24
- package/dist/{runner-K5H5NDEC.js → runner-6ONEB6TQ.js} +13 -13
- package/dist/{skills-OZGPB6G4.js → skills-Y5R36UH4.js} +6 -6
- package/dist/spawn-RFMBQ6B3.js +37 -0
- package/dist/{validation-TVHCNCYL.js → validation-HLHEQDEK.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-DXCQMJ5U.js → work-VIEFYTFG.js} +18 -18
- package/dist/worker-MRSKPKQZ.js +24 -0
- package/migrations/0029_dizzy_barracuda.sql +19 -0
- package/migrations/meta/0029_snapshot.json +2709 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +8 -5
- package/dist/chunk-EM225ITJ.js +0 -56
- package/dist/spawn-RCQSC2L5.js +0 -37
- package/dist/worker-24HZ5HRI.js +0 -24
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createJuniorSqlExecutor,
|
|
3
|
+
juniorConversationAnnotations,
|
|
3
4
|
juniorConversationBindings,
|
|
4
5
|
juniorConversationEvents,
|
|
5
6
|
juniorConversationParticipants,
|
|
6
7
|
juniorConversations,
|
|
7
8
|
juniorIdentities,
|
|
8
9
|
juniorUsers
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ATWHPSMF.js";
|
|
10
11
|
import {
|
|
11
12
|
TURN_REASONING_LEVELS,
|
|
12
13
|
getChatConfig,
|
|
13
14
|
modelProfileSchema
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YAUQXZVT.js";
|
|
15
16
|
import {
|
|
16
17
|
juniorDestinations
|
|
17
18
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -22,7 +23,7 @@ import {
|
|
|
22
23
|
} from "./chunk-V7YE4WCP.js";
|
|
23
24
|
import {
|
|
24
25
|
normalizeIdentityEmail
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TPT6EF7K.js";
|
|
26
27
|
|
|
27
28
|
// src/chat/conversations/sql/store.ts
|
|
28
29
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -1281,7 +1282,7 @@ var attachmentsDeliveredEventDataSchema = z3.object({
|
|
|
1281
1282
|
var turnCompletedEventDataSchema = z3.object({
|
|
1282
1283
|
type: z3.literal("turn_completed"),
|
|
1283
1284
|
turnId: z3.string().min(1),
|
|
1284
|
-
outcome: z3.enum(["success", "no_reply"])
|
|
1285
|
+
outcome: z3.enum(["success", "no_reply", "cancelled"])
|
|
1285
1286
|
}).strict();
|
|
1286
1287
|
var turnFailedEventDataSchema = z3.object({
|
|
1287
1288
|
type: z3.literal("turn_failed"),
|
|
@@ -1941,7 +1942,16 @@ function createSqlConversationEventStore(executor) {
|
|
|
1941
1942
|
}
|
|
1942
1943
|
|
|
1943
1944
|
// src/chat/conversations/sql/message-search.ts
|
|
1944
|
-
import {
|
|
1945
|
+
import {
|
|
1946
|
+
and as and7,
|
|
1947
|
+
desc as desc3,
|
|
1948
|
+
eq as eq7,
|
|
1949
|
+
gte as gte2,
|
|
1950
|
+
isNull as isNull2,
|
|
1951
|
+
lt as lt2,
|
|
1952
|
+
ne,
|
|
1953
|
+
sql as sql7
|
|
1954
|
+
} from "drizzle-orm";
|
|
1945
1955
|
var EXCERPT_WITHOUT_QUERY_CHARS = 240;
|
|
1946
1956
|
var SqlConversationMessageSearchStore = class {
|
|
1947
1957
|
constructor(executor) {
|
|
@@ -1976,6 +1986,41 @@ var SqlConversationMessageSearchStore = class {
|
|
|
1976
1986
|
eq7(juniorDestinations.providerDestinationId, args.filters.channelId)
|
|
1977
1987
|
);
|
|
1978
1988
|
}
|
|
1989
|
+
if (args.filters.afterMs !== void 0 && Number.isFinite(args.filters.afterMs)) {
|
|
1990
|
+
conditions.push(
|
|
1991
|
+
gte2(juniorConversations.lastActivityAt, new Date(args.filters.afterMs))
|
|
1992
|
+
);
|
|
1993
|
+
}
|
|
1994
|
+
if (args.filters.beforeMs !== void 0 && Number.isFinite(args.filters.beforeMs)) {
|
|
1995
|
+
conditions.push(
|
|
1996
|
+
lt2(juniorConversations.lastActivityAt, new Date(args.filters.beforeMs))
|
|
1997
|
+
);
|
|
1998
|
+
}
|
|
1999
|
+
if (args.filters.annotation) {
|
|
2000
|
+
const annotation = args.filters.annotation.toLowerCase();
|
|
2001
|
+
const nestedAnnotationPrefix = `${annotation}#`;
|
|
2002
|
+
conditions.push(
|
|
2003
|
+
sql7`exists (
|
|
2004
|
+
select 1
|
|
2005
|
+
from ${juniorConversationAnnotations}
|
|
2006
|
+
where ${and7(
|
|
2007
|
+
eq7(
|
|
2008
|
+
juniorConversationAnnotations.conversationId,
|
|
2009
|
+
juniorConversations.conversationId
|
|
2010
|
+
),
|
|
2011
|
+
// Exact key, or a nested child that continues with "#".
|
|
2012
|
+
// Avoids sibling key collisions and partial nested-id prefixes.
|
|
2013
|
+
sql7`(
|
|
2014
|
+
lower(${juniorConversationAnnotations.key}) = ${annotation}
|
|
2015
|
+
or starts_with(
|
|
2016
|
+
lower(${juniorConversationAnnotations.key}),
|
|
2017
|
+
${nestedAnnotationPrefix}
|
|
2018
|
+
)
|
|
2019
|
+
)`
|
|
2020
|
+
)}
|
|
2021
|
+
)`
|
|
2022
|
+
);
|
|
2023
|
+
}
|
|
1979
2024
|
const bestPerConversation = db.selectDistinctOn([juniorConversations.conversationId], {
|
|
1980
2025
|
channelName: juniorDestinations.displayName,
|
|
1981
2026
|
conversationId: juniorConversations.conversationId,
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-FA6POGLH.js";
|
|
4
4
|
import {
|
|
5
5
|
getTurnRequestDeadline
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BLZUFHM7.js";
|
|
7
7
|
import {
|
|
8
8
|
buildSentryConversationUrl,
|
|
9
9
|
deleteWebAuthorization
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NL53P7PS.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureConversationWake,
|
|
13
13
|
requestConversationWork
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IIT23D3M.js";
|
|
15
15
|
import {
|
|
16
16
|
buildDeliveredTurnStatePatch,
|
|
17
17
|
finalizeFailedTurnReplyWithEvent,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
requireTurnFailureEventId,
|
|
25
25
|
resolveTurnSessionRouting,
|
|
26
26
|
scheduleSessionCompletedPluginTasks
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-O5ZZL7IR.js";
|
|
28
28
|
import {
|
|
29
29
|
ConversationTurnLifecycleService,
|
|
30
30
|
coerceThreadConversationState,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
getPersistedSandboxState,
|
|
34
34
|
getPersistedThreadState,
|
|
35
35
|
persistThreadStateById
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EKGJVUVS.js";
|
|
37
37
|
import {
|
|
38
38
|
getVercelConversationWorkQueue
|
|
39
39
|
} from "./chunk-WR76IVA5.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
lookupSlackUserProfile,
|
|
48
48
|
resolvePluginOAuthAccount,
|
|
49
49
|
runAgentWithTimeout
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-RTPJRLOP.js";
|
|
51
51
|
import {
|
|
52
52
|
RetryableDeliveryError
|
|
53
53
|
} from "./chunk-RF6J3DIO.js";
|
|
@@ -63,13 +63,13 @@ import {
|
|
|
63
63
|
removeReactionFromMessage,
|
|
64
64
|
resolveBaseUrl,
|
|
65
65
|
truncateStatusText
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-3OZNFCPR.js";
|
|
67
67
|
import {
|
|
68
68
|
parseSlackThreadId,
|
|
69
69
|
readSlackRawMessageContext,
|
|
70
70
|
resolveSlackChannelIdFromMessage,
|
|
71
71
|
resolveSlackChannelIdFromThreadId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-ICJ3KCA2.js";
|
|
73
73
|
import {
|
|
74
74
|
CooperativeTurnYieldError,
|
|
75
75
|
TurnSliceLimitExceededError,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
recordTurnSummary,
|
|
97
97
|
saveTurnCheckpoint,
|
|
98
98
|
turnHasReply
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-MXFL7LNZ.js";
|
|
100
100
|
import {
|
|
101
101
|
SlackActionError,
|
|
102
102
|
getDashboardConversationLink,
|
|
@@ -105,18 +105,18 @@ import {
|
|
|
105
105
|
getSlackClient,
|
|
106
106
|
isDmChannel,
|
|
107
107
|
normalizeSlackConversationId
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-ZF6IC27P.js";
|
|
109
109
|
import {
|
|
110
110
|
getConversationEventStore,
|
|
111
111
|
getSqlExecutor,
|
|
112
112
|
requireSlackDestination,
|
|
113
113
|
upsertIdentity,
|
|
114
114
|
upsertLinkedIdentity
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-JI5EPI3O.js";
|
|
116
116
|
import {
|
|
117
117
|
acquireActiveLock,
|
|
118
118
|
getStateAdapter
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-TPDNZCZU.js";
|
|
120
120
|
import {
|
|
121
121
|
botConfig,
|
|
122
122
|
escapeXml,
|
|
@@ -124,18 +124,18 @@ import {
|
|
|
124
124
|
getRuntimeMetadata,
|
|
125
125
|
normalizeSlackEmojiName,
|
|
126
126
|
standardModelId
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-YAUQXZVT.js";
|
|
128
128
|
import {
|
|
129
129
|
discoverSkills
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-4P2XNVTO.js";
|
|
131
131
|
import {
|
|
132
132
|
pluginCatalogRuntime
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-RK7KPI6G.js";
|
|
134
134
|
import {
|
|
135
135
|
buildOAuthTokenRequest,
|
|
136
136
|
hasRequiredOAuthScope,
|
|
137
137
|
parseOAuthTokenResponse
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-O4IK4O7C.js";
|
|
139
139
|
import {
|
|
140
140
|
createSlackResumeActor,
|
|
141
141
|
isUserActor,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
setTags,
|
|
152
152
|
toOptionalString,
|
|
153
153
|
withLogContext
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-TPT6EF7K.js";
|
|
155
155
|
import {
|
|
156
156
|
homeDir
|
|
157
157
|
} from "./chunk-H4HBKISO.js";
|