MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / persistentHostKey

Function persistentHostKey

tools/claw-launcher-ui/server.mjs:2469–2479  ·  view source on GitHub ↗
({ config, runner, workspaceDir, model, appSessionId })

Source from the content-addressed store, hash-verified

2467}
2468
2469function persistentHostKey({ config, runner, workspaceDir, model, appSessionId }) {
2470 return JSON.stringify({
2471 runner: runner.label,
2472 command: runner.command,
2473 workspaceDir: normalizeWorkspaceDir(workspaceDir),
2474 model,
2475 permissionMode: config.permissionMode,
2476 appSessionId,
2477 gatewayKey: gatewayConfigKey(config),
2478 })
2479}
2480
2481async function disposePersistentHost(reason = '') {
2482 const host = persistentHost

Callers 1

ensurePersistentHostFunction · 0.85

Calls 2

normalizeWorkspaceDirFunction · 0.85
gatewayConfigKeyFunction · 0.85

Tested by

no test coverage detected