MCPcopy Create free account
hub / github.com/tiann/hapi / buildSessionStartHookTrustedHash

Function buildSessionStartHookTrustedHash

cli/src/codex/utils/codexMcpConfig.ts:76–88  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

74}
75
76function buildSessionStartHookTrustedHash(command: string): string {
77 return versionForTomlLikeValue({
78 event_name: 'session_start',
79 hooks: [
80 {
81 async: false,
82 command,
83 timeout: 600,
84 type: 'command'
85 }
86 ]
87 });
88}
89
90function sessionFlagsHookStateKey(): string {
91 const sourcePath = process.platform === 'win32'

Callers 1

Calls 1

versionForTomlLikeValueFunction · 0.85

Tested by

no test coverage detected