@sentry/junior 0.80.0 → 0.81.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/app.js
CHANGED
|
@@ -882,6 +882,17 @@ function parsePrefixFlag(extras) {
|
|
|
882
882
|
error: "jr-rpc config list accepts optional --prefix <value>\n"
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
|
+
function buildUnknownKeyWarning(key) {
|
|
886
|
+
const knownKeys = pluginCatalogRuntime.getProviders().flatMap((plugin) => [...plugin.manifest.configKeys]);
|
|
887
|
+
if (knownKeys.includes(key)) {
|
|
888
|
+
return "";
|
|
889
|
+
}
|
|
890
|
+
const prefix = key.includes(".") ? key.slice(0, key.indexOf(".") + 1) : "";
|
|
891
|
+
const suggestions = prefix ? knownKeys.filter((k) => k.startsWith(prefix)) : knownKeys;
|
|
892
|
+
const hint = suggestions.length > 0 ? `Known keys with prefix "${prefix}": ${suggestions.join(", ")}` : `Known config keys: ${knownKeys.join(", ")}`;
|
|
893
|
+
return `Warning: "${key}" is not a recognized config key. ${hint}
|
|
894
|
+
`;
|
|
895
|
+
}
|
|
885
896
|
async function handleConfigCommand(args, deps) {
|
|
886
897
|
const usage = [
|
|
887
898
|
"jr-rpc config get <key>",
|
|
@@ -960,6 +971,7 @@ ${usage}
|
|
|
960
971
|
});
|
|
961
972
|
}
|
|
962
973
|
}
|
|
974
|
+
const unknownKeyWarning = buildUnknownKeyWarning(key);
|
|
963
975
|
try {
|
|
964
976
|
const entry = await configuration.set({
|
|
965
977
|
key,
|
|
@@ -989,6 +1001,7 @@ ${usage}
|
|
|
989
1001
|
updatedBy: entry.updatedBy,
|
|
990
1002
|
source: entry.source
|
|
991
1003
|
},
|
|
1004
|
+
stderr: unknownKeyWarning,
|
|
992
1005
|
exitCode: 0
|
|
993
1006
|
});
|
|
994
1007
|
} catch (error) {
|
|
@@ -4191,7 +4204,7 @@ function createOperationKey(toolName, input) {
|
|
|
4191
4204
|
// src/chat/tools/slack/channel-post-message.ts
|
|
4192
4205
|
function createSlackChannelPostMessageTool(context, state) {
|
|
4193
4206
|
return tool({
|
|
4194
|
-
description: "Post a message
|
|
4207
|
+
description: "Post a new top-level message to the current Slack channel. Use only when the user explicitly asks to post/send/share/say something to the channel. Do not use for thread replies, inline @mentions, or pinging mentioned users.",
|
|
4195
4208
|
inputSchema: Type14.Object({
|
|
4196
4209
|
text: Type14.String({
|
|
4197
4210
|
minLength: 1,
|
package/dist/cli/chat.js
CHANGED
|
@@ -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-LNBN7BIN.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-LNBN7BIN.js");
|
|
223
223
|
const rl = readline.createInterface({
|
|
224
224
|
input: io.input,
|
|
225
225
|
output: io.output,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"pg": "^8.16.3",
|
|
71
71
|
"yaml": "^2.9.0",
|
|
72
72
|
"zod": "^4.4.3",
|
|
73
|
-
"@sentry/junior-plugin-api": "0.
|
|
73
|
+
"@sentry/junior-plugin-api": "0.81.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@emnapi/core": "^1.10.0",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"vercel": "^54.4.0",
|
|
88
88
|
"vitest": "^4.1.7",
|
|
89
89
|
"@sentry/junior-testing": "0.0.0",
|
|
90
|
-
"@sentry/junior-
|
|
91
|
-
"@sentry/junior-
|
|
90
|
+
"@sentry/junior-memory": "0.81.0",
|
|
91
|
+
"@sentry/junior-scheduler": "0.81.0"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|