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

Function task

apps/kimi-code/test/tui/tasks-browser.test.ts:44–57  ·  view source on GitHub ↗
(overrides: Partial<BackgroundTaskInfo> = {})

Source from the content-addressed store, hash-verified

42}
43
44function task(overrides: Partial<BackgroundTaskInfo> = {}): BackgroundTaskInfo {
45 return {
46 taskId: 'bash-abcd1234',
47 kind: 'process',
48 command: 'npm run dev',
49 description: 'dev server',
50 status: 'running',
51 pid: 1234,
52 exitCode: null,
53 startedAt: Date.now() - 60_000,
54 endedAt: null,
55 ...overrides,
56 } as BackgroundTaskInfo;
57}
58
59function makeProps(overrides: Partial<TasksBrowserProps> = {}): TasksBrowserProps {
60 return {

Callers 1

Calls 1

nowMethod · 0.65

Tested by

no test coverage detected