Class HooksDiscoverRequest
java.lang.Object
com.github.copilot.generated.rpc.HooksDiscoverRequest
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public final class HooksDiscoverRequest
extends Object
Optional project paths and host-exclusion behavior for server-scoped hook discovery.
Required inputs are constructor arguments. Optional inputs have fluent setters.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theexcludeHostHooksproperty.Returns thehookDirectoriesproperty.Returns theprojectPathsproperty.setExcludeHostHooks(Boolean value) Sets theexcludeHostHooksproperty.setHookDirectories(List<String> value) Sets thehookDirectoriesproperty.setProjectPaths(List<String> value) Sets theprojectPathsproperty.
-
Constructor Details
-
HooksDiscoverRequest
public HooksDiscoverRequest()Creates a request with its required inputs.
-
-
Method Details
-
getProjectPaths
Returns theprojectPathsproperty.- Returns:
- Optional project directory paths whose trusted repository and project-expanded plugin hooks should be discovered. When omitted or empty, user, managed-policy, and globally enabled installed or explicit plugin hooks are returned without project expansion.
-
getExcludeHostHooks
Returns theexcludeHostHooksproperty.- Returns:
- When true, omit host-owned user and plugin hook rows and their diagnostics. Managed-policy hooks and trusted repository hooks remain visible, and host disabledHooks still contribute to each remaining row's effective enabled state. This filters sources rather than simulating a host with no settings.
-
getHookDirectories
Returns thehookDirectoriesproperty.- Returns:
- Explicit discovery-only file-hook roots, separate from callback hooks and filesystem grants. Available without ambient discovery or repository file-hook enablement, subject to managed/hook disables. Relative paths resolve against the request's effective working directory when supplied. Null and omission are equivalent; an empty array contributes no explicit roots.
-
setProjectPaths
Sets theprojectPathsproperty.- Parameters:
value- Optional project directory paths whose trusted repository and project-expanded plugin hooks should be discovered. When omitted or empty, user, managed-policy, and globally enabled installed or explicit plugin hooks are returned without project expansion.- Returns:
- this request
-
setExcludeHostHooks
Sets theexcludeHostHooksproperty.- Parameters:
value- When true, omit host-owned user and plugin hook rows and their diagnostics. Managed-policy hooks and trusted repository hooks remain visible, and host disabledHooks still contribute to each remaining row's effective enabled state. This filters sources rather than simulating a host with no settings.- Returns:
- this request
-
setHookDirectories
Sets thehookDirectoriesproperty.- Parameters:
value- Explicit discovery-only file-hook roots, separate from callback hooks and filesystem grants. Available without ambient discovery or repository file-hook enablement, subject to managed/hook disables. Relative paths resolve against the request's effective working directory when supplied. Null and omission are equivalent; an empty array contributes no explicit roots.- Returns:
- this request
-