Files
87e51eaff5 refactor(catalog): rationalize agent schema — typed fields vs customProperties (#2907)
* refactor(catalog): move non-universal agent fields to customProperties

Drop agentType from the agent schema entirely. Rename tags to labels
and move it, along with models and publishedDate, into customProperties.
Keep name, source_id, displayName, description, readme, framework,
logo, repositoryUrl, env, and artifacts as explicit schema fields.

Add named query plumbing to the agent plugin (sources, loader,
filter_options) so it returns an empty namedQueries object, matching
the MCP catalog pattern.

Wire agent catalog sources and sample data into the demo kustomize
overlay so agents load in the Tilt dev environment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Assisted-by: Claude Code
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

* fix(catalog): use customProperties block in agent YAML data

Move labels, models, and publishedDate into the customProperties map
in the YAML sample data files, matching the pattern used by model and
MCP catalog. Remove the top-level convenience fields from the
yamlAgent struct and their special conversion code in the provider.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Assisted-by: Claude Code
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

* refactor(catalog): restore labels as typed agent field, drop publishedDate

Address review feedback on the agent customProperties refactoring:

- Restore labels as a typed string array on the Agent OpenAPI schema
  and wire it through the YAML provider and DB mapper as a standard
  property (isCustom=false). Labels are universal to every agent and
  warrant type safety and server-side filtering.

- Remove publishedDate entirely — it was unused and redundant with
  createTimeSinceEpoch/lastUpdateTimeSinceEpoch.

- Remove models from entity mappings (no longer filterable). It stays
  in customProperties as an optional field — not every agent is
  model-specific.

- Update all YAML sample data: labels as top-level arrays, models
  under customProperties, publishedDate removed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Assisted-by: Claude Code
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

* fix(catalog): sync agent datastore schema with OpenAPI spec

Update plugin.go DatastoreEntries to match the current agent schema:
rename tags to labels, remove agentType, models, and publishedDate.

Add agent entry to spec_bootstrap.go so test suites that rely on a
complete datastore spec include the agent type definition.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Assisted-by: Claude Code
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

---------

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-03 13:14:15 +00:00
..