@sentry/junior-plugin-api 0.286.0 → 0.288.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 +12 -2
- package/dist/index.js +3 -1
- package/package.json +1 -1
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
|
-
/**
|
|
1403
|
-
|
|
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. */
|