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

Function sourcePhrase

apps/kimi-code/src/tui/commands/plugins.ts:525–527  ·  view source on GitHub ↗
(sourceLabel: string)

Source from the content-addressed store, hash-verified

523// formatPluginSourceLabel already prefixes zip-url hosts with "via", so adding
524// "from" would read as "from via <host>". Only prepend "from" otherwise.
525function sourcePhrase(sourceLabel: string): string {
526 return sourceLabel.startsWith('via ') ? sourceLabel : `from ${sourceLabel}`;
527}
528
529function sourceIdentity(plugin: PluginSummary): string {
530 if (plugin.source === 'github' && plugin.github !== undefined) {

Callers 1

describeInstallActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected