@@ -3066,6 +3066,7 @@ describe("google-meet plugin", () => {
|
3066 | 3066 | resolveStorePath: vi.fn(() => "/tmp/sessions.json"), |
3067 | 3067 | loadSessionStore: vi.fn(() => sessionStore), |
3068 | 3068 | saveSessionStore: vi.fn(async () => {}), |
| 3069 | +updateSessionStore: vi.fn(async (_storePath, mutator) => mutator(sessionStore as never)), |
3069 | 3070 | resolveSessionFilePath: vi.fn(() => "/tmp/session.json"), |
3070 | 3071 | }, |
3071 | 3072 | runEmbeddedPiAgent: vi.fn(async () => ({ |
@@ -3322,6 +3323,7 @@ describe("google-meet plugin", () => {
|
3322 | 3323 | }, |
3323 | 3324 | }; |
3324 | 3325 | let pullCount = 0; |
| 3326 | +const sessionStore: Record<string, unknown> = {}; |
3325 | 3327 | const runtime = { |
3326 | 3328 | nodes: { |
3327 | 3329 | invoke: vi.fn(async ({ params }: { params?: { action?: string; base64?: string } }) => { |
@@ -3342,8 +3344,9 @@ describe("google-meet plugin", () => {
|
3342 | 3344 | ensureAgentWorkspace: vi.fn(async () => {}), |
3343 | 3345 | session: { |
3344 | 3346 | resolveStorePath: vi.fn(() => "/tmp/sessions.json"), |
3345 | | -loadSessionStore: vi.fn(() => ({})), |
| 3347 | +loadSessionStore: vi.fn(() => sessionStore), |
3346 | 3348 | saveSessionStore: vi.fn(async () => {}), |
| 3349 | +updateSessionStore: vi.fn(async (_storePath, mutator) => mutator(sessionStore as never)), |
3347 | 3350 | resolveSessionFilePath: vi.fn(() => "/tmp/session.json"), |
3348 | 3351 | }, |
3349 | 3352 | runEmbeddedPiAgent: vi.fn(async () => ({ |
|