@sentry/junior 0.206.0 → 0.208.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-C9yuiZUF.js → agent-BfxfHsf1.js} +375 -346
- package/dist/{agent-hooks-DNjlz2A-.js → agent-hooks-CuGjLjmR.js} +224 -97
- package/dist/{agent-runner-E67lFrDG.js → agent-runner-Dz1PMKP0.js} +9 -9
- package/dist/api/schema.d.ts +39 -39
- package/dist/api/schema.js +2 -2
- package/dist/api.d.ts +1 -1
- package/dist/api.js +154 -154
- package/dist/{app-AxGmJHwK.d.ts → app-DfNrn_gS.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +185 -183
- package/dist/{auth-pause-state-MVZ6xvEK.js → auth-pause-state-Bjoh8wCy.js} +7 -7
- package/dist/{briefs-CvJFQvhJ.js → briefs-q_onrGmf.js} +3 -3
- package/dist/{catalog-runtime-TBR8n4e1.js → catalog-runtime-D8YUMNhb.js} +1 -1
- package/dist/{checkpoint-BY47jJCB.js → checkpoint-FKMcINix.js} +8 -8
- package/dist/cli/chat.js +13 -13
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-ceE7NtvC.js → client-bRyPqwAV.js} +4 -4
- package/dist/{config-CIE83sR2.js → config-EtF2uEaW.js} +6 -6
- package/dist/{context-B45_WqVX.js → context-Bplcgypl.js} +13 -13
- package/dist/{conversation-privacy-Auyq26XQ.js → conversation-privacy-whGaV2TG.js} +1 -1
- package/dist/{credential-sync-BO33aNQd.js → credential-sync-DM-EE1ey.js} +21 -21
- package/dist/{db-BeyXKJOI.d.ts → db-D74z7BZH.d.ts} +1 -1
- package/dist/{execution-stats-SiS2FLcv.js → execution-stats-C-f8zwMU.js} +77 -77
- package/dist/{executor-BfbYPW63.js → executor-BW5qp0jC.js} +43 -14
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-CyTc24Es.js → job-queue-BIHNIEIX.js} +1 -1
- package/dist/{logging-D37bayDc.js → logging-sNS84Yuu.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-BtfOeHTZ.js → oauth-callback-server-Co6D_yXP.js} +2 -2
- package/dist/{pending-auth-BPUzcs7n.js → pending-auth-CRJCt9Ux.js} +2 -2
- package/dist/{profile-CSixooTi.js → profile-BfLMVhWo.js} +4 -4
- package/dist/{prompt-3gqNY1Ka.js → prompt-x-0ZtTyb.js} +14 -14
- package/dist/{registry-DiR0-xRg.js → registry-Cyww_jnC.js} +2 -2
- package/dist/{resolve-Bn5q__9b.js → resolve-BApIFQXX.js} +2 -2
- package/dist/{runner-DFx3dIJH.js → runner-C9okx4GL.js} +10 -10
- package/dist/{sandbox-egress-signals-bwvjihxA.js → sandbox-egress-signals-BHfx0esj.js} +1 -1
- package/dist/{schema-8GXFfclK.js → schema-CwTeb-BF.js} +39 -39
- package/dist/{skills-BhM5qyCF.js → skills-DhL_wXEp.js} +2 -2
- package/dist/{spawn-Dk0PqdH6.js → spawn-msnzfE8_.js} +2 -2
- package/dist/{stats-DKRP4rsY.js → stats-Cq5w_Awk.js} +292 -268
- package/dist/{store-C5qxF2ac.d.ts → store-Det8MQ9g.d.ts} +1 -1
- package/dist/{task-queue-CdpTvu4R.js → task-queue-JfmWmpjS.js} +3 -3
- package/dist/{task-runner-alpjVSxQ.js → task-runner-Cm0gXoLH.js} +15 -15
- package/dist/{thread-state-CRK7aA41.js → thread-state-lw2QwQ-y.js} +5 -5
- package/dist/{turn-execution-XtyzIHog.js → turn-execution-C7K6lQp1.js} +3 -3
- package/dist/{turn-lifecycle-VbwZLfBv.js → turn-lifecycle-DVlJLwB0.js} +1 -1
- package/dist/{usage-D4A48Bdl.js → usage-BMuAlKIW.js} +2 -2
- package/dist/{validation-jn_46o4U.js → validation-BI-r3iQA.js} +1 -1
- package/dist/{version-DcfJxB4z.js → version-s6smK6lP.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-CsfLSfEs.js → web-authorization-C9MxPvXX.js} +1 -1
- package/dist/{web-input-BPp_sc7t.js → web-input-CwVlaLd0.js} +7 -109
- package/dist/{work-Di-ubSGg.js → work-BK0W1QAt.js} +9 -9
- package/dist/{worker-Cu_D5Mr8.js → worker-D-WWKHQD.js} +5 -5
- package/migrations/0041_automation_outcomes_backfill.sql +27 -0
- package/migrations/meta/0041_snapshot.json +3516 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { p as authorizationId } from "./agent-
|
|
2
|
-
import { S as withLogContext, u as logException, y as setTags } from "./logging-
|
|
3
|
-
import { t as credentialContextForActor } from "./context-
|
|
4
|
-
import {
|
|
5
|
-
import { $ as persistConversationMessages, P as commitAcceptedReply, Q as hydrateConversationMessages, R as loadProjection, W as recordAuthorizationCompleted, d as persistWithRetry, dt as recordDeliveredAssistantMessage, it as buildConversationContext, jt as stripRuntimeTurnContext, lt as markConversationMessage, pt as upsertConversationMessage, r as saveTurnCheckpoint, ut as normalizeConversationText } from "./checkpoint-
|
|
6
|
-
import { S as startActiveTurn, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-
|
|
7
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
8
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
9
|
-
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-
|
|
10
|
-
import { d as buildDeliveredTurnStatePatch, r as finalizeFailedTurnReplyWithEvent, t as completeAuthPauseTurn } from "./auth-pause-state-
|
|
1
|
+
import { p as authorizationId } from "./agent-BfxfHsf1.js";
|
|
2
|
+
import { S as withLogContext, u as logException, y as setTags } from "./logging-sNS84Yuu.js";
|
|
3
|
+
import { t as credentialContextForActor } from "./context-Bplcgypl.js";
|
|
4
|
+
import { Ht as getConversationEventStore, Wt as getConversationStore } from "./agent-hooks-CuGjLjmR.js";
|
|
5
|
+
import { $ as persistConversationMessages, P as commitAcceptedReply, Q as hydrateConversationMessages, R as loadProjection, W as recordAuthorizationCompleted, d as persistWithRetry, dt as recordDeliveredAssistantMessage, it as buildConversationContext, jt as stripRuntimeTurnContext, lt as markConversationMessage, pt as upsertConversationMessage, r as saveTurnCheckpoint, ut as normalizeConversationText } from "./checkpoint-FKMcINix.js";
|
|
6
|
+
import { S as startActiveTurn, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-CRJCt9Ux.js";
|
|
7
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-Cm0gXoLH.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-DVlJLwB0.js";
|
|
9
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-lw2QwQ-y.js";
|
|
10
|
+
import { d as buildDeliveredTurnStatePatch, r as finalizeFailedTurnReplyWithEvent, t as completeAuthPauseTurn } from "./auth-pause-state-Bjoh8wCy.js";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
13
13
|
//#region src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as sandboxEgressSignalsResponseSchema } from "./agent-
|
|
1
|
+
import { J as sandboxEgressSignalsResponseSchema } from "./agent-BfxfHsf1.js";
|
|
2
2
|
//#region src/chat/local/sandbox-egress-signals.ts
|
|
3
3
|
const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
4
4
|
const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
|
|
@@ -386,37 +386,37 @@ const createdPersonalTokenSchema = personalTokenMetadataSchema.extend({ token: z
|
|
|
386
386
|
const personalTokenParamsSchema = z.object({ id: z.string().uuid() }).strict();
|
|
387
387
|
const revokePersonalTokenResponseSchema = z.object({ revoked: z.literal(true) }).strict();
|
|
388
388
|
//#endregion
|
|
389
|
-
//#region src/api/schema/
|
|
390
|
-
const
|
|
389
|
+
//#region src/api/schema/automation.ts
|
|
390
|
+
const automationDestinationSchema = z.object({
|
|
391
391
|
channelId: z.string().min(1),
|
|
392
392
|
label: z.string().min(1),
|
|
393
393
|
teamId: z.string().min(1),
|
|
394
394
|
visibility: z.enum(["private", "public"])
|
|
395
395
|
}).strict();
|
|
396
|
-
/**
|
|
397
|
-
const
|
|
396
|
+
/** Automation run counts for the dashboard range control (24h/7d/30d/90d). */
|
|
397
|
+
const automationRunWindowsSchema = z.object({
|
|
398
398
|
1: z.number().int().nonnegative(),
|
|
399
399
|
7: z.number().int().nonnegative(),
|
|
400
400
|
30: z.number().int().nonnegative(),
|
|
401
401
|
90: z.number().int().nonnegative()
|
|
402
402
|
}).strict();
|
|
403
|
-
const
|
|
403
|
+
const automationSummaryBaseSchema = z.object({
|
|
404
404
|
createdAt: z.string().datetime(),
|
|
405
405
|
createdBy: z.string().min(1),
|
|
406
406
|
createdByEmail: z.string().trim().email().optional(),
|
|
407
|
-
destination:
|
|
407
|
+
destination: automationDestinationSchema,
|
|
408
408
|
id: z.string().min(1),
|
|
409
409
|
instruction: z.string().min(1),
|
|
410
410
|
lastConversationId: z.string().min(1).optional(),
|
|
411
411
|
lastRunAt: z.string().datetime().optional(),
|
|
412
412
|
ownedByViewer: z.boolean(),
|
|
413
|
-
runs:
|
|
413
|
+
runs: automationRunWindowsSchema,
|
|
414
414
|
outcomes: z.array(taskOutcomeSchema).max(5),
|
|
415
415
|
/** Short display title; falls back from instruction when unset. */
|
|
416
416
|
title: z.string().min(1),
|
|
417
417
|
totalRuns: z.number().int().nonnegative()
|
|
418
418
|
});
|
|
419
|
-
const
|
|
419
|
+
const scheduledAutomationSummarySchema = automationSummaryBaseSchema.extend({
|
|
420
420
|
kind: z.literal("scheduled"),
|
|
421
421
|
nextRunAt: z.string().datetime().optional(),
|
|
422
422
|
schedule: z.string().min(1),
|
|
@@ -426,42 +426,42 @@ const scheduledTaskSummarySchema = taskSummaryBaseSchema.extend({
|
|
|
426
426
|
"completed"
|
|
427
427
|
])
|
|
428
428
|
}).strict();
|
|
429
|
-
const
|
|
429
|
+
const eventAutomationSummarySchema = automationSummaryBaseSchema.extend({
|
|
430
430
|
events: z.array(z.string().min(1)).min(1),
|
|
431
431
|
kind: z.literal("event"),
|
|
432
432
|
resource: z.string().min(1),
|
|
433
433
|
source: z.string().min(1),
|
|
434
434
|
triggerAvailable: z.boolean()
|
|
435
435
|
}).strict();
|
|
436
|
-
const
|
|
436
|
+
const automationSummarySchema = z.discriminatedUnion("kind", [scheduledAutomationSummarySchema, eventAutomationSummarySchema]);
|
|
437
437
|
/** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) execution bucket key. */
|
|
438
|
-
const
|
|
439
|
-
/** One UTC day/hour of completed
|
|
440
|
-
const
|
|
438
|
+
const automationMetricBucketSchema = z.string().regex(/^\d{4}-\d{2}-\d{2}(T\d{2})?$/);
|
|
439
|
+
/** One UTC day/hour of completed automation executions stacked by automation type. */
|
|
440
|
+
const automationExecutionDaySchema = z.object({
|
|
441
441
|
/** Linked conversation spend for executions in this bucket. */
|
|
442
442
|
costUsd: z.number().finite().nonnegative(),
|
|
443
|
-
date:
|
|
443
|
+
date: automationMetricBucketSchema,
|
|
444
444
|
event: z.number().int().nonnegative(),
|
|
445
445
|
scheduled: z.number().int().nonnegative()
|
|
446
446
|
}).strict();
|
|
447
|
-
const
|
|
448
|
-
const
|
|
449
|
-
executionDays: z.array(
|
|
450
|
-
executionHours: z.array(
|
|
451
|
-
executionSixHours: z.array(
|
|
452
|
-
|
|
447
|
+
const automationListQuerySchema = z.object({ q: z.string().trim().max(200).optional() }).strict();
|
|
448
|
+
const automationListSchema = z.object({
|
|
449
|
+
executionDays: z.array(automationExecutionDaySchema),
|
|
450
|
+
executionHours: z.array(automationExecutionDaySchema).optional(),
|
|
451
|
+
executionSixHours: z.array(automationExecutionDaySchema).optional(),
|
|
452
|
+
automations: z.array(automationSummarySchema),
|
|
453
453
|
truncated: z.boolean()
|
|
454
454
|
}).strict();
|
|
455
|
-
const
|
|
455
|
+
const automationParamsSchema = z.object({
|
|
456
456
|
id: z.string().min(1),
|
|
457
457
|
kind: z.enum(["scheduled", "event"])
|
|
458
458
|
}).strict();
|
|
459
|
-
const
|
|
459
|
+
const automationExecutionStatusSchema = z.enum([
|
|
460
460
|
"blocked",
|
|
461
461
|
"completed",
|
|
462
462
|
"failed"
|
|
463
463
|
]);
|
|
464
|
-
const
|
|
464
|
+
const automationExecutionSchema = z.object({
|
|
465
465
|
conversationId: z.string().min(1).optional(),
|
|
466
466
|
/** Estimated model cost for the linked conversation, when known. */
|
|
467
467
|
costUsd: z.number().finite().nonnegative().optional(),
|
|
@@ -469,33 +469,33 @@ const taskExecutionSchema = z.object({
|
|
|
469
469
|
durationMs: z.number().finite().nonnegative().optional(),
|
|
470
470
|
executedAt: z.string().datetime(),
|
|
471
471
|
executionId: z.string().min(1),
|
|
472
|
-
status:
|
|
472
|
+
status: automationExecutionStatusSchema,
|
|
473
473
|
title: z.string().min(1).optional(),
|
|
474
474
|
/** Cumulative conversation token total, when known. */
|
|
475
475
|
totalTokens: z.number().int().nonnegative().optional()
|
|
476
476
|
}).strict();
|
|
477
|
-
/** One UTC day/hour of terminal executions for a single
|
|
478
|
-
const
|
|
477
|
+
/** One UTC day/hour of terminal executions for a single automation, stacked by status. */
|
|
478
|
+
const automationExecutionStatusDaySchema = z.object({
|
|
479
479
|
blocked: z.number().int().nonnegative(),
|
|
480
480
|
completed: z.number().int().nonnegative(),
|
|
481
|
-
date:
|
|
481
|
+
date: automationMetricBucketSchema,
|
|
482
482
|
failed: z.number().int().nonnegative()
|
|
483
483
|
}).strict();
|
|
484
|
-
const
|
|
485
|
-
executionDays: z.array(
|
|
486
|
-
executionHours: z.array(
|
|
487
|
-
executionSixHours: z.array(
|
|
488
|
-
executions: z.array(
|
|
489
|
-
|
|
484
|
+
const automationExecutionListSchema = z.object({
|
|
485
|
+
executionDays: z.array(automationExecutionStatusDaySchema),
|
|
486
|
+
executionHours: z.array(automationExecutionStatusDaySchema).optional(),
|
|
487
|
+
executionSixHours: z.array(automationExecutionStatusDaySchema).optional(),
|
|
488
|
+
executions: z.array(automationExecutionSchema),
|
|
489
|
+
automation: automationSummarySchema,
|
|
490
490
|
truncated: z.boolean()
|
|
491
491
|
}).strict();
|
|
492
|
-
const
|
|
492
|
+
const automationRunSchema = automationExecutionSchema.extend({
|
|
493
493
|
kind: z.enum(["scheduled", "event"]),
|
|
494
|
-
|
|
495
|
-
|
|
494
|
+
automationId: z.string().min(1),
|
|
495
|
+
automationTitle: z.string().min(1)
|
|
496
496
|
}).strict();
|
|
497
|
-
const
|
|
498
|
-
runs: z.array(
|
|
497
|
+
const automationRunListSchema = z.object({
|
|
498
|
+
runs: z.array(automationRunSchema),
|
|
499
499
|
truncated: z.boolean()
|
|
500
500
|
}).strict();
|
|
501
501
|
//#endregion
|
|
@@ -556,4 +556,4 @@ const statsReportSchema = z.object({
|
|
|
556
556
|
windowStart: z.string()
|
|
557
557
|
}).strict();
|
|
558
558
|
//#endregion
|
|
559
|
-
export { sumUtcHoursIntoSixHours as $, actorProfileReportSchema as A, dailyConversationActivitySchema as B, createPersonalTokenBodySchema as C, personalTokenParamsSchema as D, personalTokenMetadataSchema as E, locationDirectoryReportSchema as F, codePersonReportSchema as G, codeChangeSummaryReportSchema as H, locationParamsSchema as I, HOUR_MS as J, codeRepositorySummarySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, revokePersonalTokenResponseSchema as O, locationDetailReportSchema as P, startOfUtcHour as Q, activityHours as R,
|
|
559
|
+
export { sumUtcHoursIntoSixHours as $, actorProfileReportSchema as A, dailyConversationActivitySchema as B, createPersonalTokenBodySchema as C, personalTokenParamsSchema as D, personalTokenMetadataSchema as E, locationDirectoryReportSchema as F, codePersonReportSchema as G, codeChangeSummaryReportSchema as H, locationParamsSchema as I, HOUR_MS as J, codeRepositorySummarySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, revokePersonalTokenResponseSchema as O, locationDetailReportSchema as P, startOfUtcHour as Q, activityHours as R, scheduledAutomationSummarySchema as S, personalTokenListSchema as T, codeChangeSummarySchema as U, codeActivityDaySchema as V, codeOverviewReportSchema as W, fillUtcHours as X, fillUtcDays as Y, fillUtcSixHours as Z, automationRunListSchema as _, workspaceBodySchema as a, apiErrorSchema as at, automationSummarySchema as b, workspaceRepoSchema as c, automationExecutionSchema as d, trailingUtcDayWindow as et, automationExecutionStatusDaySchema as f, automationParamsSchema as g, automationListSchema as h, deleteWorkspaceResponseSchema as i, utcHourKey as it, personParamsSchema as j, actorDirectoryReportSchema as k, workspaceSchema as l, automationListQuerySchema as m, statsReportSchema as n, trailingUtcSixHourWindow as nt, workspaceListSchema as o, automationExecutionStatusSchema as p, DAY_MS as q, baselineSnapshotSchema as r, utcDayKey as rt, workspaceParamsSchema as s, statSchema as t, trailingUtcHourWindow as tt, automationExecutionListSchema as u, automationRunSchema as v, createdPersonalTokenSchema as w, eventAutomationSummarySchema as x, automationRunWindowsSchema as y, activitySixHours as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { f as logWarn } from "./logging-
|
|
2
|
+
import { f as logWarn } from "./logging-sNS84Yuu.js";
|
|
3
3
|
import { s as skillRoots } from "./package-discovery-7a9YqLhE.js";
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-D8YUMNhb.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { C as toolInvocationDestination, y as actorFromRun } from "./agent-runner-
|
|
3
|
-
import { n as createAndEnqueueAgentInvocation } from "./work-
|
|
2
|
+
import { C as toolInvocationDestination, y as actorFromRun } from "./agent-runner-Dz1PMKP0.js";
|
|
3
|
+
import { n as createAndEnqueueAgentInvocation } from "./work-BK0W1QAt.js";
|
|
4
4
|
//#region src/chat/agent-invocations/spawn.ts
|
|
5
5
|
var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
|
|
6
6
|
/** Bind a Run's Actor and credentials to new Agent invocations. */
|