@sentry/junior 0.91.0 → 0.92.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-MXAF7RQL.js → agent-hooks-KL7I3ZRC.js} +7 -7
- package/dist/api/people/list.d.ts +3 -3
- package/dist/api/people/list.js +15 -15
- package/dist/api/people/list.query.d.ts +2 -2
- package/dist/api/people/profile.d.ts +3 -3
- package/dist/api/people/profile.js +12 -12
- package/dist/api/people/profile.query.d.ts +2 -2
- package/dist/api/people/shared.d.ts +13 -13
- package/dist/api/people/types.d.ts +12 -12
- package/dist/api-reference.d.ts +1 -1
- package/dist/app.js +365 -265
- package/dist/{catalog-runtime-DXE6NXHT.js → catalog-runtime-NZHMSMYC.js} +2 -2
- package/dist/chat/actor.d.ts +75 -0
- package/dist/chat/agent/prompt.d.ts +2 -2
- package/dist/chat/agent/request.d.ts +13 -13
- package/dist/chat/agent/resume.d.ts +5 -4
- package/dist/chat/agent/tools.d.ts +4 -2
- package/dist/chat/capabilities/jr-rpc-command.d.ts +1 -1
- package/dist/chat/conversation-privacy.d.ts +11 -0
- package/dist/chat/conversations/sql/migrations.d.ts +1 -1
- package/dist/chat/conversations/sql/schema/conversations.d.ts +2 -19
- package/dist/chat/conversations/sql/schema.d.ts +2 -19
- package/dist/chat/conversations/sql/store.d.ts +3 -3
- package/dist/chat/conversations/store.d.ts +4 -4
- package/dist/chat/credentials/context.d.ts +4 -4
- package/dist/chat/logging.d.ts +2 -2
- package/dist/chat/no-reply.d.ts +1 -1
- package/dist/chat/oauth-flow.d.ts +1 -1
- package/dist/chat/pi/messages.d.ts +2 -2
- package/dist/chat/pi/transcript.d.ts +15 -0
- package/dist/chat/plugins/agent-hooks.d.ts +5 -3
- package/dist/chat/plugins/credential-hooks.d.ts +2 -8
- package/dist/chat/prompt.d.ts +3 -6
- package/dist/chat/runtime/reply-executor.d.ts +1 -1
- package/dist/chat/runtime/turn-input.d.ts +1 -1
- package/dist/chat/sandbox/egress/schemas.d.ts +2 -2
- package/dist/chat/sandbox/egress/session.d.ts +1 -1
- package/dist/chat/services/context-compaction.d.ts +1 -1
- package/dist/chat/services/conversation-memory.d.ts +1 -1
- package/dist/chat/services/mcp-auth-orchestration.d.ts +1 -1
- package/dist/chat/services/message-actor-identity.d.ts +4 -4
- package/dist/chat/services/pending-auth.d.ts +2 -2
- package/dist/chat/services/plugin-auth-orchestration.d.ts +1 -1
- package/dist/chat/services/provider-default-config.d.ts +1 -1
- package/dist/chat/services/subscribed-decision.d.ts +1 -1
- package/dist/chat/services/turn-result.d.ts +1 -1
- package/dist/chat/services/turn-session-record.d.ts +11 -8
- package/dist/chat/services/turn-thinking-level.d.ts +1 -1
- package/dist/chat/slack/assistant-thread/title.d.ts +1 -1
- package/dist/chat/slack/tools/canvas/create.d.ts +41 -1
- package/dist/chat/slack/tools/canvas/edit.d.ts +60 -1
- package/dist/chat/slack/tools/canvas/read.d.ts +60 -1
- package/dist/chat/slack/tools/canvas/write.d.ts +41 -1
- package/dist/chat/slack/tools/channel-list-messages.d.ts +45 -1
- package/dist/chat/slack/tools/context.d.ts +3 -3
- package/dist/chat/slack/tools/list/add-items.d.ts +42 -1
- package/dist/chat/slack/tools/list/create.d.ts +40 -1
- package/dist/chat/slack/tools/list/get-items.d.ts +40 -1
- package/dist/chat/slack/tools/list/update-item.d.ts +46 -1
- package/dist/chat/slack/tools/message-add-reaction.d.ts +40 -1
- package/dist/chat/slack/tools/send-message.d.ts +45 -1
- package/dist/chat/slack/tools/thread-read.d.ts +44 -1
- package/dist/chat/slack/tools/user-lookup.d.ts +45 -1
- package/dist/chat/slack/user.d.ts +3 -3
- package/dist/chat/slack/vision-context.d.ts +2 -2
- package/dist/chat/sql/schema.d.ts +2 -19
- package/dist/chat/state/conversation-details.d.ts +4 -4
- package/dist/chat/state/conversation.d.ts +1 -1
- package/dist/chat/state/session-log.d.ts +140 -26
- package/dist/chat/state/turn-session.d.ts +18 -5
- package/dist/chat/task-execution/slack-work.d.ts +2 -2
- package/dist/chat/task-execution/state.d.ts +4 -4
- package/dist/chat/tool-support/zod-tool.d.ts +16 -4
- package/dist/chat/tools/advisor/tool.d.ts +41 -1
- package/dist/chat/tools/definition.d.ts +10 -0
- package/dist/chat/tools/execute-tool.d.ts +41 -1
- package/dist/chat/tools/resource-events.d.ts +124 -3
- package/dist/chat/tools/runtime/report-progress.d.ts +40 -1
- package/dist/chat/tools/sandbox/bash.d.ts +41 -1
- package/dist/chat/tools/sandbox/edit-file.d.ts +44 -1
- package/dist/chat/tools/sandbox/find-files.d.ts +42 -1
- package/dist/chat/tools/sandbox/grep.d.ts +46 -1
- package/dist/chat/tools/sandbox/list-dir.d.ts +41 -1
- package/dist/chat/tools/sandbox/read-file.d.ts +42 -1
- package/dist/chat/tools/sandbox/write-file.d.ts +41 -1
- package/dist/chat/tools/search-tools.d.ts +102 -1
- package/dist/chat/tools/skill/call-mcp-tool.d.ts +10 -1
- package/dist/chat/tools/skill/load-skill.d.ts +40 -1
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +100 -1
- package/dist/chat/tools/system-time.d.ts +38 -1
- package/dist/chat/tools/types.d.ts +4 -4
- package/dist/chat/tools/web/fetch-tool.d.ts +41 -1
- package/dist/chat/tools/web/image-generate.d.ts +62 -1
- package/dist/chat/tools/web/search.d.ts +41 -1
- package/dist/{chunk-HXL2ZV74.js → chunk-3F54A3YM.js} +82 -11
- package/dist/{chunk-ZGDTBSQ7.js → chunk-56SIBIVF.js} +930 -660
- package/dist/{chunk-DACFZ5CI.js → chunk-7K3JALTQ.js} +18 -12
- package/dist/{chunk-IRRMABQD.js → chunk-APIVR44P.js} +10 -10
- package/dist/{chunk-XP7F4LYB.js → chunk-BTH37NCU.js} +4 -4
- package/dist/{chunk-5GBUZI6M.js → chunk-H7KUZAMZ.js} +4 -4
- package/dist/{chunk-PIB4EOW6.js → chunk-IWKVXO3F.js} +19 -72
- package/dist/{chunk-TYUXD3FN.js → chunk-MC4ZZE4Q.js} +1 -1
- package/dist/{chunk-2S7M37HY.js → chunk-NIFONS4W.js} +86 -47
- package/dist/{chunk-AOISHLSF.js → chunk-O6ZYIHFC.js} +143 -20
- package/dist/{chunk-GCWD2VHP.js → chunk-OQQU3SD6.js} +285 -124
- package/dist/{chunk-NW7AXDA5.js → chunk-OZJXGX4U.js} +2 -2
- package/dist/{chunk-KC42JAAQ.js → chunk-PFXC67GJ.js} +3 -3
- package/dist/{chunk-QCKGI74V.js → chunk-PGR4WGZW.js} +10 -10
- package/dist/{chunk-ZUK7BL63.js → chunk-S6QKIGRM.js} +66 -54
- package/dist/{chunk-IX76WFJV.js → chunk-TF5VLGA7.js} +10 -10
- package/dist/{chunk-AN2437E3.js → chunk-YTNPU7I2.js} +2 -2
- package/dist/{chunk-3MPOMK3K.js → chunk-YYBX2BD5.js} +61 -3
- package/dist/{chunk-ONFOWI2D.js → chunk-Z4FOYQXW.js} +16 -15
- package/dist/{chunk-RS6ANWVT.js → chunk-ZATRYQLR.js} +1 -1
- package/dist/cli/chat.js +20 -20
- package/dist/cli/check.js +3 -3
- package/dist/cli/plugins.js +9 -9
- package/dist/cli/snapshot-warmup.js +6 -6
- package/dist/cli/upgrade.js +9 -9
- package/dist/{db-CXI7PR5U.js → db-GCK43OO3.js} +4 -4
- package/dist/instrumentation.js +1 -1
- package/dist/reporting/conversations.d.ts +3 -3
- package/dist/reporting.d.ts +1 -1
- package/dist/reporting.js +48 -50
- package/dist/{runner-FKL3RAHA.js → runner-Y73GZ2VE.js} +20 -18
- package/dist/{validation-I7GD2YWS.js → validation-KYAWETI4.js} +3 -3
- package/package.json +6 -6
- package/dist/chat/requester.d.ts +0 -68
|
@@ -26,5 +26,45 @@ export declare function listDir(params: {
|
|
|
26
26
|
path?: string;
|
|
27
27
|
}): Promise<ListDirResult>;
|
|
28
28
|
/** Create the sandbox directory listing tool definition exposed to the agent. */
|
|
29
|
-
export declare function createListDirTool(): import("../definition").AnyToolDefinition
|
|
29
|
+
export declare function createListDirTool(): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
30
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
31
|
+
outputSchema: import("../definition").JsonSchemaObject;
|
|
32
|
+
prepareArguments(args: unknown): {
|
|
33
|
+
path?: string | undefined;
|
|
34
|
+
limit?: number | undefined;
|
|
35
|
+
};
|
|
36
|
+
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
ok: boolean;
|
|
39
|
+
status: "error" | "success";
|
|
40
|
+
target?: string | undefined;
|
|
41
|
+
data?: unknown;
|
|
42
|
+
truncated?: boolean | undefined;
|
|
43
|
+
continuation?: {
|
|
44
|
+
arguments: Record<string, unknown>;
|
|
45
|
+
reason?: string | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
error?: string | {
|
|
48
|
+
kind: string;
|
|
49
|
+
message: string;
|
|
50
|
+
retryable?: boolean | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
} | Promise<{
|
|
53
|
+
[x: string]: unknown;
|
|
54
|
+
ok: boolean;
|
|
55
|
+
status: "error" | "success";
|
|
56
|
+
target?: string | undefined;
|
|
57
|
+
data?: unknown;
|
|
58
|
+
truncated?: boolean | undefined;
|
|
59
|
+
continuation?: {
|
|
60
|
+
arguments: Record<string, unknown>;
|
|
61
|
+
reason?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
error?: string | {
|
|
64
|
+
kind: string;
|
|
65
|
+
message: string;
|
|
66
|
+
retryable?: boolean | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
}>) | undefined;
|
|
69
|
+
};
|
|
30
70
|
export {};
|
|
@@ -1,3 +1,44 @@
|
|
|
1
1
|
export { missingFileResult, sliceFileContent, } from "@/chat/tool-support/text-range-result";
|
|
2
2
|
/** Create the sandbox read tool definition exposed to the agent. */
|
|
3
|
-
export declare function createReadFileTool(): import("../definition").AnyToolDefinition
|
|
3
|
+
export declare function createReadFileTool(): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
5
|
+
outputSchema: import("../definition").JsonSchemaObject;
|
|
6
|
+
prepareArguments(args: unknown): {
|
|
7
|
+
path: string;
|
|
8
|
+
offset?: number | undefined;
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
};
|
|
11
|
+
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
ok: boolean;
|
|
14
|
+
status: "error" | "success";
|
|
15
|
+
target?: string | undefined;
|
|
16
|
+
data?: unknown;
|
|
17
|
+
truncated?: boolean | undefined;
|
|
18
|
+
continuation?: {
|
|
19
|
+
arguments: Record<string, unknown>;
|
|
20
|
+
reason?: string | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
error?: string | {
|
|
23
|
+
kind: string;
|
|
24
|
+
message: string;
|
|
25
|
+
retryable?: boolean | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
} | Promise<{
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
ok: boolean;
|
|
30
|
+
status: "error" | "success";
|
|
31
|
+
target?: string | undefined;
|
|
32
|
+
data?: unknown;
|
|
33
|
+
truncated?: boolean | undefined;
|
|
34
|
+
continuation?: {
|
|
35
|
+
arguments: Record<string, unknown>;
|
|
36
|
+
reason?: string | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
error?: string | {
|
|
39
|
+
kind: string;
|
|
40
|
+
message: string;
|
|
41
|
+
retryable?: boolean | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
}>) | undefined;
|
|
44
|
+
};
|
|
@@ -1,2 +1,42 @@
|
|
|
1
1
|
/** Create the sandbox full-file write tool definition exposed to the agent. */
|
|
2
|
-
export declare function createWriteFileTool(): import("../definition").AnyToolDefinition
|
|
2
|
+
export declare function createWriteFileTool(): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
3
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
4
|
+
outputSchema: import("../definition").JsonSchemaObject;
|
|
5
|
+
prepareArguments(args: unknown): {
|
|
6
|
+
path: string;
|
|
7
|
+
content: string;
|
|
8
|
+
};
|
|
9
|
+
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
ok: boolean;
|
|
12
|
+
status: "error" | "success";
|
|
13
|
+
target?: string | undefined;
|
|
14
|
+
data?: unknown;
|
|
15
|
+
truncated?: boolean | undefined;
|
|
16
|
+
continuation?: {
|
|
17
|
+
arguments: Record<string, unknown>;
|
|
18
|
+
reason?: string | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
error?: string | {
|
|
21
|
+
kind: string;
|
|
22
|
+
message: string;
|
|
23
|
+
retryable?: boolean | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
} | Promise<{
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
ok: boolean;
|
|
28
|
+
status: "error" | "success";
|
|
29
|
+
target?: string | undefined;
|
|
30
|
+
data?: unknown;
|
|
31
|
+
truncated?: boolean | undefined;
|
|
32
|
+
continuation?: {
|
|
33
|
+
arguments: Record<string, unknown>;
|
|
34
|
+
reason?: string | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
error?: string | {
|
|
37
|
+
kind: string;
|
|
38
|
+
message: string;
|
|
39
|
+
retryable?: boolean | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
}>) | undefined;
|
|
42
|
+
};
|
|
@@ -1,4 +1,105 @@
|
|
|
1
1
|
import type { AnyToolDefinition } from "@/chat/tools/definition";
|
|
2
2
|
export declare const SEARCH_TOOLS_NAME = "searchTools";
|
|
3
|
+
/** Summarize catalog descriptions before rendering them into model-visible data. */
|
|
4
|
+
export declare function summarizeModelVisibleDescription(description: string): string;
|
|
3
5
|
/** Create the model-visible search tool for the executable tool catalog. */
|
|
4
|
-
export declare function createSearchToolsTool(catalogTools: Record<string, AnyToolDefinition>): AnyToolDefinition
|
|
6
|
+
export declare function createSearchToolsTool(catalogTools: Record<string, AnyToolDefinition>): Omit<AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
7
|
+
inputSchema: import("@/chat/tools/definition").JsonSchemaObject;
|
|
8
|
+
outputSchema: import("@/chat/tools/definition").JsonSchemaObject;
|
|
9
|
+
prepareArguments(args: unknown): {
|
|
10
|
+
query?: string | null | undefined;
|
|
11
|
+
source?: string | null | undefined;
|
|
12
|
+
max_results?: number | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
execute?: ((input: unknown, options: import("@/chat/tools/definition").ToolExecuteOptions) => {
|
|
15
|
+
ok: boolean;
|
|
16
|
+
status: "error" | "success";
|
|
17
|
+
query: string | null;
|
|
18
|
+
source: string | null;
|
|
19
|
+
sources: {
|
|
20
|
+
id: string;
|
|
21
|
+
description: string;
|
|
22
|
+
}[];
|
|
23
|
+
total_catalog_tools: number;
|
|
24
|
+
total_eligible_tools: number;
|
|
25
|
+
total_matches: number;
|
|
26
|
+
returned_tools: number;
|
|
27
|
+
execution_tool: "executeTool";
|
|
28
|
+
execution_example: {
|
|
29
|
+
tool_name: string;
|
|
30
|
+
arguments: Record<string, string>;
|
|
31
|
+
};
|
|
32
|
+
tools: {
|
|
33
|
+
tool_name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
exposure: "hidden" | "direct" | "deferred" | "modelOnly";
|
|
36
|
+
signature: string;
|
|
37
|
+
call: {
|
|
38
|
+
tool_name: string;
|
|
39
|
+
arguments: Record<string, string>;
|
|
40
|
+
};
|
|
41
|
+
input_schema: unknown;
|
|
42
|
+
input_schema_summary: string;
|
|
43
|
+
call_notes: string[];
|
|
44
|
+
annotations: Record<string, unknown>;
|
|
45
|
+
source?: string | undefined;
|
|
46
|
+
}[];
|
|
47
|
+
target?: string | undefined;
|
|
48
|
+
data?: unknown;
|
|
49
|
+
truncated?: boolean | undefined;
|
|
50
|
+
continuation?: {
|
|
51
|
+
arguments: Record<string, unknown>;
|
|
52
|
+
reason?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
error?: string | {
|
|
55
|
+
kind: string;
|
|
56
|
+
message: string;
|
|
57
|
+
retryable?: boolean | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
} | Promise<{
|
|
60
|
+
ok: boolean;
|
|
61
|
+
status: "error" | "success";
|
|
62
|
+
query: string | null;
|
|
63
|
+
source: string | null;
|
|
64
|
+
sources: {
|
|
65
|
+
id: string;
|
|
66
|
+
description: string;
|
|
67
|
+
}[];
|
|
68
|
+
total_catalog_tools: number;
|
|
69
|
+
total_eligible_tools: number;
|
|
70
|
+
total_matches: number;
|
|
71
|
+
returned_tools: number;
|
|
72
|
+
execution_tool: "executeTool";
|
|
73
|
+
execution_example: {
|
|
74
|
+
tool_name: string;
|
|
75
|
+
arguments: Record<string, string>;
|
|
76
|
+
};
|
|
77
|
+
tools: {
|
|
78
|
+
tool_name: string;
|
|
79
|
+
description: string;
|
|
80
|
+
exposure: "hidden" | "direct" | "deferred" | "modelOnly";
|
|
81
|
+
signature: string;
|
|
82
|
+
call: {
|
|
83
|
+
tool_name: string;
|
|
84
|
+
arguments: Record<string, string>;
|
|
85
|
+
};
|
|
86
|
+
input_schema: unknown;
|
|
87
|
+
input_schema_summary: string;
|
|
88
|
+
call_notes: string[];
|
|
89
|
+
annotations: Record<string, unknown>;
|
|
90
|
+
source?: string | undefined;
|
|
91
|
+
}[];
|
|
92
|
+
target?: string | undefined;
|
|
93
|
+
data?: unknown;
|
|
94
|
+
truncated?: boolean | undefined;
|
|
95
|
+
continuation?: {
|
|
96
|
+
arguments: Record<string, unknown>;
|
|
97
|
+
reason?: string | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
error?: string | {
|
|
100
|
+
kind: string;
|
|
101
|
+
message: string;
|
|
102
|
+
retryable?: boolean | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
}>) | undefined;
|
|
105
|
+
};
|
|
@@ -4,5 +4,14 @@ interface CallMcpToolManager {
|
|
|
4
4
|
getResolvedActiveTools(): ManagedMcpTool[];
|
|
5
5
|
}
|
|
6
6
|
/** Create the stable dispatcher for active MCP provider tools. */
|
|
7
|
-
export declare function createCallMcpToolTool(mcpToolManager: CallMcpToolManager): import("../definition").AnyToolDefinition
|
|
7
|
+
export declare function createCallMcpToolTool(mcpToolManager: CallMcpToolManager): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
8
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
9
|
+
outputSchema?: undefined;
|
|
10
|
+
prepareArguments(args: unknown): {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
tool_name: string;
|
|
13
|
+
arguments?: Record<string, unknown> | undefined;
|
|
14
|
+
};
|
|
15
|
+
execute?: (input: unknown, options: import("../definition").ToolExecuteOptions) => Promise<import("@/chat/tool-support/zod-tool").ContentOnlyToolResult> | import("@/chat/tool-support/zod-tool").ContentOnlyToolResult;
|
|
16
|
+
};
|
|
8
17
|
export {};
|
|
@@ -18,4 +18,43 @@ export type LoadSkillMetadata = Pick<LoadSkillResult, "mcp_provider" | "availabl
|
|
|
18
18
|
/** Create the skill-loading tool that injects skill instructions and activates provider catalogs. */
|
|
19
19
|
export declare function createLoadSkillTool(availableSkills: SkillMetadata[], options?: {
|
|
20
20
|
onSkillLoaded?: (skill: Skill) => void | LoadSkillMetadata | Promise<void | LoadSkillMetadata>;
|
|
21
|
-
}): import("../definition").AnyToolDefinition
|
|
21
|
+
}): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
22
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
23
|
+
outputSchema: import("../definition").JsonSchemaObject;
|
|
24
|
+
prepareArguments(args: unknown): {
|
|
25
|
+
skill_name: string;
|
|
26
|
+
};
|
|
27
|
+
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
ok: boolean;
|
|
30
|
+
status: "error" | "success";
|
|
31
|
+
target?: string | undefined;
|
|
32
|
+
data?: unknown;
|
|
33
|
+
truncated?: boolean | undefined;
|
|
34
|
+
continuation?: {
|
|
35
|
+
arguments: Record<string, unknown>;
|
|
36
|
+
reason?: string | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
error?: string | {
|
|
39
|
+
kind: string;
|
|
40
|
+
message: string;
|
|
41
|
+
retryable?: boolean | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
} | Promise<{
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
ok: boolean;
|
|
46
|
+
status: "error" | "success";
|
|
47
|
+
target?: string | undefined;
|
|
48
|
+
data?: unknown;
|
|
49
|
+
truncated?: boolean | undefined;
|
|
50
|
+
continuation?: {
|
|
51
|
+
arguments: Record<string, unknown>;
|
|
52
|
+
reason?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
error?: string | {
|
|
55
|
+
kind: string;
|
|
56
|
+
message: string;
|
|
57
|
+
retryable?: boolean | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
}>) | undefined;
|
|
60
|
+
};
|
|
@@ -12,5 +12,104 @@ interface SearchMcpToolManager {
|
|
|
12
12
|
getAvailableProviderCatalog(): ProviderSummary[];
|
|
13
13
|
}
|
|
14
14
|
/** Create the progressive MCP catalog search tool used before callMcpTool. */
|
|
15
|
-
export declare function createSearchMcpToolsTool(mcpToolManager: SearchMcpToolManager): import("../definition").AnyToolDefinition
|
|
15
|
+
export declare function createSearchMcpToolsTool(mcpToolManager: SearchMcpToolManager): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
16
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
17
|
+
outputSchema: import("../definition").JsonSchemaObject;
|
|
18
|
+
prepareArguments(args: unknown): {
|
|
19
|
+
query?: string | undefined;
|
|
20
|
+
provider?: string | undefined;
|
|
21
|
+
max_results?: number | undefined;
|
|
22
|
+
};
|
|
23
|
+
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
24
|
+
ok: boolean;
|
|
25
|
+
status: "error" | "success";
|
|
26
|
+
query: string | null;
|
|
27
|
+
provider: string | null;
|
|
28
|
+
total_active_tools: number;
|
|
29
|
+
returned_tools: number;
|
|
30
|
+
execution_tool: "callMcpTool";
|
|
31
|
+
execution_example: {
|
|
32
|
+
tool_name: string;
|
|
33
|
+
arguments: Record<string, string>;
|
|
34
|
+
};
|
|
35
|
+
available_providers: {
|
|
36
|
+
provider: string;
|
|
37
|
+
description: string;
|
|
38
|
+
active: boolean;
|
|
39
|
+
}[];
|
|
40
|
+
tools: {
|
|
41
|
+
tool_name: string;
|
|
42
|
+
mcp_tool_name: string;
|
|
43
|
+
provider: string;
|
|
44
|
+
description: string;
|
|
45
|
+
signature: string;
|
|
46
|
+
call: {
|
|
47
|
+
tool_name: string;
|
|
48
|
+
arguments: Record<string, string>;
|
|
49
|
+
};
|
|
50
|
+
input_schema: Record<string, unknown>;
|
|
51
|
+
input_schema_summary: string;
|
|
52
|
+
title?: string | undefined;
|
|
53
|
+
output_schema?: Record<string, unknown> | undefined;
|
|
54
|
+
annotations?: Record<string, unknown> | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
target?: string | undefined;
|
|
57
|
+
data?: unknown;
|
|
58
|
+
truncated?: boolean | undefined;
|
|
59
|
+
continuation?: {
|
|
60
|
+
arguments: Record<string, unknown>;
|
|
61
|
+
reason?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
error?: string | {
|
|
64
|
+
kind: string;
|
|
65
|
+
message: string;
|
|
66
|
+
retryable?: boolean | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
} | Promise<{
|
|
69
|
+
ok: boolean;
|
|
70
|
+
status: "error" | "success";
|
|
71
|
+
query: string | null;
|
|
72
|
+
provider: string | null;
|
|
73
|
+
total_active_tools: number;
|
|
74
|
+
returned_tools: number;
|
|
75
|
+
execution_tool: "callMcpTool";
|
|
76
|
+
execution_example: {
|
|
77
|
+
tool_name: string;
|
|
78
|
+
arguments: Record<string, string>;
|
|
79
|
+
};
|
|
80
|
+
available_providers: {
|
|
81
|
+
provider: string;
|
|
82
|
+
description: string;
|
|
83
|
+
active: boolean;
|
|
84
|
+
}[];
|
|
85
|
+
tools: {
|
|
86
|
+
tool_name: string;
|
|
87
|
+
mcp_tool_name: string;
|
|
88
|
+
provider: string;
|
|
89
|
+
description: string;
|
|
90
|
+
signature: string;
|
|
91
|
+
call: {
|
|
92
|
+
tool_name: string;
|
|
93
|
+
arguments: Record<string, string>;
|
|
94
|
+
};
|
|
95
|
+
input_schema: Record<string, unknown>;
|
|
96
|
+
input_schema_summary: string;
|
|
97
|
+
title?: string | undefined;
|
|
98
|
+
output_schema?: Record<string, unknown> | undefined;
|
|
99
|
+
annotations?: Record<string, unknown> | undefined;
|
|
100
|
+
}[];
|
|
101
|
+
target?: string | undefined;
|
|
102
|
+
data?: unknown;
|
|
103
|
+
truncated?: boolean | undefined;
|
|
104
|
+
continuation?: {
|
|
105
|
+
arguments: Record<string, unknown>;
|
|
106
|
+
reason?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
error?: string | {
|
|
109
|
+
kind: string;
|
|
110
|
+
message: string;
|
|
111
|
+
retryable?: boolean | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
}>) | undefined;
|
|
114
|
+
};
|
|
16
115
|
export {};
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
export declare function createSystemTimeTool(): import("./definition").AnyToolDefinition
|
|
1
|
+
export declare function createSystemTimeTool(): Omit<import("./definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
2
|
+
inputSchema: import("./definition").JsonSchemaObject;
|
|
3
|
+
outputSchema: import("./definition").JsonSchemaObject;
|
|
4
|
+
prepareArguments(args: unknown): Record<string, never>;
|
|
5
|
+
execute?: ((input: unknown, options: import("./definition").ToolExecuteOptions) => {
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
ok: boolean;
|
|
8
|
+
status: "error" | "success";
|
|
9
|
+
target?: string | undefined;
|
|
10
|
+
data?: unknown;
|
|
11
|
+
truncated?: boolean | undefined;
|
|
12
|
+
continuation?: {
|
|
13
|
+
arguments: Record<string, unknown>;
|
|
14
|
+
reason?: string | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
error?: string | {
|
|
17
|
+
kind: string;
|
|
18
|
+
message: string;
|
|
19
|
+
retryable?: boolean | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
} | Promise<{
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
ok: boolean;
|
|
24
|
+
status: "error" | "success";
|
|
25
|
+
target?: string | undefined;
|
|
26
|
+
data?: unknown;
|
|
27
|
+
truncated?: boolean | undefined;
|
|
28
|
+
continuation?: {
|
|
29
|
+
arguments: Record<string, unknown>;
|
|
30
|
+
reason?: string | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
error?: string | {
|
|
33
|
+
kind: string;
|
|
34
|
+
message: string;
|
|
35
|
+
retryable?: boolean | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
}>) | undefined;
|
|
38
|
+
};
|
|
@@ -8,7 +8,7 @@ import type { Skill } from "@/chat/skills";
|
|
|
8
8
|
import type { LoadSkillMetadata } from "@/chat/tools/skill/load-skill";
|
|
9
9
|
import type { AdvisorToolRuntimeContext } from "@/chat/tools/advisor/tool";
|
|
10
10
|
import type { JuniorToolResult } from "@/chat/tool-support/structured-result";
|
|
11
|
-
import type {
|
|
11
|
+
import type { LocalActor, Actor, SlackActor } from "@/chat/actor";
|
|
12
12
|
export interface ImageGenerateToolDeps {
|
|
13
13
|
fetch?: typeof fetch;
|
|
14
14
|
}
|
|
@@ -56,7 +56,7 @@ interface BaseToolRuntimeContext {
|
|
|
56
56
|
conversationId?: string;
|
|
57
57
|
/** Runtime-owned default outbound destination for this invocation. */
|
|
58
58
|
destination: Destination;
|
|
59
|
-
|
|
59
|
+
actor?: Actor;
|
|
60
60
|
/** Runtime-owned source where this invocation came from. */
|
|
61
61
|
source: Source;
|
|
62
62
|
/** Runtime surface that owns final delivery semantics for this turn. */
|
|
@@ -70,12 +70,12 @@ interface BaseToolRuntimeContext {
|
|
|
70
70
|
}
|
|
71
71
|
interface SlackToolRuntimeContext extends BaseToolRuntimeContext {
|
|
72
72
|
destination: SlackDestination;
|
|
73
|
-
|
|
73
|
+
actor?: SlackActor;
|
|
74
74
|
source: SlackSource;
|
|
75
75
|
}
|
|
76
76
|
interface LocalToolRuntimeContext extends BaseToolRuntimeContext {
|
|
77
77
|
destination: LocalDestination;
|
|
78
|
-
|
|
78
|
+
actor?: LocalActor;
|
|
79
79
|
source: LocalSource;
|
|
80
80
|
slack?: never;
|
|
81
81
|
}
|
|
@@ -2,4 +2,44 @@ import type { ToolHooks } from "@/chat/tools/types";
|
|
|
2
2
|
/** Create the fetch tool with delivery guidance scoped to active file-send capability. */
|
|
3
3
|
export declare function createWebFetchTool(hooks: ToolHooks, options?: {
|
|
4
4
|
canSendFilesToActiveConversation?: boolean;
|
|
5
|
-
}): import("../definition").AnyToolDefinition
|
|
5
|
+
}): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
6
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
7
|
+
outputSchema: import("../definition").JsonSchemaObject;
|
|
8
|
+
prepareArguments(args: unknown): {
|
|
9
|
+
url: string;
|
|
10
|
+
max_chars?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
ok: boolean;
|
|
15
|
+
status: "error" | "success";
|
|
16
|
+
target?: string | undefined;
|
|
17
|
+
data?: unknown;
|
|
18
|
+
truncated?: boolean | undefined;
|
|
19
|
+
continuation?: {
|
|
20
|
+
arguments: Record<string, unknown>;
|
|
21
|
+
reason?: string | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
error?: string | {
|
|
24
|
+
kind: string;
|
|
25
|
+
message: string;
|
|
26
|
+
retryable?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
} | Promise<{
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
ok: boolean;
|
|
31
|
+
status: "error" | "success";
|
|
32
|
+
target?: string | undefined;
|
|
33
|
+
data?: unknown;
|
|
34
|
+
truncated?: boolean | undefined;
|
|
35
|
+
continuation?: {
|
|
36
|
+
arguments: Record<string, unknown>;
|
|
37
|
+
reason?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
error?: string | {
|
|
40
|
+
kind: string;
|
|
41
|
+
message: string;
|
|
42
|
+
retryable?: boolean | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
}>) | undefined;
|
|
45
|
+
};
|
|
@@ -2,4 +2,65 @@ import type { ImageGenerateToolDeps, ToolHooks } from "@/chat/tools/types";
|
|
|
2
2
|
/** Create the image tool with sandbox artifact guidance matched to file-send capability. */
|
|
3
3
|
export declare function createImageGenerateTool(hooks: Required<Pick<ToolHooks, "writeGeneratedArtifacts">>, options?: {
|
|
4
4
|
canSendFilesToActiveConversation?: boolean;
|
|
5
|
-
}, deps?: ImageGenerateToolDeps): import("../definition").AnyToolDefinition
|
|
5
|
+
}, deps?: ImageGenerateToolDeps): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
6
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
7
|
+
outputSchema: import("../definition").JsonSchemaObject;
|
|
8
|
+
prepareArguments(args: unknown): {
|
|
9
|
+
prompt: string;
|
|
10
|
+
};
|
|
11
|
+
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
12
|
+
ok: boolean;
|
|
13
|
+
status: "error" | "success";
|
|
14
|
+
model: string;
|
|
15
|
+
prompt: string;
|
|
16
|
+
enrichedPrompt: string;
|
|
17
|
+
image_count: number;
|
|
18
|
+
images: {
|
|
19
|
+
filename: string;
|
|
20
|
+
path: string;
|
|
21
|
+
attachment_path: string;
|
|
22
|
+
bytes: number;
|
|
23
|
+
media_type?: string | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
delivery: string;
|
|
26
|
+
target?: string | undefined;
|
|
27
|
+
data?: unknown;
|
|
28
|
+
truncated?: boolean | undefined;
|
|
29
|
+
continuation?: {
|
|
30
|
+
arguments: Record<string, unknown>;
|
|
31
|
+
reason?: string | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
error?: string | {
|
|
34
|
+
kind: string;
|
|
35
|
+
message: string;
|
|
36
|
+
retryable?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
} | Promise<{
|
|
39
|
+
ok: boolean;
|
|
40
|
+
status: "error" | "success";
|
|
41
|
+
model: string;
|
|
42
|
+
prompt: string;
|
|
43
|
+
enrichedPrompt: string;
|
|
44
|
+
image_count: number;
|
|
45
|
+
images: {
|
|
46
|
+
filename: string;
|
|
47
|
+
path: string;
|
|
48
|
+
attachment_path: string;
|
|
49
|
+
bytes: number;
|
|
50
|
+
media_type?: string | undefined;
|
|
51
|
+
}[];
|
|
52
|
+
delivery: string;
|
|
53
|
+
target?: string | undefined;
|
|
54
|
+
data?: unknown;
|
|
55
|
+
truncated?: boolean | undefined;
|
|
56
|
+
continuation?: {
|
|
57
|
+
arguments: Record<string, unknown>;
|
|
58
|
+
reason?: string | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
error?: string | {
|
|
61
|
+
kind: string;
|
|
62
|
+
message: string;
|
|
63
|
+
retryable?: boolean | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
}>) | undefined;
|
|
66
|
+
};
|
|
@@ -1,2 +1,42 @@
|
|
|
1
1
|
import type { WebSearchToolDeps } from "@/chat/tools/types";
|
|
2
|
-
export declare function createWebSearchTool(override?: WebSearchToolDeps): import("../definition").AnyToolDefinition
|
|
2
|
+
export declare function createWebSearchTool(override?: WebSearchToolDeps): Omit<import("../definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
3
|
+
inputSchema: import("../definition").JsonSchemaObject;
|
|
4
|
+
outputSchema: import("../definition").JsonSchemaObject;
|
|
5
|
+
prepareArguments(args: unknown): {
|
|
6
|
+
query: string;
|
|
7
|
+
max_results?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
execute?: ((input: unknown, options: import("../definition").ToolExecuteOptions) => {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
ok: boolean;
|
|
12
|
+
status: "error" | "success";
|
|
13
|
+
target?: string | undefined;
|
|
14
|
+
data?: unknown;
|
|
15
|
+
truncated?: boolean | undefined;
|
|
16
|
+
continuation?: {
|
|
17
|
+
arguments: Record<string, unknown>;
|
|
18
|
+
reason?: string | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
error?: string | {
|
|
21
|
+
kind: string;
|
|
22
|
+
message: string;
|
|
23
|
+
retryable?: boolean | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
} | Promise<{
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
ok: boolean;
|
|
28
|
+
status: "error" | "success";
|
|
29
|
+
target?: string | undefined;
|
|
30
|
+
data?: unknown;
|
|
31
|
+
truncated?: boolean | undefined;
|
|
32
|
+
continuation?: {
|
|
33
|
+
arguments: Record<string, unknown>;
|
|
34
|
+
reason?: string | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
error?: string | {
|
|
37
|
+
kind: string;
|
|
38
|
+
message: string;
|
|
39
|
+
retryable?: boolean | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
}>) | undefined;
|
|
42
|
+
};
|