@sentry/junior 0.62.0 → 0.63.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.
@@ -1,4 +1,4 @@
1
- import type { AgentPluginRequester, JuniorPlugin } from "@sentry/junior-plugin-api";
1
+ import type { AgentPluginRequester, AgentPluginRoute, SlackConversationLink, JuniorPlugin } from "@sentry/junior-plugin-api";
2
2
  import type { ToolDefinition } from "@/chat/tools/definition";
3
3
  import type { ToolRuntimeContext } from "@/chat/tools/types";
4
4
  import type { SandboxInstance } from "@/chat/sandbox/workspace";
@@ -14,6 +14,9 @@ export interface ToolHookResult {
14
14
  env: Record<string, string>;
15
15
  input: Record<string, unknown>;
16
16
  }
17
+ export interface AgentPluginRouteRegistration extends AgentPluginRoute {
18
+ pluginName: string;
19
+ }
17
20
  export interface AgentPluginHookRunner {
18
21
  beforeToolExecute(input: ToolHookInput): Promise<ToolHookResult>;
19
22
  prepareSandbox(sandbox: SandboxInstance): Promise<void>;
@@ -26,6 +29,10 @@ export declare function setAgentPlugins(plugins: JuniorPlugin[]): JuniorPlugin[]
26
29
  export declare function getAgentPlugins(): JuniorPlugin[];
27
30
  /** Collect turn-scoped tools exposed by trusted plugins. */
28
31
  export declare function getAgentPluginTools(context: ToolRuntimeContext): Record<string, ToolDefinition<any>>;
32
+ /** Collect route handlers exposed by trusted plugins for app-level mounting. */
33
+ export declare function getAgentPluginRoutes(): AgentPluginRouteRegistration[];
34
+ /** Resolve the first trusted plugin conversation URL for finalized Slack footers. */
35
+ export declare function getAgentPluginSlackConversationLink(conversationId: string): SlackConversationLink | undefined;
29
36
  /** Create one runner over trusted agent plugins registered by the app. */
30
37
  export declare function createAgentPluginHookRunner(input?: {
31
38
  requester?: AgentPluginRequester;
@@ -15,7 +15,6 @@ type TurnContextPromptInput = {
15
15
  toolGuidance?: ToolPromptContext[];
16
16
  runtime?: {
17
17
  conversationId?: string;
18
- traceId?: string;
19
18
  };
20
19
  invocation: SkillInvocation | null;
21
20
  requester?: {