export declare const AGENT_CAPABILITIES_SCHEMA = "allure-agent-capabilities/v1"; export declare const createAgentCapabilities: () => { readonly schema: "allure-agent-capabilities/v1"; readonly commands: { readonly help: { readonly supported: true; readonly usage: "allure --version; allure agent --help; allure agent capabilities"; readonly output: readonly ["human", "json"]; }; readonly run: { readonly supported: true; readonly usage: "allure agent [options] -- "; readonly options: readonly ["--config", "--cwd", "--output", "--report", "--results-dir", "--expectations", "--goal", "--task-id", "--expect-tests", "--expect-label", "--expect-env", "--expect-test", "--expect-prefix", "--expect-step-containing", "--forbid-label", "--expect-steps", "--expect-attachments", "--expect-attachment", "--environment", "--environment-name", "--silent", "--rerun-from", "--rerun-latest", "--rerun-preset", "--rerun-environment", "--rerun-label"]; }; readonly inspect: { readonly supported: true; readonly usage: "allure agent inspect [options] [ ...]"; readonly inputs: readonly ["allure-results-directories", "dump-archives"]; readonly options: readonly ["--config", "--cwd", "--output", "--report", "--report-name", "--name", "--dump", "--open", "--port", "--history-limit", "--hide-labels", "--expectations", "--goal", "--task-id", "--expect-tests", "--expect-label", "--expect-env", "--expect-test", "--expect-prefix", "--expect-step-containing", "--forbid-label", "--expect-steps", "--expect-attachments", "--expect-attachment", "--environment", "--environment-name"]; }; readonly latest: { readonly supported: true; readonly usage: "allure agent latest [--cwd ]"; readonly output: readonly ["agent output: ", "agent index: /index.md"]; }; readonly stateDir: { readonly supported: true; readonly usage: "allure agent state-dir [--cwd ]"; readonly environmentVariable: "ALLURE_AGENT_STATE_DIR"; }; readonly select: { readonly supported: true; readonly usage: "allure agent select (--latest | --from ) [options]"; readonly presets: readonly ["review", "failed", "unsuccessful", "all"]; readonly filters: readonly ["environment", "label"]; readonly output: readonly ["stdout-testplan-json", "file-testplan-json", "file-summary"]; }; readonly query: { readonly supported: true; readonly usage: "allure agent query (--latest | --from ) [summary|tests|findings|test] [options]"; readonly views: readonly ["summary", "tests", "findings", "test"]; readonly filters: readonly ["status", "environment", "label", "severity", "category", "check", "test"]; readonly output: readonly ["json"]; }; readonly rerun: { readonly supported: true; readonly usage: "allure agent (--rerun-latest | --rerun-from ) [filters] -- "; readonly presets: readonly ["review", "failed", "unsuccessful", "all"]; readonly filters: readonly ["environment", "label"]; readonly transport: "ALLURE_TESTPLAN_PATH"; }; }; readonly expectations: { readonly inline: { readonly supported: true; readonly goal: true; readonly taskId: true; readonly expected: { readonly testCount: true; readonly labels: true; readonly environments: true; readonly fullNames: true; readonly fullNamePrefixes: true; }; readonly forbidden: { readonly labels: true; readonly environments: false; readonly fullNames: false; readonly fullNamePrefixes: false; }; readonly evidence: { readonly stepNameContains: true; readonly minSteps: true; readonly minAttachments: true; readonly attachmentFilters: readonly ["name", "content-type"]; }; }; readonly file: { readonly supported: true; readonly formats: readonly ["yaml", "json"]; }; }; readonly output: { readonly automaticTempDirectory: true; readonly explicitOutputOption: "--output "; readonly explicitOutputCleanup: "When --output is provided, the output directory and its lifetime are caller-managed. Agent-mode cleanup will not remove it, so agents that pass --output should remove or archive that directory when it is no longer needed; later state compaction drops missing explicit outputs from the registry."; readonly schema: "allure-agent-output/v1"; readonly files: readonly ["index.md", "AGENTS.md", "manifest/run.json", "manifest/test-events.jsonl", "manifest/tests.jsonl", "manifest/findings.jsonl", "manifest/expected.json", "manifest/human-report.json", "tests//.md", "artifacts/global/", "awesome/index.html"]; }; readonly humanReports: { readonly supported: true; readonly option: "--report "; readonly defaultMode: "auto"; readonly modes: { readonly auto: "Generate a single-file Awesome report when the stored visible result count is 1000 or fewer; skip above that threshold."; readonly off: "Disable human-readable reports and write agent artifacts only."; readonly awesome: "Force a single-file Awesome report and ignore the auto threshold."; readonly config: "Force the configured non-agent report plugins inside the agent output directory and ignore the auto threshold."; }; readonly threshold: { readonly resultCount: 1000; readonly appliesTo: "auto"; readonly countSource: "Allure store visible logical test results with retries excluded"; readonly generatedWhen: "<= 1000"; readonly skippedWhen: "> 1000"; }; readonly statusManifest: "manifest/human-report.json"; readonly defaultGeneratedPath: "awesome/index.html"; readonly discovery: readonly ["When a user asks for a human-readable report after an agent run, first use `allure agent latest` if no output directory is known.", "Read `/manifest/human-report.json`, the Human Report section of `/index.md`, or `allure agent query --latest summary` to check whether a report already exists.", "If the status is `generated`, use `/` from the human-report manifest; for auto and awesome this is usually `/awesome/index.html`.", "If the status is `skipped`, `disabled`, `failed`, or the manifest is missing, generate a report only from available results or dumps with the requested `--report` mode."]; }; readonly unsupported: { readonly discovery: true; readonly configureIntegration: true; readonly executionSignal: true; readonly compare: true; readonly flaky: true; readonly duplicates: true; readonly stale: true; readonly suppressions: true; readonly observe: true; readonly interrupt: true; readonly localAgentService: true; readonly expectationControls: readonly ["--expect-evidence"]; }; }; export declare const AGENT_TASK_MAP_HELP = "Agent task map:\n allure --version\n allure agent --help\n allure agent capabilities\n Setup and capability detection. Use when the local CLI surface is unknown,\n generated guidance may be stale, or an agent needs supported flags without\n guessing.\n\n allure agent --goal ... -- \n Run a test command with runtime evidence, scope expectations, and\n agent-readable artifacts for review, debugging, smoke checks, or validation.\n Use --report auto|off|awesome|config to control the optional human report.\n The default --report auto may already generate awesome/index.html in the\n agent output when the stored visible result count is 1000 or fewer.\n\n allure agent inspect [ ...]\n allure agent inspect --dump [--dump ...]\n Restore one or more dump archives and/or read existing Allure results\n directories, then produce agent-readable artifacts without executing a\n test command. Use --report auto|off|awesome|config to control the optional\n human report. Use after downloading CI dump artifacts created by\n allure run --dump or when local results already exist.\n\n allure agent latest\n Recover the newest agent output directory and index.md when --output was\n omitted or a follow-up task needs the previous run. If a user asks for a\n human-readable report from the last run, start here, then inspect\n /manifest/human-report.json and use / when status is\n generated.\n\n allure agent state-dir\n Show the shared state directory that stores per-project run registries. Useful when\n latest cannot find a run or CI/sandbox state looks wrong.\n\n allure agent select --latest\n allure agent select --from \n Inspect/filter prior results and write an Allure test plan before rerun.\n\n allure agent query --latest summary\n allure agent query --from tests\n allure agent query --from findings\n Inspect prior agent output as focused JSON without manually loading raw\n manifests. Use for summaries, human_report status, filtered test lists,\n findings, or one test.\n\n allure agent --rerun-latest -- \n allure agent --rerun-from -- \n Rerun the failed, unsuccessful, or selected tests from prior agent output\n through Allure test plan support.\n\nEnvironment:\n ALLURE_AGENT_STATE_DIR=\n Override the shared agent state directory. Useful in CI, sandboxes, or\n multi-job setups that need a deterministic shared state location.\n\nHuman reports:\n Default agent runs use --report auto. For 1000 or fewer stored visible logical\n results, the last run may already contain a human-readable single-file Awesome\n report at /awesome/index.html. Larger runs are skipped in auto mode to\n avoid excessive output.\n\n When a user asks for \"the report\" after a run, do not assume it needs to be\n regenerated. First run allure agent latest when the output directory is\n unknown, then read /manifest/human-report.json or\n allure agent query --latest summary. If the human-report status is generated,\n return or open / from that manifest. If the status is skipped,\n disabled, failed, or missing, rerun or inspect existing results/dumps with the\n requested --report mode, for example --report awesome to force the single-file\n Awesome report or --report config to force configured report plugins.\n"; export declare const isAgentTaskMapHelpRequest: (args: string[]) => boolean;