MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isValidSessionFacets

Function isValidSessionFacets

src/commands/insights.ts:3184–3198  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

3182}
3183
3184function isValidSessionFacets(obj: unknown): obj is SessionFacets {
3185 if (!obj || typeof obj !== 'object') return false
3186 const o = obj as Record<string, unknown>
3187 return (
3188 typeof o.underlying_goal === 'string' &&
3189 typeof o.outcome === 'string' &&
3190 typeof o.brief_summary === 'string' &&
3191 o.goal_categories !== null &&
3192 typeof o.goal_categories === 'object' &&
3193 o.user_satisfaction_counts !== null &&
3194 typeof o.user_satisfaction_counts === 'object' &&
3195 o.friction_counts !== null &&
3196 typeof o.friction_counts === 'object'
3197 )
3198}
3199
3200export default usageReport
3201

Callers 2

loadCachedFacetsFunction · 0.85
extractFacetsFromAPIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected