@sentry/junior 0.146.0 → 0.148.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-SLJADYE5.js → agent-hooks-VAUYT6PD.js} +10 -10
- package/dist/api/conversations/access.d.ts +2 -1
- 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 -295
- package/dist/api/conversations/event-list.d.ts +2 -192
- package/dist/api/conversations/list.d.ts +4 -66
- 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 +1 -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 +64 -29
- 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 +7 -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 +630 -564
- package/dist/app.js +369 -309
- package/dist/{catalog-runtime-RQIMSDPR.js → catalog-runtime-WADOZVTB.js} +5 -5
- package/dist/chat/actor.d.ts +4 -1
- package/dist/chat/agent/prompt.d.ts +0 -2
- package/dist/chat/agent/request.d.ts +4 -5
- package/dist/chat/agent/resume.d.ts +1 -0
- package/dist/chat/agent/sandbox.d.ts +2 -2
- package/dist/chat/agent/tools.d.ts +0 -2
- package/dist/chat/agent-dispatch/context.d.ts +2 -2
- package/dist/chat/agent-dispatch/types.d.ts +2 -2
- package/dist/chat/agent-invocations/types.d.ts +52 -0
- package/dist/chat/api-turns/work.d.ts +103 -0
- package/dist/chat/capabilities/jr-rpc-command.d.ts +2 -2
- package/dist/chat/configuration/service.d.ts +5 -2
- package/dist/chat/configuration/sql.d.ts +9 -0
- package/dist/chat/configuration/types.d.ts +17 -13
- package/dist/chat/conversations/history.d.ts +63 -0
- package/dist/chat/conversations/projection.d.ts +10 -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/credentials/unlink-provider.d.ts +2 -1
- package/dist/chat/credentials/user-token-store.d.ts +2 -0
- package/dist/chat/event-tasks/tool-support.d.ts +2 -0
- package/dist/chat/identities/sql.d.ts +8 -0
- package/dist/chat/logging.d.ts +2 -0
- package/dist/chat/mcp/auth-store.d.ts +0 -2
- package/dist/chat/mcp/oauth.d.ts +0 -2
- package/dist/chat/oauth-flow.d.ts +3 -1
- package/dist/chat/pi/client.d.ts +2 -0
- package/dist/chat/plugins/credential-hooks.d.ts +2 -0
- package/dist/chat/prompt.d.ts +0 -2
- package/dist/chat/resource-events/notification.d.ts +2 -1
- package/dist/chat/resource-events/store.d.ts +1 -1
- package/dist/chat/runtime/delivered-turn-state.d.ts +1 -4
- package/dist/chat/runtime/reply-executor.d.ts +1 -1
- package/dist/chat/runtime/slack-runtime.d.ts +2 -1
- package/dist/chat/runtime/thread-state.d.ts +8 -11
- package/dist/chat/runtime/turn-input.d.ts +4 -2
- package/dist/chat/runtime/turn-preparation.d.ts +11 -4
- package/dist/chat/sandbox/command-result.d.ts +2 -0
- package/dist/chat/sandbox/egress/schemas.d.ts +6 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +7 -5
- package/dist/chat/scheduled-tasks/tools/create.d.ts +4 -2
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +4 -2
- package/dist/chat/scheduled-tasks/tools/list.d.ts +4 -2
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +4 -2
- package/dist/chat/scheduled-tasks/tools/update.d.ts +4 -2
- package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -3
- package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
- package/dist/chat/services/provider-default-config.d.ts +2 -2
- package/dist/chat/services/subscribed-decision.d.ts +3 -0
- package/dist/chat/services/subscribed-reply-policy.d.ts +1 -0
- package/dist/chat/services/turn-result.d.ts +0 -3
- package/dist/chat/services/turn-router.d.ts +3 -0
- package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -1
- package/dist/chat/slack/assistant-thread/title.d.ts +0 -3
- package/dist/chat/slack/channel.d.ts +26 -0
- package/dist/chat/slack/dispatch-turn.d.ts +2 -1
- 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/tool-support/canvas/context.d.ts +11 -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/{tools → tool-support}/list/api.d.ts +8 -1
- package/dist/chat/slack/tool-support/list/params.d.ts +5 -0
- package/dist/chat/slack/tools/canvas/create.d.ts +3 -1
- package/dist/chat/slack/tools/canvas/edit.d.ts +2 -0
- package/dist/chat/slack/tools/canvas/read.d.ts +2 -0
- package/dist/chat/slack/tools/canvas/write.d.ts +2 -0
- package/dist/chat/slack/tools/{user-lookup.d.ts → channel-join.d.ts} +6 -5
- package/dist/chat/slack/tools/channel-list-messages.d.ts +5 -2
- package/dist/chat/slack/tools/conversation-message-search.d.ts +4 -8
- package/dist/chat/slack/tools/list/add-items.d.ts +4 -1
- package/dist/chat/slack/tools/list/create.d.ts +2 -0
- package/dist/chat/slack/tools/list/get-items.d.ts +5 -3
- package/dist/chat/slack/tools/list/update-item.d.ts +5 -1
- package/dist/chat/slack/tools/message-add-reaction.d.ts +3 -1
- package/dist/chat/slack/tools/public-search.d.ts +65 -2
- package/dist/chat/slack/tools/send-files.d.ts +3 -1
- package/dist/chat/slack/tools/thread-read.d.ts +4 -5
- package/dist/chat/slack/vision-cache.d.ts +5 -0
- package/dist/chat/source.d.ts +2 -0
- package/dist/chat/state/conversation.d.ts +4 -5
- 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/tool-support/structured-result.d.ts +1 -0
- package/dist/chat/tool-support/timed-out-tool-result.d.ts +11 -0
- package/dist/chat/tools/create-event-task.d.ts +2 -0
- package/dist/chat/tools/delete-event-task.d.ts +2 -0
- package/dist/chat/tools/handoff/tool.d.ts +2 -0
- package/dist/chat/tools/list-event-tasks.d.ts +2 -0
- package/dist/chat/tools/list-resource-event-subscriptions.d.ts +2 -0
- package/dist/chat/tools/runtime/report-progress.d.ts +2 -0
- package/dist/chat/tools/runtime/spawn-agent.d.ts +2 -0
- package/dist/chat/tools/search-conversation-events.d.ts +3 -1
- package/dist/chat/tools/search-resource-event-types.d.ts +2 -0
- package/dist/chat/tools/search-tools.d.ts +2 -0
- package/dist/chat/tools/skill/load-skill.d.ts +2 -0
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +2 -0
- package/dist/chat/tools/stop-watching-resources.d.ts +2 -0
- package/dist/chat/tools/system-time.d.ts +2 -0
- package/dist/chat/tools/types.d.ts +11 -10
- package/dist/chat/tools/update-event-task.d.ts +2 -0
- package/dist/chat/tools/user-lookup.d.ts +29 -0
- package/dist/chat/tools/watch-resource-events.d.ts +4 -2
- package/dist/chat/tools/web/fetch-tool.d.ts +2 -0
- package/dist/chat/tools/web/image-generate.d.ts +2 -0
- package/dist/chat/tools/web/search.d.ts +2 -0
- package/dist/{chunk-GYEKOX7N.js → chunk-2B3PT3V2.js} +1 -1
- package/dist/{chunk-JLMVCNXL.js → chunk-45LOR4PU.js} +22 -4
- package/dist/{chunk-FGHADGIC.js → chunk-4AQZYNHM.js} +2 -2
- package/dist/{chunk-W65V465O.js → chunk-4EA2SFK2.js} +66 -4
- package/dist/{chunk-MKRIZ4VG.js → chunk-4GXJUYJV.js} +4 -2
- package/dist/{chunk-F7REGDKO.js → chunk-55F4QU2V.js} +2 -1
- package/dist/{chunk-M6ZWP4RI.js → chunk-7OEIXFC3.js} +2 -2
- package/dist/{chunk-MCFIXAV5.js → chunk-D3WPMGEX.js} +55 -37
- package/dist/{chunk-AISNSNDV.js → chunk-D6YX4NNN.js} +22 -10
- package/dist/chunk-DUY5CDAM.js +36 -0
- package/dist/{chunk-B63BF443.js → chunk-EAI67NTM.js} +9 -1
- package/dist/{chunk-FEKQHPVA.js → chunk-EINWQFXI.js} +9 -8
- package/dist/chunk-GDFF3BQG.js +136 -0
- package/dist/{chunk-X22KCSCO.js → chunk-GXYDVZKM.js} +7 -5
- package/dist/{chunk-X2WMBTS3.js → chunk-HLPLT3NY.js} +8 -5
- package/dist/{chunk-PB222GIA.js → chunk-HWQGBIH7.js} +1 -1
- package/dist/chunk-IL4EDBMV.js +566 -0
- package/dist/{chunk-HQE6EJS5.js → chunk-LAZGHEYU.js} +1 -1
- package/dist/{chunk-QG7OOKIN.js → chunk-LE5H7LMT.js} +1 -1
- package/dist/chunk-LNVEIJ2L.js +48 -0
- package/dist/{chunk-JUA6VU2Z.js → chunk-OJCP3C3J.js} +12 -23
- package/dist/{chunk-37JJDS4H.js → chunk-POSZWRGL.js} +1 -1
- package/dist/{chunk-TCEJ7XXM.js → chunk-QOWHHM3F.js} +1 -1
- package/dist/{chunk-H6U2U3EP.js → chunk-RRJV5UR5.js} +304 -65
- package/dist/{chunk-OFPYOC3M.js → chunk-ULAU5ZGU.js} +127 -120
- package/dist/{chunk-V6SRLKUB.js → chunk-V2FXMOEA.js} +2 -2
- package/dist/{chunk-GDQEU4I7.js → chunk-VCYSOXON.js} +296 -526
- package/dist/{chunk-BLETMLRX.js → chunk-VMNRXKAH.js} +1374 -989
- package/dist/{chunk-37EVZP66.js → chunk-VRHTNBA6.js} +167 -92
- package/dist/{chunk-FXDDDSPL.js → chunk-VY6W3T43.js} +4 -4
- package/dist/{chunk-ZDGHGY74.js → chunk-WCN4YSH7.js} +13 -6
- package/dist/{chunk-PH4Q3A6W.js → chunk-WOONT5ZP.js} +1 -1
- package/dist/{chunk-47OSH2ZO.js → chunk-XJ42NBP5.js} +395 -206
- package/dist/{chunk-SCGVWUZX.js → chunk-ZCHIC2GM.js} +92 -75
- package/dist/chunk-ZPL2RR7F.js +798 -0
- package/dist/cli/chat.js +33 -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/location-configurations.d.ts +127 -0
- package/dist/db/schema.d.ts +150 -3
- package/dist/{db-WWOMXWTT.js → db-XUKZRFFK.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-A6ZZX74U.js → oauth-callback-server-LPZMMGFI.js} +25 -26
- package/dist/{runner-KSGB2UAV.js → runner-DGKUTMPX.js} +22 -41
- package/dist/{skills-26QPWKVS.js → skills-P7YUFSXM.js} +6 -6
- package/dist/spawn-DSK3ZEVD.js +38 -0
- package/dist/{validation-OPSRGFGH.js → validation-S7U5M5NR.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-VMSW7STJ.js → work-GAA7TVAD.js} +18 -19
- package/dist/{worker-2JNFB7C7.js → worker-JXPJH3QB.js} +11 -10
- package/migrations/0024_misty_typhoid_mary.sql +12 -0
- package/migrations/meta/0024_snapshot.json +2275 -0
- package/migrations/meta/_journal.json +7 -0
- 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/canvas/context.d.ts +0 -18
- package/dist/chat/slack/tools/channel-access.d.ts +0 -30
- package/dist/chat/state/artifacts.d.ts +0 -30
- package/dist/chat/tool-support/turn-deadline-result.d.ts +0 -3
- package/dist/chunk-HLXXQI5Q.js +0 -238
- package/dist/chunk-LVW7BLLT.js +0 -115
- package/dist/chunk-Q6QZTTLS.js +0 -55
- package/dist/chunk-QSXZ42KX.js +0 -285
- package/dist/chunk-R776HKPK.js +0 -81
- package/dist/chunk-T5GXFFLA.js +0 -67
- package/dist/spawn-5LAJXZ2P.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}/slack-message-url.d.ts +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { SlackActionToken } from "@/chat/slack/action-token";
|
|
2
|
-
/** Create
|
|
3
|
-
export declare function createSlackPublicSearchTool(actionToken
|
|
2
|
+
/** Create the public-channel Slack search tool. */
|
|
3
|
+
export declare function createSlackPublicSearchTool(actionToken?: SlackActionToken): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
4
|
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
5
5
|
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
6
6
|
prepareArguments(args: unknown): {
|
|
7
7
|
query: string;
|
|
8
|
+
content_types?: ("messages" | "files" | "channels" | "users")[] | undefined;
|
|
8
9
|
after?: number | undefined;
|
|
9
10
|
before?: number | undefined;
|
|
10
11
|
cursor?: string | undefined;
|
|
@@ -15,6 +16,7 @@ export declare function createSlackPublicSearchTool(actionToken: SlackActionToke
|
|
|
15
16
|
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
16
17
|
[x: string]: unknown;
|
|
17
18
|
query: string;
|
|
19
|
+
content_types: ("messages" | "files" | "channels" | "users")[];
|
|
18
20
|
count: number;
|
|
19
21
|
messages: {
|
|
20
22
|
channel_id: string;
|
|
@@ -26,8 +28,38 @@ export declare function createSlackPublicSearchTool(actionToken: SlackActionToke
|
|
|
26
28
|
channel_name?: string | undefined;
|
|
27
29
|
is_author_bot?: boolean | undefined;
|
|
28
30
|
}[];
|
|
31
|
+
files: {
|
|
32
|
+
file_id: string;
|
|
33
|
+
title?: string | undefined;
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
filetype?: string | undefined;
|
|
36
|
+
user_id?: string | undefined;
|
|
37
|
+
user_name?: string | undefined;
|
|
38
|
+
channel_id?: string | undefined;
|
|
39
|
+
channel_name?: string | undefined;
|
|
40
|
+
permalink?: string | undefined;
|
|
41
|
+
content?: string | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
channels: {
|
|
44
|
+
channel_id: string;
|
|
45
|
+
channel_name?: string | undefined;
|
|
46
|
+
is_private?: boolean | undefined;
|
|
47
|
+
is_member?: boolean | undefined;
|
|
48
|
+
topic?: string | undefined;
|
|
49
|
+
purpose?: string | undefined;
|
|
50
|
+
permalink?: string | undefined;
|
|
51
|
+
}[];
|
|
52
|
+
users: {
|
|
53
|
+
user_id: string;
|
|
54
|
+
user_name?: string | undefined;
|
|
55
|
+
real_name?: string | undefined;
|
|
56
|
+
display_name?: string | undefined;
|
|
57
|
+
title?: string | undefined;
|
|
58
|
+
permalink?: string | undefined;
|
|
59
|
+
}[];
|
|
29
60
|
target?: string | undefined;
|
|
30
61
|
truncated?: boolean | undefined;
|
|
62
|
+
timed_out?: boolean | undefined;
|
|
31
63
|
continuation?: {
|
|
32
64
|
arguments: Record<string, unknown>;
|
|
33
65
|
reason?: string | undefined;
|
|
@@ -36,6 +68,7 @@ export declare function createSlackPublicSearchTool(actionToken: SlackActionToke
|
|
|
36
68
|
} | Promise<{
|
|
37
69
|
[x: string]: unknown;
|
|
38
70
|
query: string;
|
|
71
|
+
content_types: ("messages" | "files" | "channels" | "users")[];
|
|
39
72
|
count: number;
|
|
40
73
|
messages: {
|
|
41
74
|
channel_id: string;
|
|
@@ -47,8 +80,38 @@ export declare function createSlackPublicSearchTool(actionToken: SlackActionToke
|
|
|
47
80
|
channel_name?: string | undefined;
|
|
48
81
|
is_author_bot?: boolean | undefined;
|
|
49
82
|
}[];
|
|
83
|
+
files: {
|
|
84
|
+
file_id: string;
|
|
85
|
+
title?: string | undefined;
|
|
86
|
+
name?: string | undefined;
|
|
87
|
+
filetype?: string | undefined;
|
|
88
|
+
user_id?: string | undefined;
|
|
89
|
+
user_name?: string | undefined;
|
|
90
|
+
channel_id?: string | undefined;
|
|
91
|
+
channel_name?: string | undefined;
|
|
92
|
+
permalink?: string | undefined;
|
|
93
|
+
content?: string | undefined;
|
|
94
|
+
}[];
|
|
95
|
+
channels: {
|
|
96
|
+
channel_id: string;
|
|
97
|
+
channel_name?: string | undefined;
|
|
98
|
+
is_private?: boolean | undefined;
|
|
99
|
+
is_member?: boolean | undefined;
|
|
100
|
+
topic?: string | undefined;
|
|
101
|
+
purpose?: string | undefined;
|
|
102
|
+
permalink?: string | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
users: {
|
|
105
|
+
user_id: string;
|
|
106
|
+
user_name?: string | undefined;
|
|
107
|
+
real_name?: string | undefined;
|
|
108
|
+
display_name?: string | undefined;
|
|
109
|
+
title?: string | undefined;
|
|
110
|
+
permalink?: string | undefined;
|
|
111
|
+
}[];
|
|
50
112
|
target?: string | undefined;
|
|
51
113
|
truncated?: boolean | undefined;
|
|
114
|
+
timed_out?: boolean | undefined;
|
|
52
115
|
continuation?: {
|
|
53
116
|
arguments: Record<string, unknown>;
|
|
54
117
|
reason?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SlackToolContext } from "@/chat/slack/
|
|
1
|
+
import type { SlackToolContext } from "@/chat/slack/tool-support/context";
|
|
2
2
|
import { type SandboxFileMaterializationInput, type SandboxFileUpload } from "@/chat/tools/sandbox/file-uploads";
|
|
3
3
|
import type { ToolState } from "@/chat/tools/types";
|
|
4
4
|
/** Convert a model-supplied sandbox file path into bytes safe for Slack upload. */
|
|
@@ -22,6 +22,7 @@ export declare function createSendFilesTool(context: SlackToolContext, state: To
|
|
|
22
22
|
file_count: number;
|
|
23
23
|
thread_ts: string;
|
|
24
24
|
truncated?: boolean | undefined;
|
|
25
|
+
timed_out?: boolean | undefined;
|
|
25
26
|
continuation?: {
|
|
26
27
|
arguments: Record<string, unknown>;
|
|
27
28
|
reason?: string | undefined;
|
|
@@ -35,6 +36,7 @@ export declare function createSendFilesTool(context: SlackToolContext, state: To
|
|
|
35
36
|
file_count: number;
|
|
36
37
|
thread_ts: string;
|
|
37
38
|
truncated?: boolean | undefined;
|
|
39
|
+
timed_out?: boolean | undefined;
|
|
38
40
|
continuation?: {
|
|
39
41
|
arguments: Record<string, unknown>;
|
|
40
42
|
reason?: string | undefined;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { SlackToolContext } from "@/chat/slack/tools/context";
|
|
1
|
+
import type { SlackToolContext } from "@/chat/slack/tool-support/context";
|
|
3
2
|
/** Create a tool that reads a Slack thread from a shared message URL or explicit coordinates. */
|
|
4
|
-
export declare function createSlackThreadReadTool(context: SlackToolContext,
|
|
5
|
-
visibilityStore?: DestinationVisibilityReader;
|
|
6
|
-
}): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
3
|
+
export declare function createSlackThreadReadTool(context: SlackToolContext): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
7
4
|
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
8
5
|
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
9
6
|
prepareArguments(args: unknown): {
|
|
@@ -17,6 +14,7 @@ export declare function createSlackThreadReadTool(context: SlackToolContext, dep
|
|
|
17
14
|
[x: string]: unknown;
|
|
18
15
|
target?: string | undefined;
|
|
19
16
|
truncated?: boolean | undefined;
|
|
17
|
+
timed_out?: boolean | undefined;
|
|
20
18
|
continuation?: {
|
|
21
19
|
arguments: Record<string, unknown>;
|
|
22
20
|
reason?: string | undefined;
|
|
@@ -25,6 +23,7 @@ export declare function createSlackThreadReadTool(context: SlackToolContext, dep
|
|
|
25
23
|
[x: string]: unknown;
|
|
26
24
|
target?: string | undefined;
|
|
27
25
|
truncated?: boolean | undefined;
|
|
26
|
+
timed_out?: boolean | undefined;
|
|
28
27
|
continuation?: {
|
|
29
28
|
arguments: Record<string, unknown>;
|
|
30
29
|
reason?: string | undefined;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ConversationVisionState } from "@/chat/state/conversation";
|
|
2
|
+
/** Load the disposable image-analysis cache for one conversation. */
|
|
3
|
+
export declare function loadConversationVisionCache(conversationId: string): Promise<ConversationVisionState>;
|
|
4
|
+
/** Replace the disposable image-analysis cache with a bounded snapshot. */
|
|
5
|
+
export declare function persistConversationVisionCache(conversationId: string, vision: ConversationVisionState): Promise<void>;
|
package/dist/chat/source.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type Source } from "@sentry/junior-plugin-api";
|
|
2
2
|
/** Source coordinates reduced to the stable locator for one conversation. */
|
|
3
3
|
export type SessionSource = Extract<Source, {
|
|
4
|
+
platform: "web";
|
|
5
|
+
}> | Extract<Source, {
|
|
4
6
|
platform: "local";
|
|
5
7
|
}> | Omit<Extract<Source, {
|
|
6
8
|
platform: "slack";
|
|
@@ -66,13 +66,12 @@ export interface ThreadConversationState {
|
|
|
66
66
|
/** Safely coerce an unknown persisted value into a ThreadConversationState. */
|
|
67
67
|
export declare function coerceThreadConversationState(value: unknown): ThreadConversationState;
|
|
68
68
|
/**
|
|
69
|
-
* Wrap conversation
|
|
69
|
+
* Wrap active conversation control into the thread scratch envelope.
|
|
70
70
|
*
|
|
71
|
-
* Visible
|
|
72
|
-
*
|
|
73
|
-
* authority yet.
|
|
71
|
+
* Visible history lives in SQL. Image summaries use a separate disposable
|
|
72
|
+
* cache, so thread scratch does not retain them.
|
|
74
73
|
*/
|
|
75
74
|
export declare function buildConversationStatePatch(conversation: ThreadConversationState): {
|
|
76
|
-
conversation: Pick<ThreadConversationState, "schemaVersion" | "processing"
|
|
75
|
+
conversation: Pick<ThreadConversationState, "schemaVersion" | "processing">;
|
|
77
76
|
};
|
|
78
77
|
export {};
|
|
@@ -46,6 +46,7 @@ interface TurnCheckpointWrite {
|
|
|
46
46
|
destinationVisibility?: ConversationPrivacy;
|
|
47
47
|
dispatchId?: string;
|
|
48
48
|
dispatchOutcome?: AgentDispatchOutcome;
|
|
49
|
+
publishExternally?: boolean;
|
|
49
50
|
source?: Source;
|
|
50
51
|
surface?: AgentTurnSurface;
|
|
51
52
|
turnStartMessageIndex?: number;
|
|
@@ -16,12 +16,13 @@ export declare const CONVERSATION_WORK_MAX_DELIVERY_ATTEMPTS = 5;
|
|
|
16
16
|
export declare const CONVERSATION_WORK_MAX_RETRIES = 5;
|
|
17
17
|
declare const inboundMessageSourceSchema: z.ZodEnum<{
|
|
18
18
|
slack: "slack";
|
|
19
|
-
plugin: "plugin";
|
|
20
19
|
local: "local";
|
|
20
|
+
web: "web";
|
|
21
|
+
plugin: "plugin";
|
|
21
22
|
api: "api";
|
|
22
23
|
internal: "internal";
|
|
23
|
-
resource_event: "resource_event";
|
|
24
24
|
scheduler: "scheduler";
|
|
25
|
+
resource_event: "resource_event";
|
|
25
26
|
}>;
|
|
26
27
|
export type Source = z.output<typeof inboundMessageSourceSchema>;
|
|
27
28
|
export type ExecutionStatus = "paused" | "failed" | "idle" | "pending" | "running";
|
|
@@ -37,6 +38,8 @@ export declare const inboundMessageDeliverySchema: z.ZodEnum<{
|
|
|
37
38
|
defer: "defer";
|
|
38
39
|
interrupt: "interrupt";
|
|
39
40
|
}>;
|
|
41
|
+
/** Whether this turn also publishes assistant output to the conversation destination. */
|
|
42
|
+
export declare const publishExternallySchema: z.ZodBoolean;
|
|
40
43
|
export type InboundMessageDelivery = z.output<typeof inboundMessageDeliverySchema>;
|
|
41
44
|
/** Canonical durable mailbox entry owned by task execution. */
|
|
42
45
|
export declare const inboundMessageSchema: z.ZodObject<{
|
|
@@ -64,14 +67,16 @@ export declare const inboundMessageSchema: z.ZodObject<{
|
|
|
64
67
|
text: z.ZodString;
|
|
65
68
|
}, z.core.$strict>;
|
|
66
69
|
receivedAtMs: z.ZodNumber;
|
|
70
|
+
publishExternally: z.ZodBoolean;
|
|
67
71
|
source: z.ZodEnum<{
|
|
68
72
|
slack: "slack";
|
|
69
|
-
plugin: "plugin";
|
|
70
73
|
local: "local";
|
|
74
|
+
web: "web";
|
|
75
|
+
plugin: "plugin";
|
|
71
76
|
api: "api";
|
|
72
77
|
internal: "internal";
|
|
73
|
-
resource_event: "resource_event";
|
|
74
78
|
scheduler: "scheduler";
|
|
79
|
+
resource_event: "resource_event";
|
|
75
80
|
}>;
|
|
76
81
|
}, z.core.$strict>;
|
|
77
82
|
export type InboundMessage = z.output<typeof inboundMessageSchema>;
|
|
@@ -27,7 +27,7 @@ export declare function recordConversationRetry(args: {
|
|
|
27
27
|
leaseToken: string;
|
|
28
28
|
nowMs?: number;
|
|
29
29
|
state?: StateAdapter;
|
|
30
|
-
}): Promise<"
|
|
30
|
+
}): Promise<"lost_lease" | "recorded" | "stopped">;
|
|
31
31
|
/** Count mailbox messages that have not yet reached the conversation event log. */
|
|
32
32
|
export declare function countPendingConversationMessages(conversation: Conversation): number;
|
|
33
33
|
/** Return whether a conversation has pending or resumable execution work. */
|
|
@@ -114,7 +114,8 @@ export declare function drainConversationMailbox(args: Parameters<typeof workSta
|
|
|
114
114
|
metadata?: Record<string, unknown> | undefined;
|
|
115
115
|
};
|
|
116
116
|
receivedAtMs: number;
|
|
117
|
-
|
|
117
|
+
publishExternally: boolean;
|
|
118
|
+
source: "slack" | "local" | "web" | "plugin" | "api" | "internal" | "scheduler" | "resource_event";
|
|
118
119
|
attemptCount?: number | undefined;
|
|
119
120
|
destination?: {
|
|
120
121
|
platform: "slack";
|
|
@@ -43,6 +43,7 @@ export interface TurnRecord {
|
|
|
43
43
|
*/
|
|
44
44
|
actors: Actor[];
|
|
45
45
|
resumeReason?: TurnPauseReason;
|
|
46
|
+
publishExternally?: boolean;
|
|
46
47
|
resumedFromSliceId?: number;
|
|
47
48
|
turnId: string;
|
|
48
49
|
sliceId: number;
|
|
@@ -96,6 +97,7 @@ export declare function upsertTurnRecord(args: {
|
|
|
96
97
|
trailingMessageProvenance?: ConversationMessageProvenance[];
|
|
97
98
|
actor?: Actor;
|
|
98
99
|
resumeReason?: TurnPauseReason;
|
|
100
|
+
publishExternally?: boolean;
|
|
99
101
|
errorMessage?: string;
|
|
100
102
|
resumedFromSliceId?: number;
|
|
101
103
|
traceId?: string;
|
|
@@ -9,6 +9,8 @@ export interface ConversationWorkerContext {
|
|
|
9
9
|
checkIn(): Promise<boolean>;
|
|
10
10
|
conversationId: string;
|
|
11
11
|
destination?: Destination;
|
|
12
|
+
publishExternally: boolean;
|
|
13
|
+
/** True when the current execution slice must stop at its next safe boundary. */
|
|
12
14
|
shouldYield(): boolean;
|
|
13
15
|
}
|
|
14
16
|
export interface InboxAttempt {
|
|
@@ -13,7 +13,7 @@ export declare function readViewerTaskExecutions(user: User, kind: "scheduled" |
|
|
|
13
13
|
/** Resolve the source task for one conversation when a terminal execution links it. */
|
|
14
14
|
export declare function readConversationSourceTask(args: {
|
|
15
15
|
conversationId: string;
|
|
16
|
-
|
|
16
|
+
viewer?: User;
|
|
17
17
|
}): Promise<ConversationSourceTask | undefined>;
|
|
18
18
|
/** Delete one viewer-owned scheduled or event task. */
|
|
19
19
|
export declare function deleteViewerTask(user: User, kind: "scheduled" | "event", id: string): Promise<void>;
|
|
@@ -13,6 +13,7 @@ export declare const juniorToolBoundContinuationSchema: z.ZodObject<{
|
|
|
13
13
|
export declare const juniorToolOutputSchema: z.ZodObject<{
|
|
14
14
|
target: z.ZodOptional<z.ZodString>;
|
|
15
15
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
16
17
|
continuation: z.ZodOptional<z.ZodObject<{
|
|
17
18
|
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
19
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AfterToolCallResult, AgentToolResult } from "@earendil-works/pi-agent-core";
|
|
2
|
+
/**
|
|
3
|
+
* Project a host-preempted tool attempt onto the normal tool-result shape.
|
|
4
|
+
*
|
|
5
|
+
* Only rewrite results that mark the attempt itself as aborted. A finished
|
|
6
|
+
* sibling tool that settles after the host abort signal must keep its real
|
|
7
|
+
* outcome. Host continuity stays in session state (`resumeReason: "timeout"`)
|
|
8
|
+
* and automatic continuation. The model only needs the same fact bash already
|
|
9
|
+
* reports for command timeouts: this attempt timed out.
|
|
10
|
+
*/
|
|
11
|
+
export declare function projectTimedOutToolResult(result: AgentToolResult<unknown>): AfterToolCallResult | undefined;
|
|
@@ -35,6 +35,7 @@ export declare function createEventTaskTool(context: ToolRuntimeContext, catalog
|
|
|
35
35
|
};
|
|
36
36
|
target?: string | undefined;
|
|
37
37
|
truncated?: boolean | undefined;
|
|
38
|
+
timed_out?: boolean | undefined;
|
|
38
39
|
continuation?: {
|
|
39
40
|
arguments: Record<string, unknown>;
|
|
40
41
|
reason?: string | undefined;
|
|
@@ -58,6 +59,7 @@ export declare function createEventTaskTool(context: ToolRuntimeContext, catalog
|
|
|
58
59
|
};
|
|
59
60
|
target?: string | undefined;
|
|
60
61
|
truncated?: boolean | undefined;
|
|
62
|
+
timed_out?: boolean | undefined;
|
|
61
63
|
continuation?: {
|
|
62
64
|
arguments: Record<string, unknown>;
|
|
63
65
|
reason?: string | undefined;
|
|
@@ -26,6 +26,7 @@ export declare function createDeleteEventTaskTool(context: ToolRuntimeContext, c
|
|
|
26
26
|
};
|
|
27
27
|
target?: string | undefined;
|
|
28
28
|
truncated?: boolean | undefined;
|
|
29
|
+
timed_out?: boolean | undefined;
|
|
29
30
|
continuation?: {
|
|
30
31
|
arguments: Record<string, unknown>;
|
|
31
32
|
reason?: string | undefined;
|
|
@@ -49,6 +50,7 @@ export declare function createDeleteEventTaskTool(context: ToolRuntimeContext, c
|
|
|
49
50
|
};
|
|
50
51
|
target?: string | undefined;
|
|
51
52
|
truncated?: boolean | undefined;
|
|
53
|
+
timed_out?: boolean | undefined;
|
|
52
54
|
continuation?: {
|
|
53
55
|
arguments: Record<string, unknown>;
|
|
54
56
|
reason?: string | undefined;
|
|
@@ -12,6 +12,7 @@ export declare function createHandoffTool(handoff: NonNullable<ToolRuntimeContex
|
|
|
12
12
|
model_profile: string;
|
|
13
13
|
target?: string | undefined;
|
|
14
14
|
truncated?: boolean | undefined;
|
|
15
|
+
timed_out?: boolean | undefined;
|
|
15
16
|
continuation?: {
|
|
16
17
|
arguments: Record<string, unknown>;
|
|
17
18
|
reason?: string | undefined;
|
|
@@ -21,6 +22,7 @@ export declare function createHandoffTool(handoff: NonNullable<ToolRuntimeContex
|
|
|
21
22
|
model_profile: string;
|
|
22
23
|
target?: string | undefined;
|
|
23
24
|
truncated?: boolean | undefined;
|
|
25
|
+
timed_out?: boolean | undefined;
|
|
24
26
|
continuation?: {
|
|
25
27
|
arguments: Record<string, unknown>;
|
|
26
28
|
reason?: string | undefined;
|
|
@@ -24,6 +24,7 @@ export declare function createListEventTasksTool(context: ToolRuntimeContext, ca
|
|
|
24
24
|
}[];
|
|
25
25
|
truncated: boolean;
|
|
26
26
|
target?: string | undefined;
|
|
27
|
+
timed_out?: boolean | undefined;
|
|
27
28
|
continuation?: {
|
|
28
29
|
arguments: Record<string, unknown>;
|
|
29
30
|
reason?: string | undefined;
|
|
@@ -47,6 +48,7 @@ export declare function createListEventTasksTool(context: ToolRuntimeContext, ca
|
|
|
47
48
|
}[];
|
|
48
49
|
truncated: boolean;
|
|
49
50
|
target?: string | undefined;
|
|
51
|
+
timed_out?: boolean | undefined;
|
|
50
52
|
continuation?: {
|
|
51
53
|
arguments: Record<string, unknown>;
|
|
52
54
|
reason?: string | undefined;
|
|
@@ -17,6 +17,7 @@ export declare function createListResourceEventSubscriptionsTool(context: ToolRu
|
|
|
17
17
|
}[];
|
|
18
18
|
target?: string | undefined;
|
|
19
19
|
truncated?: boolean | undefined;
|
|
20
|
+
timed_out?: boolean | undefined;
|
|
20
21
|
continuation?: {
|
|
21
22
|
arguments: Record<string, unknown>;
|
|
22
23
|
reason?: string | undefined;
|
|
@@ -34,6 +35,7 @@ export declare function createListResourceEventSubscriptionsTool(context: ToolRu
|
|
|
34
35
|
}[];
|
|
35
36
|
target?: string | undefined;
|
|
36
37
|
truncated?: boolean | undefined;
|
|
38
|
+
timed_out?: boolean | undefined;
|
|
37
39
|
continuation?: {
|
|
38
40
|
arguments: Record<string, unknown>;
|
|
39
41
|
reason?: string | undefined;
|
|
@@ -9,6 +9,7 @@ export declare function createReportProgressTool(): Omit<import("../definition")
|
|
|
9
9
|
[x: string]: unknown;
|
|
10
10
|
target?: string | undefined;
|
|
11
11
|
truncated?: boolean | undefined;
|
|
12
|
+
timed_out?: boolean | undefined;
|
|
12
13
|
continuation?: {
|
|
13
14
|
arguments: Record<string, unknown>;
|
|
14
15
|
reason?: string | undefined;
|
|
@@ -17,6 +18,7 @@ export declare function createReportProgressTool(): Omit<import("../definition")
|
|
|
17
18
|
[x: string]: unknown;
|
|
18
19
|
target?: string | undefined;
|
|
19
20
|
truncated?: boolean | undefined;
|
|
21
|
+
timed_out?: boolean | undefined;
|
|
20
22
|
continuation?: {
|
|
21
23
|
arguments: Record<string, unknown>;
|
|
22
24
|
reason?: string | undefined;
|
|
@@ -14,6 +14,7 @@ export declare function createSpawnAgentTool(spawnAgent: NonNullable<ToolRuntime
|
|
|
14
14
|
invocation_id: string;
|
|
15
15
|
target?: string | undefined;
|
|
16
16
|
truncated?: boolean | undefined;
|
|
17
|
+
timed_out?: boolean | undefined;
|
|
17
18
|
continuation?: {
|
|
18
19
|
arguments: Record<string, unknown>;
|
|
19
20
|
reason?: string | undefined;
|
|
@@ -23,6 +24,7 @@ export declare function createSpawnAgentTool(spawnAgent: NonNullable<ToolRuntime
|
|
|
23
24
|
invocation_id: string;
|
|
24
25
|
target?: string | undefined;
|
|
25
26
|
truncated?: boolean | undefined;
|
|
27
|
+
timed_out?: boolean | undefined;
|
|
26
28
|
continuation?: {
|
|
27
29
|
arguments: Record<string, unknown>;
|
|
28
30
|
reason?: string | undefined;
|
|
@@ -9,7 +9,7 @@ export declare function createSearchConversationEventsTool(context: ToolRuntimeC
|
|
|
9
9
|
after_seq?: number | null | undefined;
|
|
10
10
|
before_seq?: number | null | undefined;
|
|
11
11
|
limit?: number | null | undefined;
|
|
12
|
-
types?: ("message" | "
|
|
12
|
+
types?: ("message" | "message_handled" | "assistant_message" | "turn_routed" | "guardian_action_reviewed" | "turn_context" | "structured_event" | "compaction" | "handoff" | "user_message" | "tool_result" | "mcp_provider_connected" | "authorization_requested" | "authorization_completed" | "tool_execution_started" | "message_updated" | "messages_summarized" | "turn_started" | "turn_completed" | "turn_failed" | "subagent_started" | "subagent_ended")[] | null | undefined;
|
|
13
13
|
};
|
|
14
14
|
execute?: ((input: unknown, options: import("./definition").ToolExecuteOptions) => {
|
|
15
15
|
[x: string]: unknown;
|
|
@@ -25,6 +25,7 @@ export declare function createSearchConversationEventsTool(context: ToolRuntimeC
|
|
|
25
25
|
has_newer: boolean;
|
|
26
26
|
target?: string | undefined;
|
|
27
27
|
truncated?: boolean | undefined;
|
|
28
|
+
timed_out?: boolean | undefined;
|
|
28
29
|
continuation?: {
|
|
29
30
|
arguments: Record<string, unknown>;
|
|
30
31
|
reason?: string | undefined;
|
|
@@ -44,6 +45,7 @@ export declare function createSearchConversationEventsTool(context: ToolRuntimeC
|
|
|
44
45
|
has_newer: boolean;
|
|
45
46
|
target?: string | undefined;
|
|
46
47
|
truncated?: boolean | undefined;
|
|
48
|
+
timed_out?: boolean | undefined;
|
|
47
49
|
continuation?: {
|
|
48
50
|
arguments: Record<string, unknown>;
|
|
49
51
|
reason?: string | undefined;
|
|
@@ -20,6 +20,7 @@ export declare function createSearchResourceEventTypesTool(catalog: ResourceEven
|
|
|
20
20
|
}[];
|
|
21
21
|
target?: string | undefined;
|
|
22
22
|
truncated?: boolean | undefined;
|
|
23
|
+
timed_out?: boolean | undefined;
|
|
23
24
|
continuation?: {
|
|
24
25
|
arguments: Record<string, unknown>;
|
|
25
26
|
reason?: string | undefined;
|
|
@@ -36,6 +37,7 @@ export declare function createSearchResourceEventTypesTool(catalog: ResourceEven
|
|
|
36
37
|
}[];
|
|
37
38
|
target?: string | undefined;
|
|
38
39
|
truncated?: boolean | undefined;
|
|
40
|
+
timed_out?: boolean | undefined;
|
|
39
41
|
continuation?: {
|
|
40
42
|
arguments: Record<string, unknown>;
|
|
41
43
|
reason?: string | undefined;
|
|
@@ -34,6 +34,7 @@ export declare function createSearchToolsTool(catalogTools: Record<string, AnyTo
|
|
|
34
34
|
}[];
|
|
35
35
|
target?: string | undefined;
|
|
36
36
|
truncated?: boolean | undefined;
|
|
37
|
+
timed_out?: boolean | undefined;
|
|
37
38
|
continuation?: {
|
|
38
39
|
arguments: Record<string, unknown>;
|
|
39
40
|
reason?: string | undefined;
|
|
@@ -61,6 +62,7 @@ export declare function createSearchToolsTool(catalogTools: Record<string, AnyTo
|
|
|
61
62
|
}[];
|
|
62
63
|
target?: string | undefined;
|
|
63
64
|
truncated?: boolean | undefined;
|
|
65
|
+
timed_out?: boolean | undefined;
|
|
64
66
|
continuation?: {
|
|
65
67
|
arguments: Record<string, unknown>;
|
|
66
68
|
reason?: string | undefined;
|
|
@@ -24,6 +24,7 @@ export declare function createLoadSkillTool(availableSkills: SkillMetadata[], op
|
|
|
24
24
|
[x: string]: unknown;
|
|
25
25
|
target?: string | undefined;
|
|
26
26
|
truncated?: boolean | undefined;
|
|
27
|
+
timed_out?: boolean | undefined;
|
|
27
28
|
continuation?: {
|
|
28
29
|
arguments: Record<string, unknown>;
|
|
29
30
|
reason?: string | undefined;
|
|
@@ -32,6 +33,7 @@ export declare function createLoadSkillTool(availableSkills: SkillMetadata[], op
|
|
|
32
33
|
[x: string]: unknown;
|
|
33
34
|
target?: string | undefined;
|
|
34
35
|
truncated?: boolean | undefined;
|
|
36
|
+
timed_out?: boolean | undefined;
|
|
35
37
|
continuation?: {
|
|
36
38
|
arguments: Record<string, unknown>;
|
|
37
39
|
reason?: string | undefined;
|
|
@@ -43,6 +43,7 @@ export declare function createSearchMcpToolsTool(mcpToolManager: SearchMcpToolMa
|
|
|
43
43
|
}[];
|
|
44
44
|
target?: string | undefined;
|
|
45
45
|
truncated?: boolean | undefined;
|
|
46
|
+
timed_out?: boolean | undefined;
|
|
46
47
|
continuation?: {
|
|
47
48
|
arguments: Record<string, unknown>;
|
|
48
49
|
reason?: string | undefined;
|
|
@@ -70,6 +71,7 @@ export declare function createSearchMcpToolsTool(mcpToolManager: SearchMcpToolMa
|
|
|
70
71
|
}[];
|
|
71
72
|
target?: string | undefined;
|
|
72
73
|
truncated?: boolean | undefined;
|
|
74
|
+
timed_out?: boolean | undefined;
|
|
73
75
|
continuation?: {
|
|
74
76
|
arguments: Record<string, unknown>;
|
|
75
77
|
reason?: string | undefined;
|
|
@@ -11,6 +11,7 @@ export declare function createStopWatchingResourcesTool(context: ToolRuntimeCont
|
|
|
11
11
|
stoppedIds: string[];
|
|
12
12
|
target?: string | undefined;
|
|
13
13
|
truncated?: boolean | undefined;
|
|
14
|
+
timed_out?: boolean | undefined;
|
|
14
15
|
continuation?: {
|
|
15
16
|
arguments: Record<string, unknown>;
|
|
16
17
|
reason?: string | undefined;
|
|
@@ -20,6 +21,7 @@ export declare function createStopWatchingResourcesTool(context: ToolRuntimeCont
|
|
|
20
21
|
stoppedIds: string[];
|
|
21
22
|
target?: string | undefined;
|
|
22
23
|
truncated?: boolean | undefined;
|
|
24
|
+
timed_out?: boolean | undefined;
|
|
23
25
|
continuation?: {
|
|
24
26
|
arguments: Record<string, unknown>;
|
|
25
27
|
reason?: string | undefined;
|
|
@@ -19,6 +19,7 @@ export declare function createSystemTimeTool(): Omit<import("./definition").AnyT
|
|
|
19
19
|
timezone_offset_minutes: number;
|
|
20
20
|
target?: string | undefined;
|
|
21
21
|
truncated?: boolean | undefined;
|
|
22
|
+
timed_out?: boolean | undefined;
|
|
22
23
|
continuation?: {
|
|
23
24
|
arguments: Record<string, unknown>;
|
|
24
25
|
reason?: string | undefined;
|
|
@@ -32,6 +33,7 @@ export declare function createSystemTimeTool(): Omit<import("./definition").AnyT
|
|
|
32
33
|
timezone_offset_minutes: number;
|
|
33
34
|
target?: string | undefined;
|
|
34
35
|
truncated?: boolean | undefined;
|
|
36
|
+
timed_out?: boolean | undefined;
|
|
35
37
|
continuation?: {
|
|
36
38
|
arguments: Record<string, unknown>;
|
|
37
39
|
reason?: string | undefined;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { FileUpload } from "chat";
|
|
2
|
-
import type { Destination, Identity, LocalDestination, LocalSource, PluginEgress, SlackDestination, SlackSource, Source, User } from "@sentry/junior-plugin-api";
|
|
2
|
+
import type { WebSource, Destination, Identity, LocalDestination, LocalSource, PluginEgress, SlackDestination, SlackSource, Source, User } from "@sentry/junior-plugin-api";
|
|
3
3
|
import type { McpToolManager } from "@/chat/mcp/tool-manager";
|
|
4
4
|
import type { SandboxWorkspace } from "@/chat/sandbox/workspace";
|
|
5
5
|
import type { AgentTurnSurface } from "@/chat/task-execution/checkpoint";
|
|
6
|
-
import type { ThreadArtifactsState } from "@/chat/state/artifacts";
|
|
7
6
|
import type { Skill } from "@/chat/skills";
|
|
8
7
|
import type { LoadSkillMetadata } from "@/chat/tools/skill/load-skill";
|
|
9
8
|
import type { JuniorToolOutput } from "@/chat/tool-support/structured-result";
|
|
10
|
-
import type { LocalActor, Actor, SlackActor } from "@/chat/actor";
|
|
9
|
+
import type { WebActor, LocalActor, Actor, SlackActor } from "@/chat/actor";
|
|
11
10
|
import type { SlackActionToken } from "@/chat/slack/action-token";
|
|
12
11
|
import type { ModelProfile } from "@/chat/model-profile";
|
|
13
12
|
import type { GeneratedArtifactFileRef } from "@/chat/tools/sandbox/file-uploads";
|
|
@@ -45,7 +44,6 @@ export interface ToolHooks {
|
|
|
45
44
|
* generating tool reports success.
|
|
46
45
|
*/
|
|
47
46
|
writeGeneratedArtifacts?: (files: FileUpload[]) => GeneratedArtifactFileRef[] | Promise<GeneratedArtifactFileRef[]>;
|
|
48
|
-
onArtifactStatePatch?: (patch: Partial<ThreadArtifactsState>) => void | Promise<void>;
|
|
49
47
|
onSkillLoaded?: (skill: Skill) => void | LoadSkillMetadata | Promise<void | LoadSkillMetadata>;
|
|
50
48
|
toolOverrides?: {
|
|
51
49
|
imageGenerate?: ImageGenerateToolDeps;
|
|
@@ -60,7 +58,7 @@ interface BaseToolRuntimeContext {
|
|
|
60
58
|
/**
|
|
61
59
|
* Opaque Junior conversation/session identity for this turn.
|
|
62
60
|
* Interactive Slack turns use `slack:{channelId}:{threadTs}`.
|
|
63
|
-
* Scheduled/
|
|
61
|
+
* Scheduled/web turns use an internal id such as `agent-dispatch:{id}`.
|
|
64
62
|
* Do not parse as Slack unless the value starts with `slack:`.
|
|
65
63
|
*/
|
|
66
64
|
conversationId?: string;
|
|
@@ -76,7 +74,6 @@ interface BaseToolRuntimeContext {
|
|
|
76
74
|
/** Runtime surface that owns final delivery semantics for this turn. */
|
|
77
75
|
surface?: AgentTurnSurface;
|
|
78
76
|
userText?: string;
|
|
79
|
-
artifactState?: ThreadArtifactsState;
|
|
80
77
|
configuration?: Record<string, unknown>;
|
|
81
78
|
egress: PluginEgress;
|
|
82
79
|
mcpToolManager?: McpToolManager;
|
|
@@ -97,11 +94,15 @@ interface LocalToolRuntimeContext extends BaseToolRuntimeContext {
|
|
|
97
94
|
slack?: never;
|
|
98
95
|
slackActionToken?: never;
|
|
99
96
|
}
|
|
100
|
-
|
|
97
|
+
interface WebToolRuntimeContext extends BaseToolRuntimeContext {
|
|
98
|
+
destination: Destination;
|
|
99
|
+
actor?: WebActor;
|
|
100
|
+
source: WebSource;
|
|
101
|
+
slack?: never;
|
|
102
|
+
slackActionToken?: never;
|
|
103
|
+
}
|
|
104
|
+
export type ToolRuntimeContext = LocalToolRuntimeContext | SlackToolRuntimeContext | WebToolRuntimeContext;
|
|
101
105
|
export interface ToolState {
|
|
102
|
-
artifactState: ThreadArtifactsState;
|
|
103
|
-
patchArtifactState: (patch: Partial<ThreadArtifactsState>) => void | Promise<void>;
|
|
104
|
-
getCurrentListId: () => string | undefined;
|
|
105
106
|
getOperationResult: <T>(operationKey: string) => T | undefined;
|
|
106
107
|
setOperationResult: (operationKey: string, result: unknown) => void;
|
|
107
108
|
}
|
|
@@ -35,6 +35,7 @@ export declare function createUpdateEventTaskTool(context: ToolRuntimeContext, c
|
|
|
35
35
|
};
|
|
36
36
|
target?: string | undefined;
|
|
37
37
|
truncated?: boolean | undefined;
|
|
38
|
+
timed_out?: boolean | undefined;
|
|
38
39
|
continuation?: {
|
|
39
40
|
arguments: Record<string, unknown>;
|
|
40
41
|
reason?: string | undefined;
|
|
@@ -58,6 +59,7 @@ export declare function createUpdateEventTaskTool(context: ToolRuntimeContext, c
|
|
|
58
59
|
};
|
|
59
60
|
target?: string | undefined;
|
|
60
61
|
truncated?: boolean | undefined;
|
|
62
|
+
timed_out?: boolean | undefined;
|
|
61
63
|
continuation?: {
|
|
62
64
|
arguments: Record<string, unknown>;
|
|
63
65
|
reason?: string | undefined;
|