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

Function getSnapshot

packages/server/test/snapshot.e2e.test.ts:110–119  ·  view source on GitHub ↗
(
  r: RunningServer,
  sid: string,
)

Source from the content-addressed store, hash-verified

108}
109
110async function getSnapshot(
111 r: RunningServer,
112 sid: string,
113): Promise<{ statusCode: number; env: ReturnType<typeof envelopeOf<SessionSnapshotResponse>> }> {
114 const res = await appOf(r).inject({
115 method: 'GET',
116 url: `/api/v1/sessions/${sid}/snapshot`,
117 });
118 return { statusCode: res.statusCode, env: envelopeOf<SessionSnapshotResponse>(res.json()) };
119}
120
121describe('GET /api/v1/sessions/{sid}/snapshot (v2 initial sync)', () => {
122 it('idle fresh session → empty snapshot at the session-creation watermark', async () => {

Callers 1

Calls 4

injectMethod · 0.80
jsonMethod · 0.80
appOfFunction · 0.70
envelopeOfFunction · 0.70

Tested by

no test coverage detected