feat: task listing wihtout no-intractive (--list and --json flags)#320
feat: task listing wihtout no-intractive (--list and --json flags)#320kazupon wants to merge 2 commits intovoidzero-dev:mainfrom
--list and --json flags)#320Conversation
|
I want an alias for So that AI and others can understand it, I’d like |
|
Alternative: Implement (Though this might be more of a Vite+ issue than a Vite Task issue.) |
I've just updated for docs/listing.md The
I’m concerned that the new Personally, I don’t think it’s necessary. |
|
|
||
| ### AI/LLM Integration | ||
|
|
||
| LLMs and AI agents can retrieve structured task information to understand the project: |
There was a problem hiding this comment.
Ideally we auto-detect the agent and print that by default (or generally in non-interactive mode)
There was a problem hiding this comment.
Thank you for your feedback!
Ideally auto-detecting the agent and adapting stdout accordingly would be great, but I can't see how to implement it reliably, there's no standardized way to detect which agent (Claude Code, Cursor, Copilot, Cline, etc.) is running, and each uses different environment variables (or none at all) 😅
We'd also need to keep adding detection logic as new agents appear.
For now, --list / --json as explicit flags feels like the pragmatic approach.
If a standard for agent detection emerges in the future, we can revisit auto-detection then.
There was a problem hiding this comment.
Nice!
I didn't know about std-env's agent detection 🙈
That changes things. With this, when an agent is detected and vp run is executed, we could default to non-tractive output.
This comment was marked as off-topic.
This comment was marked as off-topic.
| "packagePath": "." | ||
| }, | ||
| { | ||
| "package": null, |
There was a problem hiding this comment.
| "package": null, | |
| "packageName": "", |
Internally, we treat a package.json file without a name field as if the name is an empty string. Tasks within these packages can be matched with #task.
Also, every package is allowed to have an empty name, not just the workspace root.
There was a problem hiding this comment.
It makes sense to use an empty string since it's easier to handle!
I had the same thought 😅 I was planning to propose a Once |
About details, see docs/listing.md