@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
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-PE44LDDQ.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeSlackConversationId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-USKP7IM2.js";
|
|
7
7
|
import {
|
|
8
8
|
parseSlackThreadId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S7G34U75.js";
|
|
10
10
|
|
|
11
11
|
// src/handlers/health.ts
|
|
12
12
|
function readHealthReport() {
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
SANDBOX_WORKSPACE_ROOT,
|
|
3
3
|
getStateAdapter,
|
|
4
4
|
sleep
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TZVZCIYL.js";
|
|
6
6
|
import {
|
|
7
7
|
toOptionalTrimmed
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2RFM7STT.js";
|
|
9
9
|
import {
|
|
10
10
|
pluginCatalogRuntime
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OKUZIXQM.js";
|
|
12
12
|
import {
|
|
13
13
|
setSpanAttributes,
|
|
14
14
|
setSpanStatus,
|
|
15
15
|
withSpan
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4SPRQJOW.js";
|
|
17
17
|
|
|
18
18
|
// src/chat/sandbox/snapshot/profile.ts
|
|
19
19
|
import { createHash } from "crypto";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
TURN_REASONING_LEVELS,
|
|
10
10
|
getChatConfig,
|
|
11
11
|
modelProfileSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2RFM7STT.js";
|
|
13
13
|
import {
|
|
14
14
|
juniorDestinations
|
|
15
15
|
} from "./chunk-VFUK3X5B.js";
|
|
16
16
|
import {
|
|
17
17
|
normalizeIdentityEmail
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4SPRQJOW.js";
|
|
19
19
|
import {
|
|
20
20
|
parseSlackChannelReferenceId,
|
|
21
21
|
parseSlackTeamId
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OKUZIXQM.js";
|
|
4
4
|
import {
|
|
5
5
|
logWarn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4SPRQJOW.js";
|
|
7
7
|
import {
|
|
8
8
|
skillRoots
|
|
9
9
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -223,15 +223,10 @@ async function readSkillDirectory(skillDir) {
|
|
|
223
223
|
const raw = await fs.readFile(skillFile, "utf8");
|
|
224
224
|
const parsed = parseSkillFile(raw, path.basename(skillDir));
|
|
225
225
|
if (!parsed.ok) {
|
|
226
|
-
logWarn(
|
|
227
|
-
"
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
"file.path": skillDir,
|
|
231
|
-
"exception.message": parsed.error
|
|
232
|
-
},
|
|
233
|
-
"Invalid skill frontmatter"
|
|
234
|
-
);
|
|
226
|
+
logWarn("skill.frontmatter.invalid", {
|
|
227
|
+
"file.path": skillDir,
|
|
228
|
+
"exception.message": parsed.error
|
|
229
|
+
});
|
|
235
230
|
return null;
|
|
236
231
|
}
|
|
237
232
|
const { name, description, allowedTools, disableModelInvocation } = parsed.skill;
|
|
@@ -245,15 +240,10 @@ async function readSkillDirectory(skillDir) {
|
|
|
245
240
|
...disableModelInvocation ? { disableModelInvocation } : {}
|
|
246
241
|
};
|
|
247
242
|
} catch (error) {
|
|
248
|
-
logWarn(
|
|
249
|
-
"
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
"file.path": skillDir,
|
|
253
|
-
"exception.message": error instanceof Error ? error.message : String(error)
|
|
254
|
-
},
|
|
255
|
-
"Failed to read skill directory"
|
|
256
|
-
);
|
|
243
|
+
logWarn("skill.directory.read.failed", {
|
|
244
|
+
"file.path": skillDir,
|
|
245
|
+
"exception.message": error instanceof Error ? error.message : String(error)
|
|
246
|
+
});
|
|
257
247
|
return null;
|
|
258
248
|
}
|
|
259
249
|
}
|
|
@@ -281,15 +271,10 @@ async function discoverSkills(options) {
|
|
|
281
271
|
}
|
|
282
272
|
}
|
|
283
273
|
} catch (error) {
|
|
284
|
-
logWarn(
|
|
285
|
-
"
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
"file.directory": root,
|
|
289
|
-
"exception.message": error instanceof Error ? error.message : String(error)
|
|
290
|
-
},
|
|
291
|
-
"Failed to read skill root"
|
|
292
|
-
);
|
|
274
|
+
logWarn("skill.root.read.failed", {
|
|
275
|
+
"file.directory": root,
|
|
276
|
+
"exception.message": error instanceof Error ? error.message : String(error)
|
|
277
|
+
});
|
|
293
278
|
}
|
|
294
279
|
}
|
|
295
280
|
const sorted = discovered.sort((a, b) => a.name.localeCompare(b.name));
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
logInfo,
|
|
6
6
|
logWarn,
|
|
7
7
|
setSpanAttributes
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4SPRQJOW.js";
|
|
9
9
|
import {
|
|
10
10
|
discoverInstalledPluginPackageContent,
|
|
11
11
|
normalizePluginPackageNames
|
|
@@ -1837,15 +1837,10 @@ function buildLoadedPluginState(source, config) {
|
|
|
1837
1837
|
try {
|
|
1838
1838
|
rootStat = statSync(pluginsRoot);
|
|
1839
1839
|
} catch (error) {
|
|
1840
|
-
logWarn(
|
|
1841
|
-
"
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
"file.directory": pluginsRoot,
|
|
1845
|
-
"exception.message": error instanceof Error ? error.message : String(error)
|
|
1846
|
-
},
|
|
1847
|
-
"Failed to read plugin root"
|
|
1848
|
-
);
|
|
1840
|
+
logWarn("plugin.root.read.failed", {
|
|
1841
|
+
"file.directory": pluginsRoot,
|
|
1842
|
+
"exception.message": error instanceof Error ? error.message : String(error)
|
|
1843
|
+
});
|
|
1849
1844
|
continue;
|
|
1850
1845
|
}
|
|
1851
1846
|
if (rootStat.isDirectory()) {
|
|
@@ -1865,15 +1860,10 @@ function buildLoadedPluginState(source, config) {
|
|
|
1865
1860
|
try {
|
|
1866
1861
|
entries = readdirSync(pluginsRoot);
|
|
1867
1862
|
} catch (error) {
|
|
1868
|
-
logWarn(
|
|
1869
|
-
"
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
"file.directory": pluginsRoot,
|
|
1873
|
-
"exception.message": error instanceof Error ? error.message : String(error)
|
|
1874
|
-
},
|
|
1875
|
-
"Failed to read plugin root"
|
|
1876
|
-
);
|
|
1863
|
+
logWarn("plugin.root.read.failed", {
|
|
1864
|
+
"file.directory": pluginsRoot,
|
|
1865
|
+
"exception.message": error instanceof Error ? error.message : String(error)
|
|
1866
|
+
});
|
|
1877
1867
|
continue;
|
|
1878
1868
|
}
|
|
1879
1869
|
for (const entry of entries.sort()) {
|
|
@@ -1912,18 +1902,13 @@ function logLoadedPlugins(state) {
|
|
|
1912
1902
|
continue;
|
|
1913
1903
|
}
|
|
1914
1904
|
loggedPluginNames.add(plugin.manifest.name);
|
|
1915
|
-
logInfo(
|
|
1916
|
-
"
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
"file.directory": plugin.dir,
|
|
1923
|
-
...plugin.skillsDir ? { "app.file.skill_directory": plugin.skillsDir } : {}
|
|
1924
|
-
},
|
|
1925
|
-
"Loaded plugin"
|
|
1926
|
-
);
|
|
1905
|
+
logInfo("plugin.loaded", {
|
|
1906
|
+
"app.plugin.name": plugin.manifest.name,
|
|
1907
|
+
"app.plugin.config_key_count": plugin.manifest.configKeys.length,
|
|
1908
|
+
"app.plugin.has_mcp": Boolean(plugin.manifest.mcp),
|
|
1909
|
+
"file.directory": plugin.dir,
|
|
1910
|
+
...plugin.skillsDir ? { "app.file.skill_directory": plugin.skillsDir } : {}
|
|
1911
|
+
});
|
|
1927
1912
|
}
|
|
1928
1913
|
}
|
|
1929
1914
|
function ensurePluginsLoaded(runtime) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@sentry/junior",
|
|
4
|
-
version: "0.
|
|
4
|
+
version: "0.122.0",
|
|
5
5
|
private: false,
|
|
6
6
|
publishConfig: {
|
|
7
7
|
access: "public"
|
|
@@ -70,8 +70,8 @@ var package_default = {
|
|
|
70
70
|
"@chat-adapter/slack": "4.29.0",
|
|
71
71
|
"@chat-adapter/state-memory": "4.29.0",
|
|
72
72
|
"@chat-adapter/state-redis": "4.29.0",
|
|
73
|
-
"@earendil-works/pi-agent-core": "
|
|
74
|
-
"@earendil-works/pi-ai": "
|
|
73
|
+
"@earendil-works/pi-agent-core": "catalog:",
|
|
74
|
+
"@earendil-works/pi-ai": "catalog:",
|
|
75
75
|
"@logtape/logtape": "^2.1.1",
|
|
76
76
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
77
77
|
"@neondatabase/serverless": "^1.1.0",
|