MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _get_network_context_snapshot

Function _get_network_context_snapshot

webapp_modern.py:3596–3605  ·  view source on GitHub ↗

Return a storage context for the requested SSID/slug without mutating global state.

(target_identifier: Optional[str])

Source from the content-addressed store, hash-verified

3594 'already_current': bool(result.get('already_current')),
3595 'branch': result.get('branch', ''),
3596 'from_commit': (result.get('from_commit') or '')[:8],
3597 'to_commit': (result.get('to_commit') or '')[:8],
3598 'warnings': result.get('warnings', []),
3599 'restart_pending': False,
3600 }
3601 if not result.get('ok'):
3602 compact['error'] = result.get('error') or 'Update failed'
3603 compact['code'] = result.get('code', '')
3604 compact['hint'] = result.get('hint', '')
3605 return compact
3606 if result.get('already_current'):
3607 compact['message'] = 'Already up to date.'
3608 return compact

Callers 1

Calls 1

get_context_snapshotMethod · 0.80

Tested by

no test coverage detected