MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / basePayload

Function basePayload

packages/opencode-atomic-hooks/src/cli.ts:161–170  ·  view source on GitHub ↗
(
  sessionId: string,
  directory: string,
)

Source from the content-addressed store, hash-verified

159 * @returns A partial payload with `session_id`, `cwd`, and `timestamp`
160 */
161export function basePayload(
162 sessionId: string,
163 directory: string,
164): { session_id: string; cwd: string; timestamp: string } {
165 return {
166 session_id: sessionId,
167 cwd: directory,
168 timestamp: new Date().toISOString(),
169 };
170}

Callers 7

createBeforeToolHandlerFunction · 0.90
createAfterToolHandlerFunction · 0.90
createChatHandlerFunction · 0.90
handleSessionCreatedFunction · 0.90
handleSessionIdleFunction · 0.90
handleSessionDeletedFunction · 0.90
handleSessionErrorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected