Skip to content

Versioning and stability

Binary version

sp version prints the CLI build version (semver). Agents may log this on every session for support correlation.

Command argv stability

Change typePolicy
New subcommandAllowed anytime
New optional flagAllowed anytime
Renaming subcommand or flagDeprecate for one minor release; print stderr warning
Removing subcommand or flagMajor version bump only

Document deprecations in release notes and in command --help text.

JSON field stability

Change typePolicy
New fields in dataAllowed; agents must ignore unknown fields
Renaming or removing fieldsMajor version bump, or add dataVersion in envelope
Changing field typesMajor version bump

Recommended: include "schemaVersion": 1 in the CLI envelope in a future release.

API backend compatibility

The CLI targets sp-boot unified deployment. Backend URL is configurable; the CLI does not pin to separate storage/schedule hostnames (those are internal to sp-boot).

When backend APIs change, update API mapping in the same PR as the CLI implementation.

零代码改动 · 全上下文可见性 · 成本优化