🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import type { AgentSignalScope } from '@lobechat/agent-signal';
import {
type AgentSignalProducerScopeInput,
AgentSignalScopeKey,
} from '@lobechat/agent-signal/source';
/** Resolves the canonical runtime scope key for one source scope. */
export const resolveRuntimeScopeKey = (scope: AgentSignalScope) => {
return AgentSignalScopeKey.fromRuntimeScope(scope);
};
/**
* Resolves one stable scope key for producers that emit raw source events.
*
* Before:
* - `{ topicId: 'topic-1' }`
* - `{ platform: 'wechat', applicationId: 'app', platformThreadId: 'thread-1' }`
*
* After:
* - `topic:topic-1`
* - `bot:wechat:app:thread-1`
*/
export const resolveProducerScopeKey = (input: AgentSignalProducerScopeInput) => {
return AgentSignalScopeKey.fromProducerInput(input);
};