INNER CODE UNIT · TypeScript
refreshOwnedRaycastCatalog
lidge-jun/opencodex · src/cli/index.ts:194
async function refreshOwnedRaycastCatalog(
config: ReturnType<typeof loadConfig>,
port: number,
): Promise<void> {
try {
const outcomes = await refreshOwnedCatalogIntegrations({
models: () => loadExportModels(config),
config,
port,
}, ["raycast"]);
for (const outcome of outcomes) {
if (!outcome.ok) {
console.error(`⚠️ Raycast integration was not refreshed: ${outcome.reason}`);
}
}
} catch (error) {
console.error(`⚠️ Raycast integration was not refreshed: ${error instanceof Error ? error.message : String(error)}`);
}