@sentry/junior 0.166.0 → 0.167.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-ZIPK2HUF.js → agent-hooks-KEHBR4DB.js} +9 -9
- package/dist/api/schema/workspace.d.ts +14 -0
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +3 -1
- package/dist/api.js +51 -27
- package/dist/app.js +34 -35
- package/dist/{catalog-runtime-GEZAHBUP.js → catalog-runtime-7QFMBU2Q.js} +5 -5
- package/dist/{chunk-OCOGPNHA.js → chunk-2MPO25ZZ.js} +1 -1
- package/dist/{chunk-DTQAMME2.js → chunk-2RSPCWAV.js} +5 -5
- package/dist/{chunk-WX42YNDQ.js → chunk-4KRDL4ZD.js} +5 -5
- package/dist/{chunk-2KV4BAAN.js → chunk-5IR2ABRO.js} +12 -12
- package/dist/{chunk-Q2IPCX7J.js → chunk-5LZVDKQJ.js} +270 -7
- package/dist/{chunk-CDBTQQQ4.js → chunk-6SJN7JZ3.js} +1 -1
- package/dist/{chunk-C3USHSIJ.js → chunk-BGRLZPMI.js} +1 -1
- package/dist/{chunk-SLWGX3G5.js → chunk-CC4EYBUO.js} +35 -35
- package/dist/{chunk-U2UCDSDF.js → chunk-CU7YQNZ3.js} +4 -4
- package/dist/{chunk-P6UQMGM2.js → chunk-EWAG7BNE.js} +1 -1
- package/dist/{chunk-FFE3BMAT.js → chunk-GC3AKBNP.js} +7 -7
- package/dist/{chunk-YTIKGCPC.js → chunk-GIGUXRMY.js} +1 -1
- package/dist/{chunk-OYN45QUQ.js → chunk-HIB3XTKR.js} +6 -6
- package/dist/{chunk-2ZKFLHVP.js → chunk-IHSPBOWG.js} +6 -6
- package/dist/{chunk-ZKJO4K6M.js → chunk-KE5ETKIR.js} +4 -4
- package/dist/{chunk-22RO7IDD.js → chunk-KSQIE2R4.js} +4 -4
- package/dist/{chunk-VNPG55CU.js → chunk-L63FA77C.js} +1 -1
- package/dist/{chunk-AEKBVJMV.js → chunk-MKDIEH3C.js} +2 -2
- package/dist/{chunk-43KLUCAM.js → chunk-MV4LDMRG.js} +17 -17
- package/dist/{chunk-3EZ5V7XQ.js → chunk-O5J556I2.js} +9 -9
- package/dist/{chunk-JDTCQDRU.js → chunk-PMULUKHL.js} +3 -3
- package/dist/{chunk-FEYQVP64.js → chunk-PRV74X7E.js} +5 -5
- package/dist/{chunk-ABNRESX6.js → chunk-TZHLY42G.js} +1 -1
- package/dist/{chunk-BKP3PVKR.js → chunk-UFTE42ZF.js} +1 -1
- package/dist/{chunk-4CMORAHL.js → chunk-UTMP45YM.js} +11 -1
- package/dist/{chunk-JUFZR2LD.js → chunk-V7GGA4LW.js} +1 -1
- package/dist/{chunk-EKBVHDZO.js → chunk-W72TSO24.js} +1 -1
- package/dist/{chunk-LGSGPWYH.js → chunk-WD7PVGMA.js} +1 -1
- package/dist/{chunk-4MDEQNSW.js → chunk-WHMDWHZX.js} +5 -5
- package/dist/{chunk-MDW5YPXW.js → chunk-WRBQL2AW.js} +2 -2
- package/dist/{chunk-KQ5YZGDV.js → chunk-WZGOP5BZ.js} +1 -1
- package/dist/{chunk-65SNO3WK.js → chunk-YVW44V5Y.js} +1 -1
- package/dist/cli/chat.js +29 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +10 -12
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-TGZBS2CP.js → db-H25MZO65.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-Z54WUF5H.js → oauth-callback-server-BX334MQ6.js} +22 -22
- package/dist/{runner-PVFHKKK6.js → runner-GRWCCCKP.js} +12 -12
- package/dist/{skills-BYRH3QWD.js → skills-TG76W7TS.js} +6 -6
- package/dist/spawn-4YBTXAR2.js +37 -0
- package/dist/{validation-VZIE4RHA.js → validation-JY6EXXR3.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-JTHAOPDQ.js → work-53J6P32F.js} +17 -17
- package/dist/worker-WLLGEEQS.js +24 -0
- package/package.json +4 -4
- package/dist/chunk-4DARCEZH.js +0 -274
- package/dist/spawn-RIPWK7EP.js +0 -37
- package/dist/worker-APEVP56Y.js +0 -24
|
@@ -13,19 +13,19 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-4KRDL4ZD.js";
|
|
17
|
+
import "./chunk-PMULUKHL.js";
|
|
18
|
+
import "./chunk-YVW44V5Y.js";
|
|
19
19
|
import "./chunk-BVREIWBD.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-W72TSO24.js";
|
|
21
|
+
import "./chunk-MKDIEH3C.js";
|
|
22
22
|
import "./chunk-VFUK3X5B.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-WZGOP5BZ.js";
|
|
24
24
|
import "./chunk-V7YE4WCP.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-V7GGA4LW.js";
|
|
26
26
|
import "./chunk-6GWA276C.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-UFTE42ZF.js";
|
|
28
|
+
import "./chunk-GIGUXRMY.js";
|
|
29
29
|
import "./chunk-MLKGABMK.js";
|
|
30
30
|
export {
|
|
31
31
|
PluginHookDeniedError,
|
|
@@ -4,6 +4,13 @@ export declare const workspaceRepoSchema: z.ZodObject<{
|
|
|
4
4
|
repo: z.ZodString;
|
|
5
5
|
checkoutPath: z.ZodString;
|
|
6
6
|
}, z.core.$strict>;
|
|
7
|
+
/** Install-wide baseline Sandbox snapshot used when no Workspace recipe is selected. */
|
|
8
|
+
export declare const baselineSnapshotSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
generatedAt: z.ZodISODateTime;
|
|
11
|
+
buildDurationMs: z.ZodNumber;
|
|
12
|
+
dependencyCount: z.ZodNumber;
|
|
13
|
+
}, z.core.$strict>;
|
|
7
14
|
export declare const workspaceSchema: z.ZodObject<{
|
|
8
15
|
id: z.ZodString;
|
|
9
16
|
name: z.ZodString;
|
|
@@ -20,6 +27,12 @@ export declare const workspaceSchema: z.ZodObject<{
|
|
|
20
27
|
}, z.core.$strict>>;
|
|
21
28
|
}, z.core.$strict>;
|
|
22
29
|
export declare const workspaceListSchema: z.ZodObject<{
|
|
30
|
+
baselineSnapshot: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
generatedAt: z.ZodISODateTime;
|
|
33
|
+
buildDurationMs: z.ZodNumber;
|
|
34
|
+
dependencyCount: z.ZodNumber;
|
|
35
|
+
}, z.core.$strict>>;
|
|
23
36
|
workspaces: z.ZodArray<z.ZodObject<{
|
|
24
37
|
id: z.ZodString;
|
|
25
38
|
name: z.ZodString;
|
|
@@ -50,4 +63,5 @@ export declare const workspaceParamsSchema: z.ZodObject<{
|
|
|
50
63
|
export declare const deleteWorkspaceResponseSchema: z.ZodObject<{
|
|
51
64
|
deleted: z.ZodLiteral<true>;
|
|
52
65
|
}, z.core.$strict>;
|
|
66
|
+
export type BaselineSnapshotReport = z.infer<typeof baselineSnapshotSchema>;
|
|
53
67
|
export type WorkspaceReport = z.infer<typeof workspaceSchema>;
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export { apiErrorSchema } from "./schema/common";
|
|
|
10
10
|
export type { ApiError } from "./schema/common";
|
|
11
11
|
export { createPersonalTokenBodySchema, createdPersonalTokenSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, revokePersonalTokenResponseSchema, } from "./schema/personal-token";
|
|
12
12
|
export type { PersonalTokenMetadata } from "./schema/personal-token";
|
|
13
|
-
export { deleteWorkspaceResponseSchema, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema, } from "./schema/workspace";
|
|
14
|
-
export type { WorkspaceReport } from "./schema/workspace";
|
|
13
|
+
export { baselineSnapshotSchema, deleteWorkspaceResponseSchema, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema, } from "./schema/workspace";
|
|
14
|
+
export type { BaselineSnapshotReport, WorkspaceReport, } from "./schema/workspace";
|
|
15
15
|
export { eventTaskSummarySchema, scheduledTaskSummarySchema, taskExecutionListSchema, taskExecutionSchema, taskExecutionStatusDaySchema, taskExecutionStatusSchema, taskListSchema, taskParamsSchema, taskRunListSchema, taskRunSchema, taskSummarySchema, } from "./schema/task";
|
|
16
16
|
export type { TaskExecution, TaskExecutionDay, TaskExecutionList, TaskExecutionStatusDay, TaskList, TaskRun, TaskRunList, TaskSummary, } from "./schema/task";
|
|
17
17
|
export { statSchema, statsReportSchema } from "./schema/stats";
|
package/dist/api/schema.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
apiErrorSchema,
|
|
6
6
|
archiveConversationBodySchema,
|
|
7
7
|
archiveConversationResponseSchema,
|
|
8
|
+
baselineSnapshotSchema,
|
|
8
9
|
cancelConversationPendingMessagesBodySchema,
|
|
9
10
|
cancelConversationPendingMessagesResponseSchema,
|
|
10
11
|
conversationAuxiliaryCostsSchema,
|
|
@@ -58,7 +59,7 @@ import {
|
|
|
58
59
|
workspaceParamsSchema,
|
|
59
60
|
workspaceRepoSchema,
|
|
60
61
|
workspaceSchema
|
|
61
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-UTMP45YM.js";
|
|
62
63
|
import {
|
|
63
64
|
healthReportSchema,
|
|
64
65
|
pluginOperationalReportFeedSchema,
|
|
@@ -81,6 +82,7 @@ export {
|
|
|
81
82
|
apiErrorSchema,
|
|
82
83
|
archiveConversationBodySchema,
|
|
83
84
|
archiveConversationResponseSchema,
|
|
85
|
+
baselineSnapshotSchema,
|
|
84
86
|
cancelConversationPendingMessagesBodySchema,
|
|
85
87
|
cancelConversationPendingMessagesResponseSchema,
|
|
86
88
|
conversationAuxiliaryCostsSchema,
|
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-UTMP45YM.js";
|
|
45
45
|
import {
|
|
46
46
|
appendAndEnqueueApiConversationMessage,
|
|
47
47
|
authenticatePersonalToken,
|
|
@@ -59,15 +59,15 @@ import {
|
|
|
59
59
|
revokePersonalToken,
|
|
60
60
|
viewerConversationMembership,
|
|
61
61
|
webActorFromEmail
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-5IR2ABRO.js";
|
|
63
63
|
import {
|
|
64
64
|
buildSentryConversationUrl,
|
|
65
65
|
getWebAuthorization
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-2MPO25ZZ.js";
|
|
67
67
|
import {
|
|
68
68
|
cancelHumanFacingPendingMessages,
|
|
69
69
|
getConversation
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-KE5ETKIR.js";
|
|
71
71
|
import {
|
|
72
72
|
readTaskExecutionByConversationId,
|
|
73
73
|
readTaskExecutionDays,
|
|
@@ -75,8 +75,8 @@ import {
|
|
|
75
75
|
readTaskExecutionSummaries,
|
|
76
76
|
readTaskExecutions,
|
|
77
77
|
readTaskRuns
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-O5J556I2.js";
|
|
79
|
+
import "./chunk-2RSPCWAV.js";
|
|
80
80
|
import {
|
|
81
81
|
healthReportSchema,
|
|
82
82
|
pluginOperationalReportFeedSchema,
|
|
@@ -102,20 +102,22 @@ import {
|
|
|
102
102
|
listPublicScheduledTasksForTeams,
|
|
103
103
|
readLiveAttachment,
|
|
104
104
|
readStats
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-WHMDWHZX.js";
|
|
106
106
|
import {
|
|
107
107
|
parseSlackThreadId
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-TZHLY42G.js";
|
|
109
109
|
import {
|
|
110
110
|
agentTurnUsageSchema,
|
|
111
111
|
fallbackShortTitle,
|
|
112
112
|
hasAgentTurnUsage,
|
|
113
113
|
renderJuniorNativeConversationEvent
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-KSQIE2R4.js";
|
|
115
115
|
import "./chunk-3Y47VMHV.js";
|
|
116
116
|
import {
|
|
117
|
+
create,
|
|
118
|
+
getCachedSnapshot,
|
|
117
119
|
hash
|
|
118
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-5LZVDKQJ.js";
|
|
119
121
|
import "./chunk-PDO5BLNM.js";
|
|
120
122
|
import {
|
|
121
123
|
WorkspaceValidationError,
|
|
@@ -135,7 +137,7 @@ import {
|
|
|
135
137
|
updateWorkspace,
|
|
136
138
|
withSlackRetries,
|
|
137
139
|
workspaceRepoCheckoutPath
|
|
138
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-4KRDL4ZD.js";
|
|
139
141
|
import {
|
|
140
142
|
decodeStoredConversationEvent,
|
|
141
143
|
getConversationStore,
|
|
@@ -143,22 +145,22 @@ import {
|
|
|
143
145
|
getSqlExecutor,
|
|
144
146
|
locationFromRow,
|
|
145
147
|
parseSessionSource
|
|
146
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-PMULUKHL.js";
|
|
147
149
|
import {
|
|
148
150
|
juniorConversationEvents,
|
|
149
151
|
juniorConversations,
|
|
150
152
|
juniorIdentities,
|
|
151
153
|
juniorUsers
|
|
152
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-YVW44V5Y.js";
|
|
153
155
|
import "./chunk-BVREIWBD.js";
|
|
154
|
-
import "./chunk-
|
|
155
|
-
import "./chunk-
|
|
156
|
+
import "./chunk-W72TSO24.js";
|
|
157
|
+
import "./chunk-MKDIEH3C.js";
|
|
156
158
|
import {
|
|
157
159
|
juniorDestinations
|
|
158
160
|
} from "./chunk-VFUK3X5B.js";
|
|
159
|
-
import "./chunk-
|
|
160
|
-
import "./chunk-
|
|
161
|
-
import "./chunk-
|
|
161
|
+
import "./chunk-WZGOP5BZ.js";
|
|
162
|
+
import "./chunk-L63FA77C.js";
|
|
163
|
+
import "./chunk-EWAG7BNE.js";
|
|
162
164
|
import "./chunk-BDUENQD3.js";
|
|
163
165
|
import {
|
|
164
166
|
parseSlackChannelId,
|
|
@@ -168,12 +170,12 @@ import {
|
|
|
168
170
|
import {
|
|
169
171
|
logException,
|
|
170
172
|
logWarn
|
|
171
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-V7GGA4LW.js";
|
|
172
174
|
import "./chunk-6GWA276C.js";
|
|
173
175
|
import "./chunk-OOUNJNMR.js";
|
|
174
176
|
import "./chunk-H4HBKISO.js";
|
|
175
|
-
import "./chunk-
|
|
176
|
-
import "./chunk-
|
|
177
|
+
import "./chunk-UFTE42ZF.js";
|
|
178
|
+
import "./chunk-GIGUXRMY.js";
|
|
177
179
|
import "./chunk-MLKGABMK.js";
|
|
178
180
|
|
|
179
181
|
// src/api.ts
|
|
@@ -4074,7 +4076,7 @@ async function readPeoplePluginReports(args) {
|
|
|
4074
4076
|
source: "plugins"
|
|
4075
4077
|
});
|
|
4076
4078
|
}
|
|
4077
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
4079
|
+
const { getPluginProfileReports } = await import("./agent-hooks-KEHBR4DB.js");
|
|
4078
4080
|
return pluginOperationalReportFeedSchema.parse({
|
|
4079
4081
|
generatedAt: new Date(nowMs).toISOString(),
|
|
4080
4082
|
reports: await getPluginProfileReports({
|
|
@@ -4639,6 +4641,23 @@ function snapshotView(workspace) {
|
|
|
4639
4641
|
buildDurationMs: recorded.buildDurationMs
|
|
4640
4642
|
};
|
|
4641
4643
|
}
|
|
4644
|
+
async function baselineSnapshotView() {
|
|
4645
|
+
try {
|
|
4646
|
+
const profile = create(SANDBOX_RUNTIME);
|
|
4647
|
+
if (!profile) return null;
|
|
4648
|
+
const cached = await getCachedSnapshot(profile.hash);
|
|
4649
|
+
if (!cached) return null;
|
|
4650
|
+
return {
|
|
4651
|
+
id: cached.snapshotId,
|
|
4652
|
+
generatedAt: new Date(cached.createdAtMs).toISOString(),
|
|
4653
|
+
buildDurationMs: cached.buildDurationMs,
|
|
4654
|
+
dependencyCount: cached.dependencyCount
|
|
4655
|
+
};
|
|
4656
|
+
} catch (error) {
|
|
4657
|
+
logException(error, "sandbox.baseline_snapshot.read.failed");
|
|
4658
|
+
return null;
|
|
4659
|
+
}
|
|
4660
|
+
}
|
|
4642
4661
|
function view(workspace) {
|
|
4643
4662
|
return {
|
|
4644
4663
|
id: workspace.id,
|
|
@@ -4667,8 +4686,13 @@ function handleValidationError(error) {
|
|
|
4667
4686
|
function createWorkspaceRoutes() {
|
|
4668
4687
|
const app = new Hono7();
|
|
4669
4688
|
app.get("/", requireViewer, async () => {
|
|
4689
|
+
const [baselineSnapshot, workspaces] = await Promise.all([
|
|
4690
|
+
baselineSnapshotView(),
|
|
4691
|
+
listWorkspaces(getDb())
|
|
4692
|
+
]);
|
|
4670
4693
|
return jsonResponse(workspaceListSchema, {
|
|
4671
|
-
|
|
4694
|
+
baselineSnapshot,
|
|
4695
|
+
workspaces: workspaces.map(view)
|
|
4672
4696
|
});
|
|
4673
4697
|
});
|
|
4674
4698
|
app.post(
|
|
@@ -4771,7 +4795,7 @@ function readDescriptionText(home) {
|
|
|
4771
4795
|
}
|
|
4772
4796
|
}
|
|
4773
4797
|
async function readSkillReports() {
|
|
4774
|
-
const { discoverSkills } = await import("./skills-
|
|
4798
|
+
const { discoverSkills } = await import("./skills-TG76W7TS.js");
|
|
4775
4799
|
const skills = await discoverSkills();
|
|
4776
4800
|
return skillReportsSchema.parse(
|
|
4777
4801
|
skills.map((skill) => ({
|
|
@@ -4781,7 +4805,7 @@ async function readSkillReports() {
|
|
|
4781
4805
|
);
|
|
4782
4806
|
}
|
|
4783
4807
|
async function readPlugins() {
|
|
4784
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4808
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-7QFMBU2Q.js");
|
|
4785
4809
|
return pluginsSchema.parse(
|
|
4786
4810
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4787
4811
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -4794,7 +4818,7 @@ async function readPlugins() {
|
|
|
4794
4818
|
async function readRuntimeInfoReport() {
|
|
4795
4819
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4796
4820
|
import("./discovery-GUFTFBTL.js"),
|
|
4797
|
-
import("./catalog-runtime-
|
|
4821
|
+
import("./catalog-runtime-7QFMBU2Q.js"),
|
|
4798
4822
|
readPlugins(),
|
|
4799
4823
|
readSkillReports()
|
|
4800
4824
|
]);
|
|
@@ -4810,7 +4834,7 @@ async function readRuntimeInfoReport() {
|
|
|
4810
4834
|
}
|
|
4811
4835
|
async function readPluginOperationalReportFeed() {
|
|
4812
4836
|
const nowMs = Date.now();
|
|
4813
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
4837
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-KEHBR4DB.js");
|
|
4814
4838
|
return pluginOperationalReportFeedSchema.parse({
|
|
4815
4839
|
source: "plugins",
|
|
4816
4840
|
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-CU7YQNZ3.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BGRLZPMI.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
routeAgentInvocationWork
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IHSPBOWG.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
startSlackProcessingReaction,
|
|
37
37
|
stripLeadingBotMention,
|
|
38
38
|
wakePausedTurn
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-MV4LDMRG.js";
|
|
40
40
|
import "./chunk-FA6POGLH.js";
|
|
41
41
|
import {
|
|
42
42
|
getTurnRequestDeadline,
|
|
43
43
|
runWithTurnRequestDeadline
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6SJN7JZ3.js";
|
|
45
45
|
import {
|
|
46
46
|
GET,
|
|
47
47
|
apiTurnIdForMessage,
|
|
@@ -58,8 +58,8 @@ import {
|
|
|
58
58
|
resolveSlackConversationContext,
|
|
59
59
|
routeApiTurnWork,
|
|
60
60
|
webActorFromEmail
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-5IR2ABRO.js";
|
|
62
|
+
import "./chunk-2MPO25ZZ.js";
|
|
63
63
|
import {
|
|
64
64
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
65
65
|
appendAndEnqueueInboundMessage,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
isInvalidConversationRecordError,
|
|
71
71
|
listActiveConversationIds,
|
|
72
72
|
removeActiveConversation
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-KE5ETKIR.js";
|
|
74
74
|
import {
|
|
75
75
|
buildDeliveredTurnStatePatch,
|
|
76
76
|
claimDispatchMailboxAppend,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
requireTurnFailureEventId,
|
|
102
102
|
resolveTurnSessionRouting,
|
|
103
103
|
scheduleSessionCompletedPluginTasks
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-O5J556I2.js";
|
|
105
105
|
import {
|
|
106
106
|
ConversationTurnLifecycleService,
|
|
107
107
|
coerceThreadConversationState,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
persistThreadRuntimeState,
|
|
112
112
|
persistThreadState,
|
|
113
113
|
persistThreadStateById
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-2RSPCWAV.js";
|
|
115
115
|
import "./chunk-UTL3MHPC.js";
|
|
116
116
|
import {
|
|
117
117
|
getVercelConversationWorkQueue,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
import {
|
|
131
131
|
validatePluginEgressCredentialHooks,
|
|
132
132
|
validatePluginRegistrations
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-WD7PVGMA.js";
|
|
134
134
|
import {
|
|
135
135
|
defineJuniorPlugins,
|
|
136
136
|
pluginCatalogConfigFromEnv,
|
|
@@ -165,11 +165,11 @@ import {
|
|
|
165
165
|
shouldEmitDevAgentTrace,
|
|
166
166
|
shouldPropagateSandboxEgressTrace,
|
|
167
167
|
unpublishedArtifactHeaders
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-CC4EYBUO.js";
|
|
169
169
|
import {
|
|
170
170
|
AuthorizationFlowDisabledError,
|
|
171
171
|
PluginCredentialFailureError
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-PRV74X7E.js";
|
|
173
173
|
import "./chunk-DIB4GX3G.js";
|
|
174
174
|
import {
|
|
175
175
|
createAgentRunner,
|
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
deleteMcpAuthSessionsForUserProvider,
|
|
178
178
|
deleteMcpServerSessionId,
|
|
179
179
|
deleteMcpStoredOAuthCredentials
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-GC3AKBNP.js";
|
|
181
181
|
import {
|
|
182
182
|
RetryableDeliveryError
|
|
183
183
|
} from "./chunk-RF6J3DIO.js";
|
|
@@ -185,17 +185,13 @@ import {
|
|
|
185
185
|
formatProviderLabel,
|
|
186
186
|
postSlackMessage,
|
|
187
187
|
startOAuthFlow
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-HIB3XTKR.js";
|
|
189
189
|
import "./chunk-7MA4HV4W.js";
|
|
190
190
|
import {
|
|
191
191
|
getExperimentalFeatures,
|
|
192
192
|
isExperimentalFeatureEnabled,
|
|
193
193
|
setExperimentalFeatures
|
|
194
194
|
} from "./chunk-VRS6WDK5.js";
|
|
195
|
-
import {
|
|
196
|
-
getSandboxResourceConfig,
|
|
197
|
-
setSandboxResourceConfig
|
|
198
|
-
} from "./chunk-Q2IPCX7J.js";
|
|
199
195
|
import {
|
|
200
196
|
collectAttachmentGarbage,
|
|
201
197
|
createSchedulerSqlStore,
|
|
@@ -203,10 +199,10 @@ import {
|
|
|
203
199
|
logScheduledTaskRunSkipped,
|
|
204
200
|
requestAttachmentDeletion,
|
|
205
201
|
scheduledTaskRunAttributes
|
|
206
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-WHMDWHZX.js";
|
|
207
203
|
import {
|
|
208
204
|
parseSlackThreadId
|
|
209
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-TZHLY42G.js";
|
|
210
206
|
import {
|
|
211
207
|
ConversationTurnBoundaryError,
|
|
212
208
|
CooperativeTurnYieldError,
|
|
@@ -258,9 +254,12 @@ import {
|
|
|
258
254
|
trimTrailingAssistantMessages,
|
|
259
255
|
turnHasReply,
|
|
260
256
|
upsertConversationMessage
|
|
261
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-KSQIE2R4.js";
|
|
262
258
|
import "./chunk-3Y47VMHV.js";
|
|
263
|
-
import
|
|
259
|
+
import {
|
|
260
|
+
getSandboxResourceConfig,
|
|
261
|
+
setSandboxResourceConfig
|
|
262
|
+
} from "./chunk-5LZVDKQJ.js";
|
|
264
263
|
import "./chunk-PDO5BLNM.js";
|
|
265
264
|
import "./chunk-UIE3R5XU.js";
|
|
266
265
|
import {
|
|
@@ -288,7 +287,7 @@ import {
|
|
|
288
287
|
verifyEventTaskCredentialSubject,
|
|
289
288
|
verifyScheduledTaskCredentialSubject,
|
|
290
289
|
verifySlackDirectCredentialSubject
|
|
291
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-4KRDL4ZD.js";
|
|
292
291
|
import {
|
|
293
292
|
contextProvenance,
|
|
294
293
|
createSlackDestination,
|
|
@@ -301,13 +300,13 @@ import {
|
|
|
301
300
|
requireSlackDestination,
|
|
302
301
|
withConversationEventLock,
|
|
303
302
|
withConversationMutationLock
|
|
304
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-PMULUKHL.js";
|
|
305
304
|
import {
|
|
306
305
|
juniorAgentBindings,
|
|
307
306
|
juniorAgentInvocations,
|
|
308
307
|
juniorConversationEvents,
|
|
309
308
|
juniorConversations
|
|
310
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-YVW44V5Y.js";
|
|
311
310
|
import {
|
|
312
311
|
sleep
|
|
313
312
|
} from "./chunk-BVREIWBD.js";
|
|
@@ -315,7 +314,7 @@ import {
|
|
|
315
314
|
acquireActiveLock,
|
|
316
315
|
getStateAdapter,
|
|
317
316
|
withActiveLock
|
|
318
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-W72TSO24.js";
|
|
319
318
|
import {
|
|
320
319
|
STANDARD_MODEL_PROFILE,
|
|
321
320
|
botConfig,
|
|
@@ -333,16 +332,16 @@ import {
|
|
|
333
332
|
modelIdForProfile,
|
|
334
333
|
setSlackReactionConfig,
|
|
335
334
|
standardModelId
|
|
336
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-MKDIEH3C.js";
|
|
337
336
|
import {
|
|
338
337
|
juniorDestinations
|
|
339
338
|
} from "./chunk-VFUK3X5B.js";
|
|
340
|
-
import "./chunk-
|
|
341
|
-
import "./chunk-
|
|
339
|
+
import "./chunk-WZGOP5BZ.js";
|
|
340
|
+
import "./chunk-WRBQL2AW.js";
|
|
342
341
|
import {
|
|
343
342
|
pluginCatalogRuntime
|
|
344
|
-
} from "./chunk-
|
|
345
|
-
import "./chunk-
|
|
343
|
+
} from "./chunk-L63FA77C.js";
|
|
344
|
+
import "./chunk-EWAG7BNE.js";
|
|
346
345
|
import {
|
|
347
346
|
credentialContextForActor
|
|
348
347
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -374,7 +373,7 @@ import {
|
|
|
374
373
|
withContext,
|
|
375
374
|
withLogContext,
|
|
376
375
|
withSpan
|
|
377
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-V7GGA4LW.js";
|
|
378
377
|
import {
|
|
379
378
|
continueTrace
|
|
380
379
|
} from "./chunk-6GWA276C.js";
|
|
@@ -382,10 +381,10 @@ import "./chunk-OOUNJNMR.js";
|
|
|
382
381
|
import "./chunk-H4HBKISO.js";
|
|
383
382
|
import {
|
|
384
383
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
|
|
385
|
-
} from "./chunk-
|
|
384
|
+
} from "./chunk-UFTE42ZF.js";
|
|
386
385
|
import {
|
|
387
386
|
JUNIOR_VERSION
|
|
388
|
-
} from "./chunk-
|
|
387
|
+
} from "./chunk-GIGUXRMY.js";
|
|
389
388
|
import "./chunk-MLKGABMK.js";
|
|
390
389
|
|
|
391
390
|
// src/app.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-L63FA77C.js";
|
|
4
|
+
import "./chunk-EWAG7BNE.js";
|
|
5
5
|
import "./chunk-BDUENQD3.js";
|
|
6
6
|
import "./chunk-V7YE4WCP.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-V7GGA4LW.js";
|
|
8
8
|
import "./chunk-6GWA276C.js";
|
|
9
9
|
import "./chunk-OOUNJNMR.js";
|
|
10
10
|
import "./chunk-H4HBKISO.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-UFTE42ZF.js";
|
|
12
|
+
import "./chunk-GIGUXRMY.js";
|
|
13
13
|
import "./chunk-MLKGABMK.js";
|
|
14
14
|
export {
|
|
15
15
|
pluginCatalogRuntime
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KSQIE2R4.js";
|
|
4
4
|
import {
|
|
5
5
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
6
6
|
} from "./chunk-3Y47VMHV.js";
|
|
7
7
|
import {
|
|
8
8
|
getDb
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PMULUKHL.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YVW44V5Y.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W72TSO24.js";
|
|
16
16
|
import {
|
|
17
17
|
juniorDestinations
|
|
18
18
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isRecord,
|
|
21
21
|
toOptionalNumber,
|
|
22
22
|
toOptionalString
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V7GGA4LW.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/conversations/turn-lifecycle.ts
|
|
26
26
|
var ConversationTurnLifecycleService = class {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getConversationEventStore,
|
|
3
3
|
getDb,
|
|
4
4
|
getSqlExecutor
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PMULUKHL.js";
|
|
6
6
|
import {
|
|
7
7
|
juniorConversationAnnotations,
|
|
8
8
|
juniorConversationEvents,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
juniorUsers,
|
|
11
11
|
juniorWorkspaceRepos,
|
|
12
12
|
juniorWorkspaces
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YVW44V5Y.js";
|
|
14
14
|
import {
|
|
15
15
|
SANDBOX_WORKSPACE_ROOT,
|
|
16
16
|
runNonInteractiveCommand,
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
} from "./chunk-BVREIWBD.js";
|
|
19
19
|
import {
|
|
20
20
|
getStateAdapter
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W72TSO24.js";
|
|
22
22
|
import {
|
|
23
23
|
botConfig,
|
|
24
24
|
completeObject,
|
|
25
25
|
embedTexts,
|
|
26
26
|
getSlackBotToken,
|
|
27
27
|
standardModelId
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MKDIEH3C.js";
|
|
29
29
|
import {
|
|
30
30
|
isActorUserId,
|
|
31
31
|
parseActorUserId,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
setSpanAttributes,
|
|
42
42
|
setSpanStatus,
|
|
43
43
|
withSpan
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-V7GGA4LW.js";
|
|
45
45
|
|
|
46
46
|
// src/chat/plugins/agent-hooks.ts
|
|
47
47
|
import {
|