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

Function recordSessionAction

src/daemon/handlers/handler-utils.ts:11–26  ·  view source on GitHub ↗
(
  sessionStore: SessionStore,
  session: SessionState | undefined,
  req: DaemonRequest,
  command: string,
  result: Record<string, unknown> | undefined,
  overrides?: { positionals?: string[]; flags?: CommandFlags },
)

Source from the content-addressed store, hash-verified

9 * record a different set (e.g. resolved positionals or stripped public flags).
10 */
11export function recordSessionAction(
12 sessionStore: SessionStore,
13 session: SessionState | undefined,
14 req: DaemonRequest,
15 command: string,
16 result: Record<string, unknown> | undefined,
17 overrides?: { positionals?: string[]; flags?: CommandFlags },
18): void {
19 if (!session) return;
20 sessionStore.recordAction(session, {
21 command,
22 positionals: overrides?.positionals ?? req.positionals ?? [],
23 flags: overrides?.flags ?? ((req.flags ?? {}) as CommandFlags),
24 result: result ?? {},
25 });
26}

Callers 15

handleAppDeployCommandFunction · 0.90
recordNativePerfActionFunction · 0.90
handleCloseCommandFunction · 0.90
startRecordingFunction · 0.90
handleRecordCommandFunction · 0.90
handleClipboardCommandFunction · 0.90
handleFindWaitFunction · 0.90
handleFindExistsFunction · 0.90
handleFindGetTextFunction · 0.90

Calls 1

recordActionMethod · 0.80

Tested by

no test coverage detected