fix: default explore/record output to ~/.opencli/ instead of cwd#720
Open
Astro-Han wants to merge 4 commits intojackwener:mainfrom
Open
fix: default explore/record output to ~/.opencli/ instead of cwd#720Astro-Han wants to merge 4 commits intojackwener:mainfrom
Astro-Han wants to merge 4 commits intojackwener:mainfrom
Conversation
…kwener#711) Previously `explore` and `record` wrote artifacts to `.opencli/` relative to cwd, polluting project directories. Now they default to `~/.opencli/explore/<site>/` and `~/.opencli/record/<site>/`, consistent with `operate init` writing to `~/.opencli/clis/`. Changes: - explore: default outDir → ~/.opencli/explore/<site>/ - record: default outDir → ~/.opencli/record/<site>/ - synthesize: resolveExploreDir checks ~/.opencli/ first, cwd fallback - cli: add --out <dir> option to explore command Closes jackwener#711
Sync documentation with the new default output directory. Also improve resolveExploreDir error message with a hint for legacy artifact paths.
4bffa0e to
e0990c4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
exploreandrecordwrote artifacts to.opencli/relative to cwd, polluting project directories. This PR changes the default output to~/.opencli/explore/<site>/and~/.opencli/record/<site>/, consistent withoperate initwriting to~/.opencli/clis/.Also adds
--out <dir>option toexplore(already existed onrecord), updates all documentation references, and improvesresolveExploreDirerror message for legacy artifact paths.Related issue: #711
Type of Change
Checklist
Changes
src/explore.ts~/.opencli/explore/<site>/src/record.ts~/.opencli/record/<site>/src/synthesize.tsresolveExploreDirchecks~/.opencli/first, cwd fallback for legacy; improved error hintsrc/cli.ts--out <dir>option toexplorecommandCLI-EXPLORER.mdREADME.zh-CN.mddocs/developer/ai-workflow.mdskills/opencli-explorer/SKILL.mdskills/opencli-usage/plugins.mdScreenshots / Output