Surface last_matched_at on all API surfaces

Add lastMatchedAt to the CookiePattern GraphQL type, MCP schema,
CLI view/list commands, and n8n get/getAll operations. Run
codegen to regenerate gqlgen models and MCP types.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-04 16:05:42 +04:00
parent b89707d9d2
commit 54655c218b
8 changed files with 30 additions and 8 deletions

View File

@@ -37,6 +37,7 @@ query($id: ID!) {
description
source
excluded
lastMatchedAt
createdAt
updatedAt
}
@@ -55,6 +56,7 @@ type viewResponse struct {
Description *string `json:"description"`
Source string `json:"source"`
Excluded bool `json:"excluded"`
LastMatchedAt *string `json:"lastMatchedAt"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
} `json:"node"`
@@ -126,6 +128,9 @@ func NewCmdView(f *cmdutil.Factory) *cobra.Command {
if v.Description != nil && *v.Description != "" {
_, _ = fmt.Fprintf(out, "%s%s\n", label.Render("Description:"), *v.Description)
}
if v.LastMatchedAt != nil {
_, _ = fmt.Fprintf(out, "%s%s\n", label.Render("Last Matched:"), cmdutil.FormatTime(*v.LastMatchedAt))
}
_, _ = fmt.Fprintln(out)
_, _ = fmt.Fprintf(out, "%s%s\n", label.Render("Created:"), cmdutil.FormatTime(v.CreatedAt))
_, _ = fmt.Fprintf(out, "%s%s\n", label.Render("Updated:"), cmdutil.FormatTime(v.UpdatedAt))