Index

A C D E F G H I J L M N O P R S T U W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AbstractFileProcessor - Class in org.machanism.machai.gw.processor
Base implementation for processors that traverse a project directory and perform work on files and folders.
AbstractFileProcessor(File, Configurator) - Constructor for class org.machanism.machai.gw.processor.AbstractFileProcessor
Creates a new file processor.
ACT_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property for the default act.
Act format - Search tag in class org.machanism.machai.gw.processor.ActProcessor
Section
ActFunctionTools - Class in org.machanism.machai.gw.tools
 
ActFunctionTools() - Constructor for class org.machanism.machai.gw.tools.ActFunctionTools
 
ActNotFound - Exception Class in org.machanism.machai.gw.processor
Exception thrown when a requested act definition cannot be found.
ActNotFound(String) - Constructor for exception class org.machanism.machai.gw.processor.ActNotFound
Creates an exception for the missing act name.
ActProcessor - Class in org.machanism.machai.gw.processor
Processor that runs Ghostwriter in "Act" mode.
ActProcessor(File, Configurator, String) - Constructor for class org.machanism.machai.gw.processor.ActProcessor
Creates an act processor.
ACTS_BASENAME_PREFIX - Static variable in class org.machanism.machai.gw.processor.ActProcessor
Classpath base directory for built-in act definitions.
ACTS_LOCATION_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property for the custom acts location.
addMatchingFile(List<File>, PathMatcher, File, File) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Adds a file to the result when it is eligible for the requested pattern.
addTool(FunctionTools) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Adds a tool definition that will be exposed to the AI provider.
AIFileProcessor - Class in org.machanism.machai.gw.processor
File processor implementation that prepares project context and prompts for a configured AI provider and optionally supports interactive execution.
AIFileProcessor(File, Configurator, String) - Constructor for class org.machanism.machai.gw.processor.AIFileProcessor
Creates a processor for the given project directory and AI provider identifier.
append(String) - Method in class org.machanism.machai.gw.tools.LimitedStringBuilder
Appends text to this builder, trimming any excess characters from the start to stay within the configured maximum size.
applyActData(Map<String, Object>) - Method in class org.machanism.machai.gw.processor.ActProcessor
Applies loaded act data to this processor's configuration and runtime settings.
applyPatch(String, List<String>, Charset) - Static method in class org.machanism.machai.gw.tools.PatchApplier
Applies a unified diff patch to a file.
applySelectorIfPresent(String, String) - Method in class org.machanism.machai.gw.tools.WebFunctionTools
Applies a CSS selector to the response HTML if one was provided.
applyTools(Genai) - Method in class org.machanism.machai.gw.tools.ActFunctionTools
 
applyTools(Genai) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Registers system command and process control tools with the provided Genai.
applyTools(Genai) - Method in class org.machanism.machai.gw.tools.FileFunctionTools
Registers file read/write/list tools into the provided provider.
applyTools(Genai) - Method in class org.machanism.machai.gw.tools.ProjectContextFunctionTools
 
applyTools(Genai) - Method in class org.machanism.machai.gw.tools.WebFunctionTools
Registers web content and REST API function tools with the provided Genai.
Architecture overview - Search tag in Overview
Section
Authentication - Search tag in class org.machanism.machai.gw.tools.WebFunctionTools
Section

C

callRestApi(JsonNode, File) - Method in class org.machanism.machai.gw.tools.WebFunctionTools
Implements call_rest_api by executing an HTTP request against the provided endpoint.
clear() - Method in class org.machanism.machai.gw.tools.LimitedStringBuilder
Clears the retained content.
CommandFunctionTools - Class in org.machanism.machai.gw.tools
Installs command-execution and process-termination tools into a Genai.
CommandFunctionTools() - Constructor for class org.machanism.machai.gw.tools.CommandFunctionTools
 
CommandSecurityChecker - Class in org.machanism.machai.gw.tools
Loads and evaluates command deny-list rules used by host-side command execution tools.
CommandSecurityChecker(Configurator) - Constructor for class org.machanism.machai.gw.tools.CommandSecurityChecker
Creates a new checker and loads deny-list rules from an operating-system specific classpath resource.
CONFIG_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
System property used to override the configuration file name.
CONTINUE_SPECIAL_PROMPT_COMMAND - Static variable in class org.machanism.machai.gw.processor.AIFileProcessor
 

D

deleteTempFiles(File) - Static method in class org.machanism.machai.gw.processor.GuidanceProcessor
Deletes the input-log temporary directory.
denyCheck(String) - Method in class org.machanism.machai.gw.tools.CommandSecurityChecker
Checks whether the supplied command matches any deny-list rule.
DenyException - Exception Class in org.machanism.machai.gw.tools
Exception thrown when a command fails a deny-list security check.
DenyException(String) - Constructor for exception class org.machanism.machai.gw.tools.DenyException
Creates a new exception with a human-readable reason.

E

endTask(JsonNode, File) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Completes the current task by throwing a EndTaskException exception.
EndTaskException - Exception Class in org.machanism.machai.gw.tools
Exception used to signal the end of a task without terminating the application.
EndTaskException(String) - Constructor for exception class org.machanism.machai.gw.tools.EndTaskException
Constructs a new EndTaskException with the specified detail message.
EpisodeNotFoundException - Exception Class in org.machanism.machai.gw.processor
Exception thrown when an episode cannot be resolved by name.
EpisodeNotFoundException(String) - Constructor for exception class org.machanism.machai.gw.processor.EpisodeNotFoundException
Creates an exception for the unresolved episode name.
Episodes - Class in org.machanism.machai.gw.processor
Maintains ordered act episodes and provides execution helpers for normal, selected, repeated, and redirected episode flow.
Episodes() - Constructor for class org.machanism.machai.gw.processor.Episodes
 
EXCLUDES_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property for excluded paths.
executeCommand(JsonNode, File) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Implements the run_command_line_tool tool.
Execution - Search tag in class org.machanism.machai.gw.processor.ActProcessor
Section
EXIT_SPECIAL_PROMPT_COMMAND - Static variable in class org.machanism.machai.gw.processor.AIFileProcessor
 
extractPackageName(String) - Static method in class org.machanism.machai.gw.reviewer.JavaReviewer
Extracts the declared package name from a Java source snippet.

F

FILE_INCLUDED_MARKER - Static variable in class org.machanism.machai.gw.processor.AIFileProcessor
 
FileFunctionTools - Class in org.machanism.machai.gw.tools
Installs file-system tools into a Genai.
FileFunctionTools() - Constructor for class org.machanism.machai.gw.tools.FileFunctionTools
 
fillHeader(String, HttpURLConnection) - Method in class org.machanism.machai.gw.tools.WebFunctionTools
Applies headers to the connection.
findFiles(File) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Recursively lists all files under a directory, excluding known build/tooling directories.
findFiles(File, String) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Finds all files/directories in the provided project folder that match a pattern.

G

getActDetails(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ActFunctionTools
 
getActList(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ActFunctionTools
Lists all available Act TOML files in the specified directory or built-in directory.
getBaseActList() - Method in class org.machanism.machai.gw.tools.ActFunctionTools
 
getCommandLogMatches(JsonNode, File) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Searches a persisted command log for all substrings matching the supplied Java regular expression.
getCommandLogPath(File, String) - Static method in class org.machanism.machai.gw.tools.LimitedStringBuilder
 
getConfigurator() - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Returns the configuration source for this processor.
getConnection(URI, String) - Method in class org.machanism.machai.gw.tools.WebFunctionTools
Creates and configures an HttpURLConnection.
getDefaultPrompt() - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Returns the default prompt used for folder processing.
getDirInfoLine(Collection<String>, File) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Returns a formatted line describing existing directories from the supplied collection.
getEpisodeId() - Method in exception class org.machanism.machai.gw.tools.MoveToEpisodeException
Returns the requested target episode id.
getEpisodeId(Integer, MoveToEpisodeException) - Method in class org.machanism.machai.gw.processor.Episodes
Resolves the next episode index from a move request exception.
getEpisodeIdByName(String) - Method in class org.machanism.machai.gw.processor.Episodes
Returns the zero-based index of the episode whose prompt text contains a heading that matches the specified episode name.
getEpisodeInformation(int) - Method in class org.machanism.machai.gw.processor.Episodes
Builds act metadata that is prepended to an episode prompt.
getEpisodeName(int) - Method in class org.machanism.machai.gw.processor.Episodes
Extracts and returns the episode name (heading) from the prompt text of the episode at the specified index.
getEpisodes() - Method in class org.machanism.machai.gw.processor.Episodes
Returns the configured episode prompts.
getExcludes() - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Returns excludes configured for this processor.
getExitCode() - Method in exception class org.machanism.machai.gw.tools.ProcessTerminationException
Returns the desired exit code.
getInstructions() - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Returns the current base instructions used for processing.
getLastText() - Method in class org.machanism.machai.gw.tools.LimitedStringBuilder
Returns the retained content.
getModel() - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Returns the configured AI model or provider identifier.
getModuleThreadTimeoutMinutes() - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Returns timeout (in minutes) to wait for module processing completion during shutdown.
getName() - Method in exception class org.machanism.machai.gw.processor.ActNotFound
Returns the missing act name.
getName() - Method in class org.machanism.machai.gw.processor.Episodes
Returns the act name associated with these episodes.
getName() - Method in exception class org.machanism.machai.gw.tools.MoveToEpisodeException
Returns the requested target episode name.
getPathMatcher() - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Returns the matcher used to decide whether a file is included.
getPatternPath(String) - Static method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Returns a PathMatcher when the provided string is a path pattern.
getPreviousLogChunk(JsonNode, File) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Retrieves the chunk of previously captured command output that immediately precedes the current tail window.
getProjectContextVariable(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ProjectContextFunctionTools
Retrieves the value of a variable from the project-specific context.
getProjectDir() - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Returns the root directory used as a base for relative paths.
getProjectStructureDescription(ProjectLayout, File) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Builds the formatted project structure description that is supplied to the AI provider as contextual information.
getPrompt(File, File, String) - Method in class org.machanism.machai.gw.reviewer.TextReviewer
Formats the raw guidance content into a prompt fragment.
getRecursiveFiles(JsonNode, File) - Method in class org.machanism.machai.gw.tools.FileFunctionTools
Implements get_recursive_file_list.
getRelativePath(File, File, boolean) - Static method in class org.machanism.machai.gw.tools.FileFunctionTools
Computes a project-relative path string.
getReviewerForExtension(String) - Method in class org.machanism.machai.gw.processor.GuidanceProcessor
Resolves a reviewer for a given file extension.
getScanDir() - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Returns the scan directory used to derive match semantics.
getSupportedFileExtensions() - Method in class org.machanism.machai.gw.reviewer.HtmlReviewer
Returns the file extensions supported by this reviewer.
getSupportedFileExtensions() - Method in class org.machanism.machai.gw.reviewer.JavaReviewer
Returns the file extensions supported by this reviewer.
getSupportedFileExtensions() - Method in class org.machanism.machai.gw.reviewer.MarkdownReviewer
Returns the file extensions supported by this reviewer.
getSupportedFileExtensions() - Method in class org.machanism.machai.gw.reviewer.PumlReviewer
Returns the file extensions supported by this reviewer.
getSupportedFileExtensions() - Method in class org.machanism.machai.gw.reviewer.PythonReviewer
 
getSupportedFileExtensions() - Method in interface org.machanism.machai.gw.reviewer.Reviewer
Returns the file extensions (without the dot) that this reviewer can process.
getSupportedFileExtensions() - Method in class org.machanism.machai.gw.reviewer.TextReviewer
Returns the file extensions supported by this reviewer.
getSupportedFileExtensions() - Method in class org.machanism.machai.gw.reviewer.TypeScriptReviewer
 
getWebContent(JsonNode, File) - Method in class org.machanism.machai.gw.tools.WebFunctionTools
Implements get_web_content by retrieving web content via an HTTP GET request.
getWebPage(HttpURLConnection, int, String) - Method in class org.machanism.machai.gw.tools.WebFunctionTools
Performs the HTTP GET request and returns the response content.
Ghostwriter - Search tag in Overview
Section
Ghostwriter - Class in org.machanism.machai.gw.processor
Command-line entry point for the Ghostwriter application.
GUIDANCE_TAG_NAME - Static variable in class org.machanism.machai.gw.processor.GuidanceProcessor
Tag name for guidance comments.
GuidanceProcessor - Class in org.machanism.machai.gw.processor
Scans a project tree, extracts per-file @guidance directives through Reviewers, and dispatches the resulting prompts to a configured Genai.
GuidanceProcessor(File, String, Configurator) - Constructor for class org.machanism.machai.gw.processor.GuidanceProcessor
Constructs a processor.
GW_PROJECT_LAYOUT_PROP_PREFIX - Static variable in class org.machanism.machai.gw.processor.AbstractFileProcessor
Prefix for project-layout properties exposed for template substitution.
GW_PROPERTIES_FILE_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Default Ghostwriter properties file name.
GW_TEMP_DIR - Static variable in class org.machanism.machai.gw.processor.AIFileProcessor
 
GWConstants - Class in org.machanism.machai.gw.processor
Central constants used by Ghostwriter configuration and runtime processing.

H

Header variable placeholders - Search tag in class org.machanism.machai.gw.tools.WebFunctionTools
Section
HOME_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
System property holding the Ghostwriter home directory.
HtmlReviewer - Class in org.machanism.machai.gw.reviewer
Reviewer implementation for HTML and XML files (.html, .htm, .xml).
HtmlReviewer() - Constructor for class org.machanism.machai.gw.reviewer.HtmlReviewer
 

I

input() - Method in class org.machanism.machai.gw.processor.AIFileProcessor
 
INPUTS_PROPERTY_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
TOML property name containing prompt inputs/episodes.
Installed tools - Search tag in class org.machanism.machai.gw.tools.CommandFunctionTools
Section
Installed tools - Search tag in class org.machanism.machai.gw.tools.FileFunctionTools
Section
INSTRUCTIONS_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property for system instructions.
INTERACTIVE_MODE_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property controlling interactive mode.
isInteractive() - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Indicates whether interactive processing mode is enabled.
isLogInputs() - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Indicates whether provider input logging is enabled.
isModuleDir(ProjectLayout, File) - Static method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Checks whether dir is one of the project module directories.
isNonRecursive() - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Returns whether recursion into modules/subdirectories is disabled.
isPathPattern(String) - Static method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Tests whether a scan pattern string is a glob: or regex: matcher.
isRegularOrder() - Method in class org.machanism.machai.gw.processor.Episodes
Returns whether no explicit episode subset has been selected.

J

JavaReviewer - Class in org.machanism.machai.gw.reviewer
Reviewer implementation for Java source files (.java).
JavaReviewer() - Constructor for class org.machanism.machai.gw.reviewer.JavaReviewer
 

L

length() - Method in class org.machanism.machai.gw.tools.LimitedStringBuilder
Returns the number of characters currently retained.
LimitedStringBuilder - Class in org.machanism.machai.gw.tools
A StringBuilder-like helper that retains only the last maxSize characters.
LimitedStringBuilder(int, String, File) - Constructor for class org.machanism.machai.gw.tools.LimitedStringBuilder
Creates a builder that keeps at most maxSize characters.
listFiles(JsonNode, File) - Method in class org.machanism.machai.gw.tools.FileFunctionTools
Implements list_files_in_directory.
loadAct(String, Map<String, Object>, String) - Static method in class org.machanism.machai.gw.processor.ActProcessor
Loads an act definition into the provided map, supporting inheritance via the basedOn property.
loadReviewers() - Method in class org.machanism.machai.gw.processor.GuidanceProcessor
Loads file reviewers via the ServiceLoader registry, mapping supported file extensions to a reviewer.
LOG_OUTPUT_PREFIX - Static variable in class org.machanism.machai.gw.processor.AIFileProcessor
 
LOG_PROMPT_MAX_LENGTH - Static variable in class org.machanism.machai.gw.processor.GWConstants
Maximum prompt length used when abbreviating log output.

M

main(String[]) - Static method in class org.machanism.machai.gw.processor.Ghostwriter
Starts the Ghostwriter CLI.
MarkdownReviewer - Class in org.machanism.machai.gw.reviewer
Reviewer implementation for Markdown files (.md).
MarkdownReviewer() - Constructor for class org.machanism.machai.gw.reviewer.MarkdownReviewer
 
match(File, File) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Determines whether the specified file should be included for processing based on exclusion rules, path matching patterns, and project structure.
match(File, File) - Method in class org.machanism.machai.gw.processor.GuidanceProcessor
Applies matching logic and default-guidance behavior.
matchPath(File, File, String, String) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
 
MODEL_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property for the active model/provider.
moveToEpisode(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ActFunctionTools
Moves to the next episode, or to the episode specified by 'id' if provided.
MoveToEpisodeException - Exception Class in org.machanism.machai.gw.tools
Exception used to request a jump to another act episode during execution.
MoveToEpisodeException(Integer, String) - Constructor for exception class org.machanism.machai.gw.tools.MoveToEpisodeException
Creates a move request for an episode id or name.
MULTIPLE_LINES_BREAKER - Static variable in class org.machanism.machai.gw.processor.GWConstants
Line continuation marker used for multi-line console input.

N

NONRECURSIVE_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property controlling recursive module traversal.
normalizeExtensionKey(String) - Static method in class org.machanism.machai.gw.processor.GuidanceProcessor
Normalizes a file extension (with or without a leading dot) into a lower-case lookup key.
NOT_DEFINED_VALUE - Static variable in class org.machanism.machai.gw.processor.AIFileProcessor
 

O

org.machanism.machai.gw.processor - Search tag in Overview
Section
org.machanism.machai.gw.processor - package org.machanism.machai.gw.processor
Ghostwriter processors and command-line orchestration.
org.machanism.machai.gw.reviewer - Search tag in Overview
Section
org.machanism.machai.gw.reviewer - package org.machanism.machai.gw.reviewer
Provides reviewer implementations that inspect project artifacts for embedded @guidance directives and convert matching files into prompt fragments for the Ghostwriter review pipeline.
org.machanism.machai.gw.tools - Search tag in Overview
Section
org.machanism.machai.gw.tools - package org.machanism.machai.gw.tools
Provides host-integrated function tool implementations used by Ghostwriter to expose local file-system, command-line, web, act-management, and project-context capabilities to AI providers.

P

Package overview - Search tag in Overview
Section
parseEnv(String, Configurator) - Static method in class org.machanism.machai.gw.tools.CommandFunctionTools
Parses the env parameter string into a map of environment variables.
parseFile(File, File) - Method in class org.machanism.machai.gw.processor.GuidanceProcessor
Uses a Reviewer (based on file extension) to extract guidance.
parseLines(String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Normalizes multi-line input and resolves supported line references such as HTTP URLs and file: references.
parseScanDir(File, String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Resolves the effective scan directory and converts it into a glob expression when required.
PatchApplier - Class in org.machanism.machai.gw.tools
Utility to apply unified diff patches to text files.
PatchApplier() - Constructor for class org.machanism.machai.gw.tools.PatchApplier
 
pathDepth(String) - Static method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Computes the depth of a path for sorting.
perform(File, File) - Method in class org.machanism.machai.gw.reviewer.HtmlReviewer
Reviews the given file and returns a formatted prompt fragment when guidance is present.
perform(File, File) - Method in class org.machanism.machai.gw.reviewer.JavaReviewer
Reviews the provided Java file and, if guidance is present, returns a formatted prompt fragment.
perform(File, File) - Method in class org.machanism.machai.gw.reviewer.MarkdownReviewer
Reviews the given Markdown file and returns a formatted prompt fragment when guidance is present.
perform(File, File) - Method in class org.machanism.machai.gw.reviewer.PumlReviewer
Reviews the given PlantUML file for contained guidance comments and formats the content for input to documentation generators.
perform(File, File) - Method in class org.machanism.machai.gw.reviewer.PythonReviewer
 
perform(File, File) - Method in interface org.machanism.machai.gw.reviewer.Reviewer
Reviews a file and returns a formatted fragment (often including file content and/or extracted guidance) for use by the Ghostwriter pipeline.
perform(File, File) - Method in class org.machanism.machai.gw.reviewer.TextReviewer
Reads and formats the guidance file if the provided file is named @guidance.txt.
perform(File, File) - Method in class org.machanism.machai.gw.reviewer.TypeScriptReviewer
 
performAct(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ActFunctionTools
Performs an act operation based on the provided properties and working directory.
popProjectContextVariable(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ProjectContextFunctionTools
 
Primary processor types - Search tag in package org.machanism.machai.gw.processor
Section
process(ProjectLayout, File, String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Processes the given file using the currently configured instructions.
process(ProjectLayout, File, String) - Method in class org.machanism.machai.gw.processor.GuidanceProcessor
Composes the final prompt and dispatches it to the configured provider.
process(ProjectLayout, File, String, String...) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
 
processFile(ProjectLayout, File) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Extracts guidance for a file and, when present, performs provider processing.
processFile(ProjectLayout, File) - Method in class org.machanism.machai.gw.processor.ActProcessor
Executes the act against episodes single file.
processFile(ProjectLayout, File) - Method in class org.machanism.machai.gw.processor.GuidanceProcessor
Extracts guidance for a file and, when present, performs provider processing.
processFolder(ProjectLayout) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Processes a project layout for documentation gathering.
processFolder(ProjectLayout) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Processes the project root folder using the configured default prompt.
Processing workflow - Search tag in Overview
Section
processModule(File, String) - Method in class org.machanism.machai.gw.processor.GuidanceProcessor
Processes a module directory.
processModulesMultiThreaded(File, List<String>) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Processes all discovered modules concurrently.
processParentFiles(ProjectLayout) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Processes non-module files and directories directly under projectDir.
processParentFiles(ProjectLayout) - Method in class org.machanism.machai.gw.processor.ActProcessor
Processes files and folders under the parent project directory (excluding modules).
processParentFiles(ProjectLayout) - Method in class org.machanism.machai.gw.processor.GuidanceProcessor
Processes files and folders under the parent project directory (excluding modules).
processProjectDir(ProjectLayout, String) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Processes files in a project directory matching a provided pattern or directory.
ProcessTerminationException - Exception Class in org.machanism.machai.gw.tools
Runtime exception used by terminate_process to signal early termination to the host.
ProcessTerminationException(int) - Constructor for exception class org.machanism.machai.gw.tools.ProcessTerminationException
 
ProcessTerminationException(String, int) - Constructor for exception class org.machanism.machai.gw.tools.ProcessTerminationException
Creates a termination exception.
ProcessTerminationException(String, Throwable, int) - Constructor for exception class org.machanism.machai.gw.tools.ProcessTerminationException
Creates a termination exception.
PROJECT_DIR_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Project directory configuration property name.
ProjectContextFunctionTools - Class in org.machanism.machai.gw.tools
 
ProjectContextFunctionTools() - Constructor for class org.machanism.machai.gw.tools.ProjectContextFunctionTools
 
promptBundle - Variable in class org.machanism.machai.gw.processor.GuidanceProcessor
Resource bundle supplying prompt templates for generators.
PumlReviewer - Class in org.machanism.machai.gw.reviewer
Reviewer implementation for PlantUML files (.puml).
PumlReviewer() - Constructor for class org.machanism.machai.gw.reviewer.PumlReviewer
 
Purpose - Search tag in Overview
Section
pushProjectContextVariable(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ProjectContextFunctionTools
 
putProjectContextVariable(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ProjectContextFunctionTools
Sets a variable in the act context.
PythonReviewer - Class in org.machanism.machai.gw.reviewer
Reviewer implementation for Python source files (.py).
PythonReviewer() - Constructor for class org.machanism.machai.gw.reviewer.PythonReviewer
 

R

readFile(JsonNode, File) - Method in class org.machanism.machai.gw.tools.FileFunctionTools
Implements read_file_from_file_system.
readFromFilePath(String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Reads UTF-8 text content from the given file path.
readFromHttpUrl(String) - Static method in class org.machanism.machai.gw.processor.AIFileProcessor
Reads UTF-8 text content from the given HTTP or HTTPS URL.
regularOrder(Integer, BiFunction<Integer, String, String>) - Method in class org.machanism.machai.gw.processor.Episodes
Executes episodes in regular order starting from the supplied zero-based index while honoring repeat and move requests.
repeateEpisode(JsonNode, File) - Method in class org.machanism.machai.gw.tools.ActFunctionTools
Repeats the current episode by throwing a RepeatEpisodeException.
RepeatEpisodeException - Exception Class in org.machanism.machai.gw.tools
Exception used to request that the current act episode be executed again.
RepeatEpisodeException() - Constructor for exception class org.machanism.machai.gw.tools.RepeatEpisodeException
Creates a repeat request for the current episode.
replace(String, Configurator) - Static method in class org.machanism.machai.gw.tools.CommandFunctionTools
Resolves ${...} placeholders using the provided configurator.
requestedOrder(BiFunction<Integer, String, String>) - Method in class org.machanism.machai.gw.processor.Episodes
Executes only the explicitly selected episodes in their requested order.
resolveWorkingDir(File, String) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Resolves a working directory relative to a canonical project directory.
Reviewer - Interface in org.machanism.machai.gw.reviewer
Service-provider interface (SPI) for components that scan project files and extract @guidance instructions for downstream processing.

S

SCAN_DIR_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property for the scan path/pattern.
scanDocuments(File) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Scans documents in the given root directory and prepares inputs for documentation generation.
scanDocuments(File, String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Configures scanning based on the provided directory or path pattern and then starts scanning the project folder.
scanFolder(File) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Recursively scans project folders, processing documentation inputs for all found modules and files.
Security model - Search tag in class org.machanism.machai.gw.tools.CommandFunctionTools
Section
See also - Search tag in Overview
Section
setAct(String) - Method in class org.machanism.machai.gw.processor.ActProcessor
Loads an act definition and applies it as the current execution defaults.
setActData(Map<String, Object>, TomlParseResult) - Static method in class org.machanism.machai.gw.processor.ActProcessor
Copies dotted-string keys from the TOML parse result into properties.
setActsLocation(String) - Method in class org.machanism.machai.gw.processor.ActProcessor
Sets the directory used for loading external act definition files.
setConfigurator(Configurator) - Method in class org.machanism.machai.gw.tools.ActFunctionTools
 
setConfigurator(Configurator) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Configures this tool set with the shared application configurator and initializes the command security checker.
setConfigurator(Configurator) - Method in class org.machanism.machai.gw.tools.WebFunctionTools
Supplies configuration for resolving header placeholders.
setDefaultPrompt(String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Sets the default prompt used for folder processing.
setDegreeOfConcurrency(int) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Enables or disables multi-threaded module processing.
setDisableNormalOrder(boolean) - Method in class org.machanism.machai.gw.processor.ActProcessor
Enables or disables continuation with the default episode execution order.
setEpisodes(List<String>) - Method in class org.machanism.machai.gw.processor.Episodes
Replaces the current ordered episode list.
setExcludes(String[]) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Sets exclude patterns/paths.
setInstructions(String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Sets the base instructions used for processing after normalizing line content and resolving supported references.
setInteractive(boolean) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Enables or disables interactive processing mode.
setLogInputs(boolean) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Enables or disables logging of provider inputs.
setModel(String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Sets the AI model or provider identifier.
setModuleThreadTimeoutMinutes(long) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Sets the module processing shutdown timeout.
setName(String) - Method in class org.machanism.machai.gw.processor.Episodes
Sets the act name associated with these episodes.
setNonRecursive(boolean) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Sets whether scanning is restricted to the current directory only.
setPathMatcher(PathMatcher) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Sets the path matcher used to include only matching files.
setScanDir(File) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Sets the scan directory that originated the current match operation.
setSelectedEpisodes(List<Integer>) - Method in class org.machanism.machai.gw.processor.Episodes
Sets the list of explicitly requested episode identifiers.
shouldExcludePath(Path) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Determines whether a relative path should be excluded according to AbstractFileProcessor.excludes.
shouldIncludeInFindFiles(File, File) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Determines whether an entry found in AbstractFileProcessor.findFiles(File) should be included.
shutdownExecutor(ExecutorService) - Method in class org.machanism.machai.gw.processor.AbstractFileProcessor
Shuts down an ExecutorService safely without throwing from a finally block.
size() - Method in class org.machanism.machai.gw.processor.Episodes
Returns the number of configured episodes.
Supporting types - Search tag in package org.machanism.machai.gw.processor
Section

T

TASK_TERMINATED_BY_FUNCTION_TOOL_MESSAGE - Static variable in class org.machanism.machai.gw.tools.CommandFunctionTools
 
terminateExecution(JsonNode, File) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Implements the terminate_task tool.
TextReviewer - Class in org.machanism.machai.gw.reviewer
Reviewer implementation for generic guidance text files.
TextReviewer() - Constructor for class org.machanism.machai.gw.reviewer.TextReviewer
 
THREADS_PROP_NAME - Static variable in class org.machanism.machai.gw.processor.GWConstants
Configuration property for worker thread count.
tryLoadActFromClasspath(Map<String, Object>, String) - Static method in class org.machanism.machai.gw.processor.ActProcessor
Attempts to load an act definition from classpath resources.
tryLoadActFromDirectory(Map<String, Object>, String, String) - Static method in class org.machanism.machai.gw.processor.ActProcessor
Attempts to load an act definition from episodes user-defined directory.
tryToGetInstructionsFromReference(String) - Method in class org.machanism.machai.gw.processor.AIFileProcessor
Resolves a single instruction line that may point to external content.
TypeScriptReviewer - Class in org.machanism.machai.gw.reviewer
Reviewer implementation for TypeScript source files (.ts).
TypeScriptReviewer() - Constructor for class org.machanism.machai.gw.reviewer.TypeScriptReviewer
 
Typical usage - Search tag in package org.machanism.machai.gw.processor
Section

U

Usage notes - Search tag in Overview
Section
USER_INPUT_PREFIX - Static variable in class org.machanism.machai.gw.processor.Ghostwriter
 

W

waitAndCollect(Process, Future<?>, Future<?>, LimitedStringBuilder, String) - Method in class org.machanism.machai.gw.tools.CommandFunctionTools
Waits for the process to finish (up to CommandFunctionTools.processTimeoutSeconds) and then returns collected output.
WebFunctionTools - Class in org.machanism.machai.gw.tools
Installs HTTP retrieval tools into a Genai.
WebFunctionTools() - Constructor for class org.machanism.machai.gw.tools.WebFunctionTools
 
writeFile(JsonNode, File) - Method in class org.machanism.machai.gw.tools.FileFunctionTools
Implements write_file_to_file_system.
A C D E F G H I J L M N O P R S T U W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form