MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / getVpsPanelSnapshot

Function getVpsPanelSnapshot

content/vps-panel.js:127–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127function getVpsPanelSnapshot() {
128 const authUrlEl = findAuthUrlElement();
129 const oauthHeader = findCodexOAuthHeader();
130 const managementKeyInput = findManagementKeyInput();
131 const managementLoginButton = findManagementLoginButton();
132 const rememberCheckbox = findRememberPasswordCheckbox();
133 const oauthNavLink = findOAuthNavLink();
134
135 return {
136 url: location.href,
137 readyState: document.readyState,
138 title: getInlineTextSnippet(document.title || '', 80),
139 authUrlVisible: Boolean(authUrlEl),
140 authUrlText: getInlineTextSnippet(authUrlEl?.textContent || '', 120),
141 oauthHeaderVisible: Boolean(oauthHeader),
142 oauthHeaderText: getInlineTextSnippet(oauthHeader?.textContent || '', 120),
143 managementKeyVisible: Boolean(managementKeyInput),
144 managementLoginVisible: Boolean(managementLoginButton),
145 managementLoginText: getInlineTextSnippet(getActionText(managementLoginButton), 60),
146 rememberCheckboxVisible: Boolean(rememberCheckbox),
147 rememberCheckboxChecked: Boolean(rememberCheckbox?.checked),
148 oauthNavVisible: Boolean(oauthNavLink),
149 oauthNavText: getInlineTextSnippet(getActionText(oauthNavLink), 80),
150 bodySnippet: getPageTextSnippet(),
151 };
152}
153
154function getVpsPanelSnapshotSignature(snapshot) {
155 return JSON.stringify({

Callers 3

vps-panel.jsFile · 0.85
step1_getOAuthLinkFunction · 0.85

Calls 9

findAuthUrlElementFunction · 0.85
findCodexOAuthHeaderFunction · 0.85
findManagementKeyInputFunction · 0.85
findOAuthNavLinkFunction · 0.85
getInlineTextSnippetFunction · 0.85
getPageTextSnippetFunction · 0.85
getActionTextFunction · 0.70

Tested by

no test coverage detected