@sentry/junior 0.318.0 → 0.320.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/{context-BKF_5zzI.js → adapter-DlLLoJKj.js} +537 -537
- package/dist/{admin-UOHix_5P.js → admin-BzRXDVfh.js} +1 -1
- package/dist/{agent-runner-DeYymwh2.js → agent-DxZ7nHfD.js} +19866 -6720
- package/dist/{agent-status-BA5x3Xtp.js → agent-status-Bq_AIpyp.js} +105 -1
- package/dist/{agent-update-delivery-DH8bx7jU.js → agent-update-delivery-CO4FU5Gg.js} +4 -5
- package/dist/api/schema.d.ts +45 -23
- package/dist/api/schema.js +4 -4
- package/dist/api.js +79 -84
- package/dist/{app-DKAOuaoC.d.ts → app-CHCFIIDu.d.ts} +5 -4
- package/dist/app.d.ts +2 -2
- package/dist/app.js +119 -194
- package/dist/{change-record-BzJgLsv7.d.ts → change-record-K-KsqNhT.d.ts} +9 -5
- package/dist/{channel-access-A0de5lRv.js → channel-access-BghWqlXx.js} +1 -1
- package/dist/{chat-core-engine-D3Wd7f5n.js → chat-core-engine-BgfSLrDu.js} +31 -14
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +23 -23
- package/dist/cli/check.js +5 -5
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.d.ts +1 -1
- package/dist/cli/plugins.js +8 -8
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -4
- package/dist/{continue-in-slack-YxwMQVeR.js → continue-in-slack-DBlQP4PC.js} +3 -3
- package/dist/{conversation-feed-Cj7IuBtM.js → conversation-feed-DEUdD7mb.js} +2 -106
- package/dist/{conversation-privacy-Cr_dNW1p.js → conversation-privacy-qoh95v90.js} +1 -1
- package/dist/{create-Btl1y1rq.js → create-jZSaDrCR.js} +115 -5
- package/dist/{credential-sync-DTarZ63K.js → credential-sync-Bj9-UlNE.js} +15 -18
- package/dist/{db-of6e3sGt.js → db-BacvswT0.js} +4602 -727
- package/dist/{deployment-C0qXa0FD.js → deployment-BoJkRPDt.js} +3 -3
- package/dist/{engine-context-C_QL_bMQ.js → engine-context-Bi3Ync5t.js} +521 -150
- package/dist/{html-9_pS9SjY.js → html-DW0pw5Pr.js} +6 -8
- package/dist/instrumentation.js +7 -23
- package/dist/list-Dz3CdP3g.js +5016 -0
- package/dist/{logging-BnOG0qz2.js → logging-DsTnMqyi.js} +8 -33
- package/dist/{mailbox-turn-Byrry9o1.js → markers-C33gNYNE.js} +1705 -1284
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +6 -7
- package/dist/{oauth-callback-server-CjnnUr4o.js → oauth-callback-server-C-pEhAQK.js} +2 -2
- package/dist/{oauth-relay-BvHFH0fV.js → oauth-relay-DIXdH-io.js} +1 -1
- package/dist/{plugins-fBrz8PCV.d.ts → plugins-DhGXZjlu.d.ts} +1 -0
- package/dist/{profile-iHw1uu32.js → profile-v9vA3RvH.js} +16 -18
- package/dist/{prompt-DEkStuxG.js → prompt-C5CW2wKO.js} +1 -1
- package/dist/{reports-C1d9azyV.js → reports-eBgrhPXS.js} +2 -2
- package/dist/{resolve-DC6zBuDV.js → resolve-HVXmbeCr.js} +5 -5
- package/dist/{result-DxewDuXb.js → result-BPNzgeTl.js} +20 -9
- package/dist/{runner-99YxVN_r.js → runner-aNSDTST6.js} +7 -8
- package/dist/{sandbox-egress-signals-CgoX5CTI.js → sandbox-egress-signals-nzp9Ykf7.js} +1 -1
- package/dist/{schema-BTojNBr5.js → schema-BlTO5M1d.js} +16 -8
- package/dist/{service-account-YDCPSByj.js → service-account-DWIf1t6p.js} +4 -5
- package/dist/{skills-CleC0Hze.js → skills-50izzzdK.js} +9 -9
- package/dist/{slack-conversation-unfurl-BNQLC12R.js → slack-conversation-unfurl-C6jXhVYg.js} +7 -7
- package/dist/storage-BtCxXiNt.js +273 -0
- package/dist/{system-prompt-table-Ci6Ck4gk.js → system-prompt-table-CIR1B44Z.js} +27 -85
- package/dist/topic-B2EWKKBT.js +6 -0
- package/dist/{package-discovery-DD9vencX.js → topics-DxuKurCX.js} +21 -1
- package/dist/{types-DCzTAA63.js → types-BNHkJrOP.js} +25 -11
- package/dist/{users-Cb9c1k9q.js → users-DOVo9sdU.js} +1 -1
- package/dist/{validation-BiUmWPhy.js → validation-CK0vuEHB.js} +4 -4
- package/dist/{version-VEXiEcZu.js → version-BuLVNlxB.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{worker-ChWYQdhm.js → worker-C82kHU1R.js} +4 -4
- package/migrations/20261127052408_space_name_nullable/migration.sql +5 -0
- package/migrations/20261127052408_space_name_nullable/snapshot.json +29 -0
- package/migrations/20261127060000_annotation_object_id_index/migration.sql +1 -0
- package/migrations/20261127060000_annotation_object_id_index/snapshot.json +69 -0
- package/migrations/20261127060001_annotation_subjects/migration.sql +78 -0
- package/migrations/20261127060001_annotation_subjects/snapshot.json +104 -0
- package/migrations/20261127060002_annotation_subject_index/migration.sql +1 -0
- package/migrations/20261127060002_annotation_subject_index/snapshot.json +70 -0
- package/migrations/20261127060003_annotation_title_url/migration.sql +84 -0
- package/migrations/20261127060003_annotation_title_url/snapshot.json +73 -0
- package/migrations/20261127150242_drop_space_members/migration.sql +9 -0
- package/migrations/20261127150242_drop_space_members/snapshot.json +53 -0
- package/package.json +9 -7
- package/dist/auth-pause-state-f9hJM_zO.js +0 -113
- package/dist/catalog-runtime-BfdAnztW.js +0 -6
- package/dist/child-message-peFWLcCZ.js +0 -15
- package/dist/conversation-turn-Bru4w_FD.js +0 -1250
- package/dist/job-runner-B2XEvpif.js +0 -1505
- package/dist/lineage-nh4z9iQN.js +0 -36
- package/dist/list-HRP3TIRl.js +0 -12631
- package/dist/markers-CTTtJqYn.js +0 -342
- package/dist/message-BRUuLgrY.js +0 -153
- package/dist/model-input-CFC62mf-.js +0 -82
- package/dist/registry-Cl7Labpe.js +0 -3279
- package/dist/run-conversation-Cz2ubZK-.js +0 -337
- package/dist/sender-actors-77zTQbSG.js +0 -84
- package/dist/spawn-DuZfodPa.js +0 -45
- package/dist/task-runner-BJ9Up3bG.js +0 -1529
- package/dist/topic-CRYYBYp-.js +0 -7
- package/dist/topics-BoCkoPJJ.js +0 -21
- package/dist/turn-membership-VT7XZh-L.js +0 -856
- package/dist/turn-wake-C7HeLHAM.js +0 -151
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { a as getDb, an as getConversationWorkState, is as listConversationAnnotations, n as getConversationEventStore } from "./db-of6e3sGt.js";
|
|
2
|
-
import { Gt as resolveMessageCards, Ut as readMessageCardRefs, Wt as removedCardSchema } from "./types-DCzTAA63.js";
|
|
3
|
-
import { G as mapBounded } from "./prompt-DEkStuxG.js";
|
|
4
|
-
import { Pn as hydrateConversationMessages, Wn as markConversationMessage, X as getTurnUserMessageId, ct as markTurnCompleted, gt as coerceThreadConversationState, ht as persistThreadStateById, pt as getPersistedThreadState, st as markTurnClosed, ur as clearPendingAuth } from "./mailbox-turn-Byrry9o1.js";
|
|
5
|
-
import { t as listChildMessages } from "./child-message-peFWLcCZ.js";
|
|
6
|
-
// src/chat/conversations/pending-cards.ts
|
|
7
|
-
/**
|
|
8
|
-
* Add the cards that tool results selected since the last visible assistant
|
|
9
|
-
* Message or Turn start, scanning back from `beforeSeq`. Returns the input
|
|
10
|
-
* message ids of the Turn start that ended the scan.
|
|
11
|
-
*/
|
|
12
|
-
async function selectTurnCards(conversationId, selection, beforeSeq) {
|
|
13
|
-
while (true) {
|
|
14
|
-
const page = await getConversationEventStore().query(conversationId, {
|
|
15
|
-
beforeSeq,
|
|
16
|
-
limit: 100,
|
|
17
|
-
types: [
|
|
18
|
-
"tool_result",
|
|
19
|
-
"message",
|
|
20
|
-
"turn_started"
|
|
21
|
-
]
|
|
22
|
-
});
|
|
23
|
-
for (const event of [...page.events].reverse()) {
|
|
24
|
-
const data = event.data;
|
|
25
|
-
if (data.type === "turn_started") return data.inputMessageIds;
|
|
26
|
-
if (data.type === "message" && data.role === "assistant") return [];
|
|
27
|
-
if (data.type !== "tool_result" || data["isError"] || typeof data["toolName"] !== "string") continue;
|
|
28
|
-
const details = data["details"];
|
|
29
|
-
if (typeof details !== "object" || details === null) continue;
|
|
30
|
-
if ("timed_out" in details && details.timed_out === true) continue;
|
|
31
|
-
if ("removedCards" in details && Array.isArray(details.removedCards)) for (const ref of removedCardSchema.array().parse(details.removedCards)) selection.deleted.add(JSON.stringify([ref.plugin, ref.key]));
|
|
32
|
-
for (const card of readMessageCardRefs(details)) {
|
|
33
|
-
const key = JSON.stringify([card.plugin, card.key]);
|
|
34
|
-
if (!selection.deleted.has(key) && !selection.cards.has(key)) selection.cards.set(key, card);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (!page.hasOlder || page.events.length === 0) return [];
|
|
38
|
-
beforeSeq = page.events[0].seq;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Add the cards of child agents whose replies or results started this Turn.
|
|
43
|
-
* A child cannot reply to people, so its parent's reply delivers its cards.
|
|
44
|
-
*/
|
|
45
|
-
async function selectChildResultCards(conversationId, inputMessageIds, selection) {
|
|
46
|
-
if (inputMessageIds.length === 0) return;
|
|
47
|
-
const events = getConversationEventStore();
|
|
48
|
-
const execution = (await getConversationWorkState({ conversationId }))?.execution;
|
|
49
|
-
const messages = listChildMessages(inputMessageIds, execution?.messageSenders ?? {});
|
|
50
|
-
messages.reverse();
|
|
51
|
-
const terminals = await mapBounded(messages, ({ sender }) => events.loadByIdempotencyKey(sender.conversationId, `turn:${sender.turnId}:terminal`));
|
|
52
|
-
for (const [index, message] of messages.entries()) {
|
|
53
|
-
const terminal = terminals[index];
|
|
54
|
-
await selectTurnCards(message.sender.conversationId, selection, terminal?.seq);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/** Select undelivered cards and load their latest saved facts. */
|
|
58
|
-
async function loadPendingMessageCards(conversationId) {
|
|
59
|
-
const selection = {
|
|
60
|
-
cards: /* @__PURE__ */ new Map(),
|
|
61
|
-
deleted: /* @__PURE__ */ new Set()
|
|
62
|
-
};
|
|
63
|
-
await selectChildResultCards(conversationId, await selectTurnCards(conversationId, selection), selection);
|
|
64
|
-
if (selection.cards.size === 0) return [];
|
|
65
|
-
return resolveMessageCards([...selection.cards.values()].reverse(), await listConversationAnnotations(getDb(), conversationId));
|
|
66
|
-
}
|
|
67
|
-
// src/chat/runtime/delivered-turn-state.ts
|
|
68
|
-
/** Build state after destination delivery or intentional no-reply completion. */
|
|
69
|
-
function buildDeliveredTurnStatePatch(args) {
|
|
70
|
-
const conversation = structuredClone(args.conversation);
|
|
71
|
-
clearPendingAuth(conversation, args.sessionId);
|
|
72
|
-
markConversationMessage(conversation, args.userMessageId, {
|
|
73
|
-
replied: true,
|
|
74
|
-
skippedReason: void 0
|
|
75
|
-
});
|
|
76
|
-
markTurnCompleted({
|
|
77
|
-
conversation,
|
|
78
|
-
nowMs: Date.now(),
|
|
79
|
-
sessionId: args.sessionId
|
|
80
|
-
});
|
|
81
|
-
return {
|
|
82
|
-
conversation,
|
|
83
|
-
sandboxRef: args.reply.sandboxRef
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
// src/chat/runtime/auth-pause-state.ts
|
|
87
|
-
/** Mark an auth-paused turn complete after private authorization link delivery. */
|
|
88
|
-
function completeAuthPauseTurn(args) {
|
|
89
|
-
markConversationMessage(args.conversation, getTurnUserMessageId(args.conversation, args.sessionId), {
|
|
90
|
-
replied: true,
|
|
91
|
-
skippedReason: void 0
|
|
92
|
-
});
|
|
93
|
-
markTurnClosed({
|
|
94
|
-
conversation: args.conversation,
|
|
95
|
-
nowMs: Date.now(),
|
|
96
|
-
sessionId: args.sessionId
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
/** Reload thread state, mark the auth pause as parked, and persist it. */
|
|
100
|
-
async function persistAuthPauseTurnState(args) {
|
|
101
|
-
const currentState = await getPersistedThreadState(args.threadStateId);
|
|
102
|
-
const conversation = coerceThreadConversationState(currentState);
|
|
103
|
-
await hydrateConversationMessages({
|
|
104
|
-
conversation,
|
|
105
|
-
conversationId: args.threadStateId
|
|
106
|
-
});
|
|
107
|
-
completeAuthPauseTurn({
|
|
108
|
-
conversation,
|
|
109
|
-
sessionId: args.sessionId
|
|
110
|
-
});
|
|
111
|
-
await persistThreadStateById(args.threadStateId, { conversation });
|
|
112
|
-
}
|
|
113
|
-
export { loadPendingMessageCards as i, persistAuthPauseTurnState as n, buildDeliveredTurnStatePatch as r, completeAuthPauseTurn as t };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-Cl7Labpe.js";
|
|
3
|
-
// src/chat/plugins/catalog-runtime.ts
|
|
4
|
-
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
|
-
const pluginCatalogRuntime = createPluginCatalogRuntime();
|
|
6
|
-
export { pluginCatalogRuntime as n, catalog_runtime_exports as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// src/chat/child-agents/child-message.ts
|
|
2
|
-
/**
|
|
3
|
-
* List the child replies and results among the ids that reached one
|
|
4
|
-
* mailbox, oldest first, with the sender fields that the mailbox keeps.
|
|
5
|
-
*/
|
|
6
|
-
function listChildMessages(inboundMessageIds, messageSenders) {
|
|
7
|
-
return inboundMessageIds.flatMap((inboundMessageId) => {
|
|
8
|
-
const sender = messageSenders[inboundMessageId];
|
|
9
|
-
return sender ? [{
|
|
10
|
-
inboundMessageId,
|
|
11
|
-
sender
|
|
12
|
-
}] : [];
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export { listChildMessages as t };
|