浏览 1.1.1 文档
1.1.1

ait change — 完整参考

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

适用人群: coding agent 与维护者

作用边界#

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

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

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

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

完整命令树#

代码 · 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#

二进制描述: Create, inspect, publish, or close Task-owned Changes.

代码 · text
Create, inspect, publish, or close Task-owned Changes.

Usage: ait change <COMMAND>

Commands:
  create   Create an additional Change for an existing Task.
  list     List open Changes or complete Change history locally or on a remote.
  show     Inspect one Task-owned Change without changing 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 finishing 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

说明

创建、查看、发布或关闭 Task 所属的 Change。

参数 / 选项说明
create为一个已有 Task 再创建一个 Change。
list在本地或远程列出开放的 Change 或完整 Change 历史。
show查看一个 Task 所属的 Change,但不作改动。
revert从当前工作区移除一个 Change 记录的增量。
replay将一个 Change 记录的增量应用到当前工作区。
close归档某个 Change,但不完成它。
publish将一个本地草稿 Change 记录晋升到远程。
help打印本消息或给定子命令的帮助
-h, --help打印帮助

ait change create#

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

代码 · 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 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             Create the Change locally even when Change commands default to a remote.
      --remote <REMOTE>   Create the Change on the named remote even when Change commands default to local.
      --json              Emit stable machine-readable JSON.
  -h, --help              Print help

说明

为一个已有 Task 再创建一个 Change。

参数 / 选项说明
<TASK_ID>将拥有新 Change 的现有 Task ID。
--title <TITLE>新 Change 的必填标题。
--base-line <LINE>基 Line 断言;默认为绑定 worktree 的目标 Line,其次为仓库默认 Line。
--local即使 Change 命令默认使用远程,也在本地创建 Change。
--remote <REMOTE>即使 Change 命令默认使用本地,也在指定远程创建 Change。
--json输出稳定的机器可读 JSON。
-h, --help打印帮助

ait change list#

二进制描述: List open Changes or complete Change history locally or on a remote.

代码 · text
List open Changes or complete Change history locally or on a remote.

Usage: ait change list [OPTIONS]

Options:
      --local            List local Changes even when Change commands default to a remote.
      --remote <REMOTE>  List Changes from the named remote even when Change commands default to 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

说明

在本地或远程列出开放的 Change 或完整 Change 历史。

参数 / 选项说明
--local即使 Change 命令默认为远程,也列出本地 Change。
--remote <REMOTE>即使 Change 命令默认为本地,也列出指定远程上的 Change。
--all显示完整的 Change 历史,而不是有界的开放视图。
--json输出稳定的机器可读 JSON;除非给出 --all,有界视图仍然适用。
-h, --help打印帮助

ait change show#

二进制描述: Inspect one Task-owned Change without changing it.

代码 · text
Inspect one Task-owned Change without changing it.

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

Arguments:
  <TASK_ID/C-##>  Task-owned Change reference; a bare C-## is accepted only when it identifies one Change.

Options:
      --local            Read the local Change even when Change commands default to a remote.
      --remote <REMOTE>  Read the Change from the named remote even when Change commands default to local.
      --json             Emit the complete stable machine-readable Change payload.
  -h, --help             Print help

说明

查看一个 Task 所属的 Change,但不作改动。

参数 / 选项说明
<TASK_ID/C-##>Task 所属的 Change 引用;裸 C-## 只有在能标识唯一 Change 时才被接受。
--local即使 Change 命令默认为远程,也读取本地 Change。
--remote <REMOTE>即使 Change 命令默认为本地,也读取指定远程上的 Change。
--json输出完整且稳定的机器可读 Change 载荷。
-h, --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 change remote data.

代码 · 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 change remote data.

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

Arguments:
  <TASK_ID/C-##>
          Task-owned 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
          Read the Change's local history even when Change commands default to a remote.

      --remote <REMOTE>
          Read the Change's history from the named remote; only local workspace files are changed.

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

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

说明

从当前工作区移除一个 Change 已记录的 fork 到修订差异。此操作不会创建 Snapshot、移动当前 Line head、关闭 Change 或改动远程数据。

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, finish the Change, or change remote data.

代码 · 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, finish the Change, or change remote data.

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

Arguments:
  <TASK_ID/C-##>
          Task-owned 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
          Read the Change's local history even when Change commands default to a remote.

      --remote <REMOTE>
          Read the Change's history from the named remote; only local workspace files are changed.

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

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

说明

把某个 Change 记录的 fork 到修订版本的增量应用到当前 Line 工作区。这不会创建 Snapshot、移动 Line head、完成该 Change,也不会改动远程数据。

ait change close#

二进制描述: Archive one local or remote Change without applying its code to the target Line. A successful close also attempts a bounded safe Plan repair for the owning Task.

代码 · text
Archive one local or remote Change without applying its code to the target Line. A successful close also attempts a bounded safe Plan repair for the owning Task.

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

Arguments:
  <TASK_ID/C-##>
          Task-owned Change to archive without applying it to the target Line.

Options:
      --local
          Archive the local Change even when Change commands default to a remote.

      --remote <REMOTE>
          Archive the Change on the named remote even when Change commands default to local.

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

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

说明

归档某个本地或远程 Change,且不把它的代码应用到目标 Line。成功关闭后还会为其所属 Task 尝试一次有界且安全的 Plan 修复。

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 finish the Change.

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

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

Arguments:
  <TASK_ID/C-##>
          Local Task-owned 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')

说明

把某个本地草稿 Change 记录提升到已配置或指定的 remote。这不会发布 Patchset、发布当前工作区内容,也不会完成该 Change。

版本权威

对照 1.1.1 源码逐条核对

这一页是公开文档,不是第二份产品契约。要确认发布权威,请以确切的源码和分发契约为准。

所属组件 Snapshot
  • ait-coreSNP-ED7593DBF982
  • ait-serverSNP-0CCD7DD2A077
  • ait-runnerSNP-35C9C133D2EE
  • ait-pythonSNP-756C731A4CC0
  • ait-nodeSNP-55E90D0A81F1