MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / resolveResourceFilename

Method resolveResourceFilename

src/runtime/adapters/feishu.ts:429–438  ·  view source on GitHub ↗
(
    resource: ResourceDescriptor & { type: FeishuSupportedResourceType },
    index: number,
  )

Source from the content-addressed store, hash-verified

427 }
428
429 return attachments;
430 }
431
432 private resolveResourceFilename(
433 resource: ResourceDescriptor & { type: FeishuSupportedResourceType },
434 index: number,
435 ): string {
436 const filename = resource.fileName?.trim();
437 if (filename) {
438 return filename;
439 }
440 return resource.type === "image" ? `image-${index + 1}.png` : `file-${index + 1}`;
441 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected