@sentry/junior 0.299.0 → 0.300.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/{adapter-AgCNqqsG.js → adapter-S5UkjNK3.js} +5 -4
- package/dist/{admin-1VwEXztm.js → admin-UrTniSPO.js} +2 -2
- package/dist/{agent-runner-Ciet8_nn.js → agent-runner-bY4_0UPm.js} +508 -203
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +293 -61
- package/dist/{app--ky-Eu33.d.ts → app-D-AcIcCV.d.ts} +13 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +57 -219
- package/dist/{automation-M3RFJUBf.js → automation-Dw82oQ-h.js} +2 -2
- package/dist/{background-compaction-queue-CnimvRdk.js → background-compaction-queue-B6U3060-.js} +8 -4
- package/dist/{briefs-CwzvgdCa.js → briefs-DqiwWu-n.js} +3 -3
- package/dist/{catalog-runtime-DaBaHY7u.js → catalog-runtime-D1oYNv04.js} +1 -1
- package/dist/cli/chat.js +16 -16
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +5 -5
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +4 -4
- package/dist/{config-CAXIpWQb.js → config-9nHoFiJP.js} +39 -8
- package/dist/{connections-Dy0hPdUq.js → connections-DZjTN3JC.js} +6 -6
- package/dist/{continue-in-slack-DIOjFj76.js → continue-in-slack-Dtv7_U42.js} +6 -6
- package/dist/{conversation-fCWD9Az3.js → conversation-Dyjq2CZ8.js} +19 -8
- package/dist/{conversation-feed-BPK8vkkZ.js → conversation-feed-CcDxlrlQ.js} +23 -2
- package/dist/{conversation-privacy-DUgtRkf8.js → conversation-privacy-D-5HTXjS.js} +1 -1
- package/dist/{conversation-turn-DkJB6yMF.js → conversation-turn-Cxl8WZD7.js} +17 -17
- package/dist/{credential-sync-RX24Y8aY.js → credential-sync-C49ClwDX.js} +15 -15
- package/dist/{db-B07FtU9g.d.ts → db-2resqBh1.d.ts} +1 -1
- package/dist/{db-COYOGzYS.js → db-BJNo6fK5.js} +13 -8
- package/dist/{executor-BWmAgSyi.js → executor-DBIaOeJ_.js} +9 -4
- package/dist/instrumentation.js +14 -5
- package/dist/{lineage-D-5jm_oj.js → lineage-0dereG7H.js} +2 -2
- package/dist/{logging-DPLEa8Bn.js → logging-BIclibct.js} +1 -1
- package/dist/{message-BIHR1yRk.js → message-dkOl-Iii.js} +8 -8
- package/dist/{model-input-BPZYH8Nd.js → model-input-CLo9TaUd.js} +4 -4
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-R7qvSzFG.js → oauth-callback-server-WmpjfJgQ.js} +2 -2
- package/dist/{plugins-CBW2Prb_.js → plugins-BBX07Jzt.js} +1 -1
- package/dist/{projection-DEdP1q6f.js → projection-w_X-zi7v.js} +3742 -3624
- package/dist/{prompt-4M98h_tC.js → prompt-B1Xw46-S.js} +4 -4
- package/dist/{registry-BTKmKM-r.js → registry-BmP5vnlj.js} +2 -2
- package/dist/{resolve-B8hXNVZ3.js → resolve-goo34bJK.js} +3 -3
- package/dist/{result-g-XAaOj6.js → result-PVBeU0Wf.js} +9 -9
- package/dist/{runner-BlPSA5A8.js → runner-DKrfvNV6.js} +9 -9
- package/dist/{sandbox-egress-signals-Pai-MzEY.js → sandbox-egress-signals-DsUcqrI0.js} +1 -1
- package/dist/{schema-BNnY_trV.js → schema-C9iNFz5n.js} +20 -16
- package/dist/{schema-DbuWR-DN.d.ts → schema-Dns-sTas.d.ts} +219 -6
- package/dist/{service-account-BYGZ08DQ.js → service-account-CMAAloAL.js} +3 -3
- package/dist/{service-account-9OLNQMyz.js → service-account-CmowamcB.js} +4 -4
- package/dist/{session-stop-2XJrcNCy.js → session-stop-BcAXze8a.js} +15 -41
- package/dist/{skills-DpBQoeHV.js → skills-DfsazET6.js} +2 -2
- package/dist/{slack-conversation-unfurl-BcDIWo67.js → slack-conversation-unfurl-CzQonuWz.js} +7 -7
- package/dist/{spawn-09GssFod.js → spawn-C7o0FDDp.js} +6 -6
- package/dist/{state-Cufq0_rH.js → state-zSilNpbi.js} +2 -2
- package/dist/{statuses-B8mUfghF.js → statuses-Hn-HsOph.js} +86 -2
- package/dist/{stop-U7iUrR1g.js → stop-CFOujp8C.js} +2938 -76
- package/dist/{store-CSgUTMdv.js → store-Dkeis_8o.js} +9 -9
- package/dist/{store-BHiaHCQu.js → store-E3x2Fg_F.js} +5 -5
- package/dist/{task-queue-bMNq0clp.js → task-queue-D-hCqdZW.js} +3 -3
- package/dist/{task-runner-B__rxwxU.js → task-runner-vohUPLHe.js} +8 -8
- package/dist/{thread-context-d0ceWbVT.js → thread-context-BzvdkgI9.js} +8 -8
- package/dist/{turn-session-routing-BVZHBFCF.js → turn-session-routing-Bo_LxFum.js} +5 -5
- package/dist/{turn-user-message-BEw7acTP.js → turn-user-message-D5RnVmxQ.js} +3 -3
- package/dist/{users-BK3dbxZL.js → users-2bggndVg.js} +3 -3
- package/dist/{validation-BDVJjO2E.js → validation-BbWikeSa.js} +1 -1
- package/dist/{version-DQgZoQ3D.js → version-GVBMW2jA.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CAWfFo29.js → viewer-BpxRliyO.js} +16 -114
- package/dist/{warmup-9ySPacF9.js → warmup-BW2qwnal.js} +18 -16
- package/dist/{worker-D8jJO-WO.js → worker-Cbd-iuwZ.js} +24 -20
- package/migrations/0107_attachment_deferred_download.sql +2 -0
- package/migrations/meta/0107_snapshot.json +4617 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +10 -8
- package/dist/media-BAHvgkok.js +0 -85
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
1
|
+
import { i as getChatConfig } from "./config-9nHoFiJP.js";
|
|
2
2
|
import { createMemoryState } from "@chat-adapter/state-memory";
|
|
3
3
|
import { createRedisState } from "@chat-adapter/state-redis";
|
|
4
4
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -256,7 +256,8 @@ async function getDefaultRedisStateAdapterFor(adapter) {
|
|
|
256
256
|
const context = await getConnectedStateContext();
|
|
257
257
|
return context.stateAdapter === adapter ? context.redisStateAdapter : void 0;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
/** The Redis key that the default Redis adapter uses for one state value key. */
|
|
260
|
+
function redisStateKey(key) {
|
|
260
261
|
const prefix = getChatConfig().state.keyPrefix;
|
|
261
262
|
return `${REDIS_STATE_KEY_PREFIX}:cache:${prefix ? `${prefix}:` : ""}${key}`;
|
|
262
263
|
}
|
|
@@ -265,7 +266,7 @@ async function getStateValues(state, keys) {
|
|
|
265
266
|
if (keys.length === 0) return [];
|
|
266
267
|
const redis = await getDefaultRedisStateAdapterFor(state);
|
|
267
268
|
if (!redis) return await Promise.all(keys.map((key) => state.get(key)));
|
|
268
|
-
return (await redis.getClient().mGet(keys.map(
|
|
269
|
+
return (await redis.getClient().mGet(keys.map(redisStateKey))).map((value) => {
|
|
269
270
|
if (value === null) return null;
|
|
270
271
|
try {
|
|
271
272
|
return JSON.parse(value);
|
|
@@ -283,7 +284,7 @@ async function setStateValues(state, entries, ttlMs) {
|
|
|
283
284
|
return;
|
|
284
285
|
}
|
|
285
286
|
const pipeline = redis.getClient().multi();
|
|
286
|
-
for (const { key, value } of entries) pipeline.set(
|
|
287
|
+
for (const { key, value } of entries) pipeline.set(redisStateKey(key), JSON.stringify(value), { PX: ttlMs });
|
|
287
288
|
await pipeline.execAsPipeline();
|
|
288
289
|
}
|
|
289
290
|
function getStateAdapter() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as getDb } from "./db-
|
|
2
|
-
import { r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-
|
|
1
|
+
import { o as getDb } from "./db-BJNo6fK5.js";
|
|
2
|
+
import { r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-BpxRliyO.js";
|
|
3
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
4
4
|
// src/cli/admin.ts
|
|
5
5
|
/**
|