浏览 1.1.1 文档
1.1.1

ait external — 完整参考

查看、物化、固定、链接、解除链接并诊断外部仓库依赖。

适用人群: 开发者与依赖运维

作用边界#

用途: 查看、物化、固定、链接、解除链接并诊断外部仓库依赖。

影响类别: status 和 doctor 只做查看;update、link 和 unlink 会改变依赖或工作区的物化状态。

覆盖: ait external 下共 6 个公开 help surface。

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

完整命令树#

代码 · text
ait external
ait external update
ait external status
ait external doctor
ait external link
ait external unlink

原样输出的 help#

ait external#

二进制描述: Inspect, diagnose, resolve, pin, restore, and locally link external Repository dependencies declared by ait-external.toml. Resolution writes an exact ait-external.lock; generated content is placed at each repository-relative destination declared in the manifest.

代码 · text
Inspect, diagnose, resolve, pin, restore, and locally link external Repository dependencies declared by ait-external.toml. Resolution writes an exact ait-external.lock; generated content is placed at each repository-relative destination declared in the manifest.

Usage: ait external <COMMAND>

Commands:
  update  Resolve and restore declared external Repositories.
  status  Inspect external pins, links, lock drift, and restored content.
  doctor  Evaluate external dependency release readiness without repairing it.
  link    Use another local checkout for one declared direct external.
  unlink  Remove one local external override and restore locked content.
  help    Print this message or the help of the given subcommand(s)

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

说明

查看、诊断、解析、pin、恢复并在本地链接 ait-external.toml 声明的外部 Repository 依赖。解析会写入确切的 ait-external.lock;生成内容放在 manifest 声明的每个仓库相对目标位置。

参数 / 选项说明
update解析并恢复已声明的外部 Repository。
status查看外部依赖 pin、链接、lock 漂移和已恢复内容。
doctor评估外部依赖的发布就绪状态,不做修复。
link为一条已声明的直接外部依赖改用另一个本地检出。
unlink删除一个本地外部覆盖并恢复锁定内容。
help打印本消息或给定子命令的帮助

ait external update#

二进制描述: Resolve and restore declared external Repositories. With no NAME, preserve the manifest's exact pins while updating the complete dependency lock. NAME requires exactly one of --to or --latest. --locked is a separate target-free mode that reads an existing drift-free lockfile without changing the manifest or lockfile.

代码 · text
Resolve and restore declared external Repositories. With no NAME, preserve the manifest's exact pins while updating the complete dependency lock. NAME requires exactly one of --to or --latest. --locked is a separate target-free mode that reads an existing drift-free lockfile without changing the manifest or lockfile.

Usage: ait external update [--validate] [--no-recursive] [--json]
       ait external update <NAME> (--to <SNAPSHOT> | --latest) [--validate] [--no-recursive] [--json]
       ait external update --locked [--validate] [--no-recursive] [--json]

Arguments:
  [NAME]
          Unique direct external name; requires --to or --latest.

Options:
      --to <SNAPSHOT>
          Pin NAME to this exact immutable Snapshot before resolving and restoring its files.

      --latest
          Resolve NAME's declared remote and line head, then persist that exact Snapshot pin.

      --locked
          Restore external files from the existing drift-free ait-external.lock without resolving or changing pins; active local links are rejected.

      --validate
          Prepare the selected files and run destination toolchain checks first; install them only when validation has no errors.

      --no-recursive
          Restore direct external dependencies only; the resolved lockfile still records the complete dependency graph.

      --json
          Emit the complete machine-readable update report.

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

说明

解析并恢复已声明的外部 Repository。未给 NAME 时,保留 manifest 的确切 pin,同时更新完整依赖 lock。给出 NAME 时必须且只能使用 --to 或 --latest 之一。--locked 是独立且不带目标的模式,读取现有无漂移 lockfile,不改动 manifest 或 lockfile。

ait external status#

二进制描述: Read the manifest, lockfile, local links, destination paths, and generated content without repairing or changing them. The report explains whether content is present, missing, linked, dirty, or outdated; lock drift is reported separately.

代码 · text
Read the manifest, lockfile, local links, destination paths, and generated content without repairing or changing them. The report explains whether content is present, missing, linked, dirty, or outdated; lock drift is reported separately.

Usage: ait external status [OPTIONS]

Options:
      --json
          Emit the complete machine-readable status report.

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

说明

读取 manifest、lockfile、本地链接、目标路径和生成内容,不修复或改动它们。报告说明内容是存在、缺失、已链接、dirty 还是过期;lock 漂移单独报告。

ait external doctor#

二进制描述: Check the manifest, lockfile, restored content, local links, destination bindings, licenses, and applicable current-source readiness. The report is always emitted. By default findings are diagnostic only; --fail-on-blocking returns exit code 2 when release_ready is false.

代码 · text
Check the manifest, lockfile, restored content, local links, destination bindings, licenses, and applicable current-source readiness. The report is always emitted. By default findings are diagnostic only; --fail-on-blocking returns exit code 2 when release_ready is false.

Usage: ait external doctor [OPTIONS]

Options:
      --fail-on-blocking
          Return exit code 2 after emitting the report when release-blocking findings exist.

      --json
          Emit the complete machine-readable readiness report.

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

说明

检查 manifest、lockfile、已恢复内容、本地链接、目标绑定、许可证和适用的当前源码就绪状态。始终输出报告。默认情况下发现项仅供诊断;release_ready 为 false 时,--fail-on-blocking 返回退出码 2。

二进制描述: Record a local development override in ait-external.links.toml. NAME must match exactly one direct ait-external.toml declaration. PATH must be an existing directory outside the current Repository; regular updates preserve the override, while locked restores and release checks reject active links.

代码 · text
Record a local development override in ait-external.links.toml. NAME must match exactly one direct ait-external.toml declaration. PATH must be an existing directory outside the current Repository; regular updates preserve the override, while locked restores and release checks reject active links.

Usage: ait external link [OPTIONS] <NAME> <PATH>

Arguments:
  <NAME>
          Unique direct external name declared by ait-external.toml.

  <PATH>
          Existing local checkout directory; relative paths resolve from the Repository root.

Options:
      --json
          Emit the complete machine-readable link result.

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

说明

在 ait-external.links.toml 中记录本地开发 override。NAME 必须精确匹配一条直接 ait-external.toml 声明。PATH 必须是当前 Repository 外已存在的目录;普通更新保留 override,locked 恢复和 release 检查拒绝活动链接。

二进制描述: Remove NAME from ait-external.links.toml. When ait-external.lock exists, restore the matching direct external and its recursive subtree before committing removal of the override. A failed restore leaves the logical link active.

代码 · text
Remove NAME from ait-external.links.toml. When ait-external.lock exists, restore the matching direct external and its recursive subtree before committing removal of the override. A failed restore leaves the logical link active.

Usage: ait external unlink [OPTIONS] <NAME>

Arguments:
  <NAME>
          Local external override name to remove.

Options:
      --json
          Emit the complete machine-readable unlink and restoration result.

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

说明

从 ait-external.links.toml 中删除 NAME。当 ait-external.lock 存在时,会先恢复匹配的直接外部依赖及其递归子树,再提交删除该覆盖。恢复失败时逻辑链接保持活动。

版本权威

对照 1.1.1 源码逐条核对

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

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