@sentry/junior 0.154.0 → 0.156.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-VEHV2QUA.js → agent-hooks-CCAR46PQ.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 +2 -0
- package/dist/api/schema/conversation.d.ts +22 -4
- package/dist/api/schema/location.d.ts +2 -0
- package/dist/api/schema/person.d.ts +2 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +331 -188
- package/dist/app.js +154 -51
- package/dist/catalog-runtime-3SNKYCBG.js +16 -0
- package/dist/chat/agent/types.d.ts +2 -0
- package/dist/chat/attachments/storage.d.ts +12 -0
- package/dist/chat/attachments/store.d.ts +52 -0
- package/dist/chat/attachments/vercel.d.ts +3 -0
- package/dist/chat/conversations/retention.d.ts +4 -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/ingress/bot-mention.d.ts +13 -0
- package/dist/chat/plugins/unfinished-work.d.ts +8 -0
- package/dist/chat/runtime/agent-runner.d.ts +4 -0
- package/dist/chat/runtime/slack-resume.d.ts +1 -1
- package/dist/chat/services/conversation-memory.d.ts +1 -1
- package/dist/chat/slack/tools/send-files.d.ts +17 -11
- package/dist/chat/state/conversation.d.ts +3 -1
- package/dist/chat/tools/types.d.ts +2 -0
- package/dist/{chunk-XYMCZGH6.js → chunk-3FFUC32L.js} +8 -10
- package/dist/{chunk-4U4MNYGP.js → chunk-3L2PMOSR.js} +6 -8
- package/dist/{chunk-PTJ75ZWR.js → chunk-4ZZDTHFC.js} +94 -9
- package/dist/{chunk-DAJZZFU7.js → chunk-53W3LZEW.js} +386 -93
- package/dist/{chunk-F7QUK3YP.js → chunk-6CINHXIL.js} +5 -5
- package/dist/{chunk-6VWMX7NS.js → chunk-6JUU7J2B.js} +4 -4
- package/dist/{chunk-HUO3UTAQ.js → chunk-7MA4HV4W.js} +1 -1
- package/dist/{chunk-O4AQDOKA.js → chunk-7RAETIYO.js} +7 -7
- package/dist/{chunk-4R2XCKUH.js → chunk-A6WPDFHQ.js} +1 -1
- package/dist/{chunk-CZD6M57V.js → chunk-AIJRG227.js} +191 -126
- package/dist/{chunk-RUIXF3YQ.js → chunk-BDUENQD3.js} +1 -1
- package/dist/{chunk-NUG3VYHL.js → chunk-CK2H7CFO.js} +2 -2
- package/dist/{chunk-HOGJ6TBT.js → chunk-CN2XSVKF.js} +6 -6
- package/dist/{chunk-3567VGCN.js → chunk-EDJ64P2P.js} +1 -1
- package/dist/{chunk-6PJXR4BC.js → chunk-GKC43TLS.js} +2 -2
- package/dist/{chunk-A6LWN4K6.js → chunk-GSBPZHLQ.js} +11 -11
- package/dist/{chunk-Y654CTW2.js → chunk-IIO5PFZX.js} +366 -138
- package/dist/{chunk-F2Q3ZHW2.js → chunk-IZEBHYI4.js} +1 -1
- package/dist/{chunk-QGR6QTC4.js → chunk-JUJR6WTL.js} +4 -4
- package/dist/{chunk-ZQT4RHUO.js → chunk-KBGMYLSV.js} +4 -1
- package/dist/{chunk-DK2FSQHS.js → chunk-KCA5MKHU.js} +5 -5
- package/dist/{chunk-NNN2WYAD.js → chunk-MC57E5U5.js} +1 -1
- package/dist/{chunk-6AF5GOZA.js → chunk-MJE7XKWP.js} +1 -1
- package/dist/{chunk-7CPN5JTA.js → chunk-NTNU6T2D.js} +3 -3
- package/dist/{chunk-NG4IAOVD.js → chunk-OGZPRMZA.js} +1 -1
- package/dist/{chunk-UCH55IGZ.js → chunk-OMQJB7YN.js} +28 -37
- package/dist/{chunk-2XNVS6RC.js → chunk-PMFGVLDU.js} +12 -11
- package/dist/{chunk-65IAU2L2.js → chunk-SE3D225X.js} +1 -1
- package/dist/{chunk-CCAU73CE.js → chunk-SRJA6QLM.js} +2 -2
- package/dist/{chunk-7RFWIHPM.js → chunk-TN4LVILT.js} +5 -5
- package/dist/{chunk-3ZR2R5EQ.js → chunk-TNXGMFWV.js} +1 -1
- package/dist/{chunk-HZF5P5UN.js → chunk-V7YE4WCP.js} +58 -7
- package/dist/{chunk-MSOZLASC.js → chunk-WD7SEUZO.js} +2 -2
- package/dist/{chunk-UG5UCHHJ.js → chunk-X5NZQH5U.js} +4 -2
- package/dist/{chunk-3HX67UPN.js → chunk-X7W45B5G.js} +1 -1
- package/dist/{chunk-FVY7AJ46.js → chunk-ZNWRYNCA.js} +7 -7
- 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/attachments.d.ts +178 -0
- 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 +255 -1
- package/dist/{db-SOJJLMJK.js → db-TYUUKGJX.js} +8 -8
- package/dist/handlers/retention.d.ts +4 -1
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-GCJROMVO.js → oauth-callback-server-AWVDKPR5.js} +26 -26
- package/dist/{runner-SY6KDQCN.js → runner-JUQXMACC.js} +15 -16
- package/dist/{sandbox-egress-signals-EKPAVWQL.js → sandbox-egress-signals-U3ZX7C5W.js} +3 -4
- package/dist/{skills-XJ2LJ2ML.js → skills-4GZTZX4V.js} +8 -9
- package/dist/spawn-32SSRWU4.js +37 -0
- package/dist/{validation-XQWY6QRY.js → validation-DRLNJRND.js} +8 -9
- package/dist/version.js +1 -1
- package/dist/{work-FFT5JAOU.js → work-TGIXRRJY.js} +20 -21
- package/dist/worker-IFXZOYED.js +24 -0
- package/migrations/0026_conversation_event_actor_and_participants.sql +140 -0
- package/migrations/0027_attachment_storage.sql +16 -0
- package/migrations/meta/0026_snapshot.json +2424 -0
- package/migrations/meta/0027_snapshot.json +2554 -0
- package/migrations/meta/_journal.json +15 -1
- package/package.json +10 -7
- package/dist/catalog-runtime-AK5MY63F.js +0 -17
- package/dist/chunk-F3B2YJ76.js +0 -57
- package/dist/spawn-QFCQREEP.js +0 -38
- package/dist/worker-JAITK72F.js +0 -25
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-53W3LZEW.js";
|
|
4
|
+
import "../chunk-ZNWRYNCA.js";
|
|
6
5
|
import "../chunk-DIB4GX3G.js";
|
|
7
|
-
import
|
|
6
|
+
import {
|
|
7
|
+
createAgentRunner
|
|
8
|
+
} from "../chunk-4ZZDTHFC.js";
|
|
8
9
|
import "../chunk-RF6J3DIO.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-7RAETIYO.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-6JUU7J2B.js";
|
|
14
|
+
import "../chunk-KCA5MKHU.js";
|
|
15
|
+
import "../chunk-CK2H7CFO.js";
|
|
16
|
+
import "../chunk-3L2PMOSR.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-3FFUC32L.js";
|
|
24
|
+
import "../chunk-NTNU6T2D.js";
|
|
25
|
+
import "../chunk-IIO5PFZX.js";
|
|
26
|
+
import "../chunk-AIJRG227.js";
|
|
26
27
|
import "../chunk-EM225ITJ.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-MC57E5U5.js";
|
|
29
|
+
import "../chunk-GKC43TLS.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-3HX67UPN.js";
|
|
31
|
+
import "../chunk-MJE7XKWP.js";
|
|
32
|
+
import "../chunk-SRJA6QLM.js";
|
|
33
|
+
import "../chunk-EDJ64P2P.js";
|
|
34
|
+
import "../chunk-WD7SEUZO.js";
|
|
35
|
+
import "../chunk-BDUENQD3.js";
|
|
36
|
+
import "../chunk-V7YE4WCP.js";
|
|
37
|
+
import "../chunk-X7W45B5G.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-OGZPRMZA.js";
|
|
42
|
+
import "../chunk-KBGMYLSV.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-CCAR46PQ.js"),
|
|
166
|
+
import("../catalog-runtime-3SNKYCBG.js"),
|
|
167
|
+
import("../validation-DRLNJRND.js"),
|
|
168
|
+
import("../db-TYUUKGJX.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-JUQXMACC.js");
|
|
235
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-AWVDKPR5.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-32SSRWU4.js");
|
|
239
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-TGIXRRJY.js");
|
|
240
240
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
241
|
-
const { processConversationWork } = await import("../worker-
|
|
241
|
+
const { processConversationWork } = await import("../worker-IFXZOYED.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-SRJA6QLM.js";
|
|
4
|
+
import "../chunk-EDJ64P2P.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-3HX67UPN.js";
|
|
8
|
+
} from "../chunk-WD7SEUZO.js";
|
|
9
|
+
import "../chunk-BDUENQD3.js";
|
|
10
|
+
import "../chunk-V7YE4WCP.js";
|
|
11
|
+
import "../chunk-X7W45B5G.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-OGZPRMZA.js";
|
|
20
|
+
import "../chunk-KBGMYLSV.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-TNXGMFWV.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-3FFUC32L.js";
|
|
18
|
+
import "../chunk-NTNU6T2D.js";
|
|
19
19
|
import {
|
|
20
20
|
getDb
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-IIO5PFZX.js";
|
|
22
|
+
import "../chunk-AIJRG227.js";
|
|
23
23
|
import "../chunk-EM225ITJ.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-MC57E5U5.js";
|
|
25
|
+
import "../chunk-GKC43TLS.js";
|
|
26
26
|
import "../chunk-VFUK3X5B.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-MJE7XKWP.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-3HX67UPN.js";
|
|
30
|
+
} from "../chunk-EDJ64P2P.js";
|
|
31
|
+
import "../chunk-WD7SEUZO.js";
|
|
32
|
+
import "../chunk-BDUENQD3.js";
|
|
33
|
+
import "../chunk-V7YE4WCP.js";
|
|
34
|
+
import "../chunk-X7W45B5G.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-OGZPRMZA.js";
|
|
39
|
+
import "../chunk-KBGMYLSV.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-6JUU7J2B.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-MC57E5U5.js";
|
|
9
|
+
import "../chunk-GKC43TLS.js";
|
|
10
|
+
import "../chunk-MJE7XKWP.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-3HX67UPN.js";
|
|
13
|
+
} from "../chunk-EDJ64P2P.js";
|
|
14
|
+
import "../chunk-WD7SEUZO.js";
|
|
15
|
+
import "../chunk-BDUENQD3.js";
|
|
16
|
+
import "../chunk-V7YE4WCP.js";
|
|
17
|
+
import "../chunk-X7W45B5G.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-OGZPRMZA.js";
|
|
22
|
+
import "../chunk-KBGMYLSV.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-AIJRG227.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-GKC43TLS.js";
|
|
15
15
|
import "../chunk-VFUK3X5B.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-MJE7XKWP.js";
|
|
17
17
|
import {
|
|
18
18
|
createPluginCatalogRuntime
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-3HX67UPN.js";
|
|
19
|
+
} from "../chunk-WD7SEUZO.js";
|
|
20
|
+
import "../chunk-BDUENQD3.js";
|
|
21
|
+
import "../chunk-V7YE4WCP.js";
|
|
22
|
+
import "../chunk-X7W45B5G.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-OGZPRMZA.js";
|
|
27
|
+
import "../chunk-KBGMYLSV.js";
|
|
29
28
|
import "../chunk-MLKGABMK.js";
|
|
30
29
|
|
|
31
30
|
// src/chat/conversations/sql/migrations.ts
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/** Durable metadata for files owned by one conversation. */
|
|
2
|
+
export declare const juniorAttachments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3
|
+
name: "junior_attachments";
|
|
4
|
+
schema: undefined;
|
|
5
|
+
columns: {
|
|
6
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
7
|
+
name: "id";
|
|
8
|
+
tableName: "junior_attachments";
|
|
9
|
+
dataType: "string";
|
|
10
|
+
columnType: "PgText";
|
|
11
|
+
data: string;
|
|
12
|
+
driverParam: string;
|
|
13
|
+
notNull: true;
|
|
14
|
+
hasDefault: false;
|
|
15
|
+
isPrimaryKey: true;
|
|
16
|
+
isAutoincrement: false;
|
|
17
|
+
hasRuntimeDefault: false;
|
|
18
|
+
enumValues: [string, ...string[]];
|
|
19
|
+
baseColumn: never;
|
|
20
|
+
identity: undefined;
|
|
21
|
+
generated: undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
conversationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
24
|
+
name: "conversation_id";
|
|
25
|
+
tableName: "junior_attachments";
|
|
26
|
+
dataType: "string";
|
|
27
|
+
columnType: "PgText";
|
|
28
|
+
data: string;
|
|
29
|
+
driverParam: string;
|
|
30
|
+
notNull: true;
|
|
31
|
+
hasDefault: false;
|
|
32
|
+
isPrimaryKey: false;
|
|
33
|
+
isAutoincrement: false;
|
|
34
|
+
hasRuntimeDefault: false;
|
|
35
|
+
enumValues: [string, ...string[]];
|
|
36
|
+
baseColumn: never;
|
|
37
|
+
identity: undefined;
|
|
38
|
+
generated: undefined;
|
|
39
|
+
}, {}, {}>;
|
|
40
|
+
provider: import("drizzle-orm/pg-core").PgColumn<{
|
|
41
|
+
name: "provider";
|
|
42
|
+
tableName: "junior_attachments";
|
|
43
|
+
dataType: "string";
|
|
44
|
+
columnType: "PgText";
|
|
45
|
+
data: string;
|
|
46
|
+
driverParam: string;
|
|
47
|
+
notNull: true;
|
|
48
|
+
hasDefault: false;
|
|
49
|
+
isPrimaryKey: false;
|
|
50
|
+
isAutoincrement: false;
|
|
51
|
+
hasRuntimeDefault: false;
|
|
52
|
+
enumValues: [string, ...string[]];
|
|
53
|
+
baseColumn: never;
|
|
54
|
+
identity: undefined;
|
|
55
|
+
generated: undefined;
|
|
56
|
+
}, {}, {}>;
|
|
57
|
+
storageKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
58
|
+
name: "storage_key";
|
|
59
|
+
tableName: "junior_attachments";
|
|
60
|
+
dataType: "string";
|
|
61
|
+
columnType: "PgText";
|
|
62
|
+
data: string;
|
|
63
|
+
driverParam: string;
|
|
64
|
+
notNull: true;
|
|
65
|
+
hasDefault: false;
|
|
66
|
+
isPrimaryKey: false;
|
|
67
|
+
isAutoincrement: false;
|
|
68
|
+
hasRuntimeDefault: false;
|
|
69
|
+
enumValues: [string, ...string[]];
|
|
70
|
+
baseColumn: never;
|
|
71
|
+
identity: undefined;
|
|
72
|
+
generated: undefined;
|
|
73
|
+
}, {}, {}>;
|
|
74
|
+
filename: import("drizzle-orm/pg-core").PgColumn<{
|
|
75
|
+
name: "filename";
|
|
76
|
+
tableName: "junior_attachments";
|
|
77
|
+
dataType: "string";
|
|
78
|
+
columnType: "PgText";
|
|
79
|
+
data: string;
|
|
80
|
+
driverParam: string;
|
|
81
|
+
notNull: true;
|
|
82
|
+
hasDefault: false;
|
|
83
|
+
isPrimaryKey: false;
|
|
84
|
+
isAutoincrement: false;
|
|
85
|
+
hasRuntimeDefault: false;
|
|
86
|
+
enumValues: [string, ...string[]];
|
|
87
|
+
baseColumn: never;
|
|
88
|
+
identity: undefined;
|
|
89
|
+
generated: undefined;
|
|
90
|
+
}, {}, {}>;
|
|
91
|
+
contentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
92
|
+
name: "content_type";
|
|
93
|
+
tableName: "junior_attachments";
|
|
94
|
+
dataType: "string";
|
|
95
|
+
columnType: "PgText";
|
|
96
|
+
data: string;
|
|
97
|
+
driverParam: string;
|
|
98
|
+
notNull: true;
|
|
99
|
+
hasDefault: false;
|
|
100
|
+
isPrimaryKey: false;
|
|
101
|
+
isAutoincrement: false;
|
|
102
|
+
hasRuntimeDefault: false;
|
|
103
|
+
enumValues: [string, ...string[]];
|
|
104
|
+
baseColumn: never;
|
|
105
|
+
identity: undefined;
|
|
106
|
+
generated: undefined;
|
|
107
|
+
}, {}, {}>;
|
|
108
|
+
bytes: import("drizzle-orm/pg-core").PgColumn<{
|
|
109
|
+
name: "bytes";
|
|
110
|
+
tableName: "junior_attachments";
|
|
111
|
+
dataType: "number";
|
|
112
|
+
columnType: "PgInteger";
|
|
113
|
+
data: number;
|
|
114
|
+
driverParam: string | number;
|
|
115
|
+
notNull: true;
|
|
116
|
+
hasDefault: false;
|
|
117
|
+
isPrimaryKey: false;
|
|
118
|
+
isAutoincrement: false;
|
|
119
|
+
hasRuntimeDefault: false;
|
|
120
|
+
enumValues: undefined;
|
|
121
|
+
baseColumn: never;
|
|
122
|
+
identity: undefined;
|
|
123
|
+
generated: undefined;
|
|
124
|
+
}, {}, {}>;
|
|
125
|
+
sha256: import("drizzle-orm/pg-core").PgColumn<{
|
|
126
|
+
name: "sha256";
|
|
127
|
+
tableName: "junior_attachments";
|
|
128
|
+
dataType: "string";
|
|
129
|
+
columnType: "PgText";
|
|
130
|
+
data: string;
|
|
131
|
+
driverParam: string;
|
|
132
|
+
notNull: true;
|
|
133
|
+
hasDefault: false;
|
|
134
|
+
isPrimaryKey: false;
|
|
135
|
+
isAutoincrement: false;
|
|
136
|
+
hasRuntimeDefault: false;
|
|
137
|
+
enumValues: [string, ...string[]];
|
|
138
|
+
baseColumn: never;
|
|
139
|
+
identity: undefined;
|
|
140
|
+
generated: undefined;
|
|
141
|
+
}, {}, {}>;
|
|
142
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
143
|
+
name: string;
|
|
144
|
+
tableName: "junior_attachments";
|
|
145
|
+
dataType: "date";
|
|
146
|
+
columnType: "PgTimestamp";
|
|
147
|
+
data: Date;
|
|
148
|
+
driverParam: string;
|
|
149
|
+
notNull: true;
|
|
150
|
+
hasDefault: false;
|
|
151
|
+
isPrimaryKey: false;
|
|
152
|
+
isAutoincrement: false;
|
|
153
|
+
hasRuntimeDefault: false;
|
|
154
|
+
enumValues: undefined;
|
|
155
|
+
baseColumn: never;
|
|
156
|
+
identity: undefined;
|
|
157
|
+
generated: undefined;
|
|
158
|
+
}, {}, {}>;
|
|
159
|
+
deleteRequestedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
160
|
+
name: string;
|
|
161
|
+
tableName: "junior_attachments";
|
|
162
|
+
dataType: "date";
|
|
163
|
+
columnType: "PgTimestamp";
|
|
164
|
+
data: Date;
|
|
165
|
+
driverParam: string;
|
|
166
|
+
notNull: false;
|
|
167
|
+
hasDefault: false;
|
|
168
|
+
isPrimaryKey: false;
|
|
169
|
+
isAutoincrement: false;
|
|
170
|
+
hasRuntimeDefault: false;
|
|
171
|
+
enumValues: undefined;
|
|
172
|
+
baseColumn: never;
|
|
173
|
+
identity: undefined;
|
|
174
|
+
generated: undefined;
|
|
175
|
+
}, {}, {}>;
|
|
176
|
+
};
|
|
177
|
+
dialect: "pg";
|
|
178
|
+
}>;
|
|
@@ -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
|
+
}>;
|