@sentry/junior 0.148.0 → 0.150.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-VAUYT6PD.js → agent-hooks-SEOGOGKX.js} +10 -10
- package/dist/api/conversations/aggregate.d.ts +2 -0
- package/dist/api/conversations/create.d.ts +1 -1
- package/dist/api/conversations/pending-messages.d.ts +15 -0
- package/dist/api/people/shared.d.ts +2 -0
- package/dist/api/schema/conversation.d.ts +78 -4
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +186 -35
- package/dist/app.js +152 -186
- package/dist/{catalog-runtime-WADOZVTB.js → catalog-runtime-HA7RIWYT.js} +5 -5
- package/dist/chat/agent/index.d.ts +5 -4
- package/dist/chat/agent/prompt.d.ts +8 -5
- package/dist/chat/agent/resume.d.ts +2 -2
- package/dist/chat/agent/tools.d.ts +4 -7
- package/dist/chat/agent/{request.d.ts → types.d.ts} +138 -129
- package/dist/chat/agent-dispatch/types.d.ts +2 -2
- package/dist/chat/agent-invocations/spawn.d.ts +2 -2
- package/dist/chat/api-turns/work.d.ts +6 -1
- package/dist/chat/app/services.d.ts +1 -1
- package/dist/chat/plugins/viewer.d.ts +4 -0
- package/dist/chat/runtime/agent-runner.d.ts +7 -5
- package/dist/chat/runtime/reply-executor.d.ts +0 -2
- package/dist/chat/runtime/slack-resume.d.ts +3 -3
- package/dist/chat/services/conversation-memory.d.ts +2 -2
- package/dist/chat/services/conversation-title.d.ts +20 -0
- package/dist/chat/slack/assistant-thread/title.d.ts +10 -27
- package/dist/chat/state/conversation.d.ts +1 -0
- package/dist/chat/task-execution/paused-turn.d.ts +2 -2
- package/dist/chat/tools/types.d.ts +1 -1
- package/dist/{chunk-QOWHHM3F.js → chunk-3GL327SC.js} +1 -1
- package/dist/{chunk-45LOR4PU.js → chunk-3JVUWLR7.js} +45 -1
- package/dist/{chunk-4GXJUYJV.js → chunk-3ZMKDHCT.js} +2 -2
- package/dist/{chunk-DUY5CDAM.js → chunk-4KAYAIBV.js} +1 -1
- package/dist/{chunk-ULAU5ZGU.js → chunk-4VH7KLGC.js} +106 -113
- package/dist/{chunk-V2FXMOEA.js → chunk-64K7GKRW.js} +2 -2
- package/dist/{chunk-2B3PT3V2.js → chunk-6PFDWAK2.js} +1 -1
- package/dist/{chunk-LNVEIJ2L.js → chunk-7D4GNUV2.js} +5 -5
- package/dist/{chunk-ZPL2RR7F.js → chunk-7GOP6VFJ.js} +40 -36
- package/dist/{chunk-HWQGBIH7.js → chunk-7NLW2NF5.js} +1 -1
- package/dist/{chunk-55F4QU2V.js → chunk-7QB2CKCW.js} +1 -1
- package/dist/{chunk-WCN4YSH7.js → chunk-DWETNV66.js} +6 -6
- package/dist/{chunk-D3WPMGEX.js → chunk-F5NMSEBL.js} +1 -1
- package/dist/{chunk-IL4EDBMV.js → chunk-FEFEIA3Z.js} +5 -5
- package/dist/{chunk-WOONT5ZP.js → chunk-H2RLIJ7G.js} +1 -1
- package/dist/{chunk-VRHTNBA6.js → chunk-ILYL6YFD.js} +3 -3
- package/dist/{chunk-VCYSOXON.js → chunk-IPGNWXA3.js} +545 -7
- package/dist/{chunk-LAZGHEYU.js → chunk-IZRSLANA.js} +1 -1
- package/dist/{chunk-EAI67NTM.js → chunk-JQXJ2E53.js} +1 -1
- package/dist/{chunk-HLPLT3NY.js → chunk-M5OZSVJI.js} +8 -4
- package/dist/{chunk-XJ42NBP5.js → chunk-MCNP7A7T.js} +8 -8
- package/dist/{chunk-OJCP3C3J.js → chunk-NCGVQXX5.js} +22 -26
- package/dist/{chunk-4AQZYNHM.js → chunk-NNOCRVQO.js} +2 -2
- package/dist/{chunk-GXYDVZKM.js → chunk-P43QM7JY.js} +5 -5
- package/dist/{chunk-EINWQFXI.js → chunk-QPIPYVGE.js} +5 -5
- package/dist/{chunk-GDFF3BQG.js → chunk-RF6J3DIO.js} +34 -36
- package/dist/{chunk-D6YX4NNN.js → chunk-SH6ZKJFZ.js} +4 -4
- package/dist/{chunk-LE5H7LMT.js → chunk-SHDREBGC.js} +1 -1
- package/dist/{chunk-VMNRXKAH.js → chunk-TZLYAO2J.js} +191 -134
- package/dist/{chunk-RRJV5UR5.js → chunk-UIMBNY6O.js} +11 -337
- package/dist/{chunk-ZCHIC2GM.js → chunk-UOFQEVR5.js} +15 -6
- package/dist/{chunk-7OEIXFC3.js → chunk-Y2VZ54CQ.js} +12 -12
- package/dist/{chunk-VY6W3T43.js → chunk-ZBOGYZ53.js} +4 -4
- package/dist/{chunk-POSZWRGL.js → chunk-ZUQT35YC.js} +1 -1
- package/dist/cli/chat.js +31 -32
- 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-XUKZRFFK.js → db-HUW75QG7.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-LPZMMGFI.js → oauth-callback-server-DP7NIZPQ.js} +24 -25
- package/dist/{runner-DGKUTMPX.js → runner-AINV7K3M.js} +47 -45
- package/dist/{skills-P7YUFSXM.js → skills-PKS37E6B.js} +6 -6
- package/dist/spawn-NJCDEPPL.js +38 -0
- package/dist/{validation-S7U5M5NR.js → validation-PDC3MVMM.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-GAA7TVAD.js → work-KJLJRPXS.js} +17 -17
- package/dist/{worker-JXPJH3QB.js → worker-TYQ7YVIR.js} +11 -11
- package/package.json +5 -5
- package/dist/chunk-4EA2SFK2.js +0 -137
- package/dist/spawn-DSK3ZEVD.js +0 -38
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendAndEnqueueInboundMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M5OZSVJI.js";
|
|
4
4
|
import {
|
|
5
|
-
buildConversationContext,
|
|
6
5
|
buildDeliveredTurnStatePatch,
|
|
7
6
|
finalizeFailedTurnReplyWithEvent,
|
|
8
7
|
getTurnUserMessage,
|
|
9
|
-
markConversationMessage,
|
|
10
|
-
normalizeConversationText,
|
|
11
8
|
processPluginTask,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
upsertConversationMessage
|
|
15
|
-
} from "./chunk-RRJV5UR5.js";
|
|
9
|
+
scheduleSessionCompletedPluginTasks
|
|
10
|
+
} from "./chunk-UIMBNY6O.js";
|
|
16
11
|
import {
|
|
17
12
|
ConversationTurnLifecycleService,
|
|
18
13
|
coerceThreadConversationState,
|
|
19
14
|
getPersistedSandboxState,
|
|
20
15
|
getPersistedThreadState,
|
|
21
16
|
persistThreadStateById
|
|
22
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FEFEIA3Z.js";
|
|
23
18
|
import {
|
|
24
19
|
healthReportSchema
|
|
25
20
|
} from "./chunk-UTL3MHPC.js";
|
|
26
21
|
import {
|
|
27
22
|
parseSlackThreadId
|
|
28
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-H2RLIJ7G.js";
|
|
29
24
|
import {
|
|
30
25
|
TurnInputCommitLostError,
|
|
26
|
+
buildConversationContext,
|
|
31
27
|
buildDeterministicTurnId,
|
|
32
28
|
getAssistantReplyText,
|
|
33
29
|
getConversationTurnBoundaryError,
|
|
@@ -36,19 +32,23 @@ import {
|
|
|
36
32
|
isTurnInputCommitLostError,
|
|
37
33
|
listTurnSummaries,
|
|
38
34
|
loadProjection,
|
|
35
|
+
markConversationMessage,
|
|
39
36
|
markTurnFailed,
|
|
37
|
+
normalizeConversationText,
|
|
40
38
|
persistConversationMessages,
|
|
41
39
|
persistWithRetry,
|
|
40
|
+
recordDeliveredAssistantMessage,
|
|
42
41
|
saveTurnCheckpoint,
|
|
43
|
-
startActiveTurn
|
|
44
|
-
|
|
42
|
+
startActiveTurn,
|
|
43
|
+
upsertConversationMessage
|
|
44
|
+
} from "./chunk-IPGNWXA3.js";
|
|
45
45
|
import {
|
|
46
46
|
normalizeSlackConversationId
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-64K7GKRW.js";
|
|
48
48
|
import {
|
|
49
49
|
getConversationEventStore,
|
|
50
50
|
getConversationStore
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ILYL6YFD.js";
|
|
52
52
|
import {
|
|
53
53
|
credentialContextForActor
|
|
54
54
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
logException,
|
|
57
57
|
setTags,
|
|
58
58
|
withLogContext
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-JQXJ2E53.js";
|
|
60
60
|
|
|
61
61
|
// src/handlers/health.ts
|
|
62
62
|
function readHealthReport() {
|
|
@@ -204,7 +204,11 @@ async function recordApiConversationActivity(args) {
|
|
|
204
204
|
existing: existing?.destination
|
|
205
205
|
});
|
|
206
206
|
const isNewRoot = !existing;
|
|
207
|
-
const
|
|
207
|
+
const visibility = args.rootVisibility === "private" ? "private" : "public";
|
|
208
|
+
const source = isNewRoot ? webSourceForConversation({
|
|
209
|
+
conversationId: args.conversationId,
|
|
210
|
+
visibility
|
|
211
|
+
}) : void 0;
|
|
208
212
|
await store.recordActivity({
|
|
209
213
|
conversationId: args.conversationId,
|
|
210
214
|
destination,
|
|
@@ -214,7 +218,7 @@ async function recordApiConversationActivity(args) {
|
|
|
214
218
|
// continues it. Mailbox entries still carry source "web" per turn.
|
|
215
219
|
...isNewRoot ? { source: "web" } : {},
|
|
216
220
|
...source ? { sessionSource: source } : {},
|
|
217
|
-
...isNewRoot ? { visibility
|
|
221
|
+
...isNewRoot ? { visibility } : {}
|
|
218
222
|
});
|
|
219
223
|
return destination;
|
|
220
224
|
}
|
|
@@ -231,7 +235,8 @@ async function createAndEnqueueApiConversation(input, options) {
|
|
|
231
235
|
actor: input.actor,
|
|
232
236
|
conversationId,
|
|
233
237
|
idempotencyKey: input.idempotencyKey,
|
|
234
|
-
message: input.message
|
|
238
|
+
message: input.message,
|
|
239
|
+
rootVisibility: input.visibility === "private" ? "private" : "public"
|
|
235
240
|
},
|
|
236
241
|
options
|
|
237
242
|
);
|
|
@@ -253,7 +258,8 @@ async function appendAndEnqueueApiConversationMessage(input, options) {
|
|
|
253
258
|
actor: input.actor,
|
|
254
259
|
conversationId: input.conversationId,
|
|
255
260
|
conversationStore: options.conversationStore,
|
|
256
|
-
nowMs
|
|
261
|
+
nowMs,
|
|
262
|
+
...input.rootVisibility ? { rootVisibility: input.rootVisibility } : {}
|
|
257
263
|
});
|
|
258
264
|
const result = await appendAndEnqueueInboundMessage({
|
|
259
265
|
message: buildApiTurnInboundMessage({
|
|
@@ -444,7 +450,8 @@ function createApiTurnWorker(options) {
|
|
|
444
450
|
},
|
|
445
451
|
meta: {
|
|
446
452
|
explicitMention: true,
|
|
447
|
-
replied: false
|
|
453
|
+
replied: false,
|
|
454
|
+
source: "web"
|
|
448
455
|
}
|
|
449
456
|
});
|
|
450
457
|
await persistConversationMessages({
|
|
@@ -479,6 +486,7 @@ function createApiTurnWorker(options) {
|
|
|
479
486
|
recordDeliveredAssistantMessage({
|
|
480
487
|
conversation,
|
|
481
488
|
sessionId: turnId,
|
|
489
|
+
source: "web",
|
|
482
490
|
text: replyText,
|
|
483
491
|
userMessageId
|
|
484
492
|
});
|
|
@@ -514,24 +522,20 @@ function createApiTurnWorker(options) {
|
|
|
514
522
|
conversationId: context.conversationId,
|
|
515
523
|
turnId,
|
|
516
524
|
runId: currentRunId,
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
525
|
+
instruction: {
|
|
526
|
+
text,
|
|
527
|
+
context: buildConversationContext(conversation, {
|
|
520
528
|
excludeMessageId: userMessageId
|
|
521
|
-
})
|
|
522
|
-
piMessages
|
|
523
|
-
},
|
|
524
|
-
routing: {
|
|
525
|
-
actor,
|
|
526
|
-
credentialContext: credentialContextForActor(actor),
|
|
527
|
-
destination,
|
|
528
|
-
publishExternally: false,
|
|
529
|
-
source,
|
|
530
|
-
surface: "api"
|
|
531
|
-
},
|
|
532
|
-
policy: {
|
|
533
|
-
disabledFeatures: ["interactive-auth"]
|
|
529
|
+
})
|
|
534
530
|
},
|
|
531
|
+
history: piMessages,
|
|
532
|
+
actor,
|
|
533
|
+
credentialContext: credentialContextForActor(actor),
|
|
534
|
+
destination,
|
|
535
|
+
publishExternally: false,
|
|
536
|
+
source,
|
|
537
|
+
surface: "api",
|
|
538
|
+
disabledFeatures: ["interactive-auth"],
|
|
535
539
|
state: {
|
|
536
540
|
pendingAuth: conversation.processing.pendingAuth,
|
|
537
541
|
sandboxRef
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
isDmChannel,
|
|
5
5
|
normalizeSlackConversationId,
|
|
6
6
|
withSlackRetries
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-64K7GKRW.js";
|
|
8
8
|
import {
|
|
9
9
|
parseDestination
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ILYL6YFD.js";
|
|
11
11
|
import {
|
|
12
12
|
getStateAdapter
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6PFDWAK2.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeSlackEmojiName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3ZMKDHCT.js";
|
|
17
17
|
import {
|
|
18
18
|
pluginCatalogRuntime
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7NLW2NF5.js";
|
|
20
20
|
import {
|
|
21
21
|
parseSlackMessageTs,
|
|
22
22
|
parseSlackUserId
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
isRecord,
|
|
26
26
|
logInfo,
|
|
27
27
|
logWarn
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JQXJ2E53.js";
|
|
29
29
|
|
|
30
30
|
// src/chat/slack/outbound.ts
|
|
31
31
|
var MAX_SLACK_MESSAGE_TEXT_CHARS = 4e4;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IPGNWXA3.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-ILYL6YFD.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F5NMSEBL.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6PFDWAK2.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-JQXJ2E53.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/conversations/turn-lifecycle.ts
|
|
26
26
|
var ConversationTurnLifecycleService = class {
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
juniorConversations,
|
|
6
6
|
juniorIdentities,
|
|
7
7
|
juniorUsers
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-F5NMSEBL.js";
|
|
9
9
|
import {
|
|
10
10
|
TURN_REASONING_LEVELS,
|
|
11
11
|
getChatConfig,
|
|
12
12
|
modelProfileSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3ZMKDHCT.js";
|
|
14
14
|
import {
|
|
15
15
|
juniorDestinations
|
|
16
16
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-F3B2YJ76.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeIdentityEmail
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JQXJ2E53.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/conversations/sql/store.ts
|
|
26
26
|
import { randomUUID as randomUUID2 } from "crypto";
|