Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions cli/internal/agentpluginscli/lifecycle_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ func newUpdateCommand(app App, opts *options) *cobra.Command {
operationApp := app
operationApp.Lifecycle.PrepareHostsForPreview = !opts.dryRun
if all {
if len(args) > 0 {
return fmt.Errorf("choose either one installation or --all")
}
if strings.TrimSpace(opts.target) != "" {
return fmt.Errorf("--target cannot be combined with --all; every installation keeps its recorded targets")
if err := validateUpdateAll(args, opts); err != nil {
return err
}
return runUpdateAllRetryable(cmd, operationApp, opts)
}
Expand Down Expand Up @@ -62,6 +59,16 @@ func newUpdateCommand(app App, opts *options) *cobra.Command {
return command
}

func validateUpdateAll(args []string, opts *options) error {
if len(args) > 0 {
return fmt.Errorf("choose either one installation or --all")
}
if strings.TrimSpace(opts.target) != "" {
return fmt.Errorf("--target cannot be combined with --all; every installation keeps its recorded targets")
}
return nil
}

func newRepairCommand(app App, opts *options) *cobra.Command {
command := &cobra.Command{
Use: "repair <name-or-installation-id>", Short: "Explicitly restore a missing or modified managed package",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "unchanged",
"SettledPartialRemoval": false,
"UserActions": [
"Reload Antigravity to clear the plugin from a running session"
]
Expand All @@ -22,6 +23,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"uninstall the plugin in ChatGPT Plugins, then rerun remove with `--external-uninstalled` (also use the flag if it was never activated)"
]
Expand All @@ -43,6 +45,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -55,6 +58,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"remove any Cline skills and MCP entries for this plugin, then rerun remove with `--external-uninstalled` (also use the flag if it was never activated)"
]
Expand Down Expand Up @@ -83,6 +87,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -109,6 +114,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -121,6 +127,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -133,6 +140,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -152,6 +160,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -164,6 +173,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -176,6 +186,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"Run /reload or /new in Kimi Code to load the installed plugin; runtime MCP connections and authentication have not been verified."
]
Expand All @@ -190,6 +201,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"remove the legacy custom Power in Kiro, then rerun remove with `--external-uninstalled`"
]
Expand All @@ -204,6 +216,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -216,6 +229,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -237,6 +251,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -263,6 +278,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -275,6 +291,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"remove the prepared package manually, then rerun remove with `--external-uninstalled`"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "unchanged",
"SettledPartialRemoval": false,
"UserActions": [
"Reload Antigravity to clear the plugin from a running session"
]
Expand All @@ -22,6 +23,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"uninstall the plugin in ChatGPT Plugins, then rerun remove with `--external-uninstalled` (also use the flag if it was never activated)"
]
Expand All @@ -43,6 +45,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -55,6 +58,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -81,6 +85,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -107,6 +112,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -119,6 +125,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -131,6 +138,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand Down Expand Up @@ -163,6 +171,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -175,6 +184,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -187,6 +197,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"Run /reload or /new in Kimi Code to load the installed plugin; runtime MCP connections and authentication have not been verified."
]
Expand All @@ -201,6 +212,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"remove the legacy custom Power in Kiro, then rerun remove with `--external-uninstalled`"
]
Expand All @@ -215,6 +227,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -227,6 +240,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand Down Expand Up @@ -266,6 +280,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -292,6 +307,7 @@
"ExternalRemovalComplete": true,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": null
}
},
Expand All @@ -304,6 +320,7 @@
"ExternalRemovalComplete": false,
"LocalActions": null,
"NativeEffect": "",
"SettledPartialRemoval": false,
"UserActions": [
"remove the prepared package manually, then rerun remove with `--external-uninstalled`"
]
Expand Down
Loading
Loading