MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / isUserVisibleItem

Function isUserVisibleItem

packages/codex-native-api/src/codex_app_client.ts:4086–4092  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

4084}
4085
4086function isUserVisibleItem(item) {
4087 const itemType = normalizeEventItemType(item);
4088 if (itemType.includes('user')) {
4089 return true;
4090 }
4091 return itemType === 'message' && normalizeEventItemRole(item) === 'user';
4092}
4093
4094function isAgentDeltaNotificationMethod(method) {
4095 const normalized = String(method ?? '').replace(/[^a-z]/gi, '').toLowerCase();

Calls 2

normalizeEventItemTypeFunction · 0.70
normalizeEventItemRoleFunction · 0.70

Tested by

no test coverage detected