MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / remainingEditableAttachments

Function remainingEditableAttachments

packages/kilo-chat/src/utils.ts:31–39  ·  view source on GitHub ↗
(
  originalAttachments: readonly AttachmentBlock[],
  removedAttachmentIds: Iterable<string>
)

Source from the content-addressed store, hash-verified

29}
30
31export function remainingEditableAttachments(
32 originalAttachments: readonly AttachmentBlock[],
33 removedAttachmentIds: Iterable<string>
34): AttachmentBlock[] {
35 const removedAttachmentIdSet = new Set(removedAttachmentIds);
36 return originalAttachments.filter(
37 attachment => !removedAttachmentIdSet.has(attachment.attachmentId)
38 );
39}
40
41export function buildMessageEditContent({
42 text,

Callers 2

buildMessageEditContentFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected