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

Function getSlugFromLog

src/utils/plans.ts:153–155  ·  view source on GitHub ↗

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

(log: LogOption)

Source from the content-addressed store, hash-verified

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

Callers 2

copyPlanForResumeFunction · 0.85
copyPlanForForkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected