@sentry/junior 0.90.0 → 0.92.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-MXAF7RQL.js → agent-hooks-BYSSWCNW.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 +406 -267
- 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 +4 -4
- package/dist/chat/agent/request.d.ts +21 -13
- package/dist/chat/agent/resume.d.ts +5 -4
- package/dist/chat/agent/tools.d.ts +2 -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/current-instruction.d.ts +5 -3
- package/dist/chat/logging.d.ts +2 -2
- package/dist/chat/no-reply.d.ts +1 -1
- package/dist/chat/oauth-authorization-message.d.ts +6 -0
- 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 +3 -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/mrkdwn.d.ts +6 -0
- 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-BKSZL4QO.js → chunk-7DVIELX3.js} +670 -401
- package/dist/{chunk-GCWD2VHP.js → chunk-7FS3K243.js} +284 -124
- package/dist/{chunk-AOISHLSF.js → chunk-ACJENBVF.js} +143 -20
- package/dist/{chunk-IRRMABQD.js → chunk-APIVR44P.js} +10 -10
- package/dist/{chunk-PHZHJTCK.js → chunk-BMQ5DXHV.js} +30 -52
- package/dist/{chunk-XP7F4LYB.js → chunk-BTH37NCU.js} +4 -4
- package/dist/{chunk-5GBUZI6M.js → chunk-H7KUZAMZ.js} +4 -4
- package/dist/{chunk-TYUXD3FN.js → chunk-MC4ZZE4Q.js} +1 -1
- package/dist/{chunk-QCKGI74V.js → chunk-N25HRI6B.js} +10 -10
- package/dist/{chunk-2S7M37HY.js → chunk-NIFONS4W.js} +86 -47
- package/dist/{chunk-ONFOWI2D.js → chunk-OJP53WIU.js} +16 -15
- package/dist/{chunk-NW7AXDA5.js → chunk-OZJXGX4U.js} +2 -2
- package/dist/{chunk-KC42JAAQ.js → chunk-PFXC67GJ.js} +3 -3
- package/dist/{chunk-ZUK7BL63.js → chunk-S6QKIGRM.js} +66 -54
- package/dist/{chunk-IX76WFJV.js → chunk-TF5VLGA7.js} +10 -10
- package/dist/{chunk-DACFZ5CI.js → chunk-VY7TVOIK.js} +16 -12
- package/dist/{chunk-AN2437E3.js → chunk-YTNPU7I2.js} +2 -2
- package/dist/{chunk-3MPOMK3K.js → chunk-YYBX2BD5.js} +61 -3
- 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-XWTFA26U.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
|
@@ -1,3 +1,42 @@
|
|
|
1
1
|
import type { ToolState } from "@/chat/tools/types";
|
|
2
2
|
/** Create a tool that reads items from the active Slack list. */
|
|
3
|
-
export declare function createSlackListGetItemsTool(state: ToolState): import("../../../tools/definition").AnyToolDefinition
|
|
3
|
+
export declare function createSlackListGetItemsTool(state: ToolState): Omit<import("../../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
+
inputSchema: import("../../../tools/definition").JsonSchemaObject;
|
|
5
|
+
outputSchema: import("../../../tools/definition").JsonSchemaObject;
|
|
6
|
+
prepareArguments(args: unknown): {
|
|
7
|
+
limit?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
execute?: ((input: unknown, options: import("../../../tools/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,3 +1,48 @@
|
|
|
1
1
|
import type { ToolState } from "@/chat/tools/types";
|
|
2
2
|
/** Create a tool that updates an item in the active Slack list. */
|
|
3
|
-
export declare function createSlackListUpdateItemTool(state: ToolState): import("../../../tools/definition").AnyToolDefinition
|
|
3
|
+
export declare function createSlackListUpdateItemTool(state: ToolState): Omit<import("../../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
4
|
+
inputSchema: import("../../../tools/definition").JsonSchemaObject;
|
|
5
|
+
outputSchema: import("../../../tools/definition").JsonSchemaObject;
|
|
6
|
+
prepareArguments(args: unknown): {
|
|
7
|
+
item_id: string;
|
|
8
|
+
completed: boolean;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
item_id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
completed?: boolean | undefined;
|
|
14
|
+
};
|
|
15
|
+
execute?: ((input: unknown, options: import("../../../tools/definition").ToolExecuteOptions) => {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
ok: boolean;
|
|
18
|
+
status: "error" | "success";
|
|
19
|
+
target?: string | undefined;
|
|
20
|
+
data?: unknown;
|
|
21
|
+
truncated?: boolean | undefined;
|
|
22
|
+
continuation?: {
|
|
23
|
+
arguments: Record<string, unknown>;
|
|
24
|
+
reason?: string | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
error?: string | {
|
|
27
|
+
kind: string;
|
|
28
|
+
message: string;
|
|
29
|
+
retryable?: boolean | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
} | Promise<{
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
ok: boolean;
|
|
34
|
+
status: "error" | "success";
|
|
35
|
+
target?: string | undefined;
|
|
36
|
+
data?: unknown;
|
|
37
|
+
truncated?: boolean | undefined;
|
|
38
|
+
continuation?: {
|
|
39
|
+
arguments: Record<string, unknown>;
|
|
40
|
+
reason?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
error?: string | {
|
|
43
|
+
kind: string;
|
|
44
|
+
message: string;
|
|
45
|
+
retryable?: boolean | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
}>) | undefined;
|
|
48
|
+
};
|
|
@@ -1,4 +1,43 @@
|
|
|
1
1
|
import type { SlackToolContext } from "@/chat/slack/tools/context";
|
|
2
2
|
import type { ToolState } from "@/chat/tools/types";
|
|
3
3
|
/** Create the tool that reacts to the current inbound Slack message. */
|
|
4
|
-
export declare function createSlackMessageAddReactionTool(context: SlackToolContext, state: ToolState): import("../../tools/definition").AnyToolDefinition
|
|
4
|
+
export declare function createSlackMessageAddReactionTool(context: SlackToolContext, state: ToolState): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
5
|
+
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
6
|
+
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
7
|
+
prepareArguments(args: unknown): {
|
|
8
|
+
emoji: string;
|
|
9
|
+
};
|
|
10
|
+
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
ok: boolean;
|
|
13
|
+
status: "error" | "success";
|
|
14
|
+
target?: string | undefined;
|
|
15
|
+
data?: unknown;
|
|
16
|
+
truncated?: boolean | undefined;
|
|
17
|
+
continuation?: {
|
|
18
|
+
arguments: Record<string, unknown>;
|
|
19
|
+
reason?: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
error?: string | {
|
|
22
|
+
kind: string;
|
|
23
|
+
message: string;
|
|
24
|
+
retryable?: boolean | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
} | Promise<{
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
ok: boolean;
|
|
29
|
+
status: "error" | "success";
|
|
30
|
+
target?: string | undefined;
|
|
31
|
+
data?: unknown;
|
|
32
|
+
truncated?: boolean | undefined;
|
|
33
|
+
continuation?: {
|
|
34
|
+
arguments: Record<string, unknown>;
|
|
35
|
+
reason?: string | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
error?: string | {
|
|
38
|
+
kind: string;
|
|
39
|
+
message: string;
|
|
40
|
+
retryable?: boolean | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
}>) | undefined;
|
|
43
|
+
};
|
|
@@ -8,4 +8,48 @@ export type MaterializeMessageFile = (input: {
|
|
|
8
8
|
mimeType?: string;
|
|
9
9
|
}) => Promise<SandboxFileUpload>;
|
|
10
10
|
/** Create the Slack side-effect tool for active-conversation text and file messages. */
|
|
11
|
-
export declare function createSendMessageTool(context: SlackToolContext, state: ToolState, materializeFile: MaterializeMessageFile): import("../../tools/definition").AnyToolDefinition
|
|
11
|
+
export declare function createSendMessageTool(context: SlackToolContext, state: ToolState, materializeFile: MaterializeMessageFile): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
12
|
+
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
13
|
+
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
14
|
+
prepareArguments(args: unknown): {
|
|
15
|
+
text?: string | null | undefined;
|
|
16
|
+
files?: {
|
|
17
|
+
path: string;
|
|
18
|
+
filename?: string | null | undefined;
|
|
19
|
+
mimeType?: string | null | undefined;
|
|
20
|
+
}[] | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
ok: boolean;
|
|
25
|
+
status: "error" | "success";
|
|
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
|
+
[x: string]: unknown;
|
|
40
|
+
ok: boolean;
|
|
41
|
+
status: "error" | "success";
|
|
42
|
+
target?: string | undefined;
|
|
43
|
+
data?: unknown;
|
|
44
|
+
truncated?: boolean | undefined;
|
|
45
|
+
continuation?: {
|
|
46
|
+
arguments: Record<string, unknown>;
|
|
47
|
+
reason?: string | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
error?: string | {
|
|
50
|
+
kind: string;
|
|
51
|
+
message: string;
|
|
52
|
+
retryable?: boolean | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
}>) | undefined;
|
|
55
|
+
};
|
|
@@ -3,4 +3,47 @@ import type { SlackToolContext } from "@/chat/slack/tools/context";
|
|
|
3
3
|
/** Create a tool that reads a Slack thread from a shared message URL or explicit coordinates. */
|
|
4
4
|
export declare function createSlackThreadReadTool(context: SlackToolContext, deps?: {
|
|
5
5
|
visibilityStore?: DestinationVisibilityReader;
|
|
6
|
-
}): import("../../tools/definition").AnyToolDefinition
|
|
6
|
+
}): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
7
|
+
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
8
|
+
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
9
|
+
prepareArguments(args: unknown): {
|
|
10
|
+
url?: string | undefined;
|
|
11
|
+
channel_id?: string | undefined;
|
|
12
|
+
ts?: string | undefined;
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
max_pages?: number | undefined;
|
|
15
|
+
};
|
|
16
|
+
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
ok: boolean;
|
|
19
|
+
status: "error" | "success";
|
|
20
|
+
target?: string | undefined;
|
|
21
|
+
data?: unknown;
|
|
22
|
+
truncated?: boolean | undefined;
|
|
23
|
+
continuation?: {
|
|
24
|
+
arguments: Record<string, unknown>;
|
|
25
|
+
reason?: string | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
error?: string | {
|
|
28
|
+
kind: string;
|
|
29
|
+
message: string;
|
|
30
|
+
retryable?: boolean | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
} | Promise<{
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
ok: boolean;
|
|
35
|
+
status: "error" | "success";
|
|
36
|
+
target?: string | undefined;
|
|
37
|
+
data?: unknown;
|
|
38
|
+
truncated?: boolean | undefined;
|
|
39
|
+
continuation?: {
|
|
40
|
+
arguments: Record<string, unknown>;
|
|
41
|
+
reason?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
error?: string | {
|
|
44
|
+
kind: string;
|
|
45
|
+
message: string;
|
|
46
|
+
retryable?: boolean | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
}>) | undefined;
|
|
49
|
+
};
|
|
@@ -1,2 +1,46 @@
|
|
|
1
1
|
/** Create the tool that resolves Slack users by ID, handle, or email. */
|
|
2
|
-
export declare function createSlackUserLookupTool(): import("../../tools/definition").AnyToolDefinition
|
|
2
|
+
export declare function createSlackUserLookupTool(): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
|
|
3
|
+
inputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
4
|
+
outputSchema: import("../../tools/definition").JsonSchemaObject;
|
|
5
|
+
prepareArguments(args: unknown): {
|
|
6
|
+
user_id?: string | undefined;
|
|
7
|
+
email?: string | undefined;
|
|
8
|
+
query?: string | undefined;
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
max_pages?: number | undefined;
|
|
11
|
+
include_bots?: boolean | undefined;
|
|
12
|
+
};
|
|
13
|
+
execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
ok: boolean;
|
|
16
|
+
status: "error" | "success";
|
|
17
|
+
target?: string | undefined;
|
|
18
|
+
data?: unknown;
|
|
19
|
+
truncated?: boolean | undefined;
|
|
20
|
+
continuation?: {
|
|
21
|
+
arguments: Record<string, unknown>;
|
|
22
|
+
reason?: string | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
error?: string | {
|
|
25
|
+
kind: string;
|
|
26
|
+
message: string;
|
|
27
|
+
retryable?: boolean | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
} | Promise<{
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
ok: boolean;
|
|
32
|
+
status: "error" | "success";
|
|
33
|
+
target?: string | undefined;
|
|
34
|
+
data?: unknown;
|
|
35
|
+
truncated?: boolean | undefined;
|
|
36
|
+
continuation?: {
|
|
37
|
+
arguments: Record<string, unknown>;
|
|
38
|
+
reason?: string | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
error?: string | {
|
|
41
|
+
kind: string;
|
|
42
|
+
message: string;
|
|
43
|
+
retryable?: boolean | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
}>) | undefined;
|
|
46
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SlackActor } from "@/chat/actor";
|
|
2
2
|
interface SlackUserLookupResult {
|
|
3
3
|
userName?: string;
|
|
4
4
|
fullName?: string;
|
|
@@ -6,6 +6,6 @@ interface SlackUserLookupResult {
|
|
|
6
6
|
}
|
|
7
7
|
/** Fetch Slack user profile info with in-memory TTL cache to avoid repeated API calls. */
|
|
8
8
|
export declare function lookupSlackUser(teamId: string, userId?: string): Promise<SlackUserLookupResult | null>;
|
|
9
|
-
/** Resolve the canonical Slack
|
|
10
|
-
export declare function
|
|
9
|
+
/** Resolve the canonical Slack actor from Slack profile data. */
|
|
10
|
+
export declare function lookupSlackActor(teamId: string, userId: string): Promise<SlackActor>;
|
|
11
11
|
export {};
|
|
@@ -38,7 +38,7 @@ export interface VisionContextService {
|
|
|
38
38
|
hydrateConversationVisionContext: (conversation: ThreadConversationState, context: {
|
|
39
39
|
threadId?: string;
|
|
40
40
|
channelId?: string;
|
|
41
|
-
|
|
41
|
+
actorId?: string;
|
|
42
42
|
runId?: string;
|
|
43
43
|
threadTs?: string;
|
|
44
44
|
}) => Promise<void>;
|
|
@@ -46,7 +46,7 @@ export interface VisionContextService {
|
|
|
46
46
|
}
|
|
47
47
|
interface ResolveUserAttachmentsContext {
|
|
48
48
|
threadId?: string;
|
|
49
|
-
|
|
49
|
+
actorId?: string;
|
|
50
50
|
channelId?: string;
|
|
51
51
|
runId?: string;
|
|
52
52
|
conversation?: ThreadConversationState;
|
|
@@ -175,23 +175,6 @@ export declare const juniorSqlSchema: {
|
|
|
175
175
|
identity: undefined;
|
|
176
176
|
generated: undefined;
|
|
177
177
|
}, {}, {}>;
|
|
178
|
-
requesterIdentityId: import("drizzle-orm/pg-core").PgColumn<{
|
|
179
|
-
name: "requester_identity_id";
|
|
180
|
-
tableName: "junior_conversations";
|
|
181
|
-
dataType: "string";
|
|
182
|
-
columnType: "PgText";
|
|
183
|
-
data: string;
|
|
184
|
-
driverParam: string;
|
|
185
|
-
notNull: false;
|
|
186
|
-
hasDefault: false;
|
|
187
|
-
isPrimaryKey: false;
|
|
188
|
-
isAutoincrement: false;
|
|
189
|
-
hasRuntimeDefault: false;
|
|
190
|
-
enumValues: [string, ...string[]];
|
|
191
|
-
baseColumn: never;
|
|
192
|
-
identity: undefined;
|
|
193
|
-
generated: undefined;
|
|
194
|
-
}, {}, {}>;
|
|
195
178
|
creatorIdentityId: import("drizzle-orm/pg-core").PgColumn<{
|
|
196
179
|
name: "creator_identity_id";
|
|
197
180
|
tableName: "junior_conversations";
|
|
@@ -226,8 +209,8 @@ export declare const juniorSqlSchema: {
|
|
|
226
209
|
identity: undefined;
|
|
227
210
|
generated: undefined;
|
|
228
211
|
}, {}, {}>;
|
|
229
|
-
|
|
230
|
-
name: "
|
|
212
|
+
actor: import("drizzle-orm/pg-core").PgColumn<{
|
|
213
|
+
name: "actor_json";
|
|
231
214
|
tableName: "junior_conversations";
|
|
232
215
|
dataType: "json";
|
|
233
216
|
columnType: "PgJsonb";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StoredSlackActor } from "@/chat/actor";
|
|
2
2
|
import type { AgentTurnSurface } from "./turn-session";
|
|
3
3
|
export interface ConversationDetailsRecord {
|
|
4
4
|
conversationId: string;
|
|
@@ -10,8 +10,8 @@ export interface ConversationDetailsRecord {
|
|
|
10
10
|
channelName?: string;
|
|
11
11
|
/** Surface on which the conversation was started. */
|
|
12
12
|
originSurface?: AgentTurnSurface;
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/** Actor who initiated the conversation (first turn). */
|
|
14
|
+
originActor?: StoredSlackActor;
|
|
15
15
|
/** Timestamp of the first turn in the conversation. */
|
|
16
16
|
startedAtMs?: number;
|
|
17
17
|
}
|
|
@@ -22,7 +22,7 @@ export interface ConversationDetailsRecord {
|
|
|
22
22
|
export declare function initConversationContext(conversationId: string, context: {
|
|
23
23
|
channelName?: string;
|
|
24
24
|
originSurface?: AgentTurnSurface;
|
|
25
|
-
|
|
25
|
+
originActor?: StoredSlackActor;
|
|
26
26
|
startedAtMs: number;
|
|
27
27
|
}): Promise<void>;
|
|
28
28
|
/**
|