@sentry/junior 0.158.0 → 0.159.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-BOWFTDE5.js → agent-hooks-IAD3AANZ.js} +10 -10
- package/dist/api/conversations/cancel-pending-messages.d.ts +4 -0
- package/dist/api/schema/conversation.d.ts +13 -0
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -1
- package/dist/api.js +87 -23
- package/dist/app.js +32 -32
- package/dist/{catalog-runtime-7GZ25WTR.js → catalog-runtime-6VANKLH5.js} +5 -5
- package/dist/chat/conversations/history.d.ts +4 -1
- package/dist/chat/slack/mrkdwn.d.ts +2 -1
- package/dist/chat/task-execution/state.d.ts +10 -0
- package/dist/chat/task-execution/store.d.ts +11 -0
- package/dist/{chunk-X4BLYIMV.js → chunk-27UQ7UB3.js} +6 -6
- package/dist/{chunk-C3FYJZSA.js → chunk-54O6IKUS.js} +4 -4
- package/dist/{chunk-SAJPQLTY.js → chunk-6IADZQJR.js} +1 -1
- package/dist/{chunk-UQJO35BP.js → chunk-AIQKUJKK.js} +4 -4
- package/dist/{chunk-3A7VXSPJ.js → chunk-AZW5HKC5.js} +8 -8
- package/dist/{chunk-YEZS4TEY.js → chunk-CNHELV2P.js} +1 -1
- package/dist/{chunk-4JAOLUDB.js → chunk-DJZPA72K.js} +35 -6
- package/dist/{chunk-JEXQQLEC.js → chunk-DXSZJAVZ.js} +18 -18
- package/dist/{chunk-NOEERHHR.js → chunk-EBP6IS66.js} +6 -6
- package/dist/{chunk-CZCMFRUQ.js → chunk-EQXVKNLM.js} +11 -0
- package/dist/{chunk-A7EDLNGU.js → chunk-FWDN67U3.js} +55 -4
- package/dist/{chunk-DTVTBZNP.js → chunk-IJ6KWS3V.js} +1 -1
- package/dist/{chunk-ROOTB7J7.js → chunk-K2LAI7RW.js} +2 -2
- package/dist/{chunk-FAJ6SMEE.js → chunk-L2PEQ2PY.js} +2 -2
- package/dist/{chunk-IXYGGJRA.js → chunk-LUIKMY35.js} +1 -1
- package/dist/{chunk-IEM3GFXL.js → chunk-NCJV265M.js} +9 -9
- package/dist/{chunk-4Q6QVTKA.js → chunk-NT6V5WEE.js} +5 -5
- package/dist/{chunk-VURJ2NSF.js → chunk-O2DZWUPQ.js} +1 -1
- package/dist/{chunk-6GJCOUTA.js → chunk-OGMHLKNO.js} +1 -1
- package/dist/{chunk-UJ6N32ZM.js → chunk-PQWWCKNB.js} +4 -4
- package/dist/{chunk-UPPU3FQU.js → chunk-PT7B6A3O.js} +1 -1
- package/dist/{chunk-PHQDXC27.js → chunk-Q5X37U6G.js} +1 -1
- package/dist/{chunk-AF4PHIP6.js → chunk-QODFNKQS.js} +27 -10
- package/dist/{chunk-EXITAVHO.js → chunk-SQOVZSWF.js} +20 -18
- package/dist/{chunk-KSZXVR5G.js → chunk-TD7ZQZ5W.js} +1 -1
- package/dist/{chunk-LUSAAJJA.js → chunk-U7D4VLUF.js} +2 -2
- package/dist/{chunk-SSU65ZTZ.js → chunk-UG673UVL.js} +1 -1
- package/dist/{chunk-4XJ2WSTI.js → chunk-UKKOKMRE.js} +5 -5
- package/dist/{chunk-BNFGY66A.js → chunk-UP6KQVF5.js} +1 -1
- package/dist/{chunk-RCIKTZZF.js → chunk-WTQ3CKC3.js} +1 -1
- package/dist/{chunk-FA32YRZ3.js → chunk-X7AIXRVJ.js} +5 -5
- package/dist/{chunk-EQ6Y37MD.js → chunk-YCBZ47LC.js} +1 -1
- package/dist/{chunk-KAFYW3O6.js → chunk-YSMAMSOU.js} +10 -10
- 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-HFWTPYT7.js → db-BIIMAPFB.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-J3NW4QL5.js → oauth-callback-server-4BENCPP3.js} +23 -23
- package/dist/{runner-CL6QHML5.js → runner-TUBJLEYO.js} +13 -13
- package/dist/{skills-WZWKZIFQ.js → skills-MBRLNBRV.js} +6 -6
- package/dist/spawn-ZWIXA46E.js +37 -0
- package/dist/{validation-4HVSSLJV.js → validation-YTJGRJYT.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-UF4KXPVG.js → work-5MRHKA54.js} +17 -17
- package/dist/worker-S2V7HZJ4.js +24 -0
- package/package.json +5 -5
- package/dist/spawn-TQJWADG4.js +0 -37
- package/dist/worker-HI7I2W2U.js +0 -24
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolInputError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-54O6IKUS.js";
|
|
4
4
|
import {
|
|
5
5
|
canRouteResourceEvents,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EBP6IS66.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QODFNKQS.js";
|
|
11
11
|
import {
|
|
12
12
|
juniorAttachments,
|
|
13
13
|
juniorConversations,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
juniorSchedulerRuns,
|
|
16
16
|
juniorSchedulerTasks,
|
|
17
17
|
juniorStats
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O2DZWUPQ.js";
|
|
19
19
|
import {
|
|
20
20
|
juniorDestinations
|
|
21
21
|
} from "./chunk-VFUK3X5B.js";
|
|
22
22
|
import {
|
|
23
23
|
logInfo
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TD7ZQZ5W.js";
|
|
25
25
|
|
|
26
26
|
// src/chat/event-tasks/store.ts
|
|
27
27
|
import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
} from "./chunk-EM225ITJ.js";
|
|
5
5
|
import {
|
|
6
6
|
getStateAdapter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q5X37U6G.js";
|
|
8
8
|
import {
|
|
9
9
|
toOptionalTrimmed
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L2PEQ2PY.js";
|
|
11
11
|
import {
|
|
12
12
|
pluginCatalogRuntime
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CNHELV2P.js";
|
|
14
14
|
import {
|
|
15
15
|
setSpanAttributes,
|
|
16
16
|
setSpanStatus,
|
|
17
17
|
withSpan
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TD7ZQZ5W.js";
|
|
19
19
|
|
|
20
20
|
// src/chat/sandbox/resources.ts
|
|
21
21
|
var configuredResources;
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
juniorConversations,
|
|
7
7
|
juniorIdentities,
|
|
8
8
|
juniorUsers
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O2DZWUPQ.js";
|
|
10
10
|
import {
|
|
11
11
|
TURN_REASONING_LEVELS,
|
|
12
12
|
getChatConfig,
|
|
13
13
|
modelProfileSchema
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L2PEQ2PY.js";
|
|
15
15
|
import {
|
|
16
16
|
juniorDestinations
|
|
17
17
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-V7YE4WCP.js";
|
|
23
23
|
import {
|
|
24
24
|
normalizeIdentityEmail
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TD7ZQZ5W.js";
|
|
26
26
|
|
|
27
27
|
// src/chat/conversations/sql/store.ts
|
|
28
28
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -1608,6 +1608,29 @@ var messageHistoryEventTypes = [
|
|
|
1608
1608
|
"message_updated",
|
|
1609
1609
|
"message_handled"
|
|
1610
1610
|
];
|
|
1611
|
+
var HUMAN_INSTRUCTION_PLATFORMS = /* @__PURE__ */ new Set(["slack", "local", "web"]);
|
|
1612
|
+
function eventUnarchivesConversation(data) {
|
|
1613
|
+
if (data.type === "user_message") {
|
|
1614
|
+
const provenance = data.provenance;
|
|
1615
|
+
if (provenance.authority !== "instruction") return false;
|
|
1616
|
+
const platform = provenance.actor?.platform;
|
|
1617
|
+
return platform === void 0 || HUMAN_INSTRUCTION_PLATFORMS.has(platform);
|
|
1618
|
+
}
|
|
1619
|
+
if (data.type !== "message") {
|
|
1620
|
+
return false;
|
|
1621
|
+
}
|
|
1622
|
+
if (data.role !== "user") return false;
|
|
1623
|
+
const meta = data.meta;
|
|
1624
|
+
if (!meta) return true;
|
|
1625
|
+
if (typeof meta.eventType === "string" && meta.eventType.length > 0) {
|
|
1626
|
+
return false;
|
|
1627
|
+
}
|
|
1628
|
+
const author = meta.author;
|
|
1629
|
+
if (author && typeof author === "object" && !Array.isArray(author) && author.isBot === true) {
|
|
1630
|
+
return false;
|
|
1631
|
+
}
|
|
1632
|
+
return true;
|
|
1633
|
+
}
|
|
1611
1634
|
function insertFromEvent(conversationId, seq, historyVersion, event, actorIdentityId) {
|
|
1612
1635
|
const stripped = stripPayloadAuthorIdentityId(event.data);
|
|
1613
1636
|
const { type, ...payload } = conversationEventDataSchema.parse(stripped);
|
|
@@ -1691,7 +1714,7 @@ var SqlConversationEventStore = class {
|
|
|
1691
1714
|
newestCreatedAtMs,
|
|
1692
1715
|
options
|
|
1693
1716
|
);
|
|
1694
|
-
if (options.activity !== "preserve") {
|
|
1717
|
+
if (options.activity !== "preserve" && pending.some((event) => eventUnarchivesConversation(event.data))) {
|
|
1695
1718
|
await this.executor.db().update(juniorConversations).set({ archivedAt: null }).where(
|
|
1696
1719
|
and6(
|
|
1697
1720
|
eq6(juniorConversations.conversationId, conversationId),
|
|
@@ -1736,12 +1759,6 @@ var SqlConversationEventStore = class {
|
|
|
1736
1759
|
const parsed = historyReplacementSchema.parse(replacement);
|
|
1737
1760
|
await withConversationEventLock(this.executor, conversationId, async () => {
|
|
1738
1761
|
await ensureConversationRow(this.executor, conversationId, Date.now());
|
|
1739
|
-
await this.executor.db().update(juniorConversations).set({ archivedAt: null }).where(
|
|
1740
|
-
and6(
|
|
1741
|
-
eq6(juniorConversations.conversationId, conversationId),
|
|
1742
|
-
isNotNull(juniorConversations.archivedAt)
|
|
1743
|
-
)
|
|
1744
|
-
);
|
|
1745
1762
|
const cursor = await this.readCursor(conversationId);
|
|
1746
1763
|
const historyVersion = (cursor.maxHistoryVersion ?? 0) + 1;
|
|
1747
1764
|
await this.executor.db().insert(juniorConversationEvents).values(
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X7AIXRVJ.js";
|
|
11
11
|
import {
|
|
12
12
|
authorizationId
|
|
13
13
|
} from "./chunk-DIB4GX3G.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
searchSlackUsers,
|
|
33
33
|
selectPluginGrant,
|
|
34
34
|
toMcpProviderError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-AZW5HKC5.js";
|
|
36
36
|
import {
|
|
37
37
|
RetryableDeliveryError,
|
|
38
38
|
actorFromRun,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
getSlackMessagePermalink,
|
|
49
49
|
resolveBaseUrl,
|
|
50
50
|
uploadFilesToConversation
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-DJZPA72K.js";
|
|
52
52
|
import {
|
|
53
53
|
parseSandboxEgressAuthRequiredSignal,
|
|
54
54
|
parseSandboxEgressPermissionDeniedSignal,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
runNonInteractiveCommand,
|
|
75
75
|
throwSandboxOperationError,
|
|
76
76
|
wrapSandboxSetupError
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-PQWWCKNB.js";
|
|
78
78
|
import {
|
|
79
79
|
SCHEDULED_TASK_SYSTEM_ACTOR,
|
|
80
80
|
compactEventTask,
|
|
@@ -107,10 +107,10 @@ import {
|
|
|
107
107
|
scheduledTaskAttributes,
|
|
108
108
|
storeAttachments,
|
|
109
109
|
writableEventTask
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-NT6V5WEE.js";
|
|
111
111
|
import {
|
|
112
112
|
parseSlackThreadId
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-IJ6KWS3V.js";
|
|
114
114
|
import {
|
|
115
115
|
AGENTS_REMOVAL_NOTICE,
|
|
116
116
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -180,7 +180,7 @@ import {
|
|
|
180
180
|
stripRuntimeTurnContext,
|
|
181
181
|
trimTrailingAssistantMessages,
|
|
182
182
|
truncateText
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-54O6IKUS.js";
|
|
184
184
|
import {
|
|
185
185
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
186
186
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
getSlackToolContext,
|
|
197
197
|
readActorIdentity,
|
|
198
198
|
resolveChannelCapabilities
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-EBP6IS66.js";
|
|
200
200
|
import {
|
|
201
201
|
SlackActionError,
|
|
202
202
|
downloadPrivateSlackFile,
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
isConversationScopedChannel,
|
|
206
206
|
normalizeSlackConversationId,
|
|
207
207
|
withSlackRetries
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-K2LAI7RW.js";
|
|
209
209
|
import {
|
|
210
210
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
211
211
|
contextProvenance,
|
|
@@ -217,10 +217,10 @@ import {
|
|
|
217
217
|
instructionActors,
|
|
218
218
|
instructionProvenanceFor,
|
|
219
219
|
sameActorIdentity
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-QODFNKQS.js";
|
|
221
221
|
import {
|
|
222
222
|
juniorIdentities
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-O2DZWUPQ.js";
|
|
224
224
|
import {
|
|
225
225
|
SANDBOX_DATA_ROOT,
|
|
226
226
|
SANDBOX_SKILLS_ROOT,
|
|
@@ -232,7 +232,7 @@ import {
|
|
|
232
232
|
} from "./chunk-EM225ITJ.js";
|
|
233
233
|
import {
|
|
234
234
|
getStateAdapter
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-Q5X37U6G.js";
|
|
236
236
|
import {
|
|
237
237
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
238
238
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -265,7 +265,7 @@ import {
|
|
|
265
265
|
resolveGatewayCredential,
|
|
266
266
|
resolveGatewayModel,
|
|
267
267
|
unwrapCurrentInstruction
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-L2PEQ2PY.js";
|
|
269
269
|
import {
|
|
270
270
|
canExposeConversationPayload,
|
|
271
271
|
resolveConversationPrivacy,
|
|
@@ -275,16 +275,16 @@ import {
|
|
|
275
275
|
toGenAiMessagesTraceAttributes,
|
|
276
276
|
toGenAiPayloadMetadata,
|
|
277
277
|
toGenAiPayloadTraceAttributes
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-PT7B6A3O.js";
|
|
279
279
|
import {
|
|
280
280
|
discoverSkills,
|
|
281
281
|
findSkillByName,
|
|
282
282
|
loadSkillsByName,
|
|
283
283
|
parseSkillInvocation
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-U7D4VLUF.js";
|
|
285
285
|
import {
|
|
286
286
|
pluginCatalogRuntime
|
|
287
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-CNHELV2P.js";
|
|
288
288
|
import {
|
|
289
289
|
CredentialUnavailableError,
|
|
290
290
|
OAuthProviderError,
|
|
@@ -292,7 +292,7 @@ import {
|
|
|
292
292
|
getOAuthProviderErrorAttributes,
|
|
293
293
|
resolveAuthTokenPlaceholder,
|
|
294
294
|
resolvePluginCommandEnv
|
|
295
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-YCBZ47LC.js";
|
|
296
296
|
import {
|
|
297
297
|
credentialUserSubjectId
|
|
298
298
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -320,7 +320,7 @@ import {
|
|
|
320
320
|
summarizeMessageText,
|
|
321
321
|
withLogContext,
|
|
322
322
|
withSpan
|
|
323
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-TD7ZQZ5W.js";
|
|
324
324
|
import {
|
|
325
325
|
startInactiveSpan,
|
|
326
326
|
withActiveSpan
|
|
@@ -1731,6 +1731,7 @@ function buildOutputSection(platform) {
|
|
|
1731
1731
|
`<output format="markdown">`,
|
|
1732
1732
|
"- Start with the answer or result, not internal process narration.",
|
|
1733
1733
|
"- Use concise Markdown suitable for terminal output: short paragraphs, bullets, links, and fenced code blocks when helpful.",
|
|
1734
|
+
"- When you mention a pull request, include a direct link. Prefer the full PR URL or a Markdown link; do not leave bare `PR #123` text without a URL or repo.",
|
|
1734
1735
|
"- End every turn with a final user-facing response.",
|
|
1735
1736
|
"</output>"
|
|
1736
1737
|
].join("\n");
|
|
@@ -1740,6 +1741,7 @@ function buildOutputSection(platform) {
|
|
|
1740
1741
|
"- Default to the shortest complete reply\u2014usually 1\u20135 sentences and under 800 characters. Include only the outcome, decisive evidence, and any blocker or required next action. If useful detail would exceed that, put it in a Slack canvas and reply with the link. An explicit user request for detail overrides this target.",
|
|
1741
1742
|
"- Start with the answer or result, not internal process narration.",
|
|
1742
1743
|
"- Use Slack-flavored Markdown: **bold** section labels, `code`, [text](url) links, bullet lists, and fenced code blocks. No hash-prefixed headings and no tables. When the answer primarily lists several URLs, show each URL bare instead of as a labeled link.",
|
|
1744
|
+
"- When you mention a pull request, include a direct link. Prefer the full PR URL or a Markdown link; `owner/repo#number` is also accepted and is linkified on delivery. Do not leave bare `PR #123` text without a URL or repo.",
|
|
1743
1745
|
"- End every turn with a final user-facing markdown response unless the Slack action rules allow a no-reply completion.",
|
|
1744
1746
|
"</output>"
|
|
1745
1747
|
].join("\n");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-54O6IKUS.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-QODFNKQS.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O2DZWUPQ.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q5X37U6G.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-TD7ZQZ5W.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/conversations/turn-lifecycle.ts
|
|
26
26
|
var ConversationTurnLifecycleService = class {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
formatProviderLabel,
|
|
6
6
|
startOAuthFlow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DJZPA72K.js";
|
|
8
8
|
import {
|
|
9
9
|
parseSandboxEgressAuthRequiredSignal
|
|
10
10
|
} from "./chunk-7MA4HV4W.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
abandonReplacedPendingAuth,
|
|
13
13
|
canReusePendingAuthLink,
|
|
14
14
|
recordAuthorizationRequested
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-54O6IKUS.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O2DZWUPQ.js";
|
|
19
19
|
import {
|
|
20
20
|
TURN_REASONING_LEVELS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L2PEQ2PY.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CNHELV2P.js";
|
|
25
25
|
import {
|
|
26
26
|
credentialContextSchema
|
|
27
27
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWebAuthorization,
|
|
3
3
|
deleteWebAuthorization
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UG673UVL.js";
|
|
5
5
|
import {
|
|
6
6
|
appendAndEnqueueInboundMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FWDN67U3.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-NCJV265M.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-UKKOKMRE.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-IJ6KWS3V.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-54O6IKUS.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeSlackConversationId
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-K2LAI7RW.js";
|
|
55
55
|
import {
|
|
56
56
|
getConversationEventStore,
|
|
57
57
|
getConversationStore
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-QODFNKQS.js";
|
|
59
59
|
import {
|
|
60
60
|
getSlackBotToken
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-L2PEQ2PY.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-TD7ZQZ5W.js";
|
|
71
71
|
|
|
72
72
|
// src/handlers/health.ts
|
|
73
73
|
function readHealthReport() {
|
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-SQOVZSWF.js";
|
|
4
|
+
import "../chunk-X7AIXRVJ.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
6
|
import {
|
|
7
7
|
createAgentRunner
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-AZW5HKC5.js";
|
|
9
9
|
import "../chunk-RF6J3DIO.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-DJZPA72K.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-PQWWCKNB.js";
|
|
14
|
+
import "../chunk-NT6V5WEE.js";
|
|
15
|
+
import "../chunk-IJ6KWS3V.js";
|
|
16
|
+
import "../chunk-54O6IKUS.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-EBP6IS66.js";
|
|
24
|
+
import "../chunk-K2LAI7RW.js";
|
|
25
|
+
import "../chunk-QODFNKQS.js";
|
|
26
|
+
import "../chunk-O2DZWUPQ.js";
|
|
27
27
|
import "../chunk-EM225ITJ.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-Q5X37U6G.js";
|
|
29
|
+
import "../chunk-L2PEQ2PY.js";
|
|
30
30
|
import "../chunk-VFUK3X5B.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-PT7B6A3O.js";
|
|
32
|
+
import "../chunk-U7D4VLUF.js";
|
|
33
|
+
import "../chunk-CNHELV2P.js";
|
|
34
|
+
import "../chunk-YCBZ47LC.js";
|
|
35
35
|
import "../chunk-BDUENQD3.js";
|
|
36
36
|
import "../chunk-V7YE4WCP.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-TD7ZQZ5W.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-OGMHLKNO.js";
|
|
42
|
+
import "../chunk-LUIKMY35.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-IAD3AANZ.js"),
|
|
166
|
+
import("../catalog-runtime-6VANKLH5.js"),
|
|
167
|
+
import("../validation-YTJGRJYT.js"),
|
|
168
|
+
import("../db-BIIMAPFB.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-TUBJLEYO.js");
|
|
235
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-4BENCPP3.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-ZWIXA46E.js");
|
|
239
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-5MRHKA54.js");
|
|
240
240
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
241
|
-
const { processConversationWork } = await import("../worker-
|
|
241
|
+
const { processConversationWork } = await import("../worker-S2V7HZJ4.js");
|
|
242
242
|
let agentRunner;
|
|
243
243
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
244
244
|
if (!agentRunner) {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-U7D4VLUF.js";
|
|
4
|
+
import "../chunk-CNHELV2P.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-YCBZ47LC.js";
|
|
9
9
|
import "../chunk-BDUENQD3.js";
|
|
10
10
|
import "../chunk-V7YE4WCP.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-TD7ZQZ5W.js";
|
|
12
12
|
import "../chunk-6GWA276C.js";
|
|
13
13
|
import "../chunk-OOUNJNMR.js";
|
|
14
14
|
import "../chunk-H4HBKISO.js";
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
17
17
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
18
18
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-OGMHLKNO.js";
|
|
20
|
+
import "../chunk-LUIKMY35.js";
|
|
21
21
|
import "../chunk-MLKGABMK.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/check.ts
|