@kvell007/embed-labs-cli 0.1.0-alpha.5 → 0.1.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -83,7 +83,7 @@ const BUILD_IMAGE_DTB_USAGE = "Usage: embed build image dtb --dtb <local.dtb|loc
83
83
  const IMAGE_DTB_COMPOSE_USAGE = "Usage: embed image dtb compose --package <dtb-package.json> --base-image <boot.img|image.img> --output <image> [--manifest <manifest.json>] [--force] [--json]";
84
84
  const LOCAL_TOOLCHAIN_LATEST_USAGE = "Usage: embed local toolchain latest [--board taishanpi-1m-rk3566] [--channel stable] [--metadata-root <path>] [--json]";
85
85
  const LOCAL_TOOLCHAIN_CURRENT_USAGE = "Usage: embed local toolchain current [--install-root <path>] [--json]";
86
- const LOCAL_TOOLCHAIN_INSTALL_USAGE = "Usage: embed local toolchain install [--board taishanpi-1m-rk3566] [--channel stable] [--metadata-root <path>] [--source-url <tar.gz-url>|--source-release-root <path>] [--install-root <path>] [--force] [--json]";
86
+ const LOCAL_TOOLCHAIN_INSTALL_USAGE = "Usage: embed local toolchain install [--board taishanpi-1m-rk3566] [--channel stable] [--metadata-root <path>] [--source-url <tar.gz-url>|--source-release-root <path>] [--install-root <path>] [--force] [--json]\nDefault source: the production download channel at download.embedboard.com.";
87
87
  const LOCAL_TOOLCHAIN_VALIDATE_USAGE = "Usage: embed local toolchain validate [--release-root <path>] [--json]";
88
88
  const LOCAL_COMPILE_TAISHANPI_USAGE = "Usage: embed local compile taishanpi --source <main.c|main.cpp> --output <artifact> [--release-root <path>] [--account <account_id>] [--json]";
89
89
  const LOCAL_BUILD_QT_SMOKE_USAGE = "Usage: embed local build qt-smoke --build-dir <dir> [--source <qt-smoke-dir>] [--release-root <path>] [--account <account_id>] [--json]";
@@ -5266,8 +5266,12 @@ function renderLocalToolchainLatest(result) {
5266
5266
  `channel=${result.channel}`,
5267
5267
  `version=${result.version}`,
5268
5268
  `host=${result.host}`,
5269
- result.metadata_root ? `metadata_root=${result.metadata_root}` : "metadata=built-in"
5270
- ];
5269
+ result.metadata_root ? `metadata_root=${result.metadata_root}` : "metadata=built-in",
5270
+ result.download ? `download=${result.download.mirror_kind}:${result.download.source_url}` : "",
5271
+ result.download ? `archive_sha256=${result.download.archive.sha256}` : "",
5272
+ result.download ? `archive_size_bytes=${result.download.archive.size_bytes}` : "",
5273
+ result.download_error ? `download_error=${result.download_error}` : ""
5274
+ ].filter(Boolean);
5271
5275
  if (result.packages.length > 0) {
5272
5276
  lines.push("packages:");
5273
5277
  for (const pkg of result.packages) {
@@ -6086,7 +6090,7 @@ Main workflow:
6086
6090
  embed agent run --prompt "验证开发板状态"
6087
6091
  5. Validate or use the local TaishanPi toolchain:
6088
6092
  embed local toolchain latest
6089
- embed local toolchain install --source-url <toolchain.tar.gz>
6093
+ embed local toolchain install
6090
6094
  embed local toolchain validate
6091
6095
  embed local compile taishanpi --source ./main.c --output ./.embed-labs/build/main
6092
6096
  embed local build qt-smoke --build-dir ./.embed-labs/build/qt-smoke
@@ -6134,7 +6138,7 @@ Local hardware:
6134
6138
  embed device list
6135
6139
  embed local toolchain latest
6136
6140
  embed local toolchain current
6137
- embed local toolchain install --source-url <toolchain.tar.gz>
6141
+ embed local toolchain install
6138
6142
  embed local toolchain validate
6139
6143
  embed local compile taishanpi --source ./main.c --output ./.embed-labs/build/main
6140
6144
  embed local build qt-smoke --build-dir ./.embed-labs/build/qt-smoke
@@ -6339,6 +6343,7 @@ Usage:
6339
6343
  embed local toolchain latest [--board taishanpi-1m-rk3566] [--channel stable] [--metadata-root <path>] [--json]
6340
6344
  embed local toolchain current [--install-root <path>] [--json]
6341
6345
  embed local toolchain install [--board taishanpi-1m-rk3566] [--channel stable] [--metadata-root <path>] [--source-url <tar.gz-url>|--source-release-root <path>] [--install-root <path>] [--force] [--json]
6346
+ Defaults to the production download channel at download.embedboard.com.
6342
6347
  embed local toolchain validate [--release-root <path>] [--json]
6343
6348
  embed local compile taishanpi --source <main.c|main.cpp> --output <artifact> [--release-root <path>] [--account <account_id>] [--json]
6344
6349
  embed local build qt-smoke --build-dir <dir> [--source <qt-smoke-dir>] [--release-root <path>] [--account <account_id>] [--json]