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

Function toAppApprovalRequest

apps/kimi-web/src/api/daemon/mappers.ts:283–296  ·  view source on GitHub ↗
(wire: WireApprovalRequest)

Source from the content-addressed store, hash-verified

281}
282
283export function toAppApprovalRequest(wire: WireApprovalRequest): AppApprovalRequest {
284 return {
285 approvalId: wire.approval_id,
286 sessionId: wire.session_id,
287 turnId: wire.turn_id,
288 toolCallId: wire.tool_call_id,
289 toolName: wire.tool_name,
290 action: wire.action,
291 // The real daemon sends `tool_input_display`; the stub sends `display`.
292 display: wire.tool_input_display ?? wire.display,
293 expiresAt: wire.expires_at,
294 createdAt: wire.created_at,
295 };
296}
297
298// ---------------------------------------------------------------------------
299// Question mappers

Callers 1

toAppEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected