mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
refactor: controllerize onReroll and keep reroll harness green
This commit is contained in:
@@ -57,6 +57,7 @@ import {
|
||||
onBeforeCombinePromptsController,
|
||||
onGenerationAfterCommandsController,
|
||||
} from "../event-binding.js";
|
||||
import { onRerollController } from "../extraction-controller.js";
|
||||
|
||||
const extensionsShimSource = [
|
||||
"export const extension_settings = globalThis.__p0ExtensionSettings || {};",
|
||||
@@ -461,7 +462,17 @@ function createRerollHarness() {
|
||||
context.onManualExtractCalls += 1;
|
||||
context.lastExtractionStatus = { level: context.manualExtractLevel };
|
||||
},
|
||||
ensureGraphMutationReady() {
|
||||
return true;
|
||||
},
|
||||
getGraphMutationBlockReason() {
|
||||
return "graph-not-ready";
|
||||
},
|
||||
graphPersistenceState: {
|
||||
loadState: "loaded",
|
||||
},
|
||||
createUiStatus,
|
||||
onRerollController,
|
||||
isAbortError: (e) => e?.name === "AbortError",
|
||||
assertRecoveryChatStillActive() {
|
||||
// no-op in test
|
||||
|
||||
Reference in New Issue
Block a user