refactor: return complete analysis results inline

This commit is contained in:
morluto
2026-09-29 08:07:24 +08:00
parent 07ff8b30ee
commit a2a3243ea8
127 changed files with 402 additions and 1508 deletions
-22
View File
@@ -97,25 +97,3 @@ export const createServerIdentity = (input: {
},
} as const;
};
/** Compact identity projection for CLI summaries; MCP retains full identity. */
export const createServerIdentitySummary = (
input: Parameters<typeof createServerIdentity>[0],
) => {
const identity = createServerIdentity(input);
return {
package: {
name: identity.package.name,
version: identity.package.version,
},
server: {
name: identity.server.name,
version: identity.server.version,
},
catalog: {
counts: identity.catalog.counts,
digests: identity.catalog.digests,
},
alignment: identity.alignment,
} as const;
};