MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / orderedReadFileStateSnapshot

Function orderedReadFileStateSnapshot

session/store.go:649–666  ·  view source on GitHub ↗
(entries map[string]file.FileStateEntry)

Source from the content-addressed store, hash-verified

647 out.Set("total_input_tokens", state.TotalInputTokens)
648 out.Set("total_output_tokens", state.TotalOutputTokens)
649 out.Set("cache_read_input_tokens", state.CacheReadInputTokens)
650 out.Set("cache_creation_input_tokens", state.CacheCreateInputTokens)
651 out.Set("server_tool_use_input_tokens", state.ServerToolUseInputTokens)
652 out.Set("turn_count", state.TurnCount)
653 out.Set("consecutive_autocompact_failures", state.ConsecutiveAutoCompactFailures)
654 out.Set("last_continue_reason", state.LastContinueReason)
655 out.Set("permission_state", orderedPermissionStateSnapshot(state.PermissionState))
656 out.Set("system_prompt", state.SystemPrompt)
657 out.Set("recent_api_errors", state.RecentApiErrors)
658 out.Set("content_replacements", state.ContentReplacements)
659 out.Set("denied_tool_calls", state.DeniedToolCalls)
660 out.Set("tool_errors", state.ToolErrors)
661 out.Set("total_task_budget", state.TotalTaskBudget)
662 out.Set("task_budget_remaining", state.TaskBudgetRemaining)
663 out.Set("cache_breakpoints", intSetToSlice(state.CacheBreakPoints))
664 out.Set("read_file_state", orderedReadFileStateSnapshot(state.ReadFileState))
665 out.Set("last_query", state.LastQuery)
666 out.Set("last_extraction_turn", state.LastExtractionTurn)
667 out.Set("user_turn_count", state.UserTurnCount)
668 out.Set("last_extraction_user_turn", state.LastExtractionUserTurn)
669 out.Set("memory_writes_since_extraction", state.MemoryWritesSinceExtraction)

Callers 1

Calls 2

newOrderedJSONMapFunction · 0.70
SetMethod · 0.45

Tested by

no test coverage detected