@sentry/junior 0.155.0 → 0.157.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-AWVTLAV2.js → agent-hooks-QI5EPOKQ.js} +10 -10
- package/dist/api/conversations/attachments.d.ts +32 -0
- package/dist/api/conversations/priority.d.ts +21 -0
- package/dist/api/conversations/routes.d.ts +4 -1
- package/dist/api/locations/detail.d.ts +4 -1
- package/dist/api/schema/conversation.d.ts +33 -8
- package/dist/api/schema/location.d.ts +4 -1
- package/dist/api/schema/person.d.ts +4 -1
- package/dist/api/schema/task.d.ts +8 -8
- package/dist/api/schema.js +1 -1
- package/dist/api.js +182 -48
- package/dist/app.js +128 -44
- package/dist/{catalog-runtime-V6YD6KH5.js → catalog-runtime-HUGHAFUN.js} +5 -5
- package/dist/chat/agent/types.d.ts +2 -0
- package/dist/chat/agent-invocations/types.d.ts +12 -12
- package/dist/chat/attachments/storage.d.ts +14 -0
- package/dist/chat/attachments/store.d.ts +68 -0
- package/dist/chat/attachments/vercel.d.ts +3 -0
- package/dist/chat/conversations/retention.d.ts +4 -0
- package/dist/chat/event-tasks/tool-support.d.ts +1 -1
- package/dist/chat/event-tasks/types.d.ts +1 -1
- package/dist/chat/ingress/bot-mention.d.ts +13 -0
- package/dist/chat/plugins/unfinished-work.d.ts +11 -0
- package/dist/chat/runtime/agent-runner.d.ts +2 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +5 -5
- package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -2
- 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 +2 -1
- package/dist/chat/task-execution/slack-work.d.ts +2 -2
- package/dist/chat/tools/types.d.ts +2 -0
- package/dist/{chunk-773XC7P4.js → chunk-3GS7O66Z.js} +159 -128
- package/dist/{chunk-JFZBGFNX.js → chunk-46ADYIPE.js} +2 -1
- package/dist/{chunk-KTVHAHUV.js → chunk-4M25PSFB.js} +1 -1
- package/dist/{chunk-4K5N6HTX.js → chunk-5TIH5GOE.js} +5 -5
- package/dist/{chunk-TVXAN43I.js → chunk-6MI43QZO.js} +1 -1
- package/dist/{chunk-RN3AWYEP.js → chunk-77QB5FNI.js} +1 -1
- package/dist/{chunk-Y7ZUBP2K.js → chunk-7J65DOBL.js} +6 -6
- package/dist/{chunk-2AHVM3HK.js → chunk-AFQ47JQ7.js} +10 -8
- package/dist/{chunk-ELOTIL5F.js → chunk-BLCVTEE7.js} +4 -4
- package/dist/{chunk-ZLSFOSDK.js → chunk-CZCMFRUQ.js} +18 -1
- package/dist/{chunk-2WLJDM23.js → chunk-D7BNWRYL.js} +1 -1
- package/dist/{chunk-EORR34UB.js → chunk-F7VOY4VQ.js} +1 -1
- package/dist/{chunk-JJX77MB7.js → chunk-G2FN3I66.js} +3 -3
- package/dist/{chunk-J2SYI36O.js → chunk-GEY6IFXH.js} +4 -4
- package/dist/{chunk-37G5HJ2X.js → chunk-GO2W3VZY.js} +4 -4
- package/dist/{chunk-LQT3SWFA.js → chunk-HJ3EZHIX.js} +351 -5
- package/dist/{chunk-SDRJ2LE3.js → chunk-I3OQVVMV.js} +1 -1
- package/dist/{chunk-TKJ7277U.js → chunk-MDZQ62PB.js} +2 -2
- package/dist/{chunk-V57LZDHN.js → chunk-MGJW3SW4.js} +6 -6
- package/dist/{chunk-7NYEB2TM.js → chunk-MKA3T2R6.js} +1 -1
- package/dist/{chunk-RQ62VKM7.js → chunk-MXO6VFB3.js} +1 -1
- package/dist/{chunk-AENPRXCG.js → chunk-OWASYHHV.js} +68 -39
- package/dist/{chunk-UWTXAYBP.js → chunk-PP4UQTH3.js} +9 -9
- package/dist/{chunk-JIC33O5L.js → chunk-RQBRGPUF.js} +2 -2
- package/dist/{chunk-NWSKFYOH.js → chunk-S4PFOWRA.js} +1 -1
- package/dist/{chunk-NKFRRZIT.js → chunk-TA5R6BME.js} +19 -18
- package/dist/{chunk-XFZLQANQ.js → chunk-UJYA75N5.js} +2 -2
- package/dist/{chunk-Y6MVGU7L.js → chunk-VBKFO65J.js} +35 -10
- package/dist/{chunk-KBT2I5ER.js → chunk-VDAEXEBB.js} +6 -6
- package/dist/{chunk-J7MWZFFP.js → chunk-VIBHFGQC.js} +4 -4
- package/dist/{chunk-APHDJYN7.js → chunk-VYDM7HUF.js} +1 -1
- package/dist/{chunk-CPQBTTI6.js → chunk-WNNYOPXX.js} +5 -5
- package/dist/{chunk-MLBH7J7J.js → chunk-XRERMHPN.js} +1 -1
- package/dist/cli/chat.js +30 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/agent-invocations.d.ts +4 -4
- package/dist/db/schema/attachments.d.ts +178 -0
- package/dist/db/schema.d.ts +183 -5
- package/dist/{db-WT7P56AH.js → db-VQAV4PJ3.js} +7 -7
- 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-R2PK2MCA.js → oauth-callback-server-K5KQAAAX.js} +23 -23
- package/dist/{runner-O7YYUIHT.js → runner-U7QI7P4S.js} +14 -15
- package/dist/{skills-S6HLQRH7.js → skills-ENKRBZ7K.js} +6 -6
- package/dist/spawn-4XGNONLS.js +37 -0
- package/dist/{validation-46WD2OAR.js → validation-VKCDVGA6.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-YT5QUBS3.js → work-IBD6PWP2.js} +17 -17
- package/dist/worker-TJFXOZRC.js +24 -0
- package/migrations/0027_attachment_storage.sql +16 -0
- package/migrations/meta/0027_snapshot.json +2554 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +5 -4
- package/dist/spawn-B4SBFFA2.js +0 -37
- package/dist/worker-4C5BEDWN.js +0 -24
|
@@ -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
|
+
}>;
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { juniorAttachments } from "./schema/attachments";
|
|
1
2
|
import { juniorConversationAnnotations } from "./schema/conversation-annotations";
|
|
2
3
|
import { juniorApiTokens } from "./schema/api-tokens";
|
|
3
4
|
import { juniorConversationEvents } from "./schema/conversation-events";
|
|
@@ -13,8 +14,185 @@ import { juniorStats } from "./schema/stats";
|
|
|
13
14
|
import { juniorTaskExecutions } from "./schema/task-executions";
|
|
14
15
|
import { juniorSchedulerRuns, juniorSchedulerTasks } from "./schema/scheduled-tasks";
|
|
15
16
|
import { juniorUsers } from "./schema/users";
|
|
16
|
-
export { juniorConversationAnnotations, juniorApiTokens, juniorAgentBindings, juniorAgentInvocations, juniorConversationEvents, juniorConversationBindings, juniorConversationParticipants, juniorConversations, juniorLocationConfigurations, juniorDestinations, juniorEventTasks, juniorIdentities, juniorStats, juniorTaskExecutions, juniorSchedulerRuns, juniorSchedulerTasks, juniorUsers, };
|
|
17
|
+
export { juniorAttachments, juniorConversationAnnotations, juniorApiTokens, juniorAgentBindings, juniorAgentInvocations, juniorConversationEvents, juniorConversationBindings, juniorConversationParticipants, juniorConversations, juniorLocationConfigurations, juniorDestinations, juniorEventTasks, juniorIdentities, juniorStats, juniorTaskExecutions, juniorSchedulerRuns, juniorSchedulerTasks, juniorUsers, };
|
|
17
18
|
export declare const juniorSqlSchema: {
|
|
19
|
+
juniorAttachments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
20
|
+
name: "junior_attachments";
|
|
21
|
+
schema: undefined;
|
|
22
|
+
columns: {
|
|
23
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
24
|
+
name: "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: true;
|
|
33
|
+
isAutoincrement: false;
|
|
34
|
+
hasRuntimeDefault: false;
|
|
35
|
+
enumValues: [string, ...string[]];
|
|
36
|
+
baseColumn: never;
|
|
37
|
+
identity: undefined;
|
|
38
|
+
generated: undefined;
|
|
39
|
+
}, {}, {}>;
|
|
40
|
+
conversationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
41
|
+
name: "conversation_id";
|
|
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
|
+
provider: import("drizzle-orm/pg-core").PgColumn<{
|
|
58
|
+
name: "provider";
|
|
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
|
+
storageKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
75
|
+
name: "storage_key";
|
|
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
|
+
filename: import("drizzle-orm/pg-core").PgColumn<{
|
|
92
|
+
name: "filename";
|
|
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
|
+
contentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
109
|
+
name: "content_type";
|
|
110
|
+
tableName: "junior_attachments";
|
|
111
|
+
dataType: "string";
|
|
112
|
+
columnType: "PgText";
|
|
113
|
+
data: string;
|
|
114
|
+
driverParam: string;
|
|
115
|
+
notNull: true;
|
|
116
|
+
hasDefault: false;
|
|
117
|
+
isPrimaryKey: false;
|
|
118
|
+
isAutoincrement: false;
|
|
119
|
+
hasRuntimeDefault: false;
|
|
120
|
+
enumValues: [string, ...string[]];
|
|
121
|
+
baseColumn: never;
|
|
122
|
+
identity: undefined;
|
|
123
|
+
generated: undefined;
|
|
124
|
+
}, {}, {}>;
|
|
125
|
+
bytes: import("drizzle-orm/pg-core").PgColumn<{
|
|
126
|
+
name: "bytes";
|
|
127
|
+
tableName: "junior_attachments";
|
|
128
|
+
dataType: "number";
|
|
129
|
+
columnType: "PgInteger";
|
|
130
|
+
data: number;
|
|
131
|
+
driverParam: string | number;
|
|
132
|
+
notNull: true;
|
|
133
|
+
hasDefault: false;
|
|
134
|
+
isPrimaryKey: false;
|
|
135
|
+
isAutoincrement: false;
|
|
136
|
+
hasRuntimeDefault: false;
|
|
137
|
+
enumValues: undefined;
|
|
138
|
+
baseColumn: never;
|
|
139
|
+
identity: undefined;
|
|
140
|
+
generated: undefined;
|
|
141
|
+
}, {}, {}>;
|
|
142
|
+
sha256: import("drizzle-orm/pg-core").PgColumn<{
|
|
143
|
+
name: "sha256";
|
|
144
|
+
tableName: "junior_attachments";
|
|
145
|
+
dataType: "string";
|
|
146
|
+
columnType: "PgText";
|
|
147
|
+
data: string;
|
|
148
|
+
driverParam: string;
|
|
149
|
+
notNull: true;
|
|
150
|
+
hasDefault: false;
|
|
151
|
+
isPrimaryKey: false;
|
|
152
|
+
isAutoincrement: false;
|
|
153
|
+
hasRuntimeDefault: false;
|
|
154
|
+
enumValues: [string, ...string[]];
|
|
155
|
+
baseColumn: never;
|
|
156
|
+
identity: undefined;
|
|
157
|
+
generated: undefined;
|
|
158
|
+
}, {}, {}>;
|
|
159
|
+
createdAt: 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: true;
|
|
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
|
+
deleteRequestedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
177
|
+
name: string;
|
|
178
|
+
tableName: "junior_attachments";
|
|
179
|
+
dataType: "date";
|
|
180
|
+
columnType: "PgTimestamp";
|
|
181
|
+
data: Date;
|
|
182
|
+
driverParam: string;
|
|
183
|
+
notNull: false;
|
|
184
|
+
hasDefault: false;
|
|
185
|
+
isPrimaryKey: false;
|
|
186
|
+
isAutoincrement: false;
|
|
187
|
+
hasRuntimeDefault: false;
|
|
188
|
+
enumValues: undefined;
|
|
189
|
+
baseColumn: never;
|
|
190
|
+
identity: undefined;
|
|
191
|
+
generated: undefined;
|
|
192
|
+
}, {}, {}>;
|
|
193
|
+
};
|
|
194
|
+
dialect: "pg";
|
|
195
|
+
}>;
|
|
18
196
|
juniorConversationAnnotations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
19
197
|
name: "junior_conversation_annotations";
|
|
20
198
|
schema: undefined;
|
|
@@ -641,7 +819,7 @@ export declare const juniorSqlSchema: {
|
|
|
641
819
|
platform: "slack";
|
|
642
820
|
teamId: string;
|
|
643
821
|
channelId: string;
|
|
644
|
-
visibility: "
|
|
822
|
+
visibility: "private" | "public";
|
|
645
823
|
messageTs?: string | undefined;
|
|
646
824
|
threadTs?: string | undefined;
|
|
647
825
|
} | {
|
|
@@ -650,7 +828,7 @@ export declare const juniorSqlSchema: {
|
|
|
650
828
|
conversationId: string;
|
|
651
829
|
} | {
|
|
652
830
|
platform: "web";
|
|
653
|
-
visibility: "
|
|
831
|
+
visibility: "private" | "public";
|
|
654
832
|
conversationId: string;
|
|
655
833
|
};
|
|
656
834
|
driverParam: unknown;
|
|
@@ -668,7 +846,7 @@ export declare const juniorSqlSchema: {
|
|
|
668
846
|
platform: "slack";
|
|
669
847
|
teamId: string;
|
|
670
848
|
channelId: string;
|
|
671
|
-
visibility: "
|
|
849
|
+
visibility: "private" | "public";
|
|
672
850
|
messageTs?: string | undefined;
|
|
673
851
|
threadTs?: string | undefined;
|
|
674
852
|
} | {
|
|
@@ -677,7 +855,7 @@ export declare const juniorSqlSchema: {
|
|
|
677
855
|
conversationId: string;
|
|
678
856
|
} | {
|
|
679
857
|
platform: "web";
|
|
680
|
-
visibility: "
|
|
858
|
+
visibility: "private" | "public";
|
|
681
859
|
conversationId: string;
|
|
682
860
|
};
|
|
683
861
|
}>;
|
|
@@ -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-G2FN3I66.js";
|
|
9
|
+
import "./chunk-3GS7O66Z.js";
|
|
10
|
+
import "./chunk-UJYA75N5.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-D7BNWRYL.js";
|
|
13
13
|
import "./chunk-V7YE4WCP.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MKA3T2R6.js";
|
|
15
15
|
import "./chunk-6GWA276C.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-F7VOY4VQ.js";
|
|
17
|
+
import "./chunk-46ADYIPE.js";
|
|
18
18
|
import "./chunk-MLKGABMK.js";
|
|
19
19
|
export {
|
|
20
20
|
closeDb,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { AttachmentStorage } from "@/chat/attachments/storage";
|
|
1
2
|
/**
|
|
2
3
|
* Handle the authenticated internal retention cron. One request runs a single
|
|
3
4
|
* bounded purge batch and returns its counts. Failures are contained here so
|
|
4
5
|
* retention can never affect task execution, heartbeat recovery, or delivery.
|
|
5
6
|
*/
|
|
6
|
-
export declare function GET(request: Request
|
|
7
|
+
export declare function GET(request: Request, options?: {
|
|
8
|
+
attachmentStorage?: AttachmentStorage;
|
|
9
|
+
}): Promise<Response>;
|
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-D7BNWRYL.js";
|
|
7
|
+
import "./chunk-MKA3T2R6.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-F7VOY4VQ.js";
|
|
19
|
+
import "./chunk-46ADYIPE.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-F7VOY4VQ.js";
|
|
31
|
+
import "./chunk-46ADYIPE.js";
|
|
32
32
|
import "./chunk-MLKGABMK.js";
|
|
33
33
|
|
|
34
34
|
// src/nitro.ts
|
|
@@ -2,46 +2,46 @@ import {
|
|
|
2
2
|
GET,
|
|
3
3
|
GET2,
|
|
4
4
|
syncLocalOAuthCredential
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TA5R6BME.js";
|
|
6
6
|
import "./chunk-FA6POGLH.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-S4PFOWRA.js";
|
|
8
|
+
import "./chunk-4M25PSFB.js";
|
|
9
|
+
import "./chunk-BLCVTEE7.js";
|
|
10
|
+
import "./chunk-PP4UQTH3.js";
|
|
11
|
+
import "./chunk-5TIH5GOE.js";
|
|
12
12
|
import "./chunk-WR76IVA5.js";
|
|
13
13
|
import "./chunk-JAL3CH4G.js";
|
|
14
14
|
import "./chunk-5I6ORJUY.js";
|
|
15
15
|
import {
|
|
16
16
|
createUserTokenStore
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AFQ47JQ7.js";
|
|
18
18
|
import "./chunk-RF6J3DIO.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-VDAEXEBB.js";
|
|
20
20
|
import "./chunk-5IDFPCON.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-VYDM7HUF.js";
|
|
22
|
+
import "./chunk-GEY6IFXH.js";
|
|
23
23
|
import "./chunk-3Y47VMHV.js";
|
|
24
24
|
import "./chunk-PDO5BLNM.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-MGJW3SW4.js";
|
|
26
|
+
import "./chunk-MDZQ62PB.js";
|
|
27
|
+
import "./chunk-G2FN3I66.js";
|
|
28
|
+
import "./chunk-3GS7O66Z.js";
|
|
29
29
|
import "./chunk-EM225ITJ.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-I3OQVVMV.js";
|
|
31
|
+
import "./chunk-UJYA75N5.js";
|
|
32
32
|
import "./chunk-VFUK3X5B.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-D7BNWRYL.js";
|
|
34
|
+
import "./chunk-RQBRGPUF.js";
|
|
35
|
+
import "./chunk-6MI43QZO.js";
|
|
36
|
+
import "./chunk-77QB5FNI.js";
|
|
37
37
|
import "./chunk-BDUENQD3.js";
|
|
38
38
|
import "./chunk-V7YE4WCP.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-MKA3T2R6.js";
|
|
40
40
|
import "./chunk-6GWA276C.js";
|
|
41
41
|
import "./chunk-OOUNJNMR.js";
|
|
42
42
|
import "./chunk-H4HBKISO.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-F7VOY4VQ.js";
|
|
44
|
+
import "./chunk-46ADYIPE.js";
|
|
45
45
|
import "./chunk-MLKGABMK.js";
|
|
46
46
|
|
|
47
47
|
// src/chat/local/oauth-callback-server.ts
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
finalizeFailedTurnReplyWithEvent,
|
|
5
5
|
processPluginTask,
|
|
6
6
|
scheduleSessionCompletedPluginTasks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PP4UQTH3.js";
|
|
8
8
|
import {
|
|
9
9
|
ConversationTurnLifecycleService,
|
|
10
10
|
coerceThreadConversationState,
|
|
11
11
|
getPersistedSandboxState,
|
|
12
12
|
getPersistedThreadState,
|
|
13
13
|
persistThreadStateById
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5TIH5GOE.js";
|
|
15
15
|
import "./chunk-5I6ORJUY.js";
|
|
16
16
|
import {
|
|
17
17
|
authorizationId
|
|
@@ -32,23 +32,22 @@ import {
|
|
|
32
32
|
saveTurnCheckpoint,
|
|
33
33
|
startActiveTurn,
|
|
34
34
|
stripRuntimeTurnContext,
|
|
35
|
-
trimTrailingAssistantMessages,
|
|
36
35
|
upsertConversationMessage
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GEY6IFXH.js";
|
|
38
37
|
import "./chunk-3Y47VMHV.js";
|
|
39
38
|
import "./chunk-PDO5BLNM.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-MGJW3SW4.js";
|
|
40
|
+
import "./chunk-MDZQ62PB.js";
|
|
42
41
|
import {
|
|
43
42
|
getConversationEventStore,
|
|
44
43
|
getConversationStore
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-G2FN3I66.js";
|
|
45
|
+
import "./chunk-3GS7O66Z.js";
|
|
47
46
|
import "./chunk-EM225ITJ.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-I3OQVVMV.js";
|
|
48
|
+
import "./chunk-UJYA75N5.js";
|
|
50
49
|
import "./chunk-VFUK3X5B.js";
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-D7BNWRYL.js";
|
|
52
51
|
import {
|
|
53
52
|
credentialContextForActor
|
|
54
53
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -57,10 +56,10 @@ import {
|
|
|
57
56
|
logException,
|
|
58
57
|
setTags,
|
|
59
58
|
withLogContext
|
|
60
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-MKA3T2R6.js";
|
|
61
60
|
import "./chunk-6GWA276C.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-F7VOY4VQ.js";
|
|
62
|
+
import "./chunk-46ADYIPE.js";
|
|
64
63
|
import "./chunk-MLKGABMK.js";
|
|
65
64
|
|
|
66
65
|
// src/chat/local/runner.ts
|
|
@@ -111,7 +110,7 @@ async function loadLocalPiMessages(args) {
|
|
|
111
110
|
if (projection.length === 0) {
|
|
112
111
|
return void 0;
|
|
113
112
|
}
|
|
114
|
-
return stripRuntimeTurnContext(
|
|
113
|
+
return stripRuntimeTurnContext(projection);
|
|
115
114
|
}
|
|
116
115
|
async function runLocalAgentTurn(input, deps) {
|
|
117
116
|
return withLogContext(
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
parseSkillInvocation,
|
|
7
7
|
resetSkillDiscoveryCache,
|
|
8
8
|
stripFrontmatter
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-RQBRGPUF.js";
|
|
10
|
+
import "./chunk-6MI43QZO.js";
|
|
11
|
+
import "./chunk-77QB5FNI.js";
|
|
12
12
|
import "./chunk-BDUENQD3.js";
|
|
13
13
|
import "./chunk-V7YE4WCP.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MKA3T2R6.js";
|
|
15
15
|
import "./chunk-6GWA276C.js";
|
|
16
16
|
import "./chunk-OOUNJNMR.js";
|
|
17
17
|
import "./chunk-H4HBKISO.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-F7VOY4VQ.js";
|
|
19
|
+
import "./chunk-46ADYIPE.js";
|
|
20
20
|
import "./chunk-MLKGABMK.js";
|
|
21
21
|
export {
|
|
22
22
|
discoverSkills,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bindSpawnAgent
|
|
3
|
+
} from "./chunk-MXO6VFB3.js";
|
|
4
|
+
import "./chunk-7J65DOBL.js";
|
|
5
|
+
import "./chunk-BLCVTEE7.js";
|
|
6
|
+
import "./chunk-5TIH5GOE.js";
|
|
7
|
+
import "./chunk-JAL3CH4G.js";
|
|
8
|
+
import "./chunk-WNNYOPXX.js";
|
|
9
|
+
import "./chunk-DIB4GX3G.js";
|
|
10
|
+
import "./chunk-RF6J3DIO.js";
|
|
11
|
+
import "./chunk-VDAEXEBB.js";
|
|
12
|
+
import "./chunk-7MA4HV4W.js";
|
|
13
|
+
import "./chunk-GEY6IFXH.js";
|
|
14
|
+
import "./chunk-3Y47VMHV.js";
|
|
15
|
+
import "./chunk-PDO5BLNM.js";
|
|
16
|
+
import "./chunk-MDZQ62PB.js";
|
|
17
|
+
import "./chunk-G2FN3I66.js";
|
|
18
|
+
import "./chunk-3GS7O66Z.js";
|
|
19
|
+
import "./chunk-EM225ITJ.js";
|
|
20
|
+
import "./chunk-I3OQVVMV.js";
|
|
21
|
+
import "./chunk-UJYA75N5.js";
|
|
22
|
+
import "./chunk-VFUK3X5B.js";
|
|
23
|
+
import "./chunk-D7BNWRYL.js";
|
|
24
|
+
import "./chunk-6MI43QZO.js";
|
|
25
|
+
import "./chunk-77QB5FNI.js";
|
|
26
|
+
import "./chunk-BDUENQD3.js";
|
|
27
|
+
import "./chunk-V7YE4WCP.js";
|
|
28
|
+
import "./chunk-MKA3T2R6.js";
|
|
29
|
+
import "./chunk-6GWA276C.js";
|
|
30
|
+
import "./chunk-OOUNJNMR.js";
|
|
31
|
+
import "./chunk-H4HBKISO.js";
|
|
32
|
+
import "./chunk-F7VOY4VQ.js";
|
|
33
|
+
import "./chunk-46ADYIPE.js";
|
|
34
|
+
import "./chunk-MLKGABMK.js";
|
|
35
|
+
export {
|
|
36
|
+
bindSpawnAgent
|
|
37
|
+
};
|