@sentry/junior-plugin-api 0.64.0 → 0.65.1
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 +8 -5
- package/package.json +1 -1
- package/src/index.ts +9 -5
package/dist/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export interface ToolRegistrationHookContext extends AgentPluginContext {
|
|
|
96
96
|
canPostToChannel: boolean;
|
|
97
97
|
};
|
|
98
98
|
channelId?: string;
|
|
99
|
+
credentialSubject?: AgentPluginCredentialSubject;
|
|
99
100
|
messageTs?: string;
|
|
100
101
|
requester?: AgentPluginRequester;
|
|
101
102
|
state: AgentPluginState;
|
|
@@ -103,12 +104,13 @@ export interface ToolRegistrationHookContext extends AgentPluginContext {
|
|
|
103
104
|
threadTs?: string;
|
|
104
105
|
userText?: string;
|
|
105
106
|
}
|
|
107
|
+
export interface AgentPluginCredentialSubject {
|
|
108
|
+
type: "user";
|
|
109
|
+
userId: string;
|
|
110
|
+
allowedWhen: "private-direct-conversation";
|
|
111
|
+
}
|
|
106
112
|
export interface DispatchOptions {
|
|
107
|
-
credentialSubject?:
|
|
108
|
-
type: "user";
|
|
109
|
-
userId: string;
|
|
110
|
-
allowedWhen: "private-direct-conversation";
|
|
111
|
-
};
|
|
113
|
+
credentialSubject?: AgentPluginCredentialSubject;
|
|
112
114
|
destination: {
|
|
113
115
|
platform: "slack";
|
|
114
116
|
teamId: string;
|
|
@@ -227,6 +229,7 @@ export interface JuniorPluginMcpConfig {
|
|
|
227
229
|
}
|
|
228
230
|
export interface JuniorPluginEnvVarDeclaration {
|
|
229
231
|
default?: string;
|
|
232
|
+
exposeToCommandEnv?: boolean;
|
|
230
233
|
}
|
|
231
234
|
export interface JuniorPluginManifest {
|
|
232
235
|
apiHeaders?: Record<string, string>;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -110,6 +110,7 @@ export interface ToolRegistrationHookContext extends AgentPluginContext {
|
|
|
110
110
|
canPostToChannel: boolean;
|
|
111
111
|
};
|
|
112
112
|
channelId?: string;
|
|
113
|
+
credentialSubject?: AgentPluginCredentialSubject;
|
|
113
114
|
messageTs?: string;
|
|
114
115
|
requester?: AgentPluginRequester;
|
|
115
116
|
state: AgentPluginState;
|
|
@@ -118,12 +119,14 @@ export interface ToolRegistrationHookContext extends AgentPluginContext {
|
|
|
118
119
|
userText?: string;
|
|
119
120
|
}
|
|
120
121
|
|
|
122
|
+
export interface AgentPluginCredentialSubject {
|
|
123
|
+
type: "user";
|
|
124
|
+
userId: string;
|
|
125
|
+
allowedWhen: "private-direct-conversation";
|
|
126
|
+
}
|
|
127
|
+
|
|
121
128
|
export interface DispatchOptions {
|
|
122
|
-
credentialSubject?:
|
|
123
|
-
type: "user";
|
|
124
|
-
userId: string;
|
|
125
|
-
allowedWhen: "private-direct-conversation";
|
|
126
|
-
};
|
|
129
|
+
credentialSubject?: AgentPluginCredentialSubject;
|
|
127
130
|
destination: {
|
|
128
131
|
platform: "slack";
|
|
129
132
|
teamId: string;
|
|
@@ -293,6 +296,7 @@ export interface JuniorPluginMcpConfig {
|
|
|
293
296
|
|
|
294
297
|
export interface JuniorPluginEnvVarDeclaration {
|
|
295
298
|
default?: string;
|
|
299
|
+
exposeToCommandEnv?: boolean;
|
|
296
300
|
}
|
|
297
301
|
|
|
298
302
|
export interface JuniorPluginManifest {
|