@sentry/junior 0.139.0 → 0.140.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-MJXMD7JP.js → agent-hooks-BFTDRFUO.js} +10 -10
- package/dist/api/schema/task.d.ts +4 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +19 -19
- package/dist/app.js +116 -35
- package/dist/{catalog-runtime-GCCFYPIK.js → catalog-runtime-RK664S5T.js} +5 -5
- package/dist/chat/scheduled-tasks/telemetry.d.ts +7 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +10 -2
- 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/scheduled-tasks/types.d.ts +1 -1
- package/dist/chat/slack/dashboard-link.d.ts +2 -0
- package/dist/chat/state/turn-session-keys.d.ts +2 -2
- package/dist/chat/state/turn-session.d.ts +15 -9
- package/dist/{chunk-GI52BW74.js → chunk-3B7O3GNU.js} +3 -3
- package/dist/{chunk-ZQCGQMF2.js → chunk-3CUBAGA3.js} +7 -7
- package/dist/{chunk-IIESAYDL.js → chunk-4PIT6O7A.js} +17 -8
- package/dist/{chunk-UDBUS533.js → chunk-557HLSNH.js} +1 -1
- package/dist/{chunk-U27DSXKB.js → chunk-5KAZMR5U.js} +6 -6
- package/dist/{chunk-AEQISMMU.js → chunk-5YAWB2AX.js} +5 -5
- package/dist/{chunk-5GSZWRE2.js → chunk-A6BI25J3.js} +8 -8
- package/dist/{chunk-MQ5RYATN.js → chunk-AA2EPMUF.js} +4 -4
- package/dist/{chunk-PJW6U46K.js → chunk-BMFRFSTM.js} +60 -68
- package/dist/{chunk-U7CMWQ7Z.js → chunk-CPPTBHQN.js} +1 -1
- package/dist/{chunk-GWQSZT4C.js → chunk-D3X2PI3D.js} +2 -2
- package/dist/{chunk-WZH4JV7R.js → chunk-DMDOKRPC.js} +5 -5
- package/dist/{chunk-6SU2DT27.js → chunk-HEFBGCCU.js} +2 -2
- package/dist/{chunk-CXH25EL4.js → chunk-I3OZR3HG.js} +1 -1
- package/dist/{chunk-MXTVUV3I.js → chunk-J5H65GY2.js} +1 -1
- package/dist/{chunk-ZYQSPQYR.js → chunk-MYVCHWDG.js} +31 -18
- package/dist/{chunk-6OHTDR4F.js → chunk-N2I7W2VS.js} +1 -1
- package/dist/{chunk-2ECYPYKP.js → chunk-NPL66ZWL.js} +1 -1
- package/dist/{chunk-G52UXKGO.js → chunk-OGNL2QY7.js} +4 -4
- package/dist/{chunk-75I3UBIL.js → chunk-S3FAOKQU.js} +2 -2
- package/dist/{chunk-3T2JAGRH.js → chunk-TGIKZJ3Y.js} +2 -2
- package/dist/{chunk-J3S57AXY.js → chunk-TKTZ4L4Z.js} +1 -1
- package/dist/{chunk-YGZ2OLXL.js → chunk-UXMRN2ZX.js} +1 -1
- package/dist/{chunk-WQRX57EA.js → chunk-VRDHAITB.js} +3 -3
- package/dist/{chunk-QTBKPZDA.js → chunk-WSWM6A3R.js} +3 -3
- package/dist/{chunk-MXVD2BDS.js → chunk-WTGLUX4K.js} +1 -1
- package/dist/{chunk-4V4QIYJH.js → chunk-XROWZSOY.js} +1 -1
- package/dist/{chunk-DW4PMHNW.js → chunk-XX2QNQN4.js} +147 -86
- package/dist/{chunk-C2N6MNO4.js → chunk-YB363QGA.js} +1 -1
- package/dist/{chunk-YCTDA7BD.js → chunk-YWM6MJT4.js} +1 -1
- package/dist/{chunk-J6EJQCHY.js → chunk-Z2A7BDHT.js} +15 -15
- package/dist/cli/chat.js +30 -30
- 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-UXPPGHDF.js → db-QOGYDDQM.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-4ZYMD5UA.js → oauth-callback-server-CT4RMGCP.js} +21 -21
- package/dist/{runner-MZSEONRZ.js → runner-PHMLHNLX.js} +13 -13
- package/dist/{skills-IMVPXSQ7.js → skills-AYRM4QGF.js} +6 -6
- package/dist/{spawn-S5LSVOCE.js → spawn-OGRQFUNK.js} +17 -17
- package/dist/{validation-ZKCY2BVR.js → validation-M5JNGRGL.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-GG3XDYRX.js → work-LZWE6HK4.js} +16 -16
- package/dist/{worker-23AUELCJ.js → worker-KOGPXFYK.js} +10 -10
- package/package.json +4 -4
|
@@ -34,7 +34,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
|
|
|
34
34
|
target: string;
|
|
35
35
|
task: {
|
|
36
36
|
id: string;
|
|
37
|
-
status: "blocked" | "active" | "deleted";
|
|
37
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
38
38
|
task: string;
|
|
39
39
|
schedule: string;
|
|
40
40
|
timezone: string;
|
|
@@ -45,6 +45,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
|
|
|
45
45
|
visibility: "public" | "private";
|
|
46
46
|
};
|
|
47
47
|
credential_mode: "system" | "creator";
|
|
48
|
+
dashboard_url: string | null;
|
|
48
49
|
last_run_at: string | null;
|
|
49
50
|
run_now_at: string | null;
|
|
50
51
|
};
|
|
@@ -57,7 +58,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
|
|
|
57
58
|
target: string;
|
|
58
59
|
task: {
|
|
59
60
|
id: string;
|
|
60
|
-
status: "blocked" | "active" | "deleted";
|
|
61
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
61
62
|
task: string;
|
|
62
63
|
schedule: string;
|
|
63
64
|
timezone: string;
|
|
@@ -68,6 +69,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
|
|
|
68
69
|
visibility: "public" | "private";
|
|
69
70
|
};
|
|
70
71
|
credential_mode: "system" | "creator";
|
|
72
|
+
dashboard_url: string | null;
|
|
71
73
|
last_run_at: string | null;
|
|
72
74
|
run_now_at: string | null;
|
|
73
75
|
};
|
|
@@ -10,7 +10,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
|
|
|
10
10
|
target: string;
|
|
11
11
|
task: {
|
|
12
12
|
id: string;
|
|
13
|
-
status: "blocked" | "active" | "deleted";
|
|
13
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
14
14
|
task: string;
|
|
15
15
|
schedule: string;
|
|
16
16
|
timezone: string;
|
|
@@ -21,6 +21,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
|
|
|
21
21
|
visibility: "public" | "private";
|
|
22
22
|
};
|
|
23
23
|
credential_mode: "system" | "creator";
|
|
24
|
+
dashboard_url: string | null;
|
|
24
25
|
last_run_at: string | null;
|
|
25
26
|
run_now_at: string | null;
|
|
26
27
|
};
|
|
@@ -33,7 +34,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
|
|
|
33
34
|
target: string;
|
|
34
35
|
task: {
|
|
35
36
|
id: string;
|
|
36
|
-
status: "blocked" | "active" | "deleted";
|
|
37
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
37
38
|
task: string;
|
|
38
39
|
schedule: string;
|
|
39
40
|
timezone: string;
|
|
@@ -44,6 +45,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
|
|
|
44
45
|
visibility: "public" | "private";
|
|
45
46
|
};
|
|
46
47
|
credential_mode: "system" | "creator";
|
|
48
|
+
dashboard_url: string | null;
|
|
47
49
|
last_run_at: string | null;
|
|
48
50
|
run_now_at: string | null;
|
|
49
51
|
};
|
|
@@ -8,7 +8,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
|
|
|
8
8
|
target: string;
|
|
9
9
|
tasks: {
|
|
10
10
|
id: string;
|
|
11
|
-
status: "blocked" | "active" | "deleted";
|
|
11
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
12
12
|
task: string;
|
|
13
13
|
schedule: string;
|
|
14
14
|
timezone: string;
|
|
@@ -19,6 +19,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
|
|
|
19
19
|
visibility: "public" | "private";
|
|
20
20
|
};
|
|
21
21
|
credential_mode: "system" | "creator";
|
|
22
|
+
dashboard_url: string | null;
|
|
22
23
|
last_run_at: string | null;
|
|
23
24
|
run_now_at: string | null;
|
|
24
25
|
}[];
|
|
@@ -31,7 +32,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
|
|
|
31
32
|
target: string;
|
|
32
33
|
tasks: {
|
|
33
34
|
id: string;
|
|
34
|
-
status: "blocked" | "active" | "deleted";
|
|
35
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
35
36
|
task: string;
|
|
36
37
|
schedule: string;
|
|
37
38
|
timezone: string;
|
|
@@ -42,6 +43,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
|
|
|
42
43
|
visibility: "public" | "private";
|
|
43
44
|
};
|
|
44
45
|
credential_mode: "system" | "creator";
|
|
46
|
+
dashboard_url: string | null;
|
|
45
47
|
last_run_at: string | null;
|
|
46
48
|
run_now_at: string | null;
|
|
47
49
|
}[];
|
|
@@ -10,7 +10,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
|
|
|
10
10
|
target: string;
|
|
11
11
|
task: {
|
|
12
12
|
id: string;
|
|
13
|
-
status: "blocked" | "active" | "deleted";
|
|
13
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
14
14
|
task: string;
|
|
15
15
|
schedule: string;
|
|
16
16
|
timezone: string;
|
|
@@ -21,6 +21,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
|
|
|
21
21
|
visibility: "public" | "private";
|
|
22
22
|
};
|
|
23
23
|
credential_mode: "system" | "creator";
|
|
24
|
+
dashboard_url: string | null;
|
|
24
25
|
last_run_at: string | null;
|
|
25
26
|
run_now_at: string | null;
|
|
26
27
|
};
|
|
@@ -33,7 +34,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
|
|
|
33
34
|
target: string;
|
|
34
35
|
task: {
|
|
35
36
|
id: string;
|
|
36
|
-
status: "blocked" | "active" | "deleted";
|
|
37
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
37
38
|
task: string;
|
|
38
39
|
schedule: string;
|
|
39
40
|
timezone: string;
|
|
@@ -44,6 +45,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
|
|
|
44
45
|
visibility: "public" | "private";
|
|
45
46
|
};
|
|
46
47
|
credential_mode: "system" | "creator";
|
|
48
|
+
dashboard_url: string | null;
|
|
47
49
|
last_run_at: string | null;
|
|
48
50
|
run_now_at: string | null;
|
|
49
51
|
};
|
|
@@ -36,7 +36,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
|
|
|
36
36
|
target: string;
|
|
37
37
|
task: {
|
|
38
38
|
id: string;
|
|
39
|
-
status: "blocked" | "active" | "deleted";
|
|
39
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
40
40
|
task: string;
|
|
41
41
|
schedule: string;
|
|
42
42
|
timezone: string;
|
|
@@ -47,6 +47,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
|
|
|
47
47
|
visibility: "public" | "private";
|
|
48
48
|
};
|
|
49
49
|
credential_mode: "system" | "creator";
|
|
50
|
+
dashboard_url: string | null;
|
|
50
51
|
last_run_at: string | null;
|
|
51
52
|
run_now_at: string | null;
|
|
52
53
|
};
|
|
@@ -59,7 +60,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
|
|
|
59
60
|
target: string;
|
|
60
61
|
task: {
|
|
61
62
|
id: string;
|
|
62
|
-
status: "blocked" | "active" | "deleted";
|
|
63
|
+
status: "completed" | "blocked" | "active" | "deleted";
|
|
63
64
|
task: string;
|
|
64
65
|
schedule: string;
|
|
65
66
|
timezone: string;
|
|
@@ -70,6 +71,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
|
|
|
70
71
|
visibility: "public" | "private";
|
|
71
72
|
};
|
|
72
73
|
credential_mode: "system" | "creator";
|
|
74
|
+
dashboard_url: string | null;
|
|
73
75
|
last_run_at: string | null;
|
|
74
76
|
run_now_at: string | null;
|
|
75
77
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Durable scheduled-task domain types owned by Junior core. */
|
|
2
2
|
import type { SlackDestination, SystemActor } from "@sentry/junior-plugin-api";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
export type ScheduledTaskStatus = "active" | "blocked" | "deleted";
|
|
4
|
+
export type ScheduledTaskStatus = "active" | "blocked" | "completed" | "deleted";
|
|
5
5
|
export declare const scheduledTaskCredentialModeSchema: z.ZodEnum<{
|
|
6
6
|
system: "system";
|
|
7
7
|
creator: "creator";
|
|
@@ -7,3 +7,5 @@ export interface DashboardConversationLinkOptions {
|
|
|
7
7
|
export declare function setDashboardConversationLinkOptions(options: DashboardConversationLinkOptions | undefined): DashboardConversationLinkOptions | undefined;
|
|
8
8
|
/** Build the dashboard conversation URL when the core dashboard is enabled. */
|
|
9
9
|
export declare function getDashboardConversationLink(conversationId: string): string | undefined;
|
|
10
|
+
/** Build the dashboard task detail URL when the core dashboard is enabled. */
|
|
11
|
+
export declare function getDashboardTaskLink(taskId: string): string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** Storage prefix
|
|
1
|
+
/** Storage prefix for resumable turn-session state. */
|
|
2
2
|
export declare const AGENT_TURN_SESSION_PREFIX = "junior:agent_turn_session";
|
|
3
3
|
/** Return the durable key for one resumable turn-session record. */
|
|
4
4
|
export declare function agentTurnSessionKey(conversationId: string, sessionId: string): string;
|
|
5
|
-
/** Return the index key for
|
|
5
|
+
/** Return the recovery index key for turn sessions in one conversation. */
|
|
6
6
|
export declare function agentTurnSessionConversationIndexKey(conversationId: string): string;
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* `junior_conversation_events` so resumes can materialize the exact continuable
|
|
8
8
|
* boundary without duplicating the event history.
|
|
9
9
|
*/
|
|
10
|
-
import { type StateAdapter } from "chat";
|
|
11
10
|
import { type Destination, type Source } from "@sentry/junior-plugin-api";
|
|
12
11
|
import { type PiMessage } from "@/chat/pi/messages";
|
|
13
12
|
import { type Actor } from "@/chat/actor";
|
|
@@ -56,7 +55,20 @@ export interface AgentTurnSessionRecord {
|
|
|
56
55
|
turnStartMessageIndex?: number;
|
|
57
56
|
updatedAtMs: number;
|
|
58
57
|
}
|
|
59
|
-
export
|
|
58
|
+
export interface AgentTurnSessionSummary {
|
|
59
|
+
conversationId: string;
|
|
60
|
+
dispatchId?: string;
|
|
61
|
+
dispatchOutcome?: AgentDispatchOutcome;
|
|
62
|
+
/** Provider-owned identifier returned after visible delivery is accepted. */
|
|
63
|
+
resultMessageId?: string;
|
|
64
|
+
resumeReason?: AgentTurnResumeReason;
|
|
65
|
+
sessionId: string;
|
|
66
|
+
sliceId: number;
|
|
67
|
+
state: AgentTurnSessionStatus;
|
|
68
|
+
surface?: AgentTurnSurface;
|
|
69
|
+
updatedAtMs: number;
|
|
70
|
+
version: number;
|
|
71
|
+
}
|
|
60
72
|
/** Read a turn record pinned to the history version containing its checkpoint. */
|
|
61
73
|
export declare function getAgentTurnSessionRecord(conversationId: string, sessionId: string): Promise<AgentTurnSessionRecord | undefined>;
|
|
62
74
|
/** Read a turn session for resume, following a newer committed replacement while unfinished. */
|
|
@@ -124,14 +136,8 @@ export declare function recordAgentTurnSessionSummary(args: {
|
|
|
124
136
|
traceId?: string;
|
|
125
137
|
ttlMs?: number;
|
|
126
138
|
}): Promise<void>;
|
|
127
|
-
/** List
|
|
128
|
-
export declare function listAgentTurnSessionSummaries(limit?: number): Promise<AgentTurnSessionSummary[]>;
|
|
129
|
-
/** List turn-session summaries for one conversation without the global feed cap. */
|
|
139
|
+
/** List retained turn-session recovery projections for one conversation. */
|
|
130
140
|
export declare function listAgentTurnSessionSummariesForConversation(conversationId: string): Promise<AgentTurnSessionSummary[]>;
|
|
131
|
-
/** List retained run summaries without falling back to global history. */
|
|
132
|
-
export declare function listBoundedAgentTurnSessionSummariesForConversation(conversationId: string): Promise<AgentTurnSessionSummary[]>;
|
|
133
|
-
/** Read complete per-conversation summary indexes with bounded backend load. */
|
|
134
|
-
export declare function listAgentTurnSessionSummariesForConversations(stateAdapter: StateAdapter, conversationIds: string[]): Promise<Map<string, AgentTurnSessionSummary[]>>;
|
|
135
141
|
/** Mark an unfinished turn session record as abandoned when a newer turn wins. */
|
|
136
142
|
export declare function abandonAgentTurnSessionRecord(args: {
|
|
137
143
|
conversationId: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WSWM6A3R.js";
|
|
4
4
|
import {
|
|
5
5
|
juniorConversations,
|
|
6
6
|
juniorTaskExecutions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-557HLSNH.js";
|
|
8
8
|
import {
|
|
9
9
|
logWarn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NPL66ZWL.js";
|
|
11
11
|
|
|
12
12
|
// src/chat/tasks/execution-stats.ts
|
|
13
13
|
import { and, asc, count, desc, eq, gte, inArray, lte, max, sql } from "drizzle-orm";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveBaseUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5KAZMR5U.js";
|
|
4
4
|
import {
|
|
5
5
|
createPluginLogger,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4PIT6O7A.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
parseDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WSWM6A3R.js";
|
|
12
12
|
import {
|
|
13
13
|
sleep
|
|
14
14
|
} from "./chunk-EM225ITJ.js";
|
|
15
15
|
import {
|
|
16
16
|
acquireActiveLock,
|
|
17
17
|
getStateAdapter
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J5H65GY2.js";
|
|
19
19
|
import {
|
|
20
20
|
pluginCatalogRuntime
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-N2I7W2VS.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchWithBoundedOAuthErrorBodies
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-I3OZR3HG.js";
|
|
25
25
|
import {
|
|
26
26
|
isRecord
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NPL66ZWL.js";
|
|
28
28
|
|
|
29
29
|
// src/chat/capabilities/router.ts
|
|
30
30
|
var ProviderCredentialRouter = class {
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
isConversationScopedChannel,
|
|
5
5
|
isDmChannel,
|
|
6
6
|
normalizeSlackConversationId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HEFBGCCU.js";
|
|
8
8
|
import {
|
|
9
9
|
getConversationEventStore,
|
|
10
10
|
getDb
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WSWM6A3R.js";
|
|
12
12
|
import {
|
|
13
13
|
juniorConversationAnnotations,
|
|
14
14
|
juniorConversationEvents,
|
|
15
15
|
juniorIdentities,
|
|
16
16
|
juniorUsers
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-557HLSNH.js";
|
|
18
18
|
import {
|
|
19
19
|
SANDBOX_WORKSPACE_ROOT
|
|
20
20
|
} from "./chunk-EM225ITJ.js";
|
|
21
21
|
import {
|
|
22
22
|
getStateAdapter
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-J5H65GY2.js";
|
|
24
24
|
import {
|
|
25
25
|
botConfig,
|
|
26
26
|
completeObject,
|
|
27
27
|
embedTexts,
|
|
28
28
|
getSlackBotToken,
|
|
29
29
|
standardModelId
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-S3FAOKQU.js";
|
|
31
31
|
import {
|
|
32
32
|
isActorUserId,
|
|
33
33
|
parseActorUserId
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
logInfo,
|
|
43
43
|
logWarn,
|
|
44
44
|
normalizeIdentityEmail
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NPL66ZWL.js";
|
|
46
46
|
|
|
47
47
|
// src/chat/plugins/agent-hooks.ts
|
|
48
48
|
import {
|
|
@@ -416,7 +416,7 @@ function setDashboardConversationLinkOptions(options) {
|
|
|
416
416
|
dashboardConversationLinkOptions = options?.disabled ? void 0 : options;
|
|
417
417
|
return previous;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function resolveDashboardPath(segmentPath) {
|
|
420
420
|
if (!dashboardConversationLinkOptions) {
|
|
421
421
|
return void 0;
|
|
422
422
|
}
|
|
@@ -425,9 +425,17 @@ function getDashboardConversationLink(conversationId) {
|
|
|
425
425
|
dashboardConversationLinkOptions.basePath,
|
|
426
426
|
"/"
|
|
427
427
|
);
|
|
428
|
-
const path = basePath === "/" ?
|
|
428
|
+
const path = basePath === "/" ? segmentPath : `${basePath}${segmentPath}`;
|
|
429
429
|
return `${baseURL}${path}`;
|
|
430
430
|
}
|
|
431
|
+
function getDashboardConversationLink(conversationId) {
|
|
432
|
+
return resolveDashboardPath(
|
|
433
|
+
`/conversations/${encodeURIComponent(conversationId)}`
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
function getDashboardTaskLink(taskId) {
|
|
437
|
+
return resolveDashboardPath(`/tasks/${encodeURIComponent(taskId)}`);
|
|
438
|
+
}
|
|
431
439
|
|
|
432
440
|
// src/chat/resource-events/workspace.ts
|
|
433
441
|
function canRouteResourceEvents() {
|
|
@@ -1803,6 +1811,7 @@ export {
|
|
|
1803
1811
|
createPluginState,
|
|
1804
1812
|
setDashboardConversationLinkOptions,
|
|
1805
1813
|
getDashboardConversationLink,
|
|
1814
|
+
getDashboardTaskLink,
|
|
1806
1815
|
canRouteResourceEvents,
|
|
1807
1816
|
createResourceEventTeamIdResolver,
|
|
1808
1817
|
getSlackToolContext,
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
isDmChannel,
|
|
5
5
|
normalizeSlackConversationId,
|
|
6
6
|
withSlackRetries
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HEFBGCCU.js";
|
|
8
8
|
import {
|
|
9
9
|
parseDestination
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WSWM6A3R.js";
|
|
11
11
|
import {
|
|
12
12
|
getStateAdapter
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-J5H65GY2.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeSlackEmojiName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-S3FAOKQU.js";
|
|
17
17
|
import {
|
|
18
18
|
pluginCatalogRuntime
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N2I7W2VS.js";
|
|
20
20
|
import {
|
|
21
21
|
parseSlackMessageTs,
|
|
22
22
|
parseSlackUserId
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
isRecord,
|
|
26
26
|
logInfo,
|
|
27
27
|
logWarn
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NPL66ZWL.js";
|
|
29
29
|
|
|
30
30
|
// src/chat/slack/outbound.ts
|
|
31
31
|
var MAX_SLACK_MESSAGE_TEXT_CHARS = 4e4;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendAndEnqueueInboundMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AA2EPMUF.js";
|
|
4
4
|
import {
|
|
5
5
|
ConversationTurnLifecycleService
|
|
6
6
|
} from "./chunk-Q6QZTTLS.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
agentBindingSchema,
|
|
13
13
|
agentInvocationSchema,
|
|
14
14
|
createAgentInvocationSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DMDOKRPC.js";
|
|
16
16
|
import {
|
|
17
17
|
TurnInputCommitLostError,
|
|
18
18
|
coerceThreadArtifactsState,
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
persistCompletedSessionRecord,
|
|
29
29
|
persistThreadStateById,
|
|
30
30
|
persistYieldSessionRecord
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BMFRFSTM.js";
|
|
32
32
|
import {
|
|
33
33
|
getConversationEventStore,
|
|
34
34
|
getConversationStore,
|
|
35
35
|
getSqlExecutor
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WSWM6A3R.js";
|
|
37
37
|
import {
|
|
38
38
|
juniorAgentBindings,
|
|
39
39
|
juniorAgentInvocations
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-557HLSNH.js";
|
|
41
41
|
|
|
42
42
|
// src/chat/agent-invocations/work.ts
|
|
43
43
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
recordTaskExecution
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3B7O3GNU.js";
|
|
4
4
|
import {
|
|
5
5
|
pluginTaskId,
|
|
6
6
|
pluginTaskParamsSchema,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
persistThreadStateById,
|
|
26
26
|
stripRuntimeTurnContext,
|
|
27
27
|
updateConversationStats
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BMFRFSTM.js";
|
|
29
29
|
import {
|
|
30
30
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
31
31
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -36,21 +36,21 @@ import {
|
|
|
36
36
|
createPluginModel,
|
|
37
37
|
createPluginState,
|
|
38
38
|
getPlugins
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4PIT6O7A.js";
|
|
40
40
|
import {
|
|
41
41
|
getConversationStore,
|
|
42
42
|
getDb,
|
|
43
43
|
sameActorIdentity
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-WSWM6A3R.js";
|
|
45
45
|
import {
|
|
46
46
|
getStateAdapter
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-J5H65GY2.js";
|
|
48
48
|
import {
|
|
49
49
|
ProviderError,
|
|
50
50
|
findProviderError,
|
|
51
51
|
getProviderErrorAttributes,
|
|
52
52
|
getProviderErrorUserMessage
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-S3FAOKQU.js";
|
|
54
54
|
import {
|
|
55
55
|
credentialSubjectSchema
|
|
56
56
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-F3B2YJ76.js";
|
|
60
60
|
import {
|
|
61
61
|
buildTurnFailureResponse
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-NPL66ZWL.js";
|
|
63
63
|
|
|
64
64
|
// src/chat/runtime/delivered-turn-state.ts
|
|
65
65
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
|
|
96
96
|
// src/chat/services/turn-session-routing.ts
|
|
97
97
|
async function resolveTurnSessionRouting(args) {
|
|
98
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
98
|
+
const conversationStore = args.conversationStore ?? (await import("./db-QOGYDDQM.js")).getConversationStore();
|
|
99
99
|
const conversation = await conversationStore.get({
|
|
100
100
|
conversationId: args.conversationId
|
|
101
101
|
});
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
parseDestination,
|
|
7
7
|
sameDestination
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WSWM6A3R.js";
|
|
9
9
|
import {
|
|
10
10
|
getDefaultRedisStateAdapterFor,
|
|
11
11
|
getStateAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J5H65GY2.js";
|
|
13
13
|
import {
|
|
14
14
|
getChatConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-S3FAOKQU.js";
|
|
16
16
|
import {
|
|
17
17
|
parseStoredSlackActor
|
|
18
18
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isRecord,
|
|
21
21
|
toOptionalNumber,
|
|
22
22
|
toOptionalString
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NPL66ZWL.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/task-execution/state.ts
|
|
26
26
|
import { randomUUID } from "crypto";
|