@sentry/junior 0.208.0 → 0.209.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-BfxfHsf1.js → agent-B_tHeZp6.js} +17 -17
- package/dist/{agent-hooks-CuGjLjmR.js → agent-hooks-DDJGkqlR.js} +6 -6
- package/dist/{agent-runner-Dz1PMKP0.js → agent-runner-CPBSl1Xv.js} +5 -5
- package/dist/api.js +15 -15
- package/dist/app.js +29 -29
- package/dist/{auth-pause-state-Bjoh8wCy.js → auth-pause-state-BZqtr-GX.js} +6 -6
- package/dist/{briefs-q_onrGmf.js → briefs-ZLRkWQQn.js} +2 -2
- package/dist/{catalog-runtime-D8YUMNhb.js → catalog-runtime-D89PJa84.js} +1 -1
- package/dist/{checkpoint-FKMcINix.js → checkpoint-DBX1KyOb.js} +6 -6
- package/dist/cli/chat.js +13 -13
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-bRyPqwAV.js → client-7_NmRtoz.js} +54 -6
- package/dist/{config-EtF2uEaW.js → config-BPGL4uP-.js} +3 -3
- package/dist/{conversation-privacy-whGaV2TG.js → conversation-privacy-CgtRvwq8.js} +1 -1
- package/dist/{credential-sync-DM-EE1ey.js → credential-sync-DCYT7j8m.js} +20 -20
- package/dist/{execution-stats-C-f8zwMU.js → execution-stats-CyehCrCF.js} +4 -4
- package/dist/{executor-BW5qp0jC.js → executor-ctvBB7kO.js} +1 -1
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-BIHNIEIX.js → job-queue-C1lIZ7DE.js} +1 -1
- package/dist/{logging-sNS84Yuu.js → logging-CHzH6JFD.js} +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-Co6D_yXP.js → oauth-callback-server-DQvCkP93.js} +2 -2
- package/dist/{pending-auth-CRJCt9Ux.js → pending-auth-D6c_jWmW.js} +2 -2
- package/dist/{profile-BfLMVhWo.js → profile-DPAFjrER.js} +4 -4
- package/dist/{registry-Cyww_jnC.js → registry-vUqDWPNS.js} +1 -1
- package/dist/{resolve-BApIFQXX.js → resolve-CToO52ls.js} +2 -2
- package/dist/{runner-C9okx4GL.js → runner-D3KdCdDY.js} +9 -9
- package/dist/{sandbox-egress-signals-BHfx0esj.js → sandbox-egress-signals-C_zy8cZG.js} +1 -1
- package/dist/{skills-DhL_wXEp.js → skills-BszTHE4F.js} +2 -2
- package/dist/{spawn-msnzfE8_.js → spawn-v7JJowIu.js} +2 -2
- package/dist/{stats-Cq5w_Awk.js → stats-t0wuykQW.js} +39 -31
- package/dist/{task-queue-JfmWmpjS.js → task-queue-TyHaXCpO.js} +3 -3
- package/dist/{task-runner-Cm0gXoLH.js → task-runner-DVDa7fAI.js} +7 -7
- package/dist/{thread-state-lw2QwQ-y.js → thread-state-DB_913ic.js} +5 -5
- package/dist/{turn-execution-C7K6lQp1.js → turn-execution-BRd4mQlB.js} +3 -3
- package/dist/{turn-lifecycle-DVlJLwB0.js → turn-lifecycle-CoNJoE-n.js} +1 -1
- package/dist/{usage-BMuAlKIW.js → usage-D5t1yT3R.js} +2 -2
- package/dist/{validation-BI-r3iQA.js → validation-sI1EnNoM.js} +1 -1
- package/dist/{version-s6smK6lP.js → version-BrgX_LoI.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-C9MxPvXX.js → web-authorization-BNCTTM5f.js} +1 -1
- package/dist/{web-input-CwVlaLd0.js → web-input-NEbUfS0Q.js} +4 -4
- package/dist/{work-BK0W1QAt.js → work-Dv5SHQ4C.js} +9 -9
- package/dist/{worker-D-WWKHQD.js → worker-1GzySfPG.js} +15 -10
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { b as isProviderRetryError } from "./client-
|
|
3
|
-
import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-
|
|
4
|
-
import { a as getChatConfig } from "./config-
|
|
5
|
-
import { At as recordConversationRetry,
|
|
2
|
+
import { b as isProviderRetryError } from "./client-7_NmRtoz.js";
|
|
3
|
+
import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-CHzH6JFD.js";
|
|
4
|
+
import { a as getChatConfig } from "./config-BPGL4uP-.js";
|
|
5
|
+
import { At as recordConversationRetry, Ct as drainConversationMailbox, Et as getConversationWorkState, Ft as startConversationWork, Ht as isInvalidConversationRecordError, Nt as requestAnotherSlice, St as deadLetterAttempt, Vt as isFinalAttempt, _t as clearConsumedConversationWake, bt as completeConversationWork, dt as ackMessages, gt as checkInConversationWork, jt as releaseConversationWork, kt as recordAttemptFailure, mt as beginConversationResume, wt as ensureConversationWake, xt as countPendingConversationMessages, yt as completeConversationStop, zt as hasConversationStop } from "./stats-t0wuykQW.js";
|
|
6
6
|
import { c as ConversationQueueMessageRejectedError } from "./vercel-queue-DIkVcfK4.js";
|
|
7
|
-
import { a as getTurnRequestDeadline } from "./job-queue-
|
|
7
|
+
import { a as getTurnRequestDeadline } from "./job-queue-C1lIZ7DE.js";
|
|
8
8
|
//#region src/chat/task-execution/worker.ts
|
|
9
9
|
var worker_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
CONVERSATION_WORK_DEFER_DELAY_MS: () => CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
@@ -132,7 +132,7 @@ function startLeaseCheckIn(args) {
|
|
|
132
132
|
timer.unref?.();
|
|
133
133
|
return timer;
|
|
134
134
|
}
|
|
135
|
-
/** Poll
|
|
135
|
+
/** Poll the run-scoped stop marker only when an adapter observes remote stops. */
|
|
136
136
|
function createConversationStopSignal(args) {
|
|
137
137
|
const controller = new AbortController();
|
|
138
138
|
let checking = false;
|
|
@@ -142,15 +142,16 @@ function createConversationStopSignal(args) {
|
|
|
142
142
|
const requestStop = () => {
|
|
143
143
|
if (!controller.signal.aborted) controller.abort(/* @__PURE__ */ new Error("Conversation work stopped"));
|
|
144
144
|
};
|
|
145
|
-
if (args.
|
|
145
|
+
if (args.initiallyStopped) requestStop();
|
|
146
146
|
const check = async () => {
|
|
147
147
|
if (checking || controller.signal.aborted) return;
|
|
148
148
|
checking = true;
|
|
149
149
|
try {
|
|
150
|
-
if (
|
|
150
|
+
if (await hasConversationStop({
|
|
151
151
|
conversationId: args.conversationId,
|
|
152
|
+
runId: args.runId,
|
|
152
153
|
state: args.options.state
|
|
153
|
-
}))
|
|
154
|
+
})) requestStop();
|
|
154
155
|
} catch (error) {
|
|
155
156
|
if (!failureCaptured) {
|
|
156
157
|
failureCaptured = true;
|
|
@@ -374,7 +375,11 @@ async function processConversationWorkInContext(message, options) {
|
|
|
374
375
|
};
|
|
375
376
|
const stop = createConversationStopSignal({
|
|
376
377
|
conversationId,
|
|
377
|
-
|
|
378
|
+
initiallyStopped: await hasConversationStop({
|
|
379
|
+
conversationId,
|
|
380
|
+
runId,
|
|
381
|
+
state: options.state
|
|
382
|
+
}),
|
|
378
383
|
options,
|
|
379
384
|
runId
|
|
380
385
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.209.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@chat-adapter/state-memory": "4.29.0",
|
|
59
59
|
"@chat-adapter/state-redis": "4.29.0",
|
|
60
60
|
"@earendil-works/pi-agent-core": "0.84.1",
|
|
61
|
-
"@earendil-works/pi-ai": "0.
|
|
61
|
+
"@earendil-works/pi-ai": "0.85.1",
|
|
62
62
|
"@hono/zod-validator": "^0.9.0",
|
|
63
63
|
"@logtape/logtape": "^2.1.1",
|
|
64
64
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"pg": "^8.16.3",
|
|
86
86
|
"yaml": "^2.9.0",
|
|
87
87
|
"zod": "^4.5.4",
|
|
88
|
-
"@sentry/junior-plugin-api": "0.
|
|
88
|
+
"@sentry/junior-plugin-api": "0.209.0"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@emnapi/core": "^1.10.0",
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
"typescript": "^6.0.3",
|
|
105
105
|
"vercel": "^54.4.0",
|
|
106
106
|
"vitest": "^4.1.7",
|
|
107
|
-
"@sentry/junior-
|
|
108
|
-
"@sentry/junior-
|
|
109
|
-
"@sentry/junior-
|
|
107
|
+
"@sentry/junior-memory": "0.209.0",
|
|
108
|
+
"@sentry/junior-github": "0.209.0",
|
|
109
|
+
"@sentry/junior-testing": "0.0.0"
|
|
110
110
|
},
|
|
111
111
|
"scripts": {
|
|
112
112
|
"build": "tsdown",
|