@sentry/junior 0.84.0 → 0.85.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-XDS5DIVS.js → agent-hooks-AV7CHLUO.js} +7 -7
- package/dist/app.js +144 -46
- package/dist/{catalog-runtime-IVWRAPSI.js → catalog-runtime-XOD7YPRS.js} +2 -2
- package/dist/chat/current-instruction.d.ts +6 -0
- package/dist/chat/requester.d.ts +1 -1
- package/dist/chat/respond-helpers.d.ts +1 -2
- package/dist/{chunk-FAGWUF44.js → chunk-2TAIGJPQ.js} +1 -1
- package/dist/{chunk-WCXVEQPI.js → chunk-64ACM6AP.js} +1 -1
- package/dist/{chunk-TW23AT22.js → chunk-BQ3ITJA6.js} +1 -1
- package/dist/{chunk-ALL7GG6U.js → chunk-BU2AWPEN.js} +42 -4
- package/dist/{chunk-BAPRSWNW.js → chunk-C2PSUWK3.js} +1 -1
- package/dist/{chunk-S7SC5IUJ.js → chunk-EENOFKDN.js} +4 -4
- package/dist/{chunk-SBYMRDH7.js → chunk-ENEWQMRJ.js} +1 -1
- package/dist/{chunk-MZ4DUVFD.js → chunk-FYPO4K7C.js} +3 -3
- package/dist/{chunk-JUI6XIHU.js → chunk-GY7L6VCT.js} +7 -12
- package/dist/{chunk-ZPCGQRFJ.js → chunk-IXTBFABZ.js} +4 -5
- package/dist/{chunk-BFPOSIYV.js → chunk-MHEV3T2Y.js} +56 -19
- package/dist/{chunk-CWMMGUWM.js → chunk-MTE5NRPJ.js} +1 -1
- package/dist/{chunk-AAD2D7K3.js → chunk-QTTTRBNB.js} +3 -3
- package/dist/{chunk-MJ4E2PK7.js → chunk-RUB77TGS.js} +1 -1
- package/dist/{chunk-ZPD5YQFZ.js → chunk-SSUEWAVS.js} +3 -3
- package/dist/{chunk-KNVN4HUT.js → chunk-UVNV67EC.js} +5 -5
- package/dist/cli/chat.js +6 -6
- package/dist/cli/check.js +3 -3
- package/dist/cli/plugins.js +9 -9
- package/dist/cli/snapshot-warmup.js +5 -5
- package/dist/cli/upgrade.js +8 -8
- package/dist/{db-7RRWCYF3.js → db-S3HYBLUS.js} +4 -4
- package/dist/handlers/github-webhook/issue-comment.d.ts +3 -0
- package/dist/handlers/github-webhook/pull-request-review-comment.d.ts +3 -0
- package/dist/nitro.js +3 -3
- package/dist/reporting.js +26 -15
- package/dist/{runner-CJL5IKFO.js → runner-IMQH6V2B.js} +12 -12
- package/dist/{validation-TN6HMZAD.js → validation-MBNJKWPQ.js} +3 -3
- package/package.json +6 -6
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isSnapshotMissingError,
|
|
11
11
|
resolveRuntimeDependencySnapshot,
|
|
12
12
|
runNonInteractiveCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FYPO4K7C.js";
|
|
14
14
|
import {
|
|
15
15
|
pluginTaskId,
|
|
16
16
|
pluginTaskParamsSchema,
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
buildPluginSystemPromptContributions,
|
|
23
23
|
buildSystemPrompt,
|
|
24
24
|
buildTurnContextPrompt,
|
|
25
|
-
escapeXml,
|
|
26
25
|
getAgentTurnSessionRecord,
|
|
27
26
|
loadConnectedMcpProviders,
|
|
28
27
|
recordAuthorizationRequested,
|
|
@@ -31,7 +30,7 @@ import {
|
|
|
31
30
|
recordSubagentStarted,
|
|
32
31
|
recordToolExecutionStarted,
|
|
33
32
|
upsertAgentTurnSessionRecord
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GY7L6VCT.js";
|
|
35
34
|
import {
|
|
36
35
|
createPluginEmbedder,
|
|
37
36
|
createPluginHookRunner,
|
|
@@ -42,14 +41,14 @@ import {
|
|
|
42
41
|
getPlugins,
|
|
43
42
|
getSlackToolContext,
|
|
44
43
|
resolveChannelCapabilities
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-UVNV67EC.js";
|
|
46
45
|
import {
|
|
47
46
|
createPluginLogger,
|
|
48
47
|
createPluginState
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-MTE5NRPJ.js";
|
|
50
49
|
import {
|
|
51
50
|
getDb
|
|
52
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QTTTRBNB.js";
|
|
53
52
|
import {
|
|
54
53
|
SANDBOX_DATA_ROOT,
|
|
55
54
|
SANDBOX_SKILLS_ROOT,
|
|
@@ -60,7 +59,7 @@ import {
|
|
|
60
59
|
import {
|
|
61
60
|
acquireActiveLock,
|
|
62
61
|
getStateAdapter
|
|
63
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RUB77TGS.js";
|
|
64
63
|
import {
|
|
65
64
|
SlackActionError,
|
|
66
65
|
downloadPrivateSlackFile,
|
|
@@ -71,7 +70,7 @@ import {
|
|
|
71
70
|
normalizeSlackConversationId,
|
|
72
71
|
parseDestination,
|
|
73
72
|
withSlackRetries
|
|
74
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-C2PSUWK3.js";
|
|
75
74
|
import {
|
|
76
75
|
GEN_AI_PROVIDER_NAME,
|
|
77
76
|
GEN_AI_SERVER_ADDRESS,
|
|
@@ -82,7 +81,9 @@ import {
|
|
|
82
81
|
completeObject,
|
|
83
82
|
completeText,
|
|
84
83
|
encodeNonImageAttachmentForPrompt,
|
|
84
|
+
escapeXml,
|
|
85
85
|
extractAssistantText,
|
|
86
|
+
extractCurrentInstructionBody,
|
|
86
87
|
getGatewayApiKey,
|
|
87
88
|
getPiGatewayApiKey,
|
|
88
89
|
getPiMessageRole,
|
|
@@ -98,13 +99,14 @@ import {
|
|
|
98
99
|
nextProviderRetry,
|
|
99
100
|
normalizeSlackEmojiName,
|
|
100
101
|
normalizeToolNameFromResult,
|
|
102
|
+
renderCurrentInstruction,
|
|
101
103
|
resolveGatewayModel,
|
|
102
104
|
stripRuntimeTurnContext,
|
|
103
105
|
summarizeMessageText,
|
|
104
106
|
toObservablePromptPart,
|
|
105
107
|
trimTrailingAssistantMessages,
|
|
106
108
|
upsertActiveSkill
|
|
107
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-BU2AWPEN.js";
|
|
108
110
|
import {
|
|
109
111
|
parseSlackThreadId,
|
|
110
112
|
resolveConversationPrivacy,
|
|
@@ -120,18 +122,18 @@ import {
|
|
|
120
122
|
findSkillByName,
|
|
121
123
|
loadSkillsByName,
|
|
122
124
|
parseSkillInvocation
|
|
123
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-64ACM6AP.js";
|
|
124
126
|
import {
|
|
125
127
|
CredentialUnavailableError,
|
|
126
128
|
credentialContextSchema,
|
|
127
129
|
pluginCatalogRuntime,
|
|
128
130
|
resolveAuthTokenPlaceholder,
|
|
129
131
|
resolvePluginCommandEnv
|
|
130
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-BQ3ITJA6.js";
|
|
131
133
|
import {
|
|
132
134
|
createRequester,
|
|
133
135
|
parseActorUserId
|
|
134
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-IXTBFABZ.js";
|
|
135
137
|
import {
|
|
136
138
|
listReferenceFiles
|
|
137
139
|
} from "./chunk-6APU57E6.js";
|
|
@@ -680,6 +682,7 @@ function markTurnFailed(args) {
|
|
|
680
682
|
// src/chat/respond.ts
|
|
681
683
|
import { Agent as Agent2 } from "@earendil-works/pi-agent-core";
|
|
682
684
|
import { THREAD_STATE_TTL_MS as THREAD_STATE_TTL_MS4 } from "chat";
|
|
685
|
+
import { z as z4 } from "zod";
|
|
683
686
|
|
|
684
687
|
// src/chat/capabilities/catalog.ts
|
|
685
688
|
var cachedCatalog;
|
|
@@ -10862,11 +10865,7 @@ function buildClassifierPrompt(args) {
|
|
|
10862
10865
|
);
|
|
10863
10866
|
}
|
|
10864
10867
|
}
|
|
10865
|
-
sections.push(
|
|
10866
|
-
"<current-instruction>",
|
|
10867
|
-
args.messageText.trim() || "[empty]",
|
|
10868
|
-
"</current-instruction>"
|
|
10869
|
-
);
|
|
10868
|
+
sections.push(renderCurrentInstruction(args.messageText.trim() || "[empty]"));
|
|
10870
10869
|
for (const block of args.currentTurnBlocks ?? []) {
|
|
10871
10870
|
const trimmed = block.trim();
|
|
10872
10871
|
if (!trimmed) {
|
|
@@ -12824,6 +12823,10 @@ function waitForAbortSettlement(promise, timeoutMs) {
|
|
|
12824
12823
|
}
|
|
12825
12824
|
var startupDiscoveryLogged = false;
|
|
12826
12825
|
var MAX_ROUTER_ATTACHMENT_PREVIEW_CHARS = 2e3;
|
|
12826
|
+
var legacyStoredTextPartSchema = z4.object({
|
|
12827
|
+
text: z4.string(),
|
|
12828
|
+
type: z4.literal("text")
|
|
12829
|
+
}).strict();
|
|
12827
12830
|
function buildOmittedImageAttachmentNotice(count) {
|
|
12828
12831
|
return [
|
|
12829
12832
|
"<omitted-image-attachments>",
|
|
@@ -12988,7 +12991,7 @@ function buildUserTurnInput(args) {
|
|
|
12988
12991
|
}
|
|
12989
12992
|
function buildSteeringPiMessage(message) {
|
|
12990
12993
|
const { userContentParts } = buildUserTurnInput({
|
|
12991
|
-
userTurnText: message.text,
|
|
12994
|
+
userTurnText: buildUserTurnText(message.text),
|
|
12992
12995
|
userAttachments: message.userAttachments,
|
|
12993
12996
|
omittedImageAttachmentCount: message.omittedImageAttachmentCount ?? 0
|
|
12994
12997
|
});
|
|
@@ -13006,11 +13009,45 @@ function withoutTrailingUncheckpointedUserPrompt(messages, userContentParts) {
|
|
|
13006
13009
|
if (lastMessage?.role !== "user") {
|
|
13007
13010
|
return messages;
|
|
13008
13011
|
}
|
|
13009
|
-
|
|
13012
|
+
const comparableLastMessage = stripRuntimeTurnContext([
|
|
13013
|
+
lastMessage
|
|
13014
|
+
])[0];
|
|
13015
|
+
if (!userPromptContentMatches(comparableLastMessage?.content, userContentParts)) {
|
|
13010
13016
|
return messages;
|
|
13011
13017
|
}
|
|
13012
13018
|
return messages.slice(0, -1);
|
|
13013
13019
|
}
|
|
13020
|
+
function userPromptContentMatches(storedContent, currentContent) {
|
|
13021
|
+
if (JSON.stringify(storedContent) === JSON.stringify(currentContent)) {
|
|
13022
|
+
return true;
|
|
13023
|
+
}
|
|
13024
|
+
if (!Array.isArray(storedContent)) {
|
|
13025
|
+
return false;
|
|
13026
|
+
}
|
|
13027
|
+
if (storedContent.length !== currentContent.length) {
|
|
13028
|
+
return false;
|
|
13029
|
+
}
|
|
13030
|
+
return storedContent.every((storedPart, index) => {
|
|
13031
|
+
const currentPart = currentContent[index];
|
|
13032
|
+
if (index === 0 && currentPart?.type === "text") {
|
|
13033
|
+
const legacyTextPart = legacyStoredTextPartSchema.safeParse(storedPart);
|
|
13034
|
+
if (legacyTextPart.success) {
|
|
13035
|
+
return legacyTextPartMatchesCurrentText(
|
|
13036
|
+
legacyTextPart.data.text,
|
|
13037
|
+
currentPart.text
|
|
13038
|
+
);
|
|
13039
|
+
}
|
|
13040
|
+
}
|
|
13041
|
+
return JSON.stringify(storedPart) === JSON.stringify(currentPart);
|
|
13042
|
+
});
|
|
13043
|
+
}
|
|
13044
|
+
function legacyTextPartMatchesCurrentText(storedText, currentText) {
|
|
13045
|
+
const storedInstructionBody = extractCurrentInstructionBody(storedText);
|
|
13046
|
+
if (storedInstructionBody !== void 0) {
|
|
13047
|
+
return renderCurrentInstruction(storedInstructionBody) === currentText;
|
|
13048
|
+
}
|
|
13049
|
+
return renderCurrentInstruction(storedText) === currentText;
|
|
13050
|
+
}
|
|
13014
13051
|
async function generateAssistantReply(messageText2, context) {
|
|
13015
13052
|
const conversationPrivacy = resolveConversationPrivacy({
|
|
13016
13053
|
channelId: context.correlation?.channelId,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseDestination,
|
|
3
3
|
sameDestination
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C2PSUWK3.js";
|
|
5
5
|
import {
|
|
6
6
|
getChatConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BU2AWPEN.js";
|
|
8
8
|
import {
|
|
9
9
|
parseStoredSlackRequester
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IXTBFABZ.js";
|
|
11
11
|
|
|
12
12
|
// src/chat/conversations/sql/store.ts
|
|
13
13
|
import { randomUUID } from "crypto";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStateAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RUB77TGS.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeSlackConversationId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C2PSUWK3.js";
|
|
7
7
|
import {
|
|
8
8
|
parseSlackThreadId
|
|
9
9
|
} from "./chunk-DR75T7J3.js";
|
|
10
10
|
import {
|
|
11
11
|
parseStoredSlackRequester
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IXTBFABZ.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
toOptionalNumber
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPluginLogger,
|
|
3
3
|
createPluginState
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MTE5NRPJ.js";
|
|
5
5
|
import {
|
|
6
6
|
getDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QTTTRBNB.js";
|
|
8
8
|
import {
|
|
9
9
|
SANDBOX_WORKSPACE_ROOT
|
|
10
10
|
} from "./chunk-G3E7SCME.js";
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
isConversationScopedChannel,
|
|
14
14
|
isDmChannel,
|
|
15
15
|
normalizeSlackConversationId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C2PSUWK3.js";
|
|
17
17
|
import {
|
|
18
18
|
botConfig,
|
|
19
19
|
completeObject,
|
|
20
20
|
embedTexts
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BU2AWPEN.js";
|
|
22
22
|
import {
|
|
23
23
|
isActorUserId,
|
|
24
24
|
parseActorUserId
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IXTBFABZ.js";
|
|
26
26
|
import {
|
|
27
27
|
logInfo,
|
|
28
28
|
logWarn
|
package/dist/cli/chat.js
CHANGED
|
@@ -130,10 +130,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
130
130
|
databaseModule
|
|
131
131
|
] = await Promise.all([
|
|
132
132
|
import("../plugins-PZMDS7AT.js"),
|
|
133
|
-
import("../agent-hooks-
|
|
134
|
-
import("../catalog-runtime-
|
|
135
|
-
import("../validation-
|
|
136
|
-
import("../db-
|
|
133
|
+
import("../agent-hooks-AV7CHLUO.js"),
|
|
134
|
+
import("../catalog-runtime-XOD7YPRS.js"),
|
|
135
|
+
import("../validation-MBNJKWPQ.js"),
|
|
136
|
+
import("../db-S3HYBLUS.js")
|
|
137
137
|
]);
|
|
138
138
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
139
139
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -195,7 +195,7 @@ async function runPrompt(options, io, pluginSet) {
|
|
|
195
195
|
defaultStateAdapterForLocalChat();
|
|
196
196
|
await configureLocalChatPlugins(pluginSet);
|
|
197
197
|
const conversationId = newRunConversationId();
|
|
198
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
198
|
+
const { runLocalAgentTurn } = await import("../runner-IMQH6V2B.js");
|
|
199
199
|
const result = await runLocalAgentTurn(
|
|
200
200
|
{
|
|
201
201
|
conversationId,
|
|
@@ -219,7 +219,7 @@ async function runInteractive(io, pluginSet) {
|
|
|
219
219
|
defaultStateAdapterForLocalChat();
|
|
220
220
|
await configureLocalChatPlugins(pluginSet);
|
|
221
221
|
const conversationId = newRunConversationId();
|
|
222
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
222
|
+
const { runLocalAgentTurn } = await import("../runner-IMQH6V2B.js");
|
|
223
223
|
const rl = readline.createInterface({
|
|
224
224
|
input: io.input,
|
|
225
225
|
output: io.output,
|
package/dist/cli/check.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-64ACM6AP.js";
|
|
4
4
|
import {
|
|
5
5
|
parseInlinePluginManifest,
|
|
6
6
|
parsePluginManifest
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-BQ3ITJA6.js";
|
|
8
|
+
import "../chunk-IXTBFABZ.js";
|
|
9
9
|
import "../chunk-6APU57E6.js";
|
|
10
10
|
import "../chunk-KF7522P3.js";
|
|
11
11
|
import {
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-2TAIGJPQ.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -10,25 +10,25 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
setPlugins,
|
|
12
12
|
validatePlugins
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-UVNV67EC.js";
|
|
14
14
|
import {
|
|
15
15
|
createPluginLogger
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-MTE5NRPJ.js";
|
|
17
17
|
import {
|
|
18
18
|
getDb
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-QTTTRBNB.js";
|
|
20
20
|
import "../chunk-G3E7SCME.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-RUB77TGS.js";
|
|
22
|
+
import "../chunk-C2PSUWK3.js";
|
|
23
|
+
import "../chunk-BU2AWPEN.js";
|
|
24
24
|
import "../chunk-DR75T7J3.js";
|
|
25
25
|
import {
|
|
26
26
|
loadAppPluginSet
|
|
27
27
|
} from "../chunk-Y2CM7HXH.js";
|
|
28
28
|
import {
|
|
29
29
|
pluginCatalogRuntime
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-BQ3ITJA6.js";
|
|
31
|
+
import "../chunk-IXTBFABZ.js";
|
|
32
32
|
import "../chunk-6APU57E6.js";
|
|
33
33
|
import "../chunk-KF7522P3.js";
|
|
34
34
|
import "../chunk-FTMXFBDC.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveRuntimeDependencySnapshot
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-FYPO4K7C.js";
|
|
4
4
|
import "../chunk-G3E7SCME.js";
|
|
5
5
|
import {
|
|
6
6
|
disconnectStateAdapter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-RUB77TGS.js";
|
|
8
|
+
import "../chunk-BU2AWPEN.js";
|
|
9
9
|
import "../chunk-DR75T7J3.js";
|
|
10
10
|
import {
|
|
11
11
|
pluginCatalogRuntime
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-BQ3ITJA6.js";
|
|
13
|
+
import "../chunk-IXTBFABZ.js";
|
|
14
14
|
import "../chunk-6APU57E6.js";
|
|
15
15
|
import "../chunk-KF7522P3.js";
|
|
16
16
|
import "../chunk-FTMXFBDC.js";
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
recordConversationActivity,
|
|
5
5
|
recordConversationExecution,
|
|
6
6
|
requestConversationWork
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-EENOFKDN.js";
|
|
8
8
|
import {
|
|
9
9
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
10
10
|
coerceThreadConversationState
|
|
@@ -18,31 +18,31 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
createPluginLogger,
|
|
20
20
|
createPluginState
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-MTE5NRPJ.js";
|
|
22
22
|
import {
|
|
23
23
|
createJuniorSqlExecutor,
|
|
24
24
|
createSqlStore,
|
|
25
25
|
getDb
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-QTTTRBNB.js";
|
|
27
27
|
import {
|
|
28
28
|
disconnectStateAdapter,
|
|
29
29
|
getConnectedStateContext
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-RUB77TGS.js";
|
|
31
31
|
import {
|
|
32
32
|
parseDestination,
|
|
33
33
|
sameDestination
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-C2PSUWK3.js";
|
|
35
35
|
import {
|
|
36
36
|
getChatConfig
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-BU2AWPEN.js";
|
|
38
38
|
import "../chunk-DR75T7J3.js";
|
|
39
39
|
import {
|
|
40
40
|
loadAppPluginSet
|
|
41
41
|
} from "../chunk-Y2CM7HXH.js";
|
|
42
42
|
import {
|
|
43
43
|
pluginCatalogRuntime
|
|
44
|
-
} from "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
} from "../chunk-BQ3ITJA6.js";
|
|
45
|
+
import "../chunk-IXTBFABZ.js";
|
|
46
46
|
import "../chunk-6APU57E6.js";
|
|
47
47
|
import "../chunk-KF7522P3.js";
|
|
48
48
|
import {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
closeDb,
|
|
3
3
|
getConversationStore,
|
|
4
4
|
getDb
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-QTTTRBNB.js";
|
|
6
|
+
import "./chunk-C2PSUWK3.js";
|
|
7
|
+
import "./chunk-BU2AWPEN.js";
|
|
8
8
|
import "./chunk-DR75T7J3.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-IXTBFABZ.js";
|
|
10
10
|
import "./chunk-KF7522P3.js";
|
|
11
11
|
import "./chunk-FTMXFBDC.js";
|
|
12
12
|
import "./chunk-3DA7X2U3.js";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IngestResourceEventInput } from "@/chat/resource-events/ingest";
|
|
2
|
+
/** Normalize GitHub `issue_comment` webhooks for PR-level comments. */
|
|
3
|
+
export declare function normalizeGitHubIssueCommentEvent(deliveryId: string, body: unknown): IngestResourceEventInput | undefined;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IngestResourceEventInput } from "@/chat/resource-events/ingest";
|
|
2
|
+
/** Normalize GitHub `pull_request_review_comment` webhooks for inline PR comments. */
|
|
3
|
+
export declare function normalizeGitHubPullRequestReviewCommentEvent(deliveryId: string, body: unknown): IngestResourceEventInput | undefined;
|
package/dist/nitro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveConversationWorkQueueTopic
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ENEWQMRJ.js";
|
|
4
4
|
import {
|
|
5
5
|
PLUGIN_TASK_QUEUE_TOPIC
|
|
6
6
|
} from "./chunk-KNFROR7R.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
pluginCatalogConfigFromPluginSet,
|
|
9
9
|
pluginRuntimeRegistrationsFromPluginSet
|
|
10
10
|
} from "./chunk-SG5WAA7H.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-C2PSUWK3.js";
|
|
12
|
+
import "./chunk-BU2AWPEN.js";
|
|
13
13
|
import "./chunk-DR75T7J3.js";
|
|
14
14
|
import {
|
|
15
15
|
loadPluginSetFromModule,
|
package/dist/reporting.js
CHANGED
|
@@ -6,26 +6,28 @@ import {
|
|
|
6
6
|
getConversationDetails,
|
|
7
7
|
getConversationDetailsForIds,
|
|
8
8
|
resolveSlackConversationContextFromThreadId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SSUEWAVS.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSystemPrompt,
|
|
12
12
|
getAgentTurnSessionRecord,
|
|
13
13
|
listAgentTurnSessionSummariesForConversation,
|
|
14
14
|
loadActivityEntries
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GY7L6VCT.js";
|
|
16
16
|
import {
|
|
17
17
|
getPluginOperationalReports
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-UVNV67EC.js";
|
|
19
|
+
import "./chunk-MTE5NRPJ.js";
|
|
20
20
|
import {
|
|
21
21
|
getConversationStore
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QTTTRBNB.js";
|
|
23
23
|
import "./chunk-G3E7SCME.js";
|
|
24
24
|
import {
|
|
25
25
|
getStateAdapter
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import
|
|
26
|
+
} from "./chunk-RUB77TGS.js";
|
|
27
|
+
import "./chunk-C2PSUWK3.js";
|
|
28
|
+
import {
|
|
29
|
+
unwrapCurrentInstruction
|
|
30
|
+
} from "./chunk-BU2AWPEN.js";
|
|
29
31
|
import {
|
|
30
32
|
canExposeConversationPayload,
|
|
31
33
|
parseSlackThreadId,
|
|
@@ -33,13 +35,13 @@ import {
|
|
|
33
35
|
} from "./chunk-DR75T7J3.js";
|
|
34
36
|
import {
|
|
35
37
|
discoverSkills
|
|
36
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-64ACM6AP.js";
|
|
37
39
|
import {
|
|
38
40
|
pluginCatalogRuntime
|
|
39
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BQ3ITJA6.js";
|
|
40
42
|
import {
|
|
41
43
|
toStoredSlackRequester
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IXTBFABZ.js";
|
|
43
45
|
import {
|
|
44
46
|
homeDir
|
|
45
47
|
} from "./chunk-6APU57E6.js";
|
|
@@ -783,9 +785,10 @@ function recordField(value, names) {
|
|
|
783
785
|
}
|
|
784
786
|
return void 0;
|
|
785
787
|
}
|
|
786
|
-
function normalizeTranscriptPart(part) {
|
|
788
|
+
function normalizeTranscriptPart(part, options = {}) {
|
|
789
|
+
const displayText = (text) => options.unwrapCurrentTask ? unwrapCurrentInstruction(text) ?? text : text;
|
|
787
790
|
if (typeof part === "string") {
|
|
788
|
-
return textPart(part);
|
|
791
|
+
return textPart(displayText(part));
|
|
789
792
|
}
|
|
790
793
|
if (!isRecord(part)) {
|
|
791
794
|
return { type: "unknown", output: part };
|
|
@@ -794,7 +797,7 @@ function normalizeTranscriptPart(part) {
|
|
|
794
797
|
if (rawType === "text") {
|
|
795
798
|
const text = recordField(part, ["text", "content"]);
|
|
796
799
|
return textPart(
|
|
797
|
-
typeof text === "string" ? text : JSON.stringify(text) ?? ""
|
|
800
|
+
typeof text === "string" ? displayText(text) : JSON.stringify(text) ?? ""
|
|
798
801
|
);
|
|
799
802
|
}
|
|
800
803
|
if (rawType === "toolCall") {
|
|
@@ -851,7 +854,15 @@ function normalizeTranscriptMessage(message) {
|
|
|
851
854
|
return {
|
|
852
855
|
role,
|
|
853
856
|
...typeof record.timestamp === "number" ? { timestamp: record.timestamp } : {},
|
|
854
|
-
parts: role === "toolResult" ? [normalizeToolResultMessage(record)] : Array.isArray(content) ? content.map(
|
|
857
|
+
parts: role === "toolResult" ? [normalizeToolResultMessage(record)] : Array.isArray(content) ? content.map(
|
|
858
|
+
(part) => normalizeTranscriptPart(part, {
|
|
859
|
+
unwrapCurrentTask: role === "user"
|
|
860
|
+
})
|
|
861
|
+
) : [
|
|
862
|
+
normalizeTranscriptPart(content, {
|
|
863
|
+
unwrapCurrentTask: role === "user"
|
|
864
|
+
})
|
|
865
|
+
]
|
|
855
866
|
};
|
|
856
867
|
}
|
|
857
868
|
function transcriptRole(role) {
|
|
@@ -14,30 +14,30 @@ import {
|
|
|
14
14
|
startActiveTurn,
|
|
15
15
|
updateConversationStats,
|
|
16
16
|
upsertConversationMessage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MHEV3T2Y.js";
|
|
18
18
|
import {
|
|
19
19
|
coerceThreadConversationState
|
|
20
20
|
} from "./chunk-66NX7MNW.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FYPO4K7C.js";
|
|
22
22
|
import "./chunk-KNFROR7R.js";
|
|
23
23
|
import {
|
|
24
24
|
commitMessages,
|
|
25
25
|
loadProjection
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-GY7L6VCT.js";
|
|
27
|
+
import "./chunk-UVNV67EC.js";
|
|
28
|
+
import "./chunk-MTE5NRPJ.js";
|
|
29
|
+
import "./chunk-QTTTRBNB.js";
|
|
30
30
|
import "./chunk-G3E7SCME.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-RUB77TGS.js";
|
|
32
|
+
import "./chunk-C2PSUWK3.js";
|
|
33
33
|
import {
|
|
34
34
|
stripRuntimeTurnContext,
|
|
35
35
|
trimTrailingAssistantMessages
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BU2AWPEN.js";
|
|
37
37
|
import "./chunk-DR75T7J3.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-64ACM6AP.js";
|
|
39
|
+
import "./chunk-BQ3ITJA6.js";
|
|
40
|
+
import "./chunk-IXTBFABZ.js";
|
|
41
41
|
import "./chunk-6APU57E6.js";
|
|
42
42
|
import {
|
|
43
43
|
logException
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-2TAIGJPQ.js";
|
|
5
|
+
import "./chunk-BQ3ITJA6.js";
|
|
6
|
+
import "./chunk-IXTBFABZ.js";
|
|
7
7
|
import "./chunk-6APU57E6.js";
|
|
8
8
|
import "./chunk-KF7522P3.js";
|
|
9
9
|
import "./chunk-FTMXFBDC.js";
|