@sentry/junior 0.127.0 → 0.128.1
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-HMCMFIIO.js → agent-hooks-IWQNFJMS.js} +9 -9
- package/dist/api.js +23 -22
- package/dist/app.d.ts +2 -1
- package/dist/app.js +287 -138
- package/dist/{catalog-runtime-MI5UNBZ7.js → catalog-runtime-KLSYFS4A.js} +6 -6
- package/dist/chat/agent-dispatch/context.d.ts +17 -0
- package/dist/chat/agent-dispatch/store.d.ts +1 -1
- package/dist/chat/agent-dispatch/work.d.ts +1 -1
- package/dist/chat/credentials/context.d.ts +27 -0
- package/dist/chat/credentials/subject.d.ts +15 -0
- package/dist/chat/event-tasks/ingest.d.ts +9 -0
- package/dist/chat/event-tasks/store.d.ts +15 -0
- package/dist/chat/event-tasks/tool-support.d.ts +140 -0
- package/dist/chat/event-tasks/types.d.ts +44 -0
- package/dist/chat/plugins/viewer.d.ts +16 -0
- package/dist/chat/resource-events/ingest.d.ts +1 -0
- package/dist/chat/resource-events/store.d.ts +2 -0
- package/dist/chat/resource-events/workspace.d.ts +4 -0
- package/dist/chat/sandbox/command-result.d.ts +3 -22
- package/dist/chat/sandbox/egress/schemas.d.ts +11 -0
- package/dist/chat/sandbox/resources.d.ts +12 -1
- package/dist/chat/services/guardian-action-policy.d.ts +1 -1
- package/dist/chat/slack/dispatch-turn.d.ts +1 -1
- package/dist/chat/slack/tools/canvas/create.d.ts +0 -16
- package/dist/chat/slack/tools/canvas/edit.d.ts +0 -16
- package/dist/chat/slack/tools/canvas/read.d.ts +0 -16
- package/dist/chat/slack/tools/canvas/write.d.ts +0 -16
- package/dist/chat/slack/tools/channel-list-messages.d.ts +0 -16
- package/dist/chat/slack/tools/conversation-search.d.ts +0 -16
- package/dist/chat/slack/tools/list/add-items.d.ts +0 -16
- package/dist/chat/slack/tools/list/create.d.ts +0 -16
- package/dist/chat/slack/tools/list/get-items.d.ts +0 -16
- package/dist/chat/slack/tools/list/update-item.d.ts +0 -16
- package/dist/chat/slack/tools/message-add-reaction.d.ts +0 -16
- package/dist/chat/slack/tools/public-search.d.ts +0 -16
- package/dist/chat/slack/tools/send-files.d.ts +10 -28
- package/dist/chat/slack/tools/thread-read.d.ts +0 -16
- package/dist/chat/slack/tools/user-lookup.d.ts +0 -16
- package/dist/chat/tool-support/action-review.d.ts +1 -1
- package/dist/chat/tool-support/structured-result.d.ts +17 -46
- package/dist/chat/tool-support/text-range-result.d.ts +8 -32
- package/dist/chat/tool-support/zod-tool.d.ts +6 -7
- package/dist/chat/tools/create-event-task.d.ts +65 -0
- package/dist/chat/tools/definition.d.ts +4 -0
- package/dist/chat/tools/delete-event-task.d.ts +57 -0
- package/dist/chat/tools/event-tasks.d.ts +5 -0
- package/dist/chat/tools/handoff/tool.d.ts +0 -16
- package/dist/chat/tools/list-event-tasks.d.ts +55 -0
- package/dist/chat/tools/list-resource-event-subscriptions.d.ts +0 -38
- package/dist/chat/tools/query-conversation-events.d.ts +0 -16
- package/dist/chat/tools/runtime/report-progress.d.ts +0 -16
- package/dist/chat/tools/sandbox/edit-file.d.ts +0 -23
- package/dist/chat/tools/sandbox/file-utils.d.ts +2 -17
- package/dist/chat/tools/sandbox/find-files.d.ts +5 -8
- package/dist/chat/tools/sandbox/grep.d.ts +1 -4
- package/dist/chat/tools/sandbox/list-dir.d.ts +1 -4
- package/dist/chat/tools/search-resource-event-types.d.ts +0 -16
- package/dist/chat/tools/search-tools.d.ts +0 -16
- package/dist/chat/tools/skill/load-skill.d.ts +0 -20
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +0 -16
- package/dist/chat/tools/stop-watching-resources.d.ts +0 -22
- package/dist/chat/tools/system-time.d.ts +0 -16
- package/dist/chat/tools/types.d.ts +8 -4
- package/dist/chat/tools/update-event-task.d.ts +66 -0
- package/dist/chat/tools/watch-resource-events.d.ts +0 -46
- package/dist/chat/tools/web/fetch-content.d.ts +0 -2
- package/dist/chat/tools/web/fetch-tool.d.ts +0 -16
- package/dist/chat/tools/web/image-generate.d.ts +0 -16
- package/dist/chat/tools/web/search.d.ts +0 -16
- package/dist/{chunk-UEMGGJZD.js → chunk-54KP2EAH.js} +12 -12
- package/dist/{chunk-L7L7RYJM.js → chunk-5IR7SGRO.js} +2 -2
- package/dist/{chunk-W3U3YQYI.js → chunk-77VDLF3Z.js} +18 -1
- package/dist/{chunk-Z5LLJNTL.js → chunk-AAMF2IRC.js} +1116 -1083
- package/dist/{chunk-NK7QVIMJ.js → chunk-EHEACYJ6.js} +1 -1
- package/dist/{chunk-JNYR4G7A.js → chunk-EOIA25WC.js} +2 -2
- package/dist/{chunk-HDSDCEPK.js → chunk-EPBBYMNE.js} +1 -1
- package/dist/{chunk-6DU2ZNF7.js → chunk-ETGUGGO2.js} +7 -7
- package/dist/{chunk-TLMI3Q4Q.js → chunk-H4HMCSOZ.js} +199 -94
- package/dist/{chunk-PDG3BSOD.js → chunk-J3YIO3LE.js} +3 -3
- package/dist/{chunk-2M6LYDTB.js → chunk-LIJ4APSS.js} +1 -1
- package/dist/{chunk-JXQWTNDI.js → chunk-MKM5552O.js} +1 -1
- package/dist/{chunk-SH7HDO2D.js → chunk-MZ6ZOWMJ.js} +1 -1
- package/dist/{chunk-NYVMPADK.js → chunk-O3C5BJFD.js} +1 -1
- package/dist/{chunk-FVIU6NQO.js → chunk-O3YROBH4.js} +2 -2
- package/dist/{chunk-WXP2ZXC7.js → chunk-OIQCRZ67.js} +4 -4
- package/dist/{chunk-YSOZT72W.js → chunk-P7UUNWC4.js} +38 -17
- package/dist/{chunk-C7AVHH3H.js → chunk-PLAMHS3D.js} +2 -2
- package/dist/{chunk-AKL3BAYJ.js → chunk-Q5TMMCBV.js} +1 -1
- package/dist/{chunk-2N6EL22B.js → chunk-R2LXTX4J.js} +1 -1
- package/dist/{chunk-VHUMNUJL.js → chunk-REHOYCYS.js} +2 -2
- package/dist/{chunk-4H2NZPFJ.js → chunk-S2O64VXP.js} +6 -6
- package/dist/{chunk-S4PUICSB.js → chunk-SHMHHXD5.js} +34 -5
- package/dist/{chunk-AYICPT5T.js → chunk-TONH5NXR.js} +1 -1
- package/dist/cli/chat.js +27 -27
- package/dist/cli/check.js +7 -7
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +10 -10
- package/dist/cli/upgrade.js +8 -8
- package/dist/db/schema/event-tasks.d.ts +161 -0
- package/dist/db/schema.d.ts +163 -1
- package/dist/{db-N4EY57ZJ.js → db-VOU5QNLY.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-O62UOQSS.js → oauth-callback-server-GS7FBYBC.js} +18 -18
- package/dist/{runner-SRHRD3NX.js → runner-GSJSBI3J.js} +11 -11
- package/dist/{sandbox-egress-signals-CDFAP67O.js → sandbox-egress-signals-A5HWIQH4.js} +2 -2
- package/dist/{skills-V6X3JVVA.js → skills-DSHG54LM.js} +7 -7
- package/dist/{validation-ZZXZELGH.js → validation-25XWT6TA.js} +7 -7
- package/dist/version.js +1 -1
- package/migrations/0015_magical_ezekiel_stane.sql +11 -0
- package/migrations/meta/0015_snapshot.json +1360 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +6 -6
- package/dist/chat/plugins/viewer-actors.d.ts +0 -6
|
@@ -9,35 +9,19 @@ export declare function createSlackCanvasWriteTool(state: ToolState): Omit<impor
|
|
|
9
9
|
};
|
|
10
10
|
execute?: ((input: unknown, options: import("../../../tools/definition").ToolExecuteOptions) => {
|
|
11
11
|
[x: string]: unknown;
|
|
12
|
-
ok: boolean;
|
|
13
|
-
status: "error" | "success";
|
|
14
12
|
target?: string | undefined;
|
|
15
|
-
data?: unknown;
|
|
16
13
|
truncated?: boolean | undefined;
|
|
17
14
|
continuation?: {
|
|
18
15
|
arguments: Record<string, unknown>;
|
|
19
16
|
reason?: string | undefined;
|
|
20
17
|
} | undefined;
|
|
21
|
-
error?: string | {
|
|
22
|
-
kind: string;
|
|
23
|
-
message: string;
|
|
24
|
-
retryable?: boolean | undefined;
|
|
25
|
-
} | undefined;
|
|
26
18
|
} | Promise<{
|
|
27
19
|
[x: string]: unknown;
|
|
28
|
-
ok: boolean;
|
|
29
|
-
status: "error" | "success";
|
|
30
20
|
target?: string | undefined;
|
|
31
|
-
data?: unknown;
|
|
32
21
|
truncated?: boolean | undefined;
|
|
33
22
|
continuation?: {
|
|
34
23
|
arguments: Record<string, unknown>;
|
|
35
24
|
reason?: string | undefined;
|
|
36
25
|
} | undefined;
|
|
37
|
-
error?: string | {
|
|
38
|
-
kind: string;
|
|
39
|
-
message: string;
|
|
40
|
-
retryable?: boolean | undefined;
|
|
41
|
-
} | undefined;
|
|
42
26
|
}>) | undefined;
|
|
43
27
|
};
|
|
@@ -13,35 +13,19 @@ export declare function createSlackChannelListMessagesTool(context: SlackToolCon
|
|
|
13
13
|
};
|
|
14
14
|
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
15
15
|
[x: string]: unknown;
|
|
16
|
-
ok: boolean;
|
|
17
|
-
status: "error" | "success";
|
|
18
16
|
target?: string | undefined;
|
|
19
|
-
data?: unknown;
|
|
20
17
|
truncated?: boolean | undefined;
|
|
21
18
|
continuation?: {
|
|
22
19
|
arguments: Record<string, unknown>;
|
|
23
20
|
reason?: string | undefined;
|
|
24
21
|
} | undefined;
|
|
25
|
-
error?: string | {
|
|
26
|
-
kind: string;
|
|
27
|
-
message: string;
|
|
28
|
-
retryable?: boolean | undefined;
|
|
29
|
-
} | undefined;
|
|
30
22
|
} | Promise<{
|
|
31
23
|
[x: string]: unknown;
|
|
32
|
-
ok: boolean;
|
|
33
|
-
status: "error" | "success";
|
|
34
24
|
target?: string | undefined;
|
|
35
|
-
data?: unknown;
|
|
36
25
|
truncated?: boolean | undefined;
|
|
37
26
|
continuation?: {
|
|
38
27
|
arguments: Record<string, unknown>;
|
|
39
28
|
reason?: string | undefined;
|
|
40
29
|
} | undefined;
|
|
41
|
-
error?: string | {
|
|
42
|
-
kind: string;
|
|
43
|
-
message: string;
|
|
44
|
-
retryable?: boolean | undefined;
|
|
45
|
-
} | undefined;
|
|
46
30
|
}>) | undefined;
|
|
47
31
|
};
|
|
@@ -14,8 +14,6 @@ export declare function createSlackConversationSearchTool(scope: ConversationSea
|
|
|
14
14
|
};
|
|
15
15
|
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
16
16
|
[x: string]: unknown;
|
|
17
|
-
ok: boolean;
|
|
18
|
-
status: "error" | "success";
|
|
19
17
|
query: string;
|
|
20
18
|
count: number;
|
|
21
19
|
threads: {
|
|
@@ -28,21 +26,13 @@ export declare function createSlackConversationSearchTool(scope: ConversationSea
|
|
|
28
26
|
permalink?: string | undefined;
|
|
29
27
|
}[];
|
|
30
28
|
target?: string | undefined;
|
|
31
|
-
data?: unknown;
|
|
32
29
|
truncated?: boolean | undefined;
|
|
33
30
|
continuation?: {
|
|
34
31
|
arguments: Record<string, unknown>;
|
|
35
32
|
reason?: string | undefined;
|
|
36
33
|
} | undefined;
|
|
37
|
-
error?: string | {
|
|
38
|
-
kind: string;
|
|
39
|
-
message: string;
|
|
40
|
-
retryable?: boolean | undefined;
|
|
41
|
-
} | undefined;
|
|
42
34
|
} | Promise<{
|
|
43
35
|
[x: string]: unknown;
|
|
44
|
-
ok: boolean;
|
|
45
|
-
status: "error" | "success";
|
|
46
36
|
query: string;
|
|
47
37
|
count: number;
|
|
48
38
|
threads: {
|
|
@@ -55,17 +45,11 @@ export declare function createSlackConversationSearchTool(scope: ConversationSea
|
|
|
55
45
|
permalink?: string | undefined;
|
|
56
46
|
}[];
|
|
57
47
|
target?: string | undefined;
|
|
58
|
-
data?: unknown;
|
|
59
48
|
truncated?: boolean | undefined;
|
|
60
49
|
continuation?: {
|
|
61
50
|
arguments: Record<string, unknown>;
|
|
62
51
|
reason?: string | undefined;
|
|
63
52
|
} | undefined;
|
|
64
|
-
error?: string | {
|
|
65
|
-
kind: string;
|
|
66
|
-
message: string;
|
|
67
|
-
retryable?: boolean | undefined;
|
|
68
|
-
} | undefined;
|
|
69
53
|
}>) | undefined;
|
|
70
54
|
};
|
|
71
55
|
export {};
|
|
@@ -10,35 +10,19 @@ export declare function createSlackListAddItemsTool(state: ToolState): Omit<impo
|
|
|
10
10
|
};
|
|
11
11
|
execute?: ((input: unknown, options: import("../../../tools/definition").ToolExecuteOptions) => {
|
|
12
12
|
[x: string]: unknown;
|
|
13
|
-
ok: boolean;
|
|
14
|
-
status: "error" | "success";
|
|
15
13
|
target?: string | undefined;
|
|
16
|
-
data?: unknown;
|
|
17
14
|
truncated?: boolean | undefined;
|
|
18
15
|
continuation?: {
|
|
19
16
|
arguments: Record<string, unknown>;
|
|
20
17
|
reason?: string | undefined;
|
|
21
18
|
} | undefined;
|
|
22
|
-
error?: string | {
|
|
23
|
-
kind: string;
|
|
24
|
-
message: string;
|
|
25
|
-
retryable?: boolean | undefined;
|
|
26
|
-
} | undefined;
|
|
27
19
|
} | Promise<{
|
|
28
20
|
[x: string]: unknown;
|
|
29
|
-
ok: boolean;
|
|
30
|
-
status: "error" | "success";
|
|
31
21
|
target?: string | undefined;
|
|
32
|
-
data?: unknown;
|
|
33
22
|
truncated?: boolean | undefined;
|
|
34
23
|
continuation?: {
|
|
35
24
|
arguments: Record<string, unknown>;
|
|
36
25
|
reason?: string | undefined;
|
|
37
26
|
} | undefined;
|
|
38
|
-
error?: string | {
|
|
39
|
-
kind: string;
|
|
40
|
-
message: string;
|
|
41
|
-
retryable?: boolean | undefined;
|
|
42
|
-
} | undefined;
|
|
43
27
|
}>) | undefined;
|
|
44
28
|
};
|
|
@@ -8,35 +8,19 @@ export declare function createSlackListCreateTool(state: ToolState): Omit<import
|
|
|
8
8
|
};
|
|
9
9
|
execute?: ((input: unknown, options: import("../../../tools/definition").ToolExecuteOptions) => {
|
|
10
10
|
[x: string]: unknown;
|
|
11
|
-
ok: boolean;
|
|
12
|
-
status: "error" | "success";
|
|
13
11
|
target?: string | undefined;
|
|
14
|
-
data?: unknown;
|
|
15
12
|
truncated?: boolean | undefined;
|
|
16
13
|
continuation?: {
|
|
17
14
|
arguments: Record<string, unknown>;
|
|
18
15
|
reason?: string | undefined;
|
|
19
16
|
} | undefined;
|
|
20
|
-
error?: string | {
|
|
21
|
-
kind: string;
|
|
22
|
-
message: string;
|
|
23
|
-
retryable?: boolean | undefined;
|
|
24
|
-
} | undefined;
|
|
25
17
|
} | Promise<{
|
|
26
18
|
[x: string]: unknown;
|
|
27
|
-
ok: boolean;
|
|
28
|
-
status: "error" | "success";
|
|
29
19
|
target?: string | undefined;
|
|
30
|
-
data?: unknown;
|
|
31
20
|
truncated?: boolean | undefined;
|
|
32
21
|
continuation?: {
|
|
33
22
|
arguments: Record<string, unknown>;
|
|
34
23
|
reason?: string | undefined;
|
|
35
24
|
} | undefined;
|
|
36
|
-
error?: string | {
|
|
37
|
-
kind: string;
|
|
38
|
-
message: string;
|
|
39
|
-
retryable?: boolean | undefined;
|
|
40
|
-
} | undefined;
|
|
41
25
|
}>) | undefined;
|
|
42
26
|
};
|
|
@@ -8,35 +8,19 @@ export declare function createSlackListGetItemsTool(state: ToolState): Omit<impo
|
|
|
8
8
|
};
|
|
9
9
|
execute?: ((input: unknown, options: import("../../../tools/definition").ToolExecuteOptions) => {
|
|
10
10
|
[x: string]: unknown;
|
|
11
|
-
ok: boolean;
|
|
12
|
-
status: "error" | "success";
|
|
13
11
|
target?: string | undefined;
|
|
14
|
-
data?: unknown;
|
|
15
12
|
truncated?: boolean | undefined;
|
|
16
13
|
continuation?: {
|
|
17
14
|
arguments: Record<string, unknown>;
|
|
18
15
|
reason?: string | undefined;
|
|
19
16
|
} | undefined;
|
|
20
|
-
error?: string | {
|
|
21
|
-
kind: string;
|
|
22
|
-
message: string;
|
|
23
|
-
retryable?: boolean | undefined;
|
|
24
|
-
} | undefined;
|
|
25
17
|
} | Promise<{
|
|
26
18
|
[x: string]: unknown;
|
|
27
|
-
ok: boolean;
|
|
28
|
-
status: "error" | "success";
|
|
29
19
|
target?: string | undefined;
|
|
30
|
-
data?: unknown;
|
|
31
20
|
truncated?: boolean | undefined;
|
|
32
21
|
continuation?: {
|
|
33
22
|
arguments: Record<string, unknown>;
|
|
34
23
|
reason?: string | undefined;
|
|
35
24
|
} | undefined;
|
|
36
|
-
error?: string | {
|
|
37
|
-
kind: string;
|
|
38
|
-
message: string;
|
|
39
|
-
retryable?: boolean | undefined;
|
|
40
|
-
} | undefined;
|
|
41
25
|
}>) | undefined;
|
|
42
26
|
};
|
|
@@ -14,35 +14,19 @@ export declare function createSlackListUpdateItemTool(state: ToolState): Omit<im
|
|
|
14
14
|
};
|
|
15
15
|
execute?: ((input: unknown, options: import("../../../tools/definition").ToolExecuteOptions) => {
|
|
16
16
|
[x: string]: unknown;
|
|
17
|
-
ok: boolean;
|
|
18
|
-
status: "error" | "success";
|
|
19
17
|
target?: string | undefined;
|
|
20
|
-
data?: unknown;
|
|
21
18
|
truncated?: boolean | undefined;
|
|
22
19
|
continuation?: {
|
|
23
20
|
arguments: Record<string, unknown>;
|
|
24
21
|
reason?: string | undefined;
|
|
25
22
|
} | undefined;
|
|
26
|
-
error?: string | {
|
|
27
|
-
kind: string;
|
|
28
|
-
message: string;
|
|
29
|
-
retryable?: boolean | undefined;
|
|
30
|
-
} | undefined;
|
|
31
23
|
} | Promise<{
|
|
32
24
|
[x: string]: unknown;
|
|
33
|
-
ok: boolean;
|
|
34
|
-
status: "error" | "success";
|
|
35
25
|
target?: string | undefined;
|
|
36
|
-
data?: unknown;
|
|
37
26
|
truncated?: boolean | undefined;
|
|
38
27
|
continuation?: {
|
|
39
28
|
arguments: Record<string, unknown>;
|
|
40
29
|
reason?: string | undefined;
|
|
41
30
|
} | undefined;
|
|
42
|
-
error?: string | {
|
|
43
|
-
kind: string;
|
|
44
|
-
message: string;
|
|
45
|
-
retryable?: boolean | undefined;
|
|
46
|
-
} | undefined;
|
|
47
31
|
}>) | undefined;
|
|
48
32
|
};
|
|
@@ -9,35 +9,19 @@ export declare function createSlackMessageAddReactionTool(context: SlackToolCont
|
|
|
9
9
|
};
|
|
10
10
|
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
11
11
|
[x: string]: unknown;
|
|
12
|
-
ok: boolean;
|
|
13
|
-
status: "error" | "success";
|
|
14
12
|
target?: string | undefined;
|
|
15
|
-
data?: unknown;
|
|
16
13
|
truncated?: boolean | undefined;
|
|
17
14
|
continuation?: {
|
|
18
15
|
arguments: Record<string, unknown>;
|
|
19
16
|
reason?: string | undefined;
|
|
20
17
|
} | undefined;
|
|
21
|
-
error?: string | {
|
|
22
|
-
kind: string;
|
|
23
|
-
message: string;
|
|
24
|
-
retryable?: boolean | undefined;
|
|
25
|
-
} | undefined;
|
|
26
18
|
} | Promise<{
|
|
27
19
|
[x: string]: unknown;
|
|
28
|
-
ok: boolean;
|
|
29
|
-
status: "error" | "success";
|
|
30
20
|
target?: string | undefined;
|
|
31
|
-
data?: unknown;
|
|
32
21
|
truncated?: boolean | undefined;
|
|
33
22
|
continuation?: {
|
|
34
23
|
arguments: Record<string, unknown>;
|
|
35
24
|
reason?: string | undefined;
|
|
36
25
|
} | undefined;
|
|
37
|
-
error?: string | {
|
|
38
|
-
kind: string;
|
|
39
|
-
message: string;
|
|
40
|
-
retryable?: boolean | undefined;
|
|
41
|
-
} | undefined;
|
|
42
26
|
}>) | undefined;
|
|
43
27
|
};
|
|
@@ -14,8 +14,6 @@ export declare function createSlackPublicSearchTool(actionToken: SlackActionToke
|
|
|
14
14
|
};
|
|
15
15
|
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
16
16
|
[x: string]: unknown;
|
|
17
|
-
ok: boolean;
|
|
18
|
-
status: "error" | "success";
|
|
19
17
|
query: string;
|
|
20
18
|
count: number;
|
|
21
19
|
messages: {
|
|
@@ -29,22 +27,14 @@ export declare function createSlackPublicSearchTool(actionToken: SlackActionToke
|
|
|
29
27
|
is_author_bot?: boolean | undefined;
|
|
30
28
|
}[];
|
|
31
29
|
target?: string | undefined;
|
|
32
|
-
data?: unknown;
|
|
33
30
|
truncated?: boolean | undefined;
|
|
34
31
|
continuation?: {
|
|
35
32
|
arguments: Record<string, unknown>;
|
|
36
33
|
reason?: string | undefined;
|
|
37
34
|
} | undefined;
|
|
38
|
-
error?: string | {
|
|
39
|
-
kind: string;
|
|
40
|
-
message: string;
|
|
41
|
-
retryable?: boolean | undefined;
|
|
42
|
-
} | undefined;
|
|
43
35
|
next_cursor?: string | undefined;
|
|
44
36
|
} | Promise<{
|
|
45
37
|
[x: string]: unknown;
|
|
46
|
-
ok: boolean;
|
|
47
|
-
status: "error" | "success";
|
|
48
38
|
query: string;
|
|
49
39
|
count: number;
|
|
50
40
|
messages: {
|
|
@@ -58,17 +48,11 @@ export declare function createSlackPublicSearchTool(actionToken: SlackActionToke
|
|
|
58
48
|
is_author_bot?: boolean | undefined;
|
|
59
49
|
}[];
|
|
60
50
|
target?: string | undefined;
|
|
61
|
-
data?: unknown;
|
|
62
51
|
truncated?: boolean | undefined;
|
|
63
52
|
continuation?: {
|
|
64
53
|
arguments: Record<string, unknown>;
|
|
65
54
|
reason?: string | undefined;
|
|
66
55
|
} | undefined;
|
|
67
|
-
error?: string | {
|
|
68
|
-
kind: string;
|
|
69
|
-
message: string;
|
|
70
|
-
retryable?: boolean | undefined;
|
|
71
|
-
} | undefined;
|
|
72
56
|
next_cursor?: string | undefined;
|
|
73
57
|
}>) | undefined;
|
|
74
58
|
};
|
|
@@ -17,47 +17,29 @@ export declare function createSendFilesTool(context: SlackToolContext, state: To
|
|
|
17
17
|
};
|
|
18
18
|
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
19
19
|
[x: string]: unknown;
|
|
20
|
-
ok: true;
|
|
21
|
-
status: "success";
|
|
22
20
|
target: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
thread_ts: string;
|
|
27
|
-
deduplicated?: boolean | undefined;
|
|
28
|
-
file_ids?: string[] | undefined;
|
|
29
|
-
};
|
|
21
|
+
channel_id: string;
|
|
22
|
+
file_count: number;
|
|
23
|
+
thread_ts: string;
|
|
30
24
|
truncated?: boolean | undefined;
|
|
31
25
|
continuation?: {
|
|
32
26
|
arguments: Record<string, unknown>;
|
|
33
27
|
reason?: string | undefined;
|
|
34
28
|
} | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
message: string;
|
|
38
|
-
retryable?: boolean | undefined;
|
|
39
|
-
} | undefined;
|
|
29
|
+
deduplicated?: boolean | undefined;
|
|
30
|
+
file_ids?: string[] | undefined;
|
|
40
31
|
} | Promise<{
|
|
41
32
|
[x: string]: unknown;
|
|
42
|
-
ok: true;
|
|
43
|
-
status: "success";
|
|
44
33
|
target: string;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
thread_ts: string;
|
|
49
|
-
deduplicated?: boolean | undefined;
|
|
50
|
-
file_ids?: string[] | undefined;
|
|
51
|
-
};
|
|
34
|
+
channel_id: string;
|
|
35
|
+
file_count: number;
|
|
36
|
+
thread_ts: string;
|
|
52
37
|
truncated?: boolean | undefined;
|
|
53
38
|
continuation?: {
|
|
54
39
|
arguments: Record<string, unknown>;
|
|
55
40
|
reason?: string | undefined;
|
|
56
41
|
} | undefined;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
message: string;
|
|
60
|
-
retryable?: boolean | undefined;
|
|
61
|
-
} | undefined;
|
|
42
|
+
deduplicated?: boolean | undefined;
|
|
43
|
+
file_ids?: string[] | undefined;
|
|
62
44
|
}>) | undefined;
|
|
63
45
|
};
|
|
@@ -15,35 +15,19 @@ export declare function createSlackThreadReadTool(context: SlackToolContext, dep
|
|
|
15
15
|
};
|
|
16
16
|
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
17
17
|
[x: string]: unknown;
|
|
18
|
-
ok: boolean;
|
|
19
|
-
status: "error" | "success";
|
|
20
18
|
target?: string | undefined;
|
|
21
|
-
data?: unknown;
|
|
22
19
|
truncated?: boolean | undefined;
|
|
23
20
|
continuation?: {
|
|
24
21
|
arguments: Record<string, unknown>;
|
|
25
22
|
reason?: string | undefined;
|
|
26
23
|
} | undefined;
|
|
27
|
-
error?: string | {
|
|
28
|
-
kind: string;
|
|
29
|
-
message: string;
|
|
30
|
-
retryable?: boolean | undefined;
|
|
31
|
-
} | undefined;
|
|
32
24
|
} | Promise<{
|
|
33
25
|
[x: string]: unknown;
|
|
34
|
-
ok: boolean;
|
|
35
|
-
status: "error" | "success";
|
|
36
26
|
target?: string | undefined;
|
|
37
|
-
data?: unknown;
|
|
38
27
|
truncated?: boolean | undefined;
|
|
39
28
|
continuation?: {
|
|
40
29
|
arguments: Record<string, unknown>;
|
|
41
30
|
reason?: string | undefined;
|
|
42
31
|
} | undefined;
|
|
43
|
-
error?: string | {
|
|
44
|
-
kind: string;
|
|
45
|
-
message: string;
|
|
46
|
-
retryable?: boolean | undefined;
|
|
47
|
-
} | undefined;
|
|
48
32
|
}>) | undefined;
|
|
49
33
|
};
|
|
@@ -12,35 +12,19 @@ export declare function createSlackUserLookupTool(): Omit<import("../../tools/de
|
|
|
12
12
|
};
|
|
13
13
|
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
14
14
|
[x: string]: unknown;
|
|
15
|
-
ok: boolean;
|
|
16
|
-
status: "error" | "success";
|
|
17
15
|
target?: string | undefined;
|
|
18
|
-
data?: unknown;
|
|
19
16
|
truncated?: boolean | undefined;
|
|
20
17
|
continuation?: {
|
|
21
18
|
arguments: Record<string, unknown>;
|
|
22
19
|
reason?: string | undefined;
|
|
23
20
|
} | undefined;
|
|
24
|
-
error?: string | {
|
|
25
|
-
kind: string;
|
|
26
|
-
message: string;
|
|
27
|
-
retryable?: boolean | undefined;
|
|
28
|
-
} | undefined;
|
|
29
21
|
} | Promise<{
|
|
30
22
|
[x: string]: unknown;
|
|
31
|
-
ok: boolean;
|
|
32
|
-
status: "error" | "success";
|
|
33
23
|
target?: string | undefined;
|
|
34
|
-
data?: unknown;
|
|
35
24
|
truncated?: boolean | undefined;
|
|
36
25
|
continuation?: {
|
|
37
26
|
arguments: Record<string, unknown>;
|
|
38
27
|
reason?: string | undefined;
|
|
39
28
|
} | undefined;
|
|
40
|
-
error?: string | {
|
|
41
|
-
kind: string;
|
|
42
|
-
message: string;
|
|
43
|
-
retryable?: boolean | undefined;
|
|
44
|
-
} | undefined;
|
|
45
29
|
}>) | undefined;
|
|
46
30
|
};
|
|
@@ -49,7 +49,7 @@ export interface ToolActionProposal {
|
|
|
49
49
|
name: string;
|
|
50
50
|
};
|
|
51
51
|
subject?: {
|
|
52
|
-
allowedWhen: "private-direct-conversation" | "scheduled-task";
|
|
52
|
+
allowedWhen: "private-direct-conversation" | "scheduled-task" | "event-task";
|
|
53
53
|
taskId?: string;
|
|
54
54
|
type: "user";
|
|
55
55
|
userId: string;
|
|
@@ -9,64 +9,35 @@ export declare const juniorToolBoundContinuationSchema: z.ZodObject<{
|
|
|
9
9
|
reason: z.ZodOptional<z.ZodString>;
|
|
10
10
|
tool_name: z.ZodString;
|
|
11
11
|
}, z.core.$strict>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
message: z.ZodString;
|
|
15
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
}, z.core.$strict>;
|
|
17
|
-
export declare const juniorToolResultSchema: z.ZodObject<{
|
|
18
|
-
ok: z.ZodBoolean;
|
|
19
|
-
status: z.ZodEnum<{
|
|
20
|
-
error: "error";
|
|
21
|
-
success: "success";
|
|
22
|
-
}>;
|
|
23
|
-
target: z.ZodOptional<z.ZodString>;
|
|
24
|
-
data: z.ZodOptional<z.ZodUnknown>;
|
|
25
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
-
continuation: z.ZodOptional<z.ZodObject<{
|
|
27
|
-
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, z.core.$strict>>;
|
|
30
|
-
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
31
|
-
kind: z.ZodString;
|
|
32
|
-
message: z.ZodString;
|
|
33
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
-
}, z.core.$strict>, z.ZodString]>>;
|
|
35
|
-
}, z.core.$loose>;
|
|
36
|
-
export declare const juniorToolResultWithBoundContinuationSchema: z.ZodObject<{
|
|
37
|
-
ok: z.ZodBoolean;
|
|
38
|
-
status: z.ZodEnum<{
|
|
39
|
-
error: "error";
|
|
40
|
-
success: "success";
|
|
41
|
-
}>;
|
|
12
|
+
/** Shared optional fields for canonical Junior tool outputs. */
|
|
13
|
+
export declare const juniorToolOutputSchema: z.ZodObject<{
|
|
42
14
|
target: z.ZodOptional<z.ZodString>;
|
|
43
|
-
data: z.ZodOptional<z.ZodUnknown>;
|
|
44
15
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
error: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
46
|
-
kind: z.ZodString;
|
|
47
|
-
message: z.ZodString;
|
|
48
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
}, z.core.$strict>, z.ZodString]>>;
|
|
50
16
|
continuation: z.ZodOptional<z.ZodObject<{
|
|
51
17
|
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
52
18
|
reason: z.ZodOptional<z.ZodString>;
|
|
53
|
-
tool_name: z.ZodString;
|
|
54
19
|
}, z.core.$strict>>;
|
|
55
20
|
}, z.core.$loose>;
|
|
56
|
-
export type
|
|
57
|
-
export
|
|
58
|
-
export interface JuniorToolResultEnvelope<TDetails extends JuniorToolResult = JuniorToolResult> {
|
|
21
|
+
export type JuniorToolOutput = z.output<typeof juniorToolOutputSchema>;
|
|
22
|
+
export interface JuniorToolOutputEnvelope<TDetails = unknown> {
|
|
59
23
|
content: [TextContent, ...(TextContent | ImageContent)[]];
|
|
60
24
|
details: TDetails;
|
|
61
25
|
}
|
|
62
26
|
/** Bind continuation metadata to the exposed runtime tool name. */
|
|
63
|
-
export declare function injectContinuationToolName(details:
|
|
64
|
-
export interface
|
|
27
|
+
export declare function injectContinuationToolName(details: unknown, toolName: string): unknown;
|
|
28
|
+
export interface JuniorTextToolOutputEnvelope<TDetails = unknown> {
|
|
65
29
|
content: [TextContent];
|
|
66
30
|
details: TDetails;
|
|
67
31
|
}
|
|
68
|
-
/**
|
|
69
|
-
|
|
70
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Project one canonical tool output onto Pi's native result channels.
|
|
34
|
+
*
|
|
35
|
+
* This follows the Codex tool-result model: `details` remains the authoritative
|
|
36
|
+
* typed value, while `content` is its model-facing serialization. Telemetry and
|
|
37
|
+
* execution success or failure are separate runtime projections and must not be
|
|
38
|
+
* embedded in the tool output.
|
|
39
|
+
*/
|
|
40
|
+
export declare function makeStructuredToolOutput<TDetails>(details: TDetails): JuniorTextToolOutputEnvelope<TDetails>;
|
|
41
|
+
export declare function makeStructuredToolOutput<TDetails>(details: TDetails, options: {
|
|
71
42
|
content: Array<TextContent | ImageContent>;
|
|
72
|
-
}):
|
|
43
|
+
}): JuniorToolOutputEnvelope<TDetails>;
|
|
@@ -4,17 +4,13 @@ interface TextRangeResult {
|
|
|
4
4
|
text: string;
|
|
5
5
|
}];
|
|
6
6
|
details: {
|
|
7
|
-
ok: true;
|
|
8
|
-
status: "success";
|
|
9
7
|
target: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
truncation_reasons?: string[];
|
|
17
|
-
};
|
|
8
|
+
content: string;
|
|
9
|
+
end_line?: number;
|
|
10
|
+
path: string;
|
|
11
|
+
start_line: number;
|
|
12
|
+
total_lines: number;
|
|
13
|
+
truncation_reasons?: string[];
|
|
18
14
|
truncated: boolean;
|
|
19
15
|
character_limit_reached?: number;
|
|
20
16
|
line_truncated?: boolean;
|
|
@@ -28,26 +24,6 @@ interface TextRangeResult {
|
|
|
28
24
|
};
|
|
29
25
|
};
|
|
30
26
|
}
|
|
31
|
-
interface TextRangeMissingPathResult {
|
|
32
|
-
content: [{
|
|
33
|
-
type: "text";
|
|
34
|
-
text: string;
|
|
35
|
-
}];
|
|
36
|
-
details: {
|
|
37
|
-
ok: false;
|
|
38
|
-
status: "error";
|
|
39
|
-
target: string;
|
|
40
|
-
data: {
|
|
41
|
-
content: "";
|
|
42
|
-
path: string;
|
|
43
|
-
};
|
|
44
|
-
error: {
|
|
45
|
-
kind: "not_found";
|
|
46
|
-
message: string;
|
|
47
|
-
};
|
|
48
|
-
truncated: false;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
27
|
/** Return a bounded line window so large files can be read incrementally. */
|
|
52
28
|
export declare function sliceFileContent(params: {
|
|
53
29
|
content: string;
|
|
@@ -56,6 +32,6 @@ export declare function sliceFileContent(params: {
|
|
|
56
32
|
offset?: unknown;
|
|
57
33
|
path: string;
|
|
58
34
|
}): TextRangeResult;
|
|
59
|
-
/**
|
|
60
|
-
export declare function missingFileResult(path: string):
|
|
35
|
+
/** Reject an expected missing read target through the tool-error channel. */
|
|
36
|
+
export declare function missingFileResult(path: string): never;
|
|
61
37
|
export {};
|