@sentry/junior 0.308.0 → 0.309.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/{actor-D2iXzvlN.js → actor-BsBdxDXQ.js} +0 -1
- package/dist/{adapter-context-BO432242.js → adapter-context-1YUbMpD3.js} +2 -2
- package/dist/{admin-vSmheo3Z.js → admin-u30A8TcD.js} +2 -2
- package/dist/{agent-runner-BnOofGFG.js → agent-runner-sJLhgPQV.js} +93 -90
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +4 -4
- package/dist/api.d.ts +4 -2
- package/dist/api.js +416 -272
- package/dist/{app-CqYqy541.d.ts → app-B_7Wn0en.d.ts} +4 -6
- package/dist/app.d.ts +1 -1
- package/dist/app.js +73 -193
- package/dist/{background-compaction-queue-BpmDEQf6.js → background-compaction-queue-CUJXVKG3.js} +4 -4
- package/dist/{briefs-Dbh94cRp.js → briefs-BHi70IR5.js} +3 -3
- package/dist/{catalog-runtime-q9AJjuUN.js → catalog-runtime-Chc_IP2o.js} +1 -1
- package/dist/cli/chat.js +16 -16
- package/dist/cli/check.js +10 -10
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-Cx8H0MRw.js → config-BIyIdTtA.js} +51 -92
- package/dist/{continue-in-slack-CtTv1tkn.js → continue-in-slack-BQJBfiQh.js} +6 -6
- package/dist/{conversation--f85g4zL.js → conversation-CzrLhdHG.js} +6 -1
- package/dist/{conversation-feed-BNs9KiqC.js → conversation-feed-B9e3_gxz.js} +1 -1
- package/dist/{conversation-privacy-CivmFlWP.js → conversation-privacy-CkTW29hd.js} +1 -1
- package/dist/{conversation-turn-C9-Nfnsy.js → conversation-turn-CZaYQUum.js} +19 -20
- package/dist/{credential-sync-CWIORwD9.js → credential-sync-58m_CyIJ.js} +31 -23
- package/dist/{db-C41UgdBj.d.ts → db-B4Hjxr-u.d.ts} +2 -2
- package/dist/{db-CO6Y10eM.js → db-CFUpEZi9.js} +11 -9
- package/dist/{executor-Doo-N6Yn.js → executor-DXL0O0MV.js} +4 -3
- package/dist/fan-out-Cod-yEHG.js +10 -0
- package/dist/{connections-DUylBPiR.js → html-CaBu2VbT.js} +146 -11
- package/dist/{install-Y2s9ZPvk.js → install-DhTBUUov.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-BcqyhMyp.js → lineage-CxtOI2_p.js} +2 -2
- package/dist/{logging-DnBYBM8z.js → logging-BNUovdcX.js} +1 -1
- package/dist/{message-fSnXIqvl.js → message-DcUsS2vg.js} +8 -8
- package/dist/{model-input-DRChpXJ7.js → model-input-o3rEqgwM.js} +15 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-BUU6zd_T.js → oauth-callback-server-1Fizd1EM.js} +2 -2
- package/dist/{oauth-relay-gO_Ynmpb.js → oauth-relay-DOwngqdM.js} +1 -1
- package/dist/{package-discovery-x4AvVhMj.js → package-discovery-DD9vencX.js} +0 -1
- package/dist/{projection-Bqn6zdVT.js → projection-Ce4pmhKP.js} +98 -122
- package/dist/{prompt-DAjjk5fm.js → prompt-DEqjDVMs.js} +25 -14
- package/dist/{registry-tHJLCtKS.js → registry-CNE4ZBnG.js} +3 -3
- package/dist/{resolve-z2sKt8xM.js → resolve-qbPg-aC-.js} +3 -3
- package/dist/{result-D2wshngt.js → result-ZGnDzcsb.js} +12 -13
- package/dist/{runner-BvNPWLAy.js → runner-eGIxpAMf.js} +10 -10
- package/dist/{sandbox-egress-signals-CmHD-6vr.js → sandbox-egress-signals-DMFB1kCp.js} +1 -1
- package/dist/{schedule-BG1tEbRF.js → schedule-Cire6NU7.js} +1 -1
- package/dist/{schema-D4jdesIu.js → schema-CfIey9Ao.js} +65 -28
- package/dist/{schema-CRXcj4fj.d.ts → schema-DriSvB40.d.ts} +43 -43
- package/dist/{service-account-B2d1Er_r.js → service-account-B1VXCTqg.js} +3 -3
- package/dist/{service-account-CddxU-yC.js → service-account-Cw_LWZ4-.js} +7 -8
- package/dist/{session-stop-BQ0J0Fph.js → session-stop-P2XdTiwr.js} +159 -182
- package/dist/{skills-Dm2-5nn5.js → skills-Zg8-vrje.js} +25 -29
- package/dist/{slack-conversation-unfurl-CLH0tTLk.js → slack-conversation-unfurl-DA51qH0c.js} +18 -15
- package/dist/{spawn-PwAuSN59.js → spawn-DBi4-zD8.js} +6 -6
- package/dist/{state-rXH58smZ.js → state-C-Ftk23K.js} +4 -4
- package/dist/{stop-CcHPEcFE.js → stop-D9xideLM.js} +175 -134
- package/dist/{store-7QA00oK6.js → store-BjIXA0Al.js} +5 -5
- package/dist/{task-queue-DvQZH5rG.js → task-queue-D0_qbnpo.js} +7 -4
- package/dist/{task-runner-CyZMcuZy.js → task-runner-DQMq4XY0.js} +10 -11
- package/dist/{thread-context-C-hLTQST.js → thread-context-D0i1e-5O.js} +13 -11
- package/dist/{turn-session-routing-Cqjj1B3i.js → turn-session-routing-C0l68I_O.js} +4 -4
- package/dist/{turn-user-message-DbU7MNd9.js → turn-user-message-nBVvOXjs.js} +14 -5
- package/dist/{queue-CbEHUO0l.d.ts → types-fnU7Xs__.d.ts} +3 -1
- package/dist/{users-B-UpCmw9.js → users-DdjMjbmM.js} +1 -1
- package/dist/{validation-BEUlev32.js → validation-CRbvRPvu.js} +1 -1
- package/dist/{version-BE1OyrXV.js → version-BYdVs12p.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CqOkWizK.js → viewer-DudYrQGj.js} +7 -5
- package/dist/{warmup-HFgFZFwS.js → warmup-DN9OHN1-.js} +136 -78
- package/dist/{worker-CCEDWbsY.js → worker-C9ZfJXmV.js} +8 -8
- package/migrations/0121_people_list_metric_index.sql +1 -0
- package/migrations/0122_automation_rollout_repair.sql +56 -0
- package/migrations/0123_cache_warming_history_reset.sql +10 -0
- package/migrations/meta/0121_snapshot.json +5481 -0
- package/migrations/meta/0122_snapshot.json +5481 -0
- package/migrations/meta/0123_snapshot.json +5481 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +7 -7
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { s as skillRoots } from "./package-discovery-
|
|
3
|
-
import { h as logWarn } from "./logging-
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
+
import { s as skillRoots } from "./package-discovery-DD9vencX.js";
|
|
3
|
+
import { h as logWarn } from "./logging-BNUovdcX.js";
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-Chc_IP2o.js";
|
|
5
|
+
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
5
6
|
import * as z from "zod";
|
|
6
7
|
import path from "node:path";
|
|
7
8
|
import fs from "node:fs/promises";
|
|
@@ -241,23 +242,23 @@ async function discoverSkills(options) {
|
|
|
241
242
|
const roots = resolveSkillRoots(options);
|
|
242
243
|
const cacheKey = roots.join(path.delimiter);
|
|
243
244
|
if (skillCache && skillCache.expiresAt > Date.now() && skillCache.key === cacheKey) return skillCache.skills;
|
|
245
|
+
const directoriesByRoot = await mapBounded(roots, async (root) => {
|
|
246
|
+
try {
|
|
247
|
+
return (await fs.readdir(root, { withFileTypes: true })).filter((entry) => entry.isDirectory()).sort((a, b) => a.name.localeCompare(b.name)).map((entry) => path.join(root, entry.name));
|
|
248
|
+
} catch (error) {
|
|
249
|
+
logWarn("skill.root.read.failed", {
|
|
250
|
+
"file.directory": root,
|
|
251
|
+
"exception.message": error instanceof Error ? error.message : String(error)
|
|
252
|
+
});
|
|
253
|
+
return [];
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
const skills = await mapBounded(directoriesByRoot.flat(), readSkillDirectory);
|
|
244
257
|
const discovered = [];
|
|
245
258
|
const seen = /* @__PURE__ */ new Set();
|
|
246
|
-
for (const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
if (!entry.isDirectory()) continue;
|
|
250
|
-
const skill = await readSkillDirectory(path.join(root, entry.name));
|
|
251
|
-
if (skill && !seen.has(skill.name)) {
|
|
252
|
-
seen.add(skill.name);
|
|
253
|
-
discovered.push(skill);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
} catch (error) {
|
|
257
|
-
logWarn("skill.root.read.failed", {
|
|
258
|
-
"file.directory": root,
|
|
259
|
-
"exception.message": error instanceof Error ? error.message : String(error)
|
|
260
|
-
});
|
|
259
|
+
for (const skill of skills) if (skill && !seen.has(skill.name)) {
|
|
260
|
+
seen.add(skill.name);
|
|
261
|
+
discovered.push(skill);
|
|
261
262
|
}
|
|
262
263
|
const sorted = discovered.sort((a, b) => a.name.localeCompare(b.name));
|
|
263
264
|
skillCache = {
|
|
@@ -293,26 +294,21 @@ function findSkillByName(skillName, available) {
|
|
|
293
294
|
/** Load full skill bodies for a list of skill names, reading SKILL.md files from disk. */
|
|
294
295
|
async function loadSkillsByName(skillNames, available) {
|
|
295
296
|
const selected = new Set(skillNames);
|
|
296
|
-
const
|
|
297
|
-
for (const meta of available) {
|
|
298
|
-
if (!selected.has(meta.name)) continue;
|
|
297
|
+
const loadSkill = async (meta) => {
|
|
299
298
|
const skillFile = path.join(meta.skillPath, "SKILL.md");
|
|
300
299
|
const parsed = parseSkillFile(await fs.readFile(skillFile, "utf8"), meta.name);
|
|
301
300
|
if (!parsed.ok) throw new Error(`Invalid skill file in ${skillFile}: ${parsed.error}`);
|
|
302
301
|
const plugin = resolveSkillPlugin(meta);
|
|
303
|
-
|
|
302
|
+
return {
|
|
304
303
|
name: parsed.skill.name,
|
|
305
304
|
description: parsed.skill.description,
|
|
306
305
|
skillPath: meta.skillPath,
|
|
307
306
|
...plugin ? { pluginProvider: plugin.manifest.name } : void 0,
|
|
308
307
|
...parsed.skill.allowedTools ? { allowedTools: parsed.skill.allowedTools } : void 0,
|
|
309
|
-
...parsed.skill.disableModelInvocation ? { disableModelInvocation: parsed.skill.disableModelInvocation } : void 0
|
|
310
|
-
};
|
|
311
|
-
skills.push({
|
|
312
|
-
...loadedMeta,
|
|
308
|
+
...parsed.skill.disableModelInvocation ? { disableModelInvocation: parsed.skill.disableModelInvocation } : void 0,
|
|
313
309
|
body: applyPluginRuntimeBoundary(plugin, parsed.skill.body)
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
return
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
return await mapBounded(available.filter((meta) => selected.has(meta.name)), loadSkill);
|
|
317
313
|
}
|
|
318
314
|
export { parseSkillInvocation as a, parseSkillFile as i, findSkillByName as n, skills_exports as o, loadSkillsByName as r, skillReferences as s, discoverSkills as t };
|
package/dist/{slack-conversation-unfurl-CLH0tTLk.js → slack-conversation-unfurl-DA51qH0c.js}
RENAMED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { Ct as deferConversationMove,
|
|
3
|
-
import { _ as slackUserIdSchema, b as slackMessageTsSchema, f as parseSlackTeamId, g as slackTeamIdSchema, h as slackChannelIdSchema, m as slackBotIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-
|
|
4
|
-
import {
|
|
5
|
-
import { i as lookupSlackUserProfile, n as lookupSlackBot } from "./users-
|
|
6
|
-
import { E as withSpan } from "./logging-
|
|
7
|
-
import { i as readActorIdentity } from "./viewer-
|
|
8
|
-
import { t as runWithSlackInstallation } from "./adapter-context-
|
|
9
|
-
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-
|
|
10
|
-
import {
|
|
11
|
-
import "./store-
|
|
12
|
-
import {
|
|
2
|
+
import { Ct as deferConversationMove, Ja as readConversationAccessFromSql, Ls as escapeSlackMrkdwnText, Ps as getWorkspaceTeamId, Rs as formatSlackLink, fs as postSlackEphemeralMessage, hs as unfurlSlackLinks, ro as readLatestConversationBrief, uc as parseDashboardConversationLink } from "./projection-Ce4pmhKP.js";
|
|
3
|
+
import { _ as slackUserIdSchema, b as slackMessageTsSchema, f as parseSlackTeamId, g as slackTeamIdSchema, h as slackChannelIdSchema, m as slackBotIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-BsBdxDXQ.js";
|
|
4
|
+
import { Z as createCache, a as getConversationStore, ct as getConversationIdByProviderConversation, o as getDb, s as getSqlExecutor } from "./db-CFUpEZi9.js";
|
|
5
|
+
import { i as lookupSlackUserProfile, n as lookupSlackBot } from "./users-DdjMjbmM.js";
|
|
6
|
+
import { E as withSpan } from "./logging-BNUovdcX.js";
|
|
7
|
+
import { i as readActorIdentity } from "./viewer-DudYrQGj.js";
|
|
8
|
+
import { t as runWithSlackInstallation } from "./adapter-context-1YUbMpD3.js";
|
|
9
|
+
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-BQJBfiQh.js";
|
|
10
|
+
import { pr as checkSlackChannelReadAccess } from "./warmup-DN9OHN1-.js";
|
|
11
|
+
import "./store-BjIXA0Al.js";
|
|
12
|
+
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
13
|
+
import { n as botConfig } from "./config-BIyIdTtA.js";
|
|
13
14
|
import * as z from "zod";
|
|
14
15
|
// src/chat/ingress/workspace-membership.ts
|
|
15
16
|
const MEMBER_TTL_MS = 3e5;
|
|
@@ -219,21 +220,23 @@ async function unfurlDashboardConversationLinks(args) {
|
|
|
219
220
|
const unfurls = {};
|
|
220
221
|
let canReceive;
|
|
221
222
|
const urls = [...new Set(event.links.map((link) => link.url))];
|
|
222
|
-
|
|
223
|
+
const unfurlLink = async (url) => {
|
|
223
224
|
const conversationId = parseDashboardConversationLink(url);
|
|
224
225
|
const conversation = conversationId ? await readPublicConversation(conversationId) : void 0;
|
|
225
|
-
if (!conversation)
|
|
226
|
+
if (!conversation) return;
|
|
227
|
+
const movable = isMovableToSlack(conversation) && await (canReceive ??= canReceiveConversation(teamId, channelId, threadTs));
|
|
226
228
|
unfurls[url] = { blocks: await previewBlocks({
|
|
227
229
|
conversation,
|
|
228
230
|
url,
|
|
229
|
-
...
|
|
231
|
+
...movable ? { footer: continueHereButton({
|
|
230
232
|
conversationId: conversation.conversationId,
|
|
231
233
|
messageTs: messageTs.data,
|
|
232
234
|
threadTs,
|
|
233
235
|
url
|
|
234
236
|
}) } : void 0
|
|
235
237
|
}) };
|
|
236
|
-
}
|
|
238
|
+
};
|
|
239
|
+
await mapBounded(urls.slice(0, MAX_LINKS), unfurlLink);
|
|
237
240
|
if (Object.keys(unfurls).length === 0) return;
|
|
238
241
|
await unfurlSlackLinks({
|
|
239
242
|
channelId,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { t as readConversationLineage } from "./lineage-
|
|
5
|
-
import { _ as getConversationWorkState } from "./store-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-sJLhgPQV.js";
|
|
3
|
+
import { n as botConfig } from "./config-BIyIdTtA.js";
|
|
4
|
+
import { t as readConversationLineage } from "./lineage-CxtOI2_p.js";
|
|
5
|
+
import { _ as getConversationWorkState } from "./store-BjIXA0Al.js";
|
|
6
|
+
import { Ht as getAgentInvocation, Tn as getAgentBinding, cn as createAndEnqueueAgentInvocation, xn as AgentDepthLimitError } from "./warmup-DN9OHN1-.js";
|
|
7
|
+
import { A as getAgentInvocationMessageId, E as getAgentInvocationId, L as getUnnamedAgentConversationId } from "./turn-user-message-nBVvOXjs.js";
|
|
8
8
|
// src/chat/agent-invocations/spawn.ts
|
|
9
9
|
var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
3
|
-
import { o as getDb } from "./db-
|
|
4
|
-
import { B as juniorUsers } from "./executor-
|
|
1
|
+
import { i as getChatConfig } from "./config-BIyIdTtA.js";
|
|
2
|
+
import { h as logWarn } from "./logging-BNUovdcX.js";
|
|
3
|
+
import { o as getDb } from "./db-CFUpEZi9.js";
|
|
4
|
+
import { B as juniorUsers } from "./executor-DXL0O0MV.js";
|
|
5
5
|
import { createCipheriv, createDecipheriv, createHash, randomBytes } from "node:crypto";
|
|
6
6
|
import { eq } from "drizzle-orm";
|
|
7
7
|
// src/chat/conversations/legacy-web-actor-id.ts
|