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

Function createSession

apps/kimi-web/test/workspace-state.test.ts:26–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}));
25
26function createSession(): AppSession {
27 return {
28 id: 'sess_1',
29 title: 'Session',
30 createdAt: '2026-01-01T00:00:00.000Z',
31 updatedAt: '2026-01-01T00:00:00.000Z',
32 status: 'running',
33 archived: false,
34 currentPromptId: 'prompt_live',
35 cwd: '/workspace',
36 model: 'kimi-code',
37 usage: {
38 inputTokens: 0,
39 outputTokens: 0,
40 cacheReadTokens: 0,
41 cacheCreationTokens: 0,
42 totalCostUsd: 0,
43 contextTokens: 0,
44 contextLimit: 0,
45 turnCount: 0,
46 },
47 messageCount: 0,
48 lastSeq: 0,
49 };
50}
51
52function createState(): ExtendedState {
53 return {

Callers 1

createStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected