@sentry/junior 0.76.1 → 0.77.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-ZOE7RIED.js → agent-hooks-7P2WSR4R.js} +3 -3
- package/dist/app.js +34 -17
- package/dist/chat/state/adapter.d.ts +0 -1
- package/dist/chat/state/locks.d.ts +7 -0
- package/dist/{chunk-ZQB37HUX.js → chunk-C2YBH4S6.js} +1 -1
- package/dist/{chunk-XBBC6W45.js → chunk-KIDP757T.js} +1 -1
- package/dist/{chunk-R6Z5XWY3.js → chunk-KPL4WJWA.js} +1 -1
- package/dist/{chunk-Y5OFBCBZ.js → chunk-LXTPBU4K.js} +14 -10
- package/dist/{chunk-JBASI5VV.js → chunk-PNGAJ75P.js} +2 -2
- package/dist/{chunk-56TBVRJG.js → chunk-RARSKPVT.js} +1 -1
- package/dist/{chunk-KOIMO7S3.js → chunk-TO3UAY2M.js} +1 -1
- package/dist/{chunk-FFGXUXMD.js → chunk-W36B5PT4.js} +9 -9
- package/dist/{chunk-NFTMTIP3.js → chunk-WBSGTHNO.js} +1 -1
- package/dist/{chunk-4SCWV7TJ.js → chunk-Y3EG7S7P.js} +1 -1
- package/dist/{chunk-ZLMBNBUG.js → chunk-YLVJRYTD.js} +9 -1
- package/dist/cli/chat.js +5 -5
- package/dist/cli/check.js +2 -2
- package/dist/cli/plugins.js +5 -5
- package/dist/cli/snapshot-warmup.js +3 -3
- package/dist/cli/upgrade.js +4 -4
- package/dist/{registry-OIPAJU2O.js → registry-RRIDPJBT.js} +1 -1
- package/dist/reporting.js +7 -7
- package/dist/{runner-7Z4D6AKV.js → runner-JWLZI3EX.js} +8 -8
- package/dist/{validation-SLA6IGF7.js → validation-MDMYBRFB.js} +2 -2
- package/package.json +5 -5
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
getPlugins,
|
|
11
11
|
setPlugins,
|
|
12
12
|
validatePlugins
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-WBSGTHNO.js";
|
|
14
|
+
import "./chunk-RARSKPVT.js";
|
|
15
15
|
import "./chunk-NYKJ3KON.js";
|
|
16
16
|
import "./chunk-G3E7SCME.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-LXTPBU4K.js";
|
|
18
18
|
import "./chunk-Q6XFTRV5.js";
|
|
19
19
|
import "./chunk-T77LUIX3.js";
|
|
20
20
|
import "./chunk-VALUBQ7R.js";
|
package/dist/app.js
CHANGED
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
updateConversationStats,
|
|
72
72
|
uploadFilesToThread,
|
|
73
73
|
upsertConversationMessage
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-W36B5PT4.js";
|
|
75
75
|
import {
|
|
76
76
|
CONVERSATION_WORK_CHECK_IN_INTERVAL_MS,
|
|
77
77
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
@@ -90,12 +90,12 @@ import {
|
|
|
90
90
|
requestConversationContinuation,
|
|
91
91
|
requestConversationWork,
|
|
92
92
|
startConversationWork
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-KPL4WJWA.js";
|
|
94
94
|
import {
|
|
95
95
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
96
96
|
coerceThreadConversationState
|
|
97
97
|
} from "./chunk-Z4CIQ3EB.js";
|
|
98
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-PNGAJ75P.js";
|
|
99
99
|
import {
|
|
100
100
|
getVercelConversationWorkQueue,
|
|
101
101
|
resolveConversationWorkQueueTopic,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
resolveSlackChannelTypeFromMessage,
|
|
114
114
|
resolveSlackConversationContext,
|
|
115
115
|
setConversationTitle
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-C2YBH4S6.js";
|
|
117
117
|
import {
|
|
118
118
|
abandonAgentTurnSessionRecord,
|
|
119
119
|
buildSlackOutputMessage,
|
|
@@ -129,11 +129,11 @@ import {
|
|
|
129
129
|
recordAuthorizationCompleted,
|
|
130
130
|
splitSlackReplyText,
|
|
131
131
|
truncateStatusText
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-TO3UAY2M.js";
|
|
133
133
|
import {
|
|
134
134
|
validatePluginEgressCredentialHooks,
|
|
135
135
|
validatePluginRegistrations
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-KIDP757T.js";
|
|
137
137
|
import {
|
|
138
138
|
defineJuniorPlugins,
|
|
139
139
|
pluginCatalogConfigFromEnv,
|
|
@@ -148,20 +148,20 @@ import {
|
|
|
148
148
|
setPlugins,
|
|
149
149
|
validatePlugins,
|
|
150
150
|
verifySlackDirectCredentialSubject
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-WBSGTHNO.js";
|
|
152
152
|
import {
|
|
153
153
|
createPluginLogger,
|
|
154
154
|
createPluginState
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-RARSKPVT.js";
|
|
156
156
|
import {
|
|
157
157
|
getConversationStore,
|
|
158
158
|
getDb
|
|
159
159
|
} from "./chunk-NYKJ3KON.js";
|
|
160
160
|
import "./chunk-G3E7SCME.js";
|
|
161
161
|
import {
|
|
162
|
-
|
|
162
|
+
acquireActiveLock,
|
|
163
163
|
getStateAdapter
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-LXTPBU4K.js";
|
|
165
165
|
import {
|
|
166
166
|
createSlackDestination,
|
|
167
167
|
destinationKey,
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
} from "./chunk-T77LUIX3.js";
|
|
199
199
|
import {
|
|
200
200
|
discoverSkills
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-Y3EG7S7P.js";
|
|
202
202
|
import {
|
|
203
203
|
CredentialUnavailableError,
|
|
204
204
|
buildOAuthTokenRequest,
|
|
@@ -209,7 +209,7 @@ import {
|
|
|
209
209
|
isPluginProvider,
|
|
210
210
|
parseOAuthTokenResponse,
|
|
211
211
|
setPluginCatalogConfig
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-YLVJRYTD.js";
|
|
213
213
|
import {
|
|
214
214
|
createRequester,
|
|
215
215
|
createSlackRequester,
|
|
@@ -2790,7 +2790,7 @@ async function resumeSlackTurn(args) {
|
|
|
2790
2790
|
const stateAdapter = getStateAdapter();
|
|
2791
2791
|
await stateAdapter.connect();
|
|
2792
2792
|
const lockKey = args.lockKey ?? getDefaultLockKey(args.channelId, args.threadTs);
|
|
2793
|
-
const lock = await stateAdapter
|
|
2793
|
+
const lock = await acquireActiveLock(stateAdapter, lockKey);
|
|
2794
2794
|
if (!lock) {
|
|
2795
2795
|
throw new ResumeTurnBusyError(lockKey);
|
|
2796
2796
|
}
|
|
@@ -6241,6 +6241,14 @@ var IGNORED_MESSAGE_SUBTYPES = /* @__PURE__ */ new Set([
|
|
|
6241
6241
|
"ekm_access_denied",
|
|
6242
6242
|
"tombstone"
|
|
6243
6243
|
]);
|
|
6244
|
+
var SlackEventPersistenceError = class extends Error {
|
|
6245
|
+
cause;
|
|
6246
|
+
constructor(cause) {
|
|
6247
|
+
super("Slack event durable persistence failed");
|
|
6248
|
+
this.name = "SlackEventPersistenceError";
|
|
6249
|
+
this.cause = cause;
|
|
6250
|
+
}
|
|
6251
|
+
};
|
|
6244
6252
|
function enqueue(waitUntil, task) {
|
|
6245
6253
|
waitUntil(task);
|
|
6246
6254
|
}
|
|
@@ -6292,7 +6300,7 @@ async function buildThread(args) {
|
|
|
6292
6300
|
});
|
|
6293
6301
|
}
|
|
6294
6302
|
function shouldIgnoreMessage(message) {
|
|
6295
|
-
return message.author.isMe === true || isExternalSlackUser(message.raw);
|
|
6303
|
+
return message.author.isMe === true || !parseActorUserId(message.author.userId) || isExternalSlackUser(message.raw);
|
|
6296
6304
|
}
|
|
6297
6305
|
function shouldPersistBeforeAck(body) {
|
|
6298
6306
|
return body.event?.type === "app_mention" || body.event?.type === "message";
|
|
@@ -6312,6 +6320,8 @@ async function persistSlackMessage(args) {
|
|
|
6312
6320
|
conversationStore: args.conversationStore,
|
|
6313
6321
|
queue: args.queue,
|
|
6314
6322
|
state: args.state
|
|
6323
|
+
}).catch((error) => {
|
|
6324
|
+
throw new SlackEventPersistenceError(error);
|
|
6315
6325
|
});
|
|
6316
6326
|
}
|
|
6317
6327
|
async function routeParsedMessage(args) {
|
|
@@ -6660,9 +6670,16 @@ async function handleSlackWebhook(args) {
|
|
|
6660
6670
|
services: args.services
|
|
6661
6671
|
});
|
|
6662
6672
|
if (shouldPersistBeforeAck(parsed)) {
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
})
|
|
6673
|
+
try {
|
|
6674
|
+
await eventTask;
|
|
6675
|
+
} catch (error) {
|
|
6676
|
+
if (!(error instanceof SlackEventPersistenceError)) {
|
|
6677
|
+
logException(error, "slack_event_enqueue_failed");
|
|
6678
|
+
return new Response("ok", { status: 200 });
|
|
6679
|
+
}
|
|
6680
|
+
logException(error.cause, "slack_event_persist_failed");
|
|
6681
|
+
return new Response("Slack event persistence failed", { status: 503 });
|
|
6682
|
+
}
|
|
6666
6683
|
} else {
|
|
6667
6684
|
enqueue(
|
|
6668
6685
|
args.waitUntil,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RedisStateAdapter } from "@chat-adapter/state-redis";
|
|
2
2
|
import type { StateAdapter } from "chat";
|
|
3
|
-
export declare const ACTIVE_LOCK_TTL_MS = 90000;
|
|
4
3
|
export declare function getConnectedStateContext(): Promise<{
|
|
5
4
|
redisStateAdapter?: RedisStateAdapter;
|
|
6
5
|
stateAdapter: StateAdapter;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Lock, StateAdapter } from "chat";
|
|
2
|
+
export declare const ACTIVE_LOCK_TTL_MS = 90000;
|
|
3
|
+
/**
|
|
4
|
+
* Acquire a lock for long-running work that the queued state adapter should
|
|
5
|
+
* keep alive while the owning invocation is still making progress.
|
|
6
|
+
*/
|
|
7
|
+
export declare function acquireActiveLock(state: StateAdapter, threadId: string): Promise<Lock | null>;
|
|
@@ -5,7 +5,14 @@ import {
|
|
|
5
5
|
// src/chat/state/adapter.ts
|
|
6
6
|
import { createMemoryState } from "@chat-adapter/state-memory";
|
|
7
7
|
import { createRedisState } from "@chat-adapter/state-redis";
|
|
8
|
+
|
|
9
|
+
// src/chat/state/locks.ts
|
|
8
10
|
var ACTIVE_LOCK_TTL_MS = 9e4;
|
|
11
|
+
async function acquireActiveLock(state, threadId) {
|
|
12
|
+
return await state.acquireLock(threadId, ACTIVE_LOCK_TTL_MS);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// src/chat/state/adapter.ts
|
|
9
16
|
var ACTIVE_LOCK_HEARTBEAT_MS = 3e4;
|
|
10
17
|
var stateAdapter;
|
|
11
18
|
var redisStateAdapter;
|
|
@@ -53,8 +60,7 @@ function createPrefixedStateAdapter(base, prefix) {
|
|
|
53
60
|
}
|
|
54
61
|
function createQueuedStateAdapter(base, options) {
|
|
55
62
|
const heartbeats = /* @__PURE__ */ new Map();
|
|
56
|
-
const
|
|
57
|
-
const shouldHeartbeatLock = (ttlMs) => ttlMs <= ACTIVE_LOCK_TTL_MS;
|
|
63
|
+
const shouldHeartbeatLock = (ttlMs) => ttlMs === ACTIVE_LOCK_TTL_MS;
|
|
58
64
|
const heartbeatKey = (lock) => `${lock.threadId}:${lock.token}`;
|
|
59
65
|
const stopHeartbeatByKey = (key) => {
|
|
60
66
|
const heartbeat = heartbeats.get(key);
|
|
@@ -124,10 +130,9 @@ function createQueuedStateAdapter(base, options) {
|
|
|
124
130
|
});
|
|
125
131
|
};
|
|
126
132
|
const acquireLock = async (threadId, ttlMs) => {
|
|
127
|
-
const
|
|
128
|
-
const lock = await base.acquireLock(threadId, effectiveTtlMs);
|
|
133
|
+
const lock = await base.acquireLock(threadId, ttlMs);
|
|
129
134
|
if (lock && shouldHeartbeatLock(ttlMs)) {
|
|
130
|
-
startOrUpdateHeartbeat(lock,
|
|
135
|
+
startOrUpdateHeartbeat(lock, ttlMs);
|
|
131
136
|
}
|
|
132
137
|
return lock;
|
|
133
138
|
};
|
|
@@ -147,12 +152,11 @@ function createQueuedStateAdapter(base, options) {
|
|
|
147
152
|
await base.releaseLock(lock);
|
|
148
153
|
},
|
|
149
154
|
extendLock: async (lock, ttlMs) => {
|
|
150
|
-
const
|
|
151
|
-
const extended = await base.extendLock(lock, effectiveTtlMs);
|
|
155
|
+
const extended = await base.extendLock(lock, ttlMs);
|
|
152
156
|
if (extended) {
|
|
153
|
-
lock.expiresAt = Date.now() +
|
|
157
|
+
lock.expiresAt = Date.now() + ttlMs;
|
|
154
158
|
if (shouldHeartbeatLock(ttlMs)) {
|
|
155
|
-
startOrUpdateHeartbeat(lock,
|
|
159
|
+
startOrUpdateHeartbeat(lock, ttlMs);
|
|
156
160
|
} else {
|
|
157
161
|
stopHeartbeat(lock);
|
|
158
162
|
}
|
|
@@ -238,7 +242,7 @@ async function disconnectStateAdapter() {
|
|
|
238
242
|
}
|
|
239
243
|
|
|
240
244
|
export {
|
|
241
|
-
|
|
245
|
+
acquireActiveLock,
|
|
242
246
|
getConnectedStateContext,
|
|
243
247
|
getDefaultRedisStateAdapterFor,
|
|
244
248
|
getStateAdapter,
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-G3E7SCME.js";
|
|
4
4
|
import {
|
|
5
5
|
getStateAdapter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LXTPBU4K.js";
|
|
7
7
|
import {
|
|
8
8
|
toOptionalTrimmed
|
|
9
9
|
} from "./chunk-T77LUIX3.js";
|
|
10
10
|
import {
|
|
11
11
|
getPluginRuntimeDependencies,
|
|
12
12
|
getPluginRuntimePostinstall
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YLVJRYTD.js";
|
|
14
14
|
import {
|
|
15
15
|
withSpan
|
|
16
16
|
} from "./chunk-EJN6G5A2.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isSnapshotMissingError,
|
|
11
11
|
resolveRuntimeDependencySnapshot,
|
|
12
12
|
runNonInteractiveCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PNGAJ75P.js";
|
|
14
14
|
import {
|
|
15
15
|
pluginTaskId,
|
|
16
16
|
pluginTaskParamsSchema,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
recordAuthorizationRequested,
|
|
29
29
|
recordMcpProviderConnected,
|
|
30
30
|
upsertAgentTurnSessionRecord
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TO3UAY2M.js";
|
|
32
32
|
import {
|
|
33
33
|
createPluginEmbedder,
|
|
34
34
|
createPluginHookRunner,
|
|
@@ -39,11 +39,11 @@ import {
|
|
|
39
39
|
getPlugins,
|
|
40
40
|
getSlackToolContext,
|
|
41
41
|
resolveChannelCapabilities
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WBSGTHNO.js";
|
|
43
43
|
import {
|
|
44
44
|
createPluginLogger,
|
|
45
45
|
createPluginState
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-RARSKPVT.js";
|
|
47
47
|
import {
|
|
48
48
|
getDb
|
|
49
49
|
} from "./chunk-NYKJ3KON.js";
|
|
@@ -55,8 +55,9 @@ import {
|
|
|
55
55
|
sandboxSkillFile
|
|
56
56
|
} from "./chunk-G3E7SCME.js";
|
|
57
57
|
import {
|
|
58
|
+
acquireActiveLock,
|
|
58
59
|
getStateAdapter
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-LXTPBU4K.js";
|
|
60
61
|
import {
|
|
61
62
|
SlackActionError,
|
|
62
63
|
downloadPrivateSlackFile,
|
|
@@ -113,7 +114,7 @@ import {
|
|
|
113
114
|
findSkillByName,
|
|
114
115
|
loadSkillsByName,
|
|
115
116
|
parseSkillInvocation
|
|
116
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-Y3EG7S7P.js";
|
|
117
118
|
import {
|
|
118
119
|
createPluginBroker,
|
|
119
120
|
credentialContextSchema,
|
|
@@ -127,7 +128,7 @@ import {
|
|
|
127
128
|
isPluginConfigKey,
|
|
128
129
|
resolveAuthTokenPlaceholder,
|
|
129
130
|
resolvePluginCommandEnv
|
|
130
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-YLVJRYTD.js";
|
|
131
132
|
import {
|
|
132
133
|
createRequester,
|
|
133
134
|
parseActorUserId
|
|
@@ -752,7 +753,6 @@ var storedTokensSchema = pluginStoredTokensSchema;
|
|
|
752
753
|
var KEY_PREFIX = "oauth-token";
|
|
753
754
|
var BUFFER_MS = 24 * 60 * 60 * 1e3;
|
|
754
755
|
var LONG_LIVED_TTL_MS = 365 * 24 * 60 * 60 * 1e3;
|
|
755
|
-
var REFRESH_LOCK_TTL_MS = 3e4;
|
|
756
756
|
var REFRESH_LOCK_WAIT_MS = 3e4;
|
|
757
757
|
var REFRESH_LOCK_RETRY_MS = 100;
|
|
758
758
|
function tokenKey(userId, provider) {
|
|
@@ -787,7 +787,7 @@ var StateAdapterTokenStore = class {
|
|
|
787
787
|
const lockKey = refreshLockKey(userId, provider);
|
|
788
788
|
const deadline = Date.now() + REFRESH_LOCK_WAIT_MS;
|
|
789
789
|
while (true) {
|
|
790
|
-
const lock = await this.state
|
|
790
|
+
const lock = await acquireActiveLock(this.state, lockKey);
|
|
791
791
|
if (lock) {
|
|
792
792
|
try {
|
|
793
793
|
return await callback();
|
|
@@ -1638,11 +1638,19 @@ function registerPluginManifest(state, manifest, pluginDir, skillsDir, migration
|
|
|
1638
1638
|
}
|
|
1639
1639
|
function registerYamlPluginManifest(state, raw, pluginDir) {
|
|
1640
1640
|
const manifest = parsePluginManifest(raw, pluginDir, pluginConfig);
|
|
1641
|
+
const candidateSkillsDir = path.join(pluginDir, "skills");
|
|
1642
|
+
const hasSkillsDir = (() => {
|
|
1643
|
+
try {
|
|
1644
|
+
return statSync(candidateSkillsDir).isDirectory();
|
|
1645
|
+
} catch {
|
|
1646
|
+
return false;
|
|
1647
|
+
}
|
|
1648
|
+
})();
|
|
1641
1649
|
registerPluginManifest(
|
|
1642
1650
|
state,
|
|
1643
1651
|
manifest,
|
|
1644
1652
|
pluginDir,
|
|
1645
|
-
|
|
1653
|
+
hasSkillsDir ? candidateSkillsDir : void 0
|
|
1646
1654
|
);
|
|
1647
1655
|
}
|
|
1648
1656
|
function normalizePluginRoots(roots) {
|
package/dist/cli/chat.js
CHANGED
|
@@ -130,9 +130,9 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
130
130
|
databaseModule
|
|
131
131
|
] = await Promise.all([
|
|
132
132
|
import("../plugins-PZMDS7AT.js"),
|
|
133
|
-
import("../agent-hooks-
|
|
134
|
-
import("../registry-
|
|
135
|
-
import("../validation-
|
|
133
|
+
import("../agent-hooks-7P2WSR4R.js"),
|
|
134
|
+
import("../registry-RRIDPJBT.js"),
|
|
135
|
+
import("../validation-MDMYBRFB.js"),
|
|
136
136
|
import("../db-7A7PFRGL.js")
|
|
137
137
|
]);
|
|
138
138
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
@@ -193,7 +193,7 @@ async function runPrompt(options, io, pluginSet) {
|
|
|
193
193
|
defaultStateAdapterForLocalChat();
|
|
194
194
|
await configureLocalChatPlugins(pluginSet);
|
|
195
195
|
const conversationId = newRunConversationId();
|
|
196
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
196
|
+
const { runLocalAgentTurn } = await import("../runner-JWLZI3EX.js");
|
|
197
197
|
const result = await runLocalAgentTurn(
|
|
198
198
|
{
|
|
199
199
|
conversationId,
|
|
@@ -217,7 +217,7 @@ async function runInteractive(io, pluginSet) {
|
|
|
217
217
|
defaultStateAdapterForLocalChat();
|
|
218
218
|
await configureLocalChatPlugins(pluginSet);
|
|
219
219
|
const conversationId = newRunConversationId();
|
|
220
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
220
|
+
const { runLocalAgentTurn } = await import("../runner-JWLZI3EX.js");
|
|
221
221
|
const rl = readline.createInterface({
|
|
222
222
|
input: io.input,
|
|
223
223
|
output: io.output,
|
package/dist/cli/check.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-Y3EG7S7P.js";
|
|
4
4
|
import {
|
|
5
5
|
parseInlinePluginManifest,
|
|
6
6
|
parsePluginManifest
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-YLVJRYTD.js";
|
|
8
8
|
import "../chunk-VALUBQ7R.js";
|
|
9
9
|
import "../chunk-Q3XNY442.js";
|
|
10
10
|
import "../chunk-EJN6G5A2.js";
|
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-KIDP757T.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
setPlugins,
|
|
12
12
|
validatePlugins
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-WBSGTHNO.js";
|
|
14
14
|
import {
|
|
15
15
|
createPluginLogger
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-RARSKPVT.js";
|
|
17
17
|
import {
|
|
18
18
|
getDb
|
|
19
19
|
} from "../chunk-NYKJ3KON.js";
|
|
20
20
|
import "../chunk-G3E7SCME.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-LXTPBU4K.js";
|
|
22
22
|
import "../chunk-Q6XFTRV5.js";
|
|
23
23
|
import "../chunk-T77LUIX3.js";
|
|
24
24
|
import {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "../chunk-Y2CM7HXH.js";
|
|
27
27
|
import {
|
|
28
28
|
setPluginCatalogConfig
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-YLVJRYTD.js";
|
|
30
30
|
import "../chunk-VALUBQ7R.js";
|
|
31
31
|
import "../chunk-Q3XNY442.js";
|
|
32
32
|
import "../chunk-EJN6G5A2.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveRuntimeDependencySnapshot
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-PNGAJ75P.js";
|
|
4
4
|
import "../chunk-G3E7SCME.js";
|
|
5
5
|
import {
|
|
6
6
|
disconnectStateAdapter
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-LXTPBU4K.js";
|
|
8
8
|
import "../chunk-T77LUIX3.js";
|
|
9
9
|
import {
|
|
10
10
|
getPluginProviders,
|
|
11
11
|
getPluginRuntimeDependencies,
|
|
12
12
|
getPluginRuntimePostinstall
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-YLVJRYTD.js";
|
|
14
14
|
import "../chunk-VALUBQ7R.js";
|
|
15
15
|
import "../chunk-Q3XNY442.js";
|
|
16
16
|
import "../chunk-EJN6G5A2.js";
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
listConversationsByActivity,
|
|
4
4
|
recordConversationActivity,
|
|
5
5
|
requestConversationWork
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-KPL4WJWA.js";
|
|
7
7
|
import {
|
|
8
8
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
9
9
|
coerceThreadConversationState
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
createPluginLogger,
|
|
19
19
|
createPluginState
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-RARSKPVT.js";
|
|
21
21
|
import {
|
|
22
22
|
createJuniorSqlExecutor,
|
|
23
23
|
createSqlStore,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
disconnectStateAdapter,
|
|
28
28
|
getConnectedStateContext
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-LXTPBU4K.js";
|
|
30
30
|
import {
|
|
31
31
|
parseDestination,
|
|
32
32
|
sameDestination
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
getPluginMigrationRoots,
|
|
42
42
|
setPluginCatalogConfig
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-YLVJRYTD.js";
|
|
44
44
|
import "../chunk-VALUBQ7R.js";
|
|
45
45
|
import "../chunk-Q3XNY442.js";
|
|
46
46
|
import {
|
package/dist/reporting.js
CHANGED
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
getConversationDetails,
|
|
7
7
|
getConversationDetailsForIds,
|
|
8
8
|
resolveSlackConversationContextFromThreadId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C2YBH4S6.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSystemPrompt,
|
|
12
12
|
getAgentTurnSessionRecord,
|
|
13
13
|
listAgentTurnSessionSummariesForConversation
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TO3UAY2M.js";
|
|
15
15
|
import {
|
|
16
16
|
getPluginOperationalReports
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-WBSGTHNO.js";
|
|
18
|
+
import "./chunk-RARSKPVT.js";
|
|
19
19
|
import {
|
|
20
20
|
getConversationStore
|
|
21
21
|
} from "./chunk-NYKJ3KON.js";
|
|
22
22
|
import "./chunk-G3E7SCME.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-LXTPBU4K.js";
|
|
24
24
|
import "./chunk-Q6XFTRV5.js";
|
|
25
25
|
import {
|
|
26
26
|
canExposeConversationPayload,
|
|
@@ -29,11 +29,11 @@ import {
|
|
|
29
29
|
} from "./chunk-T77LUIX3.js";
|
|
30
30
|
import {
|
|
31
31
|
discoverSkills
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Y3EG7S7P.js";
|
|
33
33
|
import {
|
|
34
34
|
getPluginPackageContent,
|
|
35
35
|
getPluginProviders
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YLVJRYTD.js";
|
|
37
37
|
import {
|
|
38
38
|
toStoredSlackRequester
|
|
39
39
|
} from "./chunk-VALUBQ7R.js";
|
|
@@ -14,28 +14,28 @@ import {
|
|
|
14
14
|
startActiveTurn,
|
|
15
15
|
updateConversationStats,
|
|
16
16
|
upsertConversationMessage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-W36B5PT4.js";
|
|
18
18
|
import {
|
|
19
19
|
coerceThreadConversationState
|
|
20
20
|
} from "./chunk-Z4CIQ3EB.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-PNGAJ75P.js";
|
|
22
22
|
import "./chunk-KNFROR7R.js";
|
|
23
23
|
import {
|
|
24
24
|
commitMessages,
|
|
25
25
|
loadProjection
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-TO3UAY2M.js";
|
|
27
|
+
import "./chunk-WBSGTHNO.js";
|
|
28
|
+
import "./chunk-RARSKPVT.js";
|
|
29
29
|
import "./chunk-NYKJ3KON.js";
|
|
30
30
|
import "./chunk-G3E7SCME.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-LXTPBU4K.js";
|
|
32
32
|
import "./chunk-Q6XFTRV5.js";
|
|
33
33
|
import {
|
|
34
34
|
stripRuntimeTurnContext,
|
|
35
35
|
trimTrailingAssistantMessages
|
|
36
36
|
} from "./chunk-T77LUIX3.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-Y3EG7S7P.js";
|
|
38
|
+
import "./chunk-YLVJRYTD.js";
|
|
39
39
|
import "./chunk-VALUBQ7R.js";
|
|
40
40
|
import "./chunk-Q3XNY442.js";
|
|
41
41
|
import {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-KIDP757T.js";
|
|
5
|
+
import "./chunk-YLVJRYTD.js";
|
|
6
6
|
import "./chunk-VALUBQ7R.js";
|
|
7
7
|
import "./chunk-Q3XNY442.js";
|
|
8
8
|
import "./chunk-EJN6G5A2.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"pg": "^8.16.3",
|
|
71
71
|
"yaml": "^2.9.0",
|
|
72
72
|
"zod": "^4.4.3",
|
|
73
|
-
"@sentry/junior-plugin-api": "0.
|
|
73
|
+
"@sentry/junior-plugin-api": "0.77.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@emnapi/core": "^1.10.0",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"typescript": "^6.0.3",
|
|
87
87
|
"vercel": "^54.4.0",
|
|
88
88
|
"vitest": "^4.1.7",
|
|
89
|
-
"@sentry/junior-memory": "0.
|
|
90
|
-
"@sentry/junior-
|
|
91
|
-
"@sentry/junior-
|
|
89
|
+
"@sentry/junior-memory": "0.77.0",
|
|
90
|
+
"@sentry/junior-testing": "0.0.0",
|
|
91
|
+
"@sentry/junior-scheduler": "0.77.0"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|