refactor: remove /review command and clean up unused imports

This commit is contained in:
Eyejoker
2026-03-29 21:17:14 +09:00
parent 787c05a561
commit 4f87c840ba
3 changed files with 0 additions and 115 deletions

View File

@@ -46,11 +46,6 @@ import {
import { runAgentForGroup } from './message-agent-executor.js';
import { MessageTurnController } from './message-turn-controller.js';
import { createSuppressToken } from './output-suppression.js';
import {
formatRoomReviewReadyMessage,
markRoomReviewReady,
} from './paired-execution-context.js';
import { buildRoomRoleContext } from './room-role-context.js';
import {
extractSessionCommand,
handleSessionCommand,
@@ -658,22 +653,6 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): {
isTriggerAllowed(chatJid, msg.sender, loadSenderAllowlist())))
);
},
// Session commands are explicit control events, so owner-only and
// reviewer-only commands resolve against the target role rather than
// whichever service happened to pick up the slash command first.
markReviewReady: async () => {
const lease = getEffectiveChannelLease(chatJid);
const roomRoleContext = buildRoomRoleContext(
lease,
lease.owner_service_id,
);
const result = markRoomReviewReady({
group,
chatJid,
roomRoleContext,
});
return formatRoomReviewReadyMessage(result);
},
resetPairedTask: () => {
if (isPairedRoomJid(chatJid)) {
const task = getLatestOpenPairedTaskForChat(chatJid);