@sentry/junior-plugin-api 0.203.0 → 0.204.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/index.d.ts +11 -1
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,15 @@ declare const destinationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
55
55
|
platform: z.ZodLiteral<"local">;
|
|
56
56
|
conversationId: z.ZodString;
|
|
57
57
|
}, z.core.$strict>], "platform">;
|
|
58
|
+
/** One visible effect after successful automated work. */
|
|
59
|
+
declare const taskOutcomeSchema: z.ZodObject<{
|
|
60
|
+
action: z.ZodLiteral<"send_message">;
|
|
61
|
+
destination: z.ZodObject<{
|
|
62
|
+
platform: z.ZodLiteral<"slack">;
|
|
63
|
+
teamId: z.ZodString;
|
|
64
|
+
channelId: z.ZodString;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
}, z.core.$strict>;
|
|
58
67
|
/** Runtime-owned Slack input Source. */
|
|
59
68
|
declare const slackSourceSchema: z.ZodObject<{
|
|
60
69
|
kind: z.ZodLiteral<"slack">;
|
|
@@ -676,6 +685,7 @@ type DestinationVisibility = z.output<typeof destinationVisibilitySchema>;
|
|
|
676
685
|
type DispatchOptions = z.output<typeof dispatchOptionsSchema>;
|
|
677
686
|
/** Compact destination-visible context explaining what produced a reply. */
|
|
678
687
|
type ReplyAttribution = z.output<typeof replyAttributionSchema>;
|
|
688
|
+
type TaskOutcome = z.output<typeof taskOutcomeSchema>;
|
|
679
689
|
interface DispatchResult {
|
|
680
690
|
id: string;
|
|
681
691
|
status: "created" | "already_exists";
|
|
@@ -2024,4 +2034,4 @@ interface PluginRegistration extends PluginRegistrationInput {
|
|
|
2024
2034
|
/** Define one Junior plugin registration for app and build-time wiring. */
|
|
2025
2035
|
declare function defineJuniorPlugin(plugin: PluginRegistrationInput): PluginRegistration;
|
|
2026
2036
|
|
|
2027
|
-
export { type Actor, type AfterMcpToolHookContext, type AgentInvocationSource, type ApiRouteRegistrationHookContext, type BeforeToolExecuteHookContext, type CodeChangeInput, type CodeChangePublisher, type CodeChangeState, type ConversationAnnotation, type ConversationAnnotationInput, type ConversationEventPresentation, type ConversationSidebarAnnotation, type ConversationSidebarHookContext, type ConversationSidebarResult, type DefinedConversationEvent, type Destination, type DestinationVisibility, type Dispatch, type DispatchOptions, type DispatchResult, EgressAuthRequired, type EgressHookContext, EgressPolicyDenied, type EgressResponseHookContext, type EventTaskSource, type FormatMarkdownHookContext, type HeartbeatHookContext, type HeartbeatResult, type Identity, type InvocationContext, type IssueCredentialHookContext, type LocalActor, type LocalDestination, type LocalInvocationContext, type LocalSource, type Location, type OperationalReportHookContext, type Platform, type PluginAnnotations, type PluginApiRouteRequestContext, type PluginAuthorization, type PluginCliActionCommand, type PluginCliActionContext, type PluginCliActionHandler, type PluginCliCommandDefinition, type PluginCliDefinition, type PluginCliHost, type PluginCliIo, type PluginContext, type PluginConversationAnnotations, type PluginConversationEventCostDay, type PluginConversationEventDefinition, type PluginConversationEventStats, type PluginConversationEventValue, type PluginConversationEvents, type PluginCredentialActor, type PluginCredentialHeaderTransform, type PluginCredentialLease, type PluginCredentialResult, type PluginCredentialSubject, type PluginCredentials, type PluginDecision, type PluginDispatchSource, type PluginEgress, type PluginEgressRequest, type PluginEgressResponse, type PluginEmbedder, type PluginEnv, type PluginEnvVarDeclaration, type PluginGrant, type PluginGrantAccess, type PluginHooks, type PluginLogger, type PluginManifest, type PluginMcp, type PluginMcpAuthorizationPending, type PluginMcpConfig, type PluginMcpContent, type PluginMcpToolError, type PluginMcpToolResult, type PluginMcpToolSuccess, type PluginMetadata, type PluginModel, type PluginModelConfig, type PluginNpmRuntimeDependency, type PluginOAuthBearerCredentials, type PluginOAuthConfig, type PluginOperationalBarChartWidget, type PluginOperationalChartCategory, type PluginOperationalChartSeries, type PluginOperationalField, type PluginOperationalMetric, type PluginOperationalRecord, type PluginOperationalRecordSet, type PluginOperationalReport, type PluginOperationalReportContent, type PluginOperationalTone, type PluginProviderAccount, type PluginReadState, type PluginRegistration, type PluginRegistrationInput, type PluginResolvedCredentialUser, type PluginResourceEventToolContext, type PluginResourceEventType, type PluginResourceEvents, type PluginRoute, type PluginRouteApp, type PluginRouteHandler, type PluginRouteMethod, type PluginRunContext, type PluginRunTranscriptEntry, type PluginRunTranscriptProvenance, type PluginRuntimeDependency, type PluginRuntimePostinstallCommand, type PluginSandbox, type PluginState, type PluginStoredTokens, type PluginSystemRuntimeDependency, type PluginSystemRuntimeDependencyFromUrl, type PluginTaskContext, type PluginTaskDefinition, type PluginTasks, type PluginTokenStore, type PluginToolContent, type PluginToolDefinition, type PluginToolExecute, type PluginToolExecuteOptions, PluginToolInputError, type PluginToolOutput, type PluginToolOutputEnvelope, type PluginUserPageContent, type PluginUserPageContext, type PluginUserPageDefinition, type PluginUserPageInput, type PluginUserPageLink, type PluginUserTokenSlot, type PluginWorkspaceToolContext, type ProfileReportHookContext, type PromptContext, type PromptContextContribution, type PromptMessage, REQUIRED_TOOL_ANNOTATION_KEYS, RESOURCE_EVENT_DATA_MAX_JSON_BYTES, RESOURCE_EVENT_DATA_MAX_KEYS, RESOURCE_EVENT_GUIDANCE_MAX_LENGTH, RESOURCE_EVENT_SUMMARY_MAX_LENGTH, RESOURCE_EVENT_TEXT_MAX_LENGTH, type ReplyAttribution, type RequiredToolAnnotationKey, type ResolveOAuthAccountHookContext, type ResourceEvent, type ResourceEventData, type ResourceEventInput, type ResourceEventInvocationContext, type ResourceEventMatch, type ResourceEventMatchFields, type ResourceEventPublisher, type ResourceEventSource, type ResourceEventSubscriptionResult, type RouteRegistrationHookContext, type SandboxPrepareHookContext, type ScheduledTaskSource, type SlackActor, type SlackConversationLink, type SlackConversationLinkHookContext, type SlackDestination, type SlackInvocationContext, type SlackLocation, type SlackSource, type SlackToolRegistrationHookContext, type Source, type SourceVisibility, type SubscribableResource, type SystemActor, type SystemPromptContext, type ToolAnnotations, type ToolApprovalMetadata, type ToolApprovalMode, type ToolExposure, type ToolRegistrationHookContext, type UnfinishedWorkHookContext, type UnfinishedWorkResult, type User, type UserPromptContext, type UserPromptContribution, type WebActor, type WebInvocationContext, type WebSource, type WorkspacePrepareHookContext, actorSchema, actorUserIdSchema, agentInvocationSourceSchema, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createLocalSource, createResourceEventSource, createSlackSource, createWebSource, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, enforceEgressPolicy, eventTaskSourceSchema, getSourceKey, identitySchema, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, missingToolAnnotationKeys, nonBlankStringSchema, normalizeResourceEventIdentifier, platformSchema, pluginApiRouteRequestContextSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginGrantSchema, pluginProviderAccountSchema, pluginResourceEventTypeSchema, pluginResourceEventsSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, replyAttributionSchema, resourceEventDataSchema, resourceEventInputSchema, resourceEventMatchFieldSchema, resourceEventMatchFieldsSchema, resourceEventMatchSchema, resourceEventMatches, resourceEventSchema, resourceEventSourceSchema, resourceEventSubscriptionResultSchema, resourceEventTypeSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledTaskSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableResourceEventMatchKey, subscribableResourceSchema, systemActorSchema, toolApprovalModeSchema, userSchema, webActorSchema, webSourceSchema, zodTool };
|
|
2037
|
+
export { type Actor, type AfterMcpToolHookContext, type AgentInvocationSource, type ApiRouteRegistrationHookContext, type BeforeToolExecuteHookContext, type CodeChangeInput, type CodeChangePublisher, type CodeChangeState, type ConversationAnnotation, type ConversationAnnotationInput, type ConversationEventPresentation, type ConversationSidebarAnnotation, type ConversationSidebarHookContext, type ConversationSidebarResult, type DefinedConversationEvent, type Destination, type DestinationVisibility, type Dispatch, type DispatchOptions, type DispatchResult, EgressAuthRequired, type EgressHookContext, EgressPolicyDenied, type EgressResponseHookContext, type EventTaskSource, type FormatMarkdownHookContext, type HeartbeatHookContext, type HeartbeatResult, type Identity, type InvocationContext, type IssueCredentialHookContext, type LocalActor, type LocalDestination, type LocalInvocationContext, type LocalSource, type Location, type OperationalReportHookContext, type Platform, type PluginAnnotations, type PluginApiRouteRequestContext, type PluginAuthorization, type PluginCliActionCommand, type PluginCliActionContext, type PluginCliActionHandler, type PluginCliCommandDefinition, type PluginCliDefinition, type PluginCliHost, type PluginCliIo, type PluginContext, type PluginConversationAnnotations, type PluginConversationEventCostDay, type PluginConversationEventDefinition, type PluginConversationEventStats, type PluginConversationEventValue, type PluginConversationEvents, type PluginCredentialActor, type PluginCredentialHeaderTransform, type PluginCredentialLease, type PluginCredentialResult, type PluginCredentialSubject, type PluginCredentials, type PluginDecision, type PluginDispatchSource, type PluginEgress, type PluginEgressRequest, type PluginEgressResponse, type PluginEmbedder, type PluginEnv, type PluginEnvVarDeclaration, type PluginGrant, type PluginGrantAccess, type PluginHooks, type PluginLogger, type PluginManifest, type PluginMcp, type PluginMcpAuthorizationPending, type PluginMcpConfig, type PluginMcpContent, type PluginMcpToolError, type PluginMcpToolResult, type PluginMcpToolSuccess, type PluginMetadata, type PluginModel, type PluginModelConfig, type PluginNpmRuntimeDependency, type PluginOAuthBearerCredentials, type PluginOAuthConfig, type PluginOperationalBarChartWidget, type PluginOperationalChartCategory, type PluginOperationalChartSeries, type PluginOperationalField, type PluginOperationalMetric, type PluginOperationalRecord, type PluginOperationalRecordSet, type PluginOperationalReport, type PluginOperationalReportContent, type PluginOperationalTone, type PluginProviderAccount, type PluginReadState, type PluginRegistration, type PluginRegistrationInput, type PluginResolvedCredentialUser, type PluginResourceEventToolContext, type PluginResourceEventType, type PluginResourceEvents, type PluginRoute, type PluginRouteApp, type PluginRouteHandler, type PluginRouteMethod, type PluginRunContext, type PluginRunTranscriptEntry, type PluginRunTranscriptProvenance, type PluginRuntimeDependency, type PluginRuntimePostinstallCommand, type PluginSandbox, type PluginState, type PluginStoredTokens, type PluginSystemRuntimeDependency, type PluginSystemRuntimeDependencyFromUrl, type PluginTaskContext, type PluginTaskDefinition, type PluginTasks, type PluginTokenStore, type PluginToolContent, type PluginToolDefinition, type PluginToolExecute, type PluginToolExecuteOptions, PluginToolInputError, type PluginToolOutput, type PluginToolOutputEnvelope, type PluginUserPageContent, type PluginUserPageContext, type PluginUserPageDefinition, type PluginUserPageInput, type PluginUserPageLink, type PluginUserTokenSlot, type PluginWorkspaceToolContext, type ProfileReportHookContext, type PromptContext, type PromptContextContribution, type PromptMessage, REQUIRED_TOOL_ANNOTATION_KEYS, RESOURCE_EVENT_DATA_MAX_JSON_BYTES, RESOURCE_EVENT_DATA_MAX_KEYS, RESOURCE_EVENT_GUIDANCE_MAX_LENGTH, RESOURCE_EVENT_SUMMARY_MAX_LENGTH, RESOURCE_EVENT_TEXT_MAX_LENGTH, type ReplyAttribution, type RequiredToolAnnotationKey, type ResolveOAuthAccountHookContext, type ResourceEvent, type ResourceEventData, type ResourceEventInput, type ResourceEventInvocationContext, type ResourceEventMatch, type ResourceEventMatchFields, type ResourceEventPublisher, type ResourceEventSource, type ResourceEventSubscriptionResult, type RouteRegistrationHookContext, type SandboxPrepareHookContext, type ScheduledTaskSource, type SlackActor, type SlackConversationLink, type SlackConversationLinkHookContext, type SlackDestination, type SlackInvocationContext, type SlackLocation, type SlackSource, type SlackToolRegistrationHookContext, type Source, type SourceVisibility, type SubscribableResource, type SystemActor, type SystemPromptContext, type TaskOutcome, type ToolAnnotations, type ToolApprovalMetadata, type ToolApprovalMode, type ToolExposure, type ToolRegistrationHookContext, type UnfinishedWorkHookContext, type UnfinishedWorkResult, type User, type UserPromptContext, type UserPromptContribution, type WebActor, type WebInvocationContext, type WebSource, type WorkspacePrepareHookContext, actorSchema, actorUserIdSchema, agentInvocationSourceSchema, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createLocalSource, createResourceEventSource, createSlackSource, createWebSource, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, enforceEgressPolicy, eventTaskSourceSchema, getSourceKey, identitySchema, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, missingToolAnnotationKeys, nonBlankStringSchema, normalizeResourceEventIdentifier, platformSchema, pluginApiRouteRequestContextSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginGrantSchema, pluginProviderAccountSchema, pluginResourceEventTypeSchema, pluginResourceEventsSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, replyAttributionSchema, resourceEventDataSchema, resourceEventInputSchema, resourceEventMatchFieldSchema, resourceEventMatchFieldsSchema, resourceEventMatchSchema, resourceEventMatches, resourceEventSchema, resourceEventSourceSchema, resourceEventSubscriptionResultSchema, resourceEventTypeSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledTaskSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableResourceEventMatchKey, subscribableResourceSchema, systemActorSchema, taskOutcomeSchema, toolApprovalModeSchema, userSchema, webActorSchema, webSourceSchema, zodTool };
|
package/dist/index.js
CHANGED
|
@@ -150,6 +150,10 @@ var destinationSchema = z4.discriminatedUnion("platform", [
|
|
|
150
150
|
slackDestinationSchema,
|
|
151
151
|
localDestinationSchema
|
|
152
152
|
]);
|
|
153
|
+
var taskOutcomeSchema = z4.object({
|
|
154
|
+
action: z4.literal("send_message"),
|
|
155
|
+
destination: slackDestinationSchema
|
|
156
|
+
}).strict();
|
|
153
157
|
var slackSourceSchema = z4.object({
|
|
154
158
|
kind: z4.literal("slack"),
|
|
155
159
|
teamId: slackTeamIdSchema,
|
|
@@ -1142,6 +1146,7 @@ export {
|
|
|
1142
1146
|
stableResourceEventMatchKey,
|
|
1143
1147
|
subscribableResourceSchema,
|
|
1144
1148
|
systemActorSchema,
|
|
1149
|
+
taskOutcomeSchema,
|
|
1145
1150
|
toolApprovalModeSchema,
|
|
1146
1151
|
userSchema,
|
|
1147
1152
|
webActorSchema,
|