@sentry/junior 0.147.0 → 0.149.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-HS6VGUPM.js → agent-hooks-CWMCXAMT.js} +10 -10
- package/dist/api/conversations/access.d.ts +2 -1
- package/dist/api/conversations/aggregate.d.ts +2 -0
- package/dist/api/conversations/archive.d.ts +3 -5
- package/dist/api/conversations/create.d.ts +6 -0
- package/dist/api/conversations/detail.d.ts +2 -296
- package/dist/api/conversations/event-list.d.ts +2 -193
- package/dist/api/conversations/list.d.ts +4 -66
- package/dist/api/conversations/pending-messages.d.ts +15 -0
- package/dist/api/conversations/routes.d.ts +1 -1
- package/dist/api/conversations/stats.d.ts +0 -54
- package/dist/api/http.d.ts +2 -6
- package/dist/api/locations/detail.d.ts +3 -111
- package/dist/api/locations/list.d.ts +0 -45
- package/dist/api/locations/query.d.ts +2 -1
- package/dist/api/locations/routes.d.ts +1 -1
- package/dist/api/people/list.d.ts +0 -29
- package/dist/api/people/profile.d.ts +2 -106
- package/dist/api/people/profile.query.d.ts +2 -1
- package/dist/api/people/routes.d.ts +1 -1
- package/dist/api/people/shared.d.ts +3 -1
- package/dist/api/people/spend.d.ts +3 -4
- package/dist/api/personal-tokens/routes.d.ts +2 -2
- package/dist/api/route.d.ts +8 -14
- package/dist/api/schema/conversation.d.ts +130 -25
- package/dist/api/schema/location.d.ts +4 -0
- package/dist/api/schema/person.d.ts +7 -3
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +13 -1
- package/dist/api/stats.d.ts +0 -13
- package/dist/api/validation.d.ts +7 -0
- package/dist/api/viewer.d.ts +3 -0
- package/dist/api.d.ts +2 -1
- package/dist/api.js +772 -561
- package/dist/app.js +241 -204
- package/dist/{catalog-runtime-M6ZTPYRV.js → catalog-runtime-GAW5APVI.js} +5 -5
- package/dist/chat/actor.d.ts +4 -1
- package/dist/chat/agent/request.d.ts +2 -0
- package/dist/chat/agent/resume.d.ts +1 -0
- package/dist/chat/agent-dispatch/context.d.ts +2 -2
- package/dist/chat/agent-invocations/types.d.ts +52 -0
- package/dist/chat/api-turns/work.d.ts +108 -0
- package/dist/chat/app/services.d.ts +1 -1
- package/dist/chat/conversations/history.d.ts +60 -0
- package/dist/chat/conversations/provenance.d.ts +6 -0
- package/dist/chat/conversations/sql/actor-identity.d.ts +19 -0
- package/dist/chat/conversations/store.d.ts +1 -1
- package/dist/chat/resource-events/store.d.ts +1 -1
- package/dist/chat/runtime/reply-executor.d.ts +1 -3
- package/dist/chat/runtime/slack-runtime.d.ts +2 -1
- package/dist/chat/runtime/turn-preparation.d.ts +9 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +5 -5
- package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -2
- package/dist/chat/services/conversation-memory.d.ts +2 -2
- package/dist/chat/services/conversation-title.d.ts +20 -0
- package/dist/chat/slack/assistant-thread/title.d.ts +10 -27
- package/dist/chat/slack/channel.d.ts +26 -0
- package/dist/chat/slack/dispatch-turn.d.ts +1 -0
- package/dist/chat/slack/timestamp-param.d.ts +0 -2
- package/dist/chat/slack/{tools → tool-support}/canvas/api.d.ts +1 -1
- package/dist/chat/slack/{tools → tool-support}/canvas/context.d.ts +3 -0
- package/dist/chat/slack/tool-support/channel-access.d.ts +42 -0
- package/dist/chat/slack/tool-support/channel-target.d.ts +27 -0
- package/dist/chat/slack/tool-support/list/params.d.ts +5 -0
- package/dist/chat/slack/tools/canvas/create.d.ts +1 -1
- package/dist/chat/slack/tools/channel-join.d.ts +28 -0
- package/dist/chat/slack/tools/channel-list-messages.d.ts +3 -2
- package/dist/chat/slack/tools/conversation-message-search.d.ts +2 -8
- package/dist/chat/slack/tools/message-add-reaction.d.ts +1 -1
- package/dist/chat/slack/tools/public-search.d.ts +63 -2
- package/dist/chat/slack/tools/send-files.d.ts +1 -1
- package/dist/chat/slack/tools/thread-read.d.ts +2 -5
- package/dist/chat/source.d.ts +2 -0
- package/dist/chat/state/conversation.d.ts +1 -0
- package/dist/chat/task-execution/checkpoint.d.ts +1 -0
- package/dist/chat/task-execution/state.d.ts +9 -4
- package/dist/chat/task-execution/store.d.ts +3 -2
- package/dist/chat/task-execution/turn-cursor.d.ts +2 -0
- package/dist/chat/task-execution/worker.d.ts +2 -0
- package/dist/chat/tasks/read.d.ts +1 -1
- package/dist/chat/tools/search-conversation-events.d.ts +1 -1
- package/dist/chat/tools/types.d.ts +11 -4
- package/dist/chat/tools/watch-resource-events.d.ts +2 -2
- package/dist/{chunk-ORO3PWKQ.js → chunk-25SC7D6Z.js} +1 -1
- package/dist/{chunk-GGB4WL5A.js → chunk-2JHKISQA.js} +1 -1
- package/dist/{chunk-AVZDSUFB.js → chunk-2P6BQQER.js} +4 -4
- package/dist/{chunk-7NVJVJID.js → chunk-32CXPIZE.js} +2 -2
- package/dist/{chunk-YSB2N563.js → chunk-3GYZ5YEH.js} +121 -87
- package/dist/{chunk-DU74WPIC.js → chunk-3I2IVWSZ.js} +1 -1
- package/dist/{chunk-SVHUEHUL.js → chunk-3JVUWLR7.js} +65 -4
- package/dist/{chunk-RXBVB2JM.js → chunk-3KGQOKIG.js} +1 -1
- package/dist/{chunk-YBVXBNSV.js → chunk-4JGM7FXO.js} +2 -2
- package/dist/{chunk-AZ7EAOBE.js → chunk-4YKPOYRV.js} +5 -5
- package/dist/chunk-5CWUQXXT.js +806 -0
- package/dist/{chunk-DLDRQHG5.js → chunk-6G5RCDKP.js} +1 -1
- package/dist/{chunk-AYU72WO7.js → chunk-75DSYFFB.js} +47 -70
- package/dist/{chunk-YHDERDRO.js → chunk-7BH46NB4.js} +91 -75
- package/dist/{chunk-745QJ3ZA.js → chunk-ALJG73MQ.js} +2 -2
- package/dist/chunk-ART7P442.js +48 -0
- package/dist/{chunk-7A4M7PCV.js → chunk-DK5UT6PQ.js} +1180 -556
- package/dist/{chunk-AIOK6LAG.js → chunk-EW2LNCRL.js} +813 -44
- package/dist/chunk-EXW76GW4.js +36 -0
- package/dist/chunk-GDFF3BQG.js +136 -0
- package/dist/{chunk-7UQIVT6G.js → chunk-JMH3DBM5.js} +6 -6
- package/dist/{chunk-CWP5RHVX.js → chunk-JMSMXXED.js} +12 -5
- package/dist/{chunk-CSZINQJ2.js → chunk-MEMURSBG.js} +1 -1
- package/dist/{chunk-YNTTROJT.js → chunk-QIW7OQEO.js} +1 -1
- package/dist/{chunk-Q4R73I43.js → chunk-RB26T3LU.js} +58 -28
- package/dist/{chunk-4LJO56OJ.js → chunk-RLVZIWNQ.js} +1 -1
- package/dist/{chunk-SGZO7UWH.js → chunk-SWHPVZBV.js} +2 -2
- package/dist/{chunk-PVNG6UMU.js → chunk-TFBNBXPU.js} +22 -10
- package/dist/{chunk-EFLJ2WJH.js → chunk-URDCZAL4.js} +5 -5
- package/dist/{chunk-6H5SZR24.js → chunk-UZGASGOD.js} +300 -383
- package/dist/{chunk-YEO3VX72.js → chunk-W7UONUIZ.js} +8 -6
- package/dist/{chunk-JUUKWRBE.js → chunk-X22XXSZA.js} +1 -1
- package/dist/{chunk-X5UY34KT.js → chunk-XPYWWMHR.js} +8 -8
- package/dist/{chunk-IIOOO4FQ.js → chunk-ZYMYLLWG.js} +2 -1
- package/dist/cli/chat.js +32 -35
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/agent-invocations.d.ts +20 -0
- package/dist/db/schema/conversation-annotations.d.ts +2 -2
- package/dist/db/schema.d.ts +22 -2
- package/dist/{db-CSEW4RII.js → db-JBZLRIVY.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-FUEV5HNG.js → oauth-callback-server-MNTVYY2I.js} +24 -26
- package/dist/{runner-U3XHSKSH.js → runner-K24BWZSZ.js} +23 -25
- package/dist/{skills-AKE6W3WI.js → skills-AU5ST2CG.js} +6 -6
- package/dist/spawn-6PO7CVJ6.js +38 -0
- package/dist/{validation-WDTAULUF.js → validation-IXGZCFRO.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-C3HAO2BG.js → work-WCZIYILX.js} +18 -19
- package/dist/{worker-LNP4YKBM.js → worker-U2AACBEY.js} +11 -10
- package/package.json +6 -5
- package/dist/api/health.d.ts +0 -7
- package/dist/api/personal-tokens/create.d.ts +0 -11
- package/dist/api/personal-tokens/list.d.ts +0 -12
- package/dist/api/personal-tokens/revoke.d.ts +0 -5
- package/dist/api/plugin-reports.d.ts +0 -63
- package/dist/api/plugins.d.ts +0 -8
- package/dist/api/runtime.d.ts +0 -24
- package/dist/api/skills.d.ts +0 -6
- package/dist/chat/slack/tools/channel-access.d.ts +0 -30
- package/dist/chunk-34GS7B6L.js +0 -115
- package/dist/chunk-AVOCH2Z5.js +0 -285
- package/dist/chunk-HLXXQI5Q.js +0 -238
- package/dist/chunk-K4SZAP3K.js +0 -67
- package/dist/chunk-R776HKPK.js +0 -81
- package/dist/chunk-Z4YU7Z4L.js +0 -76
- package/dist/spawn-B6GDTWJ4.js +0 -39
- /package/dist/chat/slack/{tools → tool-support}/canvas/markdown.d.ts +0 -0
- /package/dist/chat/slack/{tools → tool-support}/channel-capabilities.d.ts +0 -0
- /package/dist/chat/slack/{tools → tool-support}/context.d.ts +0 -0
- /package/dist/chat/slack/{tools → tool-support}/list/api.d.ts +0 -0
- /package/dist/chat/slack/{tools → tool-support}/slack-message-url.d.ts +0 -0
package/dist/chunk-Z4YU7Z4L.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
botConfig
|
|
3
|
-
} from "./chunk-7NVJVJID.js";
|
|
4
|
-
import {
|
|
5
|
-
logWarn
|
|
6
|
-
} from "./chunk-4LJO56OJ.js";
|
|
7
|
-
|
|
8
|
-
// src/chat/services/short-title.ts
|
|
9
|
-
var SHORT_TITLE_MAX_LENGTH = 60;
|
|
10
|
-
var TITLE_PROMPTS = {
|
|
11
|
-
conversation: [
|
|
12
|
-
"Generate a concise 5-8 word Slack conversation title from the first user message below.",
|
|
13
|
-
"Capture the user's main request.",
|
|
14
|
-
"Reply with ONLY the title, with no quotes or trailing punctuation."
|
|
15
|
-
],
|
|
16
|
-
task: [
|
|
17
|
-
"Generate a concise 5-8 word task title from the task instruction below.",
|
|
18
|
-
"Capture the task's main purpose.",
|
|
19
|
-
"Reply with ONLY the title, with no quotes or trailing punctuation."
|
|
20
|
-
]
|
|
21
|
-
};
|
|
22
|
-
function normalizeShortTitle(value) {
|
|
23
|
-
return value.replace(/\s+/g, " ").trim().slice(0, SHORT_TITLE_MAX_LENGTH);
|
|
24
|
-
}
|
|
25
|
-
function fallbackShortTitle(sourceText, fallback = "Untitled") {
|
|
26
|
-
const firstLine = sourceText.split(/\r?\n/).map((line) => line.trim()).find((line) => line.length > 0) ?? "";
|
|
27
|
-
return normalizeShortTitle(firstLine) || fallback;
|
|
28
|
-
}
|
|
29
|
-
async function generateShortTitle(args) {
|
|
30
|
-
const sourceText = args.sourceText.trim();
|
|
31
|
-
if (!sourceText) return void 0;
|
|
32
|
-
try {
|
|
33
|
-
const result = await args.completeText({
|
|
34
|
-
modelId: botConfig.fastModelId,
|
|
35
|
-
temperature: 0,
|
|
36
|
-
promptName: `junior.${args.kind}_title`,
|
|
37
|
-
messages: [
|
|
38
|
-
{
|
|
39
|
-
role: "user",
|
|
40
|
-
content: [
|
|
41
|
-
...TITLE_PROMPTS[args.kind],
|
|
42
|
-
"",
|
|
43
|
-
args.kind === "conversation" ? `First user message: ${sourceText.slice(0, 500)}` : `Task instruction: ${sourceText.slice(0, 500)}`
|
|
44
|
-
].join("\n"),
|
|
45
|
-
timestamp: Date.now()
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
metadata: {
|
|
49
|
-
modelId: botConfig.fastModelId
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
const title = normalizeShortTitle(result.text);
|
|
53
|
-
return title || void 0;
|
|
54
|
-
} catch (error) {
|
|
55
|
-
logWarn(`${args.kind}.title.generation.failed`, {
|
|
56
|
-
"exception.message": error instanceof Error ? error.message : String(error)
|
|
57
|
-
});
|
|
58
|
-
return void 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
async function resolveTaskTitle(args) {
|
|
62
|
-
const explicit = normalizeShortTitle(args.title ?? "");
|
|
63
|
-
if (explicit) return explicit;
|
|
64
|
-
return generateShortTitle({
|
|
65
|
-
completeText: args.completeText,
|
|
66
|
-
kind: "task",
|
|
67
|
-
sourceText: args.instruction
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
SHORT_TITLE_MAX_LENGTH,
|
|
73
|
-
fallbackShortTitle,
|
|
74
|
-
generateShortTitle,
|
|
75
|
-
resolveTaskTitle
|
|
76
|
-
};
|
package/dist/spawn-B6GDTWJ4.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bindSpawnAgent
|
|
3
|
-
} from "./chunk-745QJ3ZA.js";
|
|
4
|
-
import "./chunk-YEO3VX72.js";
|
|
5
|
-
import "./chunk-CWP5RHVX.js";
|
|
6
|
-
import "./chunk-AZ7EAOBE.js";
|
|
7
|
-
import "./chunk-JAL3CH4G.js";
|
|
8
|
-
import "./chunk-X5UY34KT.js";
|
|
9
|
-
import "./chunk-DIB4GX3G.js";
|
|
10
|
-
import "./chunk-R776HKPK.js";
|
|
11
|
-
import "./chunk-7UQIVT6G.js";
|
|
12
|
-
import "./chunk-AIOK6LAG.js";
|
|
13
|
-
import "./chunk-3Y47VMHV.js";
|
|
14
|
-
import "./chunk-HUO3UTAQ.js";
|
|
15
|
-
import "./chunk-HLXXQI5Q.js";
|
|
16
|
-
import "./chunk-PDO5BLNM.js";
|
|
17
|
-
import "./chunk-SGZO7UWH.js";
|
|
18
|
-
import "./chunk-YSB2N563.js";
|
|
19
|
-
import "./chunk-DU74WPIC.js";
|
|
20
|
-
import "./chunk-EM225ITJ.js";
|
|
21
|
-
import "./chunk-ORO3PWKQ.js";
|
|
22
|
-
import "./chunk-7NVJVJID.js";
|
|
23
|
-
import "./chunk-VFUK3X5B.js";
|
|
24
|
-
import "./chunk-RXBVB2JM.js";
|
|
25
|
-
import "./chunk-JUUKWRBE.js";
|
|
26
|
-
import "./chunk-GGB4WL5A.js";
|
|
27
|
-
import "./chunk-RUIXF3YQ.js";
|
|
28
|
-
import "./chunk-HZF5P5UN.js";
|
|
29
|
-
import "./chunk-F3B2YJ76.js";
|
|
30
|
-
import "./chunk-4LJO56OJ.js";
|
|
31
|
-
import "./chunk-6GWA276C.js";
|
|
32
|
-
import "./chunk-OOUNJNMR.js";
|
|
33
|
-
import "./chunk-H4HBKISO.js";
|
|
34
|
-
import "./chunk-DLDRQHG5.js";
|
|
35
|
-
import "./chunk-IIOOO4FQ.js";
|
|
36
|
-
import "./chunk-MLKGABMK.js";
|
|
37
|
-
export {
|
|
38
|
-
bindSpawnAgent
|
|
39
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|