import { evaluateSessionFlowGuard, recordSessionToolCall, } from '../session-flow-guard.js';
import { evaluateSessionChainGuard, } from '../session-chain-detector.js';
/** Multi-call read-then-exfil sequencing and cross-tool chain detection. */
export const sessionFlowStrategy = {
    name: 'session-flow',
    evaluate({ normalized }, deps) {
        const chainDetect = evaluateSessionChainGuard(normalized);
        if (chainDetect) {
            recordSessionToolCall(normalized);
            return { ...chainDetect, action: deps.resolveAction(chainDetect.action) };
        }
        const chain = evaluateSessionFlowGuard(normalized);
        if (chain) {
            recordSessionToolCall(normalized);
            return { ...chain, action: deps.resolveAction(chain.action) };
        }
        recordSessionToolCall(normalized);
        return null;
    },
};
//# sourceMappingURL=session-flow-strategy.js.map