@sentry/junior 0.120.0 → 0.122.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-5DDPWRYO.js → agent-hooks-HJMLQLCB.js} +8 -8
- package/dist/api.js +14 -14
- package/dist/app.js +604 -997
- package/dist/{catalog-runtime-5KR5XBMJ.js → catalog-runtime-CYPZUYJD.js} +5 -5
- package/dist/chat/agent/index.d.ts +19 -2
- package/dist/chat/agent/request.d.ts +8 -8
- package/dist/chat/agent/resume.d.ts +1 -3
- package/dist/chat/agent/retry-usage.d.ts +8 -0
- package/dist/chat/agent/skills.d.ts +0 -9
- package/dist/chat/conversations/messages.d.ts +7 -0
- package/dist/chat/conversations/projection.d.ts +16 -0
- package/dist/chat/logging.d.ts +46 -13
- package/dist/chat/runtime/processing-reaction.d.ts +2 -4
- package/dist/chat/runtime/slack-runtime.d.ts +2 -2
- package/dist/chat/sandbox/noninteractive-command.d.ts +1 -0
- package/dist/chat/sandbox/session.d.ts +2 -2
- package/dist/chat/sandbox/snapshot/install.d.ts +2 -2
- package/dist/chat/sandbox/snapshot/resolve.d.ts +1 -0
- package/dist/chat/sandbox/workspace.d.ts +3 -1
- package/dist/chat/services/assistant-reply.d.ts +16 -0
- package/dist/chat/services/empty-output-continuation.d.ts +20 -0
- package/dist/chat/services/turn-failure-response.d.ts +1 -3
- package/dist/chat/services/turn-result.d.ts +0 -5
- package/dist/chat/services/turn-session-record.d.ts +0 -11
- package/dist/chat/tool-support/zod-tool.d.ts +11 -6
- package/dist/chat/tools/execute-tool.d.ts +1 -33
- package/dist/chat/tools/execution/tool-error-handler.d.ts +2 -2
- package/dist/chat/tools/query-conversation-events.d.ts +3 -1
- package/dist/chat/tools/sandbox/bash.d.ts +1 -33
- package/dist/chat/tools/sandbox/edit-file.d.ts +1 -33
- package/dist/chat/tools/sandbox/find-files.d.ts +1 -33
- package/dist/chat/tools/sandbox/grep.d.ts +1 -33
- package/dist/chat/tools/sandbox/list-dir.d.ts +1 -33
- package/dist/chat/tools/sandbox/read-file.d.ts +1 -33
- package/dist/chat/tools/sandbox/write-file.d.ts +1 -33
- package/dist/{chunk-VURFJVFH.js → chunk-2RFM7STT.js} +11 -22
- package/dist/{chunk-6WX5SPI3.js → chunk-32FPGM2V.js} +1 -1
- package/dist/{chunk-ALYQOZG7.js → chunk-4SPRQJOW.js} +37 -45
- package/dist/{chunk-QOQPPRFS.js → chunk-4TGVC42X.js} +133 -206
- package/dist/{chunk-Q3RL6A4E.js → chunk-BDE5RZVF.js} +2 -2
- package/dist/{chunk-DJDGDJDF.js → chunk-CYW4M6IV.js} +44 -23
- package/dist/{chunk-M243JMZH.js → chunk-DOB5RVMH.js} +2 -2
- package/dist/{chunk-EIVE6GL4.js → chunk-E5SRLZQV.js} +14 -29
- package/dist/{chunk-YEAOUT5W.js → chunk-GFTZKOTP.js} +1 -1
- package/dist/{chunk-XAI2HNAY.js → chunk-GN6WW7WR.js} +16 -31
- package/dist/{chunk-DMKHRBI6.js → chunk-ISQYBTPG.js} +3 -3
- package/dist/{chunk-DWOH57FW.js → chunk-L2KJ2GNL.js} +1 -1
- package/dist/{chunk-ERYVNWNE.js → chunk-NIJG6G6X.js} +621 -735
- package/dist/{chunk-JQWP6V22.js → chunk-NNGYYGX5.js} +2061 -2015
- package/dist/{chunk-GNNV3UTY.js → chunk-OKUZIXQM.js} +1 -1
- package/dist/{chunk-HDFGNU5E.js → chunk-S7G34U75.js} +3 -1
- package/dist/{chunk-ALAKN7LR.js → chunk-TZVZCIYL.js} +1 -1
- package/dist/{chunk-24B5R6OU.js → chunk-USKP7IM2.js} +49 -92
- package/dist/{chunk-BHXW734F.js → chunk-V6XPIKYA.js} +13 -19
- package/dist/{chunk-TKUCRFNX.js → chunk-VCC7XFX2.js} +22 -45
- package/dist/cli/chat.js +22 -22
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +11 -11
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-T4ZY64PB.js → db-E6O2DXUQ.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-LQ6DFI26.js → oauth-callback-server-6SCPUFFD.js} +15 -15
- package/dist/{runner-D3ZU6TJH.js → runner-JFKCMVVY.js} +62 -51
- package/dist/{skills-JMXY7LIY.js → skills-RD66F2OB.js} +6 -6
- package/dist/{validation-OEPJS7JX.js → validation-XVRNX6IU.js} +6 -6
- package/dist/version.js +1 -1
- package/package.json +8 -8
package/dist/cli/upgrade.js
CHANGED
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
} from "../chunk-GCGJGSQL.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-2RFM7STT.js";
|
|
15
15
|
import "../chunk-VFUK3X5B.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-S7G34U75.js";
|
|
17
17
|
import {
|
|
18
18
|
createPluginCatalogRuntime
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-GN6WW7WR.js";
|
|
20
20
|
import "../chunk-W3U3YQYI.js";
|
|
21
21
|
import "../chunk-HZF5P5UN.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-4SPRQJOW.js";
|
|
23
23
|
import "../chunk-OB42YVAE.js";
|
|
24
24
|
import "../chunk-F3B2YJ76.js";
|
|
25
25
|
import "../chunk-6GWA276C.js";
|
|
26
26
|
import "../chunk-OOUNJNMR.js";
|
|
27
27
|
import "../chunk-H4HBKISO.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-L2KJ2GNL.js";
|
|
29
|
+
import "../chunk-ISQYBTPG.js";
|
|
30
30
|
import "../chunk-MLKGABMK.js";
|
|
31
31
|
|
|
32
32
|
// src/chat/conversations/sql/migrations.ts
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DOB5RVMH.js";
|
|
9
9
|
import "./chunk-GCGJGSQL.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-2RFM7STT.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-S7G34U75.js";
|
|
13
|
+
import "./chunk-4SPRQJOW.js";
|
|
14
14
|
import "./chunk-OB42YVAE.js";
|
|
15
15
|
import "./chunk-F3B2YJ76.js";
|
|
16
16
|
import "./chunk-6GWA276C.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-L2KJ2GNL.js";
|
|
18
|
+
import "./chunk-ISQYBTPG.js";
|
|
19
19
|
import "./chunk-MLKGABMK.js";
|
|
20
20
|
export {
|
|
21
21
|
closeDb,
|
package/dist/instrumentation.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-UIE3R5XU.js";
|
|
4
4
|
import {
|
|
5
5
|
getCurrentConversationPrivacy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S7G34U75.js";
|
|
7
7
|
import "./chunk-OB42YVAE.js";
|
|
8
8
|
import "./chunk-F3B2YJ76.js";
|
|
9
9
|
import {
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
getDeploymentServiceVersion,
|
|
18
18
|
getDeploymentTelemetryAttributes
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-L2KJ2GNL.js";
|
|
20
|
+
import "./chunk-ISQYBTPG.js";
|
|
21
21
|
import "./chunk-MLKGABMK.js";
|
|
22
22
|
|
|
23
23
|
// src/chat/sentry-payload-filter.ts
|
package/dist/nitro.js
CHANGED
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE,
|
|
27
27
|
JUNIOR_RETENTION_CRON_SCHEDULE,
|
|
28
28
|
JUNIOR_RETENTION_ROUTE
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-L2KJ2GNL.js";
|
|
30
|
+
import "./chunk-ISQYBTPG.js";
|
|
31
31
|
import "./chunk-MLKGABMK.js";
|
|
32
32
|
|
|
33
33
|
// src/nitro.ts
|
|
@@ -2,38 +2,38 @@ import {
|
|
|
2
2
|
GET,
|
|
3
3
|
GET2,
|
|
4
4
|
syncLocalOAuthCredential
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4TGVC42X.js";
|
|
6
6
|
import "./chunk-FA6POGLH.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-V6XPIKYA.js";
|
|
8
8
|
import "./chunk-4CODA7P5.js";
|
|
9
9
|
import "./chunk-6ZK6FZIV.js";
|
|
10
10
|
import "./chunk-5I6ORJUY.js";
|
|
11
11
|
import {
|
|
12
12
|
createUserTokenStore
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-VCC7XFX2.js";
|
|
14
|
+
import "./chunk-NNGYYGX5.js";
|
|
15
15
|
import "./chunk-MU6HHZEN.js";
|
|
16
16
|
import "./chunk-PDO5BLNM.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-USKP7IM2.js";
|
|
18
|
+
import "./chunk-DOB5RVMH.js";
|
|
19
19
|
import "./chunk-GCGJGSQL.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-TZVZCIYL.js";
|
|
21
|
+
import "./chunk-2RFM7STT.js";
|
|
22
22
|
import "./chunk-VFUK3X5B.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-S7G34U75.js";
|
|
24
|
+
import "./chunk-E5SRLZQV.js";
|
|
25
|
+
import "./chunk-OKUZIXQM.js";
|
|
26
|
+
import "./chunk-GN6WW7WR.js";
|
|
27
27
|
import "./chunk-W3U3YQYI.js";
|
|
28
28
|
import "./chunk-HZF5P5UN.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-4SPRQJOW.js";
|
|
30
30
|
import "./chunk-OB42YVAE.js";
|
|
31
31
|
import "./chunk-F3B2YJ76.js";
|
|
32
32
|
import "./chunk-6GWA276C.js";
|
|
33
33
|
import "./chunk-OOUNJNMR.js";
|
|
34
34
|
import "./chunk-H4HBKISO.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-L2KJ2GNL.js";
|
|
36
|
+
import "./chunk-ISQYBTPG.js";
|
|
37
37
|
import "./chunk-MLKGABMK.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/local/oauth-callback-server.ts
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
finalizeFailedTurnReplyWithEvent,
|
|
6
6
|
processPluginTask,
|
|
7
7
|
scheduleSessionCompletedPluginTasks
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V6XPIKYA.js";
|
|
9
9
|
import "./chunk-5I6ORJUY.js";
|
|
10
10
|
import {
|
|
11
11
|
authorizationId
|
|
@@ -14,7 +14,9 @@ import {
|
|
|
14
14
|
buildConversationContext,
|
|
15
15
|
coerceThreadArtifactsState,
|
|
16
16
|
coerceThreadConversationState,
|
|
17
|
+
commitAcceptedReply,
|
|
17
18
|
completeDeliveredTurn,
|
|
19
|
+
getAssistantReplyText,
|
|
18
20
|
getPersistedSandboxState,
|
|
19
21
|
getPersistedThreadState,
|
|
20
22
|
hydrateConversationMessages,
|
|
@@ -32,27 +34,29 @@ import {
|
|
|
32
34
|
trimTrailingAssistantMessages,
|
|
33
35
|
updateConversationStats,
|
|
34
36
|
upsertConversationMessage
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NNGYYGX5.js";
|
|
36
38
|
import "./chunk-MU6HHZEN.js";
|
|
37
39
|
import "./chunk-PDO5BLNM.js";
|
|
38
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-USKP7IM2.js";
|
|
39
41
|
import {
|
|
40
42
|
getConversationEventStore
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DOB5RVMH.js";
|
|
42
44
|
import "./chunk-GCGJGSQL.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-TZVZCIYL.js";
|
|
46
|
+
import "./chunk-2RFM7STT.js";
|
|
45
47
|
import "./chunk-VFUK3X5B.js";
|
|
46
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-S7G34U75.js";
|
|
47
49
|
import "./chunk-HZF5P5UN.js";
|
|
48
50
|
import {
|
|
49
|
-
logException
|
|
50
|
-
|
|
51
|
+
logException,
|
|
52
|
+
setTags,
|
|
53
|
+
withLogContext
|
|
54
|
+
} from "./chunk-4SPRQJOW.js";
|
|
51
55
|
import "./chunk-OB42YVAE.js";
|
|
52
56
|
import "./chunk-F3B2YJ76.js";
|
|
53
57
|
import "./chunk-6GWA276C.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-L2KJ2GNL.js";
|
|
59
|
+
import "./chunk-ISQYBTPG.js";
|
|
56
60
|
import "./chunk-MLKGABMK.js";
|
|
57
61
|
|
|
58
62
|
// src/chat/local/runner.ts
|
|
@@ -63,10 +67,10 @@ import {
|
|
|
63
67
|
} from "@sentry/junior-plugin-api";
|
|
64
68
|
var SENTRY_EVENT_ID_PATTERN = /^[a-f0-9]{32}$/i;
|
|
65
69
|
var LOCAL_FAILURE_EVENT_NAMES = {
|
|
66
|
-
agent_run_failed: "
|
|
67
|
-
delivery_failed: "
|
|
68
|
-
model_execution_failed: "
|
|
69
|
-
persistence_failed: "
|
|
70
|
+
agent_run_failed: "local.agent_run.failed",
|
|
71
|
+
delivery_failed: "local.reply.delivery.failed",
|
|
72
|
+
model_execution_failed: "local.model.execution.failed",
|
|
73
|
+
persistence_failed: "local.turn.persistence.failed"
|
|
70
74
|
};
|
|
71
75
|
function localDestination(conversationId) {
|
|
72
76
|
const parsed = localDestinationSchema.safeParse({
|
|
@@ -85,15 +89,14 @@ function localRunId() {
|
|
|
85
89
|
return `local-run-${randomUUID()}`;
|
|
86
90
|
}
|
|
87
91
|
function captureLocalBoundaryFailure(args) {
|
|
92
|
+
setTags({
|
|
93
|
+
conversationId: args.conversationId,
|
|
94
|
+
...args.runId ? { runId: args.runId } : {}
|
|
95
|
+
});
|
|
88
96
|
const eventId = args.capture(
|
|
89
97
|
args.error,
|
|
90
98
|
LOCAL_FAILURE_EVENT_NAMES[args.failureCode],
|
|
91
|
-
{
|
|
92
|
-
conversationId: args.conversationId,
|
|
93
|
-
...args.runId ? { runId: args.runId } : {}
|
|
94
|
-
},
|
|
95
|
-
{ "app.ai.failure_code": args.failureCode },
|
|
96
|
-
"Local agent turn failed at its owning runtime boundary"
|
|
99
|
+
{ "app.ai.failure_code": args.failureCode }
|
|
97
100
|
);
|
|
98
101
|
return eventId && SENTRY_EVENT_ID_PATTERN.test(eventId) ? eventId : void 0;
|
|
99
102
|
}
|
|
@@ -107,6 +110,19 @@ async function loadLocalPiMessages(args) {
|
|
|
107
110
|
return stripRuntimeTurnContext(trimTrailingAssistantMessages(projection));
|
|
108
111
|
}
|
|
109
112
|
async function runLocalAgentTurn(input, deps) {
|
|
113
|
+
return withLogContext(
|
|
114
|
+
{
|
|
115
|
+
conversationId: input.conversationId,
|
|
116
|
+
destinationName: input.conversationId,
|
|
117
|
+
messageConversationId: input.conversationId,
|
|
118
|
+
platform: "local",
|
|
119
|
+
userId: "local-cli",
|
|
120
|
+
userName: "local"
|
|
121
|
+
},
|
|
122
|
+
() => runLocalAgentTurnInContext(input, deps)
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
async function runLocalAgentTurnInContext(input, deps) {
|
|
110
126
|
const text = input.message.trim();
|
|
111
127
|
if (!text) {
|
|
112
128
|
throw new Error("Local agent message must not be empty");
|
|
@@ -176,22 +192,29 @@ async function runLocalAgentTurn(input, deps) {
|
|
|
176
192
|
userName: "local"
|
|
177
193
|
};
|
|
178
194
|
let assistantMessageDelivered = false;
|
|
179
|
-
const deliverAssistantMessage = async (
|
|
180
|
-
|
|
195
|
+
const deliverAssistantMessage = async (reply2) => {
|
|
196
|
+
const message = typeof reply2 === "string" ? void 0 : reply2;
|
|
197
|
+
const text2 = typeof reply2 === "string" ? reply2 : getAssistantReplyText(reply2);
|
|
198
|
+
if (!text2?.trim()) {
|
|
181
199
|
return;
|
|
182
200
|
}
|
|
183
201
|
failureCode = "delivery_failed";
|
|
184
|
-
await deps.deliverReply({ text:
|
|
202
|
+
await deps.deliverReply({ text: text2 });
|
|
185
203
|
assistantMessageDelivered = true;
|
|
186
|
-
recordDeliveredAssistantMessage({
|
|
204
|
+
const recordedMessageId = recordDeliveredAssistantMessage({
|
|
187
205
|
conversation,
|
|
188
206
|
sessionId: turnId,
|
|
189
|
-
text:
|
|
207
|
+
text: text2,
|
|
190
208
|
userMessageId
|
|
191
209
|
});
|
|
192
210
|
try {
|
|
193
211
|
await persistWithRetry(
|
|
194
|
-
() =>
|
|
212
|
+
() => message ? commitAcceptedReply({
|
|
213
|
+
agentMessage: message,
|
|
214
|
+
conversation,
|
|
215
|
+
conversationMessageId: recordedMessageId,
|
|
216
|
+
conversationId: input.conversationId
|
|
217
|
+
}) : persistConversationMessages({
|
|
195
218
|
conversation,
|
|
196
219
|
conversationId: input.conversationId
|
|
197
220
|
})
|
|
@@ -199,10 +222,8 @@ async function runLocalAgentTurn(input, deps) {
|
|
|
199
222
|
} catch (error) {
|
|
200
223
|
logException(
|
|
201
224
|
new Error("Accepted assistant message persistence failed"),
|
|
202
|
-
"
|
|
203
|
-
{
|
|
204
|
-
{ "error.type": error instanceof Error ? error.name : typeof error },
|
|
205
|
-
"Failed to persist an accepted local assistant message"
|
|
225
|
+
"local.assistant.message_post_delivery_persist.failed",
|
|
226
|
+
{ "error.type": error instanceof Error ? error.name : typeof error }
|
|
206
227
|
);
|
|
207
228
|
}
|
|
208
229
|
failureCode = "agent_run_failed";
|
|
@@ -215,6 +236,7 @@ async function runLocalAgentTurn(input, deps) {
|
|
|
215
236
|
failureCode = "agent_run_failed";
|
|
216
237
|
const runAgent = async (messages) => {
|
|
217
238
|
currentRunId = localRunId();
|
|
239
|
+
setTags({ runId: currentRunId });
|
|
218
240
|
const authorization = deps.authorization ? {
|
|
219
241
|
createState: deps.authorization.createState,
|
|
220
242
|
deliver: deps.authorization.deliver
|
|
@@ -260,9 +282,7 @@ async function runLocalAgentTurn(input, deps) {
|
|
|
260
282
|
await deps.onToolResult?.(result);
|
|
261
283
|
}
|
|
262
284
|
},
|
|
263
|
-
delivery:
|
|
264
|
-
onAssistantMessage: deliverAssistantMessage
|
|
265
|
-
},
|
|
285
|
+
delivery: deliverAssistantMessage,
|
|
266
286
|
durability: {
|
|
267
287
|
onArtifactStateUpdated: async (nextArtifacts) => {
|
|
268
288
|
artifacts = nextArtifacts;
|
|
@@ -331,13 +351,12 @@ async function runLocalAgentTurn(input, deps) {
|
|
|
331
351
|
modelFailureCaptureAttempted = reply.diagnostics.outcome !== "success";
|
|
332
352
|
const finalized = finalizeFailedTurnReplyWithEvent({
|
|
333
353
|
reply,
|
|
334
|
-
logException: deps.logException ?? logException
|
|
335
|
-
context: { conversationId: input.conversationId }
|
|
354
|
+
logException: deps.logException ?? logException
|
|
336
355
|
});
|
|
337
356
|
reply = finalized.reply;
|
|
338
357
|
modelFailureEventId = finalized.eventId;
|
|
339
358
|
if (reply.diagnostics.outcome !== "success") {
|
|
340
|
-
await deliverAssistantMessage(
|
|
359
|
+
await deliverAssistantMessage(reply.text);
|
|
341
360
|
}
|
|
342
361
|
completedState = buildDeliveredTurnStatePatch({
|
|
343
362
|
artifacts,
|
|
@@ -468,31 +487,23 @@ async function runLocalAgentTurn(input, deps) {
|
|
|
468
487
|
} catch (error) {
|
|
469
488
|
logException(
|
|
470
489
|
error,
|
|
471
|
-
"
|
|
472
|
-
{},
|
|
490
|
+
"local.plugin.session_completion_task.failed",
|
|
473
491
|
{
|
|
474
492
|
conversationId: input.conversationId,
|
|
475
493
|
pluginName: message.plugin,
|
|
476
494
|
taskName: message.name,
|
|
477
495
|
turnId
|
|
478
|
-
}
|
|
479
|
-
"Local plugin session.completed task failed after reply delivery"
|
|
496
|
+
}
|
|
480
497
|
);
|
|
481
498
|
}
|
|
482
499
|
}
|
|
483
500
|
}
|
|
484
501
|
);
|
|
485
502
|
} catch (error) {
|
|
486
|
-
logException(
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
{
|
|
491
|
-
conversationId: input.conversationId,
|
|
492
|
-
turnId
|
|
493
|
-
},
|
|
494
|
-
"Local plugin session.completed task failed after reply delivery"
|
|
495
|
-
);
|
|
503
|
+
logException(error, "local.plugin.session_completion_task.failed", {
|
|
504
|
+
conversationId: input.conversationId,
|
|
505
|
+
turnId
|
|
506
|
+
});
|
|
496
507
|
}
|
|
497
508
|
}
|
|
498
509
|
return {
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
parseSkillInvocation,
|
|
7
7
|
resetSkillDiscoveryCache,
|
|
8
8
|
stripFrontmatter
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-E5SRLZQV.js";
|
|
10
|
+
import "./chunk-OKUZIXQM.js";
|
|
11
|
+
import "./chunk-GN6WW7WR.js";
|
|
12
12
|
import "./chunk-W3U3YQYI.js";
|
|
13
13
|
import "./chunk-HZF5P5UN.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-4SPRQJOW.js";
|
|
15
15
|
import "./chunk-OB42YVAE.js";
|
|
16
16
|
import "./chunk-F3B2YJ76.js";
|
|
17
17
|
import "./chunk-6GWA276C.js";
|
|
18
18
|
import "./chunk-OOUNJNMR.js";
|
|
19
19
|
import "./chunk-H4HBKISO.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-L2KJ2GNL.js";
|
|
21
|
+
import "./chunk-ISQYBTPG.js";
|
|
22
22
|
import "./chunk-MLKGABMK.js";
|
|
23
23
|
export {
|
|
24
24
|
discoverSkills,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-GFTZKOTP.js";
|
|
5
|
+
import "./chunk-OKUZIXQM.js";
|
|
6
|
+
import "./chunk-GN6WW7WR.js";
|
|
7
7
|
import "./chunk-W3U3YQYI.js";
|
|
8
8
|
import "./chunk-HZF5P5UN.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-4SPRQJOW.js";
|
|
10
10
|
import "./chunk-OB42YVAE.js";
|
|
11
11
|
import "./chunk-F3B2YJ76.js";
|
|
12
12
|
import "./chunk-6GWA276C.js";
|
|
13
13
|
import "./chunk-OOUNJNMR.js";
|
|
14
14
|
import "./chunk-H4HBKISO.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-L2KJ2GNL.js";
|
|
16
|
+
import "./chunk-ISQYBTPG.js";
|
|
17
17
|
import "./chunk-MLKGABMK.js";
|
|
18
18
|
export {
|
|
19
19
|
validatePluginEgressCredentialHooks,
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.122.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@chat-adapter/slack": "4.29.0",
|
|
57
57
|
"@chat-adapter/state-memory": "4.29.0",
|
|
58
58
|
"@chat-adapter/state-redis": "4.29.0",
|
|
59
|
-
"@earendil-works/pi-agent-core": "0.
|
|
60
|
-
"@earendil-works/pi-ai": "0.
|
|
59
|
+
"@earendil-works/pi-agent-core": "0.82.1",
|
|
60
|
+
"@earendil-works/pi-ai": "0.82.1",
|
|
61
61
|
"@logtape/logtape": "^2.1.1",
|
|
62
62
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
63
63
|
"@neondatabase/serverless": "^1.1.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"pg": "^8.16.3",
|
|
80
80
|
"yaml": "^2.9.0",
|
|
81
81
|
"zod": "^4.4.3",
|
|
82
|
-
"@sentry/junior-plugin-api": "0.
|
|
82
|
+
"@sentry/junior-plugin-api": "0.122.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@emnapi/core": "^1.10.0",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"typescript": "^6.0.3",
|
|
97
97
|
"vercel": "^54.4.0",
|
|
98
98
|
"vitest": "^4.1.7",
|
|
99
|
-
"@sentry/junior-github": "0.
|
|
100
|
-
"@sentry/junior-
|
|
101
|
-
"@sentry/junior-
|
|
102
|
-
"@sentry/junior-
|
|
99
|
+
"@sentry/junior-github": "0.122.0",
|
|
100
|
+
"@sentry/junior-testing": "0.0.0",
|
|
101
|
+
"@sentry/junior-scheduler": "0.122.0",
|
|
102
|
+
"@sentry/junior-memory": "0.122.0"
|
|
103
103
|
},
|
|
104
104
|
"scripts": {
|
|
105
105
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|