/** * CLI argument parsing and help display */ import type { ThinkingLevel } from "@kolisachint/hoocode-agent-core"; import type { ExtensionFlag } from "../core/extensions/types.js"; export type Mode = "text" | "json" | "rpc"; export interface Args { provider?: string; model?: string; apiKey?: string; systemPrompt?: string; thinking?: ThinkingLevel; continue?: boolean; resume?: boolean; help?: boolean; version?: boolean; mode?: Mode; noSession?: boolean; /** Internal: task id assigned by SubagentPool when this process is a spawned subagent. */ taskId?: string; /** Hard cap on assistant turns. Near the cap the agent is asked to wrap up; at the cap it is stopped. */ maxTurns?: number; session?: string; /** Base URL of a hooteams server to bridge into the task panel's teams view, or "auto" to discover a config and spawn one locally. */ team?: string; fork?: string; sessionDir?: string; models?: string[]; tools?: string[]; disallowedTools?: string[]; noTools?: boolean; noBuiltinTools?: boolean; /** Tri-state override of the `enableSubagent` setting (default true): --enable-subagents → true, --no-subagents → false, unset → setting. */ subagent?: boolean; /** Dispatch eligible subagents on reused warm RPC workers (overrides the warmSubagents setting). */ warmSubagents?: boolean; /** Tree-wide subagent nesting cap (overrides the maxSubagentDepth setting). */ maxSubagentDepth?: number; /** Internal: restricts which subagent types this process may delegate to. */ delegateAllow?: string[]; todoWrite?: boolean; /** Enable the webfetch + websearch tools (off by default). */ enableWebTools?: boolean; /** Enable the autonomous plugin system — plugin lifecycle tools (SearchPlugins, InstallPlugin, ...) and ProposePlugin (off by default). */ enablePluginTools?: boolean; /** Build the semantic index and fuse it into `SearchCodebase`; the tool itself is always registered and runs lexical-only without it. */ enableSemanticIndex?: boolean; /** Minimal low-token preset for small/local models: read/write/edit/bash only, terse prompt, no subagents/todo/skills/context files/mode appendix. */ light?: boolean; /** Print the fixed per-turn surface (system prompt + serialized tool schema token estimate) and exit. */ printTokenSurface?: boolean; /** * Platform layout(s) hoocode targets when it WRITES artifacts (authored * plugins, /new-skill //new-agent //new-command scaffolds). Raw tokens as * given (comma-separated and/or repeated); normalized downstream: * agents|native, claude, github|copilot|gh. */ platform?: string[]; /** Path to an explicit PEM CA bundle to trust additively for hoocode's own TLS traffic. */ caCert?: string; /** Trust the OS/system CA store additively (opt-in) for hoocode's own TLS traffic. */ useSystemCa?: boolean; extensions?: string[]; noExtensions?: boolean; print?: boolean; export?: string; noSkills?: boolean; skills?: string[]; agents?: string[]; promptTemplates?: string[]; noPromptTemplates?: boolean; slashCommands?: string[]; noSlashCommands?: boolean; themes?: string[]; noThemes?: boolean; modePaths?: string[]; noContextFiles?: boolean; listModels?: string | true; offline?: boolean; verbose?: boolean; messages: string[]; fileArgs: string[]; /** Unknown flags (potentially extension flags) - map of flag name to value */ unknownFlags: Map; diagnostics: Array<{ type: "warning" | "error"; message: string; }>; } export declare function isValidThinkingLevel(level: string): level is ThinkingLevel; export declare function parseArgs(args: string[]): Args; export declare function printHelp(extensionFlags?: ExtensionFlag[]): void; //# sourceMappingURL=args.d.ts.map