Function: eca-chat--completion-context-annotate
eca-chat--completion-context-annotate is a natively compiled function
defined in eca-chat-context.el.
Signature
(eca-chat--completion-context-annotate ROOTS ITEM-LABEL)
Documentation
Annonate ITEM-LABEL detail for ROOTS.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-context.el
(defun eca-chat--completion-context-annotate (roots item-label)
"Annonate ITEM-LABEL detail for ROOTS."
(-let (((&plist :type type :path path :description description) (get-text-property 0 'eca-chat-completion-item item-label)))
(pcase type
("file" (eca-chat--relativize-filename-for-workspace-root path roots 'hide-filename))
("directory" (eca-chat--relativize-filename-for-workspace-root path roots 'hide-filename))
("repoMap" "Summary view of workspaces files")
("cursor" "Current cursor file + position")
("mcpResource" description)
("text" "Buffer content")
(_ ""))))