MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / getSlugFromLog

Function getSlugFromLog

restored-src/src/utils/plans.ts:149–151  ·  view source on GitHub ↗

* Extract the plan slug from a log's message history.

(log: LogOption)

Source from the content-addressed store, hash-verified

147 * Extract the plan slug from a log's message history.
148 */
149function getSlugFromLog(log: LogOption): string | undefined {
150 return log.messages.find(m => m.slug)?.slug
151}
152
153/**
154 * Restore plan slug from a resumed session.

Callers 2

copyPlanForResumeFunction · 0.85
copyPlanForForkFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected