Class: AdvisorExt

Inherits:
Clacky::ApiExtension show all
Defined in:
lib/clacky/default_extensions/advisor/api/handler.rb

Overview

Advisor extension HTTP API, mounted at /api/ext/advisor/. The WebUI close button calls /disable so the recommendation card stops appearing; /enable restores it. The choice is persisted in ~/.clacky/advisor.yml and honoured by the hooks on the next round.

Constant Summary

Constants inherited from Clacky::ApiExtension

Clacky::ApiExtension::ALLOWED_SESSION_SOURCES, Clacky::ApiExtension::DEFAULT_TIMEOUT, Clacky::ApiExtension::HTTP_METHODS, Clacky::ApiExtension::MAX_TIMEOUT

Instance Attribute Summary

Attributes inherited from Clacky::ApiExtension

#params, #req, #res, #route

Method Summary

Methods inherited from Clacky::ApiExtension

#agent_config, class_timeout, compile_pattern, #config, #create_session, #data_path, #dispatch_to_session, #error!, ext_dir, #ext_dir, ext_dir=, ext_id, #ext_id, ext_id=, inherited, #initialize, #invoke, #json, #json_body, #logger, meta, meta=, normalize_pattern, pending_subclasses, #project_manager, public_endpoint, public_paths, #query, register, registry, #registry, reset_registry!, reset_routes!, routes, #send_data, #server_start_time, #session_manager, #submit_task, #text, timeout

Constructor Details

This class inherits a constructor from Clacky::ApiExtension