@sentry/junior 0.121.0 → 0.122.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-CQDGDBCP.js → agent-hooks-HJMLQLCB.js} +8 -8
- package/dist/api.js +14 -14
- package/dist/app.js +604 -997
- package/dist/{catalog-runtime-AD3YNTTM.js → catalog-runtime-CYPZUYJD.js} +5 -5
- package/dist/chat/agent/index.d.ts +19 -2
- package/dist/chat/agent/request.d.ts +8 -8
- package/dist/chat/agent/resume.d.ts +1 -3
- package/dist/chat/agent/retry-usage.d.ts +8 -0
- package/dist/chat/agent/skills.d.ts +0 -9
- package/dist/chat/conversations/messages.d.ts +7 -0
- package/dist/chat/conversations/projection.d.ts +16 -0
- package/dist/chat/logging.d.ts +46 -13
- package/dist/chat/runtime/processing-reaction.d.ts +2 -4
- package/dist/chat/runtime/slack-runtime.d.ts +2 -2
- package/dist/chat/services/assistant-reply.d.ts +16 -0
- package/dist/chat/services/empty-output-continuation.d.ts +20 -0
- package/dist/chat/services/turn-failure-response.d.ts +1 -3
- package/dist/chat/services/turn-result.d.ts +0 -5
- package/dist/chat/services/turn-session-record.d.ts +0 -11
- package/dist/chat/tool-support/zod-tool.d.ts +11 -6
- package/dist/chat/tools/execute-tool.d.ts +1 -33
- package/dist/chat/tools/execution/tool-error-handler.d.ts +2 -2
- package/dist/chat/tools/query-conversation-events.d.ts +3 -1
- package/dist/chat/tools/sandbox/bash.d.ts +1 -33
- package/dist/chat/tools/sandbox/edit-file.d.ts +1 -33
- package/dist/chat/tools/sandbox/find-files.d.ts +1 -33
- package/dist/chat/tools/sandbox/grep.d.ts +1 -33
- package/dist/chat/tools/sandbox/list-dir.d.ts +1 -33
- package/dist/chat/tools/sandbox/read-file.d.ts +1 -33
- package/dist/chat/tools/sandbox/write-file.d.ts +1 -33
- package/dist/{chunk-IDXLBKPS.js → chunk-2RFM7STT.js} +11 -22
- package/dist/{chunk-XDRGYDED.js → chunk-32FPGM2V.js} +1 -1
- package/dist/{chunk-JZ47AFSH.js → chunk-4SPRQJOW.js} +37 -45
- package/dist/{chunk-KLUMVJRQ.js → chunk-4TGVC42X.js} +133 -206
- package/dist/{chunk-UXQ5XSA2.js → chunk-BDE5RZVF.js} +2 -2
- package/dist/{chunk-ITMEXX5H.js → chunk-CYW4M6IV.js} +4 -4
- package/dist/{chunk-254MFDOF.js → chunk-DOB5RVMH.js} +2 -2
- package/dist/{chunk-TRECK7RV.js → chunk-E5SRLZQV.js} +14 -29
- package/dist/{chunk-LE77HHF3.js → chunk-GFTZKOTP.js} +1 -1
- package/dist/{chunk-ET2SDCNV.js → chunk-GN6WW7WR.js} +16 -31
- package/dist/{chunk-D2EMOH3N.js → chunk-ISQYBTPG.js} +3 -3
- package/dist/{chunk-IK4QSS5H.js → chunk-L2KJ2GNL.js} +1 -1
- package/dist/{chunk-VWBKDPMQ.js → chunk-NIJG6G6X.js} +472 -684
- package/dist/{chunk-Z2XXPUZG.js → chunk-NNGYYGX5.js} +2061 -2015
- package/dist/{chunk-WUP7NWMP.js → chunk-OKUZIXQM.js} +1 -1
- package/dist/{chunk-HDFGNU5E.js → chunk-S7G34U75.js} +3 -1
- package/dist/{chunk-UURFXX66.js → chunk-TZVZCIYL.js} +1 -1
- package/dist/{chunk-7HYV7KFM.js → chunk-USKP7IM2.js} +49 -92
- package/dist/{chunk-JYDIBXFY.js → chunk-V6XPIKYA.js} +13 -19
- package/dist/{chunk-3DBMANUI.js → chunk-VCC7XFX2.js} +22 -45
- package/dist/cli/chat.js +22 -22
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +11 -11
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-7HQT2SXQ.js → db-E6O2DXUQ.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-VHTUCNHK.js → oauth-callback-server-6SCPUFFD.js} +15 -15
- package/dist/{runner-3ONPZRED.js → runner-JFKCMVVY.js} +62 -51
- package/dist/{skills-WGAYGGPA.js → skills-RD66F2OB.js} +6 -6
- package/dist/{validation-ZIWNBG4D.js → validation-XVRNX6IU.js} +6 -6
- package/dist/version.js +1 -1
- package/package.json +8 -8
|
@@ -165,9 +165,11 @@ function toGenAiPayloadMetadata(payload) {
|
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
function toGenAiPayloadTraceAttributes(prefix, payload) {
|
|
168
|
+
const size = serializedLength(payload);
|
|
168
169
|
const attributes = {
|
|
169
170
|
[`${prefix}.type`]: payloadType(payload),
|
|
170
|
-
[`${prefix}.size_chars`]:
|
|
171
|
+
[`${prefix}.size_chars`]: size,
|
|
172
|
+
[`${prefix}.size`]: size
|
|
171
173
|
};
|
|
172
174
|
const keys = payloadKeys(payload);
|
|
173
175
|
if (keys) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DOB5RVMH.js";
|
|
4
4
|
import {
|
|
5
5
|
juniorConversationAnnotations,
|
|
6
6
|
juniorIdentities,
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
SANDBOX_WORKSPACE_ROOT,
|
|
11
11
|
getStateAdapter,
|
|
12
12
|
sleep
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TZVZCIYL.js";
|
|
14
14
|
import {
|
|
15
15
|
botConfig,
|
|
16
16
|
completeObject,
|
|
17
17
|
embedTexts,
|
|
18
18
|
getSlackBotToken,
|
|
19
19
|
standardModelId
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2RFM7STT.js";
|
|
21
21
|
import {
|
|
22
22
|
isActorUserId,
|
|
23
23
|
parseActorUserId
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
setSpanAttributes,
|
|
31
31
|
setSpanStatus,
|
|
32
32
|
withSpan
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4SPRQJOW.js";
|
|
34
34
|
import {
|
|
35
35
|
parseSlackChannelReferenceId,
|
|
36
36
|
parseSlackMessageTs,
|
|
@@ -109,29 +109,24 @@ async function listConversationAnnotations(db, conversationId) {
|
|
|
109
109
|
function createPluginLogger(plugin) {
|
|
110
110
|
return {
|
|
111
111
|
info(message, metadata) {
|
|
112
|
-
logInfo(
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
);
|
|
112
|
+
logInfo("plugin.log.info", {
|
|
113
|
+
"app.log.message": message,
|
|
114
|
+
"app.plugin.name": plugin,
|
|
115
|
+
...metadata
|
|
116
|
+
});
|
|
118
117
|
},
|
|
119
118
|
warn(message, metadata) {
|
|
120
|
-
logWarn(
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
);
|
|
119
|
+
logWarn("plugin.log.warn", {
|
|
120
|
+
"app.log.message": message,
|
|
121
|
+
"app.plugin.name": plugin,
|
|
122
|
+
...metadata
|
|
123
|
+
});
|
|
126
124
|
},
|
|
127
125
|
error(message, metadata) {
|
|
128
|
-
logException(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
{ "app.plugin.name": plugin, ...metadata },
|
|
133
|
-
message
|
|
134
|
-
);
|
|
126
|
+
logException(new Error(message), "plugin.log.error", {
|
|
127
|
+
"app.plugin.name": plugin,
|
|
128
|
+
...metadata
|
|
129
|
+
});
|
|
135
130
|
}
|
|
136
131
|
};
|
|
137
132
|
}
|
|
@@ -698,27 +693,17 @@ async function withSlackRetries(task, maxAttempts = 3, context = {}) {
|
|
|
698
693
|
...context.attributes ?? {}
|
|
699
694
|
};
|
|
700
695
|
if (!isRetryable || attempt >= maxAttempts || remainingDelayBudgetMs <= 0) {
|
|
701
|
-
logWarn(
|
|
702
|
-
|
|
703
|
-
{}
|
|
704
|
-
|
|
705
|
-
...baseLogAttributes,
|
|
706
|
-
...mapped.errorData ? { "app.slack.error_data": mapped.errorData } : {}
|
|
707
|
-
},
|
|
708
|
-
"Slack action failed"
|
|
709
|
-
);
|
|
696
|
+
logWarn("slack.action.failed", {
|
|
697
|
+
...baseLogAttributes,
|
|
698
|
+
...mapped.errorData ? { "app.slack.error_data": mapped.errorData } : {}
|
|
699
|
+
});
|
|
710
700
|
throw mapped;
|
|
711
701
|
}
|
|
712
|
-
logWarn(
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
"app.slack.retry_attempt": attempt,
|
|
718
|
-
"app.slack.retry_class": retryClass
|
|
719
|
-
},
|
|
720
|
-
"Retrying Slack action after transient failure"
|
|
721
|
-
);
|
|
702
|
+
logWarn("slack.action.retrying", {
|
|
703
|
+
...baseLogAttributes,
|
|
704
|
+
"app.slack.retry_attempt": attempt,
|
|
705
|
+
"app.slack.retry_class": retryClass
|
|
706
|
+
});
|
|
722
707
|
const retryAfterMs = retryClass === "rate_limited" && mapped.retryAfterSeconds && mapped.retryAfterSeconds > 0 ? mapped.retryAfterSeconds * 1e3 : void 0;
|
|
723
708
|
const backoffMs = Math.min(2e3, 250 * 2 ** (attempt - 1));
|
|
724
709
|
const delayMs = Math.min(
|
|
@@ -1105,16 +1090,11 @@ function toUserPromptContributionContext(args) {
|
|
|
1105
1090
|
};
|
|
1106
1091
|
}
|
|
1107
1092
|
function logInvalidPromptContributions(args) {
|
|
1108
|
-
logWarn(
|
|
1109
|
-
"
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
"app.plugin.name": args.pluginName,
|
|
1114
|
-
"app.plugin.validation_reason": "invalid_shape"
|
|
1115
|
-
},
|
|
1116
|
-
"Plugin prompt contribution result invalid"
|
|
1117
|
-
);
|
|
1093
|
+
logWarn("plugin.prompt.contribution_result.invalid", {
|
|
1094
|
+
"app.plugin.hook": args.hookName,
|
|
1095
|
+
"app.plugin.name": args.pluginName,
|
|
1096
|
+
"app.plugin.validation_reason": "invalid_shape"
|
|
1097
|
+
});
|
|
1118
1098
|
}
|
|
1119
1099
|
function validatePlugins(plugins) {
|
|
1120
1100
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -1189,28 +1169,18 @@ async function getPluginSystemPromptContributions(source) {
|
|
|
1189
1169
|
0
|
|
1190
1170
|
);
|
|
1191
1171
|
if (totalChars + pluginContributionChars > PLUGIN_PROMPT_CONTRIBUTION_TOTAL_MAX_CHARS) {
|
|
1192
|
-
logWarn(
|
|
1193
|
-
"
|
|
1194
|
-
|
|
1195
|
-
{
|
|
1196
|
-
"app.plugin.name": pluginName
|
|
1197
|
-
},
|
|
1198
|
-
"Plugin system prompt contributions exceeded budget"
|
|
1199
|
-
);
|
|
1172
|
+
logWarn("plugin.system_prompt.contribution_budget_exceeded", {
|
|
1173
|
+
"app.plugin.name": pluginName
|
|
1174
|
+
});
|
|
1200
1175
|
continue;
|
|
1201
1176
|
}
|
|
1202
1177
|
totalChars += pluginContributionChars;
|
|
1203
1178
|
contributions.push(...acceptedContributions);
|
|
1204
1179
|
} catch (error) {
|
|
1205
|
-
logWarn(
|
|
1206
|
-
"
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
"app.plugin.name": pluginName,
|
|
1210
|
-
"exception.message": safeErrorMessage(error)
|
|
1211
|
-
},
|
|
1212
|
-
"Plugin system prompt hook failed"
|
|
1213
|
-
);
|
|
1180
|
+
logWarn("plugin.system_prompt.hook.failed", {
|
|
1181
|
+
"app.plugin.name": pluginName,
|
|
1182
|
+
"exception.message": safeErrorMessage(error)
|
|
1183
|
+
});
|
|
1214
1184
|
}
|
|
1215
1185
|
}
|
|
1216
1186
|
return contributions;
|
|
@@ -1264,29 +1234,19 @@ async function getPluginUserPromptContributions(args) {
|
|
|
1264
1234
|
0
|
|
1265
1235
|
);
|
|
1266
1236
|
if (totalChars + pluginContributionChars > PLUGIN_PROMPT_CONTRIBUTION_TOTAL_MAX_CHARS || totalContextBytes + pluginContextBytes > PLUGIN_PROMPT_CONTEXT_TOTAL_MAX_BYTES) {
|
|
1267
|
-
logWarn(
|
|
1268
|
-
"
|
|
1269
|
-
|
|
1270
|
-
{
|
|
1271
|
-
"app.plugin.name": pluginName
|
|
1272
|
-
},
|
|
1273
|
-
"Plugin user prompt contributions exceeded budget"
|
|
1274
|
-
);
|
|
1237
|
+
logWarn("plugin.user_prompt.contribution_budget_exceeded", {
|
|
1238
|
+
"app.plugin.name": pluginName
|
|
1239
|
+
});
|
|
1275
1240
|
continue;
|
|
1276
1241
|
}
|
|
1277
1242
|
totalChars += pluginContributionChars;
|
|
1278
1243
|
totalContextBytes += pluginContextBytes;
|
|
1279
1244
|
contributions.push(...validContributions);
|
|
1280
1245
|
} catch (error) {
|
|
1281
|
-
logWarn(
|
|
1282
|
-
"
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
"app.plugin.name": pluginName,
|
|
1286
|
-
"exception.message": safeErrorMessage(error)
|
|
1287
|
-
},
|
|
1288
|
-
"Plugin user prompt hook failed"
|
|
1289
|
-
);
|
|
1246
|
+
logWarn("plugin.user_prompt.hook.failed", {
|
|
1247
|
+
"app.plugin.name": pluginName,
|
|
1248
|
+
"exception.message": safeErrorMessage(error)
|
|
1249
|
+
});
|
|
1290
1250
|
}
|
|
1291
1251
|
}
|
|
1292
1252
|
return contributions;
|
|
@@ -1855,12 +1815,9 @@ function createPluginHookRunner(input = {}) {
|
|
|
1855
1815
|
if (!hook) {
|
|
1856
1816
|
continue;
|
|
1857
1817
|
}
|
|
1858
|
-
logInfo(
|
|
1859
|
-
"
|
|
1860
|
-
|
|
1861
|
-
{ "app.plugin.name": pluginName },
|
|
1862
|
-
"Running agent plugin sandbox prepare hook"
|
|
1863
|
-
);
|
|
1818
|
+
logInfo("agent.plugin.sandbox_preparation.started", {
|
|
1819
|
+
"app.plugin.name": pluginName
|
|
1820
|
+
});
|
|
1864
1821
|
await hook({
|
|
1865
1822
|
...basePluginContext(plugin),
|
|
1866
1823
|
actor: input.actor,
|
|
@@ -22,28 +22,28 @@ import {
|
|
|
22
22
|
persistThreadStateById,
|
|
23
23
|
stripRuntimeTurnContext,
|
|
24
24
|
updateConversationStats
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NNGYYGX5.js";
|
|
26
26
|
import {
|
|
27
27
|
createPluginEmbedder,
|
|
28
28
|
createPluginLogger,
|
|
29
29
|
createPluginModel,
|
|
30
30
|
createPluginState,
|
|
31
31
|
getPlugins
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-USKP7IM2.js";
|
|
33
33
|
import {
|
|
34
34
|
getDb
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-DOB5RVMH.js";
|
|
36
36
|
import {
|
|
37
37
|
getStateAdapter
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TZVZCIYL.js";
|
|
39
39
|
import {
|
|
40
40
|
ProviderError,
|
|
41
41
|
getProviderErrorAttributes,
|
|
42
42
|
getProviderErrorUserMessage
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2RFM7STT.js";
|
|
44
44
|
import {
|
|
45
45
|
buildTurnFailureResponse
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4SPRQJOW.js";
|
|
47
47
|
import {
|
|
48
48
|
parseSlackMessageTs
|
|
49
49
|
} from "./chunk-F3B2YJ76.js";
|
|
@@ -413,7 +413,7 @@ function getExecutionFailureReason(reply) {
|
|
|
413
413
|
function getFailureCapture(reply) {
|
|
414
414
|
if (reply.diagnostics.outcome === "provider_error") {
|
|
415
415
|
return {
|
|
416
|
-
eventName: "
|
|
416
|
+
eventName: "agent.turn.provider_error",
|
|
417
417
|
error: reply.diagnostics.providerError ?? new Error(
|
|
418
418
|
reply.diagnostics.errorMessage ?? "Provider error without explicit message"
|
|
419
419
|
),
|
|
@@ -423,7 +423,7 @@ function getFailureCapture(reply) {
|
|
|
423
423
|
}
|
|
424
424
|
const failureReason = getExecutionFailureReason(reply);
|
|
425
425
|
return {
|
|
426
|
-
eventName: "
|
|
426
|
+
eventName: "agent.turn.execution.failed",
|
|
427
427
|
error: new Error(`Agent turn execution failure: ${failureReason}`),
|
|
428
428
|
attributes: {
|
|
429
429
|
"app.ai.execution_failure_reason": failureReason
|
|
@@ -454,17 +454,11 @@ function finalizeFailedTurnReplyWithEvent(args) {
|
|
|
454
454
|
}
|
|
455
455
|
const capture = getFailureCapture(args.reply);
|
|
456
456
|
const eventId = requireTurnFailureEventId(
|
|
457
|
-
args.logException(
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
...getAgentTurnDiagnosticsAttributes(args.reply),
|
|
463
|
-
...args.attributes,
|
|
464
|
-
...capture.attributes
|
|
465
|
-
},
|
|
466
|
-
capture.body
|
|
467
|
-
),
|
|
457
|
+
args.logException(capture.error, capture.eventName, {
|
|
458
|
+
...getAgentTurnDiagnosticsAttributes(args.reply),
|
|
459
|
+
...args.attributes,
|
|
460
|
+
...capture.attributes
|
|
461
|
+
}),
|
|
468
462
|
capture.eventName
|
|
469
463
|
);
|
|
470
464
|
const providerPartialText = args.reply.diagnostics.outcome === "provider_error" && args.reply.diagnostics.assistantMessageCount > 0 ? args.reply.text.trim() : "";
|
|
@@ -6,29 +6,29 @@ import {
|
|
|
6
6
|
isDmChannel,
|
|
7
7
|
normalizeSlackConversationId,
|
|
8
8
|
withSlackRetries
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-USKP7IM2.js";
|
|
10
10
|
import {
|
|
11
11
|
getDb,
|
|
12
12
|
parseDestination
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DOB5RVMH.js";
|
|
14
14
|
import {
|
|
15
15
|
acquireActiveLock,
|
|
16
16
|
getStateAdapter,
|
|
17
17
|
sleep
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TZVZCIYL.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeSlackEmojiName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2RFM7STT.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OKUZIXQM.js";
|
|
25
25
|
import {
|
|
26
26
|
fetchWithBoundedOAuthErrorBodies
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GN6WW7WR.js";
|
|
28
28
|
import {
|
|
29
29
|
logInfo,
|
|
30
30
|
logWarn
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4SPRQJOW.js";
|
|
32
32
|
import {
|
|
33
33
|
isRecord
|
|
34
34
|
} from "./chunk-OB42YVAE.js";
|
|
@@ -739,12 +739,9 @@ async function deliverPrivateMessage(input) {
|
|
|
739
739
|
try {
|
|
740
740
|
client = getSlackClient();
|
|
741
741
|
} catch {
|
|
742
|
-
logWarn(
|
|
743
|
-
"
|
|
744
|
-
|
|
745
|
-
{ "app.reason": "missing_bot_token" },
|
|
746
|
-
"Skipped private message delivery \u2014 no SLACK_BOT_TOKEN"
|
|
747
|
-
);
|
|
742
|
+
logWarn("oauth.private_delivery.skipped", {
|
|
743
|
+
"app.reason": "missing_bot_token"
|
|
744
|
+
});
|
|
748
745
|
return false;
|
|
749
746
|
}
|
|
750
747
|
if (input.channelId) {
|
|
@@ -765,15 +762,10 @@ async function deliverPrivateMessage(input) {
|
|
|
765
762
|
}
|
|
766
763
|
return "in_context";
|
|
767
764
|
} catch (error) {
|
|
768
|
-
logWarn(
|
|
769
|
-
"
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
"app.slack.error": error instanceof Error ? error.message : String(error),
|
|
773
|
-
"app.slack.channel": input.channelId
|
|
774
|
-
},
|
|
775
|
-
"Private message delivery failed, falling back to DM"
|
|
776
|
-
);
|
|
765
|
+
logWarn("oauth.private_delivery.failed", {
|
|
766
|
+
"app.slack.error": error instanceof Error ? error.message : String(error),
|
|
767
|
+
"app.slack.channel": input.channelId
|
|
768
|
+
});
|
|
777
769
|
}
|
|
778
770
|
}
|
|
779
771
|
try {
|
|
@@ -786,25 +778,15 @@ async function deliverPrivateMessage(input) {
|
|
|
786
778
|
}
|
|
787
779
|
)).channel?.id;
|
|
788
780
|
if (!dmChannelId) {
|
|
789
|
-
logWarn(
|
|
790
|
-
"oauth_dm_fallback_failed",
|
|
791
|
-
{},
|
|
792
|
-
{ "app.reason": "no_dm_channel_id" },
|
|
793
|
-
"conversations.open returned no channel ID"
|
|
794
|
-
);
|
|
781
|
+
logWarn("oauth.dm.fallback.failed", { "app.reason": "no_dm_channel_id" });
|
|
795
782
|
return false;
|
|
796
783
|
}
|
|
797
784
|
await postSlackMessage({ channelId: dmChannelId, text: input.text });
|
|
798
785
|
return "fallback_dm";
|
|
799
786
|
} catch (error) {
|
|
800
|
-
logWarn(
|
|
801
|
-
"
|
|
802
|
-
|
|
803
|
-
{
|
|
804
|
-
"app.slack.error": error instanceof Error ? error.message : String(error)
|
|
805
|
-
},
|
|
806
|
-
"DM fallback delivery failed"
|
|
807
|
-
);
|
|
787
|
+
logWarn("oauth.dm.fallback.failed", {
|
|
788
|
+
"app.slack.error": error instanceof Error ? error.message : String(error)
|
|
789
|
+
});
|
|
808
790
|
return false;
|
|
809
791
|
}
|
|
810
792
|
}
|
|
@@ -873,15 +855,10 @@ async function startOAuthFlow(provider, input) {
|
|
|
873
855
|
)) {
|
|
874
856
|
authorizeParams.set(key, value);
|
|
875
857
|
}
|
|
876
|
-
logInfo(
|
|
877
|
-
"
|
|
878
|
-
{}
|
|
879
|
-
|
|
880
|
-
"app.credential.provider": provider,
|
|
881
|
-
...input.activeSkillName ? { "app.skill.name": input.activeSkillName } : {}
|
|
882
|
-
},
|
|
883
|
-
"Initiated OAuth authorization code flow"
|
|
884
|
-
);
|
|
858
|
+
logInfo("jr_rpc.oauth.started", {
|
|
859
|
+
"app.credential.provider": provider,
|
|
860
|
+
...input.activeSkillName ? { "app.skill.name": input.activeSkillName } : {}
|
|
861
|
+
});
|
|
885
862
|
const authorizationUrl = `${providerConfig.authorizeEndpoint}?${authorizeParams.toString()}`;
|
|
886
863
|
const authorizationRequest = {
|
|
887
864
|
authorizationUrl,
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAgentRunner,
|
|
3
3
|
executeAgentRun
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NIJG6G6X.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-VCC7XFX2.js";
|
|
7
|
+
import "../chunk-NNGYYGX5.js";
|
|
8
8
|
import "../chunk-HDSDCEPK.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-CYW4M6IV.js";
|
|
10
|
+
import "../chunk-32FPGM2V.js";
|
|
11
11
|
import "../chunk-MU6HHZEN.js";
|
|
12
12
|
import "../chunk-PDO5BLNM.js";
|
|
13
13
|
import "../chunk-UIE3R5XU.js";
|
|
14
14
|
import {
|
|
15
15
|
loadAppPluginSet
|
|
16
16
|
} from "../chunk-Y2CM7HXH.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-USKP7IM2.js";
|
|
18
|
+
import "../chunk-DOB5RVMH.js";
|
|
19
19
|
import "../chunk-GCGJGSQL.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-TZVZCIYL.js";
|
|
21
|
+
import "../chunk-2RFM7STT.js";
|
|
22
22
|
import "../chunk-VFUK3X5B.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-S7G34U75.js";
|
|
24
|
+
import "../chunk-E5SRLZQV.js";
|
|
25
|
+
import "../chunk-OKUZIXQM.js";
|
|
26
|
+
import "../chunk-GN6WW7WR.js";
|
|
27
27
|
import "../chunk-W3U3YQYI.js";
|
|
28
28
|
import "../chunk-HZF5P5UN.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-4SPRQJOW.js";
|
|
30
30
|
import "../chunk-OB42YVAE.js";
|
|
31
31
|
import "../chunk-F3B2YJ76.js";
|
|
32
32
|
import "../chunk-6GWA276C.js";
|
|
33
33
|
import "../chunk-OOUNJNMR.js";
|
|
34
34
|
import "../chunk-H4HBKISO.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-L2KJ2GNL.js";
|
|
36
|
+
import "../chunk-ISQYBTPG.js";
|
|
37
37
|
import "../chunk-MLKGABMK.js";
|
|
38
38
|
|
|
39
39
|
// src/cli/chat.ts
|
|
@@ -156,10 +156,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
156
156
|
databaseModule
|
|
157
157
|
] = await Promise.all([
|
|
158
158
|
import("../plugins-HW4VWW6G.js"),
|
|
159
|
-
import("../agent-hooks-
|
|
160
|
-
import("../catalog-runtime-
|
|
161
|
-
import("../validation-
|
|
162
|
-
import("../db-
|
|
159
|
+
import("../agent-hooks-HJMLQLCB.js"),
|
|
160
|
+
import("../catalog-runtime-CYPZUYJD.js"),
|
|
161
|
+
import("../validation-XVRNX6IU.js"),
|
|
162
|
+
import("../db-E6O2DXUQ.js")
|
|
163
163
|
]);
|
|
164
164
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
165
165
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -223,8 +223,8 @@ function localDevServerUrl() {
|
|
|
223
223
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
224
224
|
defaultStateAdapterForLocalChat();
|
|
225
225
|
await configureLocalChatPlugins(pluginSet);
|
|
226
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
227
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
226
|
+
const { runLocalAgentTurn } = await import("../runner-JFKCMVVY.js");
|
|
227
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-6SCPUFFD.js");
|
|
228
228
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
229
229
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-CDFAP67O.js");
|
|
230
230
|
const agentRunner = createAgentRunner(executeAgentRun);
|
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-E5SRLZQV.js";
|
|
4
|
+
import "../chunk-OKUZIXQM.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-GN6WW7WR.js";
|
|
9
9
|
import "../chunk-W3U3YQYI.js";
|
|
10
10
|
import "../chunk-HZF5P5UN.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-4SPRQJOW.js";
|
|
12
12
|
import "../chunk-OB42YVAE.js";
|
|
13
13
|
import "../chunk-F3B2YJ76.js";
|
|
14
14
|
import "../chunk-6GWA276C.js";
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
19
19
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
20
20
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-L2KJ2GNL.js";
|
|
22
|
+
import "../chunk-ISQYBTPG.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/check.ts
|
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-GFTZKOTP.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -14,29 +14,29 @@ import {
|
|
|
14
14
|
createPluginLogger,
|
|
15
15
|
setPlugins,
|
|
16
16
|
validatePlugins
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-USKP7IM2.js";
|
|
18
18
|
import {
|
|
19
19
|
getDb
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-DOB5RVMH.js";
|
|
21
21
|
import "../chunk-GCGJGSQL.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-TZVZCIYL.js";
|
|
23
|
+
import "../chunk-2RFM7STT.js";
|
|
24
24
|
import "../chunk-VFUK3X5B.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-S7G34U75.js";
|
|
26
26
|
import {
|
|
27
27
|
pluginCatalogRuntime
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-OKUZIXQM.js";
|
|
29
|
+
import "../chunk-GN6WW7WR.js";
|
|
30
30
|
import "../chunk-W3U3YQYI.js";
|
|
31
31
|
import "../chunk-HZF5P5UN.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-4SPRQJOW.js";
|
|
33
33
|
import "../chunk-OB42YVAE.js";
|
|
34
34
|
import "../chunk-F3B2YJ76.js";
|
|
35
35
|
import "../chunk-6GWA276C.js";
|
|
36
36
|
import "../chunk-OOUNJNMR.js";
|
|
37
37
|
import "../chunk-H4HBKISO.js";
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-L2KJ2GNL.js";
|
|
39
|
+
import "../chunk-ISQYBTPG.js";
|
|
40
40
|
import "../chunk-MLKGABMK.js";
|
|
41
41
|
|
|
42
42
|
// src/cli/plugins.ts
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
resolve
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CYW4M6IV.js";
|
|
5
5
|
import {
|
|
6
6
|
disconnectStateAdapter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-TZVZCIYL.js";
|
|
8
|
+
import "../chunk-2RFM7STT.js";
|
|
9
|
+
import "../chunk-S7G34U75.js";
|
|
10
10
|
import {
|
|
11
11
|
pluginCatalogRuntime
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-OKUZIXQM.js";
|
|
13
|
+
import "../chunk-GN6WW7WR.js";
|
|
14
14
|
import "../chunk-W3U3YQYI.js";
|
|
15
15
|
import "../chunk-HZF5P5UN.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-4SPRQJOW.js";
|
|
17
17
|
import "../chunk-OB42YVAE.js";
|
|
18
18
|
import "../chunk-F3B2YJ76.js";
|
|
19
19
|
import "../chunk-6GWA276C.js";
|
|
20
20
|
import "../chunk-OOUNJNMR.js";
|
|
21
21
|
import "../chunk-H4HBKISO.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-L2KJ2GNL.js";
|
|
23
|
+
import "../chunk-ISQYBTPG.js";
|
|
24
24
|
import "../chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/snapshot-create.ts
|