MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / withSession

Function withSession

apps/extension/tests/e2e/firefox-selenium-e2e.ts:664–678  ·  view source on GitHub ↗
(
  api: KiloApiHandle,
  options: KiloApiOptions,
  run: (session: FirefoxSession) => Promise<void>
)

Source from the content-addressed store, hash-verified

662 ?.set({ [storageKey]: storageValue })
663 .then(() => {
664 done('ok');
665 return null;
666 })
667 .catch((error: unknown) => {
668 done(error instanceof Error ? error.message : String(error));
669 });
670 },
671 key,
672 value
673 );
674
675 assert.equal(result, 'ok');
676};
677
678const readFirefoxStorage = async (
679 driver: WebDriver,
680 keys: readonly string[]
681): Promise<Record<string, unknown>> => {

Callers 1

Calls 4

startFirefoxSessionFunction · 0.85
closeMethod · 0.65
runFunction · 0.50
resetMethod · 0.45

Tested by

no test coverage detected