Repository navigation
feat(flow-agent): add flow-agent command group, deprecate app call/list (prepare 2.10.0) - #320
Merged
Merged
Conversation
Register bl flow-agent (13 commands) as the canonical application group; keep only app call/list as deprecated wrappers pointing at flow-agent. Product-layer deprecation (description prefix + note + stderr warning), no commandAliases. Migrate e2e to flow-agent, add product-level deprecation tests, sync skill reference/routing/READMEs (cli copies byte-identical), amend 2.9.0 CHANGELOG.
Bump seven packages 2.9.0 -> 2.10.0; add 2.10.0 CHANGELOG (flow-agent command group, app call/list deprecated) and restore the published 2.9.0 entry; sync SKILL metadata.
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
Add a canonical
bl flow-agentcommand group (13 commands) for managing Bailian applications, and deprecate thebl appgroup down to justcall/list(kept as deprecated wrappers pointing atflow-agent call/flow-agent list). The 11 control-plane commands now live only underflow-agent.Both groups are real entries in the canonical
commandsmap — nocommandAliasesis used.What changed
packages/cli/src/deprecated.ts(new): product-layerdeprecatedCommand(command, replacementPath)wrapper —[Deprecated]/[已废弃]description prefix, a leading deprecation note, and a stderr warning on invocation (ctx.output.info, text mode). Preservesauth/risk/flags/prepare/validatevia spread. No core/runtime changes.packages/cli/src/commands.ts: register 13flow-agent *paths (original command objects); remove the 11appcontrol-plane paths; keepapp call/app listas deprecated wrappers.tools/generate-reference.ts:GROUP_OWNER_SKILLregistersflow-agent → bailian-cli.packages/commands/src/commands/app/) and export names are unchanged (capability-based layout; product paths decided by the entry map).Docs
flow-agent.md(13 commands);app.mdnow onlycall/list, both marked[Deprecated].bailian-cliSKILL routing/examples/workflows switched toflow-agent;bailian-gen/bailian-protocol/bailian-managed-agenthand-offs updated.app list→flow-agent list;packages/cli/README*copies synced byte-for-byte (cmpverified) so the releaseassertReadmeSyncself-check passes.Addedusesflow-agentnaming, newDeprecated/已弃用section forapp call/list.Tests
app-control.e2e.test.ts: control-plane cases migrated toflow-agent *paths;app call/listkept as library-level contracts.flow-agent-deprecation.e2e.test.ts(uses the real product map): registration counts,[Deprecated]help, stderr warning in text mode, clean JSON stdout, removedapp create→ exit 2,flow-agenthelp not deprecated.registry.smokeassertions updated for the[Deprecated]description prefix.Note: the commands-library harness loads raw exports by name (bypassing the product map), so deprecation marking is asserted at the product level, not in commands e2e.
Verification (Node v22.23.0, maxWorkers=2)
pnpm run check: 0 errors (2 pre-existing warnings), exit 0.app-control.e2e: 55 passed / 1 skipped (live), 2.70s.flow-agent-deprecation.e2e: 7 passed, 4.85s.registry.smoke: 447 passed, 10.73s.bl flow-agent --helpshows 13 commands (no deprecation);bl app --helpshows onlycall/list, both[Deprecated].