@sentry/junior-plugin-api 0.285.0 → 0.286.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 CHANGED
@@ -2414,6 +2414,11 @@ export declare const pluginToolContinuationSchema: z.ZodObject<{
2414
2414
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2415
2415
  reason: z.ZodOptional<z.ZodString>;
2416
2416
  }, z.core.$strict>;
2417
+ /** Junior text that a plugin tool posted to its provider. */
2418
+ export declare const pluginToolReplySchema: z.ZodObject<{
2419
+ text: z.ZodString;
2420
+ url: z.ZodOptional<z.ZodString>;
2421
+ }, z.core.$strict>;
2417
2422
  /** Shared optional fields for canonical plugin tool outputs. */
2418
2423
  export declare const pluginToolOutputSchema: z.ZodObject<{
2419
2424
  objectAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2476,6 +2481,10 @@ export declare const pluginToolOutputSchema: z.ZodObject<{
2476
2481
  attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2477
2482
  }, z.core.$strict>], "type">>;
2478
2483
  }, z.core.$strict>>>;
2484
+ reply: z.ZodOptional<z.ZodObject<{
2485
+ text: z.ZodString;
2486
+ url: z.ZodOptional<z.ZodString>;
2487
+ }, z.core.$strict>>;
2479
2488
  target: z.ZodOptional<z.ZodString>;
2480
2489
  truncated: z.ZodOptional<z.ZodBoolean>;
2481
2490
  continuation: z.ZodOptional<z.ZodObject<{
package/dist/index.js CHANGED
@@ -1369,10 +1369,21 @@ const pluginToolContinuationSchema = z.object({
1369
1369
  arguments: z.record(z.string(), z.unknown()),
1370
1370
  reason: z.string().min(1).optional()
1371
1371
  }).strict();
1372
+ /** Junior text that a plugin tool posted to its provider. */
1373
+ const pluginToolReplySchema = z.object({
1374
+ text: z.string().min(1),
1375
+ url: z.string().url().optional()
1376
+ }).strict();
1372
1377
  /** Shared optional fields for canonical plugin tool outputs. */
1373
1378
  const pluginToolOutputSchema = z.object({
1374
1379
  /** Object results to save and show with the next reply. Omit for silent updates. */
1375
1380
  objectAnnotations: z.array(objectAnnotationSchema).optional(),
1381
+ /**
1382
+ * Reply the tool posted for Junior, such as a pull request comment. Core
1383
+ * shows it in the transcript as a Junior reply with the plugin's mark,
1384
+ * and removes it from the model-facing result.
1385
+ */
1386
+ reply: pluginToolReplySchema.optional(),
1376
1387
  target: z.string().min(1).optional(),
1377
1388
  truncated: z.boolean().optional(),
1378
1389
  continuation: pluginToolContinuationSchema.optional()
@@ -1806,4 +1817,4 @@ const pluginUserPageInputSchema = z.object({
1806
1817
  limit: z.number().int().min(1).max(50),
1807
1818
  query: pluginUserPageQuerySchema
1808
1819
  }).strict();
1809
- export { EVENT_DATA_MAX_JSON_BYTES, EVENT_DATA_MAX_KEYS, EVENT_GUIDANCE_MAX_LENGTH, EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, EgressAuthRequired, EgressPolicyDenied, PluginToolInputError, REQUIRED_TOOL_ANNOTATION_KEYS, actorSchema, actorUserIdSchema, agentEventKeys, agentEventMatchKey, agentEventMatchSchema, agentInvocationSourceSchema, anyResourceEvents, anyResourceMatchFields, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createEventSource, createLocalSource, createSlackSource, createWebSource, declaredEventKeys, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, describeEventTrigger, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, enforceEgressPolicy, eventAutomationSourceSchema, eventDataSchema, eventIdentifierSchema, eventInputSchema, eventMatchFieldSchema, eventMatchFieldsSchema, eventMatchFilterText, eventMatchSchema, eventMatches, eventPersonSchema, eventReachSchema, eventSchema, eventSourceSchema, eventTriggerChoices, eventTriggerFiltersText, eventTriggerProblems, eventTriggerText, eventTypeSchema, eventTypeText, eventsWithoutMatchField, getSourceKey, identitySchema, isPluginModelCostEventName, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, mergeEventMatchFields, missingToolAnnotationKeys, nonBlankStringSchema, normalizeEventIdentifier, normalizeEventMatch, objectAnnotationSchema, objectFactFields, objectFactsSchema, objectIconPath, objectIconPaths, objectPresentation, objectTypeSchema, ownedObjectAnnotationSchema, parseShellCommands, platformSchema, pluginApiRouteRequestContextSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginEventDeclarationSchema, pluginEventTypeSchema, pluginEventsSchema, pluginGrantSchema, pluginModelCostEventNames, pluginProviderAccountSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, replyAttributionSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledAutomationSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableEventMatchKey, subscribableResourceSchema, systemActorSchema, taskOutcomeSchema, toolApprovalModeSchema, userSchema, watchResultSchema, webActorSchema, webSourceSchema, zodTool };
1820
+ export { EVENT_DATA_MAX_JSON_BYTES, EVENT_DATA_MAX_KEYS, EVENT_GUIDANCE_MAX_LENGTH, EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, EgressAuthRequired, EgressPolicyDenied, PluginToolInputError, REQUIRED_TOOL_ANNOTATION_KEYS, actorSchema, actorUserIdSchema, agentEventKeys, agentEventMatchKey, agentEventMatchSchema, agentInvocationSourceSchema, anyResourceEvents, anyResourceMatchFields, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createEventSource, createLocalSource, createSlackSource, createWebSource, declaredEventKeys, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, describeEventTrigger, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, enforceEgressPolicy, eventAutomationSourceSchema, eventDataSchema, eventIdentifierSchema, eventInputSchema, eventMatchFieldSchema, eventMatchFieldsSchema, eventMatchFilterText, eventMatchSchema, eventMatches, eventPersonSchema, eventReachSchema, eventSchema, eventSourceSchema, eventTriggerChoices, eventTriggerFiltersText, eventTriggerProblems, eventTriggerText, eventTypeSchema, eventTypeText, eventsWithoutMatchField, getSourceKey, identitySchema, isPluginModelCostEventName, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, mergeEventMatchFields, missingToolAnnotationKeys, nonBlankStringSchema, normalizeEventIdentifier, normalizeEventMatch, objectAnnotationSchema, objectFactFields, objectFactsSchema, objectIconPath, objectIconPaths, objectPresentation, objectTypeSchema, ownedObjectAnnotationSchema, parseShellCommands, platformSchema, pluginApiRouteRequestContextSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginEventDeclarationSchema, pluginEventTypeSchema, pluginEventsSchema, pluginGrantSchema, pluginModelCostEventNames, pluginProviderAccountSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginToolReplySchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, replyAttributionSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledAutomationSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableEventMatchKey, subscribableResourceSchema, systemActorSchema, taskOutcomeSchema, toolApprovalModeSchema, userSchema, watchResultSchema, webActorSchema, webSourceSchema, zodTool };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-plugin-api",
3
- "version": "0.285.0",
3
+ "version": "0.286.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"