@sentry/junior-plugin-api 0.284.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 +13 -1
- package/dist/index.js +12 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2011,7 +2011,10 @@ export interface HeartbeatResult {
|
|
|
2011
2011
|
dispatchCount?: number;
|
|
2012
2012
|
}
|
|
2013
2013
|
export interface UnfinishedWorkHookContext extends PluginContext {
|
|
2014
|
-
/**
|
|
2014
|
+
/**
|
|
2015
|
+
* Bounded conversation candidates selected by the host, with the child
|
|
2016
|
+
* conversations of candidate roots. Work in a child counts for its root.
|
|
2017
|
+
*/
|
|
2015
2018
|
conversationIds: string[];
|
|
2016
2019
|
}
|
|
2017
2020
|
export interface UnfinishedWorkResult {
|
|
@@ -2411,6 +2414,11 @@ export declare const pluginToolContinuationSchema: z.ZodObject<{
|
|
|
2411
2414
|
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2412
2415
|
reason: z.ZodOptional<z.ZodString>;
|
|
2413
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>;
|
|
2414
2422
|
/** Shared optional fields for canonical plugin tool outputs. */
|
|
2415
2423
|
export declare const pluginToolOutputSchema: z.ZodObject<{
|
|
2416
2424
|
objectAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2473,6 +2481,10 @@ export declare const pluginToolOutputSchema: z.ZodObject<{
|
|
|
2473
2481
|
attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2474
2482
|
}, z.core.$strict>], "type">>;
|
|
2475
2483
|
}, z.core.$strict>>>;
|
|
2484
|
+
reply: z.ZodOptional<z.ZodObject<{
|
|
2485
|
+
text: z.ZodString;
|
|
2486
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2487
|
+
}, z.core.$strict>>;
|
|
2476
2488
|
target: z.ZodOptional<z.ZodString>;
|
|
2477
2489
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
2478
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 };
|