@erclx/aitk 0.107.0 → 0.107.1
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/package.json
CHANGED
package/scripts/core/verify.sh
CHANGED
|
@@ -482,13 +482,26 @@ main() {
|
|
|
482
482
|
# so the skip below is for a contributor's machine rather than for the merge
|
|
483
483
|
# gate. A runner installs the CLI as a workflow step, which makes an absent
|
|
484
484
|
# binary there a broken workflow, and skipping would report a pass for every
|
|
485
|
-
# manifest on the way to a marketplace install.
|
|
485
|
+
# manifest on the way to a marketplace install. A global install can also land
|
|
486
|
+
# the wrapper and no platform-native binary, which resolves on PATH and cannot
|
|
487
|
+
# run, so the guard tests both and CI refuses on either.
|
|
486
488
|
log_step "Plugin manifests"
|
|
489
|
+
local plugin_cli_state=ready
|
|
487
490
|
if ! command -v claude >/dev/null 2>&1; then
|
|
491
|
+
plugin_cli_state=absent
|
|
492
|
+
elif ! claude --version >/dev/null 2>&1; then
|
|
493
|
+
plugin_cli_state=broken
|
|
494
|
+
fi
|
|
495
|
+
if [ "$plugin_cli_state" = absent ]; then
|
|
488
496
|
if [ "${CI:-false}" = true ]; then
|
|
489
497
|
log_error "claude is not installed. CI installs it before this stage, so read the Install Plugin CLI step in .github/workflows/verify.yml."
|
|
490
498
|
fi
|
|
491
499
|
log_info "Skipped, claude is not installed"
|
|
500
|
+
elif [ "$plugin_cli_state" = broken ]; then
|
|
501
|
+
if [ "${CI:-false}" = true ]; then
|
|
502
|
+
log_error "claude is on PATH and claude --version fails, so the install brought down no platform-native binary and no manifest was read. Raise or lower the pinned version at the Install Plugin CLI step in .github/workflows/verify.yml, and record the move in .claude/context/ci.md."
|
|
503
|
+
fi
|
|
504
|
+
log_info "Skipped, claude is installed but cannot run"
|
|
492
505
|
else
|
|
493
506
|
local manifests manifest
|
|
494
507
|
manifests=$(collect_plugin_manifests)
|