MCPcopy Index your code
hub / github.com/callstack/agent-device / makeSession

Function makeSession

src/daemon/__tests__/session-store.test.ts:17–30  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

15};
16
17function makeSession(name: string): SessionState {
18 return {
19 name,
20 device: {
21 platform: 'apple',
22 id: 'sim-1',
23 name: 'iPhone',
24 kind: 'simulator',
25 booted: true,
26 },
27 createdAt: Date.now(),
28 actions: [],
29 };
30}
31
32function isSessionScriptFile(file: string): boolean {
33 return file.endsWith('.ad');

Calls

no outgoing calls

Tested by

no test coverage detected