(contextWindowTokens int, cwd string)
| 37 | } |
| 38 | |
| 39 | func (d *SkillDiscovery) BuildListingMessage(contextWindowTokens int, cwd string) map[string]any { |
| 40 | text := d.GetNewSkillsAttachment(contextWindowTokens, cwd) |
| 41 | if text == nil || *text == "" { |
| 42 | return nil |
| 43 | } |
| 44 | return map[string]any{ |
| 45 | "role": "user", |
| 46 | "content": []map[string]any{{"type": "text", "text": *text}}, |
| 47 | "isMeta": true, |
| 48 | "metadata": map[string]any{ |
| 49 | "source": SkillListingSource, |
| 50 | SkillListingMetaKey: true, |
| 51 | }, |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func (d *SkillDiscovery) FormatListing(skills []SkillSpec, budgetChars int, preserveBundled bool) string { |
| 56 | if len(skills) == 0 { |
no test coverage detected