@sentry/junior 0.156.0 → 0.158.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-CCAR46PQ.js → agent-hooks-BOWFTDE5.js} +10 -10
- package/dist/api/conversations/attachments.d.ts +32 -0
- package/dist/api/conversations/priority.d.ts +22 -0
- package/dist/api/conversations/routes.d.ts +4 -1
- package/dist/api/conversations/user-message-activity.d.ts +3 -0
- package/dist/api/locations/detail.d.ts +3 -1
- package/dist/api/schema/conversation.d.ts +14 -4
- package/dist/api/schema/location.d.ts +3 -1
- package/dist/api/schema/person.d.ts +3 -1
- package/dist/api/schema/task.d.ts +8 -8
- package/dist/api/schema.js +1 -1
- package/dist/api.js +350 -187
- package/dist/app.js +35 -54
- package/dist/{catalog-runtime-3SNKYCBG.js → catalog-runtime-7GZ25WTR.js} +5 -5
- package/dist/chat/agent-invocations/types.d.ts +12 -12
- package/dist/chat/attachments/storage.d.ts +2 -0
- package/dist/chat/attachments/store.d.ts +16 -0
- package/dist/chat/event-tasks/tool-support.d.ts +1 -1
- package/dist/chat/event-tasks/types.d.ts +1 -1
- package/dist/chat/plugins/unfinished-work.d.ts +6 -1
- package/dist/chat/scheduled-tasks/tool-support.d.ts +5 -5
- package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -2
- package/dist/chat/task-execution/slack-work.d.ts +2 -2
- package/dist/{chunk-4ZZDTHFC.js → chunk-3A7VXSPJ.js} +8 -8
- package/dist/{chunk-7RAETIYO.js → chunk-4JAOLUDB.js} +6 -6
- package/dist/{chunk-KCA5MKHU.js → chunk-4Q6QVTKA.js} +351 -5
- package/dist/{chunk-TN4LVILT.js → chunk-4XJ2WSTI.js} +5 -5
- package/dist/{chunk-OGZPRMZA.js → chunk-6GJCOUTA.js} +1 -1
- package/dist/{chunk-6CINHXIL.js → chunk-A7EDLNGU.js} +4 -4
- package/dist/{chunk-IIO5PFZX.js → chunk-AF4PHIP6.js} +3 -3
- package/dist/{chunk-IZEBHYI4.js → chunk-BNFGY66A.js} +1 -1
- package/dist/{chunk-3L2PMOSR.js → chunk-C3FYJZSA.js} +4 -4
- package/dist/{chunk-X5NZQH5U.js → chunk-CZCMFRUQ.js} +16 -0
- package/dist/{chunk-CK2H7CFO.js → chunk-DTVTBZNP.js} +1 -1
- package/dist/{chunk-WD7SEUZO.js → chunk-EQ6Y37MD.js} +1 -1
- package/dist/{chunk-53W3LZEW.js → chunk-EXITAVHO.js} +64 -361
- package/dist/{chunk-ZNWRYNCA.js → chunk-FA32YRZ3.js} +5 -5
- package/dist/{chunk-GKC43TLS.js → chunk-FAJ6SMEE.js} +2 -2
- package/dist/{chunk-GSBPZHLQ.js → chunk-IEM3GFXL.js} +9 -9
- package/dist/{chunk-KBGMYLSV.js → chunk-IXYGGJRA.js} +1 -1
- package/dist/{chunk-OMQJB7YN.js → chunk-JEXQQLEC.js} +18 -18
- package/dist/{chunk-PMFGVLDU.js → chunk-KAFYW3O6.js} +35 -10
- package/dist/{chunk-X7W45B5G.js → chunk-KSZXVR5G.js} +1 -1
- package/dist/{chunk-SRJA6QLM.js → chunk-LUSAAJJA.js} +2 -2
- package/dist/{chunk-3FFUC32L.js → chunk-NOEERHHR.js} +6 -6
- package/dist/{chunk-MC57E5U5.js → chunk-PHQDXC27.js} +1 -1
- package/dist/{chunk-A6WPDFHQ.js → chunk-RCIKTZZF.js} +1 -1
- package/dist/{chunk-NTNU6T2D.js → chunk-ROOTB7J7.js} +2 -2
- package/dist/{chunk-TNXGMFWV.js → chunk-SAJPQLTY.js} +1 -1
- package/dist/{chunk-SE3D225X.js → chunk-SSU65ZTZ.js} +1 -1
- package/dist/{chunk-6JUU7J2B.js → chunk-UJ6N32ZM.js} +4 -4
- package/dist/{chunk-MJE7XKWP.js → chunk-UPPU3FQU.js} +1 -1
- package/dist/{chunk-JUJR6WTL.js → chunk-UQJO35BP.js} +4 -4
- package/dist/{chunk-AIJRG227.js → chunk-VURJ2NSF.js} +1 -1
- package/dist/{chunk-CN2XSVKF.js → chunk-X4BLYIMV.js} +6 -6
- package/dist/{chunk-EDJ64P2P.js → chunk-YEZS4TEY.js} +1 -1
- package/dist/cli/chat.js +30 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/agent-invocations.d.ts +4 -4
- package/dist/db/schema.d.ts +4 -4
- package/dist/{db-TYUUKGJX.js → db-HFWTPYT7.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-AWVDKPR5.js → oauth-callback-server-J3NW4QL5.js} +23 -23
- package/dist/{runner-JUQXMACC.js → runner-CL6QHML5.js} +14 -15
- package/dist/{skills-4GZTZX4V.js → skills-WZWKZIFQ.js} +6 -6
- package/dist/spawn-TQJWADG4.js +37 -0
- package/dist/{validation-DRLNJRND.js → validation-4HVSSLJV.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-TGIXRRJY.js → work-UF4KXPVG.js} +17 -17
- package/dist/worker-HI7I2W2U.js +24 -0
- package/package.json +5 -5
- package/dist/spawn-32SSRWU4.js +0 -37
- package/dist/worker-IFXZOYED.js +0 -24
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
coerceThreadConversationState,
|
|
3
3
|
getPersistedThreadState,
|
|
4
4
|
persistThreadStateById
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4XJ2WSTI.js";
|
|
6
6
|
import {
|
|
7
7
|
pluginTaskId,
|
|
8
8
|
pluginTaskParamsSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
markTurnCompleted,
|
|
23
23
|
normalizeToolNameFromResult,
|
|
24
24
|
stripRuntimeTurnContext
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-C3FYJZSA.js";
|
|
26
26
|
import {
|
|
27
27
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
28
28
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -33,25 +33,25 @@ import {
|
|
|
33
33
|
createPluginModel,
|
|
34
34
|
createPluginState,
|
|
35
35
|
getPlugins
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-NOEERHHR.js";
|
|
37
37
|
import {
|
|
38
38
|
getConversationStore,
|
|
39
39
|
getDb,
|
|
40
40
|
sameActorIdentity
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AF4PHIP6.js";
|
|
42
42
|
import {
|
|
43
43
|
juniorConversations,
|
|
44
44
|
juniorTaskExecutions
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-VURJ2NSF.js";
|
|
46
46
|
import {
|
|
47
47
|
getStateAdapter
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-PHQDXC27.js";
|
|
49
49
|
import {
|
|
50
50
|
ProviderError,
|
|
51
51
|
findProviderError,
|
|
52
52
|
getProviderErrorAttributes,
|
|
53
53
|
getProviderErrorUserMessage
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
55
55
|
import {
|
|
56
56
|
credentialSubjectSchema
|
|
57
57
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
buildTurnFailureResponse,
|
|
63
63
|
logWarn
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-KSZXVR5G.js";
|
|
65
65
|
|
|
66
66
|
// src/chat/runtime/delivered-turn-state.ts
|
|
67
67
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -87,7 +87,7 @@ import { pluginRunContextSchema } from "@sentry/junior-plugin-api";
|
|
|
87
87
|
|
|
88
88
|
// src/chat/services/turn-session-routing.ts
|
|
89
89
|
async function resolveTurnSessionRouting(args) {
|
|
90
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
90
|
+
const conversationStore = args.conversationStore ?? (await import("./db-HFWTPYT7.js")).getConversationStore();
|
|
91
91
|
const conversation = await conversationStore.get({
|
|
92
92
|
conversationId: args.conversationId
|
|
93
93
|
});
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-FA6POGLH.js";
|
|
4
4
|
import {
|
|
5
5
|
getTurnRequestDeadline
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RCIKTZZF.js";
|
|
7
7
|
import {
|
|
8
8
|
buildSentryConversationUrl,
|
|
9
9
|
deleteWebAuthorization
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SSU65ZTZ.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureConversationWake,
|
|
13
13
|
requestConversationWork
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A7EDLNGU.js";
|
|
15
15
|
import {
|
|
16
16
|
buildDeliveredTurnStatePatch,
|
|
17
17
|
finalizeFailedTurnReplyWithEvent,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
requireTurnFailureEventId,
|
|
25
25
|
resolveTurnSessionRouting,
|
|
26
26
|
scheduleSessionCompletedPluginTasks
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IEM3GFXL.js";
|
|
28
28
|
import {
|
|
29
29
|
ConversationTurnLifecycleService,
|
|
30
30
|
coerceThreadConversationState,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
getPersistedSandboxState,
|
|
34
34
|
getPersistedThreadState,
|
|
35
35
|
persistThreadStateById
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4XJ2WSTI.js";
|
|
37
37
|
import {
|
|
38
38
|
getVercelConversationWorkQueue
|
|
39
39
|
} from "./chunk-WR76IVA5.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
lookupSlackUserProfile,
|
|
48
48
|
resolvePluginOAuthAccount,
|
|
49
49
|
runAgentWithTimeout
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-3A7VXSPJ.js";
|
|
51
51
|
import {
|
|
52
52
|
RetryableDeliveryError
|
|
53
53
|
} from "./chunk-RF6J3DIO.js";
|
|
@@ -63,13 +63,13 @@ import {
|
|
|
63
63
|
removeReactionFromMessage,
|
|
64
64
|
resolveBaseUrl,
|
|
65
65
|
truncateStatusText
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-4JAOLUDB.js";
|
|
67
67
|
import {
|
|
68
68
|
parseSlackThreadId,
|
|
69
69
|
readSlackRawMessageContext,
|
|
70
70
|
resolveSlackChannelIdFromMessage,
|
|
71
71
|
resolveSlackChannelIdFromThreadId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-DTVTBZNP.js";
|
|
73
73
|
import {
|
|
74
74
|
CooperativeTurnYieldError,
|
|
75
75
|
TurnSliceLimitExceededError,
|
|
@@ -96,29 +96,29 @@ import {
|
|
|
96
96
|
recordTurnSummary,
|
|
97
97
|
saveTurnCheckpoint,
|
|
98
98
|
turnHasReply
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-C3FYJZSA.js";
|
|
100
100
|
import {
|
|
101
101
|
getDashboardConversationLink,
|
|
102
102
|
getPluginSlackConversationLink
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-NOEERHHR.js";
|
|
104
104
|
import {
|
|
105
105
|
SlackActionError,
|
|
106
106
|
getHeaderString,
|
|
107
107
|
getSlackClient,
|
|
108
108
|
isDmChannel,
|
|
109
109
|
normalizeSlackConversationId
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-ROOTB7J7.js";
|
|
111
111
|
import {
|
|
112
112
|
getConversationEventStore,
|
|
113
113
|
getSqlExecutor,
|
|
114
114
|
requireSlackDestination,
|
|
115
115
|
upsertIdentity,
|
|
116
116
|
upsertLinkedIdentity
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-AF4PHIP6.js";
|
|
118
118
|
import {
|
|
119
119
|
acquireActiveLock,
|
|
120
120
|
getStateAdapter
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-PHQDXC27.js";
|
|
122
122
|
import {
|
|
123
123
|
botConfig,
|
|
124
124
|
escapeXml,
|
|
@@ -126,18 +126,18 @@ import {
|
|
|
126
126
|
getRuntimeMetadata,
|
|
127
127
|
normalizeSlackEmojiName,
|
|
128
128
|
standardModelId
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
130
130
|
import {
|
|
131
131
|
discoverSkills
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-LUSAAJJA.js";
|
|
133
133
|
import {
|
|
134
134
|
pluginCatalogRuntime
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-YEZS4TEY.js";
|
|
136
136
|
import {
|
|
137
137
|
buildOAuthTokenRequest,
|
|
138
138
|
hasRequiredOAuthScope,
|
|
139
139
|
parseOAuthTokenResponse
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-EQ6Y37MD.js";
|
|
141
141
|
import {
|
|
142
142
|
createSlackResumeActor,
|
|
143
143
|
isUserActor,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
setTags,
|
|
154
154
|
toOptionalString,
|
|
155
155
|
withLogContext
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-KSZXVR5G.js";
|
|
157
157
|
import {
|
|
158
158
|
homeDir
|
|
159
159
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWebAuthorization,
|
|
3
3
|
deleteWebAuthorization
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SSU65ZTZ.js";
|
|
5
5
|
import {
|
|
6
6
|
appendAndEnqueueInboundMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A7EDLNGU.js";
|
|
8
8
|
import {
|
|
9
9
|
buildDeliveredTurnStatePatch,
|
|
10
10
|
completeAuthPauseTurn,
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
getTurnUserMessage,
|
|
13
13
|
processPluginTask,
|
|
14
14
|
scheduleSessionCompletedPluginTasks
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IEM3GFXL.js";
|
|
16
16
|
import {
|
|
17
17
|
ConversationTurnLifecycleService,
|
|
18
18
|
coerceThreadConversationState,
|
|
19
19
|
getPersistedSandboxState,
|
|
20
20
|
getPersistedThreadState,
|
|
21
21
|
persistThreadStateById
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4XJ2WSTI.js";
|
|
23
23
|
import {
|
|
24
24
|
healthReportSchema
|
|
25
25
|
} from "./chunk-UTL3MHPC.js";
|
|
26
26
|
import {
|
|
27
27
|
parseSlackThreadId
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-DTVTBZNP.js";
|
|
29
29
|
import {
|
|
30
30
|
TurnInputCommitLostError,
|
|
31
31
|
abandonTurnRecord,
|
|
@@ -48,17 +48,17 @@ import {
|
|
|
48
48
|
saveTurnCheckpoint,
|
|
49
49
|
startActiveTurn,
|
|
50
50
|
upsertConversationMessage
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-C3FYJZSA.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeSlackConversationId
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ROOTB7J7.js";
|
|
55
55
|
import {
|
|
56
56
|
getConversationEventStore,
|
|
57
57
|
getConversationStore
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-AF4PHIP6.js";
|
|
59
59
|
import {
|
|
60
60
|
getSlackBotToken
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
62
62
|
import {
|
|
63
63
|
credentialContextForActor
|
|
64
64
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
logWarn,
|
|
68
68
|
setTags,
|
|
69
69
|
withLogContext
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-KSZXVR5G.js";
|
|
71
71
|
|
|
72
72
|
// src/handlers/health.ts
|
|
73
73
|
function readHealthReport() {
|
|
@@ -81,6 +81,30 @@ function GET() {
|
|
|
81
81
|
return Response.json(readHealthReport());
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
// src/chat/attachments/vercel.ts
|
|
85
|
+
import { del, get, put } from "@vercel/blob";
|
|
86
|
+
function createVercelAttachmentStorage() {
|
|
87
|
+
return {
|
|
88
|
+
provider: "vercel-blob",
|
|
89
|
+
async put(input) {
|
|
90
|
+
await put(input.key, input.body, {
|
|
91
|
+
access: "private",
|
|
92
|
+
addRandomSuffix: false,
|
|
93
|
+
allowOverwrite: true,
|
|
94
|
+
contentType: input.contentType
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
async get(key) {
|
|
98
|
+
const result = await get(key, { access: "private" });
|
|
99
|
+
return result?.statusCode === 200 ? result.stream : null;
|
|
100
|
+
},
|
|
101
|
+
async delete(keys) {
|
|
102
|
+
if (keys.length === 0) return;
|
|
103
|
+
await del(keys);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
84
108
|
// src/chat/slack/user.ts
|
|
85
109
|
import { z } from "zod";
|
|
86
110
|
var slackUserInfoSchema = z.object({
|
|
@@ -926,6 +950,7 @@ function formatSlackConversationRedactedLabel(context) {
|
|
|
926
950
|
export {
|
|
927
951
|
readHealthReport,
|
|
928
952
|
GET,
|
|
953
|
+
createVercelAttachmentStorage,
|
|
929
954
|
lookupSlackUser,
|
|
930
955
|
conversationVisibilityFromSlackChannelType,
|
|
931
956
|
resolveSlackChannelTypeFromMessage,
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
isConversationScopedChannel,
|
|
5
5
|
isDmChannel,
|
|
6
6
|
normalizeSlackConversationId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ROOTB7J7.js";
|
|
8
8
|
import {
|
|
9
9
|
getConversationEventStore,
|
|
10
10
|
getDb
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AF4PHIP6.js";
|
|
12
12
|
import {
|
|
13
13
|
juniorConversationAnnotations,
|
|
14
14
|
juniorConversationEvents,
|
|
15
15
|
juniorIdentities,
|
|
16
16
|
juniorUsers
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VURJ2NSF.js";
|
|
18
18
|
import {
|
|
19
19
|
SANDBOX_WORKSPACE_ROOT
|
|
20
20
|
} from "./chunk-EM225ITJ.js";
|
|
21
21
|
import {
|
|
22
22
|
getStateAdapter
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PHQDXC27.js";
|
|
24
24
|
import {
|
|
25
25
|
botConfig,
|
|
26
26
|
completeObject,
|
|
27
27
|
embedTexts,
|
|
28
28
|
getSlackBotToken,
|
|
29
29
|
standardModelId
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
31
31
|
import {
|
|
32
32
|
isActorUserId,
|
|
33
33
|
parseActorUserId,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
logInfo,
|
|
41
41
|
logWarn,
|
|
42
42
|
normalizeIdentityEmail
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KSZXVR5G.js";
|
|
44
44
|
|
|
45
45
|
// src/chat/plugins/agent-hooks.ts
|
|
46
46
|
import {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-EM225ITJ.js";
|
|
4
4
|
import {
|
|
5
5
|
getSlackBotToken
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
7
7
|
import {
|
|
8
8
|
parseSlackChannelReferenceId
|
|
9
9
|
} from "./chunk-V7YE4WCP.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
setSpanAttributes,
|
|
13
13
|
setSpanStatus,
|
|
14
14
|
withSpan
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KSZXVR5G.js";
|
|
16
16
|
|
|
17
17
|
// src/chat/slack/client.ts
|
|
18
18
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
} from "./chunk-EM225ITJ.js";
|
|
5
5
|
import {
|
|
6
6
|
getStateAdapter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PHQDXC27.js";
|
|
8
8
|
import {
|
|
9
9
|
toOptionalTrimmed
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
11
11
|
import {
|
|
12
12
|
pluginCatalogRuntime
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YEZS4TEY.js";
|
|
14
14
|
import {
|
|
15
15
|
setSpanAttributes,
|
|
16
16
|
setSpanStatus,
|
|
17
17
|
withSpan
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KSZXVR5G.js";
|
|
19
19
|
|
|
20
20
|
// src/chat/sandbox/resources.ts
|
|
21
21
|
var configuredResources;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTurnRequestDeadline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RCIKTZZF.js";
|
|
4
4
|
import {
|
|
5
5
|
CONVERSATION_WORK_CHECK_IN_INTERVAL_MS,
|
|
6
6
|
CONVERSATION_WORK_MAX_RETRIES,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
releaseConversationWork,
|
|
22
22
|
requestAnotherSlice,
|
|
23
23
|
startConversationWork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-A7EDLNGU.js";
|
|
25
25
|
import {
|
|
26
26
|
ConversationQueueMessageRejectedError
|
|
27
27
|
} from "./chunk-JAL3CH4G.js";
|
|
28
28
|
import {
|
|
29
29
|
getChatConfig,
|
|
30
30
|
isProviderRetryError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
32
32
|
import {
|
|
33
33
|
logException,
|
|
34
34
|
logInfo,
|
|
35
35
|
logWarn,
|
|
36
36
|
withLogContext
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KSZXVR5G.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/task-execution/worker.ts
|
|
40
40
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendAndEnqueueInboundMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A7EDLNGU.js";
|
|
4
4
|
import {
|
|
5
5
|
ConversationTurnLifecycleService,
|
|
6
6
|
getPersistedSandboxState,
|
|
7
7
|
getPersistedThreadState,
|
|
8
8
|
persistThreadStateById
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4XJ2WSTI.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentInvocationBusyError,
|
|
12
12
|
AgentInvocationLimitError,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
agentBindingSchema,
|
|
16
16
|
agentInvocationSchema,
|
|
17
17
|
createAgentInvocationSchema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FA32YRZ3.js";
|
|
19
19
|
import {
|
|
20
20
|
TurnInputCommitLostError,
|
|
21
21
|
failTurnRecord,
|
|
@@ -26,16 +26,16 @@ import {
|
|
|
26
26
|
isTurnInputCommitLostError,
|
|
27
27
|
openConversationProjection,
|
|
28
28
|
saveTurnCheckpoint
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-C3FYJZSA.js";
|
|
30
30
|
import {
|
|
31
31
|
getConversationEventStore,
|
|
32
32
|
getConversationStore,
|
|
33
33
|
getSqlExecutor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AF4PHIP6.js";
|
|
35
35
|
import {
|
|
36
36
|
juniorAgentBindings,
|
|
37
37
|
juniorAgentInvocations
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VURJ2NSF.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/agent-invocations/work.ts
|
|
41
41
|
import { z } from "zod";
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAgentRun
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-EXITAVHO.js";
|
|
4
|
+
import "../chunk-FA32YRZ3.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
6
|
import {
|
|
7
7
|
createAgentRunner
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-3A7VXSPJ.js";
|
|
9
9
|
import "../chunk-RF6J3DIO.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-4JAOLUDB.js";
|
|
11
11
|
import "../chunk-7MA4HV4W.js";
|
|
12
12
|
import "../chunk-5IDFPCON.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-UJ6N32ZM.js";
|
|
14
|
+
import "../chunk-4Q6QVTKA.js";
|
|
15
|
+
import "../chunk-DTVTBZNP.js";
|
|
16
|
+
import "../chunk-C3FYJZSA.js";
|
|
17
17
|
import "../chunk-3Y47VMHV.js";
|
|
18
18
|
import "../chunk-PDO5BLNM.js";
|
|
19
19
|
import "../chunk-UIE3R5XU.js";
|
|
20
20
|
import {
|
|
21
21
|
loadAppPluginSet
|
|
22
22
|
} from "../chunk-Y2CM7HXH.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-NOEERHHR.js";
|
|
24
|
+
import "../chunk-ROOTB7J7.js";
|
|
25
|
+
import "../chunk-AF4PHIP6.js";
|
|
26
|
+
import "../chunk-VURJ2NSF.js";
|
|
27
27
|
import "../chunk-EM225ITJ.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-PHQDXC27.js";
|
|
29
|
+
import "../chunk-FAJ6SMEE.js";
|
|
30
30
|
import "../chunk-VFUK3X5B.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-UPPU3FQU.js";
|
|
32
|
+
import "../chunk-LUSAAJJA.js";
|
|
33
|
+
import "../chunk-YEZS4TEY.js";
|
|
34
|
+
import "../chunk-EQ6Y37MD.js";
|
|
35
35
|
import "../chunk-BDUENQD3.js";
|
|
36
36
|
import "../chunk-V7YE4WCP.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-KSZXVR5G.js";
|
|
38
38
|
import "../chunk-6GWA276C.js";
|
|
39
39
|
import "../chunk-OOUNJNMR.js";
|
|
40
40
|
import "../chunk-H4HBKISO.js";
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-6GJCOUTA.js";
|
|
42
|
+
import "../chunk-IXYGGJRA.js";
|
|
43
43
|
import "../chunk-MLKGABMK.js";
|
|
44
44
|
|
|
45
45
|
// src/cli/chat.ts
|
|
@@ -162,10 +162,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
162
162
|
databaseModule
|
|
163
163
|
] = await Promise.all([
|
|
164
164
|
import("../plugins-HW4VWW6G.js"),
|
|
165
|
-
import("../agent-hooks-
|
|
166
|
-
import("../catalog-runtime-
|
|
167
|
-
import("../validation-
|
|
168
|
-
import("../db-
|
|
165
|
+
import("../agent-hooks-BOWFTDE5.js"),
|
|
166
|
+
import("../catalog-runtime-7GZ25WTR.js"),
|
|
167
|
+
import("../validation-4HVSSLJV.js"),
|
|
168
|
+
import("../db-HFWTPYT7.js")
|
|
169
169
|
]);
|
|
170
170
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
171
171
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -231,14 +231,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
231
231
|
await configureLocalChatPlugins(pluginSet);
|
|
232
232
|
const { setExperimentalFeatures } = await import("../experimental-HH6OM6UH.js");
|
|
233
233
|
setExperimentalFeatures({ subagents: true });
|
|
234
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
235
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
234
|
+
const { runLocalAgentTurn } = await import("../runner-CL6QHML5.js");
|
|
235
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-J3NW4QL5.js");
|
|
236
236
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
237
237
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-U3ZX7C5W.js");
|
|
238
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
239
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
238
|
+
const { bindSpawnAgent } = await import("../spawn-TQJWADG4.js");
|
|
239
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-UF4KXPVG.js");
|
|
240
240
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
241
|
-
const { processConversationWork } = await import("../worker-
|
|
241
|
+
const { processConversationWork } = await import("../worker-HI7I2W2U.js");
|
|
242
242
|
let agentRunner;
|
|
243
243
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
244
244
|
if (!agentRunner) {
|