MCPcopy Create free account
hub / github.com/MagicCube/agentara / useStackTrace

Function useStackTrace

web/src/components/ai-elements/stack-trace.tsx:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60const StackTraceContext = createContext<StackTraceContextValue | null>(null);
61
62const useStackTrace = () => {
63 const context = useContext(StackTraceContext);
64 if (!context) {
65 throw new Error("StackTrace components must be used within StackTrace");
66 }
67 return context;
68};
69
70const parseStackFrame = (line: string): StackFrame => {
71 const trimmed = line.trim();

Callers 1

stack-trace.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected