浏览 1.0.0 文档
1.0.0 文档修订 2

ait change — 完整参考

在一个 Task 内创建、查看、更新、取消以及以其他方式管理 Change 的生命周期。

适用人群: coding agent 与维护者

作用边界#

用途: 在一个 Task 内创建、查看、更新、取消以及以其他方式管理 Change 的生命周期。

影响类别: 既读取 Change,也改动它的生命周期。

覆盖: ait change 下共 8 个公开 help surface。

下面的代码块原样保留 1.0.0 二进制的输出,包含它给出的每一个参数、选项、 默认值、可选值、冲突关系和必填要求。

完整命令树#

Code · text
ait change
ait change create
ait change list
ait change show
ait change revert
ait change replay
ait change close
ait change publish

原样输出的 help#

ait change#

参考描述: 在一个 Task 内创建、查看、更新、取消以及以其他方式管理 Change 的生命周期。

1.0.0 二进制没有为这个 surface 单独给出描述,上面那句是文档补充的说明。 下面是解析器提供的完整用法和选项,未作改动。

Code · text
Usage: ait change <COMMAND>

Commands:
  create   Create an additional Change for an existing Task.
  list     List the current scope's open Changes or complete history.
  show     Inspect one task-scoped Change without modifying it.
  revert   Remove one Change's recorded delta from the current workspace.
  replay   Apply one Change's recorded delta to the current workspace.
  close    Archive one Change without landing it.
  publish  Promote one local draft Change record to a remote.
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

ait change create#

二进制描述: Create an additional Change for an existing Task.

Code · text
Create an additional Change for an existing Task.

Usage: ait change create [OPTIONS] --title <TITLE> <TASK_ID>

Arguments:
  <TASK_ID>  Existing Task ID that will own the new task-scoped Change.

Options:
      --title <TITLE>     Required title for the new Change.
      --base-line <LINE>  Base Line assertion; defaults to the bound worktree target Line, then the repository default Line.
      --local             Use local Change authority even when the configured Change scope is remote.
      --remote <REMOTE>   Use the named remote Change authority even when the configured Change scope is local.
      --json              Emit stable machine-readable JSON.
  -h, --help              Print help

ait change list#

二进制描述: List the current scope's open Changes or complete history.

Code · text
List the current scope's open Changes or complete history.

Usage: ait change list [OPTIONS]

Options:
      --local            List local Changes even when the configured Change scope is remote.
      --remote <REMOTE>  List Changes from the named remote even when the configured Change scope is local.
      --all              Show complete Change history instead of the bounded open view.
      --json             Emit stable machine-readable JSON; the bounded view still applies unless --all is present.
  -h, --help             Print help

ait change show#

二进制描述: Inspect one task-scoped Change without modifying it.

Code · text
Inspect one task-scoped Change without modifying it.

Usage: ait change show [OPTIONS] <TASK_ID/C-##>

Arguments:
  <TASK_ID/C-##>  Task-scoped Change reference; a bare C-## is accepted only when uniquely resolvable.

Options:
      --local            Read local Change authority even when the configured Change scope is remote.
      --remote <REMOTE>  Read the named remote Change authority even when the configured Change scope is local.
      --json             Emit the complete stable machine-readable Change payload.
  -h, --help             Print help

ait change revert#

二进制描述: Remove one Change's recorded fork-to-revision delta from the current workspace. This does not create a Snapshot, move the current Line head, close the Change, or mutate remote state.

Code · text
Remove one Change's recorded fork-to-revision delta from the current workspace. This does not create a Snapshot, move the current Line head, close the Change, or mutate remote state.

Usage: ait change revert [OPTIONS] <TASK_ID/C-##>

Arguments:
  <TASK_ID/C-##>
          Task-scoped Change whose recorded delta will be removed from the workspace.

Options:
      --force
          Overwrite unsaved changes on paths selected by the Change delta.

      --dry-run
          Preview affected paths and overwrite risk without modifying the workspace.

      --local
          Resolve Change lineage locally even when the configured Change scope is remote.

      --remote <REMOTE>
          Resolve Change lineage from the named remote; workspace mutation remains local.

      --json
          Emit the complete stable machine-readable workspace plan or result.

  -h, --help
          Print help (see a summary with '-h')

ait change replay#

二进制描述: Apply one Change's recorded fork-to-revision delta to the current Line workspace. This does not create a Snapshot, move the Line head, land the Change, or mutate remote state.

Code · text
Apply one Change's recorded fork-to-revision delta to the current Line workspace. This does not create a Snapshot, move the Line head, land the Change, or mutate remote state.

Usage: ait change replay [OPTIONS] <TASK_ID/C-##>

Arguments:
  <TASK_ID/C-##>
          Task-scoped Change whose recorded delta will be applied to the workspace.

Options:
      --force
          Overwrite unsaved changes on paths selected by the Change delta.

      --dry-run
          Preview affected paths and overwrite risk without modifying the workspace.

      --local
          Resolve Change lineage locally even when the configured Change scope is remote.

      --remote <REMOTE>
          Resolve Change lineage from the named remote; workspace mutation remains local.

      --json
          Emit the complete stable machine-readable workspace plan or result.

  -h, --help
          Print help (see a summary with '-h')

ait change close#

二进制描述: Archive one Change in the selected scope without landing code. A successful close also attempts bounded safe-only Plan reconciliation for the owning Task.

Code · text
Archive one Change in the selected scope without landing code. A successful close also attempts bounded safe-only Plan reconciliation for the owning Task.

Usage: ait change close [OPTIONS] <TASK_ID/C-##>

Arguments:
  <TASK_ID/C-##>
          Task-scoped Change to archive without landing.

Options:
      --local
          Archive local Change authority even when the configured Change scope is remote.

      --remote <REMOTE>
          Archive Change authority on the named remote even when the configured scope is local.

      --json
          Emit the complete stable machine-readable closeout payload.

  -h, --help
          Print help (see a summary with '-h')

ait change publish#

二进制描述: Promote one local draft Change record to the configured or named remote. This does not publish a Patchset, publish current workspace content, or land the Change.

Code · text
Promote one local draft Change record to the configured or named remote. This does not publish a Patchset, publish current workspace content, or land the Change.

Usage: ait change publish [OPTIONS] <TASK_ID/C-##>

Arguments:
  <TASK_ID/C-##>
          Local task-scoped draft Change to promote.

Options:
      --remote <REMOTE>
          Destination remote; omitted uses the repository default remote.

      --json
          Emit the complete stable machine-readable publication payload.

  -h, --help
          Print help (see a summary with '-h')

Version authority

Checked against the exact 1.0.0 source

This page is public documentation, not a second product contract. Use the exact source and distribution contract for release authority.

Owning component Snapshots
  • ait-coreSNP-B06A48DA0245
  • ait-serverSNP-E90456E6425E
  • ait-runnerSNP-6B0A1BB3AFAD
  • ait-pythonSNP-973E3BFAF3DE
  • ait-nodeSNP-F962CC66AA62