multicorn-shield 0.1.0 → 0.1.2
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.
|
@@ -680,6 +680,11 @@ var plugin = {
|
|
|
680
680
|
api.logger.info("Multicorn Shield plugin registered.");
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
|
+
function register(api) {
|
|
684
|
+
if (plugin.register) {
|
|
685
|
+
void plugin.register(api);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
683
688
|
function resetState() {
|
|
684
689
|
agentRecord = null;
|
|
685
690
|
grantedScopes = [];
|
|
@@ -689,4 +694,4 @@ function resetState() {
|
|
|
689
694
|
pluginConfig = void 0;
|
|
690
695
|
}
|
|
691
696
|
|
|
692
|
-
export { afterToolCall, beforeToolCall, plugin, readConfig, resetState, resolveAgentName };
|
|
697
|
+
export { afterToolCall, beforeToolCall, plugin, readConfig, register, resetState, resolveAgentName };
|