@sentry/junior 0.144.0 → 0.146.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-GCUTGKY3.js → agent-hooks-SLJADYE5.js} +10 -10
- package/dist/api/conversations/detail.d.ts +1 -0
- package/dist/api/schema/conversation.d.ts +2 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +40 -22
- package/dist/app.js +400 -461
- package/dist/{catalog-runtime-DWVYKDC6.js → catalog-runtime-RQIMSDPR.js} +5 -5
- package/dist/chat/agent/request.d.ts +1 -1
- package/dist/chat/agent/resume.d.ts +6 -18
- package/dist/chat/agent/skills.d.ts +0 -1
- package/dist/chat/agent/tools.d.ts +1 -2
- package/dist/chat/agent-dispatch/types.d.ts +1 -1
- package/dist/chat/app/conversation-work.d.ts +24 -0
- package/dist/chat/conversations/message-search.d.ts +32 -0
- package/dist/chat/conversations/projection.d.ts +11 -3
- package/dist/chat/conversations/sql/message-search.d.ts +4 -0
- package/dist/chat/conversations/store.d.ts +1 -1
- package/dist/chat/conversations/tool-source.d.ts +5 -0
- package/dist/chat/db.d.ts +2 -2
- package/dist/chat/runtime/agent-run-outcome.d.ts +1 -1
- package/dist/chat/runtime/reply-executor.d.ts +5 -5
- package/dist/chat/runtime/slack-resume.d.ts +12 -4
- 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/{conversation-search.d.ts → conversation-message-search.d.ts} +21 -14
- package/dist/chat/slack/tools/user-lookup.d.ts +2 -1
- package/dist/chat/state/locks.d.ts +28 -0
- package/dist/chat/task-execution/checkpoint.d.ts +84 -0
- package/dist/chat/task-execution/paused-turn.d.ts +29 -0
- package/dist/chat/task-execution/queue-signing.d.ts +1 -0
- package/dist/chat/task-execution/queue.d.ts +7 -1
- package/dist/chat/task-execution/slack-work.d.ts +1 -1
- package/dist/chat/task-execution/state.d.ts +4 -4
- package/dist/chat/task-execution/store.d.ts +2 -2
- package/dist/chat/task-execution/turn-cursor-keys.d.ts +6 -0
- package/dist/chat/{state/turn-session.d.ts → task-execution/turn-cursor.d.ts} +52 -51
- package/dist/chat/task-execution/turn-wake.d.ts +29 -0
- package/dist/chat/tools/{query-conversation-events.d.ts → search-conversation-events.d.ts} +3 -3
- package/dist/chat/tools/types.d.ts +1 -1
- package/dist/{chunk-SBZP2J5Q.js → chunk-37EVZP66.js} +48 -35
- package/dist/{chunk-A67GZN73.js → chunk-37JJDS4H.js} +1 -1
- package/dist/{chunk-BBCWYXHB.js → chunk-47OSH2ZO.js} +7 -7
- package/dist/{chunk-4X5KM7Z6.js → chunk-AISNSNDV.js} +14 -14
- package/dist/{chunk-RIFJUJSI.js → chunk-B63BF443.js} +1 -1
- package/dist/{chunk-SSDTQDYQ.js → chunk-BLETMLRX.js} +566 -268
- package/dist/{chunk-I44JB7HQ.js → chunk-F7REGDKO.js} +1 -1
- package/dist/{chunk-DVO5VKYQ.js → chunk-FEKQHPVA.js} +5 -5
- package/dist/{chunk-SUK7NC5A.js → chunk-FGHADGIC.js} +2 -2
- package/dist/{chunk-7KAW7UF4.js → chunk-FXDDDSPL.js} +4 -4
- package/dist/{chunk-BEGGFVFR.js → chunk-GDQEU4I7.js} +414 -542
- package/dist/{chunk-UDQMY6RS.js → chunk-GYEKOX7N.js} +43 -1
- package/dist/{chunk-W7JFV5SB.js → chunk-H6U2U3EP.js} +14 -17
- package/dist/{chunk-WTX2RFJG.js → chunk-HQE6EJS5.js} +1 -1
- package/dist/{chunk-IUFM5JWV.js → chunk-JAL3CH4G.js} +3 -0
- package/dist/{chunk-E7HCWOHG.js → chunk-JLMVCNXL.js} +2 -1
- package/dist/{chunk-PELZ2ZSY.js → chunk-JUA6VU2Z.js} +33 -63
- package/dist/{chunk-SHEEZSLY.js → chunk-LVW7BLLT.js} +2 -2
- package/dist/{chunk-GKA74DRA.js → chunk-M6ZWP4RI.js} +1 -1
- package/dist/{chunk-HNO2E5WB.js → chunk-MCFIXAV5.js} +1 -1
- package/dist/{chunk-3GU4PWA3.js → chunk-MKRIZ4VG.js} +29 -30
- package/dist/{chunk-QUZJDAQQ.js → chunk-OFPYOC3M.js} +93 -90
- package/dist/{chunk-ZF3N3JD6.js → chunk-PB222GIA.js} +1 -1
- package/dist/{chunk-PKH6762I.js → chunk-PH4Q3A6W.js} +1 -1
- package/dist/{chunk-STFCL3K4.js → chunk-QG7OOKIN.js} +1 -1
- package/dist/{chunk-WSOLZJJS.js → chunk-QSXZ42KX.js} +3 -3
- package/dist/{chunk-44RJWAND.js → chunk-SCGVWUZX.js} +6 -6
- package/dist/{chunk-CNTWB2SM.js → chunk-T5GXFFLA.js} +1 -1
- package/dist/{chunk-LDWNYCZ6.js → chunk-TCEJ7XXM.js} +1 -1
- package/dist/{chunk-QE3TICD4.js → chunk-V6SRLKUB.js} +2 -2
- package/dist/{chunk-54JMYQYS.js → chunk-W65V465O.js} +2 -2
- package/dist/{chunk-KCBZSJRU.js → chunk-WR76IVA5.js} +5 -2
- package/dist/{chunk-ZZCTGAIT.js → chunk-X22KCSCO.js} +4 -4
- package/dist/{chunk-HD6BHR25.js → chunk-X2WMBTS3.js} +32 -34
- package/dist/{chunk-KQBXT5B7.js → chunk-ZDGHGY74.js} +6 -6
- 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-EFLHTBU6.js → db-WWOMXWTT.js} +9 -9
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-RO3IQKWM.js → oauth-callback-server-A6ZZX74U.js} +25 -25
- package/dist/{runner-LOWW7JKA.js → runner-KSGB2UAV.js} +19 -20
- package/dist/{skills-ZLMUG7AE.js → skills-26QPWKVS.js} +6 -6
- package/dist/spawn-5LAJXZ2P.js +39 -0
- package/dist/{validation-MAKEZNTS.js → validation-OPSRGFGH.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-5OAGC3I4.js → work-VMSW7STJ.js} +17 -16
- package/dist/worker-2JNFB7C7.js +24 -0
- package/package.json +5 -5
- package/dist/chat/agent/session.d.ts +0 -19
- package/dist/chat/conversations/search.d.ts +0 -24
- package/dist/chat/conversations/sql/search.d.ts +0 -4
- package/dist/chat/runtime/agent-continue-runner.d.ts +0 -37
- package/dist/chat/services/agent-continue.d.ts +0 -29
- package/dist/chat/services/turn-session-record.d.ts +0 -164
- package/dist/chat/slack/legacy-attachments.d.ts +0 -4
- package/dist/chat/slack/message.d.ts +0 -12
- package/dist/chat/state/turn-session-keys.d.ts +0 -6
- package/dist/spawn-R3LUV6RF.js +0 -38
- package/dist/worker-KTGGRTTP.js +0 -24
|
@@ -2,49 +2,49 @@ import {
|
|
|
2
2
|
GET,
|
|
3
3
|
GET2,
|
|
4
4
|
syncLocalOAuthCredential
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OFPYOC3M.js";
|
|
6
6
|
import "./chunk-FA6POGLH.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-X2WMBTS3.js";
|
|
8
|
+
import "./chunk-H6U2U3EP.js";
|
|
9
9
|
import "./chunk-Q6QZTTLS.js";
|
|
10
10
|
import "./chunk-4CODA7P5.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QSXZ42KX.js";
|
|
12
|
+
import "./chunk-WR76IVA5.js";
|
|
13
|
+
import "./chunk-JAL3CH4G.js";
|
|
14
14
|
import "./chunk-5I6ORJUY.js";
|
|
15
15
|
import {
|
|
16
16
|
createUserTokenStore
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-47OSH2ZO.js";
|
|
18
18
|
import "./chunk-R776HKPK.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-ZDGHGY74.js";
|
|
20
|
+
import "./chunk-T5GXFFLA.js";
|
|
21
|
+
import "./chunk-GDQEU4I7.js";
|
|
22
22
|
import "./chunk-3Y47VMHV.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-PH4Q3A6W.js";
|
|
24
|
+
import "./chunk-W65V465O.js";
|
|
25
25
|
import "./chunk-HLXXQI5Q.js";
|
|
26
26
|
import "./chunk-PDO5BLNM.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-SCGVWUZX.js";
|
|
28
|
+
import "./chunk-V6SRLKUB.js";
|
|
29
|
+
import "./chunk-37EVZP66.js";
|
|
30
|
+
import "./chunk-MCFIXAV5.js";
|
|
31
31
|
import "./chunk-EM225ITJ.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-GYEKOX7N.js";
|
|
33
|
+
import "./chunk-MKRIZ4VG.js";
|
|
34
34
|
import "./chunk-VFUK3X5B.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-QG7OOKIN.js";
|
|
36
|
+
import "./chunk-FGHADGIC.js";
|
|
37
|
+
import "./chunk-PB222GIA.js";
|
|
38
|
+
import "./chunk-37JJDS4H.js";
|
|
39
39
|
import "./chunk-RUIXF3YQ.js";
|
|
40
40
|
import "./chunk-HZF5P5UN.js";
|
|
41
41
|
import "./chunk-F3B2YJ76.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-B63BF443.js";
|
|
43
43
|
import "./chunk-6GWA276C.js";
|
|
44
44
|
import "./chunk-OOUNJNMR.js";
|
|
45
45
|
import "./chunk-H4HBKISO.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-HQE6EJS5.js";
|
|
47
|
+
import "./chunk-F7REGDKO.js";
|
|
48
48
|
import "./chunk-MLKGABMK.js";
|
|
49
49
|
|
|
50
50
|
// src/chat/local/oauth-callback-server.ts
|
|
@@ -9,21 +9,20 @@ import {
|
|
|
9
9
|
recordDeliveredAssistantMessage,
|
|
10
10
|
scheduleSessionCompletedPluginTasks,
|
|
11
11
|
upsertConversationMessage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-H6U2U3EP.js";
|
|
13
13
|
import {
|
|
14
14
|
ConversationTurnLifecycleService
|
|
15
15
|
} from "./chunk-Q6QZTTLS.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-QSXZ42KX.js";
|
|
17
17
|
import "./chunk-5I6ORJUY.js";
|
|
18
18
|
import {
|
|
19
19
|
authorizationId
|
|
20
20
|
} from "./chunk-DIB4GX3G.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-T5GXFFLA.js";
|
|
22
22
|
import {
|
|
23
23
|
coerceThreadArtifactsState,
|
|
24
24
|
coerceThreadConversationState,
|
|
25
25
|
commitAcceptedReply,
|
|
26
|
-
completeDeliveredTurn,
|
|
27
26
|
getAssistantReplyText,
|
|
28
27
|
getPersistedSandboxState,
|
|
29
28
|
getPersistedThreadState,
|
|
@@ -34,26 +33,27 @@ import {
|
|
|
34
33
|
persistThreadStateById,
|
|
35
34
|
persistWithRetry,
|
|
36
35
|
recordAuthorizationCompleted,
|
|
36
|
+
saveTurnCheckpoint,
|
|
37
37
|
startActiveTurn,
|
|
38
38
|
stripRuntimeTurnContext,
|
|
39
39
|
trimTrailingAssistantMessages
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GDQEU4I7.js";
|
|
41
41
|
import "./chunk-3Y47VMHV.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-W65V465O.js";
|
|
43
43
|
import "./chunk-HLXXQI5Q.js";
|
|
44
44
|
import "./chunk-PDO5BLNM.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-SCGVWUZX.js";
|
|
46
|
+
import "./chunk-V6SRLKUB.js";
|
|
47
47
|
import {
|
|
48
48
|
getConversationEventStore,
|
|
49
49
|
getConversationStore
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-37EVZP66.js";
|
|
51
|
+
import "./chunk-MCFIXAV5.js";
|
|
52
52
|
import "./chunk-EM225ITJ.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-GYEKOX7N.js";
|
|
54
|
+
import "./chunk-MKRIZ4VG.js";
|
|
55
55
|
import "./chunk-VFUK3X5B.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-QG7OOKIN.js";
|
|
57
57
|
import {
|
|
58
58
|
credentialContextForActor
|
|
59
59
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -63,10 +63,10 @@ import {
|
|
|
63
63
|
logException,
|
|
64
64
|
setTags,
|
|
65
65
|
withLogContext
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-B63BF443.js";
|
|
67
67
|
import "./chunk-6GWA276C.js";
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-HQE6EJS5.js";
|
|
69
|
+
import "./chunk-F7REGDKO.js";
|
|
70
70
|
import "./chunk-MLKGABMK.js";
|
|
71
71
|
|
|
72
72
|
// src/chat/local/runner.ts
|
|
@@ -437,15 +437,14 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
437
437
|
sandboxRef: reply.sandboxRef ?? sandboxRef
|
|
438
438
|
});
|
|
439
439
|
if (reply.piMessages?.length) {
|
|
440
|
-
await (deps.
|
|
440
|
+
await (deps.saveTurnCheckpoint ?? saveTurnCheckpoint)({
|
|
441
|
+
mode: "completed",
|
|
441
442
|
conversationId: input.conversationId,
|
|
442
|
-
|
|
443
|
+
turnId,
|
|
443
444
|
sliceId: completionSliceId,
|
|
444
445
|
messages: reply.piMessages,
|
|
445
|
-
modelId: reply.diagnostics.modelId,
|
|
446
446
|
durationMs: reply.diagnostics.durationMs,
|
|
447
447
|
usage: reply.diagnostics.usage,
|
|
448
|
-
reasoningLevel: reply.diagnostics.reasoningLevel,
|
|
449
448
|
destination,
|
|
450
449
|
source,
|
|
451
450
|
actor: localActor,
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
parseSkillInvocation,
|
|
7
7
|
resetSkillDiscoveryCache,
|
|
8
8
|
stripFrontmatter
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-FGHADGIC.js";
|
|
10
|
+
import "./chunk-PB222GIA.js";
|
|
11
|
+
import "./chunk-37JJDS4H.js";
|
|
12
12
|
import "./chunk-RUIXF3YQ.js";
|
|
13
13
|
import "./chunk-HZF5P5UN.js";
|
|
14
14
|
import "./chunk-F3B2YJ76.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-B63BF443.js";
|
|
16
16
|
import "./chunk-6GWA276C.js";
|
|
17
17
|
import "./chunk-OOUNJNMR.js";
|
|
18
18
|
import "./chunk-H4HBKISO.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-HQE6EJS5.js";
|
|
20
|
+
import "./chunk-F7REGDKO.js";
|
|
21
21
|
import "./chunk-MLKGABMK.js";
|
|
22
22
|
export {
|
|
23
23
|
discoverSkills,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bindSpawnAgent
|
|
3
|
+
} from "./chunk-M6ZWP4RI.js";
|
|
4
|
+
import "./chunk-JUA6VU2Z.js";
|
|
5
|
+
import "./chunk-X2WMBTS3.js";
|
|
6
|
+
import "./chunk-Q6QZTTLS.js";
|
|
7
|
+
import "./chunk-JAL3CH4G.js";
|
|
8
|
+
import "./chunk-FEKQHPVA.js";
|
|
9
|
+
import "./chunk-DIB4GX3G.js";
|
|
10
|
+
import "./chunk-R776HKPK.js";
|
|
11
|
+
import "./chunk-ZDGHGY74.js";
|
|
12
|
+
import "./chunk-GDQEU4I7.js";
|
|
13
|
+
import "./chunk-3Y47VMHV.js";
|
|
14
|
+
import "./chunk-HUO3UTAQ.js";
|
|
15
|
+
import "./chunk-HLXXQI5Q.js";
|
|
16
|
+
import "./chunk-PDO5BLNM.js";
|
|
17
|
+
import "./chunk-V6SRLKUB.js";
|
|
18
|
+
import "./chunk-37EVZP66.js";
|
|
19
|
+
import "./chunk-MCFIXAV5.js";
|
|
20
|
+
import "./chunk-EM225ITJ.js";
|
|
21
|
+
import "./chunk-GYEKOX7N.js";
|
|
22
|
+
import "./chunk-MKRIZ4VG.js";
|
|
23
|
+
import "./chunk-VFUK3X5B.js";
|
|
24
|
+
import "./chunk-QG7OOKIN.js";
|
|
25
|
+
import "./chunk-PB222GIA.js";
|
|
26
|
+
import "./chunk-37JJDS4H.js";
|
|
27
|
+
import "./chunk-RUIXF3YQ.js";
|
|
28
|
+
import "./chunk-HZF5P5UN.js";
|
|
29
|
+
import "./chunk-F3B2YJ76.js";
|
|
30
|
+
import "./chunk-B63BF443.js";
|
|
31
|
+
import "./chunk-6GWA276C.js";
|
|
32
|
+
import "./chunk-OOUNJNMR.js";
|
|
33
|
+
import "./chunk-H4HBKISO.js";
|
|
34
|
+
import "./chunk-HQE6EJS5.js";
|
|
35
|
+
import "./chunk-F7REGDKO.js";
|
|
36
|
+
import "./chunk-MLKGABMK.js";
|
|
37
|
+
export {
|
|
38
|
+
bindSpawnAgent
|
|
39
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TCEJ7XXM.js";
|
|
5
|
+
import "./chunk-PB222GIA.js";
|
|
6
|
+
import "./chunk-37JJDS4H.js";
|
|
7
7
|
import "./chunk-RUIXF3YQ.js";
|
|
8
8
|
import "./chunk-HZF5P5UN.js";
|
|
9
9
|
import "./chunk-F3B2YJ76.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-B63BF443.js";
|
|
11
11
|
import "./chunk-6GWA276C.js";
|
|
12
12
|
import "./chunk-OOUNJNMR.js";
|
|
13
13
|
import "./chunk-H4HBKISO.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-HQE6EJS5.js";
|
|
15
|
+
import "./chunk-F7REGDKO.js";
|
|
16
16
|
import "./chunk-MLKGABMK.js";
|
|
17
17
|
export {
|
|
18
18
|
validatePluginEgressCredentialHooks,
|
package/dist/version.js
CHANGED
|
@@ -5,36 +5,37 @@ import {
|
|
|
5
5
|
enqueueAgentInvocation,
|
|
6
6
|
resolveAgentInvocationId,
|
|
7
7
|
routeAgentInvocationWork
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-JUA6VU2Z.js";
|
|
9
|
+
import "./chunk-X2WMBTS3.js";
|
|
10
10
|
import "./chunk-Q6QZTTLS.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-JAL3CH4G.js";
|
|
12
|
+
import "./chunk-FEKQHPVA.js";
|
|
12
13
|
import "./chunk-DIB4GX3G.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ZDGHGY74.js";
|
|
15
|
+
import "./chunk-GDQEU4I7.js";
|
|
15
16
|
import "./chunk-3Y47VMHV.js";
|
|
16
17
|
import "./chunk-HUO3UTAQ.js";
|
|
17
18
|
import "./chunk-HLXXQI5Q.js";
|
|
18
19
|
import "./chunk-PDO5BLNM.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-V6SRLKUB.js";
|
|
21
|
+
import "./chunk-37EVZP66.js";
|
|
22
|
+
import "./chunk-MCFIXAV5.js";
|
|
22
23
|
import "./chunk-EM225ITJ.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-GYEKOX7N.js";
|
|
25
|
+
import "./chunk-MKRIZ4VG.js";
|
|
25
26
|
import "./chunk-VFUK3X5B.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-QG7OOKIN.js";
|
|
28
|
+
import "./chunk-PB222GIA.js";
|
|
29
|
+
import "./chunk-37JJDS4H.js";
|
|
29
30
|
import "./chunk-RUIXF3YQ.js";
|
|
30
31
|
import "./chunk-HZF5P5UN.js";
|
|
31
32
|
import "./chunk-F3B2YJ76.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-B63BF443.js";
|
|
33
34
|
import "./chunk-6GWA276C.js";
|
|
34
35
|
import "./chunk-OOUNJNMR.js";
|
|
35
36
|
import "./chunk-H4HBKISO.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-HQE6EJS5.js";
|
|
38
|
+
import "./chunk-F7REGDKO.js";
|
|
38
39
|
import "./chunk-MLKGABMK.js";
|
|
39
40
|
export {
|
|
40
41
|
buildAgentInvocationInboundMessage,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
3
|
+
processConversationWork
|
|
4
|
+
} from "./chunk-AISNSNDV.js";
|
|
5
|
+
import "./chunk-X2WMBTS3.js";
|
|
6
|
+
import "./chunk-JAL3CH4G.js";
|
|
7
|
+
import "./chunk-3Y47VMHV.js";
|
|
8
|
+
import "./chunk-37EVZP66.js";
|
|
9
|
+
import "./chunk-MCFIXAV5.js";
|
|
10
|
+
import "./chunk-GYEKOX7N.js";
|
|
11
|
+
import "./chunk-MKRIZ4VG.js";
|
|
12
|
+
import "./chunk-VFUK3X5B.js";
|
|
13
|
+
import "./chunk-QG7OOKIN.js";
|
|
14
|
+
import "./chunk-HZF5P5UN.js";
|
|
15
|
+
import "./chunk-F3B2YJ76.js";
|
|
16
|
+
import "./chunk-B63BF443.js";
|
|
17
|
+
import "./chunk-6GWA276C.js";
|
|
18
|
+
import "./chunk-HQE6EJS5.js";
|
|
19
|
+
import "./chunk-F7REGDKO.js";
|
|
20
|
+
import "./chunk-MLKGABMK.js";
|
|
21
|
+
export {
|
|
22
|
+
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
23
|
+
processConversationWork
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.146.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"pg": "^8.16.3",
|
|
81
81
|
"yaml": "^2.9.0",
|
|
82
82
|
"zod": "^4.4.3",
|
|
83
|
-
"@sentry/junior-plugin-api": "0.
|
|
83
|
+
"@sentry/junior-plugin-api": "0.146.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@emnapi/core": "^1.10.0",
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"typescript": "^6.0.3",
|
|
98
98
|
"vercel": "^54.4.0",
|
|
99
99
|
"vitest": "^4.1.7",
|
|
100
|
-
"@sentry/junior-
|
|
101
|
-
"@sentry/junior-
|
|
102
|
-
"@sentry/junior-
|
|
100
|
+
"@sentry/junior-memory": "0.146.0",
|
|
101
|
+
"@sentry/junior-github": "0.146.0",
|
|
102
|
+
"@sentry/junior-testing": "0.0.0"
|
|
103
103
|
},
|
|
104
104
|
"scripts": {
|
|
105
105
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run session restore.
|
|
3
|
-
*
|
|
4
|
-
* Loads the persisted turn session projection for one run slice before the
|
|
5
|
-
* tool and prompt phases need it.
|
|
6
|
-
*/
|
|
7
|
-
import { loadTurnSessionRecord } from "@/chat/services/turn-session-record";
|
|
8
|
-
type LoadedSessionRecordState = Awaited<ReturnType<typeof loadTurnSessionRecord>>;
|
|
9
|
-
/** Restore the persisted session projection for one run slice. */
|
|
10
|
-
export declare function restoreSessionRecord(args: {
|
|
11
|
-
conversationId: string;
|
|
12
|
-
turnId: string;
|
|
13
|
-
}): Promise<{
|
|
14
|
-
existingSessionRecord: LoadedSessionRecordState["existingSessionRecord"];
|
|
15
|
-
currentSliceId: number;
|
|
16
|
-
resumedFromSessionRecord: boolean;
|
|
17
|
-
sessionRecordState: LoadedSessionRecordState;
|
|
18
|
-
}>;
|
|
19
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** One relevant chat-message match from a prior conversation. */
|
|
2
|
-
export interface ConversationSearchResult {
|
|
3
|
-
conversationId: string;
|
|
4
|
-
excerpt: string;
|
|
5
|
-
messageCreatedAtMs: number;
|
|
6
|
-
messageId: string;
|
|
7
|
-
providerDestinationId: string;
|
|
8
|
-
role: "assistant" | "user";
|
|
9
|
-
}
|
|
10
|
-
/** Runtime-derived public workspace scope for cross-conversation search. */
|
|
11
|
-
export interface ConversationSearchScope {
|
|
12
|
-
kind: "public_provider_tenant";
|
|
13
|
-
provider: "slack";
|
|
14
|
-
providerTenantId: string;
|
|
15
|
-
}
|
|
16
|
-
/** Search retained public messages within an authorized workspace. */
|
|
17
|
-
export interface ConversationSearchStore {
|
|
18
|
-
search(args: {
|
|
19
|
-
currentConversationId: string;
|
|
20
|
-
limit: number;
|
|
21
|
-
query: string;
|
|
22
|
-
scope: ConversationSearchScope;
|
|
23
|
-
}): Promise<ConversationSearchResult[]>;
|
|
24
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { JuniorSqlDatabase } from "@/db/db";
|
|
2
|
-
import type { ConversationSearchStore } from "../search";
|
|
3
|
-
/** Create a SQL-backed public workspace conversation search store. */
|
|
4
|
-
export declare function createSqlConversationSearchStore(executor: JuniorSqlDatabase): ConversationSearchStore;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { resumeSlackTurn } from "@/chat/runtime/slack-resume";
|
|
2
|
-
import { type AgentContinueRequest } from "@/chat/services/agent-continue";
|
|
3
|
-
import type { AgentRunner } from "@/chat/runtime/agent-runner";
|
|
4
|
-
import type { AgentRunRouting } from "@/chat/agent/request";
|
|
5
|
-
/** Runtime ports for agent continuation scheduling. */
|
|
6
|
-
export interface AgentContinueRunnerOptions {
|
|
7
|
-
agentRunner: AgentRunner;
|
|
8
|
-
/** Exact persisted input ids accepted for a non-interactive continuation. */
|
|
9
|
-
inputMessageIds?: readonly string[];
|
|
10
|
-
routingContext?: Pick<AgentRunRouting, "actor" | "credentialContext" | "destinationVisibility" | "dispatch" | "surface">;
|
|
11
|
-
resumeTurn?: typeof resumeSlackTurn;
|
|
12
|
-
scheduleAgentContinue?: (request: AgentContinueRequest) => Promise<void>;
|
|
13
|
-
scheduleSessionCompletedPluginTasks?: (params: {
|
|
14
|
-
conversationId: string;
|
|
15
|
-
sessionId: string;
|
|
16
|
-
}) => Promise<void>;
|
|
17
|
-
}
|
|
18
|
-
/** Per-worker controls for one continued run. */
|
|
19
|
-
export interface AgentContinueRunOptions {
|
|
20
|
-
shouldYield?: () => boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Continue one paused Slack agent run from durable conversation state.
|
|
24
|
-
*
|
|
25
|
-
* Returns false when the session became stale before generation began.
|
|
26
|
-
*/
|
|
27
|
-
export declare function continueSlackAgentRun(payload: AgentContinueRequest, options: AgentContinueRunnerOptions, runOptions?: AgentContinueRunOptions): Promise<boolean>;
|
|
28
|
-
/** Resume the first valid paused Slack session for an idle conversation. */
|
|
29
|
-
export declare function resumeAwaitingSlackContinuation(conversationId: string, options: AgentContinueRunnerOptions, runOptions?: AgentContinueRunOptions): Promise<boolean>;
|
|
30
|
-
/**
|
|
31
|
-
* Retry agent continuation when the normal Slack thread lock is briefly busy.
|
|
32
|
-
*
|
|
33
|
-
* Returns false when the session became stale before generation began. A busy
|
|
34
|
-
* lock that is rescheduled still returns true because runnable work remains
|
|
35
|
-
* durable.
|
|
36
|
-
*/
|
|
37
|
-
export declare function continueSlackAgentRunWithLockRetry(payload: AgentContinueRequest, options: AgentContinueRunnerOptions, runOptions?: AgentContinueRunOptions): Promise<boolean>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Durable agent continuation scheduling.
|
|
3
|
-
*
|
|
4
|
-
* This module owns the queue handoff used when an agent run pauses at a safe
|
|
5
|
-
* Pi continuation boundary and needs another execution slice.
|
|
6
|
-
*/
|
|
7
|
-
import type { StateAdapter } from "chat";
|
|
8
|
-
import type { Destination } from "@sentry/junior-plugin-api";
|
|
9
|
-
import type { ConversationStore } from "@/chat/conversations/store";
|
|
10
|
-
import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
|
|
11
|
-
export interface AgentContinueRequest {
|
|
12
|
-
conversationId: string;
|
|
13
|
-
destination: Destination;
|
|
14
|
-
expectedVersion: number;
|
|
15
|
-
sessionId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ScheduleAgentContinueOptions {
|
|
18
|
-
nowMs?: number;
|
|
19
|
-
queue?: ConversationWorkQueue;
|
|
20
|
-
state?: StateAdapter;
|
|
21
|
-
}
|
|
22
|
-
/** Build the queue request for an awaiting automatic agent continuation. */
|
|
23
|
-
export declare function getAwaitingAgentContinueRequest(args: {
|
|
24
|
-
conversationId: string;
|
|
25
|
-
conversationStore?: ConversationStore;
|
|
26
|
-
sessionId: string;
|
|
27
|
-
}): Promise<AgentContinueRequest | undefined>;
|
|
28
|
-
/** Schedule durable conversation work to continue a paused agent run. */
|
|
29
|
-
export declare function scheduleAgentContinue(request: AgentContinueRequest, options?: ScheduleAgentContinueOptions): Promise<void>;
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { type AgentDispatchOutcome, type AgentTurnSessionRecord, type AgentTurnSurface } from "@/chat/state/turn-session";
|
|
2
|
-
import type { ConversationPrivacy } from "@/chat/conversation-privacy";
|
|
3
|
-
import type { Destination, Actor, Source } from "@sentry/junior-plugin-api";
|
|
4
|
-
import type { PiMessage } from "@/chat/pi/messages";
|
|
5
|
-
import type { ConversationMessageProvenance } from "@/chat/conversations/provenance";
|
|
6
|
-
import { type AgentTurnUsage } from "@/chat/usage";
|
|
7
|
-
import type { PluginTurnContext } from "@/chat/plugins/prompt";
|
|
8
|
-
export interface TurnSessionContext {
|
|
9
|
-
conversationId: string;
|
|
10
|
-
sessionId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TurnSessionState {
|
|
13
|
-
resumedFromSessionRecord: boolean;
|
|
14
|
-
currentSliceId: number;
|
|
15
|
-
existingSessionRecord?: AgentTurnSessionRecord;
|
|
16
|
-
}
|
|
17
|
-
/** Load turn session record state for a conversation/session pair. */
|
|
18
|
-
export declare function loadTurnSessionRecord(ctx: TurnSessionContext): Promise<TurnSessionState>;
|
|
19
|
-
/** Persist the latest safe in-progress boundary without scheduling continuation. */
|
|
20
|
-
export declare function persistRunningSessionRecord(args: {
|
|
21
|
-
channelName?: string;
|
|
22
|
-
conversationId: string;
|
|
23
|
-
destination?: Destination;
|
|
24
|
-
destinationVisibility?: ConversationPrivacy;
|
|
25
|
-
dispatchId?: string;
|
|
26
|
-
source?: Source;
|
|
27
|
-
sessionId: string;
|
|
28
|
-
sliceId: number;
|
|
29
|
-
messages: PiMessage[];
|
|
30
|
-
/** Provenance for trailing newly committed messages, such as steering. */
|
|
31
|
-
trailingMessageProvenance?: ConversationMessageProvenance[];
|
|
32
|
-
loadedSkillNames?: string[];
|
|
33
|
-
modelId: string;
|
|
34
|
-
actor?: Actor;
|
|
35
|
-
reasoningLevel?: string;
|
|
36
|
-
surface?: AgentTurnSurface;
|
|
37
|
-
turnContexts?: PluginTurnContext[];
|
|
38
|
-
turnStartMessageIndex?: number;
|
|
39
|
-
}): Promise<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* Commit a run after assistant output handling has settled.
|
|
42
|
-
*
|
|
43
|
-
* Generation completing is not durable completion: call this only after the
|
|
44
|
-
* destination accepted each visible message or intentional silence was
|
|
45
|
-
* resolved. The write is retried because output may already be user-visible;
|
|
46
|
-
* any remaining failure surfaces to the post-output boundary for one
|
|
47
|
-
* authoritative error.
|
|
48
|
-
*/
|
|
49
|
-
export declare function persistCompletedSessionRecord(args: {
|
|
50
|
-
channelName?: string;
|
|
51
|
-
conversationId: string;
|
|
52
|
-
currentDurationMs?: number;
|
|
53
|
-
currentUsage?: AgentTurnUsage;
|
|
54
|
-
destination?: Destination;
|
|
55
|
-
dispatchId?: string;
|
|
56
|
-
dispatchOutcome?: AgentDispatchOutcome;
|
|
57
|
-
errorMessage?: string;
|
|
58
|
-
/** Confirmed visibility; omit when unavailable to preserve canonical metadata. */
|
|
59
|
-
destinationVisibility?: ConversationPrivacy;
|
|
60
|
-
/** Provider-owned identifier returned after visible delivery is accepted. */
|
|
61
|
-
resultMessageId?: string;
|
|
62
|
-
source?: Source;
|
|
63
|
-
sessionId: string;
|
|
64
|
-
/** Defaults to the latest stored slice when the deliverer does not know it. */
|
|
65
|
-
sliceId?: number;
|
|
66
|
-
allMessages: PiMessage[];
|
|
67
|
-
loadedSkillNames?: string[];
|
|
68
|
-
modelId: string;
|
|
69
|
-
actor?: Actor;
|
|
70
|
-
reasoningLevel?: string;
|
|
71
|
-
surface?: AgentTurnSurface;
|
|
72
|
-
turnStartMessageIndex?: number;
|
|
73
|
-
}): Promise<void>;
|
|
74
|
-
/** Complete a delivered single-slice run with an explicit session boundary. */
|
|
75
|
-
export declare function completeDeliveredTurn(args: {
|
|
76
|
-
channelName?: string;
|
|
77
|
-
conversationId: string;
|
|
78
|
-
destination: Destination;
|
|
79
|
-
destinationVisibility?: ConversationPrivacy;
|
|
80
|
-
dispatchId?: string;
|
|
81
|
-
dispatchOutcome?: AgentDispatchOutcome;
|
|
82
|
-
errorMessage?: string;
|
|
83
|
-
durationMs?: number;
|
|
84
|
-
loadedSkillNames?: string[];
|
|
85
|
-
messages: PiMessage[];
|
|
86
|
-
modelId: string;
|
|
87
|
-
actor?: Actor;
|
|
88
|
-
reasoningLevel?: string;
|
|
89
|
-
resultMessageId?: string;
|
|
90
|
-
sessionId: string;
|
|
91
|
-
sliceId: number;
|
|
92
|
-
source: Source;
|
|
93
|
-
surface: AgentTurnSurface;
|
|
94
|
-
turnStartMessageIndex?: number;
|
|
95
|
-
usage?: AgentTurnUsage;
|
|
96
|
-
}): Promise<void>;
|
|
97
|
-
/**
|
|
98
|
-
* Persist an auth-pause session record. Returns the durable record only when
|
|
99
|
-
* the caller can safely hand the user to an authorization resume flow.
|
|
100
|
-
*/
|
|
101
|
-
export declare function persistAuthPauseSessionRecord(args: {
|
|
102
|
-
channelName?: string;
|
|
103
|
-
conversationId: string;
|
|
104
|
-
sessionId: string;
|
|
105
|
-
currentSliceId: number;
|
|
106
|
-
currentDurationMs?: number;
|
|
107
|
-
currentUsage?: AgentTurnUsage;
|
|
108
|
-
destination?: Destination;
|
|
109
|
-
destinationVisibility?: ConversationPrivacy;
|
|
110
|
-
dispatchId?: string;
|
|
111
|
-
source?: Source;
|
|
112
|
-
messages: PiMessage[];
|
|
113
|
-
loadedSkillNames?: string[];
|
|
114
|
-
modelId: string;
|
|
115
|
-
errorMessage: string;
|
|
116
|
-
actor?: Actor;
|
|
117
|
-
reasoningLevel?: string;
|
|
118
|
-
surface?: AgentTurnSurface;
|
|
119
|
-
}): Promise<AgentTurnSessionRecord | undefined>;
|
|
120
|
-
interface ContinuationRecordInput {
|
|
121
|
-
channelName?: string;
|
|
122
|
-
conversationId: string;
|
|
123
|
-
sessionId: string;
|
|
124
|
-
currentSliceId: number;
|
|
125
|
-
currentDurationMs?: number;
|
|
126
|
-
currentUsage?: AgentTurnUsage;
|
|
127
|
-
destination?: Destination;
|
|
128
|
-
destinationVisibility?: ConversationPrivacy;
|
|
129
|
-
dispatchId?: string;
|
|
130
|
-
source?: Source;
|
|
131
|
-
messages: PiMessage[];
|
|
132
|
-
loadedSkillNames?: string[];
|
|
133
|
-
modelId: string;
|
|
134
|
-
errorMessage: string;
|
|
135
|
-
actor?: Actor;
|
|
136
|
-
reasoningLevel?: string;
|
|
137
|
-
surface?: AgentTurnSurface;
|
|
138
|
-
}
|
|
139
|
-
/** Persist a timeout or delivery retry under the turn's shared slice limit. */
|
|
140
|
-
export declare function persistContinuationSessionRecord(args: ContinuationRecordInput & {
|
|
141
|
-
resumeReason: "retry" | "timeout";
|
|
142
|
-
}): Promise<AgentTurnSessionRecord | undefined>;
|
|
143
|
-
/**
|
|
144
|
-
* Persist a cooperative-yield boundary without advancing timeout slice counts.
|
|
145
|
-
*/
|
|
146
|
-
export declare function persistYieldSessionRecord(args: {
|
|
147
|
-
channelName?: string;
|
|
148
|
-
conversationId: string;
|
|
149
|
-
sessionId: string;
|
|
150
|
-
currentSliceId: number;
|
|
151
|
-
currentDurationMs?: number;
|
|
152
|
-
currentUsage?: AgentTurnUsage;
|
|
153
|
-
destination?: Destination;
|
|
154
|
-
dispatchId?: string;
|
|
155
|
-
source?: Source;
|
|
156
|
-
messages: PiMessage[];
|
|
157
|
-
loadedSkillNames?: string[];
|
|
158
|
-
modelId: string;
|
|
159
|
-
errorMessage: string;
|
|
160
|
-
actor?: Actor;
|
|
161
|
-
reasoningLevel?: string;
|
|
162
|
-
surface?: AgentTurnSurface;
|
|
163
|
-
}): Promise<AgentTurnSessionRecord | undefined>;
|
|
164
|
-
export {};
|