feat(generate): implement registerCandidates to copy generated CLIs to user directory#310
Open
0xsline wants to merge 3 commits intojackwener:mainfrom
Open
feat(generate): implement registerCandidates to copy generated CLIs to user directory#3100xsline wants to merge 3 commits intojackwener:mainfrom
0xsline wants to merge 3 commits intojackwener:mainfrom
Conversation
…o user directory - Read candidates.json index from synthesize output directory - Copy matched YAML files to ~/.opencli/clis/ (or opts.userClis) - Support optional name filter to register only a specific candidate - Create user CLI directory if it does not exist - Warn and skip files that already exist to avoid overwriting - Remove TODO comment and stub implementation; return real count
Fix dead link in docs/adapters/index.md that references /adapters/desktop/doubao-app but the page did not exist. This was causing vitepress docs-build to fail.
- doubao-app.md: accept upstream version (table format) - generate.ts: remove stale no-op stub comment (function is now implemented)
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.
Summary
registerCandidatesfunction insrc/generate.ts~/.opencli/clis/)candidates.jsonfrom the synthesize output directory to locate candidate YAML filesopts.nameis providedMotivation
The
registerCandidatesfunction was a stub returning{ ok: true, count: 0 }, meaningopencli generateandopencli recordworkflows completed without error but silently registered nothing. Users received misleading success feedback.Test plan
opencli generate <url>now copies YAML to~/.opencli/clis/