Description
The --ai generation logic in autocli 0.3.8 incorrectly includes the AI's thought process and conversational text at the beginning of the generated .yaml file. This results in a Failed to parse YAML error because the file is no longer a valid YAML document.
Environment
- autocli version: 0.3.8
- OS: macOS
- Command:
autocli generate https://news.hada.io --goal hada --ai
Actual Behavior
The generated file ~/.autocli/adapters/hada/hada.yaml contains the following non-YAML text at the top:
"Looking at the captured data, I can see this is GeekNews (news.hada.io) — a Korean tech/developer news aggregator..."
This causes the parser to fail with:
error=[adapter] Failed to parse YAML: mapping values are not allowed in this context at line 2 column 11
Expected Behavior
The generated YAML file should only contain the valid YAML structure (starting from site: hada or relevant metadata keys) without any conversational commentary from the AI.
Evidence (File Content Snippet)
Looking at the captured data, I can see this is **GeekNews (news.hada.io)** — a Korean tech/developer news aggregator similar to Hacker News. The data is entirely in the HTML (server-rendered), with no API endpoint. The page lists ranked topics with titles, authors, points, and comment links.
Looking at the captured data, I can see this is GeekNews (news.hada.io) ...
meta_title: "GeekNews - 개발/기술/스타트업 뉴스 서비스"
meta_description: "..."
meta_keywords: "..."
Since this is a pure HTML page with no XHR/fetch API, I'll use DOM scraping via `evaluate`.
```yaml
site: hada
name: hada
description: GeekNews(news.hada.io) 메인 페이지의 인기 기술/개발 뉴스 목록을 가져옵니다
domain: news.hada.io
...
`` `
Description
The --ai generation logic in autocli 0.3.8 incorrectly includes the AI's thought process and conversational text at the beginning of the generated .yaml file. This results in a Failed to parse YAML error because the file is no longer a valid YAML document.
Environment
autocli generate https://news.hada.io --goal hada --aiActual Behavior
The generated file
~/.autocli/adapters/hada/hada.yamlcontains the following non-YAML text at the top:Expected Behavior
The generated YAML file should only contain the valid YAML structure (starting from site: hada or relevant metadata keys) without any conversational commentary from the AI.
Evidence (File Content Snippet)