@sentry/junior 0.137.0 → 0.138.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-MZOKEP3J.js → agent-hooks-SCR74Q3E.js} +11 -9
- package/dist/api.js +21 -18
- package/dist/app.d.ts +7 -0
- package/dist/app.js +248 -689
- package/dist/{catalog-runtime-MD66YLFV.js → catalog-runtime-IU3QF4GG.js} +5 -5
- package/dist/chat/agent/request.d.ts +32 -2
- package/dist/chat/agent-dispatch/heartbeat.d.ts +5 -0
- package/dist/chat/agent-dispatch/types.d.ts +1 -1
- package/dist/chat/agent-invocations/errors.d.ts +8 -0
- package/dist/chat/agent-invocations/spawn.d.ts +12 -0
- package/dist/chat/agent-invocations/store.d.ts +44 -0
- package/dist/chat/agent-invocations/types.d.ts +449 -0
- package/dist/chat/agent-invocations/work.d.ts +31 -0
- package/dist/chat/config.d.ts +1 -0
- package/dist/chat/conversations/sql/store.d.ts +8 -0
- package/dist/chat/conversations/store.d.ts +7 -0
- package/dist/chat/experimental.d.ts +16 -0
- package/dist/chat/runtime/agent-runner.d.ts +2 -1
- package/dist/chat/services/auth-pause.d.ts +0 -1
- package/dist/chat/services/mcp-auth-orchestration.d.ts +3 -2
- package/dist/chat/services/plugin-auth-orchestration.d.ts +3 -2
- package/dist/chat/state/turn-session.d.ts +0 -2
- package/dist/chat/task-execution/state.d.ts +23 -11
- package/dist/chat/task-execution/store.d.ts +20 -11
- package/dist/chat/task-execution/worker.d.ts +2 -2
- package/dist/chat/tools/runtime/spawn-agent.d.ts +31 -0
- package/dist/chat/tools/types.d.ts +2 -0
- package/dist/chunk-3Y47VMHV.js +6 -0
- package/dist/chunk-5IDFPCON.js +46 -0
- package/dist/chunk-5LTJ4ITU.js +1523 -0
- package/dist/{chunk-WPPXIAFB.js → chunk-5MXWHTCK.js} +17 -434
- package/dist/{chunk-UOXATPSI.js → chunk-A7WCHXZV.js} +7 -5
- package/dist/{chunk-5G34IEK2.js → chunk-BOLJOV5T.js} +2 -56
- package/dist/{chunk-UG6ZYPBI.js → chunk-BYW4B4PR.js} +73 -60
- package/dist/{chunk-XZ7NPXAB.js → chunk-C7ZVPO4Z.js} +1 -1
- package/dist/{chunk-RB4NJKEX.js → chunk-DCLLQGS6.js} +119 -50
- package/dist/{chunk-DQXAAVTR.js → chunk-E5UYAIKJ.js} +44 -1467
- package/dist/{chunk-6QW2RRQT.js → chunk-ELKW5FIB.js} +5 -5
- package/dist/chunk-EM225ITJ.js +56 -0
- package/dist/{chunk-SYCX4DOK.js → chunk-FEUNPTGV.js} +7 -60
- package/dist/{chunk-YRPC6MJY.js → chunk-FNLBTB4K.js} +1 -1
- package/dist/chunk-HIWJWWMT.js +668 -0
- package/dist/chunk-IUFM5JWV.js +24 -0
- package/dist/{chunk-T6Z5S6PQ.js → chunk-JNNJZURV.js} +1 -1
- package/dist/{chunk-6ZK6FZIV.js → chunk-KCBZSJRU.js} +6 -27
- package/dist/{chunk-5PNJMOY5.js → chunk-KDCHVT25.js} +1 -1
- package/dist/{chunk-BZAMASJP.js → chunk-KFRHRSCJ.js} +1 -1
- package/dist/chunk-LPVUNO2W.js +320 -0
- package/dist/{chunk-EWDSB24B.js → chunk-N7WARMC6.js} +16 -776
- package/dist/chunk-PB3CXNVL.js +41 -0
- package/dist/chunk-Q6QZTTLS.js +55 -0
- package/dist/{chunk-36EG34YI.js → chunk-QS527AV5.js} +1 -1
- package/dist/chunk-R776HKPK.js +81 -0
- package/dist/{chunk-KJ4HGRHN.js → chunk-RZIBSCYC.js} +507 -596
- package/dist/chunk-SD3OFRWY.js +714 -0
- package/dist/{chunk-ZFS67WIR.js → chunk-SIPKWSXK.js} +57 -6
- package/dist/chunk-TCS76X5D.js +441 -0
- package/dist/{chunk-K2NCQJKH.js → chunk-TDJCLNDH.js} +3 -3
- package/dist/{chunk-POBSY47Q.js → chunk-TUUDXEXU.js} +336 -302
- package/dist/{chunk-YNFERGKP.js → chunk-VPZFVJND.js} +1 -1
- package/dist/{chunk-UZQ4VY3M.js → chunk-YU5QUF67.js} +1 -1
- package/dist/chunk-ZBSMCXKV.js +710 -0
- package/dist/{chunk-3Q342EJJ.js → chunk-ZXNTJJIE.js} +2 -2
- package/dist/cli/chat.js +65 -26
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +14 -12
- package/dist/cli/snapshot-create.js +10 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/conversation-work-KATFHLG3.js +56 -0
- package/dist/db/schema/agent-invocations.d.ts +544 -0
- package/dist/db/schema.d.ts +543 -1
- package/dist/{db-66E7VDNC.js → db-UO2IWXGA.js} +7 -7
- package/dist/experimental-HH6OM6UH.js +13 -0
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +4 -3
- package/dist/{oauth-callback-server-7QPD4Q7P.js → oauth-callback-server-MAQI43LX.js} +26 -18
- package/dist/{runner-L2BKJKOD.js → runner-PIUQEXKE.js} +26 -14
- package/dist/{skills-HOQ2NSPW.js → skills-4ARJADHQ.js} +6 -6
- package/dist/spawn-G2AWPMCT.js +38 -0
- package/dist/{validation-ENHI7S2C.js → validation-S3EE3HWL.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/work-UARRUAW3.js +46 -0
- package/dist/worker-DOCIRVD3.js +24 -0
- package/migrations/0021_first_warhawk.sql +35 -0
- package/migrations/meta/0021_snapshot.json +2176 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +5 -5
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-UTL3MHPC.js";
|
|
4
4
|
import {
|
|
5
5
|
parseSlackThreadId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FNLBTB4K.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeSlackConversationId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TCS76X5D.js";
|
|
10
10
|
import {
|
|
11
11
|
getDb
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SIPKWSXK.js";
|
|
13
13
|
import {
|
|
14
14
|
juniorTaskExecutions
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DCLLQGS6.js";
|
|
16
16
|
import {
|
|
17
17
|
logWarn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JNNJZURV.js";
|
|
19
19
|
|
|
20
20
|
// src/handlers/health.ts
|
|
21
21
|
function readHealthReport() {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// src/chat/sandbox/paths.ts
|
|
2
|
+
function normalizeWorkspaceRoot(input) {
|
|
3
|
+
const candidate = (input ?? "").trim();
|
|
4
|
+
if (!candidate) {
|
|
5
|
+
return "/vercel/sandbox";
|
|
6
|
+
}
|
|
7
|
+
const normalized = candidate.replace(/\/+$/, "");
|
|
8
|
+
return normalized.startsWith("/") ? normalized : `/${normalized}`;
|
|
9
|
+
}
|
|
10
|
+
var SANDBOX_WORKSPACE_ROOT = normalizeWorkspaceRoot(
|
|
11
|
+
process.env.VERCEL_SANDBOX_WORKSPACE_DIR
|
|
12
|
+
);
|
|
13
|
+
var SANDBOX_SKILLS_ROOT = `${SANDBOX_WORKSPACE_ROOT}/skills`;
|
|
14
|
+
var SANDBOX_DATA_ROOT = `${SANDBOX_WORKSPACE_ROOT}/data`;
|
|
15
|
+
function sandboxSkillDir(skillName) {
|
|
16
|
+
return `${SANDBOX_SKILLS_ROOT}/${skillName}`;
|
|
17
|
+
}
|
|
18
|
+
function sandboxSkillFile(skillName) {
|
|
19
|
+
return `${sandboxSkillDir(skillName)}/SKILL.md`;
|
|
20
|
+
}
|
|
21
|
+
function sandboxSkillPathResolution(skillName) {
|
|
22
|
+
const skillDir = sandboxSkillDir(skillName);
|
|
23
|
+
return `Resolve relative paths in this skill against ${skillDir}. For bash commands from this skill, cd to ${skillDir} first or use absolute paths.`;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// src/chat/sleep.ts
|
|
27
|
+
function sleep(ms, signal) {
|
|
28
|
+
if (!signal) {
|
|
29
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
30
|
+
}
|
|
31
|
+
return new Promise((resolve, reject) => {
|
|
32
|
+
if (signal.aborted) {
|
|
33
|
+
reject(signal.reason);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const timeoutId = setTimeout(() => {
|
|
37
|
+
signal.removeEventListener("abort", onAbort);
|
|
38
|
+
resolve();
|
|
39
|
+
}, ms);
|
|
40
|
+
const onAbort = () => {
|
|
41
|
+
clearTimeout(timeoutId);
|
|
42
|
+
reject(signal.reason);
|
|
43
|
+
};
|
|
44
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
SANDBOX_WORKSPACE_ROOT,
|
|
50
|
+
SANDBOX_SKILLS_ROOT,
|
|
51
|
+
SANDBOX_DATA_ROOT,
|
|
52
|
+
sandboxSkillDir,
|
|
53
|
+
sandboxSkillFile,
|
|
54
|
+
sandboxSkillPathResolution,
|
|
55
|
+
sleep
|
|
56
|
+
};
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
persistThreadStateById,
|
|
23
23
|
stripRuntimeTurnContext,
|
|
24
24
|
updateConversationStats
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TUUDXEXU.js";
|
|
26
26
|
import {
|
|
27
27
|
createPluginConversationEvents,
|
|
28
28
|
createPluginEmbedder,
|
|
@@ -30,26 +30,26 @@ import {
|
|
|
30
30
|
createPluginModel,
|
|
31
31
|
createPluginState,
|
|
32
32
|
getPlugins
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-5MXWHTCK.js";
|
|
34
34
|
import {
|
|
35
35
|
getDb,
|
|
36
36
|
sameActorIdentity
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-SIPKWSXK.js";
|
|
38
38
|
import {
|
|
39
39
|
getStateAdapter
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BOLJOV5T.js";
|
|
41
41
|
import {
|
|
42
42
|
ProviderError,
|
|
43
43
|
findProviderError,
|
|
44
44
|
getProviderErrorAttributes,
|
|
45
45
|
getProviderErrorUserMessage
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-BYW4B4PR.js";
|
|
47
47
|
import {
|
|
48
48
|
parseSlackMessageTs
|
|
49
49
|
} from "./chunk-F3B2YJ76.js";
|
|
50
50
|
import {
|
|
51
51
|
buildTurnFailureResponse
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-JNNJZURV.js";
|
|
53
53
|
|
|
54
54
|
// src/chat/runtime/delivered-turn-state.ts
|
|
55
55
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
|
|
86
86
|
// src/chat/services/turn-session-routing.ts
|
|
87
87
|
async function resolveTurnSessionRouting(args) {
|
|
88
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
88
|
+
const conversationStore = args.conversationStore ?? (await import("./db-UO2IWXGA.js")).getConversationStore();
|
|
89
89
|
const conversation = await conversationStore.get({
|
|
90
90
|
conversationId: args.conversationId
|
|
91
91
|
});
|
|
@@ -487,58 +487,6 @@ function finalizeFailedTurnReplyWithEvent(args) {
|
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
// src/chat/conversations/turn-lifecycle.ts
|
|
491
|
-
var ConversationTurnLifecycleService = class {
|
|
492
|
-
constructor(events) {
|
|
493
|
-
this.events = events;
|
|
494
|
-
}
|
|
495
|
-
events;
|
|
496
|
-
/** Record the turn start once after every input message is durable. */
|
|
497
|
-
async start(input) {
|
|
498
|
-
await this.events.append(input.conversationId, [
|
|
499
|
-
{
|
|
500
|
-
idempotencyKey: `turn:${input.turnId}:started`,
|
|
501
|
-
createdAtMs: input.createdAtMs,
|
|
502
|
-
data: {
|
|
503
|
-
type: "turn_started",
|
|
504
|
-
turnId: input.turnId,
|
|
505
|
-
inputMessageIds: input.inputMessageIds,
|
|
506
|
-
surface: input.surface
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
]);
|
|
510
|
-
}
|
|
511
|
-
/** Record successful or intentional-silence completion once. */
|
|
512
|
-
async complete(input) {
|
|
513
|
-
await this.events.append(input.conversationId, [
|
|
514
|
-
{
|
|
515
|
-
idempotencyKey: `turn:${input.turnId}:terminal`,
|
|
516
|
-
createdAtMs: input.createdAtMs,
|
|
517
|
-
data: {
|
|
518
|
-
type: "turn_completed",
|
|
519
|
-
turnId: input.turnId,
|
|
520
|
-
outcome: input.outcome
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
]);
|
|
524
|
-
}
|
|
525
|
-
/** Record a classified failure once without accepting raw error details. */
|
|
526
|
-
async fail(input) {
|
|
527
|
-
await this.events.append(input.conversationId, [
|
|
528
|
-
{
|
|
529
|
-
idempotencyKey: `turn:${input.turnId}:terminal`,
|
|
530
|
-
createdAtMs: input.createdAtMs,
|
|
531
|
-
data: {
|
|
532
|
-
type: "turn_failed",
|
|
533
|
-
turnId: input.turnId,
|
|
534
|
-
failureCode: input.failureCode,
|
|
535
|
-
...input.eventId ? { eventId: input.eventId } : {}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
]);
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
|
|
542
490
|
// src/chat/runtime/turn-user-message.ts
|
|
543
491
|
function getTurnUserMessage(conversation, sessionId) {
|
|
544
492
|
for (let index = conversation.messages.length - 1; index >= 0; index -= 1) {
|
|
@@ -612,7 +560,6 @@ export {
|
|
|
612
560
|
requireTurnFailureEventId,
|
|
613
561
|
getAgentTurnDiagnosticsAttributes,
|
|
614
562
|
finalizeFailedTurnReplyWithEvent,
|
|
615
|
-
ConversationTurnLifecycleService,
|
|
616
563
|
completeAuthPauseTurn,
|
|
617
564
|
persistAuthPauseTurnState
|
|
618
565
|
};
|