@sentry/junior 0.305.0 → 0.307.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/{adapter-context-BpvbUki8.js → adapter-context-B69WPn6b.js} +2 -2
- package/dist/{admin-CoDt35ny.js → admin-nCJXMgkp.js} +2 -2
- package/dist/{agent-runner-C5d6rY5g.js → agent-runner-DdFcxAxG.js} +463 -303
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -8
- package/dist/api.d.ts +19 -4
- package/dist/api.js +437 -310
- package/dist/{app-Cs157Zc5.d.ts → app-EZur8cVC.d.ts} +12 -3
- package/dist/app.d.ts +2 -2
- package/dist/app.js +532 -439
- package/dist/background-compaction-queue-BhEe4UfU.js +231 -0
- package/dist/{briefs-BRdznF7c.js → briefs-Dl9lxi7J.js} +3 -3
- package/dist/{catalog-runtime-J52Tej47.js → catalog-runtime-OXrv2Ewn.js} +1 -1
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +17 -16
- package/dist/cli/check.js +58 -48
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.d.ts +1 -1
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +2 -2
- package/dist/cli/upgrade.js +3 -8
- package/dist/{config-CBZp0udd.js → config-362yMSIz.js} +183 -49
- package/dist/{connections-BYmuJ6Vm.js → connections-BJv3EjmB.js} +10 -8
- package/dist/{continue-in-slack-Cvot6S38.js → continue-in-slack-CFEevC7z.js} +5 -5
- package/dist/{conversation-BOqdRtUx.js → conversation--f85g4zL.js} +132 -132
- package/dist/{conversation-feed-CgpgP7yi.js → conversation-feed-BNs9KiqC.js} +1 -1
- package/dist/{conversation-privacy-D2pOzBNl.js → conversation-privacy-Tjj5P2W6.js} +1 -1
- package/dist/{conversation-turn-CI8WDpnK.js → conversation-turn-DU0_WDAr.js} +26 -72
- package/dist/{credential-sync-COqnZ1Dx.js → credential-sync-D6aFARKE.js} +28 -27
- package/dist/{db-DU84dCVu.js → db-Bcbd9zQc.js} +226 -18
- package/dist/{db-zbN5ZV_o.d.ts → db-C41UgdBj.d.ts} +1 -1
- package/dist/{executor-CFyrgOu1.js → executor-DBMBrpNV.js} +137 -33
- package/dist/{history-m2-ceTTX.js → history-N7IVbUom.js} +5 -1
- package/dist/{install-CQ76CfRw.js → install-CgoAbzfF.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-DLd2UxVP.js → lineage-CsZDmz3e.js} +2 -2
- package/dist/{logging-BPNTQVFu.js → logging-CHCuQ5iz.js} +1 -1
- package/dist/{message-BWJLeQ5e.js → message-B8vCbZZB.js} +8 -8
- package/dist/{model-input-DoM9Ht-d.js → model-input-Xluiy-1W.js} +3 -3
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +3 -4
- package/dist/{oauth-callback-server-DeHbnAQl.js → oauth-callback-server-BUuNvfvu.js} +2 -2
- package/dist/{oauth-relay-DAmfVmJu.js → oauth-relay-DGAZzg9m.js} +1 -1
- package/dist/{plugins-B_0Cr0MO.d.ts → plugins-fBrz8PCV.d.ts} +2 -0
- package/dist/{projection-CcFBVFUo.js → projection-xPpvqexa.js} +13423 -11432
- package/dist/{prompt-C5LREK2p.js → prompt-D8u4jFs_.js} +15 -7
- package/dist/{registry-BjZZqKqi.js → registry-D20hG3r6.js} +19 -9
- package/dist/{resolve-CeJgXuH1.js → resolve-BhCySRCW.js} +3 -3
- package/dist/{result-icDrueyB.js → result-DddO63S9.js} +13 -11
- package/dist/{runner-nVfMkMMB.js → runner-DQR9vYce.js} +13 -15
- package/dist/{sandbox-egress-signals-H9vQ5qRf.js → sandbox-egress-signals-DFlNUOnK.js} +1 -1
- package/dist/{automation-CuA3yEcD.js → schedule-BG1tEbRF.js} +380 -8
- package/dist/{schema-CKcu-IK6.d.ts → schema-CRXcj4fj.d.ts} +420 -143
- package/dist/{schema-Bx0Mlo32.js → schema-D4jdesIu.js} +62 -8
- package/dist/{service-account-DU5865XA.js → service-account-Bv5QwrEq.js} +8 -6
- package/dist/{service-account-Dw06p3zm.js → service-account-CNfycv0z.js} +3 -3
- package/dist/{session-stop-uotLtp4g.js → session-stop-BDdwyZaa.js} +878 -171
- package/dist/{skills-Bex1EaO5.js → skills-63i1Bcv1.js} +32 -28
- package/dist/{slack-conversation-unfurl-EPG3riWF.js → slack-conversation-unfurl-DtpBUlUu.js} +10 -9
- package/dist/{spawn-CoD3vDuS.js → spawn-mwimEY9_.js} +6 -6
- package/dist/{state-nCR4Muhn.js → state-BBn9L6gC.js} +4 -4
- package/dist/{stop-BFVd0P0m.js → stop-Da-Ug7tg.js} +172 -239
- package/dist/{store-Ca6G962n.js → store-CdWg2r2L.js} +5 -5
- package/dist/{background-compaction-queue-BTqMIfTA.js → task-queue-BcjAYWyB.js} +164 -180
- package/dist/{task-runner-xsOPIxCZ.js → task-runner-CoXmMlsW.js} +13 -11
- package/dist/{thread-context-BOvZhsKK.js → thread-context-ZPGqOjW7.js} +8 -91
- package/dist/turn-session-routing-DFYak28Q.js +263 -0
- package/dist/{turn-user-message-BrhuyYrH.js → turn-user-message-B1S8nOnG.js} +3 -3
- package/dist/users-DDbENg-I.js +181 -0
- package/dist/{validation-BnY9K5WB.js → validation-fl21ps-k.js} +1 -1
- package/dist/{version-qROlRQGF.js → version-DCdMMx_0.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CxUiOraX.js → viewer-DN_xzVKj.js} +3 -3
- package/dist/{warmup--Gkz7iB-.js → warmup-CxhEhm71.js} +842 -532
- package/dist/{web-message-id-lNodcCOI.js → web-message-id-BT8Mg8LL.js} +16 -1
- package/dist/{worker-DJ8d9fmD.js → worker-Btb1SB5h.js} +8 -7
- package/migrations/0114_plan_items.sql +22 -0
- package/migrations/0115_automation_creator_slack_index.sql +1 -0
- package/migrations/0116_conversation_event_search.sql +25 -0
- package/migrations/0117_automation_last_run.sql +46 -0
- package/migrations/0118_automation_last_run_index.sql +1 -0
- package/migrations/0119_money_micro_usd.sql +29 -0
- package/migrations/0120_conversation_cost_micro_usd.sql +8 -0
- package/migrations/meta/0114_snapshot.json +5203 -0
- package/migrations/meta/0115_snapshot.json +5225 -0
- package/migrations/meta/0116_snapshot.json +5388 -0
- package/migrations/meta/0117_snapshot.json +5413 -0
- package/migrations/meta/0118_snapshot.json +5428 -0
- package/migrations/meta/0119_snapshot.json +5441 -0
- package/migrations/meta/0120_snapshot.json +5441 -0
- package/migrations/meta/_journal.json +49 -0
- package/package.json +10 -9
- package/dist/queue-B2AAL3ym.js +0 -115
- package/dist/schedule-cP0AACm1.js +0 -344
- package/dist/secrets-DHaJ5TTn.js +0 -18
- package/dist/task-queue-BLPZU6kC.js +0 -89
- package/dist/turn-session-routing-2bW2qfeb.js +0 -1792
|
@@ -1,11 +1,38 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
2
|
import { s as skillRoots } from "./package-discovery-x4AvVhMj.js";
|
|
3
|
-
import { h as logWarn } from "./logging-
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
3
|
+
import { h as logWarn } from "./logging-CHCuQ5iz.js";
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-OXrv2Ewn.js";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import { parse } from "yaml";
|
|
9
|
+
// src/chat/skill-references.ts
|
|
10
|
+
function isCommonEnvironmentVariable(name) {
|
|
11
|
+
return [
|
|
12
|
+
"HOME",
|
|
13
|
+
"LANG",
|
|
14
|
+
"PATH",
|
|
15
|
+
"PWD",
|
|
16
|
+
"SHELL",
|
|
17
|
+
"TEMP",
|
|
18
|
+
"TERM",
|
|
19
|
+
"TMP",
|
|
20
|
+
"TMPDIR",
|
|
21
|
+
"USER",
|
|
22
|
+
"XDG_CONFIG_HOME"
|
|
23
|
+
].includes(name.toUpperCase());
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Return the skills that `text` references explicitly, in order: each
|
|
27
|
+
* `$name`, then each `/name`. Only these two forms reference a skill.
|
|
28
|
+
*/
|
|
29
|
+
function skillReferences(text, availableSkills) {
|
|
30
|
+
const isSkill = (name) => availableSkills.some((skill) => skill.name === name);
|
|
31
|
+
const dollarPattern = /(?<![\w$])\$([a-z0-9]+(?:-[a-z0-9]+)*)/gi;
|
|
32
|
+
const slashPattern = /(?:^|\s)\/([a-z0-9]+(?:-[a-z0-9]+)*)(?![a-z0-9/-])/gi;
|
|
33
|
+
const names = (pattern) => [...text.matchAll(pattern)].flatMap((match) => match[1] ? [match[1].toLowerCase()] : []);
|
|
34
|
+
return [...names(dollarPattern).filter((name) => !isCommonEnvironmentVariable(name)), ...names(slashPattern)].filter(isSkill);
|
|
35
|
+
}
|
|
9
36
|
// src/chat/skills.ts
|
|
10
37
|
var skills_exports = /* @__PURE__ */ __exportAll({
|
|
11
38
|
discoverSkills: () => discoverSkills,
|
|
@@ -240,21 +267,6 @@ async function discoverSkills(options) {
|
|
|
240
267
|
};
|
|
241
268
|
return sorted;
|
|
242
269
|
}
|
|
243
|
-
function isCommonEnvironmentVariable(name) {
|
|
244
|
-
return [
|
|
245
|
-
"HOME",
|
|
246
|
-
"LANG",
|
|
247
|
-
"PATH",
|
|
248
|
-
"PWD",
|
|
249
|
-
"SHELL",
|
|
250
|
-
"TEMP",
|
|
251
|
-
"TERM",
|
|
252
|
-
"TMP",
|
|
253
|
-
"TMPDIR",
|
|
254
|
-
"USER",
|
|
255
|
-
"XDG_CONFIG_HOME"
|
|
256
|
-
].includes(name.toUpperCase());
|
|
257
|
-
}
|
|
258
270
|
/**
|
|
259
271
|
* Extract an explicit skill invocation from a user message. `$name` is the
|
|
260
272
|
* canonical form; `/name` still works for older messages and automations.
|
|
@@ -262,16 +274,8 @@ function isCommonEnvironmentVariable(name) {
|
|
|
262
274
|
function parseSkillInvocation(messageText, availableSkills) {
|
|
263
275
|
const trimmed = messageText.trim();
|
|
264
276
|
const escapePattern = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
if (!skillName) continue;
|
|
268
|
-
if (isCommonEnvironmentVariable(skillName)) continue;
|
|
269
|
-
if (availableSkills.some((skill) => skill.name === skillName)) return { skillName };
|
|
270
|
-
}
|
|
271
|
-
for (const match of trimmed.matchAll(/(?:^|\s)\/([a-z0-9]+(?:-[a-z0-9]+)*)(?![a-z0-9/-])/gi)) {
|
|
272
|
-
const skillName = match[1]?.toLowerCase();
|
|
273
|
-
if (skillName && availableSkills.some((skill) => skill.name === skillName)) return { skillName };
|
|
274
|
-
}
|
|
277
|
+
const [referencedSkill] = skillReferences(trimmed, availableSkills);
|
|
278
|
+
if (referencedSkill) return { skillName: referencedSkill };
|
|
275
279
|
const namedSkill = availableSkills.find((skill) => {
|
|
276
280
|
if (skill.disableModelInvocation !== true) return false;
|
|
277
281
|
const skillPattern = escapePattern(skill.name);
|
|
@@ -311,4 +315,4 @@ async function loadSkillsByName(skillNames, available) {
|
|
|
311
315
|
}
|
|
312
316
|
return skills;
|
|
313
317
|
}
|
|
314
|
-
export { parseSkillInvocation as a, parseSkillFile as i, findSkillByName as n, skills_exports as o, loadSkillsByName as r, discoverSkills as t };
|
|
318
|
+
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-EPG3riWF.js → slack-conversation-unfurl-DtpBUlUu.js}
RENAMED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Ct as deferConversationMove, Is as escapeSlackMrkdwnText, Ls as formatSlackLink, Ns as getWorkspaceTeamId, cc as parseDashboardConversationLink, ds as postSlackEphemeralMessage, ms as unfurlSlackLinks, no as readLatestConversationBrief, qa as readConversationAccessFromSql } from "./projection-xPpvqexa.js";
|
|
3
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-D2iXzvlN.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
|
4
|
+
import { X as createCache, a as getConversationStore, o as getDb, s as getSqlExecutor, st as getConversationIdByProviderConversation } from "./db-Bcbd9zQc.js";
|
|
5
|
+
import { i as lookupSlackUserProfile, n as lookupSlackBot } from "./users-DDbENg-I.js";
|
|
6
|
+
import { E as withSpan } from "./logging-CHCuQ5iz.js";
|
|
7
|
+
import { i as readActorIdentity } from "./viewer-DN_xzVKj.js";
|
|
8
|
+
import { t as runWithSlackInstallation } from "./adapter-context-B69WPn6b.js";
|
|
9
|
+
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-CFEevC7z.js";
|
|
10
|
+
import { fr as checkSlackChannelReadAccess } from "./warmup-CxhEhm71.js";
|
|
11
|
+
import "./store-CdWg2r2L.js";
|
|
12
|
+
import { n as botConfig } from "./config-362yMSIz.js";
|
|
12
13
|
import * as z from "zod";
|
|
13
14
|
// src/chat/ingress/workspace-membership.ts
|
|
14
15
|
const MEMBER_TTL_MS = 3e5;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { t as readConversationLineage } from "./lineage-
|
|
5
|
-
import { _ as getConversationWorkState } from "./store-
|
|
6
|
-
import {
|
|
7
|
-
import { I as getUnnamedAgentConversationId, T as getAgentInvocationId, k as getAgentInvocationMessageId } from "./turn-user-message-
|
|
2
|
+
import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-DdFcxAxG.js";
|
|
3
|
+
import { n as botConfig } from "./config-362yMSIz.js";
|
|
4
|
+
import { t as readConversationLineage } from "./lineage-CsZDmz3e.js";
|
|
5
|
+
import { _ as getConversationWorkState } from "./store-CdWg2r2L.js";
|
|
6
|
+
import { Vt as getAgentInvocation, bn as AgentDepthLimitError, sn as createAndEnqueueAgentInvocation, wn as getAgentBinding } from "./warmup-CxhEhm71.js";
|
|
7
|
+
import { I as getUnnamedAgentConversationId, T as getAgentInvocationId, k as getAgentInvocationMessageId } from "./turn-user-message-B1S8nOnG.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 {
|
|
1
|
+
import { i as getChatConfig } from "./config-362yMSIz.js";
|
|
2
|
+
import { h as logWarn } from "./logging-CHCuQ5iz.js";
|
|
3
|
+
import { o as getDb } from "./db-Bcbd9zQc.js";
|
|
4
|
+
import { B as juniorUsers } from "./executor-DBMBrpNV.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
|