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:
john
2026-07-13 14:00:11 +08:00
parent a867592367
commit 7f7aced751
4 changed files with 136 additions and 26 deletions
+3 -2
View File
@@ -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';
}