@sentry/junior 0.102.3 → 0.104.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-I4I2DHSW.js → agent-hooks-EOFSY2PD.js} +5 -5
- package/dist/api/conversations/archive.d.ts +7 -0
- package/dist/api/conversations/detail.d.ts +7 -0
- package/dist/api/conversations/list.d.ts +109 -0
- package/dist/api/conversations/routes.d.ts +3 -0
- package/dist/api/conversations/schema.d.ts +88 -69
- package/dist/api/conversations/stats.d.ts +7 -0
- package/dist/api/conversations/subagent.d.ts +7 -0
- package/dist/api/http.d.ts +5 -0
- package/dist/api/locations/detail.d.ts +10 -2
- package/dist/api/locations/list.d.ts +7 -0
- package/dist/api/locations/routes.d.ts +3 -0
- package/dist/api/locations/schema.d.ts +4 -3
- package/dist/api/people/list.d.ts +7 -0
- package/dist/api/people/profile.d.ts +7 -0
- package/dist/api/people/routes.d.ts +3 -0
- package/dist/api/people/schema.d.ts +35 -33
- package/dist/api/people/shared.d.ts +4 -4
- package/dist/api/route.d.ts +7 -0
- package/dist/api/schema.js +11 -17
- package/dist/api.js +2184 -88
- package/dist/app.js +120 -162
- package/dist/chat/conversations/history.d.ts +6 -6
- package/dist/chat/conversations/store.d.ts +1 -0
- package/dist/chat/pi/messages.d.ts +2 -2
- package/dist/chat/plugins/agent-hooks.d.ts +2 -2
- package/dist/chat/resource-events/store.d.ts +2 -2
- package/dist/chat/sandbox/runtime-dependencies.d.ts +2 -0
- package/dist/chat/sandbox/sandbox.d.ts +1 -0
- package/dist/chat/services/provider-retry.d.ts +1 -2
- package/dist/chat/slack/tools/conversation-search.d.ts +2 -2
- package/dist/chat/state/session-log.d.ts +2 -2
- package/dist/chat/task-execution/store.d.ts +2 -2
- package/dist/chat/tools/search-tools.d.ts +2 -2
- package/dist/{chunk-ZSHL44IQ.js → chunk-4PDVOHXP.js} +1 -1
- package/dist/{chunk-3OABPOHR.js → chunk-7G4J3CR7.js} +11 -2
- package/dist/chunk-AIRE7Q2W.js +362 -0
- package/dist/{chunk-QZGVPPIJ.js → chunk-BCULHGZK.js} +24 -4
- package/dist/{chunk-IQ36I3DF.js → chunk-CCTCIISK.js} +1 -1
- package/dist/{chunk-SHBPSE7A.js → chunk-M3UAVLEN.js} +2 -3
- package/dist/{chunk-EMUZSROX.js → chunk-O7ILGCMJ.js} +78 -1
- package/dist/{chunk-EOB77KME.js → chunk-QDKRE3LS.js} +340 -9
- package/dist/{chunk-DTUSCR2Y.js → chunk-QVTVCJR4.js} +7 -7
- package/dist/{chunk-5K4N73TP.js → chunk-RMZ65YAA.js} +3 -3
- package/dist/{chunk-VSAFV2GI.js → chunk-RYDF4GOX.js} +3 -3
- package/dist/{chunk-ZIX4PNBI.js → chunk-TMWUGGSA.js} +37 -35
- package/dist/{chunk-3UK5DFKW.js → chunk-U26ZWZCN.js} +1 -1
- package/dist/{chunk-X2IPNCB5.js → chunk-VDHMFCDY.js} +65 -12
- package/dist/cli/chat.js +13 -14
- package/dist/cli/plugins.js +6 -6
- package/dist/cli/snapshot-warmup.js +7 -3
- package/dist/cli/upgrade.js +6 -7
- package/dist/db/schema/conversations.d.ts +17 -0
- package/dist/db/schema.d.ts +17 -0
- package/dist/{db-6QP6HY7U.js → db-PDMC67T3.js} +2 -2
- package/dist/{legacy-import-R3BMM2GH.js → legacy-import-G333RHJZ.js} +3 -3
- package/dist/reporting-schema.d.ts +4 -4
- package/dist/{runner-C2ZTIOUD.js → runner-6A7MQRUE.js} +9 -10
- package/migrations/0004_useful_magus.sql +1 -0
- package/migrations/meta/0004_snapshot.json +1041 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +6 -6
- package/dist/api/conversations/list.query.d.ts +0 -103
- package/dist/chunk-2RNOB32R.js +0 -17
- package/dist/chunk-4XNQSJAX.js +0 -331
- package/dist/chunk-4YN2ZXKB.js +0 -66
- package/dist/chunk-B5QS4AVO.js +0 -319
- package/dist/chunk-F4CQEUTP.js +0 -77
- package/dist/chunk-HYDQULR2.js +0 -214
- package/dist/chunk-KFP3TZOS.js +0 -102
- package/dist/chunk-LJB2TLVT.js +0 -273
- package/dist/chunk-LVUKF5CE.js +0 -63
- package/dist/chunk-NSP6OGL2.js +0 -671
- package/dist/chunk-QNVHH5PU.js +0 -20
- package/dist/chunk-QOZOJNSE.js +0 -96
- package/dist/chunk-WPHCUGN7.js +0 -84
- package/dist/detail-OEIVZYXS.js +0 -68
- package/dist/detail-V37NTVBN.js +0 -29
- package/dist/list-AJ6RWBOG.js +0 -30
- package/dist/list-FWLIZHSW.js +0 -30
- package/dist/list-NTUT6A5M.js +0 -121
- package/dist/plugin-conversations-F3IBVNFX.js +0 -37
- package/dist/profile-3FRQP4HP.js +0 -212
- package/dist/reporting/plugin-conversations.d.ts +0 -3
- package/dist/stats-7UFY6FPE.js +0 -174
- package/dist/subagent-X3ZWJHR4.js +0 -49
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createPluginLogger,
|
|
3
|
+
createPluginState
|
|
4
|
+
} from "./chunk-4PDVOHXP.js";
|
|
5
|
+
import {
|
|
6
|
+
SANDBOX_WORKSPACE_ROOT
|
|
7
|
+
} from "./chunk-G3E7SCME.js";
|
|
1
8
|
import {
|
|
2
9
|
isConversationChannel,
|
|
3
10
|
isConversationScopedChannel,
|
|
4
11
|
isDmChannel,
|
|
5
12
|
normalizeSlackConversationId
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
createPluginLogger,
|
|
9
|
-
createPluginState
|
|
10
|
-
} from "./chunk-ZSHL44IQ.js";
|
|
13
|
+
} from "./chunk-CCTCIISK.js";
|
|
11
14
|
import {
|
|
12
15
|
getDb
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
SANDBOX_WORKSPACE_ROOT
|
|
16
|
-
} from "./chunk-G3E7SCME.js";
|
|
16
|
+
} from "./chunk-BCULHGZK.js";
|
|
17
17
|
import {
|
|
18
18
|
botConfig,
|
|
19
19
|
completeObject,
|
|
20
20
|
embedTexts
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-M3UAVLEN.js";
|
|
22
22
|
import {
|
|
23
23
|
isActorUserId,
|
|
24
24
|
logInfo,
|
|
@@ -71,6 +71,56 @@ function createPluginEmbedder(pluginName, runtime = {}) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
// src/chat/slack/dashboard-link.ts
|
|
75
|
+
var dashboardConversationLinkOptions;
|
|
76
|
+
function withHttps(host) {
|
|
77
|
+
return /^https?:\/\//.test(host) ? host : `https://${host}`;
|
|
78
|
+
}
|
|
79
|
+
function stripTrailingSlashes(value) {
|
|
80
|
+
let end = value.length;
|
|
81
|
+
while (end > 1 && value.charCodeAt(end - 1) === 47) {
|
|
82
|
+
end -= 1;
|
|
83
|
+
}
|
|
84
|
+
return end === value.length ? value : value.slice(0, end);
|
|
85
|
+
}
|
|
86
|
+
function normalizeDashboardPath(path, fallback) {
|
|
87
|
+
const value = path?.trim() || fallback;
|
|
88
|
+
const withSlash = value.startsWith("/") ? value : `/${value}`;
|
|
89
|
+
return stripTrailingSlashes(withSlash);
|
|
90
|
+
}
|
|
91
|
+
function resolveDashboardBaseURL(config) {
|
|
92
|
+
const explicit = config.baseURL ?? process.env.JUNIOR_BASE_URL;
|
|
93
|
+
if (explicit?.trim()) {
|
|
94
|
+
return stripTrailingSlashes(withHttps(explicit.trim()));
|
|
95
|
+
}
|
|
96
|
+
const vercelProd = process.env.VERCEL_PROJECT_PRODUCTION_URL?.trim();
|
|
97
|
+
if (vercelProd) {
|
|
98
|
+
return stripTrailingSlashes(withHttps(vercelProd));
|
|
99
|
+
}
|
|
100
|
+
const vercelUrl = process.env.VERCEL_URL?.trim();
|
|
101
|
+
if (vercelUrl) {
|
|
102
|
+
return stripTrailingSlashes(withHttps(vercelUrl));
|
|
103
|
+
}
|
|
104
|
+
return "http://localhost:3000";
|
|
105
|
+
}
|
|
106
|
+
function setDashboardConversationLinkOptions(options) {
|
|
107
|
+
const previous = dashboardConversationLinkOptions;
|
|
108
|
+
dashboardConversationLinkOptions = options?.disabled ? void 0 : options;
|
|
109
|
+
return previous;
|
|
110
|
+
}
|
|
111
|
+
function getDashboardConversationLink(conversationId) {
|
|
112
|
+
if (!dashboardConversationLinkOptions) {
|
|
113
|
+
return void 0;
|
|
114
|
+
}
|
|
115
|
+
const baseURL = resolveDashboardBaseURL(dashboardConversationLinkOptions);
|
|
116
|
+
const basePath = normalizeDashboardPath(
|
|
117
|
+
dashboardConversationLinkOptions.basePath,
|
|
118
|
+
"/"
|
|
119
|
+
);
|
|
120
|
+
const path = basePath === "/" ? `/conversations/${encodeURIComponent(conversationId)}` : `${basePath}/conversations/${encodeURIComponent(conversationId)}`;
|
|
121
|
+
return `${baseURL}${path}`;
|
|
122
|
+
}
|
|
123
|
+
|
|
74
124
|
// src/chat/slack/tools/context.ts
|
|
75
125
|
function getSlackToolContext(context) {
|
|
76
126
|
if (context.source.platform !== "slack") {
|
|
@@ -520,10 +570,12 @@ function getPluginTools(context) {
|
|
|
520
570
|
teamId: slackToolContext.teamId,
|
|
521
571
|
userId: slackToolContext.actor?.userId
|
|
522
572
|
}) : void 0;
|
|
573
|
+
const dashboardConversationUrl = context.conversationId ? getDashboardConversationLink(context.conversationId) : void 0;
|
|
523
574
|
const slackContext = slackToolContext ? {
|
|
524
575
|
channelCapabilities: resolveChannelCapabilities(
|
|
525
576
|
slackToolContext.sourceChannelId
|
|
526
577
|
),
|
|
578
|
+
...dashboardConversationUrl ? { conversationLink: { url: dashboardConversationUrl } } : {},
|
|
527
579
|
...credentialSubject ? { credentialSubject } : {}
|
|
528
580
|
} : void 0;
|
|
529
581
|
let pluginContext;
|
|
@@ -874,7 +926,7 @@ function failedOperationalReport(args) {
|
|
|
874
926
|
]
|
|
875
927
|
};
|
|
876
928
|
}
|
|
877
|
-
async function getPluginOperationalReports(nowMs
|
|
929
|
+
async function getPluginOperationalReports(nowMs) {
|
|
878
930
|
const reports = [];
|
|
879
931
|
for (const plugin of getPlugins()) {
|
|
880
932
|
const pluginName = plugin.manifest.name;
|
|
@@ -886,7 +938,6 @@ async function getPluginOperationalReports(nowMs, conversations) {
|
|
|
886
938
|
const state = createPluginState(pluginName);
|
|
887
939
|
const report = await hook({
|
|
888
940
|
...basePluginContext(plugin),
|
|
889
|
-
conversations,
|
|
890
941
|
nowMs,
|
|
891
942
|
state: pluginReadState(state)
|
|
892
943
|
});
|
|
@@ -1039,6 +1090,8 @@ function createPluginHookRunner(input = {}) {
|
|
|
1039
1090
|
export {
|
|
1040
1091
|
createPluginModel,
|
|
1041
1092
|
createPluginEmbedder,
|
|
1093
|
+
setDashboardConversationLinkOptions,
|
|
1094
|
+
getDashboardConversationLink,
|
|
1042
1095
|
getSlackToolContext,
|
|
1043
1096
|
bindSlackDirectCredentialSubject,
|
|
1044
1097
|
verifySlackDirectCredentialSubject,
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAgentRunner,
|
|
3
3
|
executeAgentRun
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-TMWUGGSA.js";
|
|
5
|
+
import "../chunk-RMZ65YAA.js";
|
|
6
6
|
import "../chunk-XIMUQ4IU.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-3OABPOHR.js";
|
|
7
|
+
import "../chunk-7G4J3CR7.js";
|
|
8
|
+
import "../chunk-QDKRE3LS.js";
|
|
9
|
+
import "../chunk-RYDF4GOX.js";
|
|
11
10
|
import "../chunk-PDO5BLNM.js";
|
|
12
11
|
import "../chunk-UIE3R5XU.js";
|
|
13
12
|
import {
|
|
14
13
|
loadAppPluginSet
|
|
15
14
|
} from "../chunk-Y2CM7HXH.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-ZSHL44IQ.js";
|
|
19
|
-
import "../chunk-QZGVPPIJ.js";
|
|
15
|
+
import "../chunk-VDHMFCDY.js";
|
|
16
|
+
import "../chunk-4PDVOHXP.js";
|
|
20
17
|
import "../chunk-G3E7SCME.js";
|
|
18
|
+
import "../chunk-CCTCIISK.js";
|
|
19
|
+
import "../chunk-BCULHGZK.js";
|
|
21
20
|
import "../chunk-4ZNGQH7C.js";
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-M3UAVLEN.js";
|
|
23
22
|
import "../chunk-FXFQNHRU.js";
|
|
24
23
|
import "../chunk-RT5BUHR5.js";
|
|
25
24
|
import "../chunk-B7PUBQQM.js";
|
|
@@ -153,10 +152,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
153
152
|
databaseModule
|
|
154
153
|
] = await Promise.all([
|
|
155
154
|
import("../plugins-PZMDS7AT.js"),
|
|
156
|
-
import("../agent-hooks-
|
|
155
|
+
import("../agent-hooks-EOFSY2PD.js"),
|
|
157
156
|
import("../catalog-runtime-5CVM2DOF.js"),
|
|
158
157
|
import("../validation-EUI2UFRM.js"),
|
|
159
|
-
import("../db-
|
|
158
|
+
import("../db-PDMC67T3.js")
|
|
160
159
|
]);
|
|
161
160
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
162
161
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -217,7 +216,7 @@ function newRunConversationId() {
|
|
|
217
216
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
218
217
|
defaultStateAdapterForLocalChat();
|
|
219
218
|
await configureLocalChatPlugins(pluginSet);
|
|
220
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
219
|
+
const { runLocalAgentTurn } = await import("../runner-6A7MQRUE.js");
|
|
221
220
|
const deps = {
|
|
222
221
|
agentRunner: createAgentRunner(executeAgentRun),
|
|
223
222
|
deliverReply: async (reply) => {
|
package/dist/cli/plugins.js
CHANGED
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-IQ36I3DF.js";
|
|
16
|
+
} from "../chunk-VDHMFCDY.js";
|
|
18
17
|
import {
|
|
19
18
|
createPluginLogger
|
|
20
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-4PDVOHXP.js";
|
|
20
|
+
import "../chunk-G3E7SCME.js";
|
|
21
|
+
import "../chunk-CCTCIISK.js";
|
|
21
22
|
import {
|
|
22
23
|
getDb
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-G3E7SCME.js";
|
|
24
|
+
} from "../chunk-BCULHGZK.js";
|
|
25
25
|
import "../chunk-4ZNGQH7C.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-M3UAVLEN.js";
|
|
27
27
|
import "../chunk-FXFQNHRU.js";
|
|
28
28
|
import "../chunk-RT5BUHR5.js";
|
|
29
29
|
import "../chunk-B7PUBQQM.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
+
GLOBAL_RUNTIME_DEPENDENCIES,
|
|
2
3
|
resolveRuntimeDependencySnapshot
|
|
3
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7G4J3CR7.js";
|
|
4
5
|
import "../chunk-G3E7SCME.js";
|
|
5
6
|
import "../chunk-4ZNGQH7C.js";
|
|
6
7
|
import {
|
|
7
8
|
disconnectStateAdapter
|
|
8
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-M3UAVLEN.js";
|
|
9
10
|
import "../chunk-RT5BUHR5.js";
|
|
10
11
|
import {
|
|
11
12
|
pluginCatalogRuntime
|
|
@@ -47,7 +48,10 @@ function logSnapshotProfile(log) {
|
|
|
47
48
|
).map((plugin) => plugin.manifest.name).sort();
|
|
48
49
|
const systemDependencies = [];
|
|
49
50
|
const npmDependencies = [];
|
|
50
|
-
for (const dep of
|
|
51
|
+
for (const dep of [
|
|
52
|
+
...GLOBAL_RUNTIME_DEPENDENCIES,
|
|
53
|
+
...pluginCatalogRuntime.getRuntimeDependencies()
|
|
54
|
+
]) {
|
|
51
55
|
if (dep.type === "npm") {
|
|
52
56
|
npmDependencies.push(`${dep.package}@${dep.version}`);
|
|
53
57
|
continue;
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
recordConversationActivity,
|
|
5
5
|
recordConversationExecution,
|
|
6
6
|
requestConversationWork
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-U26ZWZCN.js";
|
|
8
8
|
import {
|
|
9
9
|
defineJuniorPlugins,
|
|
10
10
|
pluginCatalogConfigFromEnv,
|
|
@@ -18,11 +18,10 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
addAgentTurnUsage,
|
|
20
20
|
listAgentTurnSessionSummariesForConversations
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-B5QS4AVO.js";
|
|
21
|
+
} from "../chunk-QDKRE3LS.js";
|
|
23
22
|
import {
|
|
24
23
|
importConversationFromLegacy
|
|
25
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-RYDF4GOX.js";
|
|
26
25
|
import "../chunk-PDO5BLNM.js";
|
|
27
26
|
import {
|
|
28
27
|
loadAppPluginSet
|
|
@@ -30,18 +29,18 @@ import {
|
|
|
30
29
|
import {
|
|
31
30
|
createPluginLogger,
|
|
32
31
|
createPluginState
|
|
33
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-4PDVOHXP.js";
|
|
34
33
|
import {
|
|
35
34
|
createJuniorSqlExecutor,
|
|
36
35
|
createSqlConversationMessageStore,
|
|
37
36
|
createSqlStore,
|
|
38
37
|
getDb
|
|
39
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-BCULHGZK.js";
|
|
40
39
|
import {
|
|
41
40
|
disconnectStateAdapter,
|
|
42
41
|
getChatConfig,
|
|
43
42
|
getConnectedStateContext
|
|
44
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-M3UAVLEN.js";
|
|
45
44
|
import "../chunk-FXFQNHRU.js";
|
|
46
45
|
import "../chunk-RT5BUHR5.js";
|
|
47
46
|
import {
|
|
@@ -592,6 +592,23 @@ export declare const juniorConversations: import("drizzle-orm/pg-core").PgTableW
|
|
|
592
592
|
identity: undefined;
|
|
593
593
|
generated: undefined;
|
|
594
594
|
}, {}, {}>;
|
|
595
|
+
archivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
596
|
+
name: string;
|
|
597
|
+
tableName: "junior_conversations";
|
|
598
|
+
dataType: "date";
|
|
599
|
+
columnType: "PgTimestamp";
|
|
600
|
+
data: Date;
|
|
601
|
+
driverParam: string;
|
|
602
|
+
notNull: false;
|
|
603
|
+
hasDefault: false;
|
|
604
|
+
isPrimaryKey: false;
|
|
605
|
+
isAutoincrement: false;
|
|
606
|
+
hasRuntimeDefault: false;
|
|
607
|
+
enumValues: undefined;
|
|
608
|
+
baseColumn: never;
|
|
609
|
+
identity: undefined;
|
|
610
|
+
generated: undefined;
|
|
611
|
+
}, {}, {}>;
|
|
595
612
|
};
|
|
596
613
|
dialect: "pg";
|
|
597
614
|
}>;
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -874,6 +874,23 @@ export declare const juniorSqlSchema: {
|
|
|
874
874
|
identity: undefined;
|
|
875
875
|
generated: undefined;
|
|
876
876
|
}, {}, {}>;
|
|
877
|
+
archivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
878
|
+
name: string;
|
|
879
|
+
tableName: "junior_conversations";
|
|
880
|
+
dataType: "date";
|
|
881
|
+
columnType: "PgTimestamp";
|
|
882
|
+
data: Date;
|
|
883
|
+
driverParam: string;
|
|
884
|
+
notNull: false;
|
|
885
|
+
hasDefault: false;
|
|
886
|
+
isPrimaryKey: false;
|
|
887
|
+
isAutoincrement: false;
|
|
888
|
+
hasRuntimeDefault: false;
|
|
889
|
+
enumValues: undefined;
|
|
890
|
+
baseColumn: never;
|
|
891
|
+
identity: undefined;
|
|
892
|
+
generated: undefined;
|
|
893
|
+
}, {}, {}>;
|
|
877
894
|
};
|
|
878
895
|
dialect: "pg";
|
|
879
896
|
}>;
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
getConversationStore,
|
|
7
7
|
getDb,
|
|
8
8
|
getSqlExecutor
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-BCULHGZK.js";
|
|
10
|
+
import "./chunk-M3UAVLEN.js";
|
|
11
11
|
import "./chunk-FXFQNHRU.js";
|
|
12
12
|
import "./chunk-RT5BUHR5.js";
|
|
13
13
|
import "./chunk-B7PUBQQM.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureLegacyConversationImport,
|
|
3
3
|
importConversationFromLegacy
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-RYDF4GOX.js";
|
|
5
|
+
import "./chunk-BCULHGZK.js";
|
|
6
|
+
import "./chunk-M3UAVLEN.js";
|
|
7
7
|
import "./chunk-FXFQNHRU.js";
|
|
8
8
|
import "./chunk-RT5BUHR5.js";
|
|
9
9
|
import "./chunk-B7PUBQQM.js";
|
|
@@ -63,10 +63,10 @@ export declare const pluginOperationalReportSchema: z.ZodObject<{
|
|
|
63
63
|
metrics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
64
64
|
label: z.ZodString;
|
|
65
65
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
warning: "warning";
|
|
66
67
|
danger: "danger";
|
|
67
68
|
good: "good";
|
|
68
69
|
neutral: "neutral";
|
|
69
|
-
warning: "warning";
|
|
70
70
|
}>>;
|
|
71
71
|
value: z.ZodString;
|
|
72
72
|
}, z.core.$strict>>>;
|
|
@@ -79,10 +79,10 @@ export declare const pluginOperationalReportSchema: z.ZodObject<{
|
|
|
79
79
|
records: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
80
|
id: z.ZodString;
|
|
81
81
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
warning: "warning";
|
|
82
83
|
danger: "danger";
|
|
83
84
|
good: "good";
|
|
84
85
|
neutral: "neutral";
|
|
85
|
-
warning: "warning";
|
|
86
86
|
}>>;
|
|
87
87
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
88
88
|
}, z.core.$strict>>>;
|
|
@@ -98,10 +98,10 @@ export declare const pluginOperationalReportFeedSchema: z.ZodObject<{
|
|
|
98
98
|
metrics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
99
99
|
label: z.ZodString;
|
|
100
100
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
101
|
+
warning: "warning";
|
|
101
102
|
danger: "danger";
|
|
102
103
|
good: "good";
|
|
103
104
|
neutral: "neutral";
|
|
104
|
-
warning: "warning";
|
|
105
105
|
}>>;
|
|
106
106
|
value: z.ZodString;
|
|
107
107
|
}, z.core.$strict>>>;
|
|
@@ -114,10 +114,10 @@ export declare const pluginOperationalReportFeedSchema: z.ZodObject<{
|
|
|
114
114
|
records: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
115
115
|
id: z.ZodString;
|
|
116
116
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
warning: "warning";
|
|
117
118
|
danger: "danger";
|
|
118
119
|
good: "good";
|
|
119
120
|
neutral: "neutral";
|
|
120
|
-
warning: "warning";
|
|
121
121
|
}>>;
|
|
122
122
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
123
123
|
}, z.core.$strict>>>;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
finalizeFailedTurnReply,
|
|
4
4
|
processPluginTask,
|
|
5
5
|
scheduleSessionCompletedPluginTasks
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QVTVCJR4.js";
|
|
7
7
|
import "./chunk-KNFROR7R.js";
|
|
8
8
|
import {
|
|
9
9
|
coerceThreadArtifactsState,
|
|
@@ -13,15 +13,14 @@ import {
|
|
|
13
13
|
markTurnFailed,
|
|
14
14
|
persistThreadStateById,
|
|
15
15
|
startActiveTurn
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RMZ65YAA.js";
|
|
17
17
|
import {
|
|
18
18
|
coerceThreadConversationState
|
|
19
19
|
} from "./chunk-XIMUQ4IU.js";
|
|
20
|
-
import "./chunk-EOB77KME.js";
|
|
21
20
|
import {
|
|
22
21
|
commitMessages,
|
|
23
22
|
loadProjection
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QDKRE3LS.js";
|
|
25
24
|
import {
|
|
26
25
|
buildConversationContext,
|
|
27
26
|
hydrateConversationMessages,
|
|
@@ -29,20 +28,20 @@ import {
|
|
|
29
28
|
normalizeConversationText,
|
|
30
29
|
updateConversationStats,
|
|
31
30
|
upsertConversationMessage
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RYDF4GOX.js";
|
|
33
32
|
import "./chunk-PDO5BLNM.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-ZSHL44IQ.js";
|
|
37
|
-
import "./chunk-QZGVPPIJ.js";
|
|
33
|
+
import "./chunk-VDHMFCDY.js";
|
|
34
|
+
import "./chunk-4PDVOHXP.js";
|
|
38
35
|
import "./chunk-G3E7SCME.js";
|
|
36
|
+
import "./chunk-CCTCIISK.js";
|
|
37
|
+
import "./chunk-BCULHGZK.js";
|
|
39
38
|
import {
|
|
40
39
|
sleep
|
|
41
40
|
} from "./chunk-4ZNGQH7C.js";
|
|
42
41
|
import {
|
|
43
42
|
stripRuntimeTurnContext,
|
|
44
43
|
trimTrailingAssistantMessages
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-M3UAVLEN.js";
|
|
46
45
|
import "./chunk-FXFQNHRU.js";
|
|
47
46
|
import "./chunk-RT5BUHR5.js";
|
|
48
47
|
import "./chunk-B7PUBQQM.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "junior_conversations" ADD COLUMN "archived_at" timestamp with time zone;
|