@sentry/junior 0.267.0 → 0.268.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/{actor-DZSokpwj.js → actor-CP9K2Idu.js} +2 -1
- package/dist/{adapter-BybMEezj.js → adapter-04AcD2SO.js} +4 -6
- package/dist/{admin-DOs1_EiW.js → admin-DIU1QyG3.js} +1 -1
- package/dist/{agent-invocations-CxKldAeB.js → agent-invocations-C1RNOCs8.js} +2 -0
- package/dist/{agent-runner-DgNATN4D.js → agent-runner-CAYfFmU7.js} +4409 -3020
- package/dist/api/schema.d.ts +2 -5629
- package/dist/api/schema.js +4 -4
- package/dist/api.d.ts +1 -1
- package/dist/api.js +154 -32
- package/dist/{app-DAB3fzyp.d.ts → app-z6Uuyq3j.d.ts} +3 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +332 -98
- package/dist/{briefs-CWKjka7v.js → briefs-DQbV2jNr.js} +2 -2
- package/dist/{catalog-runtime-cMlAI5LY.js → catalog-runtime-BD9GSpc6.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-BjgbMawj.js → client-C1yDYjoS.js} +2 -2
- package/dist/{config-CdB6yJj5.js → config-DrTeF80T.js} +2 -2
- package/dist/{connections-RE_65jzK.js → connections-D46f8vvi.js} +10 -11
- package/dist/{conversation-privacy-BzgJC5k0.js → conversation-privacy-CxlOCiUo.js} +1 -1
- package/dist/{credential-sync-DhEGEpgq.js → credential-sync-sm9fegLY.js} +29 -34
- package/dist/{credentialed-CIGwoLU2.js → credentialed-lukuD-cc.js} +39 -13
- package/dist/db-BU4LQD8s.d.ts +6 -0
- package/dist/{executor-VYrx_K4w.js → executor-4vhvsMZJ.js} +78 -4
- package/dist/instrumentation.js +2 -2
- package/dist/{assistant-reply-CT7VcXQe.js → interruption-marker-CkncDT8d.js} +8 -2
- package/dist/{job-queue-C0BZSa7r.js → job-queue-In9QKz-I.js} +2 -2
- package/dist/{list-1XQP-o6K.js → list-BkgnXEEB.js} +298 -807
- package/dist/{logging-DuZ1A4ab.js → logging-DLSpkSSr.js} +1 -1
- package/dist/{message-NKSbbnA6.js → message-BObyg59s.js} +4 -4
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-qAHLPtml.js → oauth-callback-server-B-WbSdoH.js} +2 -2
- package/dist/{registry-FQutO926.js → registry-BgecKva0.js} +2 -2
- package/dist/{web-message-id-CJSUiksE.js → reporting-window-DVCD_10C.js} +1 -10
- package/dist/{resolve-Bk4yeuHy.js → resolve-Cpa4Bu1O.js} +3 -3
- package/dist/{result-B9e9ATOU.js → result-D3TSmZZ8.js} +8 -8
- package/dist/{runner-C3S2ObH-.js → runner-DS5OKhEp.js} +10 -10
- package/dist/{sandbox-egress-signals-DqpGzzMB.js → sandbox-egress-signals-CnDjY5rx.js} +1 -1
- package/dist/{schema-X7Fj4fv1.js → schema-0050HFnB.js} +80 -4
- package/dist/schema-ZngqcOWM.d.ts +5813 -0
- package/dist/{service-account-Do30HUNv.js → service-account-CKV2WTY7.js} +3 -3
- package/dist/{service-account-BQasl-qq.js → service-account-DGjnDw9y.js} +3 -3
- package/dist/{session-stop-DkOjt46_.js → session-stop-Dam1EI7B.js} +494 -18
- package/dist/{skills-CQHrwfOa.js → skills-CfAnfImD.js} +2 -2
- package/dist/{spawn-BHuqN14f.js → spawn-cmq9p4Ly.js} +2 -2
- package/dist/{store-6EetVP-m.js → store-C5PN02QO.js} +4 -4
- package/dist/{store-B8CABbmR.d.ts → store-xMuuXRE0.d.ts} +13 -7
- package/dist/{store-DvNZIsCr.js → store-zPEoJPBB.js} +3 -3
- package/dist/{task-queue-B0DLgd2P.js → task-queue-_mf28dSu.js} +3 -3
- package/dist/{task-runner-B-PD_JOj.js → task-runner-DMI2prDO.js} +11 -12
- package/dist/{tasks-0ilmuCux.js → tasks-SB9z-VTU.js} +124 -21
- package/dist/{thread-state-DRmdJ2QN.js → thread-state-BbbPh0Sn.js} +8 -18
- package/dist/{turn-failure-response-G11cs2gE.js → turn-failure-response-BKKmnMB5.js} +10 -15
- package/dist/{turn-lifecycle-OzLIwvi1.js → turn-lifecycle-oP0kVeGz.js} +1 -1
- package/dist/{validation-CxEmt1id.js → validation--JsAGLwc.js} +1 -1
- package/dist/{version-Bapedn4A.js → version-jHwJp4hC.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DrN3oC2X.js → viewer-CpXTGlep.js} +323 -235
- package/dist/{user-input-request-BDFBdF8r.js → web-message-id-DlHNANtd.js} +17 -1
- package/dist/{work-DUQoNcqP.js → work-3N-GHY9m.js} +10 -10
- package/dist/{worker-D1l4Ugk0.js → worker-CCdbcItd.js} +6 -6
- package/migrations/0065_user_customization.sql +1 -0
- package/migrations/0066_review_items.sql +53 -0
- package/migrations/0067_review_item_dedupe_tenant.sql +2 -0
- package/migrations/0068_review_item_slack_cards.sql +10 -0
- package/migrations/meta/0065_snapshot.json +3511 -0
- package/migrations/meta/0066_snapshot.json +4099 -0
- package/migrations/meta/0067_snapshot.json +3921 -0
- package/migrations/meta/0068_snapshot.json +4176 -0
- package/migrations/meta/_journal.json +29 -1
- package/package.json +5 -5
- package/dist/db-Bg-zC3r5.d.ts +0 -5
- package/dist/images-CecjXAAz.js +0 -64
- package/dist/turn-session-routing-Dyut9l7Y.js +0 -76
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as withScope, d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException } from "./sentry-MDkYAVPV.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-jHwJp4hC.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import {
|
|
3
|
-
import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-
|
|
4
|
-
import { n as enqueueAgentMessageToParent } from "./result-
|
|
5
|
-
import { r as enqueueAgentInvocation } from "./work-
|
|
2
|
+
import { Bt as actorFromRun, Vt as toolInvocationDestination } from "./agent-runner-CAYfFmU7.js";
|
|
3
|
+
import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-C5PN02QO.js";
|
|
4
|
+
import { n as enqueueAgentMessageToParent } from "./result-D3TSmZZ8.js";
|
|
5
|
+
import { r as enqueueAgentInvocation } from "./work-3N-GHY9m.js";
|
|
6
6
|
// src/chat/agent-invocations/message.ts
|
|
7
7
|
var message_exports = /* @__PURE__ */ __exportAll({ bindMessageAgent: () => bindMessageAgent });
|
|
8
8
|
/**
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions } from "./app-z6Uuyq3j.js";
|
|
2
2
|
import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
|
|
3
3
|
import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
|
|
4
4
|
type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
|
package/dist/nitro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, D as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, F as getDeploymentServiceVersion, M as JUNIOR_RETENTION_ROUTE, N as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_CRON_SCHEDULE, j as JUNIOR_RETENTION_CRON_SCHEDULE, k as JUNIOR_HEARTBEAT_ROUTE } from "./logging-
|
|
1
|
+
import { A as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, D as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, F as getDeploymentServiceVersion, M as JUNIOR_RETENTION_ROUTE, N as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_CRON_SCHEDULE, j as JUNIOR_RETENTION_CRON_SCHEDULE, k as JUNIOR_HEARTBEAT_ROUTE } from "./logging-DLSpkSSr.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJBompdd.js";
|
|
3
|
-
import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-
|
|
3
|
+
import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-In9QKz-I.js";
|
|
4
4
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-DOm9Y6qI.js";
|
|
5
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
5
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-_mf28dSu.js";
|
|
6
6
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as createUserTokenStore } from "./credentialed-
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { n as createUserTokenStore } from "./credentialed-lukuD-cc.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-sm9fegLY.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
// src/chat/local/oauth-callback-server.ts
|
|
5
5
|
const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-
|
|
2
|
-
import {
|
|
1
|
+
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-DLSpkSSr.js";
|
|
2
|
+
import { o as isUserActor, s as parseActorUserId } from "./actor-CP9K2Idu.js";
|
|
3
3
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJBompdd.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -224,13 +224,4 @@ function sumUtcHoursIntoSixHours(args) {
|
|
|
224
224
|
rows: bySix
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Build the retry-stable Message id shared by web ingress and browser sends.
|
|
230
|
-
* Keep the existing hash and prefix so retries still address stored Messages.
|
|
231
|
-
*/
|
|
232
|
-
async function webMessageId(args) {
|
|
233
|
-
const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(`${args.conversationId}\u0000${args.idempotencyKey}`));
|
|
234
|
-
return `api-msg:${Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("").slice(0, 24)}`;
|
|
235
|
-
}
|
|
236
|
-
export { skillReportsSchema as C, skillReportSchema as S, pluginPackageContentItemReportSchema as _, fillUtcHours as a, pluginsSchema as b, sumUtcHoursIntoSixHours as c, trailingUtcSixHourWindow as d, utcDayKey as f, pluginOperationalReportSchema as g, pluginOperationalReportFeedSchema as h, fillUtcDays as i, trailingUtcDayWindow as l, healthReportSchema as m, DAY_MS as n, fillUtcSixHours as o, utcHourKey as p, HOUR_MS as r, startOfUtcHour as s, webMessageId as t, trailingUtcHourWindow as u, pluginPackageContentReportSchema as v, runtimeInfoReportSchema as x, pluginSchema as y };
|
|
227
|
+
export { skillReportsSchema as S, pluginPackageContentReportSchema as _, fillUtcSixHours as a, runtimeInfoReportSchema as b, trailingUtcDayWindow as c, utcDayKey as d, utcHourKey as f, pluginPackageContentItemReportSchema as g, pluginOperationalReportSchema as h, fillUtcHours as i, trailingUtcHourWindow as l, pluginOperationalReportFeedSchema as m, HOUR_MS as n, startOfUtcHour as o, healthReportSchema as p, fillUtcDays as r, sumUtcHoursIntoSixHours as s, DAY_MS as t, trailingUtcSixHourWindow as u, pluginSchema as v, skillReportSchema as x, pluginsSchema as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
2
|
-
import {
|
|
3
|
-
import { i as getStateAdapter } from "./adapter-
|
|
1
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-DLSpkSSr.js";
|
|
2
|
+
import { Cn as runNonInteractiveCommand, F as getSandboxProvider, N as isStale, j as create, kn as SANDBOX_WORKSPACE_ROOT, un as sleep, wn as SANDBOX_COMMAND_PATH } from "./credentialed-lukuD-cc.js";
|
|
3
|
+
import { i as getStateAdapter } from "./adapter-04AcD2SO.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as createActor } from "./actor-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
2
|
+
import { Xt as listTurnSummaries, Yt as getTurnRecord } from "./tasks-SB9z-VTU.js";
|
|
3
|
+
import { t as createActor } from "./actor-CP9K2Idu.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-BgecKva0.js";
|
|
5
|
+
import { At as listUnreportedSiblingAgents } from "./agent-runner-CAYfFmU7.js";
|
|
6
6
|
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-BW9jFsqZ.js";
|
|
7
|
-
import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-
|
|
8
|
-
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-
|
|
9
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
10
|
-
import { r as enqueueAgentInvocation } from "./work-
|
|
7
|
+
import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-C5PN02QO.js";
|
|
8
|
+
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-Dam1EI7B.js";
|
|
9
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-zPEoJPBB.js";
|
|
10
|
+
import { r as enqueueAgentInvocation } from "./work-3N-GHY9m.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
|
|
13
13
|
// src/chat/conversations/web-mailbox.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import {
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
1
|
+
import { At as upsertConversationMessage, Dt as normalizeConversationText, Et as markConversationMessage, Gt as saveTurnCheckpoint, In as persistWithRetry, K as commitAcceptedReply, Ot as recordDeliveredAssistantMessage, Pt as authorizationId, Z as loadProjection, ft as hydrateConversationMessages, it as recordAuthorizationCompleted, pt as persistConversationMessages, xt as buildConversationContext } from "./tasks-SB9z-VTU.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-DLSpkSSr.js";
|
|
3
|
+
import { d as getConversationEventStore, p as getConversationStore } from "./viewer-CpXTGlep.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-BgecKva0.js";
|
|
5
5
|
import { R as messageCardText } from "./conversation-DSo310Ps.js";
|
|
6
|
-
import { X as markTurnFailed, Z as startActiveTurn } from "./store-
|
|
7
|
-
import {
|
|
8
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
9
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
10
|
-
import { n as getPersistedSandboxState, o as
|
|
11
|
-
import {
|
|
6
|
+
import { X as markTurnFailed, Z as startActiveTurn } from "./store-C5PN02QO.js";
|
|
7
|
+
import { r as getAssistantReplyText } from "./interruption-marker-CkncDT8d.js";
|
|
8
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DMI2prDO.js";
|
|
9
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-oP0kVeGz.js";
|
|
10
|
+
import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BbbPh0Sn.js";
|
|
11
|
+
import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-BKKmnMB5.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
14
14
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { xt as sandboxEgressSignalsResponseSchema } from "./credentialed-lukuD-cc.js";
|
|
2
2
|
// 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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-
|
|
1
|
+
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-C1RNOCs8.js";
|
|
2
2
|
import { E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, O as conversationUsageSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-DSo310Ps.js";
|
|
3
|
-
import "./
|
|
3
|
+
import { s as userInputRequestSchema } from "./web-message-id-DlHNANtd.js";
|
|
4
4
|
import "./automation-CmeFBSEh.js";
|
|
5
|
-
import {
|
|
5
|
+
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours } from "./reporting-window-DVCD_10C.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
8
8
|
// src/api/schema/common.ts
|
|
@@ -468,6 +468,82 @@ const serviceAccountListSchema = z.object({ serviceAccounts: z.array(serviceAcco
|
|
|
468
468
|
const serviceAccountParamsSchema = z.object({ provider: z.string().regex(/^[a-z][a-z0-9-]*$/).max(64) }).strict();
|
|
469
469
|
const startServiceAccountSignInResponseSchema = z.object({ authorizationUrl: z.string().url() }).strict();
|
|
470
470
|
const disconnectServiceAccountResponseSchema = z.object({ disconnected: z.literal(true) }).strict();
|
|
471
|
+
// src/api/schema/review-item.ts
|
|
472
|
+
const answerSchema = z.object({
|
|
473
|
+
other: z.string().max(4e3).optional(),
|
|
474
|
+
requestId: z.string().min(1),
|
|
475
|
+
values: z.record(z.string(), z.array(z.string().max(4e3)).max(20))
|
|
476
|
+
}).strict();
|
|
477
|
+
const personSchema = z.object({
|
|
478
|
+
displayName: z.string().min(1).optional(),
|
|
479
|
+
email: z.string().min(1),
|
|
480
|
+
userId: z.string().min(1)
|
|
481
|
+
}).strict();
|
|
482
|
+
/** One Review item as the viewer sees it. */
|
|
483
|
+
const reviewItemSchema = z.object({
|
|
484
|
+
addedByConversationId: z.string().min(1),
|
|
485
|
+
answer: answerSchema.optional(),
|
|
486
|
+
assignedToEveryone: z.boolean(),
|
|
487
|
+
assignees: z.array(personSchema),
|
|
488
|
+
automationId: z.string().min(1).optional(),
|
|
489
|
+
body: z.string(),
|
|
490
|
+
/** True when the viewer can take, submit, complete, or dismiss it. */
|
|
491
|
+
canAct: z.boolean(),
|
|
492
|
+
/** True when the viewer can act and is not already the only assignee. */
|
|
493
|
+
canTake: z.boolean(),
|
|
494
|
+
closeReason: z.string().min(1).optional(),
|
|
495
|
+
closedAt: z.string().datetime().optional(),
|
|
496
|
+
/** Unset for an open item, or when an agent closed it. */
|
|
497
|
+
closedBy: personSchema.optional(),
|
|
498
|
+
conversationIds: z.array(z.string().min(1)),
|
|
499
|
+
createdAt: z.string().datetime(),
|
|
500
|
+
id: z.string().min(1),
|
|
501
|
+
kind: z.enum(["notice", "action"]),
|
|
502
|
+
request: userInputRequestSchema.optional(),
|
|
503
|
+
status: z.enum([
|
|
504
|
+
"open",
|
|
505
|
+
"done",
|
|
506
|
+
"dismissed"
|
|
507
|
+
]),
|
|
508
|
+
subject: z.object({
|
|
509
|
+
id: z.string().min(1),
|
|
510
|
+
title: z.string().min(1).optional(),
|
|
511
|
+
url: z.string().min(1).optional()
|
|
512
|
+
}).strict().optional(),
|
|
513
|
+
title: z.string().min(1),
|
|
514
|
+
updatedAt: z.string().datetime(),
|
|
515
|
+
visibility: z.enum(["public", "private"])
|
|
516
|
+
}).strict();
|
|
517
|
+
/** Review desk list filters. */
|
|
518
|
+
const reviewItemListQuerySchema = z.object({
|
|
519
|
+
/** `true` lists done and dismissed items instead of open ones. */
|
|
520
|
+
archived: z.enum(["true", "false"]).optional(),
|
|
521
|
+
conversationId: z.string().min(1).optional(),
|
|
522
|
+
q: z.string().trim().max(200).optional(),
|
|
523
|
+
view: z.enum([
|
|
524
|
+
"mine",
|
|
525
|
+
"everyone",
|
|
526
|
+
"all"
|
|
527
|
+
]).optional()
|
|
528
|
+
}).strict();
|
|
529
|
+
const reviewItemListSchema = z.object({ items: z.array(reviewItemSchema) }).strict();
|
|
530
|
+
/** Open Review items that wait on the viewer. */
|
|
531
|
+
const reviewItemCountSchema = z.object({
|
|
532
|
+
/** Open items assigned to the viewer as a User. */
|
|
533
|
+
mine: z.number().int().nonnegative() }).strict();
|
|
534
|
+
/** Conversations with an open item assigned to the viewer or Everyone. */
|
|
535
|
+
const reviewItemWaitingConversationsSchema = z.object({ conversationIds: z.array(z.string().min(1)) }).strict();
|
|
536
|
+
const reviewItemParamsSchema = z.object({ id: z.string().min(1) }).strict();
|
|
537
|
+
/** One person action on a Review item. */
|
|
538
|
+
const reviewItemActionSchema = z.discriminatedUnion("action", [
|
|
539
|
+
z.object({ action: z.literal("take") }).strict(),
|
|
540
|
+
z.object({ action: z.literal("complete") }).strict(),
|
|
541
|
+
z.object({ action: z.literal("dismiss") }).strict(),
|
|
542
|
+
z.object({
|
|
543
|
+
action: z.literal("submit"),
|
|
544
|
+
answer: answerSchema.omit({ requestId: true })
|
|
545
|
+
}).strict()
|
|
546
|
+
]);
|
|
471
547
|
// src/api/schema/workspace.ts
|
|
472
548
|
const workspaceRepoInputSchema = z.object({
|
|
473
549
|
provider: z.string(),
|
|
@@ -527,4 +603,4 @@ const statsReportSchema = z.object({
|
|
|
527
603
|
windowEnd: z.string(),
|
|
528
604
|
windowStart: z.string()
|
|
529
605
|
}).strict();
|
|
530
|
-
export {
|
|
606
|
+
export { conversationWatchSchema as $, personParamsSchema as A, connectionListSchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationParamsSchema as F, codeActivityDaySchema as G, connectionSchema as H, activityDays as I, codeOverviewReportSchema as J, codeChangeSummaryReportSchema as K, activityHours as L, locationActivityDayReportSchema as M, locationDetailReportSchema as N, actorDirectoryReportSchema as O, locationDirectoryReportSchema as P, codeRepositorySummarySchema as Q, activitySixHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, disconnectConnectionResponseSchema as U, connectionParamsSchema as V, startConnectionResponseSchema as W, codeRepositoryParamsSchema as X, codePersonReportSchema as Y, codeRepositoryReportSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, apiErrorSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, reviewItemCountSchema as d, conversationWatchesReportSchema as et, reviewItemListQuerySchema as f, reviewItemWaitingConversationsSchema as g, reviewItemSchema as h, deleteWorkspaceResponseSchema as i, conversationStatsReportSchema as it, personalSpendReportSchema as j, actorProfileReportSchema as k, workspaceSchema as l, reviewItemParamsSchema as m, statsReportSchema as n, conversationChildAgentsReportSchema as nt, workspaceListSchema as o, reviewItemListSchema as p, codeChangeSummarySchema as q, baselineSnapshotSchema as r, stopConversationTurnResponseSchema as rt, workspaceParamsSchema as s, statSchema as t, conversationChildAgentSchema as tt, reviewItemActionSchema as u, serviceAccountListSchema as v, personalTokenListSchema as w, startServiceAccountSignInResponseSchema as x, serviceAccountParamsSchema as y, dailyConversationActivitySchema as z };
|