What's wrong with this entry?
Two new helper functions add capability-aware display to Artifact publish operations. Nkd (capabilitiesFromGatedInput) safely extracts the capabilities field from a tool input only when the field is explicitly present — distinguishing "not provided" (carry the stored declaration forward) from "provided as {}" (explicitly clear the grant). Fkd (frameCapabilitiesSummary) converts a capabilities object into a compact parenthesised summary string.
- For the
mcpcapability key (when config contains a non-emptyserversarray), each server entry formats as<serverName>[N tool(s)], joined into a comma-separated list: e.g.mcp: slack[3 tools], gdrive[1 tool]. - Non-
mcpcapability keys render as their bare key name with no further sub-structure. - If more than 8 servers (or 8 capability segments) are present, the formatter prepends
[N total]and shows only the first 8, preventing runaway output on large declarations. - The assembled string is hard-truncated at 400 Unicode characters with a
…ellipsis, then wrapped in parentheses and prefixed with a space:(mcp: slack[3 tools]). Fkdis consumed by theArtifactTool'stoAutoClassifierInputmethod (via thei4y()wrapper), so the summary appears in the string the permission auto-classifier reads when deciding how to handle an Artifact publish call.- When
Fkdreturns empty but a non-empty capabilities object is present (e.g. capabilities stored from a prior publish), the auto-classifier input falls back to" (carries a stored connector grant)"; if capabilities were explicitly passed as{}, it shows" (clears stored connector grant)"; if the stored capabilities could not be read from the control plane, it appends" (caps: unknown)".
Nkd (capabilitiesFromGatedInput) and Fkd (frameCapabilitiesSummary) added (search for "capabilities" in e ? e.capabilities : void 0); Fkd consumed by i4y() inside ArtifactTool.toAutoClassifierInput (search for frameCapabilitiesSummary); overflow enforced by oSo (non-empty servers guard) and qar helper (8-item cap with [N total] prefix, search for qar)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.