Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#118939)

hermes-seaeye[bot]30de0e01e62d
diff --git a/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx b/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
index adbd6c6a98b..244b8f634a1 100644
--- a/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
+++ b/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
@@ -644,25 +644,27 @@ export const PluginsTab = memo(function PluginsTab({
}
}
- void updateAgentPlugin(requestGateway, row.name, p.updateFailed(row.name), scope).then(async outcome => {
- if (outcome.kind !== 'consent') {
- finish(outcome)
-
- return
- }
-
- // The new pin widens the plugin (tools, hooks, deps, capabilities, a Desktop
- // half); the backend changed nothing until the user confirms the delta.
- const ok = await confirm({
- confirmLabel: p.updateConsentConfirm,
- description: [p.updateConsentBody(row.name, outcome.sha), ...outcome.deltaLines].join('\n'),
- title: p.updateConsentTitle(row.name)
- })
-
- if (ok) {
- finish(await updateAgentPlugin(requestGateway, row.name, p.updateFailed(row.name), scope, true))
+ void updateAgentPlugin(requestGateway, row.name, p.updateFailed(row.name), scope).then(
+ async outcome => {
+ if (outcome.kind !== 'consent') {
+ finish(outcome)
+
+ return
+ }
+
+ // The new pin widens the plugin (tools, hooks, deps, capabilities, a Desktop
+ // half); the backend changed nothing until the user confirms the delta.
+ const ok = await confirm({
+ confirmLabel: p.updateConsentConfirm,
+ description: [p.updateConsentBody(row.name, outcome.sha), ...outcome.deltaLines].join('\n'),
+ title: p.updateConsentTitle(row.name)
+ })
+
+ if (ok) {
+ finish(await updateAgentPlugin(requestGateway, row.name, p.updateFailed(row.name), scope, true))
+ }
}
- })
+ )
}}
onDesktopRemove={record => {
void confirm({
diff --git a/apps/desktop/src/store/agent-plugins.ts b/apps/desktop/src/store/agent-plugins.ts
index d6a1bf8bf28..4dd77e4fc73 100644
--- a/apps/desktop/src/store/agent-plugins.ts
+++ b/apps/desktop/src/store/agent-plugins.ts
@@ -256,8 +256,7 @@ export async function installAgentPlugin(
* when already at pin, `consent` when the new pin widens the plugin — the
* backend changed nothing and waits for `acceptCapabilities`. */
export type AgentPluginUpdateOutcome =
- | { kind: 'applied' | 'unchanged' | 'failed' }
- | { kind: 'consent'; sha: string; deltaLines: string[] }
+ { kind: 'applied' | 'unchanged' | 'failed' } | { kind: 'consent'; sha: string; deltaLines: string[] }
/** Re-pin a catalog-installed plugin to the current catalog SHA (backend
* `plugins.manage update`; catalog installs only). Refreshes the list on