@sentry/junior-plugin-api 0.287.0 → 0.289.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
@@ -506,6 +506,7 @@ export declare const dispatchOptionsSchema: z.ZodObject<{
506
506
  label: z.ZodPipe<z.ZodString, z.ZodString>;
507
507
  detail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
508
508
  }, z.core.$strict>>;
509
+ title: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
509
510
  }, z.core.$strict>;
510
511
  /** A loaded value and how long to cache it. */
511
512
  export interface CacheEntry<T> {
@@ -1399,8 +1400,12 @@ export declare const eventSchema: z.ZodObject<{
1399
1400
  }, z.core.$strict>;
1400
1401
  export type Event = z.output<typeof eventSchema>;
1401
1402
  export interface EventPublisher {
1402
- /** Return whether an active watch or event automation matches this event. */
1403
- hasMatch?(event: EventInput): Promise<boolean>;
1403
+ /**
1404
+ * Return whether an active watch or event automation matches any of these
1405
+ * events. Pass every copy of a webhook's events in one call, so core reads
1406
+ * event automations once.
1407
+ */
1408
+ hasMatch?(events: EventInput[]): Promise<boolean>;
1404
1409
  /** Publish one normalized event under the owning plugin's namespace. */
1405
1410
  publish(event: EventInput): Promise<void>;
1406
1411
  /**
@@ -2563,6 +2568,11 @@ export interface ToolApprovalMetadata<TInput = unknown> {
2563
2568
  export type ToolExposure = "direct" | "deferred" | "modelOnly" | "codemode" | "hidden";
2564
2569
  export interface PluginToolDefinition<TInput = unknown, TOutput = unknown, TExecuteOutput = TOutput> extends ToolApprovalMetadata<TInput> {
2565
2570
  description: string;
2571
+ /**
2572
+ * Why the current Turn cannot run this tool. The host keeps the tool in the
2573
+ * tool list, so the cached prompt stays the same, and rejects its calls.
2574
+ */
2575
+ disabledReason?: string;
2566
2576
  executionMode?: unknown;
2567
2577
  /** Override the host's default tool exposure. */
2568
2578
  exposure?: ToolExposure;
package/dist/index.js CHANGED
@@ -574,7 +574,9 @@ const dispatchOptionsSchema = z.object({
574
574
  destinationVisibility: destinationVisibilitySchema,
575
575
  input: nonBlankStringSchema.pipe(z.string().max(32e3)),
576
576
  metadata: dispatchMetadataSchema.optional(),
577
- replyAttribution: replyAttributionSchema.optional()
577
+ replyAttribution: replyAttributionSchema.optional(),
578
+ /** Saved title. Title generation runs only when it is omitted. */
579
+ title: nonBlankStringSchema.pipe(z.string().max(200)).optional()
578
580
  }).strict();
579
581
  // src/context.ts
580
582
  /** Build a normalized Slack source from runtime-owned Slack coordinates. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-plugin-api",
3
- "version": "0.287.0",
3
+ "version": "0.289.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"