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

Function getSlugFromLog

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

no outgoing calls

Tested by

no test coverage detected