@sentry/junior 0.177.0 → 0.179.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-IYHCN7CO.js → agent-hooks-32IDCLMW.js} +12 -12
- package/dist/api/conversations/archive.d.ts +5 -2
- package/dist/api/conversations/list.d.ts +0 -1
- package/dist/api/conversations/membership.d.ts +14 -0
- package/dist/api/conversations/projection.d.ts +2 -1
- package/dist/api/locations/detail.d.ts +1 -1
- package/dist/api/people/shared.d.ts +2 -2
- package/dist/api/schema/conversation.d.ts +4 -4
- package/dist/api/schema/location.d.ts +1 -1
- package/dist/api/schema/person.d.ts +1 -1
- package/dist/api/schema.js +1 -1
- package/dist/api.js +399 -287
- package/dist/app.js +573 -198
- package/dist/{catalog-runtime-2TD4CXSB.js → catalog-runtime-FBVA6WAQ.js} +5 -5
- package/dist/chat/agent/sandbox.d.ts +2 -0
- package/dist/chat/conversations/sql/participants.d.ts +1 -0
- package/dist/chat/conversations/store.d.ts +0 -1
- package/dist/chat/sandbox/errors.d.ts +4 -0
- package/dist/chat/sandbox/noninteractive-command.d.ts +1 -0
- package/dist/chat/sandbox/prepare-workspace.d.ts +27 -3
- package/dist/chat/sandbox/sandbox.d.ts +2 -0
- package/dist/chat/sandbox/session.d.ts +2 -0
- package/dist/chat/sandbox/snapshot/builder-sandbox.d.ts +5 -0
- package/dist/chat/sandbox/snapshot/install.d.ts +2 -2
- package/dist/chat/sandbox/snapshot/span.d.ts +3 -0
- package/dist/chat/sandbox/snapshot/store.d.ts +20 -17
- package/dist/chat/sandbox/snapshot/waiting-error.d.ts +15 -0
- package/dist/chat/sandbox/snapshot/workspace.d.ts +17 -0
- package/dist/chat/scheduled-tasks/personal.d.ts +5 -8
- package/dist/chat/scheduled-tasks/runs.d.ts +49 -0
- package/dist/chat/scheduled-tasks/schedule-intent.d.ts +1 -1
- package/dist/chat/scheduled-tasks/tasks.d.ts +27 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +0 -4
- package/dist/chat/scheduled-tasks/tools/create.d.ts +1 -1
- package/dist/chat/scheduled-tasks/tools/update.d.ts +1 -1
- package/dist/chat/scheduled-tasks/types.d.ts +127 -78
- package/dist/chat/services/workspace-snapshot-wait.d.ts +27 -0
- package/dist/chat/workspaces/types.d.ts +1 -0
- package/dist/{chunk-CAWBLVBY.js → chunk-2HIPYNQI.js} +6 -6
- package/dist/{chunk-ZCYABD7N.js → chunk-3AFVR5UC.js} +5 -5
- package/dist/{chunk-PA7QDS7P.js → chunk-3I7XE3PA.js} +204 -100
- package/dist/{chunk-VGDOEKO2.js → chunk-3TM3FYLQ.js} +1 -1
- package/dist/{chunk-6NZRKJWU.js → chunk-4GWXAILB.js} +1 -1
- package/dist/{chunk-LFZODSAY.js → chunk-5IRROPA5.js} +4 -4
- package/dist/{chunk-N4YEVOEC.js → chunk-B6ECUSVX.js} +45 -276
- package/dist/{chunk-4TWDRU64.js → chunk-CJLBLELR.js} +5 -5
- package/dist/{chunk-3FWXQZJJ.js → chunk-FAS6AIMF.js} +1 -1
- package/dist/{chunk-I7PKGMKI.js → chunk-FIDMHAO6.js} +6 -6
- package/dist/{chunk-4SVAFAI2.js → chunk-FTGD2FBP.js} +1 -1
- package/dist/{chunk-LVL5NG5G.js → chunk-G2CAC4CV.js} +19 -19
- package/dist/{chunk-DLTP6TUJ.js → chunk-GENV6KF2.js} +2 -2
- package/dist/{chunk-FVVYHML7.js → chunk-GPLAT6H7.js} +6 -6
- package/dist/{chunk-7CVYXUOJ.js → chunk-HQNE5APD.js} +1 -1
- package/dist/{chunk-Q362TECJ.js → chunk-JMJNFEDC.js} +331 -2
- package/dist/{chunk-AFOFVEXP.js → chunk-JT4WMD3C.js} +124 -13
- package/dist/{chunk-7ZFESKJ2.js → chunk-KJLHIHFF.js} +9 -9
- package/dist/{chunk-QLLOX7JY.js → chunk-Q5B3WTGG.js} +8 -8
- package/dist/{chunk-DGGIKWYQ.js → chunk-R5NWWYIS.js} +1 -1
- package/dist/{chunk-WCQUKX74.js → chunk-R6U7N4FS.js} +14 -5
- package/dist/{chunk-WYO2HXY5.js → chunk-RTRBYSF3.js} +1 -1
- package/dist/{chunk-2IMQLZHS.js → chunk-RZRYOLCE.js} +1144 -136
- package/dist/{chunk-7B6NW4P7.js → chunk-SLGGOASN.js} +1 -1
- package/dist/{chunk-SNPQGTHJ.js → chunk-TIEKUH4Q.js} +1 -1
- package/dist/{chunk-ELEAIRTG.js → chunk-TKB25A3L.js} +2 -2
- package/dist/{chunk-UB5YB2ED.js → chunk-U4TKB6F6.js} +6 -6
- package/dist/{chunk-ORMJY4RG.js → chunk-UT6X7XN7.js} +1 -1
- package/dist/{chunk-LPMLAJYR.js → chunk-VP4OVRDD.js} +11 -17
- package/dist/{chunk-7PZDAXIK.js → chunk-XSPSCWLH.js} +1 -1
- package/dist/chunk-XZY6G5YZ.js +1088 -0
- package/dist/{chunk-J2EWL6GJ.js → chunk-YFNAMRGE.js} +1 -1
- package/dist/{chunk-6KGMMVHF.js → chunk-ZQMG3CL5.js} +2 -2
- package/dist/cli/chat.js +31 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +10 -10
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/conversation-participants.d.ts +17 -0
- package/dist/db/schema/conversations.d.ts +629 -1
- package/dist/db/schema/scheduled-tasks.d.ts +29 -5
- package/dist/db/schema/snapshots.d.ts +1 -1
- package/dist/db/schema.d.ts +46 -5
- package/dist/{db-A3CB76US.js → db-EJAV7JL6.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-64QMI3IB.js → oauth-callback-server-GAVSUBTQ.js} +23 -23
- package/dist/{runner-EIAE2BGD.js → runner-34JL64JF.js} +15 -15
- package/dist/{skills-ZADWFKDG.js → skills-U545HALM.js} +6 -6
- package/dist/spawn-I2S4IDUQ.js +37 -0
- package/dist/{validation-4I6AF4CV.js → validation-EVXVGA44.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-BS6BZ66U.js → work-QOAUPDBU.js} +18 -18
- package/dist/worker-5GX2IKLZ.js +24 -0
- package/migrations/0033_workspace_snapshot_active_build.sql +1 -0
- package/migrations/0034_strong_randall.sql +31 -0
- package/migrations/meta/0033_snapshot.json +2914 -0
- package/migrations/meta/0034_snapshot.json +3038 -0
- package/migrations/meta/_journal.json +15 -1
- package/package.json +4 -4
- package/dist/chat/scheduled-tasks/store.d.ts +0 -78
- package/dist/chunk-4TRHPYTL.js +0 -1944
- package/dist/spawn-DVUOUFFC.js +0 -37
- package/dist/worker-RS5PWTCE.js +0 -24
|
@@ -73,7 +73,7 @@ var conversationFeedQuerySchema = z2.object({
|
|
|
73
73
|
status: z2.enum(["active", "archived"]).default("active")
|
|
74
74
|
}).strict();
|
|
75
75
|
var archiveConversationBodySchema = z2.object({ archived: z2.boolean(), lastSeenAt: z2.string().datetime() }).strict();
|
|
76
|
-
var archiveConversationResponseSchema = z2.object({
|
|
76
|
+
var archiveConversationResponseSchema = z2.object({ archivedAt: z2.string().datetime().nullable() }).strict();
|
|
77
77
|
var createConversationBodySchema = z2.object({
|
|
78
78
|
idempotencyKey: z2.string().trim().min(1).max(200),
|
|
79
79
|
message: z2.string().trim().min(1).max(32e3),
|
|
@@ -189,7 +189,7 @@ var conversationSummaryReportSchema = z2.object({
|
|
|
189
189
|
lastProgressAt: z2.string(),
|
|
190
190
|
surface: conversationSurfaceSchema,
|
|
191
191
|
actorIdentity: actorIdentitySchema.optional(),
|
|
192
|
-
archivedAt: z2.string().optional(),
|
|
192
|
+
archivedAt: z2.string().datetime().nullable().optional(),
|
|
193
193
|
channel: z2.string().optional(),
|
|
194
194
|
channelName: z2.string().optional(),
|
|
195
195
|
channelNameRedacted: z2.boolean().optional(),
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getTurnRequestDeadline
|
|
3
|
-
} from "./chunk-6NZRKJWU.js";
|
|
4
1
|
import {
|
|
5
2
|
CONVERSATION_WORK_CHECK_IN_INTERVAL_MS,
|
|
6
3
|
CONVERSATION_WORK_MAX_RETRIES,
|
|
@@ -21,20 +18,23 @@ import {
|
|
|
21
18
|
releaseConversationWork,
|
|
22
19
|
requestAnotherSlice,
|
|
23
20
|
startConversationWork
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5IRROPA5.js";
|
|
25
22
|
import {
|
|
26
23
|
ConversationQueueMessageRejectedError
|
|
27
24
|
} from "./chunk-JAL3CH4G.js";
|
|
25
|
+
import {
|
|
26
|
+
getTurnRequestDeadline
|
|
27
|
+
} from "./chunk-4GWXAILB.js";
|
|
28
28
|
import {
|
|
29
29
|
getChatConfig,
|
|
30
30
|
isProviderRetryError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GENV6KF2.js";
|
|
32
32
|
import {
|
|
33
33
|
logException,
|
|
34
34
|
logInfo,
|
|
35
35
|
logWarn,
|
|
36
36
|
withLogContext
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-HQNE5APD.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/task-execution/worker.ts
|
|
40
40
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
conversationReadColumns,
|
|
2
3
|
createJuniorSqlExecutor,
|
|
3
4
|
juniorConversationAnnotations,
|
|
4
5
|
juniorConversationBindings,
|
|
@@ -7,12 +8,12 @@ import {
|
|
|
7
8
|
juniorConversations,
|
|
8
9
|
juniorIdentities,
|
|
9
10
|
juniorUsers
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R6U7N4FS.js";
|
|
11
12
|
import {
|
|
12
13
|
TURN_REASONING_LEVELS,
|
|
13
14
|
getChatConfig,
|
|
14
15
|
modelProfileSchema
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GENV6KF2.js";
|
|
16
17
|
import {
|
|
17
18
|
juniorDestinations
|
|
18
19
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -23,7 +24,7 @@ import {
|
|
|
23
24
|
} from "./chunk-M63DETLL.js";
|
|
24
25
|
import {
|
|
25
26
|
normalizeIdentityEmail
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HQNE5APD.js";
|
|
27
28
|
|
|
28
29
|
// src/chat/conversations/sql/store.ts
|
|
29
30
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -240,7 +241,8 @@ async function recordConversationParticipant(executor, args) {
|
|
|
240
241
|
juniorConversationParticipants.rootConversationId
|
|
241
242
|
],
|
|
242
243
|
set: {
|
|
243
|
-
lastMessageAt: sql2`greatest(${juniorConversationParticipants.lastMessageAt}, excluded.last_message_at)
|
|
244
|
+
lastMessageAt: sql2`greatest(${juniorConversationParticipants.lastMessageAt}, excluded.last_message_at)`,
|
|
245
|
+
...args.restoreArchive ? { archivedAt: null } : {}
|
|
244
246
|
}
|
|
245
247
|
});
|
|
246
248
|
}
|
|
@@ -596,7 +598,6 @@ function conversationFromRow(readRow) {
|
|
|
596
598
|
...destination ? { destination } : {},
|
|
597
599
|
...location ? { location } : {},
|
|
598
600
|
...actor ? { actor } : {},
|
|
599
|
-
...msFromDate(row.archivedAt) !== void 0 ? { archivedAtMs: msFromDate(row.archivedAt) } : {},
|
|
600
601
|
...row.channelName ? { channelName: row.channelName } : {},
|
|
601
602
|
...source ? { source } : {},
|
|
602
603
|
...sessionSource ? { sessionSource } : {},
|
|
@@ -813,7 +814,7 @@ var SqlStore = class {
|
|
|
813
814
|
}
|
|
814
815
|
async listByActivity(args = {}) {
|
|
815
816
|
const rows = await this.executor.db().select({
|
|
816
|
-
conversation:
|
|
817
|
+
conversation: conversationReadColumns(),
|
|
817
818
|
destination: juniorDestinations,
|
|
818
819
|
actorIdentity: juniorIdentities,
|
|
819
820
|
actorUserDisplayName: juniorUsers.displayName
|
|
@@ -896,7 +897,7 @@ var SqlStore = class {
|
|
|
896
897
|
}
|
|
897
898
|
async readConversationRow(conversationId) {
|
|
898
899
|
const rows = await this.executor.db().select({
|
|
899
|
-
conversation:
|
|
900
|
+
conversation: conversationReadColumns(),
|
|
900
901
|
destination: juniorDestinations,
|
|
901
902
|
actorIdentity: juniorIdentities,
|
|
902
903
|
actorUserDisplayName: juniorUsers.displayName
|
|
@@ -1053,7 +1054,6 @@ import {
|
|
|
1053
1054
|
gt,
|
|
1054
1055
|
gte,
|
|
1055
1056
|
inArray as inArray2,
|
|
1056
|
-
isNotNull,
|
|
1057
1057
|
lt,
|
|
1058
1058
|
lte,
|
|
1059
1059
|
sql as sql6
|
|
@@ -1757,14 +1757,6 @@ var SqlConversationEventStore = class {
|
|
|
1757
1757
|
newestCreatedAtMs,
|
|
1758
1758
|
options
|
|
1759
1759
|
);
|
|
1760
|
-
if (options.activity !== "preserve" && pending.some((event) => eventUnarchivesConversation(event.data))) {
|
|
1761
|
-
await this.executor.db().update(juniorConversations).set({ archivedAt: null }).where(
|
|
1762
|
-
and6(
|
|
1763
|
-
eq6(juniorConversations.conversationId, conversationId),
|
|
1764
|
-
isNotNull(juniorConversations.archivedAt)
|
|
1765
|
-
)
|
|
1766
|
-
);
|
|
1767
|
-
}
|
|
1768
1760
|
const cursor = await this.readCursor(conversationId);
|
|
1769
1761
|
const historyVersion = cursor.maxHistoryVersion ?? 0;
|
|
1770
1762
|
let seq = cursor.nextSeq;
|
|
@@ -1791,7 +1783,8 @@ var SqlConversationEventStore = class {
|
|
|
1791
1783
|
await recordConversationParticipant(this.executor, {
|
|
1792
1784
|
actorIdentityId,
|
|
1793
1785
|
conversationId,
|
|
1794
|
-
atMs: event.createdAtMs
|
|
1786
|
+
atMs: event.createdAtMs,
|
|
1787
|
+
restoreArchive: eventUnarchivesConversation(event.data)
|
|
1795
1788
|
});
|
|
1796
1789
|
}
|
|
1797
1790
|
}
|
|
@@ -2156,6 +2149,7 @@ export {
|
|
|
2156
2149
|
upsertIdentity,
|
|
2157
2150
|
upsertLinkedIdentity,
|
|
2158
2151
|
deleteProviderIdentityForSlackUser,
|
|
2152
|
+
resolveRootConversationId,
|
|
2159
2153
|
parseSessionSource,
|
|
2160
2154
|
bindProviderConversation,
|
|
2161
2155
|
locationFromRow,
|