@sentry/junior 0.180.0 → 0.181.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-DKDDRKZA.js → agent-hooks-IQUW6ERD.js} +11 -11
- package/dist/api/schema/workspace.d.ts +2 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +32 -31
- package/dist/app.js +34 -34
- package/dist/{catalog-runtime-WXKGUF3W.js → catalog-runtime-PMQWNIXA.js} +4 -4
- package/dist/chat/plugins/agent-hooks.d.ts +1 -1
- package/dist/chat/services/turn-session-routing.d.ts +1 -0
- package/dist/chat/tools/types.d.ts +2 -0
- package/dist/chat/workspaces/types.d.ts +2 -0
- package/dist/{chunk-LGVQLNLS.js → chunk-3KCQEG6W.js} +8 -8
- package/dist/{chunk-CK6EINVZ.js → chunk-3KSSALN4.js} +5 -5
- package/dist/{chunk-VG722ONZ.js → chunk-3X55QRAG.js} +6 -6
- package/dist/{chunk-2YIRH4E3.js → chunk-4IX32NSL.js} +1 -1
- package/dist/{chunk-TKB25A3L.js → chunk-CZYNWPWD.js} +2 -1
- package/dist/{chunk-DHLOGWYH.js → chunk-D6ZD7VXP.js} +19 -8
- package/dist/{chunk-KCL6AWYW.js → chunk-DSA6WTRP.js} +19 -19
- package/dist/{chunk-RAZG3YHC.js → chunk-EBMRB6Z6.js} +1 -1
- package/dist/{chunk-VGPPWWHF.js → chunk-EM7EECT5.js} +2 -2
- package/dist/{chunk-6YCEWOLO.js → chunk-ETJTXYHY.js} +1 -1
- package/dist/{chunk-MXEUIGHO.js → chunk-EU7KJDOG.js} +1 -1
- package/dist/{chunk-5TUR4M3M.js → chunk-FWILPBVQ.js} +5 -5
- package/dist/{chunk-ZE2KOV3G.js → chunk-GPA3ZSYY.js} +1 -1
- package/dist/{chunk-SDBKZ5LV.js → chunk-GREV5PJK.js} +4 -4
- package/dist/{chunk-3ILJBWP7.js → chunk-GWFRPQNP.js} +17 -12
- package/dist/{chunk-DRHEGXTZ.js → chunk-HEBMSITT.js} +1 -1
- package/dist/{chunk-GUKXEPMX.js → chunk-HJ27A6YB.js} +1 -1
- package/dist/{chunk-IANUX7HX.js → chunk-HZHUMCNV.js} +1 -1
- package/dist/{chunk-QSO7B5JO.js → chunk-IJ6SS4WB.js} +1 -1
- package/dist/{chunk-2AYEVN7K.js → chunk-IKKETMQC.js} +3 -3
- package/dist/{chunk-FGC3PHNH.js → chunk-KKSVCHDO.js} +8 -1
- package/dist/{chunk-WVAMRKYG.js → chunk-KMBU4PJP.js} +3 -3
- package/dist/{chunk-U5EUCUBH.js → chunk-KQZX24QQ.js} +3 -3
- package/dist/{chunk-TC5DE5KJ.js → chunk-LCNPXLE7.js} +7 -7
- package/dist/{chunk-O4QYZTDK.js → chunk-LG5MYY6U.js} +6 -6
- package/dist/{chunk-EWHP2IRG.js → chunk-LZOQFC5F.js} +5 -5
- package/dist/{chunk-GPXAHUQH.js → chunk-NQTA72Q3.js} +6 -6
- package/dist/{chunk-5PUMIMNQ.js → chunk-PBKZQAUA.js} +53 -33
- package/dist/{chunk-GA5NS74S.js → chunk-PL57B6NC.js} +1 -1
- package/dist/{chunk-CP73FKME.js → chunk-PPYDHUEL.js} +13 -13
- package/dist/{chunk-L7LTGN4Z.js → chunk-Q2KY27IX.js} +4 -4
- package/dist/{chunk-S7YRTOSQ.js → chunk-RNMASWLP.js} +3 -3
- package/dist/{chunk-CCDXTDSY.js → chunk-TDT2R77B.js} +1 -1
- package/dist/{chunk-ZM7ZURJS.js → chunk-TJHSAHQN.js} +1 -1
- package/dist/{chunk-I6IFTAPF.js → chunk-XYTJUHRZ.js} +2 -2
- package/dist/cli/chat.js +32 -32
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/db/schema/snapshots.d.ts +17 -0
- package/dist/db/schema.d.ts +17 -0
- package/dist/{db-6SBHIAJK.js → db-QNPVCQPT.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-WSDQPZZS.js → oauth-callback-server-KYMPJOTC.js} +25 -25
- package/dist/{runner-GWTSWESR.js → runner-3RS2D2ZR.js} +18 -18
- package/dist/{skills-F32BPFYW.js → skills-5B3Y6XX6.js} +5 -5
- package/dist/spawn-VYARS3DU.js +37 -0
- package/dist/task-runner-4IXKKZHL.js +32 -0
- package/dist/{validation-62WO524A.js → validation-Q65QD27B.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-3C3CMZ24.js → work-DCMQWAAP.js} +18 -18
- package/dist/worker-QL3CHLZL.js +22 -0
- package/migrations/0035_workspace_snapshot_size_bytes.sql +2 -0
- package/migrations/meta/0035_snapshot.json +3048 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
- package/dist/spawn-X5BPP5OE.js +0 -37
- package/dist/task-runner-2FPBV5PP.js +0 -32
- package/dist/worker-MFAI6ZEK.js +0 -22
|
@@ -13,24 +13,24 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D6ZD7VXP.js";
|
|
17
17
|
import "./chunk-3Y47VMHV.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-RNMASWLP.js";
|
|
19
|
+
import "./chunk-KKSVCHDO.js";
|
|
20
|
+
import "./chunk-KMBU4PJP.js";
|
|
21
|
+
import "./chunk-PL57B6NC.js";
|
|
22
22
|
import "./chunk-VFUK3X5B.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XYTJUHRZ.js";
|
|
24
|
+
import "./chunk-ETJTXYHY.js";
|
|
25
|
+
import "./chunk-HEBMSITT.js";
|
|
26
|
+
import "./chunk-4IX32NSL.js";
|
|
27
27
|
import "./chunk-CEMMLV5L.js";
|
|
28
28
|
import "./chunk-N7TMSOZH.js";
|
|
29
29
|
import "./chunk-DWPN6SCH.js";
|
|
30
30
|
import "./chunk-TXKUKMVO.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-EBMRB6Z6.js";
|
|
32
32
|
import "./chunk-PEQXYSSE.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-TJHSAHQN.js";
|
|
34
34
|
export {
|
|
35
35
|
PluginHookDeniedError,
|
|
36
36
|
applyPluginFormatMarkdown,
|
|
@@ -24,6 +24,7 @@ export declare const workspaceSchema: z.ZodObject<{
|
|
|
24
24
|
id: z.ZodString;
|
|
25
25
|
generatedAt: z.ZodISODateTime;
|
|
26
26
|
buildDurationMs: z.ZodNumber;
|
|
27
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
27
28
|
}, z.core.$strict>>;
|
|
28
29
|
}, z.core.$strict>;
|
|
29
30
|
export declare const workspaceListSchema: z.ZodObject<{
|
|
@@ -46,6 +47,7 @@ export declare const workspaceListSchema: z.ZodObject<{
|
|
|
46
47
|
id: z.ZodString;
|
|
47
48
|
generatedAt: z.ZodISODateTime;
|
|
48
49
|
buildDurationMs: z.ZodNumber;
|
|
50
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
49
51
|
}, z.core.$strict>>;
|
|
50
52
|
}, z.core.$strict>>;
|
|
51
53
|
}, z.core.$strict>;
|
package/dist/api/schema.js
CHANGED
package/dist/api.js
CHANGED
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
workspaceListSchema,
|
|
42
42
|
workspaceParamsSchema,
|
|
43
43
|
workspaceSchema
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CZYNWPWD.js";
|
|
45
45
|
import {
|
|
46
46
|
appendAndEnqueueApiConversationMessage,
|
|
47
47
|
authenticatePersonalToken,
|
|
@@ -63,12 +63,12 @@ import {
|
|
|
63
63
|
revokePersonalToken,
|
|
64
64
|
viewerConversationMembership,
|
|
65
65
|
webActorFromEmail
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-PPYDHUEL.js";
|
|
67
67
|
import {
|
|
68
68
|
buildSentryConversationUrl,
|
|
69
69
|
getWebAuthorization
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-EU7KJDOG.js";
|
|
71
|
+
import "./chunk-LZOQFC5F.js";
|
|
72
72
|
import {
|
|
73
73
|
readTaskExecutionByConversationId,
|
|
74
74
|
readTaskExecutionDays,
|
|
@@ -76,9 +76,9 @@ import {
|
|
|
76
76
|
readTaskExecutionSummaries,
|
|
77
77
|
readTaskExecutions,
|
|
78
78
|
readTaskRuns
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-GWFRPQNP.js";
|
|
80
80
|
import "./chunk-M3QYTBQ6.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-FWILPBVQ.js";
|
|
82
82
|
import {
|
|
83
83
|
healthReportSchema,
|
|
84
84
|
pluginOperationalReportFeedSchema,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
runtimeInfoReportSchema,
|
|
87
87
|
skillReportsSchema
|
|
88
88
|
} from "./chunk-UTL3MHPC.js";
|
|
89
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-KQZX24QQ.js";
|
|
90
90
|
import {
|
|
91
91
|
deleteEventTask,
|
|
92
92
|
eventTaskBelongsToUser,
|
|
@@ -103,31 +103,31 @@ import {
|
|
|
103
103
|
readScheduledTask,
|
|
104
104
|
readStats,
|
|
105
105
|
saveScheduledTask
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-3KSSALN4.js";
|
|
107
107
|
import {
|
|
108
108
|
parseSlackThreadId
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-TDT2R77B.js";
|
|
110
110
|
import {
|
|
111
111
|
cancelHumanFacingPendingMessages,
|
|
112
112
|
getConversation
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-Q2KY27IX.js";
|
|
114
|
+
import "./chunk-HJ27A6YB.js";
|
|
115
115
|
import {
|
|
116
116
|
agentTurnUsageSchema,
|
|
117
117
|
fallbackShortTitle,
|
|
118
118
|
hasAgentTurnUsage,
|
|
119
119
|
renderJuniorNativeConversationEvent
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-NQTA72Q3.js";
|
|
121
121
|
import {
|
|
122
122
|
getCachedSnapshot
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-IKKETMQC.js";
|
|
124
124
|
import "./chunk-PDO5BLNM.js";
|
|
125
125
|
import {
|
|
126
126
|
getVercelConversationWorkQueue
|
|
127
127
|
} from "./chunk-DKIJ2RP5.js";
|
|
128
128
|
import "./chunk-JAL3CH4G.js";
|
|
129
129
|
import "./chunk-7H2VZTWN.js";
|
|
130
|
-
import "./chunk-
|
|
130
|
+
import "./chunk-GPA3ZSYY.js";
|
|
131
131
|
import {
|
|
132
132
|
SANDBOX_RUNTIME,
|
|
133
133
|
WorkspaceValidationError,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
updateWorkspace,
|
|
148
148
|
withSlackRetries,
|
|
149
149
|
workspaceRepoCheckoutPath
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-D6ZD7VXP.js";
|
|
151
151
|
import "./chunk-3Y47VMHV.js";
|
|
152
152
|
import {
|
|
153
153
|
decodeStoredConversationEvent,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
locationFromRow,
|
|
158
158
|
parseSessionSource,
|
|
159
159
|
resolveRootConversationId
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-RNMASWLP.js";
|
|
161
161
|
import {
|
|
162
162
|
conversationReadColumns,
|
|
163
163
|
juniorConversationEvents,
|
|
@@ -166,19 +166,19 @@ import {
|
|
|
166
166
|
juniorIdentities,
|
|
167
167
|
juniorSchedulerTasks,
|
|
168
168
|
juniorUsers
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-KKSVCHDO.js";
|
|
170
170
|
import {
|
|
171
171
|
create,
|
|
172
172
|
hash
|
|
173
|
-
} from "./chunk-
|
|
174
|
-
import "./chunk-
|
|
173
|
+
} from "./chunk-KMBU4PJP.js";
|
|
174
|
+
import "./chunk-PL57B6NC.js";
|
|
175
175
|
import {
|
|
176
176
|
juniorDestinations
|
|
177
177
|
} from "./chunk-VFUK3X5B.js";
|
|
178
|
-
import "./chunk-
|
|
179
|
-
import "./chunk-
|
|
180
|
-
import "./chunk-
|
|
181
|
-
import "./chunk-
|
|
178
|
+
import "./chunk-XYTJUHRZ.js";
|
|
179
|
+
import "./chunk-ETJTXYHY.js";
|
|
180
|
+
import "./chunk-HEBMSITT.js";
|
|
181
|
+
import "./chunk-4IX32NSL.js";
|
|
182
182
|
import "./chunk-CEMMLV5L.js";
|
|
183
183
|
import {
|
|
184
184
|
parseSlackChannelId,
|
|
@@ -190,9 +190,9 @@ import "./chunk-TXKUKMVO.js";
|
|
|
190
190
|
import {
|
|
191
191
|
logException,
|
|
192
192
|
logWarn
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-EBMRB6Z6.js";
|
|
194
194
|
import "./chunk-PEQXYSSE.js";
|
|
195
|
-
import "./chunk-
|
|
195
|
+
import "./chunk-TJHSAHQN.js";
|
|
196
196
|
|
|
197
197
|
// src/api.ts
|
|
198
198
|
import { Hono as Hono8 } from "hono";
|
|
@@ -4194,7 +4194,7 @@ async function readPeoplePluginReports(args) {
|
|
|
4194
4194
|
source: "plugins"
|
|
4195
4195
|
});
|
|
4196
4196
|
}
|
|
4197
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
4197
|
+
const { getPluginProfileReports } = await import("./agent-hooks-IQUW6ERD.js");
|
|
4198
4198
|
return pluginOperationalReportFeedSchema.parse({
|
|
4199
4199
|
generatedAt: new Date(nowMs).toISOString(),
|
|
4200
4200
|
reports: await getPluginProfileReports({
|
|
@@ -4755,7 +4755,8 @@ function snapshotView(workspace) {
|
|
|
4755
4755
|
return {
|
|
4756
4756
|
id: recorded.id,
|
|
4757
4757
|
generatedAt: recorded.generatedAt.toISOString(),
|
|
4758
|
-
buildDurationMs: recorded.buildDurationMs
|
|
4758
|
+
buildDurationMs: recorded.buildDurationMs,
|
|
4759
|
+
sizeBytes: recorded.sizeBytes
|
|
4759
4760
|
};
|
|
4760
4761
|
}
|
|
4761
4762
|
async function baselineSnapshotView() {
|
|
@@ -4912,7 +4913,7 @@ function readDescriptionText(home) {
|
|
|
4912
4913
|
}
|
|
4913
4914
|
}
|
|
4914
4915
|
async function readSkillReports() {
|
|
4915
|
-
const { discoverSkills } = await import("./skills-
|
|
4916
|
+
const { discoverSkills } = await import("./skills-5B3Y6XX6.js");
|
|
4916
4917
|
const skills = await discoverSkills();
|
|
4917
4918
|
return skillReportsSchema.parse(
|
|
4918
4919
|
skills.map((skill) => ({
|
|
@@ -4922,7 +4923,7 @@ async function readSkillReports() {
|
|
|
4922
4923
|
);
|
|
4923
4924
|
}
|
|
4924
4925
|
async function readPlugins() {
|
|
4925
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4926
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-PMQWNIXA.js");
|
|
4926
4927
|
return pluginsSchema.parse(
|
|
4927
4928
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4928
4929
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -4935,7 +4936,7 @@ async function readPlugins() {
|
|
|
4935
4936
|
async function readRuntimeInfoReport() {
|
|
4936
4937
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4937
4938
|
import("./discovery-DWVDM7UK.js"),
|
|
4938
|
-
import("./catalog-runtime-
|
|
4939
|
+
import("./catalog-runtime-PMQWNIXA.js"),
|
|
4939
4940
|
readPlugins(),
|
|
4940
4941
|
readSkillReports()
|
|
4941
4942
|
]);
|
|
@@ -4951,7 +4952,7 @@ async function readRuntimeInfoReport() {
|
|
|
4951
4952
|
}
|
|
4952
4953
|
async function readPluginOperationalReportFeed() {
|
|
4953
4954
|
const nowMs = Date.now();
|
|
4954
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
4955
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-IQUW6ERD.js");
|
|
4955
4956
|
return pluginOperationalReportFeedSchema.parse({
|
|
4956
4957
|
source: "plugins",
|
|
4957
4958
|
generatedAt: new Date(nowMs).toISOString(),
|
package/dist/app.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
processConversationWork
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GREV5PJK.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HZHUMCNV.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
routeAgentInvocationWork
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LCNPXLE7.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
startSlackProcessingReaction,
|
|
37
37
|
stripLeadingBotMention,
|
|
38
38
|
wakePausedTurn
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-DSA6WTRP.js";
|
|
40
40
|
import "./chunk-FA6POGLH.js";
|
|
41
41
|
import {
|
|
42
42
|
GET,
|
|
@@ -53,8 +53,8 @@ import {
|
|
|
53
53
|
resolveSlackConversationContext,
|
|
54
54
|
routeApiTurnWork,
|
|
55
55
|
webActorFromEmail
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-PPYDHUEL.js";
|
|
57
|
+
import "./chunk-EU7KJDOG.js";
|
|
58
58
|
import {
|
|
59
59
|
buildDeliveredTurnStatePatch,
|
|
60
60
|
completeAuthPauseTurn,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
getTurnUserSlackMessageTs,
|
|
66
66
|
persistAuthPauseTurnState,
|
|
67
67
|
requireTurnFailureEventId
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-LZOQFC5F.js";
|
|
69
69
|
import {
|
|
70
70
|
claimDispatchMailboxAppend,
|
|
71
71
|
confirmDispatchMailboxAppend,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
recordTaskExecution,
|
|
86
86
|
resolveTurnSessionRouting,
|
|
87
87
|
scheduleSessionCompletedPluginTasks
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-GWFRPQNP.js";
|
|
89
89
|
import {
|
|
90
90
|
ConversationTurnLifecycleService
|
|
91
91
|
} from "./chunk-M3QYTBQ6.js";
|
|
@@ -97,17 +97,17 @@ import {
|
|
|
97
97
|
persistThreadRuntimeState,
|
|
98
98
|
persistThreadState,
|
|
99
99
|
persistThreadStateById
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-FWILPBVQ.js";
|
|
101
101
|
import "./chunk-UTL3MHPC.js";
|
|
102
102
|
import {
|
|
103
103
|
createVercelPluginTaskCallback,
|
|
104
104
|
queueCallback,
|
|
105
105
|
registerVercelPluginTaskDevConsumer
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-KQZX24QQ.js";
|
|
107
107
|
import {
|
|
108
108
|
validatePluginEgressCredentialHooks,
|
|
109
109
|
validatePluginRegistrations
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-IJ6SS4WB.js";
|
|
111
111
|
import {
|
|
112
112
|
defineJuniorPlugins,
|
|
113
113
|
pluginCatalogConfigFromEnv,
|
|
@@ -155,11 +155,11 @@ import {
|
|
|
155
155
|
unpublishedArtifactHeaders,
|
|
156
156
|
verifySlackSignature,
|
|
157
157
|
withNormalizedThreadId
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-PBKZQAUA.js";
|
|
159
159
|
import {
|
|
160
160
|
AuthorizationFlowDisabledError,
|
|
161
161
|
PluginCredentialFailureError
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-3X55QRAG.js";
|
|
163
163
|
import "./chunk-6Y5B5PEX.js";
|
|
164
164
|
import "./chunk-DIB4GX3G.js";
|
|
165
165
|
import {
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
deleteMcpAuthSessionsForUserProvider,
|
|
169
169
|
deleteMcpServerSessionId,
|
|
170
170
|
deleteMcpStoredOAuthCredentials
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-3KCQEG6W.js";
|
|
172
172
|
import {
|
|
173
173
|
RetryableDeliveryError
|
|
174
174
|
} from "./chunk-RF6J3DIO.js";
|
|
@@ -176,7 +176,7 @@ import {
|
|
|
176
176
|
formatProviderLabel,
|
|
177
177
|
postSlackMessage,
|
|
178
178
|
startOAuthFlow
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-LG5MYY6U.js";
|
|
180
180
|
import {
|
|
181
181
|
getExperimentalFeatures,
|
|
182
182
|
isExperimentalFeatureEnabled,
|
|
@@ -196,10 +196,10 @@ import {
|
|
|
196
196
|
scheduledRunId,
|
|
197
197
|
scheduledRunSchema,
|
|
198
198
|
withScheduledTaskLock
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-3KSSALN4.js";
|
|
200
200
|
import {
|
|
201
201
|
parseSlackThreadId
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-TDT2R77B.js";
|
|
203
203
|
import {
|
|
204
204
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
205
205
|
appendAndEnqueueInboundMessage,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
isInvalidConversationRecordError,
|
|
211
211
|
listActiveConversationIds,
|
|
212
212
|
removeActiveConversation
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-Q2KY27IX.js";
|
|
214
214
|
import {
|
|
215
215
|
ConversationTurnBoundaryError,
|
|
216
216
|
CooperativeTurnYieldError,
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
markTurnCompleted,
|
|
229
229
|
markTurnFailed,
|
|
230
230
|
startActiveTurn
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-HJ27A6YB.js";
|
|
232
232
|
import {
|
|
233
233
|
abandonTurnRecord,
|
|
234
234
|
appendThreadContextMessages,
|
|
@@ -264,11 +264,11 @@ import {
|
|
|
264
264
|
trimTrailingAssistantMessages,
|
|
265
265
|
turnHasReply,
|
|
266
266
|
upsertConversationMessage
|
|
267
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-NQTA72Q3.js";
|
|
268
268
|
import {
|
|
269
269
|
getSandboxResourceConfig,
|
|
270
270
|
setSandboxResourceConfig
|
|
271
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-IKKETMQC.js";
|
|
272
272
|
import "./chunk-PDO5BLNM.js";
|
|
273
273
|
import "./chunk-UIE3R5XU.js";
|
|
274
274
|
import {
|
|
@@ -287,7 +287,7 @@ import {
|
|
|
287
287
|
import "./chunk-7H2VZTWN.js";
|
|
288
288
|
import {
|
|
289
289
|
getTurnRequestDeadline
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-GPA3ZSYY.js";
|
|
291
291
|
import {
|
|
292
292
|
SlackActionError,
|
|
293
293
|
bindEventTaskCredentialSubject,
|
|
@@ -313,7 +313,7 @@ import {
|
|
|
313
313
|
verifyEventTaskCredentialSubject,
|
|
314
314
|
verifyScheduledTaskCredentialSubject,
|
|
315
315
|
verifySlackDirectCredentialSubject
|
|
316
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-D6ZD7VXP.js";
|
|
317
317
|
import "./chunk-3Y47VMHV.js";
|
|
318
318
|
import {
|
|
319
319
|
contextProvenance,
|
|
@@ -326,7 +326,7 @@ import {
|
|
|
326
326
|
requireSlackDestination,
|
|
327
327
|
withConversationEventLock,
|
|
328
328
|
withConversationMutationLock
|
|
329
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-RNMASWLP.js";
|
|
330
330
|
import {
|
|
331
331
|
juniorAgentBindings,
|
|
332
332
|
juniorAgentInvocations,
|
|
@@ -334,15 +334,15 @@ import {
|
|
|
334
334
|
juniorConversations,
|
|
335
335
|
juniorSchedulerRuns,
|
|
336
336
|
juniorSchedulerTasks
|
|
337
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-KKSVCHDO.js";
|
|
338
338
|
import {
|
|
339
339
|
sleep
|
|
340
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-KMBU4PJP.js";
|
|
341
341
|
import {
|
|
342
342
|
acquireActiveLock,
|
|
343
343
|
getStateAdapter,
|
|
344
344
|
withActiveLock
|
|
345
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-PL57B6NC.js";
|
|
346
346
|
import {
|
|
347
347
|
juniorDestinations
|
|
348
348
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -363,13 +363,13 @@ import {
|
|
|
363
363
|
modelIdForProfile,
|
|
364
364
|
setProfiles,
|
|
365
365
|
setSlackReactionConfig
|
|
366
|
-
} from "./chunk-
|
|
367
|
-
import "./chunk-
|
|
368
|
-
import "./chunk-
|
|
366
|
+
} from "./chunk-XYTJUHRZ.js";
|
|
367
|
+
import "./chunk-ETJTXYHY.js";
|
|
368
|
+
import "./chunk-EM7EECT5.js";
|
|
369
369
|
import {
|
|
370
370
|
pluginCatalogRuntime
|
|
371
|
-
} from "./chunk-
|
|
372
|
-
import "./chunk-
|
|
371
|
+
} from "./chunk-HEBMSITT.js";
|
|
372
|
+
import "./chunk-4IX32NSL.js";
|
|
373
373
|
import {
|
|
374
374
|
credentialContextForActor
|
|
375
375
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -404,13 +404,13 @@ import {
|
|
|
404
404
|
withContext,
|
|
405
405
|
withLogContext,
|
|
406
406
|
withSpan
|
|
407
|
-
} from "./chunk-
|
|
407
|
+
} from "./chunk-EBMRB6Z6.js";
|
|
408
408
|
import {
|
|
409
409
|
continueTrace
|
|
410
410
|
} from "./chunk-PEQXYSSE.js";
|
|
411
411
|
import {
|
|
412
412
|
JUNIOR_VERSION
|
|
413
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-TJHSAHQN.js";
|
|
414
414
|
|
|
415
415
|
// src/app.ts
|
|
416
416
|
import { createRequire } from "module";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HEBMSITT.js";
|
|
4
|
+
import "./chunk-4IX32NSL.js";
|
|
5
5
|
import "./chunk-CEMMLV5L.js";
|
|
6
6
|
import "./chunk-N7TMSOZH.js";
|
|
7
7
|
import "./chunk-DWPN6SCH.js";
|
|
8
8
|
import "./chunk-TXKUKMVO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-EBMRB6Z6.js";
|
|
10
10
|
import "./chunk-PEQXYSSE.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-TJHSAHQN.js";
|
|
12
12
|
export {
|
|
13
13
|
pluginCatalogRuntime
|
|
14
14
|
};
|
|
@@ -53,7 +53,7 @@ export declare function applyPluginFormatMarkdown(text: string): string;
|
|
|
53
53
|
export declare function getPluginSystemPromptContributions(source: ToolRuntimeContext["source"]): Promise<PluginPromptContributionContext[]>;
|
|
54
54
|
/** Collect request-scoped plugin prompt contributions. */
|
|
55
55
|
export declare function getPluginUserPromptContributions(args: {
|
|
56
|
-
context: Pick<ToolRuntimeContext, "conversationId" | "destination" | "actor" | "source" | "userText">;
|
|
56
|
+
context: Pick<ToolRuntimeContext, "conversationId" | "locationId" | "destination" | "actor" | "resolveActorIdentity" | "source" | "userText">;
|
|
57
57
|
turnId?: string;
|
|
58
58
|
}): Promise<PluginPromptContributionContext[]>;
|
|
59
59
|
/** Collect turn-scoped tools exposed by plugins. */
|
|
@@ -8,6 +8,7 @@ import type { Destination, Source } from "@sentry/junior-plugin-api";
|
|
|
8
8
|
import type { ConversationStore } from "@/chat/conversations/store";
|
|
9
9
|
export interface TurnSessionRouting {
|
|
10
10
|
destination: Destination;
|
|
11
|
+
locationId?: string;
|
|
11
12
|
source: Source;
|
|
12
13
|
}
|
|
13
14
|
/** Require conversation destination and session source from SQL. */
|
|
@@ -64,6 +64,8 @@ interface BaseToolRuntimeContext {
|
|
|
64
64
|
* Do not parse as Slack unless the value starts with `slack:`.
|
|
65
65
|
*/
|
|
66
66
|
conversationId?: string;
|
|
67
|
+
/** Location associated with this Conversation. */
|
|
68
|
+
locationId?: string;
|
|
67
69
|
/** Runtime-owned default outbound destination for this invocation. */
|
|
68
70
|
destination: Destination;
|
|
69
71
|
actor?: Actor;
|
|
@@ -8,6 +8,8 @@ export interface WorkspaceSnapshot {
|
|
|
8
8
|
id: string;
|
|
9
9
|
generatedAt: Date;
|
|
10
10
|
buildDurationMs: number;
|
|
11
|
+
/** Provider snapshot size in bytes when capture reported it. */
|
|
12
|
+
sizeBytes: number | null;
|
|
11
13
|
profileHash: string;
|
|
12
14
|
}
|
|
13
15
|
export type WorkspaceSnapshotBuildStatus = "building" | "failed";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RF6J3DIO.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LG5MYY6U.js";
|
|
7
7
|
import {
|
|
8
8
|
isExperimentalFeatureEnabled
|
|
9
9
|
} from "./chunk-VRS6WDK5.js";
|
|
@@ -12,27 +12,27 @@ import {
|
|
|
12
12
|
getPlugins,
|
|
13
13
|
getSlackClient,
|
|
14
14
|
withSlackRetries
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-D6ZD7VXP.js";
|
|
16
16
|
import {
|
|
17
17
|
getDb,
|
|
18
18
|
parseDestination
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RNMASWLP.js";
|
|
20
20
|
import {
|
|
21
21
|
sleep
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KMBU4PJP.js";
|
|
23
23
|
import {
|
|
24
24
|
acquireActiveLock,
|
|
25
25
|
getStateAdapter
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PL57B6NC.js";
|
|
27
27
|
import {
|
|
28
28
|
pluginCatalogRuntime
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HEBMSITT.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchWithBoundedOAuthErrorBodies
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4IX32NSL.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EBMRB6Z6.js";
|
|
36
36
|
|
|
37
37
|
// src/chat/capabilities/router.ts
|
|
38
38
|
var ProviderCredentialRouter = class {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ToolInputError,
|
|
3
3
|
canRouteResourceEvents,
|
|
4
4
|
getPlugins
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D6ZD7VXP.js";
|
|
6
6
|
import {
|
|
7
7
|
getDb
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RNMASWLP.js";
|
|
9
9
|
import {
|
|
10
10
|
juniorAttachments,
|
|
11
11
|
juniorConversations,
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
juniorSchedulerRuns,
|
|
14
14
|
juniorSchedulerTasks,
|
|
15
15
|
juniorStats
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KKSVCHDO.js";
|
|
17
17
|
import {
|
|
18
18
|
juniorDestinations
|
|
19
19
|
} from "./chunk-VFUK3X5B.js";
|
|
20
20
|
import {
|
|
21
21
|
getSlackBotToken
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XYTJUHRZ.js";
|
|
23
23
|
import {
|
|
24
24
|
logWarn
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EBMRB6Z6.js";
|
|
26
26
|
|
|
27
27
|
// src/chat/resource-events/catalog.ts
|
|
28
28
|
import {
|
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
formatProviderLabel,
|
|
9
9
|
startOAuthFlow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LG5MYY6U.js";
|
|
11
11
|
import {
|
|
12
12
|
abandonReplacedPendingAuth,
|
|
13
13
|
canReusePendingAuthLink
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HJ27A6YB.js";
|
|
15
15
|
import {
|
|
16
16
|
recordAuthorizationRequested
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NQTA72Q3.js";
|
|
18
18
|
import {
|
|
19
19
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KKSVCHDO.js";
|
|
21
21
|
import {
|
|
22
22
|
TURN_REASONING_LEVELS
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XYTJUHRZ.js";
|
|
24
24
|
import {
|
|
25
25
|
pluginCatalogRuntime
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HEBMSITT.js";
|
|
27
27
|
import {
|
|
28
28
|
credentialContextSchema
|
|
29
29
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -732,7 +732,8 @@ var workspaceRepoSchema = z7.object({
|
|
|
732
732
|
var workspaceSnapshotSchema = z7.object({
|
|
733
733
|
id: z7.string(),
|
|
734
734
|
generatedAt: z7.iso.datetime(),
|
|
735
|
-
buildDurationMs: z7.number().int().nonnegative()
|
|
735
|
+
buildDurationMs: z7.number().int().nonnegative(),
|
|
736
|
+
sizeBytes: z7.number().int().nonnegative().nullable()
|
|
736
737
|
}).strict();
|
|
737
738
|
var baselineSnapshotSchema = z7.object({
|
|
738
739
|
id: z7.string(),
|