mirror of
https://github.com/tale/headplane.git
synced 2026-08-10 14:06:51 +00:00
chore: push disabled local-agent code
This commit is contained in:
@@ -111,12 +111,12 @@ export async function loadContext(): Promise<HeadplaneContext> {
|
||||
const cacheTTL = 300 * 1000; // 5 minutes
|
||||
|
||||
// Load agent cache
|
||||
if (cacheEnabled) {
|
||||
log.info('CTXT', 'Initializing Agent Cache');
|
||||
log.debug('CTXT', 'Cache Path: %s', cachePath);
|
||||
log.debug('CTXT', 'Cache TTL: %d', cacheTTL);
|
||||
await initAgentCache(cacheTTL, cachePath);
|
||||
}
|
||||
// if (cacheEnabled) {
|
||||
// log.info('CTXT', 'Initializing Agent Cache');
|
||||
// log.debug('CTXT', 'Cache Path: %s', cachePath);
|
||||
// log.debug('CTXT', 'Cache TTL: %d', cacheTTL);
|
||||
// await initAgentCache(cacheTTL, cachePath);
|
||||
// }
|
||||
|
||||
context = {
|
||||
debug,
|
||||
|
||||
@@ -5,6 +5,7 @@ export type SessionData = {
|
||||
oidc_state: string;
|
||||
oidc_code_verif: string;
|
||||
oidc_nonce: string;
|
||||
agent_onboarding: boolean;
|
||||
user: {
|
||||
subject: string;
|
||||
name: string;
|
||||
|
||||
@@ -97,6 +97,7 @@ export function initAgentSocket(context: LoaderFunctionArgs['context']) {
|
||||
// Check the cache and then attempt the websocket query
|
||||
// If we aren't connected to an agent, then debug log and return the cache
|
||||
export async function queryAgent(nodes: string[]) {
|
||||
return;
|
||||
if (!cache) {
|
||||
log.error('CACH', 'Cache not initialized');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user