MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / versionFromTo

Function versionFromTo

apps/kimi-code/src/tui/commands/plugins.ts:509–512  ·  view source on GitHub ↗
(prev?: string, cur?: string)

Source from the content-addressed store, hash-verified

507): string {
508 const sourceLabel = formatPluginSourceLabel(next);
509 const versionFromTo = (prev?: string, cur?: string): string => {
510 if (prev === undefined || prev === cur) return cur === undefined ? '' : ` ${cur}`;
511 return ` ${prev} → ${cur ?? '-'}`;
512 };
513 if (previous === undefined) {
514 return `Installed ${next.displayName}${versionFromTo(undefined, next.version)} ${sourcePhrase(sourceLabel)}`;
515 }

Callers 1

describeInstallActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected