Skip to content

feat(app): add control-plane commands for agents and workflows (prepare 2.9.0) - #318

Merged
lishengzxc merged 3 commits into
mainfrom
feat/app-control-plane-commands
Nov 12, 2026
Merged

lishengzxc merged 3 commits into
mainfrom
feat/app-control-plane-commands

Conversation

@lishengzxc

Copy link
Copy Markdown
Contributor

Summary

Expand bl app from just call/list to a full control-plane surface, mirroring the console app-center assistant/workflow pages (referenced from bailian-agent-infra/apps/app-flow-agents). All commands go through the existing console gateway (auth: "console").

New commands

Agent / app lifecycle (app-control 2.0 + app-data):

  • app create — agent (app-control.create, default config) or workflow (app-data.createAppDraft)
  • app get — detail / version (--scope, --agent-version)
  • app update — read draft -> merge -> write; agent config or workflow metadata
  • app publish / app delete (high-risk, --yes) / app copy / app versions

Workflow canvas (app-orchestra-flow):

  • app workflow get / save (whole-draft replace, optimistic-lock version) / publish (trigger normalization) / export (DSL download)

Extended: app list --type agent|workflow (workflow uses the exclusion filter notInTypes:[5,8,10]).

Design notes

  • Config input: convenience flags (--model/--instructions) + --config-json/--config-file, merged over the current draft.
  • Reserved global flags avoided: --config-json (not --config), --agent-version/--flow-version (not --version).
  • dry-run: static commands make zero requests; read-modify-write commands do read-only planning (require a console token).
  • Bilingual help; server errors passed through unchanged.

Verification

  • pnpm run check: 0 errors (2 pre-existing warnings in runtime/utils/binary-update.ts).
  • New app-control.e2e.test.ts: 50 passed / 1 skipped (live gated), 3.05s wall, Node v22.23.0, maxWorkers=2; includes 2 representative subprocess cases.
  • bl registry.smoke: 444 passed.
  • sync:skill-assets regenerated reference; SKILL routing + EN/ZH READMEs updated.

Out of scope (follow-up)

DSL import (OSS two-step upload), version-description update, legacy 1.0 agent update.

Sync app-center console APIs via console gateway: app create/get/update/publish/delete/copy/versions and app workflow get/save/publish/export; app list gains --type. Read-merge-write config updates; high-risk delete (--yes). Flags: --config-json/--agent-version/--flow-version. Adds app-control e2e; regenerates skill reference/READMEs.
Bump seven packages 2.8.6 -> 2.9.0, add bilingual CHANGELOG (app control-plane commands, omni default model, free-tier confirmation/recovery hints, telemetry uid), sync SKILL metadata.
@lishengzxc lishengzxc changed the title feat(app): add control-plane commands for agents and workflows feat(app): add control-plane commands for agents and workflows (prepare 2.9.0) Nov 12, 2026
@lishengzxc
lishengzxc merged commit 5928da0 into main Nov 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant