This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
import {classicMode,classicCommand} from './classic';
|
||||
import {startIntentCheck} from './intent-evidence';
|
||||
import {intentCompanions,partyIntentBusy,recordPartyIntent,compileCommunityAction} from './community';
|
||||
import {DeterministicProvider,providerForBot} from './llm';
|
||||
@@ -188,7 +189,7 @@ export async function runLiveAutonomyTick(
|
||||
// Recheck eligibility after inference; native guards recheck once more at execution.
|
||||
let peer=decision.action==='socialize'?intentCompanions(s,bot)[0]:undefined;
|
||||
if(peer&&await partyIntentBusy(db,bot,peer))peer=undefined;
|
||||
const source=peer?compileCommunityAction('party',bot,peer):compileLivePlayerbotIntent(bot.name,decision);
|
||||
const source=classicMode(config)?(peer?classicCommand('party',bot,'',peer):classicCommand('intent',bot,decision.action)):(peer?compileCommunityAction('party',bot,peer):compileLivePlayerbotIntent(bot.name,decision));
|
||||
const queued=await queueAleCommand(db,source);
|
||||
if(peer)await recordPartyIntent(db,s,queued.id,bot,peer);
|
||||
const check=startIntentCheck(bot,decision,queued.id,Date.now()/1000,peer?.name);
|
||||
|
||||
Reference in New Issue
Block a user