@sentry/junior 0.236.0 → 0.238.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/{context-0Et9iVSB.js → actor-BTtLaeWy.js} +1 -96
- package/dist/admin-ZGlZ8lY6.js +33 -0
- package/dist/{agent-hooks-Da_H0jHv.js → agent-hooks-CxdSqU2u.js} +1426 -2965
- package/dist/{agent-runner-uP7QRc4c.js → agent-runner-ZS1LHtSR.js} +275 -143
- package/dist/api/schema.d.ts +4 -0
- package/dist/api/schema.js +4 -3
- package/dist/api.d.ts +1 -1
- package/dist/api.js +32 -25
- package/dist/{app-MEd7wbF0.d.ts → app-FB2hmHpZ.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +27 -23
- package/dist/{automation-B9Kc1gcf.js → automation-CrQGQ2MT.js} +3 -2
- package/dist/{briefs-DrjBPQFy.js → briefs-B6IhUAgK.js} +4 -4
- package/dist/{catalog-runtime-C7339Cfm.js → catalog-runtime-BzNg07bb.js} +1 -1
- package/dist/{checkpoint-DaD7_Gsb.js → checkpoint-DWGyJg4c.js} +19 -10
- package/dist/cli/chat.js +13 -13
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +6 -2
- package/dist/cli/plugins.js +5 -3
- package/dist/cli/run.d.ts +2 -1
- package/dist/cli/run.js +2 -1
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-Ch9Hg9NU.js → client-CKs0rj3A.js} +2 -2
- package/dist/{config-JR9wke1W.js → config-DRw358bB.js} +2 -2
- package/dist/{conversation-9Fxa1Zbq.js → conversation-DwD-vquD.js} +3 -517
- package/dist/{conversation-privacy-au02dyZK.js → conversation-privacy-DAYxHp74.js} +1 -1
- package/dist/{credential-sync-BWTA3LnL.js → credential-sync-DmRbuyE4.js} +15 -14
- package/dist/{db-Ca9Nt5ci.d.ts → db-CWZP77Ex.d.ts} +1 -1
- package/dist/{executor-BW9XWgUQ.js → executor-DgPk8Lsx.js} +5 -2
- package/dist/experimental-Qn9rKLgx.js +50 -0
- package/dist/history-BLTUgFYO.js +518 -0
- package/dist/{images-BdG7zcNf.js → images-puyEuXoY.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-BqXd0ZPV.js → job-queue-BL9stv_E.js} +1 -1
- package/dist/{logging-B4sKwmCG.js → logging-BNi_jyHb.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-authorization-BjRN99dc.js → oauth-authorization-Zv1oLB1J.js} +1 -1
- package/dist/{oauth-callback-server-B_1p98Mb.js → oauth-callback-server-BHtVbKvO.js} +2 -2
- package/dist/pending-auth-DulDjfwL.js +433 -0
- package/dist/{profile-BamYnmhO.js → profile-C2TScny6.js} +5 -7
- package/dist/{prompt-Ctwy6hSI.js → prompt-CMU-B4FA.js} +1 -1
- package/dist/{registry-CXNv9fDX.js → registry-D1RsbgDb.js} +111 -3
- package/dist/{resolve-C9ETkt4T.js → resolve-CuY3dhxy.js} +2 -2
- package/dist/{runner-DnBGVRnW.js → runner-BUkReLln.js} +10 -10
- package/dist/{sandbox-egress-signals-DwJ7Boi_.js → sandbox-egress-signals-etjG6qQX.js} +1 -1
- package/dist/{schema-CJiqDc5r.js → schema-CxWAN2zq.js} +2 -2
- package/dist/{skills-Dd8O9Aav.js → skills-BGhThSGR.js} +2 -2
- package/dist/{spawn-DFdRspSD.js → spawn-PtyOnoXt.js} +2 -2
- package/dist/{store-DoewL5mG.d.ts → store-BxxbxBlm.d.ts} +7 -0
- package/dist/{task-queue-DGQEOk1A.js → task-queue-Bi2uNATu.js} +3 -3
- package/dist/{task-runner-C5XCIDSF.js → task-runner-CDoZCo8g.js} +20 -10
- package/dist/{thread-state-D3E29wZk.js → thread-state-B-t88gH0.js} +6 -5
- package/dist/{turn-failure-response-TDoj0aZz.js → turn-failure-response-di4Jx90o.js} +10 -9
- package/dist/{turn-lifecycle-DOnU45p7.js → turn-lifecycle-ByhUHYjD.js} +1 -1
- package/dist/{turn-session-routing-DbpZZoin.js → turn-session-routing-QjNvsevm.js} +1 -1
- package/dist/{validation-B9lMbisx.js → validation-D3li76Ti.js} +2 -3
- package/dist/{version-CWkIGcLU.js → version-Chc6bVG5.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/viewer-DsyM9kb9.js +1636 -0
- package/dist/{web-authorization-PPaoj2ns.js → web-authorization-Enb5lVYt.js} +6 -6
- package/dist/{web-input-CfNxXtHm.js → web-input-efQlcCis.js} +64 -502
- package/dist/{work-DNaoFrEe.js → work-CeiA_ZxD.js} +9 -10
- package/dist/{worker-xeJLxYwm.js → worker-BJb2hsUB.js} +5 -5
- package/migrations/0047_user_timezone.sql +1 -0
- package/migrations/0048_user_admin.sql +1 -0
- package/migrations/meta/0047_snapshot.json +3713 -0
- package/migrations/meta/0048_snapshot.json +3720 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +4 -4
- package/dist/pending-auth-WqF4Gh8Z.js +0 -59
|
@@ -330,6 +330,20 @@
|
|
|
330
330
|
"when": 1791217124543,
|
|
331
331
|
"tag": "0046_automation_versions",
|
|
332
332
|
"breakpoints": true
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"idx": 47,
|
|
336
|
+
"version": "7",
|
|
337
|
+
"when": 1791300043473,
|
|
338
|
+
"tag": "0047_user_timezone",
|
|
339
|
+
"breakpoints": true
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"idx": 48,
|
|
343
|
+
"version": "7",
|
|
344
|
+
"when": 1791490138625,
|
|
345
|
+
"tag": "0048_user_admin",
|
|
346
|
+
"breakpoints": true
|
|
333
347
|
}
|
|
334
348
|
]
|
|
335
349
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.238.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"pg": "^8.16.3",
|
|
88
88
|
"yaml": "^2.9.0",
|
|
89
89
|
"zod": "^4.5.4",
|
|
90
|
-
"@sentry/junior-plugin-api": "0.
|
|
90
|
+
"@sentry/junior-plugin-api": "0.238.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@emnapi/core": "^1.10.0",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"typescript": "^6.0.3",
|
|
107
107
|
"vercel": "^54.4.0",
|
|
108
108
|
"vitest": "^4.1.7",
|
|
109
|
-
"@sentry/junior-github": "0.
|
|
110
|
-
"@sentry/junior-memory": "0.
|
|
109
|
+
"@sentry/junior-github": "0.238.0",
|
|
110
|
+
"@sentry/junior-memory": "0.238.0",
|
|
111
111
|
"@sentry/junior-testing": "0.0.0"
|
|
112
112
|
},
|
|
113
113
|
"scripts": {
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { i as abandonTurnRecord } from "./checkpoint-DaD7_Gsb.js";
|
|
2
|
-
//#region src/chat/state/turn-id.ts
|
|
3
|
-
/** Build a stable turn identifier from a message ID. */
|
|
4
|
-
function buildDeterministicTurnId(messageId) {
|
|
5
|
-
return `turn_${messageId.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
6
|
-
}
|
|
7
|
-
/** Build the stable visible assistant-message identity for one logical turn. */
|
|
8
|
-
function buildDeterministicAssistantMessageId(turnId) {
|
|
9
|
-
return `${turnId}:assistant:1`;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/chat/services/pending-auth.ts
|
|
13
|
-
const AUTH_LINK_REUSE_WINDOW_MS = 6e5;
|
|
14
|
-
const NON_REQUEST_SKIPPED_REASON_PREFIXES = ["directed_to_other_party:", "side_conversation:"];
|
|
15
|
-
function isSkippedNonRequest(reason) {
|
|
16
|
-
return NON_REQUEST_SKIPPED_REASON_PREFIXES.some((prefix) => reason?.startsWith(prefix));
|
|
17
|
-
}
|
|
18
|
-
/** Decide whether the same agent-run session can reuse its fresh auth link. */
|
|
19
|
-
function canReusePendingAuthLink(args) {
|
|
20
|
-
const { pendingAuth } = args;
|
|
21
|
-
if (!pendingAuth) return false;
|
|
22
|
-
return pendingAuth.kind === args.kind && pendingAuth.provider === args.provider && pendingAuth.actorId === args.actorId && pendingAuth.scope === args.scope && pendingAuth.sessionId === args.sessionId && pendingAuth.linkSentAtMs + AUTH_LINK_REUSE_WINDOW_MS > (args.nowMs ?? Date.now());
|
|
23
|
-
}
|
|
24
|
-
function getConversationPendingAuth(args) {
|
|
25
|
-
const pendingAuth = args.conversation.processing.pendingAuth;
|
|
26
|
-
if (!pendingAuth) return;
|
|
27
|
-
if (pendingAuth.kind !== args.kind || pendingAuth.provider !== args.provider || pendingAuth.actorId !== args.actorId || pendingAuth.scope !== args.scope) return;
|
|
28
|
-
return pendingAuth;
|
|
29
|
-
}
|
|
30
|
-
function clearPendingAuth(conversation, sessionId) {
|
|
31
|
-
if (!conversation.processing.pendingAuth) return;
|
|
32
|
-
if (sessionId && conversation.processing.pendingAuth.sessionId !== sessionId) return;
|
|
33
|
-
conversation.processing.pendingAuth = void 0;
|
|
34
|
-
}
|
|
35
|
-
/** Mark the prior blocked turn abandoned after a new auth attempt replaces it. */
|
|
36
|
-
async function abandonReplacedPendingAuth(args) {
|
|
37
|
-
if (args.previousPendingAuth && args.previousPendingAuth.sessionId !== args.nextPendingAuth.sessionId && args.conversationId) await abandonTurnRecord({
|
|
38
|
-
conversationId: args.conversationId,
|
|
39
|
-
turnId: args.previousPendingAuth.sessionId,
|
|
40
|
-
errorMessage: "Abandoned by a newer auth-blocked request in the same conversation."
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Decide whether an auth callback still belongs to the latest real human
|
|
45
|
-
* request, ignoring bot-authored and passive bystander rows while treating
|
|
46
|
-
* failed human turns and opt-outs as newer freshness blockers.
|
|
47
|
-
*/
|
|
48
|
-
function isPendingAuthLatestRequest(conversation, pendingAuth) {
|
|
49
|
-
for (let index = conversation.messages.length - 1; index >= 0; index -= 1) {
|
|
50
|
-
const message = conversation.messages[index];
|
|
51
|
-
if (message?.role !== "user") continue;
|
|
52
|
-
if (message.author?.isBot) continue;
|
|
53
|
-
if (isSkippedNonRequest(message.meta?.skippedReason)) continue;
|
|
54
|
-
return buildDeterministicTurnId(message.id) === pendingAuth.sessionId;
|
|
55
|
-
}
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
//#endregion
|
|
59
|
-
export { isPendingAuthLatestRequest as a, getConversationPendingAuth as i, canReusePendingAuthLink as n, buildDeterministicAssistantMessageId as o, clearPendingAuth as r, buildDeterministicTurnId as s, abandonReplacedPendingAuth as t };
|