@sentry/junior 0.315.0 → 0.317.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/{admin-5jUYY46p.js → admin-CAugg87B.js} +1 -1
- package/dist/{agent-runner-C7GNLRB6.js → agent-runner-AjrEV6Qe.js} +13532 -12811
- package/dist/{reporting-window-C4dbzDiR.js → agent-status-BA5x3Xtp.js} +33 -1
- package/dist/{agent-update-delivery-BNEYQsAf.js → agent-update-delivery-B_YIZcgf.js} +10 -37
- package/dist/api/schema.d.ts +609 -104
- package/dist/api/schema.js +6 -6
- package/dist/api.js +373 -469
- package/dist/{app-D_bAXRDe.d.ts → app-MoNAsVV5.d.ts} +52 -28
- package/dist/app.d.ts +1 -1
- package/dist/app.js +177 -132
- package/dist/catalog-runtime-DfSpJZdY.js +6 -0
- package/dist/{change-record-Bqsa5ZXE.d.ts → change-record-BzJgLsv7.d.ts} +60 -1
- package/dist/{adapter-context-BlSGE44V.js → channel-access-j-YAVYK4.js} +2 -42
- package/dist/{chat-core-engine-CxkwRpn9.js → chat-core-engine-aH85nEHv.js} +4 -3
- package/dist/{child-message--2G3Ft26.js → child-message-DHjQLEd1.js} +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.js +5 -4
- package/dist/cli/snapshot-create.js +5 -2
- package/dist/cli/upgrade.js +27 -5
- package/dist/config-CHQ8X251.js +2422 -0
- package/dist/{continue-in-slack-BGKjIdFp.js → continue-in-slack-D-FZ8Fin.js} +2 -3
- package/dist/{conversation-feed-Sl8lKKmR.js → conversation-feed--9S0_PXL.js} +9 -4
- package/dist/{proxy-path-Dc-0jXGi.js → conversation-privacy-B1uXn5sf.js} +2 -16
- package/dist/{conversation-turn-BoLK9i6g.js → conversation-turn-BUE_7xaN.js} +102 -172
- package/dist/{create-BOycVH9h.js → create-DoDIYgtZ.js} +12 -10
- package/dist/{credential-sync-Mn4OdkEh.js → credential-sync-BJOqGnjV.js} +17 -12
- package/dist/{db-DXTOYRzR.js → db-BFmyYZtJ.js} +20276 -27398
- package/dist/{deployment-CG3TchWh.js → deployment-DXq9ZLU4.js} +17 -15
- package/dist/{engine-context-dyWlfNdD.js → engine-context-CgQ7mlHt.js} +264 -50
- package/dist/{html-CfXEwl_h.js → html-B3VKTGbJ.js} +6 -2
- package/dist/instrumentation.js +15 -7
- package/dist/{job-runner-CySgpi9v.js → job-runner-A1lCkybD.js} +397 -22
- package/dist/{lineage-tRTOcrsL.js → lineage-Bktb0UcV.js} +1 -1
- package/dist/{list-DXBz8SYL.js → list-Bxvg5wXf.js} +260 -698
- package/dist/{logging-czs0nqLC.js → logging--smS7XRK.js} +2 -2
- package/dist/{mailbox-turn-79Nv1JXv.js → mailbox-turn-uSXhUFc9.js} +648 -2957
- package/dist/{message-BTox2Cmb.js → message-BNenhsmB.js} +12 -22
- package/dist/{model-input-IRGa98V7.js → model-input-BReSnwHp.js} +3 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +20 -6
- package/dist/{oauth-callback-server-NXK7AlBp.js → oauth-callback-server-CE4soEIY.js} +2 -2
- package/dist/{oauth-relay-6NBPSpFE.js → oauth-relay-C36gX1gH.js} +2 -2
- package/dist/{package-discovery-BI6T_RkD.js → package-discovery-DD9vencX.js} +1 -50
- package/dist/{parent-result-Dg6P6roR.js → parent-result-Ck1rFYRQ.js} +93 -106
- package/dist/{plugins-BXMdNdyA.js → plugins-D_Ru4CWc.js} +1 -1
- package/dist/profile-BQ-iBDsZ.js +4657 -0
- package/dist/{transcript-BHhJVY0P.js → prompt-Dv7gkpD6.js} +97 -103
- package/dist/proxy-path-BHYoKZdq.js +15 -0
- package/dist/registry-iXMT5Jmh.js +3279 -0
- package/dist/reports-WKHfGTsU.js +195 -0
- package/dist/{resolve-BUFkmxkT.js → resolve-tony4ibz.js} +9 -29
- package/dist/{result-DfATzX77.js → result-Bta_dlWa.js} +42 -117
- package/dist/run-conversation-DL6ru7iW.js +336 -0
- package/dist/{runner-CmKP3inb.js → runner-BstDRbD9.js} +7 -7
- package/dist/{sandbox-egress-signals-DYo5BsM7.js → sandbox-egress-signals-oSJMJOnn.js} +1 -1
- package/dist/{schema-DrBMdPmv.js → schema-DfqrHACA.js} +67 -84
- package/dist/sender-actors-CPglLd5R.js +83 -0
- package/dist/{service-account-CxTX7nnR.js → service-account-CTV_jaNu.js} +3 -1
- package/dist/{skills-BlHUDj7k.js → skills-BCEU41zM.js} +4 -4
- package/dist/{slack-conversation-unfurl-Dhe3lB1U.js → slack-conversation-unfurl-DxVmhbGP.js} +7 -6
- package/dist/{spawn-CfvlFdfz.js → spawn-frczVPIr.js} +11 -8
- package/dist/{system-prompt-table-CDCYVwqN.js → system-prompt-table-CiXy0eNR.js} +91 -70
- package/dist/{task-runner-DcdQJd9e.js → task-runner-C9Yc2_ae.js} +35 -49
- package/dist/{thread-context-DF5uDcWN.js → thread-context-CqZDKErp.js} +6 -6
- package/dist/topics-SRN7IVX-.js +24 -0
- package/dist/turn-membership-CENFf3kI.js +856 -0
- package/dist/{turn-wake-um5Ubd4m.js → turn-wake-BhloiI2h.js} +4 -5
- package/dist/{media-Cr9pGkzr.js → types-C4iC-IMC.js} +819 -777
- package/dist/user-customization-CvfuY9Eo.js +93 -0
- package/dist/users-ByG5RCEJ.js +181 -0
- package/dist/{validation-CJyuOPD2.js → validation-8gjfR91V.js} +1 -1
- package/dist/{version-Bhe7RPIe.js → version-BeZhWWBE.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{worker-D8PRgUqr.js → worker-BqMQQNRk.js} +5 -4
- package/migrations/20261125171254_conversation_visibility/migration.sql +4 -0
- package/migrations/20261125171254_conversation_visibility/snapshot.json +67 -0
- package/migrations/20261125171257_conversation_visibility_backfill/migration.sql +25 -0
- package/migrations/20261125171257_conversation_visibility_backfill/snapshot.json +9 -0
- package/migrations/20261125213232_drop_versions_notify/migration.sql +19 -0
- package/migrations/20261125213232_drop_versions_notify/snapshot.json +9 -0
- package/migrations/20261125225138_conversation_kind_root_thread/migration.sql +23 -0
- package/migrations/20261125225138_conversation_kind_root_thread/snapshot.json +55 -0
- package/migrations/20261125225142_conversation_kind_root_thread_backfill/migration.sql +7 -0
- package/migrations/20261125225142_conversation_kind_root_thread_backfill/snapshot.json +9 -0
- package/migrations/20261126000151_conversation_event_message_role_seq_index/migration.sql +1 -0
- package/migrations/20261126000151_conversation_event_message_role_seq_index/snapshot.json +69 -0
- package/migrations/20261126012917_merge_leaves/migration.sql +2 -0
- package/migrations/20261126012917_merge_leaves/snapshot.json +12 -0
- package/migrations/20261126025226_drop_agent_invocations/migration.sql +6 -0
- package/migrations/20261126025226_drop_agent_invocations/snapshot.json +9 -0
- package/migrations/20261126033000_space_conversations_lead_children/migration.sql +155 -0
- package/migrations/20261126033000_space_conversations_lead_children/snapshot.json +9 -0
- package/migrations/20261126144620_drop_user_message_time_index/migration.sql +1 -0
- package/migrations/20261126144620_drop_user_message_time_index/snapshot.json +38 -0
- package/migrations/20261126153100_inbox_item_subjects/migration.sql +140 -0
- package/migrations/20261126153100_inbox_item_subjects/snapshot.json +9 -0
- package/migrations/20261126153103_inbox_item_subjects_not_null/migration.sql +12 -0
- package/migrations/20261126153103_inbox_item_subjects_not_null/snapshot.json +9 -0
- package/migrations/20261126153105_inbox_item_subject_indexes/migration.sql +1 -0
- package/migrations/20261126153105_inbox_item_subject_indexes/snapshot.json +9 -0
- package/migrations/20261126153108_automation_run_conversation_index/migration.sql +1 -0
- package/migrations/20261126153108_automation_run_conversation_index/snapshot.json +9 -0
- package/migrations/20261126153159_inbox_item_subjects_schema/migration.sql +4 -0
- package/migrations/20261126153159_inbox_item_subjects_schema/snapshot.json +437 -0
- package/migrations/20261126153259_inbox_questions/migration.sql +76 -0
- package/migrations/20261126153259_inbox_questions/snapshot.json +9 -0
- package/migrations/20261126153301_inbox_questions_valid/migration.sql +3 -0
- package/migrations/20261126153301_inbox_questions_valid/snapshot.json +9 -0
- package/migrations/20261126153343_inbox_questions_schema/migration.sql +5 -0
- package/migrations/20261126153343_inbox_questions_schema/snapshot.json +407 -0
- package/migrations/20261126154025_inbox_item_owners/migration.sql +74 -0
- package/migrations/20261126154025_inbox_item_owners/snapshot.json +9 -0
- package/migrations/20261126154048_inbox_item_open_subject_key_index/migration.sql +1 -0
- package/migrations/20261126154048_inbox_item_open_subject_key_index/snapshot.json +9 -0
- package/migrations/20261126154051_drop_inbox_item_owner_indexes/migration.sql +7 -0
- package/migrations/20261126154051_drop_inbox_item_owner_indexes/snapshot.json +9 -0
- package/migrations/20261126154121_inbox_item_owners_schema/migration.sql +8 -0
- package/migrations/20261126154121_inbox_item_owners_schema/snapshot.json +311 -0
- package/migrations/20261126175601_conversation_event_turn/migration.sql +5 -0
- package/migrations/20261126175601_conversation_event_turn/snapshot.json +103 -0
- package/migrations/20261126175614_conversation_event_turn_index/migration.sql +1 -0
- package/migrations/20261126175614_conversation_event_turn_index/snapshot.json +62 -0
- package/migrations/20261126230028_merge_leaves/migration.sql +2 -0
- package/migrations/20261126230028_merge_leaves/snapshot.json +12 -0
- package/migrations/20261126231932_space_lead_holds_name/migration.sql +46 -0
- package/migrations/20261126231932_space_lead_holds_name/snapshot.json +58 -0
- package/migrations/20261127001022_merge_leaves/migration.sql +2 -0
- package/migrations/20261127001022_merge_leaves/snapshot.json +12 -0
- package/package.json +5 -5
- package/skills/jr-rpc/SKILL.md +3 -5
- package/dist/direct-url-BYgYfuIy.js +0 -22
- package/dist/markers-CE0HMXWT.js +0 -67
- package/dist/people-Cegp1Iwq.js +0 -81
- package/dist/start-conversation-Uh8Sk1EF.js +0 -162
- package/dist/turn-session-routing-GtetHsdO.js +0 -1309
- package/dist/user-customization-B27StpVQ.js +0 -9
- package/dist/web-message-id-C6P83ans.js +0 -10
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
// src/chat/child-agents/results.ts
|
|
2
|
+
/**
|
|
3
|
+
* How a finished Turn of a child agent ended: the status of its agent
|
|
4
|
+
* update. A stop is not a result.
|
|
5
|
+
*/
|
|
6
|
+
const CHILD_AGENT_RESULTS = [
|
|
7
|
+
"done",
|
|
8
|
+
"blocked",
|
|
9
|
+
"failed"
|
|
10
|
+
];
|
|
1
11
|
// src/api/reporting-window.ts
|
|
2
12
|
/** Shared UTC day/hour/six-hour windows for dashboard activity series. */
|
|
3
13
|
const HOUR_MS = 36e5;
|
|
@@ -121,4 +131,26 @@ function sumUtcHoursIntoSixHours(args) {
|
|
|
121
131
|
rows: bySix
|
|
122
132
|
});
|
|
123
133
|
}
|
|
124
|
-
|
|
134
|
+
// src/chat/conversations/web-message-id.ts
|
|
135
|
+
/**
|
|
136
|
+
* Build the retry-stable Message id shared by web ingress and browser sends.
|
|
137
|
+
* Keep the existing hash and prefix so retries still address stored Messages.
|
|
138
|
+
*/
|
|
139
|
+
async function webMessageId(args) {
|
|
140
|
+
const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(`${args.conversationId}\u0000${args.idempotencyKey}`));
|
|
141
|
+
return `api-msg:${Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("").slice(0, 24)}`;
|
|
142
|
+
}
|
|
143
|
+
// src/chat/conversations/agent-status.ts
|
|
144
|
+
/**
|
|
145
|
+
* What an agent does now, for every agent that a list shows. The words are
|
|
146
|
+
* the Conversation execution status, plus `stopped` after a stop.
|
|
147
|
+
*/
|
|
148
|
+
const AGENT_STATUSES = [
|
|
149
|
+
"pending",
|
|
150
|
+
"running",
|
|
151
|
+
"paused",
|
|
152
|
+
"idle",
|
|
153
|
+
"failed",
|
|
154
|
+
"stopped"
|
|
155
|
+
];
|
|
156
|
+
export { fillUtcDays as a, startOfUtcHour as c, trailingUtcHourWindow as d, trailingUtcSixHourWindow as f, HOUR_MS as i, sumUtcHoursIntoSixHours as l, CHILD_AGENT_RESULTS as m, webMessageId as n, fillUtcHours as o, utcHourKey as p, DAY_MS as r, fillUtcSixHours as s, AGENT_STATUSES as t, trailingUtcDayWindow as u };
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
4
|
-
import { A as createEventInboundMessage,
|
|
5
|
-
import {
|
|
1
|
+
import { a as getDb, cl as CORE_EVENT_NAMESPACE, dl as eventGuidance, eo as getEventCatalog, i as getConversationStore, po as isAgentResourceType, vr as canReadConversation, wo as isQuietEvent, xo as deliverWatch } from "./db-BFmyYZtJ.js";
|
|
2
|
+
import { i as renderAgentResult, r as enqueueStarterUpdate } from "./result-Bta_dlWa.js";
|
|
3
|
+
import { m as readChildConversationSender } from "./parent-result-Ck1rFYRQ.js";
|
|
4
|
+
import { A as createEventInboundMessage, Nt as renderTaskInput, O as EVENT_WAIT_MS, U as enqueueAutomatedInput, Xn as EVENT_SYSTEM_ACTOR, k as addQuietEventNote, w as getPersonStopTurnId } from "./mailbox-turn-uSXhUFc9.js";
|
|
5
|
+
import { En as AGENT_UPDATE_EVENT_TYPE } from "./types-C4iC-IMC.js";
|
|
6
6
|
// src/chat/conversations/agent-update-delivery.ts
|
|
7
|
-
const QUIET_NOTE_TEXT_MAX_LENGTH = 1e3;
|
|
8
|
-
function quietSummary(update) {
|
|
9
|
-
const text = update.text.trim().slice(0, QUIET_NOTE_TEXT_MAX_LENGTH);
|
|
10
|
-
return text ? `The agent ended a Turn with no reply. Its note: ${text}` : "The agent ended a Turn with no reply.";
|
|
11
|
-
}
|
|
12
7
|
const SUMMARIES = {
|
|
13
8
|
blocked: "The conversation is blocked.",
|
|
14
9
|
done: "The conversation finished a Turn.",
|
|
@@ -19,8 +14,8 @@ const SUMMARIES = {
|
|
|
19
14
|
/**
|
|
20
15
|
* Deliver one agent update to each matched Watch whose Conversation may
|
|
21
16
|
* still read the target. The access check runs before the update text
|
|
22
|
-
* reaches the watcher. A
|
|
23
|
-
*
|
|
17
|
+
* reaches the watcher. A Watch that names the update as quiet gives a note
|
|
18
|
+
* that starts no Turn.
|
|
24
19
|
*/
|
|
25
20
|
async function deliverAgentUpdate(args) {
|
|
26
21
|
const conversation = await getConversationStore().get({ conversationId: args.conversationId });
|
|
@@ -52,12 +47,9 @@ async function deliverAgentUpdate(args) {
|
|
|
52
47
|
subscription: watch,
|
|
53
48
|
deliver: async (current) => {
|
|
54
49
|
if (!isAgentResourceType(current.resourceType) || !await canReadConversation(getDb(), current.conversationId, args.conversationId)) return false;
|
|
55
|
-
if (
|
|
50
|
+
if (isQuietEvent(current, eventType)) {
|
|
56
51
|
if (!turnConversations.has(current.conversationId)) await addQuietEventNote({
|
|
57
|
-
event
|
|
58
|
-
...event,
|
|
59
|
-
trustedSummary: quietSummary(args.update)
|
|
60
|
-
} : event,
|
|
52
|
+
event,
|
|
61
53
|
subscription: current
|
|
62
54
|
});
|
|
63
55
|
return true;
|
|
@@ -102,8 +94,7 @@ function starterMessageKey(key) {
|
|
|
102
94
|
* The stored parent edge is the starter's Watch: it never expires, and the
|
|
103
95
|
* parent's Turn runs as `actor`, never with more authority than the work
|
|
104
96
|
* that the update reports. A Conversation without a parent has no starter,
|
|
105
|
-
* and its update is not read.
|
|
106
|
-
* starts no Turn.
|
|
97
|
+
* and its update is not read.
|
|
107
98
|
*/
|
|
108
99
|
async function deliverToStarter(args) {
|
|
109
100
|
const { key } = args;
|
|
@@ -113,24 +104,6 @@ async function deliverToStarter(args) {
|
|
|
113
104
|
const update = await args.update();
|
|
114
105
|
const status = update?.status;
|
|
115
106
|
if (!update || !status || status === "waiting") return;
|
|
116
|
-
if (update.quiet) {
|
|
117
|
-
await addQuietEventNote({
|
|
118
|
-
event: {
|
|
119
|
-
eventKey: args.eventKey,
|
|
120
|
-
eventType: AGENT_UPDATE_EVENT_TYPE,
|
|
121
|
-
identifier: args.conversationId,
|
|
122
|
-
namespace: CORE_EVENT_NAMESPACE,
|
|
123
|
-
occurredAtMs: args.nowMs,
|
|
124
|
-
trustedSummary: quietSummary(update)
|
|
125
|
-
},
|
|
126
|
-
subscription: {
|
|
127
|
-
conversationId: sender.parentConversationId,
|
|
128
|
-
id: starterWatchId(args.conversationId),
|
|
129
|
-
label: `Child agent ${sender.agentName ?? sender.title ?? args.conversationId}`
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
107
|
const messageKey = starterMessageKey(key);
|
|
135
108
|
await enqueueStarterUpdate({
|
|
136
109
|
actor: args.actor ?? EVENT_SYSTEM_ACTOR,
|