@sentry/junior-plugin-api 0.194.0 → 0.196.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/tools.d.ts +10 -0
- package/package.json +1 -1
- package/src/tools.ts +7 -0
package/dist/tools.d.ts
CHANGED
|
@@ -136,6 +136,16 @@ export interface BeforeToolExecuteHookContext extends PluginContext {
|
|
|
136
136
|
input: Record<string, unknown>;
|
|
137
137
|
name: string;
|
|
138
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Resolve the current actor's stored identity and linked user.
|
|
141
|
+
* Same contract as tool registration; used for commit attribution.
|
|
142
|
+
*/
|
|
143
|
+
users: {
|
|
144
|
+
resolveActor(): Promise<{
|
|
145
|
+
identity: Identity;
|
|
146
|
+
user?: User;
|
|
147
|
+
} | undefined>;
|
|
148
|
+
};
|
|
139
149
|
}
|
|
140
150
|
/**
|
|
141
151
|
* Context for post-success MCP tool processing.
|
package/package.json
CHANGED
package/src/tools.ts
CHANGED
|
@@ -170,6 +170,13 @@ export interface BeforeToolExecuteHookContext extends PluginContext {
|
|
|
170
170
|
input: Record<string, unknown>;
|
|
171
171
|
name: string;
|
|
172
172
|
};
|
|
173
|
+
/**
|
|
174
|
+
* Resolve the current actor's stored identity and linked user.
|
|
175
|
+
* Same contract as tool registration; used for commit attribution.
|
|
176
|
+
*/
|
|
177
|
+
users: {
|
|
178
|
+
resolveActor(): Promise<{ identity: Identity; user?: User } | undefined>;
|
|
179
|
+
};
|
|
173
180
|
}
|
|
174
181
|
|
|
175
182
|
/**
|