mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-06-13 18:31:16 +08:00
refactor: controllerize generation recall event hooks
This commit is contained in:
@@ -53,6 +53,10 @@ import {
|
||||
pruneProcessedMessageHashesFromFloor,
|
||||
rollbackAffectedJournals,
|
||||
} from "../chat-history.js";
|
||||
import {
|
||||
onBeforeCombinePromptsController,
|
||||
onGenerationAfterCommandsController,
|
||||
} from "../event-binding.js";
|
||||
|
||||
const extensionsShimSource = [
|
||||
"export const extension_settings = globalThis.__p0ExtensionSettings || {};",
|
||||
@@ -303,6 +307,8 @@ function createGenerationRecallHarness() {
|
||||
GRAPH_LOAD_STATES,
|
||||
GRAPH_METADATA_KEY,
|
||||
GRAPH_PERSISTENCE_META_KEY,
|
||||
onBeforeCombinePromptsController,
|
||||
onGenerationAfterCommandsController,
|
||||
};
|
||||
vm.createContext(context);
|
||||
vm.runInContext(
|
||||
|
||||
Reference in New Issue
Block a user