@sentry/junior-plugin-api 0.163.0 → 0.165.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 +8 -0
- package/package.json +1 -1
- package/src/tools.ts +9 -0
package/dist/tools.d.ts
CHANGED
|
@@ -289,6 +289,13 @@ export interface PluginResourceEventToolContext {
|
|
|
289
289
|
/** Whether this invocation can create a working resource-event subscription. */
|
|
290
290
|
canSubscribe: boolean;
|
|
291
291
|
}
|
|
292
|
+
export interface PluginWorkspaceToolContext {
|
|
293
|
+
/** Find named Workspaces that include one provider repository. */
|
|
294
|
+
findByRepository(input: {
|
|
295
|
+
provider: string;
|
|
296
|
+
repo: string;
|
|
297
|
+
}): Promise<string[]>;
|
|
298
|
+
}
|
|
292
299
|
interface BaseToolRegistrationHookContext extends PluginContext {
|
|
293
300
|
/**
|
|
294
301
|
* Opaque Junior conversation/session identity for this turn.
|
|
@@ -314,6 +321,7 @@ interface BaseToolRegistrationHookContext extends PluginContext {
|
|
|
314
321
|
} | undefined>;
|
|
315
322
|
};
|
|
316
323
|
userText?: string;
|
|
324
|
+
workspaces: PluginWorkspaceToolContext;
|
|
317
325
|
}
|
|
318
326
|
interface SlackToolRegistrationContext extends BaseToolRegistrationHookContext, SlackInvocationContext {
|
|
319
327
|
slack: SlackToolRegistrationHookContext;
|
package/package.json
CHANGED
package/src/tools.ts
CHANGED
|
@@ -520,6 +520,14 @@ export interface PluginResourceEventToolContext {
|
|
|
520
520
|
canSubscribe: boolean;
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
+
export interface PluginWorkspaceToolContext {
|
|
524
|
+
/** Find named Workspaces that include one provider repository. */
|
|
525
|
+
findByRepository(input: {
|
|
526
|
+
provider: string;
|
|
527
|
+
repo: string;
|
|
528
|
+
}): Promise<string[]>;
|
|
529
|
+
}
|
|
530
|
+
|
|
523
531
|
interface BaseToolRegistrationHookContext extends PluginContext {
|
|
524
532
|
/**
|
|
525
533
|
* Opaque Junior conversation/session identity for this turn.
|
|
@@ -542,6 +550,7 @@ interface BaseToolRegistrationHookContext extends PluginContext {
|
|
|
542
550
|
resolveActor(): Promise<{ identity: Identity; user?: User } | undefined>;
|
|
543
551
|
};
|
|
544
552
|
userText?: string;
|
|
553
|
+
workspaces: PluginWorkspaceToolContext;
|
|
545
554
|
}
|
|
546
555
|
|
|
547
556
|
interface SlackToolRegistrationContext
|