@sentry/junior 0.153.0 → 0.155.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-7BWOB7SN.js → agent-hooks-AWVTLAV2.js} +11 -12
- package/dist/api/conversations/list.d.ts +5 -3
- package/dist/api/conversations/membership.d.ts +16 -0
- package/dist/api/locations/detail.d.ts +1 -0
- package/dist/api/schema/conversation.d.ts +3 -0
- package/dist/api/schema/location.d.ts +1 -0
- package/dist/api/schema/person.d.ts +1 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +318 -187
- package/dist/app.js +39 -39
- package/dist/catalog-runtime-V6YD6KH5.js +16 -0
- package/dist/chat/conversations/sql/event-actor.d.ts +14 -0
- package/dist/chat/conversations/sql/event-lock.d.ts +1 -1
- package/dist/chat/conversations/sql/participants.d.ts +17 -0
- package/dist/chat/plugins/unfinished-work.d.ts +2 -0
- package/dist/chat/runtime/agent-runner.d.ts +2 -0
- package/dist/chat/runtime/slack-resume.d.ts +1 -1
- package/dist/chat/state/conversation.d.ts +1 -0
- package/dist/{chunk-O2YXWWPM.js → chunk-2AHVM3HK.js} +92 -9
- package/dist/{chunk-VXWTGOLW.js → chunk-2WLJDM23.js} +1 -1
- package/dist/{chunk-4TWLKHOM.js → chunk-37G5HJ2X.js} +4 -4
- package/dist/{chunk-ISEROVYZ.js → chunk-4K5N6HTX.js} +5 -5
- package/dist/{chunk-ET54Q4TD.js → chunk-773XC7P4.js} +116 -82
- package/dist/{chunk-HUO3UTAQ.js → chunk-7MA4HV4W.js} +1 -1
- package/dist/{chunk-HMU2QP5M.js → chunk-7NYEB2TM.js} +1 -1
- package/dist/{chunk-URFV5RWN.js → chunk-AENPRXCG.js} +23 -56
- package/dist/{chunk-TIV3PX5H.js → chunk-APHDJYN7.js} +2 -2
- package/dist/{chunk-RUIXF3YQ.js → chunk-BDUENQD3.js} +1 -1
- package/dist/{chunk-5TXDKTET.js → chunk-CPQBTTI6.js} +7 -7
- package/dist/{chunk-A5SROS6H.js → chunk-ELOTIL5F.js} +5 -5
- package/dist/{chunk-JJAMURMR.js → chunk-EORR34UB.js} +1 -1
- package/dist/{chunk-5QBK3QHJ.js → chunk-J2SYI36O.js} +6 -8
- package/dist/{chunk-K4LK6KYO.js → chunk-J7MWZFFP.js} +4 -4
- package/dist/{chunk-COC65LIW.js → chunk-JFZBGFNX.js} +3 -1
- package/dist/{chunk-YECBSG77.js → chunk-JIC33O5L.js} +2 -2
- package/dist/{chunk-XAYXN4EG.js → chunk-JJX77MB7.js} +366 -138
- package/dist/{chunk-FLEY546A.js → chunk-KBT2I5ER.js} +7 -7
- package/dist/{chunk-37LMRT7G.js → chunk-KTVHAHUV.js} +1 -1
- package/dist/{chunk-PMJAY6JS.js → chunk-LQT3SWFA.js} +5 -5
- package/dist/{chunk-HYEAR6HL.js → chunk-MLBH7J7J.js} +1 -1
- package/dist/{chunk-5DMPHA4V.js → chunk-NKFRRZIT.js} +27 -37
- package/dist/{chunk-HOK7MEWG.js → chunk-NWSKFYOH.js} +1 -1
- package/dist/{chunk-JY2HJYJT.js → chunk-RN3AWYEP.js} +2 -2
- package/dist/{chunk-RKW5QGGN.js → chunk-RQ62VKM7.js} +1 -1
- package/dist/{chunk-XQPKMLRI.js → chunk-SDRJ2LE3.js} +1 -1
- package/dist/{chunk-JAJVUQV7.js → chunk-TKJ7277U.js} +3 -3
- package/dist/{chunk-EPOA52SD.js → chunk-TVXAN43I.js} +1 -1
- package/dist/{chunk-2NS3ACHB.js → chunk-UWTXAYBP.js} +11 -11
- package/dist/{chunk-2J4VCHRX.js → chunk-V57LZDHN.js} +8 -10
- package/dist/{chunk-HZF5P5UN.js → chunk-V7YE4WCP.js} +58 -7
- package/dist/{chunk-PGJBNO3I.js → chunk-XFZLQANQ.js} +2 -2
- package/dist/{chunk-5XBRH3N7.js → chunk-Y6MVGU7L.js} +12 -11
- package/dist/{chunk-WTKAALLV.js → chunk-Y7ZUBP2K.js} +6 -6
- package/dist/{chunk-UG5UCHHJ.js → chunk-ZLSFOSDK.js} +2 -1
- package/dist/cli/chat.js +36 -36
- package/dist/cli/check.js +8 -9
- package/dist/cli/init.js +41 -7
- package/dist/cli/plugins.js +15 -16
- package/dist/cli/snapshot-create.js +11 -12
- package/dist/cli/upgrade.js +9 -10
- package/dist/db/schema/conversation-events.d.ts +20 -0
- package/dist/db/schema/conversation-participants.d.ts +63 -0
- package/dist/db/schema.d.ts +77 -1
- package/dist/{db-QNQM5YRR.js → db-WT7P56AH.js} +8 -8
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-ERQPIR27.js → oauth-callback-server-R2PK2MCA.js} +26 -26
- package/dist/{runner-BX46SQIE.js → runner-O7YYUIHT.js} +15 -16
- package/dist/{sandbox-egress-signals-EKPAVWQL.js → sandbox-egress-signals-U3ZX7C5W.js} +3 -4
- package/dist/{skills-JL44EIRX.js → skills-S6HLQRH7.js} +8 -9
- package/dist/spawn-B4SBFFA2.js +37 -0
- package/dist/{validation-UU2AIJIY.js → validation-46WD2OAR.js} +8 -9
- package/dist/version.js +1 -1
- package/dist/{work-SS7RU5CH.js → work-YT5QUBS3.js} +20 -21
- package/dist/worker-4C5BEDWN.js +24 -0
- package/migrations/0026_conversation_event_actor_and_participants.sql +140 -0
- package/migrations/meta/0026_snapshot.json +2424 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +8 -6
- package/dist/catalog-runtime-CGUDNL3D.js +0 -17
- package/dist/chunk-F3B2YJ76.js +0 -57
- package/dist/spawn-W6FO32T4.js +0 -38
- package/dist/worker-5P2E7LVI.js +0 -25
|
@@ -174,7 +174,8 @@ var conversationSummaryReportSchema = z2.object({
|
|
|
174
174
|
locationId: z2.string().optional(),
|
|
175
175
|
sentryTraceUrl: z2.string().optional(),
|
|
176
176
|
sourceUrl: z2.string().url().optional(),
|
|
177
|
-
traceId: z2.string().optional()
|
|
177
|
+
traceId: z2.string().optional(),
|
|
178
|
+
unfinishedWork: z2.boolean().optional()
|
|
178
179
|
}).strict();
|
|
179
180
|
var conversationReportMessageEventDataSchema = z2.object({
|
|
180
181
|
type: z2.literal("message"),
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createAgentRunner,
|
|
3
2
|
executeAgentRun
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-AENPRXCG.js";
|
|
4
|
+
import "../chunk-CPQBTTI6.js";
|
|
6
5
|
import "../chunk-DIB4GX3G.js";
|
|
7
|
-
import
|
|
6
|
+
import {
|
|
7
|
+
createAgentRunner
|
|
8
|
+
} from "../chunk-2AHVM3HK.js";
|
|
8
9
|
import "../chunk-RF6J3DIO.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-KBT2I5ER.js";
|
|
11
|
+
import "../chunk-7MA4HV4W.js";
|
|
11
12
|
import "../chunk-5IDFPCON.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-37G5HJ2X.js";
|
|
14
|
+
import "../chunk-LQT3SWFA.js";
|
|
15
|
+
import "../chunk-APHDJYN7.js";
|
|
16
|
+
import "../chunk-J2SYI36O.js";
|
|
16
17
|
import "../chunk-3Y47VMHV.js";
|
|
17
18
|
import "../chunk-PDO5BLNM.js";
|
|
18
19
|
import "../chunk-UIE3R5XU.js";
|
|
19
20
|
import {
|
|
20
21
|
loadAppPluginSet
|
|
21
22
|
} from "../chunk-Y2CM7HXH.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-V57LZDHN.js";
|
|
24
|
+
import "../chunk-TKJ7277U.js";
|
|
25
|
+
import "../chunk-JJX77MB7.js";
|
|
26
|
+
import "../chunk-773XC7P4.js";
|
|
26
27
|
import "../chunk-EM225ITJ.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-SDRJ2LE3.js";
|
|
29
|
+
import "../chunk-XFZLQANQ.js";
|
|
29
30
|
import "../chunk-VFUK3X5B.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-HMU2QP5M.js";
|
|
31
|
+
import "../chunk-2WLJDM23.js";
|
|
32
|
+
import "../chunk-JIC33O5L.js";
|
|
33
|
+
import "../chunk-TVXAN43I.js";
|
|
34
|
+
import "../chunk-RN3AWYEP.js";
|
|
35
|
+
import "../chunk-BDUENQD3.js";
|
|
36
|
+
import "../chunk-V7YE4WCP.js";
|
|
37
|
+
import "../chunk-7NYEB2TM.js";
|
|
38
38
|
import "../chunk-6GWA276C.js";
|
|
39
39
|
import "../chunk-OOUNJNMR.js";
|
|
40
40
|
import "../chunk-H4HBKISO.js";
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-EORR34UB.js";
|
|
42
|
+
import "../chunk-JFZBGFNX.js";
|
|
43
43
|
import "../chunk-MLKGABMK.js";
|
|
44
44
|
|
|
45
45
|
// src/cli/chat.ts
|
|
@@ -162,10 +162,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
162
162
|
databaseModule
|
|
163
163
|
] = await Promise.all([
|
|
164
164
|
import("../plugins-HW4VWW6G.js"),
|
|
165
|
-
import("../agent-hooks-
|
|
166
|
-
import("../catalog-runtime-
|
|
167
|
-
import("../validation-
|
|
168
|
-
import("../db-
|
|
165
|
+
import("../agent-hooks-AWVTLAV2.js"),
|
|
166
|
+
import("../catalog-runtime-V6YD6KH5.js"),
|
|
167
|
+
import("../validation-46WD2OAR.js"),
|
|
168
|
+
import("../db-WT7P56AH.js")
|
|
169
169
|
]);
|
|
170
170
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
171
171
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -231,14 +231,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
231
231
|
await configureLocalChatPlugins(pluginSet);
|
|
232
232
|
const { setExperimentalFeatures } = await import("../experimental-HH6OM6UH.js");
|
|
233
233
|
setExperimentalFeatures({ subagents: true });
|
|
234
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
235
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
234
|
+
const { runLocalAgentTurn } = await import("../runner-O7YYUIHT.js");
|
|
235
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-R2PK2MCA.js");
|
|
236
236
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
237
|
-
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-
|
|
238
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
239
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
237
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-U3ZX7C5W.js");
|
|
238
|
+
const { bindSpawnAgent } = await import("../spawn-B4SBFFA2.js");
|
|
239
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-YT5QUBS3.js");
|
|
240
240
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
241
|
-
const { processConversationWork } = await import("../worker-
|
|
241
|
+
const { processConversationWork } = await import("../worker-4C5BEDWN.js");
|
|
242
242
|
let agentRunner;
|
|
243
243
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
244
244
|
if (!agentRunner) {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-JIC33O5L.js";
|
|
4
|
+
import "../chunk-TVXAN43I.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-HMU2QP5M.js";
|
|
8
|
+
} from "../chunk-RN3AWYEP.js";
|
|
9
|
+
import "../chunk-BDUENQD3.js";
|
|
10
|
+
import "../chunk-V7YE4WCP.js";
|
|
11
|
+
import "../chunk-7NYEB2TM.js";
|
|
13
12
|
import "../chunk-6GWA276C.js";
|
|
14
13
|
import "../chunk-OOUNJNMR.js";
|
|
15
14
|
import "../chunk-H4HBKISO.js";
|
|
@@ -17,8 +16,8 @@ import {
|
|
|
17
16
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
18
17
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
19
18
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-EORR34UB.js";
|
|
20
|
+
import "../chunk-JFZBGFNX.js";
|
|
22
21
|
import "../chunk-MLKGABMK.js";
|
|
23
22
|
|
|
24
23
|
// src/cli/check.ts
|
package/dist/cli/init.js
CHANGED
|
@@ -9,12 +9,18 @@ import path from "path";
|
|
|
9
9
|
function writeServerEntry(targetDir) {
|
|
10
10
|
fs.writeFileSync(
|
|
11
11
|
path.join(targetDir, "server.ts"),
|
|
12
|
-
`import {
|
|
13
|
-
import { initSentry } from "@sentry/junior/instrumentation";
|
|
14
|
-
import { plugins } from "./plugins.ts";
|
|
12
|
+
`import { initSentry } from "@sentry/junior/instrumentation";
|
|
15
13
|
|
|
16
14
|
initSentry();
|
|
17
15
|
|
|
16
|
+
const [
|
|
17
|
+
{ createApp },
|
|
18
|
+
{ plugins },
|
|
19
|
+
] = await Promise.all([
|
|
20
|
+
import("@sentry/junior"),
|
|
21
|
+
import("./plugins.ts"),
|
|
22
|
+
]);
|
|
23
|
+
|
|
18
24
|
const app = await createApp({
|
|
19
25
|
plugins,
|
|
20
26
|
});
|
|
@@ -23,6 +29,15 @@ export default app;
|
|
|
23
29
|
`
|
|
24
30
|
);
|
|
25
31
|
}
|
|
32
|
+
function writeInstrumentFile(targetDir) {
|
|
33
|
+
fs.writeFileSync(
|
|
34
|
+
path.join(targetDir, "instrument.mjs"),
|
|
35
|
+
`import { initSentry } from "@sentry/junior/instrumentation";
|
|
36
|
+
|
|
37
|
+
initSentry();
|
|
38
|
+
`
|
|
39
|
+
);
|
|
40
|
+
}
|
|
26
41
|
function writePluginsFile(targetDir) {
|
|
27
42
|
fs.writeFileSync(
|
|
28
43
|
path.join(targetDir, "plugins.ts"),
|
|
@@ -39,10 +54,11 @@ export const plugins = defineJuniorPlugins([
|
|
|
39
54
|
function writeNitroConfig(targetDir) {
|
|
40
55
|
fs.writeFileSync(
|
|
41
56
|
path.join(targetDir, "nitro.config.ts"),
|
|
42
|
-
`import {
|
|
57
|
+
`import { withSentryConfig } from "@sentry/nitro";
|
|
58
|
+
import { defineConfig } from "nitro";
|
|
43
59
|
import { juniorNitro } from "@sentry/junior/nitro";
|
|
44
60
|
|
|
45
|
-
|
|
61
|
+
const config = defineConfig({
|
|
46
62
|
preset: "vercel",
|
|
47
63
|
modules: [
|
|
48
64
|
juniorNitro({
|
|
@@ -53,6 +69,12 @@ export default defineConfig({
|
|
|
53
69
|
"/**": { handler: "./server.ts" },
|
|
54
70
|
},
|
|
55
71
|
});
|
|
72
|
+
|
|
73
|
+
export default withSentryConfig(config, {
|
|
74
|
+
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
75
|
+
org: process.env.SENTRY_ORG,
|
|
76
|
+
project: process.env.SENTRY_PROJECT,
|
|
77
|
+
});
|
|
56
78
|
`
|
|
57
79
|
);
|
|
58
80
|
}
|
|
@@ -76,6 +98,8 @@ function writePnpmWorkspace(targetDir) {
|
|
|
76
98
|
`minimumReleaseAge: 1440
|
|
77
99
|
minimumReleaseAgeExclude:
|
|
78
100
|
- "@sentry/*"
|
|
101
|
+
allowBuilds:
|
|
102
|
+
"@sentry/cli": true
|
|
79
103
|
`
|
|
80
104
|
);
|
|
81
105
|
}
|
|
@@ -140,20 +164,24 @@ async function runInit(dir, log = console.log) {
|
|
|
140
164
|
private: true,
|
|
141
165
|
type: "module",
|
|
142
166
|
scripts: {
|
|
143
|
-
dev: "nitro dev",
|
|
167
|
+
dev: "cross-env NODE_OPTIONS=--import=./instrument.mjs nitro dev",
|
|
144
168
|
check: "junior check",
|
|
145
169
|
build: "junior snapshot create && nitro build",
|
|
146
|
-
preview: "nitro preview",
|
|
170
|
+
preview: "cross-env NODE_OPTIONS=--import=./instrument.mjs nitro preview",
|
|
147
171
|
typecheck: "tsc --noEmit"
|
|
148
172
|
},
|
|
149
173
|
dependencies: {
|
|
174
|
+
"@opentelemetry/api": "1.9.1",
|
|
175
|
+
"@opentelemetry/core": "2.9.0",
|
|
150
176
|
"@sentry/junior": "latest",
|
|
151
177
|
"@sentry/junior-memory": "latest",
|
|
152
178
|
"@sentry/junior-maintenance": "latest",
|
|
179
|
+
"@sentry/nitro": "10.65.0",
|
|
153
180
|
hono: "^4.12.27"
|
|
154
181
|
},
|
|
155
182
|
devDependencies: {
|
|
156
183
|
"@types/node": "^25.9.1",
|
|
184
|
+
"cross-env": "^10.1.0",
|
|
157
185
|
jiti: "^2.7.0",
|
|
158
186
|
nitro: "3.0.260522-beta",
|
|
159
187
|
typescript: "^6.0.3"
|
|
@@ -224,10 +252,16 @@ JUNIOR_SQL_STATEMENT_TIMEOUT_MS=
|
|
|
224
252
|
REDIS_URL=
|
|
225
253
|
CRON_SECRET=
|
|
226
254
|
SENTRY_DSN=
|
|
255
|
+
SENTRY_ENVIRONMENT=
|
|
256
|
+
SENTRY_TRACES_SAMPLE_RATE=1
|
|
257
|
+
SENTRY_ORG=
|
|
227
258
|
SENTRY_ORG_SLUG=
|
|
259
|
+
SENTRY_PROJECT=
|
|
260
|
+
SENTRY_AUTH_TOKEN=
|
|
228
261
|
`
|
|
229
262
|
);
|
|
230
263
|
writeServerEntry(target);
|
|
264
|
+
writeInstrumentFile(target);
|
|
231
265
|
writePluginsFile(target);
|
|
232
266
|
writeNitroConfig(target);
|
|
233
267
|
writeTsConfig(target);
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-MLBH7J7J.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -14,30 +14,29 @@ import {
|
|
|
14
14
|
createPluginLogger,
|
|
15
15
|
setPlugins,
|
|
16
16
|
validatePlugins
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-V57LZDHN.js";
|
|
18
|
+
import "../chunk-TKJ7277U.js";
|
|
19
19
|
import {
|
|
20
20
|
getDb
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-JJX77MB7.js";
|
|
22
|
+
import "../chunk-773XC7P4.js";
|
|
23
23
|
import "../chunk-EM225ITJ.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-SDRJ2LE3.js";
|
|
25
|
+
import "../chunk-XFZLQANQ.js";
|
|
26
26
|
import "../chunk-VFUK3X5B.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-2WLJDM23.js";
|
|
28
28
|
import {
|
|
29
29
|
pluginCatalogRuntime
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-HMU2QP5M.js";
|
|
30
|
+
} from "../chunk-TVXAN43I.js";
|
|
31
|
+
import "../chunk-RN3AWYEP.js";
|
|
32
|
+
import "../chunk-BDUENQD3.js";
|
|
33
|
+
import "../chunk-V7YE4WCP.js";
|
|
34
|
+
import "../chunk-7NYEB2TM.js";
|
|
36
35
|
import "../chunk-6GWA276C.js";
|
|
37
36
|
import "../chunk-OOUNJNMR.js";
|
|
38
37
|
import "../chunk-H4HBKISO.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-EORR34UB.js";
|
|
39
|
+
import "../chunk-JFZBGFNX.js";
|
|
41
40
|
import "../chunk-MLKGABMK.js";
|
|
42
41
|
|
|
43
42
|
// src/cli/plugins.ts
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
resolve
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-37G5HJ2X.js";
|
|
5
5
|
import "../chunk-EM225ITJ.js";
|
|
6
6
|
import {
|
|
7
7
|
disconnectStateAdapter
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-SDRJ2LE3.js";
|
|
9
|
+
import "../chunk-XFZLQANQ.js";
|
|
10
|
+
import "../chunk-2WLJDM23.js";
|
|
11
11
|
import {
|
|
12
12
|
pluginCatalogRuntime
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-HMU2QP5M.js";
|
|
13
|
+
} from "../chunk-TVXAN43I.js";
|
|
14
|
+
import "../chunk-RN3AWYEP.js";
|
|
15
|
+
import "../chunk-BDUENQD3.js";
|
|
16
|
+
import "../chunk-V7YE4WCP.js";
|
|
17
|
+
import "../chunk-7NYEB2TM.js";
|
|
19
18
|
import "../chunk-6GWA276C.js";
|
|
20
19
|
import "../chunk-OOUNJNMR.js";
|
|
21
20
|
import "../chunk-H4HBKISO.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-EORR34UB.js";
|
|
22
|
+
import "../chunk-JFZBGFNX.js";
|
|
24
23
|
import "../chunk-MLKGABMK.js";
|
|
25
24
|
|
|
26
25
|
// src/cli/snapshot-create.ts
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -8,24 +8,23 @@ import {
|
|
|
8
8
|
} from "../chunk-Y2CM7HXH.js";
|
|
9
9
|
import {
|
|
10
10
|
createJuniorSqlExecutor
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-773XC7P4.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-XFZLQANQ.js";
|
|
15
15
|
import "../chunk-VFUK3X5B.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-2WLJDM23.js";
|
|
17
17
|
import {
|
|
18
18
|
createPluginCatalogRuntime
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-HMU2QP5M.js";
|
|
19
|
+
} from "../chunk-RN3AWYEP.js";
|
|
20
|
+
import "../chunk-BDUENQD3.js";
|
|
21
|
+
import "../chunk-V7YE4WCP.js";
|
|
22
|
+
import "../chunk-7NYEB2TM.js";
|
|
24
23
|
import "../chunk-6GWA276C.js";
|
|
25
24
|
import "../chunk-OOUNJNMR.js";
|
|
26
25
|
import "../chunk-H4HBKISO.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-EORR34UB.js";
|
|
27
|
+
import "../chunk-JFZBGFNX.js";
|
|
29
28
|
import "../chunk-MLKGABMK.js";
|
|
30
29
|
|
|
31
30
|
// src/chat/conversations/sql/migrations.ts
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Append-only canonical conversation history. `history_version` partitions
|
|
3
3
|
* model-history replacements, while `(conversation_id, seq)` is the stable
|
|
4
4
|
* event identity and lease-fencing tripwire.
|
|
5
|
+
*
|
|
6
|
+
* `actor_identity_id` is the first-class author identity for human-authored
|
|
7
|
+
* events. Message payloads may still carry display author fields in `meta`.
|
|
5
8
|
*/
|
|
6
9
|
export declare const juniorConversationEvents: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
7
10
|
name: "junior_conversation_events";
|
|
@@ -128,6 +131,23 @@ export declare const juniorConversationEvents: import("drizzle-orm/pg-core").PgT
|
|
|
128
131
|
}, {}, {
|
|
129
132
|
$type: Record<string, unknown>;
|
|
130
133
|
}>;
|
|
134
|
+
actorIdentityId: import("drizzle-orm/pg-core").PgColumn<{
|
|
135
|
+
name: "actor_identity_id";
|
|
136
|
+
tableName: "junior_conversation_events";
|
|
137
|
+
dataType: "string";
|
|
138
|
+
columnType: "PgText";
|
|
139
|
+
data: string;
|
|
140
|
+
driverParam: string;
|
|
141
|
+
notNull: false;
|
|
142
|
+
hasDefault: false;
|
|
143
|
+
isPrimaryKey: false;
|
|
144
|
+
isAutoincrement: false;
|
|
145
|
+
hasRuntimeDefault: false;
|
|
146
|
+
enumValues: [string, ...string[]];
|
|
147
|
+
baseColumn: never;
|
|
148
|
+
identity: undefined;
|
|
149
|
+
generated: undefined;
|
|
150
|
+
}, {}, {}>;
|
|
131
151
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
132
152
|
name: string;
|
|
133
153
|
tableName: "junior_conversation_events";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Materialized personal-feed membership for one linked user on one root
|
|
3
|
+
* conversation. Rows come from the root actor and from durable human user
|
|
4
|
+
* message authors.
|
|
5
|
+
*/
|
|
6
|
+
export declare const juniorConversationParticipants: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
7
|
+
name: "junior_conversation_participants";
|
|
8
|
+
schema: undefined;
|
|
9
|
+
columns: {
|
|
10
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
11
|
+
name: "user_id";
|
|
12
|
+
tableName: "junior_conversation_participants";
|
|
13
|
+
dataType: "string";
|
|
14
|
+
columnType: "PgText";
|
|
15
|
+
data: string;
|
|
16
|
+
driverParam: string;
|
|
17
|
+
notNull: true;
|
|
18
|
+
hasDefault: false;
|
|
19
|
+
isPrimaryKey: false;
|
|
20
|
+
isAutoincrement: false;
|
|
21
|
+
hasRuntimeDefault: false;
|
|
22
|
+
enumValues: [string, ...string[]];
|
|
23
|
+
baseColumn: never;
|
|
24
|
+
identity: undefined;
|
|
25
|
+
generated: undefined;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
rootConversationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
28
|
+
name: "root_conversation_id";
|
|
29
|
+
tableName: "junior_conversation_participants";
|
|
30
|
+
dataType: "string";
|
|
31
|
+
columnType: "PgText";
|
|
32
|
+
data: string;
|
|
33
|
+
driverParam: string;
|
|
34
|
+
notNull: true;
|
|
35
|
+
hasDefault: false;
|
|
36
|
+
isPrimaryKey: false;
|
|
37
|
+
isAutoincrement: false;
|
|
38
|
+
hasRuntimeDefault: false;
|
|
39
|
+
enumValues: [string, ...string[]];
|
|
40
|
+
baseColumn: never;
|
|
41
|
+
identity: undefined;
|
|
42
|
+
generated: undefined;
|
|
43
|
+
}, {}, {}>;
|
|
44
|
+
lastMessageAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
45
|
+
name: string;
|
|
46
|
+
tableName: "junior_conversation_participants";
|
|
47
|
+
dataType: "date";
|
|
48
|
+
columnType: "PgTimestamp";
|
|
49
|
+
data: Date;
|
|
50
|
+
driverParam: string;
|
|
51
|
+
notNull: true;
|
|
52
|
+
hasDefault: false;
|
|
53
|
+
isPrimaryKey: false;
|
|
54
|
+
isAutoincrement: false;
|
|
55
|
+
hasRuntimeDefault: false;
|
|
56
|
+
enumValues: undefined;
|
|
57
|
+
baseColumn: never;
|
|
58
|
+
identity: undefined;
|
|
59
|
+
generated: undefined;
|
|
60
|
+
}, {}, {}>;
|
|
61
|
+
};
|
|
62
|
+
dialect: "pg";
|
|
63
|
+
}>;
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { juniorConversationAnnotations } from "./schema/conversation-annotations
|
|
|
2
2
|
import { juniorApiTokens } from "./schema/api-tokens";
|
|
3
3
|
import { juniorConversationEvents } from "./schema/conversation-events";
|
|
4
4
|
import { juniorConversationBindings } from "./schema/conversation-bindings";
|
|
5
|
+
import { juniorConversationParticipants } from "./schema/conversation-participants";
|
|
5
6
|
import { juniorConversations } from "./schema/conversations";
|
|
6
7
|
import { juniorAgentBindings, juniorAgentInvocations } from "./schema/agent-invocations";
|
|
7
8
|
import { juniorLocationConfigurations } from "./schema/location-configurations";
|
|
@@ -12,7 +13,7 @@ import { juniorStats } from "./schema/stats";
|
|
|
12
13
|
import { juniorTaskExecutions } from "./schema/task-executions";
|
|
13
14
|
import { juniorSchedulerRuns, juniorSchedulerTasks } from "./schema/scheduled-tasks";
|
|
14
15
|
import { juniorUsers } from "./schema/users";
|
|
15
|
-
export { juniorConversationAnnotations, juniorApiTokens, juniorAgentBindings, juniorAgentInvocations, juniorConversationEvents, juniorConversationBindings, juniorConversations, juniorLocationConfigurations, juniorDestinations, juniorEventTasks, juniorIdentities, juniorStats, juniorTaskExecutions, juniorSchedulerRuns, juniorSchedulerTasks, juniorUsers, };
|
|
16
|
+
export { juniorConversationAnnotations, juniorApiTokens, juniorAgentBindings, juniorAgentInvocations, juniorConversationEvents, juniorConversationBindings, juniorConversationParticipants, juniorConversations, juniorLocationConfigurations, juniorDestinations, juniorEventTasks, juniorIdentities, juniorStats, juniorTaskExecutions, juniorSchedulerRuns, juniorSchedulerTasks, juniorUsers, };
|
|
16
17
|
export declare const juniorSqlSchema: {
|
|
17
18
|
juniorConversationAnnotations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
18
19
|
name: "junior_conversation_annotations";
|
|
@@ -1002,6 +1003,23 @@ export declare const juniorSqlSchema: {
|
|
|
1002
1003
|
}, {}, {
|
|
1003
1004
|
$type: Record<string, unknown>;
|
|
1004
1005
|
}>;
|
|
1006
|
+
actorIdentityId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1007
|
+
name: "actor_identity_id";
|
|
1008
|
+
tableName: "junior_conversation_events";
|
|
1009
|
+
dataType: "string";
|
|
1010
|
+
columnType: "PgText";
|
|
1011
|
+
data: string;
|
|
1012
|
+
driverParam: string;
|
|
1013
|
+
notNull: false;
|
|
1014
|
+
hasDefault: false;
|
|
1015
|
+
isPrimaryKey: false;
|
|
1016
|
+
isAutoincrement: false;
|
|
1017
|
+
hasRuntimeDefault: false;
|
|
1018
|
+
enumValues: [string, ...string[]];
|
|
1019
|
+
baseColumn: never;
|
|
1020
|
+
identity: undefined;
|
|
1021
|
+
generated: undefined;
|
|
1022
|
+
}, {}, {}>;
|
|
1005
1023
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1006
1024
|
name: string;
|
|
1007
1025
|
tableName: "junior_conversation_events";
|
|
@@ -1131,6 +1149,64 @@ export declare const juniorSqlSchema: {
|
|
|
1131
1149
|
};
|
|
1132
1150
|
dialect: "pg";
|
|
1133
1151
|
}>;
|
|
1152
|
+
juniorConversationParticipants: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1153
|
+
name: "junior_conversation_participants";
|
|
1154
|
+
schema: undefined;
|
|
1155
|
+
columns: {
|
|
1156
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1157
|
+
name: "user_id";
|
|
1158
|
+
tableName: "junior_conversation_participants";
|
|
1159
|
+
dataType: "string";
|
|
1160
|
+
columnType: "PgText";
|
|
1161
|
+
data: string;
|
|
1162
|
+
driverParam: string;
|
|
1163
|
+
notNull: true;
|
|
1164
|
+
hasDefault: false;
|
|
1165
|
+
isPrimaryKey: false;
|
|
1166
|
+
isAutoincrement: false;
|
|
1167
|
+
hasRuntimeDefault: false;
|
|
1168
|
+
enumValues: [string, ...string[]];
|
|
1169
|
+
baseColumn: never;
|
|
1170
|
+
identity: undefined;
|
|
1171
|
+
generated: undefined;
|
|
1172
|
+
}, {}, {}>;
|
|
1173
|
+
rootConversationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1174
|
+
name: "root_conversation_id";
|
|
1175
|
+
tableName: "junior_conversation_participants";
|
|
1176
|
+
dataType: "string";
|
|
1177
|
+
columnType: "PgText";
|
|
1178
|
+
data: string;
|
|
1179
|
+
driverParam: string;
|
|
1180
|
+
notNull: true;
|
|
1181
|
+
hasDefault: false;
|
|
1182
|
+
isPrimaryKey: false;
|
|
1183
|
+
isAutoincrement: false;
|
|
1184
|
+
hasRuntimeDefault: false;
|
|
1185
|
+
enumValues: [string, ...string[]];
|
|
1186
|
+
baseColumn: never;
|
|
1187
|
+
identity: undefined;
|
|
1188
|
+
generated: undefined;
|
|
1189
|
+
}, {}, {}>;
|
|
1190
|
+
lastMessageAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1191
|
+
name: string;
|
|
1192
|
+
tableName: "junior_conversation_participants";
|
|
1193
|
+
dataType: "date";
|
|
1194
|
+
columnType: "PgTimestamp";
|
|
1195
|
+
data: Date;
|
|
1196
|
+
driverParam: string;
|
|
1197
|
+
notNull: true;
|
|
1198
|
+
hasDefault: false;
|
|
1199
|
+
isPrimaryKey: false;
|
|
1200
|
+
isAutoincrement: false;
|
|
1201
|
+
hasRuntimeDefault: false;
|
|
1202
|
+
enumValues: undefined;
|
|
1203
|
+
baseColumn: never;
|
|
1204
|
+
identity: undefined;
|
|
1205
|
+
generated: undefined;
|
|
1206
|
+
}, {}, {}>;
|
|
1207
|
+
};
|
|
1208
|
+
dialect: "pg";
|
|
1209
|
+
}>;
|
|
1134
1210
|
juniorConversations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1135
1211
|
name: "junior_conversations";
|
|
1136
1212
|
schema: undefined;
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-JJX77MB7.js";
|
|
9
|
+
import "./chunk-773XC7P4.js";
|
|
10
|
+
import "./chunk-XFZLQANQ.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-2WLJDM23.js";
|
|
13
|
+
import "./chunk-V7YE4WCP.js";
|
|
14
|
+
import "./chunk-7NYEB2TM.js";
|
|
15
15
|
import "./chunk-6GWA276C.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-EORR34UB.js";
|
|
17
|
+
import "./chunk-JFZBGFNX.js";
|
|
18
18
|
import "./chunk-MLKGABMK.js";
|
|
19
19
|
export {
|
|
20
20
|
closeDb,
|
package/dist/instrumentation.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./chunk-UIE3R5XU.js";
|
|
4
4
|
import {
|
|
5
5
|
getCurrentConversationPrivacy
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2WLJDM23.js";
|
|
7
|
+
import "./chunk-7NYEB2TM.js";
|
|
8
8
|
import {
|
|
9
9
|
getClient,
|
|
10
10
|
getGlobalScope,
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
getDeploymentServiceVersion,
|
|
17
17
|
getDeploymentTelemetryAttributes
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-EORR34UB.js";
|
|
19
|
+
import "./chunk-JFZBGFNX.js";
|
|
20
20
|
import "./chunk-MLKGABMK.js";
|
|
21
21
|
|
|
22
22
|
// src/chat/sentry-payload-filter.ts
|
package/dist/nitro.js
CHANGED
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE,
|
|
28
28
|
JUNIOR_RETENTION_CRON_SCHEDULE,
|
|
29
29
|
JUNIOR_RETENTION_ROUTE
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-EORR34UB.js";
|
|
31
|
+
import "./chunk-JFZBGFNX.js";
|
|
32
32
|
import "./chunk-MLKGABMK.js";
|
|
33
33
|
|
|
34
34
|
// src/nitro.ts
|