Skip to content

同步bailian deployment能力 - #86

Merged
heimanba merged 4 commits into
mainfrom
feat/cma
Aug 14, 2026
Merged

同步bailian deployment能力#86
heimanba merged 4 commits into
mainfrom
feat/cma

Conversation

@chenanran555

Copy link
Copy Markdown
Contributor

Summary

Why

Type

  • New provider
  • [✅] New feature
  • Bug fix
  • Refactor
  • Documentation
  • Tests

Surface area

  • [✅] Workspace/package boundaries
  • Provider interface / adapter contract
  • YAML schema / config types
  • [✅] CLI commands
  • WebUI
  • State management
  • Execution / planning logic
  • Tests / fixtures
  • None of the above

Checklist

  • [✅] bun run verify:full passes
  • [✅] New provider follows the six-file structure, if applicable
  • [✅] No new runtime dependencies added without justification

Behavior / risk

Validation

Bailian's Agent Studio now exposes a first-class Deployment resource, so
replace the emulated implementation that expanded a deployment into a
one-shot Session at run time. The adapter now uses the real endpoints for
create, get, list, update, archive, run, and pause/unpause; the deployment
API takes `agent` as an object ({id, version?}) rather than the bare id
the sessions API accepts.

Notable behavior: file resources upload at apply time instead of run time,
and updateDeployment falls back to create when a state row carries a null
remote_id so deployments recorded under the emulated implementation
materialize on the next apply. Removing an existing schedule is rejected —
update replaces only the fields it is given and the API documents no null
form for `schedule`.

`user.define_outcome` events and `github_repository` resources are dropped
from the payload and now warn in validate-config; the emulated schedule
warning no longer fires since cron runs server-side. Docs, capability
tables, examples, and the live smoke script move to native.

Verified: typecheck, bun test (653 pass), biome. Not run against the live
API — no workspace credentials.
# Conflicts:
#	packages/sdk/tests/unit/validate-config.test.ts
@chenanran555
chenanran555 requested a review from heimanba as a code owner August 14, 2026 07:57
heimanba
heimanba previously approved these changes Aug 14, 2026
@heimanba
heimanba merged commit 9ccef75 into main Aug 14, 2026
16 checks passed
@heimanba
heimanba deleted the feat/cma branch August 14, 2026 08:21
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.

2 participants