feat(runtime): wire personal memory observation and skill runtime config
Hook shadow pipeline observation into session finish and agent runs, and expose skill runtime settings through auth and runtime status endpoints. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,14 +10,15 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {{ chatState?: string; finishedViaPortalDirectChat?: boolean }} input
|
||||
* @param {{ chatState?: string; finishedViaPortalDirectChat?: boolean; agentRunSucceeded?: boolean }} input
|
||||
* @returns {'idle' | 'streaming'}
|
||||
*/
|
||||
export function resolvePostAgentRunChatState({
|
||||
chatState = 'waiting',
|
||||
finishedViaPortalDirectChat = false,
|
||||
agentRunSucceeded = false,
|
||||
} = {}) {
|
||||
if (finishedViaPortalDirectChat) return 'idle';
|
||||
if (finishedViaPortalDirectChat || agentRunSucceeded) return 'idle';
|
||||
if (chatState === 'idle') return 'idle';
|
||||
return 'streaming';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user