You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install --json: separate JSON output from overwrite consent #877
Found by source inspection at f1faa4b; no repro was executed.
Current behavior
applyInstallJSONDefaults sets Force = true whenever --json is given (install.go#L253-L262). Running skillshare install <source> --json therefore overwrites a skill or agent that is already installed.
This is documented. The help text says --json "permits overwrite" (install.go#L678), so this is not a regression. Audit blocking still applies: --json sets only Force, not AuditOverride (install.go#L103-L104).
Request
Make the output format independent of destructive consent:
--json alone reports an already-installed skill or agent as skipped or failed in the JSON result and leaves it unchanged.
--json --force overwrites, as --force does without --json.
Scripts that use --json to get machine-readable output would then not replace local copies unless they ask to. This changes behavior that is documented today, so it probably needs a release note, or a deprecation period if the maintainer prefers one.
Suggested regression test
Install a skill, change a file in the installed copy, then run install <same source> --json. Assert the change is still there and the JSON result reports the skill as not overwritten. Repeat with --force and assert the overwrite.
Activity
fix(install): require explicit force for JSON overwrites (#884)