openclaw/src/cli
Altay 5012b52780
fix(cli): route skills list output to stdout when --json is active (#60914)
* fix(cli): route skills list output to stdout when --json is active

runSkillsAction used defaultRuntime.log() which goes through console.log.
The --json preAction hook calls routeLogsToStderr(), redirecting console.log
to stderr. Switch to defaultRuntime.writeStdout() which writes directly to
process.stdout, consistent with how other --json commands (e.g. skills search)
already emit their output.

Fixes #57599

* test(cli): add skills JSON stdout regression coverage

* test(cli): refine skills CLI stream coverage

* fix(cli): add changelog entry for skills JSON stdout fix

---------

Co-authored-by: Aftabbs <aftabbs.wwe@gmail.com>
2026-04-04 18:09:44 +03:00
..
cron-cli feat(cron): add --tools flag for per-job tool allow-list (#58504) 2026-03-31 21:09:17 -04:00
daemon-cli perf(cli): trim gateway status startup imports 2026-04-04 08:59:56 +01:00
gateway-cli fix(cli): log pending control ui build 2026-04-04 10:47:38 +09:00
node-cli
nodes-cli refactor: lazy load cli gateway helper runtimes 2026-04-04 01:07:28 +09:00
program fix(cli): preload plugins for local agent runs 2026-04-04 08:59:37 +01:00
send-runtime refactor(plugins): move extension seams into extensions 2026-04-04 00:10:16 +01:00
shared
update-cli test: trim cli and infra importActual mocks 2026-04-03 19:54:37 +01:00
acp-cli.option-collisions.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
acp-cli.ts
argv.test.ts test(nodes): update coverage after exec consolidation 2026-03-30 00:41:06 +01:00
argv.ts
banner-config-lite.ts
banner.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
banner.ts
channel-auth.test.ts refactor(config): use source snapshots for config writes 2026-03-30 00:39:39 +01:00
channel-auth.ts refactor(config): use source snapshots for config writes 2026-03-30 00:39:39 +01:00
channel-options.test.ts refactor: move built-in channel normalization to ids 2026-04-04 01:07:28 +09:00
channel-options.ts refactor: move built-in channel normalization to ids 2026-04-04 01:07:28 +09:00
channels-cli.ts
clawbot-cli.ts
cli-name.ts
cli-utils.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
cli-utils.ts
command-format.ts
command-options.test.ts
command-options.ts
command-secret-gateway.test.ts style(auth): normalize auth choice formatting 2026-04-04 12:19:08 +01:00
command-secret-gateway.ts !refactor(xai): move x_search config behind plugin boundary (#59674) 2026-04-02 22:08:59 +09:00
command-secret-resolution.coverage.test.ts
command-secret-targets.import.test.ts fix: defer command secret target registry loading 2026-04-04 04:58:09 +01:00
command-secret-targets.test.ts fix: defer command secret target registry loading 2026-04-04 04:58:09 +01:00
command-secret-targets.ts fix: defer command secret target registry loading 2026-04-04 04:58:09 +01:00
command-source.test-helpers.test.ts
command-source.test-helpers.ts
completion-cli.test.ts
completion-cli.ts Plugins/CLI: add descriptor-backed lazy root command registration (#57165) 2026-03-29 16:02:59 -04:00
completion-fish.test.ts
completion-fish.ts
config-cli.integration.test.ts
config-cli.test.ts test: trim more core importOriginal usage 2026-04-03 19:49:43 +01:00
config-cli.ts Secrets: hard-fail unsupported SecretRef policy and fix gateway restart token drift (#58141) 2026-03-31 02:37:31 -05:00
config-set-dryrun.ts
config-set-input.test.ts
config-set-input.ts
config-set-mode.test.ts
config-set-parser.ts
container-target.test.ts
container-target.ts
cron-cli.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
cron-cli.ts
daemon-cli-compat.test.ts
daemon-cli-compat.ts
daemon-cli.coverage.test.ts test: trim test partial mocks 2026-04-03 19:10:56 +01:00
daemon-cli.ts
deps.test.ts refactor(plugins): genericize core channel seams 2026-04-03 19:09:21 +01:00
deps.ts refactor(plugins): move channel behavior into plugins 2026-04-03 19:09:20 +01:00
devices-cli.test.ts test: dedupe core test teardown paths 2026-04-03 07:14:58 +01:00
devices-cli.ts
directory-cli.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
directory-cli.ts refactor(config): use source snapshots for config writes 2026-03-30 00:39:39 +01:00
dns-cli.ts Skills: prefer active OpenClaw paths 2026-03-30 16:10:13 +01:00
docs-cli.ts
dotenv.ts
exec-approvals-cli.test.ts fix: harden plugin auto-enable empty config handling 2026-04-02 15:19:53 +01:00
exec-approvals-cli.ts Exec approvals: fix policy source attribution (#59367) 2026-04-02 01:28:14 -04:00
gateway-cli.coverage.test.ts test: trim test partial mocks 2026-04-03 19:10:56 +01:00
gateway-cli.ts
gateway-rpc.runtime.ts refactor: lazy load cli gateway rpc runtime 2026-04-04 01:07:28 +09:00
gateway-rpc.ts refactor: lazy load cli gateway rpc runtime 2026-04-04 01:07:28 +09:00
help-format.ts
hooks-cli.test.ts
hooks-cli.ts feat(plugins): surface imported runtime state in status tooling (#59659) 2026-04-02 22:50:17 +09:00
install-spec.ts
log-level-option.test.ts
log-level-option.ts
logs-cli.runtime.ts refactor: lazy load cli gateway helper runtimes 2026-04-04 01:07:28 +09:00
logs-cli.test.ts test(ci): fix logs cli gateway mock typing 2026-04-04 00:28:25 +01:00
logs-cli.ts fix(cli): add local logs fallback 2026-04-04 08:17:11 +09:00
mcp-cli.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
mcp-cli.ts
message-secret-scope.test.ts
message-secret-scope.ts
models-cli.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
models-cli.ts fix(anthropic): remove setup-token onboarding path 2026-04-04 15:46:25 +09:00
node-cli.ts
nodes-camera.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
nodes-camera.ts
nodes-canvas.ts
nodes-cli.coverage.test.ts test: trim commands and cli partial mocks 2026-04-03 20:34:23 +01:00
nodes-cli.ts
nodes-media-utils.test.ts
nodes-media-utils.ts
nodes-screen.ts
npm-resolution.test.ts
npm-resolution.ts
outbound-send-deps.ts
outbound-send-mapping.test.ts refactor(plugins): move outbound dep aliases into extensions 2026-04-03 19:53:38 +01:00
outbound-send-mapping.ts refactor(plugins): move outbound dep aliases into extensions 2026-04-03 19:53:38 +01:00
pairing-cli.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
pairing-cli.ts
parse-bytes.ts
parse-duration.ts
parse-timeout.test.ts
parse-timeout.ts
plugin-install-config-policy.ts refactor(plugins): move channel behavior into plugins 2026-04-03 19:09:20 +01:00
plugin-install-plan.test.ts
plugin-install-plan.ts
plugin-registry.test.ts fix(plugins): preserve activation provenance (#59641) 2026-04-02 20:57:14 +09:00
plugin-registry.ts refactor(plugins): move channel behavior into plugins 2026-04-03 19:09:20 +01:00
plugins-cli-test-helpers.ts fix(cli): honor unsafe override for linked installs 2026-04-04 12:22:49 +09:00
plugins-cli.install.test.ts CLI: pass unsafe flag through linked plugin probes 2026-04-04 12:34:55 +09:00
plugins-cli.list.test.ts refactor(plugins): separate activation from enablement (#59844) 2026-04-03 03:22:37 +09:00
plugins-cli.ts Plugins: add install --force overwrite flag (#60544) 2026-04-03 18:09:14 -04:00
plugins-cli.uninstall.test.ts refactor(plugins): drop generic status report alias (#59700) 2026-04-02 22:59:25 +09:00
plugins-cli.update.test.ts Plugins: allow unsafe-force override on update 2026-04-04 01:49:35 +09:00
plugins-command-helpers.ts feat(plugins): surface imported runtime state in status tooling (#59659) 2026-04-02 22:50:17 +09:00
plugins-config.test.ts
plugins-config.ts
plugins-install-command.ts refactor(cli): reuse install safety overrides 2026-04-04 12:35:58 +09:00
plugins-install-config.test.ts test(cli): make plugin install recovery requests explicit 2026-04-04 04:26:51 +09:00
plugins-install-persist.ts refactor(config): use source snapshots for config mutations 2026-03-30 01:02:25 +01:00
plugins-update-command.ts Plugins: allow unsafe-force override on update 2026-04-04 01:49:35 +09:00
ports.test.ts test: trim cli and infra importActual mocks 2026-04-03 19:54:37 +01:00
ports.ts
profile-utils.ts
profile.test.ts
profile.ts
program.force.test.ts
program.nodes-basic.e2e.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
program.nodes-media.e2e.test.ts
program.nodes-test-helpers.test.ts
program.nodes-test-helpers.ts
program.smoke.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
program.test-mocks.ts
program.ts
progress.test.ts
progress.ts
prompt.runtime.ts
prompt.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
prompt.ts
qr-cli.test.ts refactor: share sdk lazy config and cli test helpers 2026-04-04 16:55:04 +09:00
qr-cli.ts fix(pairing): align mobile setup with secure endpoints 2026-04-03 14:51:24 +05:30
qr-dashboard.integration.test.ts refactor: share sdk lazy config and cli test helpers 2026-04-04 16:55:04 +09:00
requirements-test-fixtures.ts
respawn-policy.ts
root-help-metadata.ts fix: unblock cli startup metadata 2026-04-04 02:35:36 +01:00
root-option-forward.ts
root-option-value.ts
route.test.ts
route.ts perf(cli): trim gateway status startup imports 2026-04-04 08:59:56 +01:00
run-main.exit.test.ts fix: unblock cli startup metadata 2026-04-04 02:35:36 +01:00
run-main.profile-env.test.ts test: trim test partial mocks 2026-04-03 19:10:56 +01:00
run-main.test.ts
run-main.ts fix: unblock cli startup metadata 2026-04-04 02:35:36 +01:00
sandbox-cli.ts
secrets-cli.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
secrets-cli.ts
security-cli.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
security-cli.ts
skills-cli.commands.test.ts fix(cli): route skills list output to stdout when --json is active (#60914) 2026-04-04 18:09:44 +03:00
skills-cli.format.ts Skills: prefer active OpenClaw paths 2026-03-30 16:10:13 +01:00
skills-cli.formatting.test.ts
skills-cli.test.ts Skills: prefer active OpenClaw paths 2026-03-30 16:10:13 +01:00
skills-cli.ts fix(cli): route skills list output to stdout when --json is active (#60914) 2026-04-04 18:09:44 +03:00
system-cli.test.ts test: trim commands and cli partial mocks 2026-04-03 20:34:23 +01:00
system-cli.ts
tagline.test.ts
tagline.ts
test-runtime-capture.ts test: trim helper partial mocks 2026-04-03 21:34:42 +01:00
tui-cli.ts
update-cli.option-collisions.test.ts test: speed up cli and command suites 2026-03-31 02:25:02 +01:00
update-cli.test-helpers.test.ts refactor: share sdk lazy config and cli test helpers 2026-04-04 16:55:04 +09:00
update-cli.test-helpers.ts refactor: share sdk lazy config and cli test helpers 2026-04-04 16:55:04 +09:00
update-cli.test.ts refactor: share sdk lazy config and cli test helpers 2026-04-04 16:55:04 +09:00
update-cli.ts
wait.ts
webhooks-cli.ts
windows-argv.ts