@sentry/junior 0.188.0 → 0.190.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-5RQEVLQD.js → agent-hooks-3IG2FQW2.js} +11 -11
- package/dist/api/acp/conversations.d.ts +2 -2
- package/dist/api/conversations/list.d.ts +7 -0
- package/dist/api/people/shared.d.ts +54 -0
- package/dist/api.js +44 -55
- package/dist/app.d.ts +1 -1
- package/dist/app.js +1025 -349
- package/dist/{catalog-runtime-L4A6BJ3U.js → catalog-runtime-2OT7S3ZC.js} +4 -4
- package/dist/chat/actor.d.ts +7 -2
- package/dist/chat/agent/resume.d.ts +0 -2
- package/dist/chat/agent/types.d.ts +8 -9
- package/dist/chat/agent-dispatch/work.d.ts +1 -10
- package/dist/chat/agent-invocations/spawn.d.ts +1 -1
- package/dist/chat/agent-invocations/types.d.ts +44 -108
- package/dist/chat/app/conversation-work.d.ts +16 -8
- package/dist/chat/conversation-privacy.d.ts +7 -7
- package/dist/chat/conversations/destination.d.ts +12 -0
- package/dist/chat/conversations/projection.d.ts +2 -2
- package/dist/chat/conversations/sql/location.d.ts +13 -4
- package/dist/chat/{api-turns → conversations}/stop.d.ts +2 -2
- package/dist/chat/conversations/store.d.ts +4 -4
- package/dist/chat/conversations/structured-events.d.ts +1 -1
- package/dist/chat/{api-turns/authorization.d.ts → conversations/web-authorization.d.ts} +1 -0
- package/dist/chat/conversations/web-input.d.ts +98 -0
- package/dist/chat/conversations/web-mailbox.d.ts +12 -0
- package/dist/chat/event-tasks/tool-support.d.ts +1 -7
- package/dist/chat/providers/slack/runtime.d.ts +1 -0
- package/dist/chat/providers/slack/system-turn.d.ts +8 -0
- package/dist/chat/resource-events/actor.d.ts +13 -12
- package/dist/chat/resource-events/notification.d.ts +1 -1
- package/dist/chat/services/guardian-action-policy.d.ts +1 -1
- package/dist/chat/services/turn-session-routing.d.ts +2 -2
- package/dist/chat/source.d.ts +3 -3
- package/dist/chat/task-execution/assistant-message.d.ts +32 -0
- package/dist/chat/task-execution/conversation-turn.d.ts +8 -0
- package/dist/chat/{api-turns → task-execution}/mailbox-input.d.ts +1 -2
- package/dist/chat/task-execution/mailbox-turn.d.ts +52 -0
- package/dist/chat/task-execution/paused-turn.d.ts +1 -1
- package/dist/chat/task-execution/slack-work.d.ts +0 -2
- package/dist/chat/task-execution/state.d.ts +2 -2
- package/dist/chat/task-execution/store.d.ts +1 -1
- package/dist/chat/task-execution/turn-cursor.d.ts +10 -1
- package/dist/chat/tools/types.d.ts +9 -2
- package/dist/{chunk-XJIPMHKI.js → chunk-2MKHYSYL.js} +3 -3
- package/dist/{chunk-QCGNHSMA.js → chunk-2MRF22J4.js} +25 -10
- package/dist/{chunk-HCIVBCP5.js → chunk-3J3BCB4J.js} +1 -1
- package/dist/chunk-4BLFIYVK.js +703 -0
- package/dist/{chunk-NZLZ4KYZ.js → chunk-4PKEJK5B.js} +1 -1
- package/dist/{chunk-VFZAUQ5V.js → chunk-62DRKZQU.js} +5 -183
- package/dist/{chunk-QIOUTXTZ.js → chunk-663DQH5W.js} +1 -1
- package/dist/{chunk-Z5SKZE5B.js → chunk-67MMSYSE.js} +4 -12
- package/dist/{chunk-ZX7RSBQ6.js → chunk-6BXUSF7J.js} +1 -1
- package/dist/{chunk-W42ENMJW.js → chunk-6H7YU6XH.js} +1 -1
- package/dist/{chunk-WGZJ5SU4.js → chunk-7UJ6IJCK.js} +1 -1
- package/dist/{chunk-QDHJTKPE.js → chunk-7Y7XMI6P.js} +8 -6
- package/dist/{chunk-6YGFBU3A.js → chunk-BGOLRC36.js} +62 -336
- package/dist/{chunk-CVBDVIF4.js → chunk-BUJU6C2J.js} +1 -1
- package/dist/{chunk-XI4PVY2T.js → chunk-CZXZKTAI.js} +5 -5
- package/dist/chunk-DA2KGZZI.js +13 -0
- package/dist/{chunk-RMB7CERI.js → chunk-DJZGQ7OL.js} +311 -137
- package/dist/{chunk-FIUCHYT6.js → chunk-DVX6U6GI.js} +1 -1
- package/dist/{chunk-AW77HH54.js → chunk-ECOR3OXY.js} +19 -299
- package/dist/{chunk-WW2Y7JIA.js → chunk-F3K2267N.js} +51 -50
- package/dist/{chunk-W2DDJCPS.js → chunk-FVFJ57RK.js} +8 -8
- package/dist/{chunk-UVUXFRYN.js → chunk-GWCFXTB6.js} +211 -7
- package/dist/{chunk-X55FOVZO.js → chunk-HI5KXE3C.js} +3 -3
- package/dist/{chunk-ERZMACYA.js → chunk-IRQ3RSX3.js} +3 -3
- package/dist/{chunk-32XSSFZV.js → chunk-JV7U4665.js} +1 -1
- package/dist/chunk-MNHJ4WLE.js +285 -0
- package/dist/{chunk-SC67CH3C.js → chunk-OJFX2FP7.js} +14 -17
- package/dist/{chunk-IUUQWIG2.js → chunk-OKAHLUSU.js} +70 -19
- package/dist/{chunk-PSHMPRIU.js → chunk-OON4IQHH.js} +2 -2
- package/dist/{chunk-6JZGXLL2.js → chunk-OYCOLHCR.js} +5 -7
- package/dist/{chunk-3HEZWDS5.js → chunk-REVH4BZU.js} +2 -2
- package/dist/{chunk-CDSLOYOR.js → chunk-RLYJYEIY.js} +6 -6
- package/dist/{chunk-CZRWU4ZM.js → chunk-T66GV7A3.js} +2 -5
- package/dist/{chunk-Q7O74WOO.js → chunk-VWNIDTFR.js} +2 -2
- package/dist/{chunk-CIG6WI7Q.js → chunk-W2C4TPLB.js} +5 -5
- package/dist/{chunk-QIMN3FXL.js → chunk-Y4WL4OYD.js} +1 -1
- package/dist/{chunk-MQDIIFZM.js → chunk-YFU4DGZY.js} +12 -5
- package/dist/chunk-YKIAUKYH.js +311 -0
- package/dist/{chunk-QVH6FW3T.js → chunk-ZFCO2TMB.js} +7 -3
- package/dist/cli/chat.js +34 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/db/schema/agent-invocations.d.ts +18 -42
- package/dist/db/schema/conversations.d.ts +62 -0
- package/dist/db/schema.d.ts +49 -42
- package/dist/{db-YPRZAA2T.js → db-2IFDMDDY.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-DBBIR3XG.js → oauth-callback-server-SZSS2KH6.js} +30 -28
- package/dist/{runner-FKVFFPLO.js → runner-2N4QU77X.js} +25 -21
- package/dist/{skills-4RBAZEMV.js → skills-VU2LZAKX.js} +5 -5
- package/dist/spawn-3K7RV4T5.js +42 -0
- package/dist/task-runner-52DYFHW3.js +36 -0
- package/dist/{validation-E6Z5LHZM.js → validation-IJGHK7NI.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-OFTXWOK4.js → work-DI45MLRL.js} +22 -21
- package/dist/{worker-OMWNOKTJ.js → worker-FY7KWG2M.js} +10 -10
- package/migrations/0037_conversation_location.sql +23 -0
- package/migrations/meta/0037_snapshot.json +3192 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -4
- package/dist/chat/api-turns/assistant-message.d.ts +0 -12
- package/dist/chat/api-turns/cancellation.d.ts +0 -24
- package/dist/chat/api-turns/routing.d.ts +0 -51
- package/dist/chat/api-turns/work.d.ts +0 -99
- package/dist/chat/task-execution/slack-resource-event.d.ts +0 -55
- package/dist/chunk-6FGN7ZEG.js +0 -221
- package/dist/chunk-LODJKINF.js +0 -1502
- package/dist/spawn-CO7QFCNJ.js +0 -41
- package/dist/task-runner-DUGZGI7V.js +0 -34
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolve
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2MKHYSYL.js";
|
|
4
4
|
import {
|
|
5
5
|
create
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-HI5KXE3C.js";
|
|
7
7
|
import {
|
|
8
8
|
disconnectStateAdapter
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-6BXUSF7J.js";
|
|
10
|
+
import "../chunk-VWNIDTFR.js";
|
|
11
11
|
import "../chunk-D4YV5TDV.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-DVX6U6GI.js";
|
|
13
13
|
import {
|
|
14
14
|
pluginCatalogRuntime
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-4PKEJK5B.js";
|
|
16
|
+
import "../chunk-663DQH5W.js";
|
|
17
17
|
import "../chunk-CEMMLV5L.js";
|
|
18
18
|
import "../chunk-N7TMSOZH.js";
|
|
19
19
|
import "../chunk-DWPN6SCH.js";
|
|
20
20
|
import "../chunk-TXKUKMVO.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-Y4WL4OYD.js";
|
|
22
22
|
import "../chunk-PEQXYSSE.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-JV7U4665.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/snapshot-create.ts
|
|
26
26
|
var DEFAULT_RUNTIME = "node22";
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -8,23 +8,23 @@ import {
|
|
|
8
8
|
} from "../chunk-Y2CM7HXH.js";
|
|
9
9
|
import {
|
|
10
10
|
createJuniorSqlExecutor
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-ZFCO2TMB.js";
|
|
12
12
|
import "../chunk-VFUK3X5B.js";
|
|
13
13
|
import {
|
|
14
14
|
getChatConfig
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-VWNIDTFR.js";
|
|
16
16
|
import "../chunk-D4YV5TDV.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-DVX6U6GI.js";
|
|
18
18
|
import {
|
|
19
19
|
createPluginCatalogRuntime
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-663DQH5W.js";
|
|
21
21
|
import "../chunk-CEMMLV5L.js";
|
|
22
22
|
import "../chunk-N7TMSOZH.js";
|
|
23
23
|
import "../chunk-DWPN6SCH.js";
|
|
24
24
|
import "../chunk-TXKUKMVO.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-Y4WL4OYD.js";
|
|
26
26
|
import "../chunk-PEQXYSSE.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-JV7U4665.js";
|
|
28
28
|
|
|
29
29
|
// src/chat/conversations/sql/migrations.ts
|
|
30
30
|
import { basename, dirname, join, resolve } from "path";
|
|
@@ -322,38 +322,26 @@ export declare const juniorAgentInvocations: import("drizzle-orm/pg-core").PgTab
|
|
|
322
322
|
dataType: "json";
|
|
323
323
|
columnType: "PgJsonb";
|
|
324
324
|
data: {
|
|
325
|
-
|
|
325
|
+
kind: "slack";
|
|
326
326
|
teamId: string;
|
|
327
327
|
channelId: string;
|
|
328
328
|
visibility: "private" | "public";
|
|
329
|
-
location?: {
|
|
330
|
-
id: string;
|
|
331
|
-
provider: string;
|
|
332
|
-
providerId: string;
|
|
333
|
-
tenantId?: string | undefined;
|
|
334
|
-
} | undefined;
|
|
335
329
|
messageTs?: string | undefined;
|
|
336
330
|
threadTs?: string | undefined;
|
|
337
331
|
} | {
|
|
338
|
-
|
|
332
|
+
kind: "local";
|
|
339
333
|
visibility: "private";
|
|
340
334
|
conversationId: string;
|
|
341
|
-
location?: {
|
|
342
|
-
id: string;
|
|
343
|
-
provider: string;
|
|
344
|
-
providerId: string;
|
|
345
|
-
tenantId?: string | undefined;
|
|
346
|
-
} | undefined;
|
|
347
335
|
} | {
|
|
348
|
-
|
|
336
|
+
kind: "web";
|
|
349
337
|
visibility: "private" | "public";
|
|
350
338
|
conversationId: string;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
339
|
+
} | {
|
|
340
|
+
kind: "resource_event";
|
|
341
|
+
eventKey: string;
|
|
342
|
+
eventType: string;
|
|
343
|
+
identifier: string;
|
|
344
|
+
namespace: string;
|
|
357
345
|
};
|
|
358
346
|
driverParam: unknown;
|
|
359
347
|
notNull: true;
|
|
@@ -367,38 +355,26 @@ export declare const juniorAgentInvocations: import("drizzle-orm/pg-core").PgTab
|
|
|
367
355
|
generated: undefined;
|
|
368
356
|
}, {}, {
|
|
369
357
|
$type: {
|
|
370
|
-
|
|
358
|
+
kind: "slack";
|
|
371
359
|
teamId: string;
|
|
372
360
|
channelId: string;
|
|
373
361
|
visibility: "private" | "public";
|
|
374
|
-
location?: {
|
|
375
|
-
id: string;
|
|
376
|
-
provider: string;
|
|
377
|
-
providerId: string;
|
|
378
|
-
tenantId?: string | undefined;
|
|
379
|
-
} | undefined;
|
|
380
362
|
messageTs?: string | undefined;
|
|
381
363
|
threadTs?: string | undefined;
|
|
382
364
|
} | {
|
|
383
|
-
|
|
365
|
+
kind: "local";
|
|
384
366
|
visibility: "private";
|
|
385
367
|
conversationId: string;
|
|
386
|
-
location?: {
|
|
387
|
-
id: string;
|
|
388
|
-
provider: string;
|
|
389
|
-
providerId: string;
|
|
390
|
-
tenantId?: string | undefined;
|
|
391
|
-
} | undefined;
|
|
392
368
|
} | {
|
|
393
|
-
|
|
369
|
+
kind: "web";
|
|
394
370
|
visibility: "private" | "public";
|
|
395
371
|
conversationId: string;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
372
|
+
} | {
|
|
373
|
+
kind: "resource_event";
|
|
374
|
+
eventKey: string;
|
|
375
|
+
eventType: string;
|
|
376
|
+
identifier: string;
|
|
377
|
+
namespace: string;
|
|
402
378
|
};
|
|
403
379
|
}>;
|
|
404
380
|
destination: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -127,6 +127,37 @@ export declare const juniorConversations: import("drizzle-orm/pg-core").PgTableW
|
|
|
127
127
|
identity: undefined;
|
|
128
128
|
generated: undefined;
|
|
129
129
|
}, {}, {}>;
|
|
130
|
+
location: import("drizzle-orm/pg-core").PgColumn<{
|
|
131
|
+
name: "location_json";
|
|
132
|
+
tableName: "junior_conversations";
|
|
133
|
+
dataType: "json";
|
|
134
|
+
columnType: "PgJsonb";
|
|
135
|
+
data: {
|
|
136
|
+
id: string;
|
|
137
|
+
provider: "slack";
|
|
138
|
+
teamId: string;
|
|
139
|
+
channelId: string;
|
|
140
|
+
threadTs?: string | undefined;
|
|
141
|
+
};
|
|
142
|
+
driverParam: unknown;
|
|
143
|
+
notNull: false;
|
|
144
|
+
hasDefault: false;
|
|
145
|
+
isPrimaryKey: false;
|
|
146
|
+
isAutoincrement: false;
|
|
147
|
+
hasRuntimeDefault: false;
|
|
148
|
+
enumValues: undefined;
|
|
149
|
+
baseColumn: never;
|
|
150
|
+
identity: undefined;
|
|
151
|
+
generated: undefined;
|
|
152
|
+
}, {}, {
|
|
153
|
+
$type: {
|
|
154
|
+
id: string;
|
|
155
|
+
provider: "slack";
|
|
156
|
+
teamId: string;
|
|
157
|
+
channelId: string;
|
|
158
|
+
threadTs?: string | undefined;
|
|
159
|
+
};
|
|
160
|
+
}>;
|
|
130
161
|
destinationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
131
162
|
name: "destination_id";
|
|
132
163
|
tableName: "junior_conversations";
|
|
@@ -774,6 +805,37 @@ export declare function conversationReadColumns(): {
|
|
|
774
805
|
identity: undefined;
|
|
775
806
|
generated: undefined;
|
|
776
807
|
}, {}, {}>;
|
|
808
|
+
location: import("drizzle-orm/pg-core").PgColumn<{
|
|
809
|
+
name: "location_json";
|
|
810
|
+
tableName: "junior_conversations";
|
|
811
|
+
dataType: "json";
|
|
812
|
+
columnType: "PgJsonb";
|
|
813
|
+
data: {
|
|
814
|
+
id: string;
|
|
815
|
+
provider: "slack";
|
|
816
|
+
teamId: string;
|
|
817
|
+
channelId: string;
|
|
818
|
+
threadTs?: string | undefined;
|
|
819
|
+
};
|
|
820
|
+
driverParam: unknown;
|
|
821
|
+
notNull: false;
|
|
822
|
+
hasDefault: false;
|
|
823
|
+
isPrimaryKey: false;
|
|
824
|
+
isAutoincrement: false;
|
|
825
|
+
hasRuntimeDefault: false;
|
|
826
|
+
enumValues: undefined;
|
|
827
|
+
baseColumn: never;
|
|
828
|
+
identity: undefined;
|
|
829
|
+
generated: undefined;
|
|
830
|
+
}, {}, {
|
|
831
|
+
$type: {
|
|
832
|
+
id: string;
|
|
833
|
+
provider: "slack";
|
|
834
|
+
teamId: string;
|
|
835
|
+
channelId: string;
|
|
836
|
+
threadTs?: string | undefined;
|
|
837
|
+
};
|
|
838
|
+
}>;
|
|
777
839
|
destinationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
778
840
|
name: "destination_id";
|
|
779
841
|
tableName: "junior_conversations";
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1362,38 +1362,26 @@ export declare const juniorSqlSchema: {
|
|
|
1362
1362
|
dataType: "json";
|
|
1363
1363
|
columnType: "PgJsonb";
|
|
1364
1364
|
data: {
|
|
1365
|
-
|
|
1365
|
+
kind: "slack";
|
|
1366
1366
|
teamId: string;
|
|
1367
1367
|
channelId: string;
|
|
1368
1368
|
visibility: "private" | "public";
|
|
1369
|
-
location?: {
|
|
1370
|
-
id: string;
|
|
1371
|
-
provider: string;
|
|
1372
|
-
providerId: string;
|
|
1373
|
-
tenantId?: string | undefined;
|
|
1374
|
-
} | undefined;
|
|
1375
1369
|
messageTs?: string | undefined;
|
|
1376
1370
|
threadTs?: string | undefined;
|
|
1377
1371
|
} | {
|
|
1378
|
-
|
|
1372
|
+
kind: "local";
|
|
1379
1373
|
visibility: "private";
|
|
1380
1374
|
conversationId: string;
|
|
1381
|
-
location?: {
|
|
1382
|
-
id: string;
|
|
1383
|
-
provider: string;
|
|
1384
|
-
providerId: string;
|
|
1385
|
-
tenantId?: string | undefined;
|
|
1386
|
-
} | undefined;
|
|
1387
1375
|
} | {
|
|
1388
|
-
|
|
1376
|
+
kind: "web";
|
|
1389
1377
|
visibility: "private" | "public";
|
|
1390
1378
|
conversationId: string;
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1379
|
+
} | {
|
|
1380
|
+
kind: "resource_event";
|
|
1381
|
+
eventKey: string;
|
|
1382
|
+
eventType: string;
|
|
1383
|
+
identifier: string;
|
|
1384
|
+
namespace: string;
|
|
1397
1385
|
};
|
|
1398
1386
|
driverParam: unknown;
|
|
1399
1387
|
notNull: true;
|
|
@@ -1407,38 +1395,26 @@ export declare const juniorSqlSchema: {
|
|
|
1407
1395
|
generated: undefined;
|
|
1408
1396
|
}, {}, {
|
|
1409
1397
|
$type: {
|
|
1410
|
-
|
|
1398
|
+
kind: "slack";
|
|
1411
1399
|
teamId: string;
|
|
1412
1400
|
channelId: string;
|
|
1413
1401
|
visibility: "private" | "public";
|
|
1414
|
-
location?: {
|
|
1415
|
-
id: string;
|
|
1416
|
-
provider: string;
|
|
1417
|
-
providerId: string;
|
|
1418
|
-
tenantId?: string | undefined;
|
|
1419
|
-
} | undefined;
|
|
1420
1402
|
messageTs?: string | undefined;
|
|
1421
1403
|
threadTs?: string | undefined;
|
|
1422
1404
|
} | {
|
|
1423
|
-
|
|
1405
|
+
kind: "local";
|
|
1424
1406
|
visibility: "private";
|
|
1425
1407
|
conversationId: string;
|
|
1426
|
-
location?: {
|
|
1427
|
-
id: string;
|
|
1428
|
-
provider: string;
|
|
1429
|
-
providerId: string;
|
|
1430
|
-
tenantId?: string | undefined;
|
|
1431
|
-
} | undefined;
|
|
1432
1408
|
} | {
|
|
1433
|
-
|
|
1409
|
+
kind: "web";
|
|
1434
1410
|
visibility: "private" | "public";
|
|
1435
1411
|
conversationId: string;
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1412
|
+
} | {
|
|
1413
|
+
kind: "resource_event";
|
|
1414
|
+
eventKey: string;
|
|
1415
|
+
eventType: string;
|
|
1416
|
+
identifier: string;
|
|
1417
|
+
namespace: string;
|
|
1442
1418
|
};
|
|
1443
1419
|
}>;
|
|
1444
1420
|
destination: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -2111,6 +2087,37 @@ export declare const juniorSqlSchema: {
|
|
|
2111
2087
|
identity: undefined;
|
|
2112
2088
|
generated: undefined;
|
|
2113
2089
|
}, {}, {}>;
|
|
2090
|
+
location: import("drizzle-orm/pg-core").PgColumn<{
|
|
2091
|
+
name: "location_json";
|
|
2092
|
+
tableName: "junior_conversations";
|
|
2093
|
+
dataType: "json";
|
|
2094
|
+
columnType: "PgJsonb";
|
|
2095
|
+
data: {
|
|
2096
|
+
id: string;
|
|
2097
|
+
provider: "slack";
|
|
2098
|
+
teamId: string;
|
|
2099
|
+
channelId: string;
|
|
2100
|
+
threadTs?: string | undefined;
|
|
2101
|
+
};
|
|
2102
|
+
driverParam: unknown;
|
|
2103
|
+
notNull: false;
|
|
2104
|
+
hasDefault: false;
|
|
2105
|
+
isPrimaryKey: false;
|
|
2106
|
+
isAutoincrement: false;
|
|
2107
|
+
hasRuntimeDefault: false;
|
|
2108
|
+
enumValues: undefined;
|
|
2109
|
+
baseColumn: never;
|
|
2110
|
+
identity: undefined;
|
|
2111
|
+
generated: undefined;
|
|
2112
|
+
}, {}, {
|
|
2113
|
+
$type: {
|
|
2114
|
+
id: string;
|
|
2115
|
+
provider: "slack";
|
|
2116
|
+
teamId: string;
|
|
2117
|
+
channelId: string;
|
|
2118
|
+
threadTs?: string | undefined;
|
|
2119
|
+
};
|
|
2120
|
+
}>;
|
|
2114
2121
|
destinationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2115
2122
|
name: "destination_id";
|
|
2116
2123
|
tableName: "junior_conversations";
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-OKAHLUSU.js";
|
|
9
|
+
import "./chunk-ZFCO2TMB.js";
|
|
10
10
|
import "./chunk-GFBR4S3Q.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-VWNIDTFR.js";
|
|
13
13
|
import "./chunk-D4YV5TDV.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-DVX6U6GI.js";
|
|
15
15
|
import "./chunk-N7TMSOZH.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-Y4WL4OYD.js";
|
|
17
17
|
import "./chunk-PEQXYSSE.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JV7U4665.js";
|
|
19
19
|
export {
|
|
20
20
|
closeDb,
|
|
21
21
|
getConversationEventStore,
|
package/dist/instrumentation.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UIE3R5XU.js";
|
|
4
4
|
import {
|
|
5
5
|
getCurrentConversationPrivacy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DVX6U6GI.js";
|
|
7
7
|
import {
|
|
8
8
|
getDeploymentServiceVersion,
|
|
9
9
|
getDeploymentTelemetryAttributes
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y4WL4OYD.js";
|
|
11
11
|
import {
|
|
12
12
|
getClient,
|
|
13
13
|
getGlobalScope,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
vercelAIIntegration,
|
|
16
16
|
withStreamedSpan
|
|
17
17
|
} from "./chunk-PEQXYSSE.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JV7U4665.js";
|
|
19
19
|
|
|
20
20
|
// src/chat/sentry-payload-filter.ts
|
|
21
21
|
var PAYLOAD_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
|
package/dist/nitro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PLUGIN_TASK_QUEUE_TOPIC
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CZXZKTAI.js";
|
|
4
4
|
import {
|
|
5
5
|
pluginCatalogConfigFromPluginSet,
|
|
6
6
|
pluginRuntimeRegistrationsFromPluginSet
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC
|
|
10
10
|
} from "./chunk-X6GDDWQH.js";
|
|
11
|
+
import "./chunk-7UJ6IJCK.js";
|
|
11
12
|
import {
|
|
12
13
|
resolveConversationWorkQueueTopic
|
|
13
14
|
} from "./chunk-DKIJ2RP5.js";
|
|
14
15
|
import "./chunk-JAL3CH4G.js";
|
|
15
16
|
import "./chunk-7H2VZTWN.js";
|
|
16
|
-
import "./chunk-WGZJ5SU4.js";
|
|
17
17
|
import {
|
|
18
18
|
loadPluginSetFromModule,
|
|
19
19
|
resolvePluginModule
|
|
20
20
|
} from "./chunk-Y2CM7HXH.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-VWNIDTFR.js";
|
|
22
22
|
import "./chunk-D4YV5TDV.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-DVX6U6GI.js";
|
|
24
24
|
import {
|
|
25
25
|
discoverInstalledPluginPackageContent
|
|
26
26
|
} from "./chunk-DWPN6SCH.js";
|
|
@@ -36,9 +36,9 @@ import {
|
|
|
36
36
|
JUNIOR_RETENTION_CRON_SCHEDULE,
|
|
37
37
|
JUNIOR_RETENTION_ROUTE,
|
|
38
38
|
JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-Y4WL4OYD.js";
|
|
40
40
|
import "./chunk-PEQXYSSE.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-JV7U4665.js";
|
|
42
42
|
|
|
43
43
|
// src/nitro.ts
|
|
44
44
|
import path2 from "path";
|
|
@@ -2,51 +2,53 @@ import {
|
|
|
2
2
|
GET,
|
|
3
3
|
GET2,
|
|
4
4
|
syncLocalOAuthCredential
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3K2267N.js";
|
|
6
6
|
import "./chunk-FA6POGLH.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IRQ3RSX3.js";
|
|
8
|
+
import "./chunk-7Y7XMI6P.js";
|
|
9
|
+
import "./chunk-ECOR3OXY.js";
|
|
10
|
+
import "./chunk-6H7YU6XH.js";
|
|
11
|
+
import "./chunk-W2C4TPLB.js";
|
|
12
|
+
import "./chunk-OON4IQHH.js";
|
|
13
|
+
import "./chunk-MNHJ4WLE.js";
|
|
14
|
+
import "./chunk-CZXZKTAI.js";
|
|
14
15
|
import {
|
|
15
16
|
createUserTokenStore
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-MQDIIFZM.js";
|
|
21
|
-
import "./chunk-Z5SKZE5B.js";
|
|
22
|
-
import "./chunk-6YGFBU3A.js";
|
|
17
|
+
} from "./chunk-FVFJ57RK.js";
|
|
18
|
+
import "./chunk-GWCFXTB6.js";
|
|
19
|
+
import "./chunk-67MMSYSE.js";
|
|
20
|
+
import "./chunk-BGOLRC36.js";
|
|
23
21
|
import "./chunk-2LYHWMR4.js";
|
|
22
|
+
import "./chunk-BUJU6C2J.js";
|
|
23
|
+
import "./chunk-YFU4DGZY.js";
|
|
24
|
+
import "./chunk-DA2KGZZI.js";
|
|
25
|
+
import "./chunk-YKIAUKYH.js";
|
|
24
26
|
import "./chunk-PDO5BLNM.js";
|
|
27
|
+
import "./chunk-7UJ6IJCK.js";
|
|
25
28
|
import "./chunk-DKIJ2RP5.js";
|
|
26
29
|
import "./chunk-JAL3CH4G.js";
|
|
27
30
|
import "./chunk-7H2VZTWN.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-QCGNHSMA.js";
|
|
31
|
+
import "./chunk-2MRF22J4.js";
|
|
30
32
|
import "./chunk-3Y47VMHV.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-OKAHLUSU.js";
|
|
34
|
+
import "./chunk-ZFCO2TMB.js";
|
|
35
|
+
import "./chunk-HI5KXE3C.js";
|
|
36
|
+
import "./chunk-6BXUSF7J.js";
|
|
35
37
|
import "./chunk-GFBR4S3Q.js";
|
|
36
38
|
import "./chunk-VFUK3X5B.js";
|
|
37
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-VWNIDTFR.js";
|
|
38
40
|
import "./chunk-D4YV5TDV.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-DVX6U6GI.js";
|
|
42
|
+
import "./chunk-REVH4BZU.js";
|
|
43
|
+
import "./chunk-4PKEJK5B.js";
|
|
44
|
+
import "./chunk-663DQH5W.js";
|
|
43
45
|
import "./chunk-CEMMLV5L.js";
|
|
44
46
|
import "./chunk-N7TMSOZH.js";
|
|
45
47
|
import "./chunk-DWPN6SCH.js";
|
|
46
48
|
import "./chunk-TXKUKMVO.js";
|
|
47
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-Y4WL4OYD.js";
|
|
48
50
|
import "./chunk-PEQXYSSE.js";
|
|
49
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-JV7U4665.js";
|
|
50
52
|
|
|
51
53
|
// src/chat/local/oauth-callback-server.ts
|
|
52
54
|
import { createServer } from "http";
|
|
@@ -2,21 +2,22 @@ import {
|
|
|
2
2
|
buildDeliveredTurnStatePatch,
|
|
3
3
|
completeAuthPauseTurn,
|
|
4
4
|
finalizeFailedTurnReplyWithEvent
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7Y7XMI6P.js";
|
|
6
6
|
import {
|
|
7
7
|
processPluginTask,
|
|
8
8
|
scheduleSessionCompletedPluginTasks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ECOR3OXY.js";
|
|
10
10
|
import {
|
|
11
11
|
ConversationTurnLifecycleService
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6H7YU6XH.js";
|
|
13
13
|
import {
|
|
14
14
|
coerceThreadConversationState,
|
|
15
15
|
getPersistedSandboxState,
|
|
16
16
|
getPersistedThreadState,
|
|
17
17
|
persistThreadStateById
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-W2C4TPLB.js";
|
|
19
|
+
import "./chunk-MNHJ4WLE.js";
|
|
20
|
+
import "./chunk-CZXZKTAI.js";
|
|
20
21
|
import {
|
|
21
22
|
authorizationId
|
|
22
23
|
} from "./chunk-DIB4GX3G.js";
|
|
@@ -24,7 +25,7 @@ import {
|
|
|
24
25
|
getAssistantReplyText,
|
|
25
26
|
markTurnFailed,
|
|
26
27
|
startActiveTurn
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-67MMSYSE.js";
|
|
28
29
|
import {
|
|
29
30
|
buildConversationContext,
|
|
30
31
|
commitAcceptedReply,
|
|
@@ -39,26 +40,28 @@ import {
|
|
|
39
40
|
saveTurnCheckpoint,
|
|
40
41
|
stripRuntimeTurnContext,
|
|
41
42
|
upsertConversationMessage
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BGOLRC36.js";
|
|
44
|
+
import "./chunk-DA2KGZZI.js";
|
|
45
|
+
import "./chunk-YKIAUKYH.js";
|
|
43
46
|
import "./chunk-PDO5BLNM.js";
|
|
47
|
+
import "./chunk-7UJ6IJCK.js";
|
|
44
48
|
import "./chunk-7H2VZTWN.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-QCGNHSMA.js";
|
|
49
|
+
import "./chunk-2MRF22J4.js";
|
|
47
50
|
import "./chunk-3Y47VMHV.js";
|
|
48
51
|
import {
|
|
49
52
|
getConversationEventStore,
|
|
50
53
|
getConversationStore
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-OKAHLUSU.js";
|
|
55
|
+
import "./chunk-ZFCO2TMB.js";
|
|
56
|
+
import "./chunk-HI5KXE3C.js";
|
|
57
|
+
import "./chunk-6BXUSF7J.js";
|
|
55
58
|
import "./chunk-GFBR4S3Q.js";
|
|
56
59
|
import "./chunk-VFUK3X5B.js";
|
|
57
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-VWNIDTFR.js";
|
|
58
61
|
import "./chunk-D4YV5TDV.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-DVX6U6GI.js";
|
|
63
|
+
import "./chunk-4PKEJK5B.js";
|
|
64
|
+
import "./chunk-663DQH5W.js";
|
|
62
65
|
import {
|
|
63
66
|
credentialContextForActor
|
|
64
67
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -69,9 +72,9 @@ import {
|
|
|
69
72
|
logException,
|
|
70
73
|
setTags,
|
|
71
74
|
withLogContext
|
|
72
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-Y4WL4OYD.js";
|
|
73
76
|
import "./chunk-PEQXYSSE.js";
|
|
74
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-JV7U4665.js";
|
|
75
78
|
|
|
76
79
|
// src/chat/local/runner.ts
|
|
77
80
|
import { randomUUID } from "crypto";
|
|
@@ -150,7 +153,8 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
150
153
|
conversationId: input.conversationId,
|
|
151
154
|
destination,
|
|
152
155
|
nowMs: Date.now(),
|
|
153
|
-
source: "local"
|
|
156
|
+
source: "local",
|
|
157
|
+
visibility: "private"
|
|
154
158
|
});
|
|
155
159
|
const persisted = await getPersistedThreadState(input.conversationId);
|
|
156
160
|
const conversation = coerceThreadConversationState(persisted);
|
|
@@ -298,7 +302,7 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
298
302
|
await deps.onToolResult?.(event.report);
|
|
299
303
|
}
|
|
300
304
|
},
|
|
301
|
-
delivery:
|
|
305
|
+
delivery: deliverAssistantMessage,
|
|
302
306
|
durability: {
|
|
303
307
|
onSandboxRefChanged: async (nextSandboxRef) => {
|
|
304
308
|
sandboxRef = nextSandboxRef;
|