@sentry/junior 0.155.0 → 0.156.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-AWVTLAV2.js → agent-hooks-CCAR46PQ.js} +10 -10
- package/dist/api/locations/detail.d.ts +1 -0
- package/dist/api/schema/conversation.d.ts +19 -4
- package/dist/api/schema/location.d.ts +1 -0
- package/dist/api/schema/person.d.ts +1 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +48 -36
- package/dist/app.js +147 -44
- package/dist/{catalog-runtime-V6YD6KH5.js → catalog-runtime-3SNKYCBG.js} +5 -5
- package/dist/chat/agent/types.d.ts +2 -0
- package/dist/chat/attachments/storage.d.ts +12 -0
- package/dist/chat/attachments/store.d.ts +52 -0
- package/dist/chat/attachments/vercel.d.ts +3 -0
- package/dist/chat/conversations/retention.d.ts +4 -0
- package/dist/chat/ingress/bot-mention.d.ts +13 -0
- package/dist/chat/plugins/unfinished-work.d.ts +6 -0
- package/dist/chat/runtime/agent-runner.d.ts +2 -0
- package/dist/chat/services/conversation-memory.d.ts +1 -1
- package/dist/chat/slack/tools/send-files.d.ts +17 -11
- package/dist/chat/state/conversation.d.ts +2 -1
- package/dist/chat/tools/types.d.ts +2 -0
- package/dist/{chunk-V57LZDHN.js → chunk-3FFUC32L.js} +6 -6
- package/dist/{chunk-J2SYI36O.js → chunk-3L2PMOSR.js} +4 -4
- package/dist/{chunk-2AHVM3HK.js → chunk-4ZZDTHFC.js} +10 -8
- package/dist/{chunk-AENPRXCG.js → chunk-53W3LZEW.js} +381 -55
- package/dist/{chunk-ELOTIL5F.js → chunk-6CINHXIL.js} +4 -4
- package/dist/{chunk-37G5HJ2X.js → chunk-6JUU7J2B.js} +4 -4
- package/dist/{chunk-KBT2I5ER.js → chunk-7RAETIYO.js} +6 -6
- package/dist/{chunk-NWSKFYOH.js → chunk-A6WPDFHQ.js} +1 -1
- package/dist/{chunk-773XC7P4.js → chunk-AIJRG227.js} +159 -128
- package/dist/{chunk-APHDJYN7.js → chunk-CK2H7CFO.js} +1 -1
- package/dist/{chunk-Y7ZUBP2K.js → chunk-CN2XSVKF.js} +6 -6
- package/dist/{chunk-TVXAN43I.js → chunk-EDJ64P2P.js} +1 -1
- package/dist/{chunk-XFZLQANQ.js → chunk-GKC43TLS.js} +2 -2
- package/dist/{chunk-UWTXAYBP.js → chunk-GSBPZHLQ.js} +9 -9
- package/dist/{chunk-JJX77MB7.js → chunk-IIO5PFZX.js} +3 -3
- package/dist/{chunk-RQ62VKM7.js → chunk-IZEBHYI4.js} +1 -1
- package/dist/{chunk-J7MWZFFP.js → chunk-JUJR6WTL.js} +4 -4
- package/dist/{chunk-JFZBGFNX.js → chunk-KBGMYLSV.js} +2 -1
- package/dist/{chunk-LQT3SWFA.js → chunk-KCA5MKHU.js} +5 -5
- package/dist/{chunk-SDRJ2LE3.js → chunk-MC57E5U5.js} +1 -1
- package/dist/{chunk-2WLJDM23.js → chunk-MJE7XKWP.js} +1 -1
- package/dist/{chunk-TKJ7277U.js → chunk-NTNU6T2D.js} +2 -2
- package/dist/{chunk-EORR34UB.js → chunk-OGZPRMZA.js} +1 -1
- package/dist/{chunk-NKFRRZIT.js → chunk-OMQJB7YN.js} +19 -18
- package/dist/{chunk-Y6MVGU7L.js → chunk-PMFGVLDU.js} +10 -10
- package/dist/{chunk-KTVHAHUV.js → chunk-SE3D225X.js} +1 -1
- package/dist/{chunk-JIC33O5L.js → chunk-SRJA6QLM.js} +2 -2
- package/dist/{chunk-4K5N6HTX.js → chunk-TN4LVILT.js} +5 -5
- package/dist/{chunk-MLBH7J7J.js → chunk-TNXGMFWV.js} +1 -1
- package/dist/{chunk-RN3AWYEP.js → chunk-WD7SEUZO.js} +1 -1
- package/dist/{chunk-ZLSFOSDK.js → chunk-X5NZQH5U.js} +2 -1
- package/dist/{chunk-7NYEB2TM.js → chunk-X7W45B5G.js} +1 -1
- package/dist/{chunk-CPQBTTI6.js → chunk-ZNWRYNCA.js} +5 -5
- package/dist/cli/chat.js +30 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/attachments.d.ts +178 -0
- package/dist/db/schema.d.ts +179 -1
- package/dist/{db-WT7P56AH.js → db-TYUUKGJX.js} +7 -7
- package/dist/handlers/retention.d.ts +4 -1
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-R2PK2MCA.js → oauth-callback-server-AWVDKPR5.js} +23 -23
- package/dist/{runner-O7YYUIHT.js → runner-JUQXMACC.js} +13 -13
- package/dist/{skills-S6HLQRH7.js → skills-4GZTZX4V.js} +6 -6
- package/dist/spawn-32SSRWU4.js +37 -0
- package/dist/{validation-46WD2OAR.js → validation-DRLNJRND.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-YT5QUBS3.js → work-TGIXRRJY.js} +17 -17
- package/dist/worker-IFXZOYED.js +24 -0
- package/migrations/0027_attachment_storage.sql +16 -0
- package/migrations/meta/0027_snapshot.json +2554 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +5 -4
- package/dist/spawn-B4SBFFA2.js +0 -37
- package/dist/worker-4C5BEDWN.js +0 -24
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
coerceThreadConversationState,
|
|
3
3
|
getPersistedThreadState,
|
|
4
4
|
persistThreadStateById
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TN4LVILT.js";
|
|
6
6
|
import {
|
|
7
7
|
pluginTaskId,
|
|
8
8
|
pluginTaskParamsSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
markTurnCompleted,
|
|
23
23
|
normalizeToolNameFromResult,
|
|
24
24
|
stripRuntimeTurnContext
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3L2PMOSR.js";
|
|
26
26
|
import {
|
|
27
27
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
28
28
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -33,25 +33,25 @@ import {
|
|
|
33
33
|
createPluginModel,
|
|
34
34
|
createPluginState,
|
|
35
35
|
getPlugins
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3FFUC32L.js";
|
|
37
37
|
import {
|
|
38
38
|
getConversationStore,
|
|
39
39
|
getDb,
|
|
40
40
|
sameActorIdentity
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IIO5PFZX.js";
|
|
42
42
|
import {
|
|
43
43
|
juniorConversations,
|
|
44
44
|
juniorTaskExecutions
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-AIJRG227.js";
|
|
46
46
|
import {
|
|
47
47
|
getStateAdapter
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-MC57E5U5.js";
|
|
49
49
|
import {
|
|
50
50
|
ProviderError,
|
|
51
51
|
findProviderError,
|
|
52
52
|
getProviderErrorAttributes,
|
|
53
53
|
getProviderErrorUserMessage
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-GKC43TLS.js";
|
|
55
55
|
import {
|
|
56
56
|
credentialSubjectSchema
|
|
57
57
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
buildTurnFailureResponse,
|
|
63
63
|
logWarn
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-X7W45B5G.js";
|
|
65
65
|
|
|
66
66
|
// src/chat/runtime/delivered-turn-state.ts
|
|
67
67
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -87,7 +87,7 @@ import { pluginRunContextSchema } from "@sentry/junior-plugin-api";
|
|
|
87
87
|
|
|
88
88
|
// src/chat/services/turn-session-routing.ts
|
|
89
89
|
async function resolveTurnSessionRouting(args) {
|
|
90
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
90
|
+
const conversationStore = args.conversationStore ?? (await import("./db-TYUUKGJX.js")).getConversationStore();
|
|
91
91
|
const conversation = await conversationStore.get({
|
|
92
92
|
conversationId: args.conversationId
|
|
93
93
|
});
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
juniorConversations,
|
|
7
7
|
juniorIdentities,
|
|
8
8
|
juniorUsers
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AIJRG227.js";
|
|
10
10
|
import {
|
|
11
11
|
TURN_REASONING_LEVELS,
|
|
12
12
|
getChatConfig,
|
|
13
13
|
modelProfileSchema
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GKC43TLS.js";
|
|
15
15
|
import {
|
|
16
16
|
juniorDestinations
|
|
17
17
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-V7YE4WCP.js";
|
|
23
23
|
import {
|
|
24
24
|
normalizeIdentityEmail
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-X7W45B5G.js";
|
|
26
26
|
|
|
27
27
|
// src/chat/conversations/sql/store.ts
|
|
28
28
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTurnRequestDeadline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A6WPDFHQ.js";
|
|
4
4
|
import {
|
|
5
5
|
CONVERSATION_WORK_CHECK_IN_INTERVAL_MS,
|
|
6
6
|
CONVERSATION_WORK_MAX_RETRIES,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
releaseConversationWork,
|
|
22
22
|
requestAnotherSlice,
|
|
23
23
|
startConversationWork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6CINHXIL.js";
|
|
25
25
|
import {
|
|
26
26
|
ConversationQueueMessageRejectedError
|
|
27
27
|
} from "./chunk-JAL3CH4G.js";
|
|
28
28
|
import {
|
|
29
29
|
getChatConfig,
|
|
30
30
|
isProviderRetryError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GKC43TLS.js";
|
|
32
32
|
import {
|
|
33
33
|
logException,
|
|
34
34
|
logInfo,
|
|
35
35
|
logWarn,
|
|
36
36
|
withLogContext
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-X7W45B5G.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/task-execution/worker.ts
|
|
40
40
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@sentry/junior",
|
|
4
|
-
version: "0.
|
|
4
|
+
version: "0.156.0",
|
|
5
5
|
private: false,
|
|
6
6
|
publishConfig: {
|
|
7
7
|
access: "public"
|
|
@@ -83,6 +83,7 @@ var package_default = {
|
|
|
83
83
|
"@sentry/node": "catalog:",
|
|
84
84
|
"@sinclair/typebox": "^0.34.49",
|
|
85
85
|
"@slack/web-api": "^7.16.0",
|
|
86
|
+
"@vercel/blob": "^2.4.0",
|
|
86
87
|
"@vercel/functions": "^3.6.0",
|
|
87
88
|
"@vercel/oidc": "^3.4.1",
|
|
88
89
|
"@vercel/queue": "^0.2.0",
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolInputError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3L2PMOSR.js";
|
|
4
4
|
import {
|
|
5
5
|
canRouteResourceEvents,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3FFUC32L.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IIO5PFZX.js";
|
|
11
11
|
import {
|
|
12
12
|
juniorEventTasks,
|
|
13
13
|
juniorSchedulerRuns,
|
|
14
14
|
juniorSchedulerTasks,
|
|
15
15
|
juniorStats
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AIJRG227.js";
|
|
17
17
|
import {
|
|
18
18
|
juniorDestinations
|
|
19
19
|
} from "./chunk-VFUK3X5B.js";
|
|
20
20
|
import {
|
|
21
21
|
logInfo
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X7W45B5G.js";
|
|
23
23
|
|
|
24
24
|
// src/chat/event-tasks/store.ts
|
|
25
25
|
import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-EM225ITJ.js";
|
|
4
4
|
import {
|
|
5
5
|
getSlackBotToken
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GKC43TLS.js";
|
|
7
7
|
import {
|
|
8
8
|
parseSlackChannelReferenceId
|
|
9
9
|
} from "./chunk-V7YE4WCP.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
setSpanAttributes,
|
|
13
13
|
setSpanStatus,
|
|
14
14
|
withSpan
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-X7W45B5G.js";
|
|
16
16
|
|
|
17
17
|
// src/chat/slack/client.ts
|
|
18
18
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-FA6POGLH.js";
|
|
4
4
|
import {
|
|
5
5
|
getTurnRequestDeadline
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A6WPDFHQ.js";
|
|
7
7
|
import {
|
|
8
8
|
buildSentryConversationUrl,
|
|
9
9
|
deleteWebAuthorization
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SE3D225X.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureConversationWake,
|
|
13
13
|
requestConversationWork
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6CINHXIL.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-GSBPZHLQ.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-TN4LVILT.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-4ZZDTHFC.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-7RAETIYO.js";
|
|
67
67
|
import {
|
|
68
68
|
parseSlackThreadId,
|
|
69
69
|
readSlackRawMessageContext,
|
|
70
70
|
resolveSlackChannelIdFromMessage,
|
|
71
71
|
resolveSlackChannelIdFromThreadId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-CK2H7CFO.js";
|
|
73
73
|
import {
|
|
74
74
|
CooperativeTurnYieldError,
|
|
75
75
|
TurnSliceLimitExceededError,
|
|
@@ -96,29 +96,29 @@ import {
|
|
|
96
96
|
recordTurnSummary,
|
|
97
97
|
saveTurnCheckpoint,
|
|
98
98
|
turnHasReply
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-3L2PMOSR.js";
|
|
100
100
|
import {
|
|
101
101
|
getDashboardConversationLink,
|
|
102
102
|
getPluginSlackConversationLink
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-3FFUC32L.js";
|
|
104
104
|
import {
|
|
105
105
|
SlackActionError,
|
|
106
106
|
getHeaderString,
|
|
107
107
|
getSlackClient,
|
|
108
108
|
isDmChannel,
|
|
109
109
|
normalizeSlackConversationId
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-NTNU6T2D.js";
|
|
111
111
|
import {
|
|
112
112
|
getConversationEventStore,
|
|
113
113
|
getSqlExecutor,
|
|
114
114
|
requireSlackDestination,
|
|
115
115
|
upsertIdentity,
|
|
116
116
|
upsertLinkedIdentity
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-IIO5PFZX.js";
|
|
118
118
|
import {
|
|
119
119
|
acquireActiveLock,
|
|
120
120
|
getStateAdapter
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-MC57E5U5.js";
|
|
122
122
|
import {
|
|
123
123
|
botConfig,
|
|
124
124
|
escapeXml,
|
|
@@ -126,18 +126,18 @@ import {
|
|
|
126
126
|
getRuntimeMetadata,
|
|
127
127
|
normalizeSlackEmojiName,
|
|
128
128
|
standardModelId
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-GKC43TLS.js";
|
|
130
130
|
import {
|
|
131
131
|
discoverSkills
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-SRJA6QLM.js";
|
|
133
133
|
import {
|
|
134
134
|
pluginCatalogRuntime
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-EDJ64P2P.js";
|
|
136
136
|
import {
|
|
137
137
|
buildOAuthTokenRequest,
|
|
138
138
|
hasRequiredOAuthScope,
|
|
139
139
|
parseOAuthTokenResponse
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-WD7SEUZO.js";
|
|
141
141
|
import {
|
|
142
142
|
createSlackResumeActor,
|
|
143
143
|
isUserActor,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
setTags,
|
|
154
154
|
toOptionalString,
|
|
155
155
|
withLogContext
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-X7W45B5G.js";
|
|
157
157
|
import {
|
|
158
158
|
homeDir
|
|
159
159
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -1432,6 +1432,7 @@ async function resumeSlackTurnInContext(args) {
|
|
|
1432
1432
|
const recordedMessageId = recordDeliveredAssistantMessage({
|
|
1433
1433
|
conversation: deliveryState2.conversation,
|
|
1434
1434
|
sessionId: deliveryState2.sessionId,
|
|
1435
|
+
source: "slack",
|
|
1435
1436
|
text,
|
|
1436
1437
|
userMessageId: deliveryState2.userMessageId
|
|
1437
1438
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWebAuthorization,
|
|
3
3
|
deleteWebAuthorization
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SE3D225X.js";
|
|
5
5
|
import {
|
|
6
6
|
appendAndEnqueueInboundMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6CINHXIL.js";
|
|
8
8
|
import {
|
|
9
9
|
buildDeliveredTurnStatePatch,
|
|
10
10
|
completeAuthPauseTurn,
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
getTurnUserMessage,
|
|
13
13
|
processPluginTask,
|
|
14
14
|
scheduleSessionCompletedPluginTasks
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GSBPZHLQ.js";
|
|
16
16
|
import {
|
|
17
17
|
ConversationTurnLifecycleService,
|
|
18
18
|
coerceThreadConversationState,
|
|
19
19
|
getPersistedSandboxState,
|
|
20
20
|
getPersistedThreadState,
|
|
21
21
|
persistThreadStateById
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TN4LVILT.js";
|
|
23
23
|
import {
|
|
24
24
|
healthReportSchema
|
|
25
25
|
} from "./chunk-UTL3MHPC.js";
|
|
26
26
|
import {
|
|
27
27
|
parseSlackThreadId
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CK2H7CFO.js";
|
|
29
29
|
import {
|
|
30
30
|
TurnInputCommitLostError,
|
|
31
31
|
abandonTurnRecord,
|
|
@@ -48,17 +48,17 @@ import {
|
|
|
48
48
|
saveTurnCheckpoint,
|
|
49
49
|
startActiveTurn,
|
|
50
50
|
upsertConversationMessage
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3L2PMOSR.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeSlackConversationId
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-NTNU6T2D.js";
|
|
55
55
|
import {
|
|
56
56
|
getConversationEventStore,
|
|
57
57
|
getConversationStore
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IIO5PFZX.js";
|
|
59
59
|
import {
|
|
60
60
|
getSlackBotToken
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-GKC43TLS.js";
|
|
62
62
|
import {
|
|
63
63
|
credentialContextForActor
|
|
64
64
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
logWarn,
|
|
68
68
|
setTags,
|
|
69
69
|
withLogContext
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-X7W45B5G.js";
|
|
71
71
|
|
|
72
72
|
// src/handlers/health.ts
|
|
73
73
|
function readHealthReport() {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3L2PMOSR.js";
|
|
4
4
|
import {
|
|
5
5
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
6
6
|
} from "./chunk-3Y47VMHV.js";
|
|
7
7
|
import {
|
|
8
8
|
getDb
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IIO5PFZX.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AIJRG227.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MC57E5U5.js";
|
|
16
16
|
import {
|
|
17
17
|
juniorDestinations
|
|
18
18
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isRecord,
|
|
21
21
|
toOptionalNumber,
|
|
22
22
|
toOptionalString
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-X7W45B5G.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/conversations/turn-lifecycle.ts
|
|
26
26
|
var ConversationTurnLifecycleService = class {
|
|
@@ -175,13 +175,14 @@ var conversationSummaryReportSchema = z2.object({
|
|
|
175
175
|
sentryTraceUrl: z2.string().optional(),
|
|
176
176
|
sourceUrl: z2.string().url().optional(),
|
|
177
177
|
traceId: z2.string().optional(),
|
|
178
|
+
assignedWork: z2.boolean().optional(),
|
|
178
179
|
unfinishedWork: z2.boolean().optional()
|
|
179
180
|
}).strict();
|
|
180
181
|
var conversationReportMessageEventDataSchema = z2.object({
|
|
181
182
|
type: z2.literal("message"),
|
|
182
183
|
messageId: z2.string().min(1),
|
|
183
184
|
role: z2.enum(["assistant", "system", "user"]),
|
|
184
|
-
source: z2.
|
|
185
|
+
source: z2.enum(["slack", "web"]).optional(),
|
|
185
186
|
actorIdentity: actorIdentitySchema.optional(),
|
|
186
187
|
eventType: z2.string().min(1).optional(),
|
|
187
188
|
explicitMention: z2.boolean().optional(),
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
formatProviderLabel,
|
|
6
6
|
startOAuthFlow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7RAETIYO.js";
|
|
8
8
|
import {
|
|
9
9
|
parseSandboxEgressAuthRequiredSignal
|
|
10
10
|
} from "./chunk-7MA4HV4W.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
abandonReplacedPendingAuth,
|
|
13
13
|
canReusePendingAuthLink,
|
|
14
14
|
recordAuthorizationRequested
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3L2PMOSR.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AIJRG227.js";
|
|
19
19
|
import {
|
|
20
20
|
TURN_REASONING_LEVELS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GKC43TLS.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EDJ64P2P.js";
|
|
25
25
|
import {
|
|
26
26
|
credentialContextSchema
|
|
27
27
|
} from "./chunk-BDUENQD3.js";
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAgentRun
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-53W3LZEW.js";
|
|
4
|
+
import "../chunk-ZNWRYNCA.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
6
|
import {
|
|
7
7
|
createAgentRunner
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-4ZZDTHFC.js";
|
|
9
9
|
import "../chunk-RF6J3DIO.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-7RAETIYO.js";
|
|
11
11
|
import "../chunk-7MA4HV4W.js";
|
|
12
12
|
import "../chunk-5IDFPCON.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-6JUU7J2B.js";
|
|
14
|
+
import "../chunk-KCA5MKHU.js";
|
|
15
|
+
import "../chunk-CK2H7CFO.js";
|
|
16
|
+
import "../chunk-3L2PMOSR.js";
|
|
17
17
|
import "../chunk-3Y47VMHV.js";
|
|
18
18
|
import "../chunk-PDO5BLNM.js";
|
|
19
19
|
import "../chunk-UIE3R5XU.js";
|
|
20
20
|
import {
|
|
21
21
|
loadAppPluginSet
|
|
22
22
|
} from "../chunk-Y2CM7HXH.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-3FFUC32L.js";
|
|
24
|
+
import "../chunk-NTNU6T2D.js";
|
|
25
|
+
import "../chunk-IIO5PFZX.js";
|
|
26
|
+
import "../chunk-AIJRG227.js";
|
|
27
27
|
import "../chunk-EM225ITJ.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-MC57E5U5.js";
|
|
29
|
+
import "../chunk-GKC43TLS.js";
|
|
30
30
|
import "../chunk-VFUK3X5B.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-MJE7XKWP.js";
|
|
32
|
+
import "../chunk-SRJA6QLM.js";
|
|
33
|
+
import "../chunk-EDJ64P2P.js";
|
|
34
|
+
import "../chunk-WD7SEUZO.js";
|
|
35
35
|
import "../chunk-BDUENQD3.js";
|
|
36
36
|
import "../chunk-V7YE4WCP.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-X7W45B5G.js";
|
|
38
38
|
import "../chunk-6GWA276C.js";
|
|
39
39
|
import "../chunk-OOUNJNMR.js";
|
|
40
40
|
import "../chunk-H4HBKISO.js";
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-OGZPRMZA.js";
|
|
42
|
+
import "../chunk-KBGMYLSV.js";
|
|
43
43
|
import "../chunk-MLKGABMK.js";
|
|
44
44
|
|
|
45
45
|
// src/cli/chat.ts
|
|
@@ -162,10 +162,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
162
162
|
databaseModule
|
|
163
163
|
] = await Promise.all([
|
|
164
164
|
import("../plugins-HW4VWW6G.js"),
|
|
165
|
-
import("../agent-hooks-
|
|
166
|
-
import("../catalog-runtime-
|
|
167
|
-
import("../validation-
|
|
168
|
-
import("../db-
|
|
165
|
+
import("../agent-hooks-CCAR46PQ.js"),
|
|
166
|
+
import("../catalog-runtime-3SNKYCBG.js"),
|
|
167
|
+
import("../validation-DRLNJRND.js"),
|
|
168
|
+
import("../db-TYUUKGJX.js")
|
|
169
169
|
]);
|
|
170
170
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
171
171
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -231,14 +231,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
231
231
|
await configureLocalChatPlugins(pluginSet);
|
|
232
232
|
const { setExperimentalFeatures } = await import("../experimental-HH6OM6UH.js");
|
|
233
233
|
setExperimentalFeatures({ subagents: true });
|
|
234
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
235
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
234
|
+
const { runLocalAgentTurn } = await import("../runner-JUQXMACC.js");
|
|
235
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-AWVDKPR5.js");
|
|
236
236
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
237
237
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-U3ZX7C5W.js");
|
|
238
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
239
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
238
|
+
const { bindSpawnAgent } = await import("../spawn-32SSRWU4.js");
|
|
239
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-TGIXRRJY.js");
|
|
240
240
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
241
|
-
const { processConversationWork } = await import("../worker-
|
|
241
|
+
const { processConversationWork } = await import("../worker-IFXZOYED.js");
|
|
242
242
|
let agentRunner;
|
|
243
243
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
244
244
|
if (!agentRunner) {
|