Skip to content

The agent that grows with you

fix(shared): add curly braces and sort catalog-browse before catalog-install export

brooklyn!476ff4ddc550
diff --git a/apps/shared/src/catalog-browse.ts b/apps/shared/src/catalog-browse.ts
index ff7d56a9c3d..ac3488be292 100644
--- a/apps/shared/src/catalog-browse.ts
+++ b/apps/shared/src/catalog-browse.ts
@@ -18,7 +18,7 @@ export type PluginCatalogSort = 'stars' | 'newest' | 'updated'
export function sortCatalogPlugins<T extends { name: string; addedAt?: string | null; updatedAt?: string | null }>(entries: T[], sort: PluginCatalogSort): T[] {
// The published snapshot already sorts stars descending, then name. Preserve
// its order, including ties, rather than reinterpreting missing star counts.
- if (sort === 'stars') return entries
+ if (sort === 'stars') { return entries }
const field = sort === 'newest' ? 'addedAt' : 'updatedAt'
const date = (value?: string | null) => {
const ms = value ? Date.parse(value) : NaN
diff --git a/apps/shared/src/index.ts b/apps/shared/src/index.ts
index 5628eb9085c..82c60f4be56 100644
--- a/apps/shared/src/index.ts
+++ b/apps/shared/src/index.ts
@@ -27,8 +27,8 @@ export type {
UsageBarData,
UsageModelData
} from './billing-types'
-export { pluginCatalogInstallUrl, skillCatalogInstallIdentifier, skillCatalogInstallUrl } from './catalog-install'
export { groupCatalogPlugins, PLUGIN_CATEGORIES, PLUGIN_CATEGORY_ORDER, sortCatalogPlugins } from './catalog-browse'
+export { pluginCatalogInstallUrl, skillCatalogInstallIdentifier, skillCatalogInstallUrl } from './catalog-install'
export {
driveChargeSettlement,
SETTLEMENT_MAX_RETRY_AFTER_MS,