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

Function approvalRequest

apps/kimi-web/test/workspace-state.test.ts:187–198  ·  view source on GitHub ↗
(approvalId: string)

Source from the content-addressed store, hash-verified

185}
186
187function approvalRequest(approvalId: string): AppApprovalRequest {
188 return {
189 approvalId,
190 sessionId: 'sess_1',
191 toolCallId: 'tc_1',
192 toolName: 'bash',
193 action: 'shell',
194 display: null,
195 expiresAt: '2099-01-01T00:00:00.000Z',
196 createdAt: '2026-01-01T00:00:00.000Z',
197 };
198}
199
200function task(id: string, status: AppTask['status'] = 'running'): AppTask {
201 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected