Skip to content

Commit 5c6cd1c

Browse files
committed
fix(cloud-connection): type the registry lookup step 2c' reads for an orphaned install
Claude-Session: https://claude.ai/code/session_017ihL2dvnT51fbSebUyE3zW Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a274e36 commit 5c6cd1c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/cloud-connection/src/marketplace-install-local-plugin.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4948,9 +4948,9 @@ export class MarketplaceInstallLocalPlugin implements Plugin {
49484948
*/
49494949
private registeredPackageBody = (ctx: PluginContext, manifestId: string): unknown => {
49504950
try {
4951-
const ql: any = ctx.getService('objectql');
4952-
const packages: any[] = ql?.registry?.getAllPackages?.() ?? [];
4953-
const row = packages.find((p: any) => manifestIdOf(p) === manifestId);
4951+
const ql = ctx.getService<OverrideGateEngine>('objectql');
4952+
const packages = ql?.registry?.getAllPackages?.();
4953+
const row = Array.isArray(packages) ? packages.find((p: unknown) => manifestIdOf(p) === manifestId) : undefined;
49544954
return row?.manifest && typeof row.manifest === 'object' ? row.manifest : undefined;
49554955
} catch { return undefined; }
49564956
};

0 commit comments

Comments
 (0)