MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / toAppWorkspace

Function toAppWorkspace

apps/kimi-web/src/api/daemon/mappers.ts:116–126  ·  view source on GitHub ↗
(wire: WireWorkspace)

Source from the content-addressed store, hash-verified

114}
115
116export function toAppWorkspace(wire: WireWorkspace): AppWorkspace {
117 return {
118 id: wire.id,
119 root: wire.root,
120 name: wire.name,
121 isGitRepo: wire.is_git_repo,
122 branch: wire.branch ?? undefined,
123 lastOpenedAt: wire.last_opened_at,
124 sessionCount: wire.session_count,
125 };
126}
127
128// ---------------------------------------------------------------------------
129// Message mappers

Callers 3

addWorkspaceMethod · 0.90
updateWorkspaceMethod · 0.90
toAppEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected