@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,6 +1,6 @@
|
|
|
1
1
|
import { n as JuniorPluginSet } from "./plugins-fBrz8PCV.js";
|
|
2
2
|
import { n as ConversationQueueMessage, r as ConversationWorkQueue, t as WaitUntilFn } from "./types-fnU7Xs__.js";
|
|
3
|
-
import "./change-record-
|
|
3
|
+
import "./change-record-BzJgLsv7.js";
|
|
4
4
|
import "./db-BpxcYXfD.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
|
@@ -11,12 +11,10 @@ import "ai";
|
|
|
11
11
|
import "@earendil-works/pi-ai";
|
|
12
12
|
import { Destination, Source, locationSchema } from "@sentry/junior-plugin-api";
|
|
13
13
|
import "drizzle-orm";
|
|
14
|
-
import "
|
|
15
|
-
import { StateAdapter } from "chat";
|
|
14
|
+
import "@earendil-works/pi-agent-core";
|
|
16
15
|
import "@modelcontextprotocol/sdk/client/auth.js";
|
|
17
16
|
import "@modelcontextprotocol/sdk/client";
|
|
18
|
-
import "
|
|
19
|
-
import "@earendil-works/pi-agent-core";
|
|
17
|
+
import { StateAdapter } from "chat";
|
|
20
18
|
import { SlackAdapter } from "@chat-adapter/slack";
|
|
21
19
|
interface BotModelConfig {
|
|
22
20
|
/** Model that runs every agent Turn. */
|
|
@@ -80,9 +78,6 @@ declare const EXPERIMENTAL_FEATURES: readonly ["operator-tools", "passive-routin
|
|
|
80
78
|
type ExperimentalFeature = (typeof EXPERIMENTAL_FEATURES)[number];
|
|
81
79
|
/** App-level opt-ins for unstable product features. */
|
|
82
80
|
type ExperimentalFeaturesConfig = Readonly<Partial<Record<ExperimentalFeature, boolean>>>;
|
|
83
|
-
interface SandboxResourceConfig {
|
|
84
|
-
vcpus?: number;
|
|
85
|
-
}
|
|
86
81
|
/** App settings for Memory. */
|
|
87
82
|
interface MemoryOptions {
|
|
88
83
|
/** Disable automatic prompt recall while keeping explicit memory tools available. */
|
|
@@ -92,9 +87,9 @@ interface MemoryOptions {
|
|
|
92
87
|
/** Model for extraction and supersession. Defaults to `AI_MEMORY_MODEL`, then the app structured model. */
|
|
93
88
|
modelId?: string;
|
|
94
89
|
}
|
|
90
|
+
type ConversationPrivacy = "public" | "private";
|
|
95
91
|
/** Validated Location associated with a Conversation. */
|
|
96
92
|
type Location = z.output<typeof locationSchema>;
|
|
97
|
-
type ConversationPrivacy = "public" | "private";
|
|
98
93
|
declare const storedSlackActorSchema: z.ZodObject<{
|
|
99
94
|
email: z.ZodOptional<z.ZodString>;
|
|
100
95
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -137,19 +132,25 @@ type Usage = z.output<typeof usageSchema>;
|
|
|
137
132
|
* whether to display a breakdown or a single aggregate.
|
|
138
133
|
*/
|
|
139
134
|
type AgentTurnUsage = Usage;
|
|
135
|
+
/**
|
|
136
|
+
* What an agent does now, for every agent that a list shows. The words are
|
|
137
|
+
* the Conversation execution status, plus `stopped` after a stop.
|
|
138
|
+
*/
|
|
139
|
+
declare const AGENT_STATUSES: readonly ["pending", "running", "paused", "idle", "failed", "stopped"];
|
|
140
|
+
type AgentStatus = (typeof AGENT_STATUSES)[number];
|
|
140
141
|
type ConversationSource = "api" | "internal" | "local" | "plugin" | "event" | "scheduler" | "slack" | "web";
|
|
141
142
|
/**
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* kind.
|
|
143
|
+
* What a Conversation is. An Automation run and a Lead have no parent. A Task
|
|
144
|
+
* is a child that only its parent messages. A `thread` is one that people
|
|
145
|
+
* can message, with or without a parent. A Conversation never changes kind.
|
|
146
146
|
*/
|
|
147
|
-
type ConversationKind = "
|
|
147
|
+
type ConversationKind = "thread" | "automation" | "lead" | "task";
|
|
148
148
|
/** The kind of a Conversation that has no parent. */
|
|
149
|
-
type TopLevelConversationKind = Exclude<ConversationKind,
|
|
149
|
+
type TopLevelConversationKind = Exclude<ConversationKind, "task">;
|
|
150
150
|
/** The kind of a Conversation that has a parent. */
|
|
151
|
-
type ChildConversationKind = "thread" | "task"
|
|
152
|
-
|
|
151
|
+
type ChildConversationKind = Extract<ConversationKind, "thread" | "task">;
|
|
152
|
+
/** Conversation execution status. */
|
|
153
|
+
type ConversationStatus = Exclude<AgentStatus, "stopped">;
|
|
153
154
|
/** Cumulative duration and usage that one Run reported. */
|
|
154
155
|
interface ConversationRunMetrics {
|
|
155
156
|
durationMs: number;
|
|
@@ -187,15 +188,28 @@ interface Conversation {
|
|
|
187
188
|
/** Immutable kind. Set when the Conversation is created. */
|
|
188
189
|
kind: ConversationKind;
|
|
189
190
|
lastActivityAtMs: number;
|
|
190
|
-
/**
|
|
191
|
+
/**
|
|
192
|
+
* Parent Conversation. Only `setConversationSpace` changes it: a
|
|
193
|
+
* Conversation in a Space is a child of the Space's Lead.
|
|
194
|
+
*/
|
|
191
195
|
parentConversationId?: string;
|
|
192
|
-
/**
|
|
196
|
+
/**
|
|
197
|
+
* Top-level Conversation of this work, read from storage: itself when it
|
|
198
|
+
* has no parent or its parent is a Lead. Its child agents keep it when it
|
|
199
|
+
* moves.
|
|
200
|
+
*/
|
|
193
201
|
rootConversationId?: string;
|
|
194
202
|
/**
|
|
195
|
-
* Space of a
|
|
196
|
-
* a
|
|
203
|
+
* Space of a Lead, or of a Lead's child, read from its Lead. Other
|
|
204
|
+
* Conversations have none: a child agent is in the Space of its root. Only
|
|
205
|
+
* a Lead stores it.
|
|
197
206
|
*/
|
|
198
207
|
spaceId?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Set on a child whose Location is its own, not a copy of its parent's,
|
|
210
|
+
* such as a Slack Conversation that moved into a Space.
|
|
211
|
+
*/
|
|
212
|
+
ownLocation?: true;
|
|
199
213
|
/**
|
|
200
214
|
* When the Conversation was archived for everyone. Only archive, auto-archive,
|
|
201
215
|
* pin, and a person's message write it; `upsertConversation` does not.
|
|
@@ -226,7 +240,10 @@ interface Conversation {
|
|
|
226
240
|
stoppedAtMs?: number | undefined;
|
|
227
241
|
/** Set while a root's Event Turn replies stay out of its Location. */
|
|
228
242
|
deliveryPausedAtMs?: number | undefined;
|
|
229
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* Visibility of the root. Undefined is private. As a write input, it is a
|
|
245
|
+
* live signal that replaces the visibility of the Destination row.
|
|
246
|
+
*/
|
|
230
247
|
visibility?: ConversationPrivacy;
|
|
231
248
|
}
|
|
232
249
|
/** Persist and read durable conversation metadata for reporting surfaces. */
|
|
@@ -320,7 +337,7 @@ interface ConversationStore {
|
|
|
320
337
|
sessionSource?: Source;
|
|
321
338
|
title?: string;
|
|
322
339
|
/**
|
|
323
|
-
* Kind of a new Conversation. Default `
|
|
340
|
+
* Kind of a new Conversation. Default `thread`. An existing Conversation
|
|
324
341
|
* keeps its kind.
|
|
325
342
|
*/
|
|
326
343
|
kind?: TopLevelConversationKind;
|
|
@@ -328,8 +345,9 @@ interface ConversationStore {
|
|
|
328
345
|
spaceId?: string | undefined;
|
|
329
346
|
/**
|
|
330
347
|
* Current visibility from its owner, such as a Slack event channel type. It
|
|
331
|
-
* replaces the visibility of the shared Destination row.
|
|
332
|
-
*
|
|
348
|
+
* replaces the visibility of the shared Destination row. A root keeps the
|
|
349
|
+
* first visibility that it gets. Omit it for saved values, such as
|
|
350
|
+
* visibility captured when an Automation was created.
|
|
333
351
|
*/
|
|
334
352
|
visibility?: ConversationPrivacy | undefined;
|
|
335
353
|
}): Promise<void>;
|
|
@@ -354,8 +372,9 @@ interface ConversationStore {
|
|
|
354
372
|
updatedAtMs: number;
|
|
355
373
|
/**
|
|
356
374
|
* Current visibility from its owner, such as a Slack event channel type. It
|
|
357
|
-
* replaces the visibility of the shared Destination row.
|
|
358
|
-
*
|
|
375
|
+
* replaces the visibility of the shared Destination row. A root keeps the
|
|
376
|
+
* first visibility that it gets. Omit it for saved values, such as
|
|
377
|
+
* visibility captured when an Automation was created.
|
|
359
378
|
*/
|
|
360
379
|
visibility?: ConversationPrivacy | undefined;
|
|
361
380
|
}): Promise<void>;
|
|
@@ -609,7 +628,12 @@ interface JuniorAppOptions extends BotModelConfig {
|
|
|
609
628
|
/** Direct plugin set override. Usually omitted when `juniorNitro()` uses a plugin module. */
|
|
610
629
|
plugins?: JuniorPluginSet;
|
|
611
630
|
/** Sandbox execution options. */
|
|
612
|
-
sandbox?:
|
|
631
|
+
sandbox?: {
|
|
632
|
+
/**
|
|
633
|
+
* vCPUs of each sandbox. Each vCPU adds 2 GB of memory. A Workspace vCPU
|
|
634
|
+
* count wins over it, and it wins over `SANDBOX_VCPUS`.
|
|
635
|
+
*/
|
|
636
|
+
vcpus?: number | undefined;
|
|
613
637
|
/**
|
|
614
638
|
* Egress domains allowed to carry Sentry trace propagation headers.
|
|
615
639
|
* Entries may be exact domains or leading wildcard domains such as
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MemoryOptions, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-
|
|
1
|
+
import { i as MemoryOptions, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-MoNAsVV5.js";
|
|
2
2
|
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-fBrz8PCV.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, type MemoryOptions, createApp, defineJuniorPlugins };
|