@sentry/junior 0.145.0 → 0.147.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-L7D2BDVV.js → agent-hooks-HS6VGUPM.js} +10 -10
- package/dist/api/conversations/detail.d.ts +1 -0
- package/dist/api/conversations/event-list.d.ts +1 -0
- package/dist/api/schema/conversation.d.ts +4 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +26 -22
- package/dist/app.js +285 -290
- package/dist/{catalog-runtime-QLAC4Q3W.js → catalog-runtime-M6ZTPYRV.js} +5 -5
- package/dist/chat/agent/prompt.d.ts +0 -2
- package/dist/chat/agent/request.d.ts +2 -5
- package/dist/chat/agent/resume.d.ts +0 -3
- package/dist/chat/agent/sandbox.d.ts +2 -2
- package/dist/chat/agent/skills.d.ts +0 -1
- package/dist/chat/agent/tools.d.ts +0 -3
- package/dist/chat/agent-dispatch/types.d.ts +2 -2
- package/dist/chat/capabilities/jr-rpc-command.d.ts +2 -2
- package/dist/chat/configuration/service.d.ts +5 -2
- package/dist/chat/configuration/sql.d.ts +9 -0
- package/dist/chat/configuration/types.d.ts +17 -13
- package/dist/chat/conversations/history.d.ts +3 -0
- package/dist/chat/conversations/message-search.d.ts +32 -0
- package/dist/chat/conversations/projection.d.ts +10 -0
- package/dist/chat/conversations/sql/message-search.d.ts +4 -0
- package/dist/chat/conversations/tool-source.d.ts +5 -0
- package/dist/chat/credentials/unlink-provider.d.ts +2 -1
- package/dist/chat/credentials/user-token-store.d.ts +2 -0
- package/dist/chat/db.d.ts +2 -2
- package/dist/chat/event-tasks/tool-support.d.ts +2 -0
- package/dist/chat/identities/sql.d.ts +8 -0
- package/dist/chat/logging.d.ts +2 -0
- package/dist/chat/mcp/auth-store.d.ts +0 -2
- package/dist/chat/mcp/oauth.d.ts +0 -2
- package/dist/chat/oauth-flow.d.ts +3 -1
- package/dist/chat/pi/client.d.ts +2 -0
- package/dist/chat/plugins/credential-hooks.d.ts +2 -0
- package/dist/chat/prompt.d.ts +0 -2
- package/dist/chat/resource-events/notification.d.ts +2 -1
- package/dist/chat/runtime/delivered-turn-state.d.ts +1 -4
- package/dist/chat/runtime/thread-state.d.ts +8 -11
- package/dist/chat/runtime/turn-input.d.ts +4 -2
- package/dist/chat/runtime/turn-preparation.d.ts +2 -4
- package/dist/chat/sandbox/command-result.d.ts +2 -0
- package/dist/chat/sandbox/egress/schemas.d.ts +6 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +2 -0
- package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -0
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -0
- package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -0
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -0
- package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -0
- package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -3
- package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
- package/dist/chat/services/provider-default-config.d.ts +2 -2
- package/dist/chat/services/subscribed-decision.d.ts +3 -0
- package/dist/chat/services/subscribed-reply-policy.d.ts +1 -0
- package/dist/chat/services/turn-result.d.ts +0 -3
- package/dist/chat/services/turn-router.d.ts +3 -0
- package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -1
- package/dist/chat/slack/assistant-thread/title.d.ts +0 -3
- package/dist/chat/slack/dispatch-turn.d.ts +1 -1
- package/dist/chat/slack/message/attachments.d.ts +2 -0
- package/dist/chat/slack/message/blocks.d.ts +2 -0
- package/dist/chat/slack/message/content.d.ts +18 -0
- package/dist/chat/slack/message/identity.d.ts +7 -0
- package/dist/chat/slack/tools/canvas/context.d.ts +0 -10
- package/dist/chat/slack/tools/canvas/create.d.ts +2 -0
- package/dist/chat/slack/tools/canvas/edit.d.ts +2 -0
- package/dist/chat/slack/tools/canvas/read.d.ts +2 -0
- package/dist/chat/slack/tools/canvas/write.d.ts +2 -0
- package/dist/chat/slack/tools/channel-list-messages.d.ts +2 -0
- package/dist/chat/slack/tools/{conversation-search.d.ts → conversation-message-search.d.ts} +23 -14
- package/dist/chat/slack/tools/list/add-items.d.ts +4 -1
- package/dist/chat/slack/tools/list/api.d.ts +8 -1
- package/dist/chat/slack/tools/list/create.d.ts +2 -0
- package/dist/chat/slack/tools/list/get-items.d.ts +5 -3
- package/dist/chat/slack/tools/list/update-item.d.ts +5 -1
- package/dist/chat/slack/tools/message-add-reaction.d.ts +2 -0
- package/dist/chat/slack/tools/public-search.d.ts +2 -0
- package/dist/chat/slack/tools/send-files.d.ts +2 -0
- package/dist/chat/slack/tools/thread-read.d.ts +2 -0
- package/dist/chat/slack/vision-cache.d.ts +5 -0
- package/dist/chat/state/conversation.d.ts +4 -5
- package/dist/chat/task-execution/checkpoint.d.ts +1 -3
- package/dist/chat/task-execution/turn-cursor.d.ts +0 -9
- package/dist/chat/tool-support/structured-result.d.ts +1 -0
- package/dist/chat/tool-support/timed-out-tool-result.d.ts +11 -0
- package/dist/chat/tools/create-event-task.d.ts +2 -0
- package/dist/chat/tools/delete-event-task.d.ts +2 -0
- package/dist/chat/tools/handoff/tool.d.ts +2 -0
- package/dist/chat/tools/list-event-tasks.d.ts +2 -0
- package/dist/chat/tools/list-resource-event-subscriptions.d.ts +2 -0
- package/dist/chat/tools/runtime/report-progress.d.ts +2 -0
- package/dist/chat/tools/runtime/spawn-agent.d.ts +2 -0
- package/dist/chat/tools/{query-conversation-events.d.ts → search-conversation-events.d.ts} +5 -3
- package/dist/chat/tools/search-resource-event-types.d.ts +2 -0
- package/dist/chat/tools/search-tools.d.ts +2 -0
- package/dist/chat/tools/skill/load-skill.d.ts +2 -0
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +2 -0
- package/dist/chat/tools/stop-watching-resources.d.ts +2 -0
- package/dist/chat/tools/system-time.d.ts +2 -0
- package/dist/chat/tools/types.d.ts +0 -6
- package/dist/chat/tools/update-event-task.d.ts +2 -0
- package/dist/chat/tools/user-lookup.d.ts +29 -0
- package/dist/chat/tools/watch-resource-events.d.ts +2 -0
- package/dist/chat/tools/web/fetch-tool.d.ts +2 -0
- package/dist/chat/tools/web/image-generate.d.ts +2 -0
- package/dist/chat/tools/web/search.d.ts +2 -0
- package/dist/{chunk-PJ4NMVQB.js → chunk-34GS7B6L.js} +2 -2
- package/dist/{chunk-2LWPFSB4.js → chunk-4LJO56OJ.js} +9 -1
- package/dist/{chunk-QJBDABQA.js → chunk-6H5SZR24.js} +16 -20
- package/dist/{chunk-LVVSIMBB.js → chunk-745QJ3ZA.js} +1 -1
- package/dist/{chunk-64SBYW2O.js → chunk-7A4M7PCV.js} +613 -561
- package/dist/{chunk-XFKIRN3Q.js → chunk-7NVJVJID.js} +4 -3
- package/dist/{chunk-FUBRJA5F.js → chunk-7UQIVT6G.js} +13 -6
- package/dist/{chunk-ZIAMN2UW.js → chunk-AIOK6LAG.js} +40 -513
- package/dist/{chunk-EIX2LQ6L.js → chunk-AVOCH2Z5.js} +3 -3
- package/dist/{chunk-GUWLDMGF.js → chunk-AVZDSUFB.js} +4 -4
- package/dist/{chunk-2XET6PKP.js → chunk-AYU72WO7.js} +102 -73
- package/dist/chunk-AZ7EAOBE.js +566 -0
- package/dist/{chunk-DXEQAIUV.js → chunk-CSZINQJ2.js} +1 -1
- package/dist/{chunk-HLOUZC5C.js → chunk-CWP5RHVX.js} +4 -4
- package/dist/{chunk-DS3J6WGY.js → chunk-DLDRQHG5.js} +1 -1
- package/dist/{chunk-27TEJTZO.js → chunk-DU74WPIC.js} +55 -37
- package/dist/{chunk-YD54Q45G.js → chunk-EFLJ2WJH.js} +6 -4
- package/dist/{chunk-CD2XFGYQ.js → chunk-GGB4WL5A.js} +1 -1
- package/dist/{chunk-GDV5LXRA.js → chunk-IIOOO4FQ.js} +1 -1
- package/dist/{chunk-SIN3MXH6.js → chunk-JUUKWRBE.js} +1 -1
- package/dist/{chunk-VTDMB7XX.js → chunk-K4SZAP3K.js} +1 -1
- package/dist/{chunk-QUG4JSZK.js → chunk-ORO3PWKQ.js} +1 -1
- package/dist/{chunk-RUSS62EN.js → chunk-PVNG6UMU.js} +3 -3
- package/dist/{chunk-I47UGQPJ.js → chunk-Q4R73I43.js} +365 -206
- package/dist/{chunk-JTGS3ZZE.js → chunk-RXBVB2JM.js} +1 -1
- package/dist/{chunk-TZRXYWRE.js → chunk-SGZO7UWH.js} +2 -2
- package/dist/{chunk-JLMVCNXL.js → chunk-SVHUEHUL.js} +1 -0
- package/dist/{chunk-B46ZMVOV.js → chunk-X5UY34KT.js} +6 -5
- package/dist/{chunk-5PNPQYTO.js → chunk-YBVXBNSV.js} +2 -2
- package/dist/{chunk-HISR3DTV.js → chunk-YEO3VX72.js} +10 -25
- package/dist/{chunk-ZIMRGFYL.js → chunk-YHDERDRO.js} +7 -6
- package/dist/{chunk-WF5HVH3M.js → chunk-YNTTROJT.js} +1 -1
- package/dist/{chunk-2UH3JI64.js → chunk-YSB2N563.js} +87 -34
- package/dist/{chunk-ZYAJMESY.js → chunk-Z4YU7Z4L.js} +3 -2
- 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 +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/location-configurations.d.ts +127 -0
- package/dist/db/schema.d.ts +128 -1
- package/dist/{db-62PW6LM3.js → db-CSEW4RII.js} +9 -9
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-6NZNHJAM.js → oauth-callback-server-FUEV5HNG.js} +24 -24
- package/dist/{runner-GCRPG3GQ.js → runner-U3XHSKSH.js} +21 -41
- package/dist/{skills-2S3MDFIQ.js → skills-AKE6W3WI.js} +6 -6
- package/dist/spawn-B6GDTWJ4.js +39 -0
- package/dist/{validation-HAOLCJ5A.js → validation-WDTAULUF.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-R4XYKMUW.js → work-C3HAO2BG.js} +17 -17
- package/dist/{worker-U2UCVR7M.js → worker-LNP4YKBM.js} +10 -10
- package/migrations/0024_misty_typhoid_mary.sql +12 -0
- package/migrations/meta/0024_snapshot.json +2275 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -4
- package/dist/chat/conversations/search.d.ts +0 -24
- package/dist/chat/conversations/sql/search.d.ts +0 -4
- package/dist/chat/slack/legacy-attachments.d.ts +0 -4
- package/dist/chat/slack/message.d.ts +0 -12
- package/dist/chat/slack/tools/user-lookup.d.ts +0 -26
- package/dist/chat/state/artifacts.d.ts +0 -30
- package/dist/chat/tool-support/turn-deadline-result.d.ts +0 -3
- package/dist/chunk-Q6QZTTLS.js +0 -55
- package/dist/spawn-7WK37BTD.js +0 -39
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
coerceThreadConversationState,
|
|
3
|
+
getPersistedThreadState,
|
|
4
|
+
persistThreadStateById
|
|
5
|
+
} from "./chunk-AZ7EAOBE.js";
|
|
1
6
|
import {
|
|
2
7
|
recordTaskExecution
|
|
3
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AVOCH2Z5.js";
|
|
4
9
|
import {
|
|
5
10
|
pluginTaskId,
|
|
6
11
|
pluginTaskParamsSchema,
|
|
@@ -10,12 +15,10 @@ import {
|
|
|
10
15
|
calculateContextCompactionTargetTokens,
|
|
11
16
|
estimateTextTokens,
|
|
12
17
|
getConversationContextCompactionTriggerTokens
|
|
13
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-K4SZAP3K.js";
|
|
14
19
|
import {
|
|
15
20
|
buildDeterministicTurnId,
|
|
16
21
|
clearPendingAuth,
|
|
17
|
-
coerceThreadConversationState,
|
|
18
|
-
getPersistedThreadState,
|
|
19
22
|
getPiMessageRole,
|
|
20
23
|
getTurnRecord,
|
|
21
24
|
hydrateConversationMessages,
|
|
@@ -24,18 +27,16 @@ import {
|
|
|
24
27
|
isToolResultMessage,
|
|
25
28
|
markTurnClosed,
|
|
26
29
|
markTurnCompleted,
|
|
27
|
-
mergeArtifactsState,
|
|
28
30
|
normalizeToolNameFromResult,
|
|
29
|
-
persistThreadStateById,
|
|
30
31
|
stripRuntimeTurnContext
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AIOK6LAG.js";
|
|
32
33
|
import {
|
|
33
34
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
34
35
|
} from "./chunk-3Y47VMHV.js";
|
|
35
36
|
import {
|
|
36
37
|
fallbackShortTitle,
|
|
37
38
|
generateShortTitle
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-Z4YU7Z4L.js";
|
|
39
40
|
import {
|
|
40
41
|
createPluginConversationEvents,
|
|
41
42
|
createPluginEmbedder,
|
|
@@ -43,15 +44,15 @@ import {
|
|
|
43
44
|
createPluginModel,
|
|
44
45
|
createPluginState,
|
|
45
46
|
getPlugins
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-YHDERDRO.js";
|
|
47
48
|
import {
|
|
48
49
|
getConversationStore,
|
|
49
50
|
getDb,
|
|
50
51
|
sameActorIdentity
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-YSB2N563.js";
|
|
52
53
|
import {
|
|
53
54
|
getStateAdapter
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ORO3PWKQ.js";
|
|
55
56
|
import {
|
|
56
57
|
ProviderError,
|
|
57
58
|
botConfig,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
findProviderError,
|
|
60
61
|
getProviderErrorAttributes,
|
|
61
62
|
getProviderErrorUserMessage
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-7NVJVJID.js";
|
|
63
64
|
import {
|
|
64
65
|
credentialSubjectSchema
|
|
65
66
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -70,7 +71,7 @@ import {
|
|
|
70
71
|
buildTurnFailureResponse,
|
|
71
72
|
logWarn,
|
|
72
73
|
setSpanAttributes
|
|
73
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-4LJO56OJ.js";
|
|
74
75
|
|
|
75
76
|
// src/chat/services/conversation-memory.ts
|
|
76
77
|
var CONTEXT_MIN_LIVE_MESSAGES = 12;
|
|
@@ -255,6 +256,7 @@ async function summarizeConversationChunk(messages, conversation, context, deps)
|
|
|
255
256
|
const result = await deps.completeText({
|
|
256
257
|
modelId: botConfig.fastModelId,
|
|
257
258
|
temperature: 0,
|
|
259
|
+
promptName: "junior.thread_compaction",
|
|
258
260
|
messages: [
|
|
259
261
|
{
|
|
260
262
|
role: "user",
|
|
@@ -380,11 +382,6 @@ function getConversationMessageSlackTs(message) {
|
|
|
380
382
|
// src/chat/runtime/delivered-turn-state.ts
|
|
381
383
|
function buildDeliveredTurnStatePatch(args) {
|
|
382
384
|
const conversation = structuredClone(args.conversation);
|
|
383
|
-
const artifactStatePatch = {
|
|
384
|
-
...args.reply.artifactStatePatch ?? {},
|
|
385
|
-
...args.artifactStatePatch ?? {}
|
|
386
|
-
};
|
|
387
|
-
const artifacts = Object.keys(artifactStatePatch).length > 0 ? mergeArtifactsState(args.artifacts, artifactStatePatch) : void 0;
|
|
388
385
|
clearPendingAuth(conversation, args.sessionId);
|
|
389
386
|
markConversationMessage(conversation, args.userMessageId, {
|
|
390
387
|
replied: true,
|
|
@@ -396,7 +393,6 @@ function buildDeliveredTurnStatePatch(args) {
|
|
|
396
393
|
sessionId: args.sessionId
|
|
397
394
|
});
|
|
398
395
|
return {
|
|
399
|
-
artifacts,
|
|
400
396
|
conversation,
|
|
401
397
|
sandboxRef: args.reply.sandboxRef
|
|
402
398
|
};
|
|
@@ -410,7 +406,7 @@ import {
|
|
|
410
406
|
|
|
411
407
|
// src/chat/services/turn-session-routing.ts
|
|
412
408
|
async function resolveTurnSessionRouting(args) {
|
|
413
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
409
|
+
const conversationStore = args.conversationStore ?? (await import("./db-CSEW4RII.js")).getConversationStore();
|
|
414
410
|
const conversation = await conversationStore.get({
|
|
415
411
|
conversationId: args.conversationId
|
|
416
412
|
});
|