@sentry/junior-plugin-api 0.203.0 → 0.205.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 +16 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ declare const slackDestinationSchema: z.ZodObject<{
|
|
|
40
40
|
platform: z.ZodLiteral<"slack">;
|
|
41
41
|
teamId: z.ZodString;
|
|
42
42
|
channelId: z.ZodString;
|
|
43
|
+
threadTs: z.ZodOptional<z.ZodString>;
|
|
43
44
|
}, z.core.$strict>;
|
|
44
45
|
/** Runtime-owned local CLI conversation address. */
|
|
45
46
|
declare const localDestinationSchema: z.ZodObject<{
|
|
@@ -51,10 +52,21 @@ declare const destinationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
51
52
|
platform: z.ZodLiteral<"slack">;
|
|
52
53
|
teamId: z.ZodString;
|
|
53
54
|
channelId: z.ZodString;
|
|
55
|
+
threadTs: z.ZodOptional<z.ZodString>;
|
|
54
56
|
}, z.core.$strict>, z.ZodObject<{
|
|
55
57
|
platform: z.ZodLiteral<"local">;
|
|
56
58
|
conversationId: z.ZodString;
|
|
57
59
|
}, z.core.$strict>], "platform">;
|
|
60
|
+
/** One visible effect after successful automated work. */
|
|
61
|
+
declare const taskOutcomeSchema: z.ZodObject<{
|
|
62
|
+
action: z.ZodLiteral<"send_message">;
|
|
63
|
+
destination: z.ZodObject<{
|
|
64
|
+
platform: z.ZodLiteral<"slack">;
|
|
65
|
+
teamId: z.ZodString;
|
|
66
|
+
channelId: z.ZodString;
|
|
67
|
+
threadTs: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
}, z.core.$strict>;
|
|
58
70
|
/** Runtime-owned Slack input Source. */
|
|
59
71
|
declare const slackSourceSchema: z.ZodObject<{
|
|
60
72
|
kind: z.ZodLiteral<"slack">;
|
|
@@ -249,6 +261,7 @@ declare const dispatchOptionsSchema: z.ZodObject<{
|
|
|
249
261
|
platform: z.ZodLiteral<"slack">;
|
|
250
262
|
teamId: z.ZodString;
|
|
251
263
|
channelId: z.ZodString;
|
|
264
|
+
threadTs: z.ZodOptional<z.ZodString>;
|
|
252
265
|
}, z.core.$strict>;
|
|
253
266
|
destinationVisibility: z.ZodEnum<{
|
|
254
267
|
public: "public";
|
|
@@ -676,6 +689,7 @@ type DestinationVisibility = z.output<typeof destinationVisibilitySchema>;
|
|
|
676
689
|
type DispatchOptions = z.output<typeof dispatchOptionsSchema>;
|
|
677
690
|
/** Compact destination-visible context explaining what produced a reply. */
|
|
678
691
|
type ReplyAttribution = z.output<typeof replyAttributionSchema>;
|
|
692
|
+
type TaskOutcome = z.output<typeof taskOutcomeSchema>;
|
|
679
693
|
interface DispatchResult {
|
|
680
694
|
id: string;
|
|
681
695
|
status: "created" | "already_exists";
|
|
@@ -912,6 +926,7 @@ declare const pluginRunContextSchema: z.ZodObject<{
|
|
|
912
926
|
platform: z.ZodLiteral<"slack">;
|
|
913
927
|
teamId: z.ZodString;
|
|
914
928
|
channelId: z.ZodString;
|
|
929
|
+
threadTs: z.ZodOptional<z.ZodString>;
|
|
915
930
|
}, z.core.$strict>, z.ZodObject<{
|
|
916
931
|
platform: z.ZodLiteral<"local">;
|
|
917
932
|
conversationId: z.ZodString;
|
|
@@ -2024,4 +2039,4 @@ interface PluginRegistration extends PluginRegistrationInput {
|
|
|
2024
2039
|
/** Define one Junior plugin registration for app and build-time wiring. */
|
|
2025
2040
|
declare function defineJuniorPlugin(plugin: PluginRegistrationInput): PluginRegistration;
|
|
2026
2041
|
|
|
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 };
|
|
2042
|
+
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
|
@@ -139,7 +139,8 @@ var destinationVisibilitySchema = z4.enum(["public", "private"]);
|
|
|
139
139
|
var slackAddressSchema = z4.object({
|
|
140
140
|
platform: z4.literal("slack"),
|
|
141
141
|
teamId: slackTeamIdSchema,
|
|
142
|
-
channelId: slackConversationIdSchema
|
|
142
|
+
channelId: slackConversationIdSchema,
|
|
143
|
+
threadTs: exactNonBlankStringSchema.optional()
|
|
143
144
|
}).strict();
|
|
144
145
|
var slackDestinationSchema = slackAddressSchema;
|
|
145
146
|
var localDestinationSchema = z4.object({
|
|
@@ -150,6 +151,10 @@ var destinationSchema = z4.discriminatedUnion("platform", [
|
|
|
150
151
|
slackDestinationSchema,
|
|
151
152
|
localDestinationSchema
|
|
152
153
|
]);
|
|
154
|
+
var taskOutcomeSchema = z4.object({
|
|
155
|
+
action: z4.literal("send_message"),
|
|
156
|
+
destination: slackDestinationSchema
|
|
157
|
+
}).strict();
|
|
153
158
|
var slackSourceSchema = z4.object({
|
|
154
159
|
kind: z4.literal("slack"),
|
|
155
160
|
teamId: slackTeamIdSchema,
|
|
@@ -1142,6 +1147,7 @@ export {
|
|
|
1142
1147
|
stableResourceEventMatchKey,
|
|
1143
1148
|
subscribableResourceSchema,
|
|
1144
1149
|
systemActorSchema,
|
|
1150
|
+
taskOutcomeSchema,
|
|
1145
1151
|
toolApprovalModeSchema,
|
|
1146
1152
|
userSchema,
|
|
1147
1153
|
webActorSchema,
|