@sentry/junior 0.229.0 → 0.230.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-BfjhfMIy.js → agent-hooks-Im1UUKhZ.js} +10 -10
- package/dist/{agent-runner-DtrpkWV5.js → agent-runner-B9dvsdM8.js} +20 -20
- package/dist/api/schema.d.ts +20 -269
- package/dist/api/schema.js +3 -3
- package/dist/api.js +18 -18
- package/dist/{app-BRZB3MuD.d.ts → app-xk2-Id1T.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +22 -21
- package/dist/{briefs-B6KfFLRA.js → briefs-BC3DPfsh.js} +4 -4
- package/dist/{catalog-runtime-Byr3trKF.js → catalog-runtime-Blx7IGY9.js} +1 -1
- package/dist/{checkpoint-DEYb3Fqm.js → checkpoint-BDaS7x3C.js} +7 -9
- 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-BN5U3CGw.js → client-DucHsb6b.js} +2 -2
- package/dist/{config-C4xZrx7G.js → config-HqsfInxG.js} +2 -2
- package/dist/{conversation-DOI6Y60M.js → conversation-DsuDtoYR.js} +96 -74
- package/dist/{conversation-privacy-CB7wx_tP.js → conversation-privacy-k2Ucs1Lg.js} +1 -1
- package/dist/{credential-sync-CuEwdxwY.js → credential-sync-DEF6P_Qr.js} +13 -13
- package/dist/{executor-DUqeOd8y.js → executor-C-LEhjeD.js} +1 -1
- package/dist/history-DvqWZlYX.d.ts +86 -0
- package/dist/{images-B5JLFwJR.js → images-owPAu3eq.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-C1AJ5uJt.js → job-queue-CpNnv-n1.js} +1 -1
- package/dist/{logging-Muw6EXro.js → logging-BO1fVUQe.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-authorization-CrD-xb8a.js → oauth-authorization-DPPpHxSI.js} +1 -1
- package/dist/{oauth-callback-server-DfQos1K1.js → oauth-callback-server-BvVXBrQt.js} +2 -2
- package/dist/{pending-auth-pYQpJmtu.js → pending-auth-BWgfMCZE.js} +1 -1
- package/dist/{profile-25NkcK4S.js → profile-DpHUuqjR.js} +4 -4
- package/dist/{prompt-9C-wUwwx.js → prompt-D5RPLy92.js} +1 -1
- package/dist/{registry-DrcbAs8o.js → registry-CIi9NkkR.js} +1 -1
- package/dist/{resolve-D9kl_rkl.js → resolve-SohTTVYa.js} +2 -2
- package/dist/{runner-D3rf-_hT.js → runner-JhOJ60On.js} +9 -9
- package/dist/{sandbox-egress-signals-BfQQz6cs.js → sandbox-egress-signals-DyO-LeUT.js} +1 -1
- package/dist/{schema-CXmCvVLn.js → schema-B-Taar1W.js} +1 -1
- package/dist/{skills-rwWf3XjQ.js → skills-DElnSC0r.js} +2 -2
- package/dist/{spawn-z0fRvZH9.js → spawn-DrH6CP9W.js} +2 -2
- package/dist/{task-queue-BGo6K-BX.js → task-queue-BEzJHMbQ.js} +3 -3
- package/dist/{task-runner-DH8M0m7l.js → task-runner-DrC1UgCK.js} +9 -9
- package/dist/{thread-state-CS67FjfN.js → thread-state-BIXM2uhZ.js} +5 -5
- package/dist/{turn-failure-response-DcaALKfm.js → turn-failure-response-9Ql2NYKh.js} +17 -15
- package/dist/{turn-lifecycle-DHcpS20C.js → turn-lifecycle-_YDXUFqj.js} +1 -1
- package/dist/{turn-session-routing-DlaCHHlu.js → turn-session-routing-DYxwlqQl.js} +1 -1
- package/dist/{validation-CNUPIKMW.js → validation-_gPdrVG7.js} +1 -1
- package/dist/{version-B0eXuHqw.js → version-Y7rGnMXG.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-DrXlSd3Y.js → web-authorization-COF8MUa5.js} +6 -6
- package/dist/{web-input-WFoSdz8L.js → web-input-BmLFoSUw.js} +49 -31
- package/dist/{work-B0cAo7nv.js → work-CP3L3bNf.js} +7 -7
- package/dist/{worker-DNklqmhH.js → worker-DlZMqtCm.js} +5 -5
- package/package.json +4 -4
- package/dist/history-H-SI5Dej.d.ts +0 -128
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { On as AuthorizationFlowDisabledError, ct as agentInvocationSchema, dt as AgentInvocationLimitError, lt as createAgentInvocationSchema, n as runAgentWithTimeout, st as agentBindingSchema, ut as AgentInvocationBusyError, v as PluginCredentialFailureError, xt as appendAndEnqueueInboundMessage } from "./agent-runner-
|
|
3
|
-
import { $t as getConversationStore, Zt as getConversationEventStore, tn as getSqlExecutor } from "./agent-hooks-
|
|
4
|
-
import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-
|
|
5
|
-
import { I as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-
|
|
6
|
-
import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-
|
|
7
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
8
|
-
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-
|
|
2
|
+
import { On as AuthorizationFlowDisabledError, ct as agentInvocationSchema, dt as AgentInvocationLimitError, lt as createAgentInvocationSchema, n as runAgentWithTimeout, st as agentBindingSchema, ut as AgentInvocationBusyError, v as PluginCredentialFailureError, xt as appendAndEnqueueInboundMessage } from "./agent-runner-B9dvsdM8.js";
|
|
3
|
+
import { $t as getConversationStore, Zt as getConversationEventStore, tn as getSqlExecutor } from "./agent-hooks-Im1UUKhZ.js";
|
|
4
|
+
import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-C-LEhjeD.js";
|
|
5
|
+
import { I as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-BDaS7x3C.js";
|
|
6
|
+
import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-DPPpHxSI.js";
|
|
7
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-_YDXUFqj.js";
|
|
8
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-BIXM2uhZ.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
import { and, asc, count, eq, inArray } from "drizzle-orm";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { At as deadLetterAttempt, Dt as completeConversationStop, Lt as recordAttemptFailure, Mt as ensureConversationWake, Ot as completeConversationWork, Pt as getConversationWorkState, Rt as recordConversationRetry, St as beginConversationResume, Tt as clearConsumedConversationWake, Ut as startConversationWork, Vt as requestAnotherSlice, Xt as isInvalidConversationRecordError, Yt as isFinalAttempt, jt as drainConversationMailbox, kt as countPendingConversationMessages, qt as hasConversationStop, wt as checkInConversationWork, yt as ackMessages, zt as releaseConversationWork } from "./agent-runner-
|
|
3
|
-
import { v as isProviderRetryError } from "./client-
|
|
4
|
-
import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-
|
|
5
|
-
import { a as getChatConfig } from "./config-
|
|
6
|
-
import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-
|
|
2
|
+
import { At as deadLetterAttempt, Dt as completeConversationStop, Lt as recordAttemptFailure, Mt as ensureConversationWake, Ot as completeConversationWork, Pt as getConversationWorkState, Rt as recordConversationRetry, St as beginConversationResume, Tt as clearConsumedConversationWake, Ut as startConversationWork, Vt as requestAnotherSlice, Xt as isInvalidConversationRecordError, Yt as isFinalAttempt, jt as drainConversationMailbox, kt as countPendingConversationMessages, qt as hasConversationStop, wt as checkInConversationWork, yt as ackMessages, zt as releaseConversationWork } from "./agent-runner-B9dvsdM8.js";
|
|
3
|
+
import { v as isProviderRetryError } from "./client-DucHsb6b.js";
|
|
4
|
+
import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-BO1fVUQe.js";
|
|
5
|
+
import { a as getChatConfig } from "./config-HqsfInxG.js";
|
|
6
|
+
import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-CpNnv-n1.js";
|
|
7
7
|
//#region src/chat/task-execution/worker.ts
|
|
8
8
|
var worker_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
CONVERSATION_WORK_DEFER_DELAY_MS: () => CONVERSATION_WORK_DEFER_DELAY_MS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.230.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"pg": "^8.16.3",
|
|
87
87
|
"yaml": "^2.9.0",
|
|
88
88
|
"zod": "^4.5.4",
|
|
89
|
-
"@sentry/junior-plugin-api": "0.
|
|
89
|
+
"@sentry/junior-plugin-api": "0.230.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@emnapi/core": "^1.10.0",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"typescript": "^6.0.3",
|
|
106
106
|
"vercel": "^54.4.0",
|
|
107
107
|
"vitest": "^4.1.7",
|
|
108
|
-
"@sentry/junior-github": "0.
|
|
109
|
-
"@sentry/junior-memory": "0.
|
|
108
|
+
"@sentry/junior-github": "0.230.0",
|
|
109
|
+
"@sentry/junior-memory": "0.230.0",
|
|
110
110
|
"@sentry/junior-testing": "0.0.0"
|
|
111
111
|
},
|
|
112
112
|
"scripts": {
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import "@sentry/junior-plugin-api";
|
|
3
|
-
//#region src/chat/attachments/input.d.ts
|
|
4
|
-
/** Bound JSON image input below the hosting platform's request size limit. */
|
|
5
|
-
declare const MAX_INPUT_IMAGE_BYTES: number;
|
|
6
|
-
declare const MAX_INPUT_IMAGES = 3;
|
|
7
|
-
/** Image bytes accepted with a web message, never stored in its mailbox row. */
|
|
8
|
-
declare const inputImageSchema: z.ZodObject<{
|
|
9
|
-
filename: z.ZodString;
|
|
10
|
-
contentType: z.ZodEnum<{
|
|
11
|
-
"image/png": "image/png";
|
|
12
|
-
"image/jpeg": "image/jpeg";
|
|
13
|
-
"image/gif": "image/gif";
|
|
14
|
-
"image/webp": "image/webp";
|
|
15
|
-
}>;
|
|
16
|
-
data: z.ZodString;
|
|
17
|
-
}, z.core.$strict>;
|
|
18
|
-
type InputImage = z.output<typeof inputImageSchema>;
|
|
19
|
-
/** Safe attachment facts shared by mailbox input and transcript messages. */
|
|
20
|
-
declare const messageAttachmentSchema: z.ZodObject<{
|
|
21
|
-
id: z.ZodString;
|
|
22
|
-
filename: z.ZodString;
|
|
23
|
-
contentType: z.ZodString;
|
|
24
|
-
bytes: z.ZodNumber;
|
|
25
|
-
}, z.core.$strict>;
|
|
26
|
-
type MessageAttachment = z.output<typeof messageAttachmentSchema>;
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/chat/conversations/cards.d.ts
|
|
29
|
-
/** Built-in response types accepted by Message storage and delivery. */
|
|
30
|
-
declare const messageCardSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
-
kind: z.ZodLiteral<"automation">;
|
|
32
|
-
id: z.ZodString;
|
|
33
|
-
title: z.ZodString;
|
|
34
|
-
url: z.ZodNullable<z.ZodString>;
|
|
35
|
-
instruction: z.ZodString;
|
|
36
|
-
trigger: z.ZodString;
|
|
37
|
-
warning: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
-
kind: z.ZodLiteral<"object">;
|
|
40
|
-
key: z.ZodString;
|
|
41
|
-
label: z.ZodString;
|
|
42
|
-
objectType: z.ZodEnum<{
|
|
43
|
-
code_change: "code_change";
|
|
44
|
-
task: "task";
|
|
45
|
-
deployment: "deployment";
|
|
46
|
-
automation: "automation";
|
|
47
|
-
item: "item";
|
|
48
|
-
}>;
|
|
49
|
-
title: z.ZodString;
|
|
50
|
-
url: z.ZodNullable<z.ZodURL>;
|
|
51
|
-
description: z.ZodOptional<z.ZodString>;
|
|
52
|
-
status: z.ZodOptional<z.ZodString>;
|
|
53
|
-
trigger: z.ZodOptional<z.ZodString>;
|
|
54
|
-
warning: z.ZodOptional<z.ZodString>;
|
|
55
|
-
displayType: z.ZodOptional<z.ZodString>;
|
|
56
|
-
sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
57
|
-
facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58
|
-
type: z.ZodLiteral<"code_change">;
|
|
59
|
-
author: z.ZodOptional<z.ZodString>;
|
|
60
|
-
sourceBranch: z.ZodOptional<z.ZodString>;
|
|
61
|
-
targetBranch: z.ZodOptional<z.ZodString>;
|
|
62
|
-
reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
-
review: z.ZodOptional<z.ZodEnum<{
|
|
64
|
-
required: "required";
|
|
65
|
-
approved: "approved";
|
|
66
|
-
changes_requested: "changes_requested";
|
|
67
|
-
}>>;
|
|
68
|
-
checks: z.ZodOptional<z.ZodObject<{
|
|
69
|
-
passed: z.ZodNumber;
|
|
70
|
-
failed: z.ZodNumber;
|
|
71
|
-
pending: z.ZodNumber;
|
|
72
|
-
}, z.core.$strict>>;
|
|
73
|
-
mergeable: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
-
changedFiles: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
additions: z.ZodOptional<z.ZodNumber>;
|
|
76
|
-
deletions: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
-
type: z.ZodLiteral<"task">;
|
|
79
|
-
assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
-
priority: z.ZodOptional<z.ZodString>;
|
|
81
|
-
project: z.ZodOptional<z.ZodString>;
|
|
82
|
-
cycle: z.ZodOptional<z.ZodString>;
|
|
83
|
-
dueDate: z.ZodOptional<z.ZodISODate>;
|
|
84
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
86
|
-
type: z.ZodLiteral<"deployment">;
|
|
87
|
-
project: z.ZodOptional<z.ZodString>;
|
|
88
|
-
environment: z.ZodOptional<z.ZodString>;
|
|
89
|
-
revision: z.ZodOptional<z.ZodString>;
|
|
90
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
91
|
-
}, z.core.$strict>], "type">>;
|
|
92
|
-
plugin: z.ZodString;
|
|
93
|
-
}, z.core.$strict>], "kind">;
|
|
94
|
-
type MessageCard = z.output<typeof messageCardSchema>;
|
|
95
|
-
/** Render each built-in card with its own text format. */
|
|
96
|
-
declare function messageCardText(card: MessageCard): string;
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region src/chat/conversations/history.d.ts
|
|
99
|
-
/** Where a failed turn stopped. */
|
|
100
|
-
declare const conversationTurnFailureCodeSchema: z.ZodEnum<{
|
|
101
|
-
agent_run_failed: "agent_run_failed";
|
|
102
|
-
delivery_failed: "delivery_failed";
|
|
103
|
-
model_execution_failed: "model_execution_failed";
|
|
104
|
-
persistence_failed: "persistence_failed";
|
|
105
|
-
}>;
|
|
106
|
-
/**
|
|
107
|
-
* Why a failed turn stopped.
|
|
108
|
-
* Values are fixed labels only. Do not store raw exception text.
|
|
109
|
-
*/
|
|
110
|
-
declare const conversationTurnFailureReasonSchema: z.ZodEnum<{
|
|
111
|
-
unknown: "unknown";
|
|
112
|
-
capacity: "capacity";
|
|
113
|
-
auth: "auth";
|
|
114
|
-
permission: "permission";
|
|
115
|
-
rate_limit: "rate_limit";
|
|
116
|
-
timeout: "timeout";
|
|
117
|
-
network: "network";
|
|
118
|
-
server: "server";
|
|
119
|
-
invalid_request: "invalid_request";
|
|
120
|
-
invalid_response: "invalid_response";
|
|
121
|
-
quota: "quota";
|
|
122
|
-
content_policy: "content_policy";
|
|
123
|
-
empty_output: "empty_output";
|
|
124
|
-
tool_errors: "tool_errors";
|
|
125
|
-
suppressed_output: "suppressed_output";
|
|
126
|
-
}>;
|
|
127
|
-
//#endregion
|
|
128
|
-
export { InputImage as a, MessageAttachment as c, messageCardText as i, conversationTurnFailureReasonSchema as n, MAX_INPUT_IMAGES as o, MessageCard as r, MAX_INPUT_IMAGE_BYTES as s, conversationTurnFailureCodeSchema as t };
|