From fd1019bde27fee188c021331f8ac2082903ad430 Mon Sep 17 00:00:00 2001 From: ysyneu Date: Mon, 29 Jun 2026 17:09:46 +0800 Subject: [PATCH 1/3] feat: use A2A instructions field --- go.mod | 2 +- go.sum | 4 ++-- internal/cli/zz_generated_a2a_agents.go | 28 +++++++++++----------- internal/cli/zz_generated_response_help.go | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/go.mod b/go.mod index 772adb8..e9a0134 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/flashcatcloud/flashduty-cli go 1.25.1 require ( - github.com/flashcatcloud/go-flashduty v0.5.4-0.20260624143100-02193386c979 + github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629090534-8f1a398d02df github.com/mattn/go-runewidth v0.0.24 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 diff --git a/go.sum b/go.sum index 1a8660f..462a38b 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY= github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= -github.com/flashcatcloud/go-flashduty v0.5.4-0.20260624143100-02193386c979 h1:Pha9D3p8ofiMSGRv1AeEafBJ3JspLRFR0zVQFEXZo44= -github.com/flashcatcloud/go-flashduty v0.5.4-0.20260624143100-02193386c979/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8= +github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629090534-8f1a398d02df h1:1/4t9DDRjjL+N8o90ioDBJ4CvU7ox/1rrAl/OxF8LhQ= +github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629090534-8f1a398d02df/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/mattn/go-runewidth v0.0.24 h1:cpokDiIn0MGnhdHwuWnJBITySJ20QyNGnY2kR/ay2DU= diff --git a/internal/cli/zz_generated_a2a_agents.go b/internal/cli/zz_generated_a2a_agents.go index 7ec5620..85f150d 100644 --- a/internal/cli/zz_generated_a2a_agents.go +++ b/internal/cli/zz_generated_a2a_agents.go @@ -37,7 +37,7 @@ Response fields ('data' envelope is unwrapped — these fields are at the top le - card_url (string) (required) — URL of the remote agent card. - created_at (integer) (required) — Creation time. Unix timestamp in milliseconds. - created_by (integer) (required) — Member ID that created the agent. - - description (string) (required) — Agent description. + - instructions (string) (required) — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. - oauth_metadata (string) — JSON-encoded OAuth metadata (per_user_oauth mode). - secret_schema (string) — JSON-encoded secret schema (per_user_secret mode). - status (string) (required) — Agent status. [enabled, disabled] @@ -115,7 +115,7 @@ Response fields ('data' envelope is unwrapped — rows are nested under items[]; - card_url (string) (required) — URL of the remote agent card. - created_at (integer) (required) — Creation time. Unix timestamp in milliseconds. - created_by (integer) (required) — Member ID that created the agent. - - description (string) (required) — Agent description. + - instructions (string) (required) — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. - oauth_metadata (string) — JSON-encoded OAuth metadata (per_user_oauth mode). - secret_schema (string) — JSON-encoded secret schema (per_user_secret mode). - status (string) (required) — Agent status. [enabled, disabled] @@ -172,7 +172,7 @@ func genA2aAgentsWriteCreateCmd() *cobra.Command { var fAuthMode string var fAuthType string var fCardURL string - var fDescription string + var fInstructions string var fOauthMetadata string var fSecretSchema string var fStreaming bool @@ -191,7 +191,7 @@ Request fields: --auth-mode string — Authentication mode: shared (default), per_user_secret, or per_user_oauth. --auth-type string — Authentication type for the remote agent. --card-url string (required) — URL of the remote agent card. - --description string — Agent description. + --instructions string — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank. --oauth-metadata string — JSON OAuth metadata; reserved for per_user_oauth. --secret-schema string — JSON secret schema; required when auth_mode=per_user_secret. --streaming bool — Whether the remote agent supports streaming. @@ -201,7 +201,7 @@ Request fields: Response fields ('data' envelope is unwrapped — these fields are at the top level): - agent_id (string) (required) — ID of the newly created agent. `, - Example: ` flashduty safari a2a-agent-create --data '{"agent_name":"deploy-bot","auth_type":"bearer","card_url":"https://agents.example.com/deploy-bot/card","streaming":true,"team_id":0}'`, + Example: ` flashduty safari a2a-agent-create --data '{"agent_name":"deploy-bot","auth_type":"bearer","card_url":"https://agents.example.com/deploy-bot/card","instructions":"Use when deployment pipelines need inspection or rollback advice.","streaming":true,"team_id":0}'`, RunE: func(cmd *cobra.Command, args []string) error { return runCommand(cmd, args, func(ctx *RunContext) error { body, err := genAssembleBody(dataJSON, func(body map[string]any) error { @@ -217,8 +217,8 @@ Response fields ('data' envelope is unwrapped — these fields are at the top le if cmd.Flags().Changed("card-url") { body["card_url"] = fCardURL } - if cmd.Flags().Changed("description") { - body["description"] = fDescription + if cmd.Flags().Changed("instructions") { + body["instructions"] = fInstructions } if cmd.Flags().Changed("oauth-metadata") { body["oauth_metadata"] = fOauthMetadata @@ -253,7 +253,7 @@ Response fields ('data' envelope is unwrapped — these fields are at the top le cmd.Flags().StringVar(&fAuthMode, "auth-mode", "", "Authentication mode: shared (default), per_user_secret, or per_user_oauth.") cmd.Flags().StringVar(&fAuthType, "auth-type", "", "Authentication type for the remote agent.") cmd.Flags().StringVar(&fCardURL, "card-url", "", "URL of the remote agent card. (required)") - cmd.Flags().StringVar(&fDescription, "description", "", "Agent description.") + cmd.Flags().StringVar(&fInstructions, "instructions", "", "Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank.") cmd.Flags().StringVar(&fOauthMetadata, "oauth-metadata", "", "JSON OAuth metadata; reserved for per_user_oauth.") cmd.Flags().StringVar(&fSecretSchema, "secret-schema", "", "JSON secret schema; required when auth_mode=per_user_secret.") cmd.Flags().BoolVar(&fStreaming, "streaming", false, "Whether the remote agent supports streaming.") @@ -413,7 +413,7 @@ func genA2aAgentsWriteUpdateCmd() *cobra.Command { var fAuthMode string var fAuthType string var fCardURL string - var fDescription string + var fInstructions string var fOauthMetadata string var fSecretSchema string var fStreaming bool @@ -433,7 +433,7 @@ Request fields: --auth-mode string — New auth mode: shared, per_user_secret, or per_user_oauth. --auth-type string — New auth type. Omit to leave unchanged. --card-url string — New card URL. Omit to leave unchanged. - --description string — New description. Omit to leave unchanged. + --instructions string — New invocation instructions. Omit to leave unchanged; when supplied, must be nonblank. --oauth-metadata string — New JSON OAuth metadata. --secret-schema string — New JSON secret schema. --streaming bool — Toggle streaming support. Omit to leave unchanged. @@ -441,7 +441,7 @@ Request fields: auth_config (object, via --data) — Replace the auth config. Omit to leave unchanged. `, Args: requireExactArg("agent_id"), - Example: ` flashduty safari a2a-agent-update --data '{"agent_id":"a2a_6mWqZ2pK9nLcR3tY8uVb4D","description":"Inspects deployment pipelines and proposes rollbacks."}'`, + Example: ` flashduty safari a2a-agent-update --data '{"agent_id":"a2a_6mWqZ2pK9nLcR3tY8uVb4D","instructions":"Inspect deployment pipelines and propose rollback steps."}'`, RunE: func(cmd *cobra.Command, args []string) error { return runCommand(cmd, args, func(ctx *RunContext) error { body, err := genAssembleBody(dataJSON, func(body map[string]any) error { @@ -463,8 +463,8 @@ Request fields: if cmd.Flags().Changed("card-url") { body["card_url"] = fCardURL } - if cmd.Flags().Changed("description") { - body["description"] = fDescription + if cmd.Flags().Changed("instructions") { + body["instructions"] = fInstructions } if cmd.Flags().Changed("oauth-metadata") { body["oauth_metadata"] = fOauthMetadata @@ -500,7 +500,7 @@ Request fields: cmd.Flags().StringVar(&fAuthMode, "auth-mode", "", "New auth mode: shared, per_user_secret, or per_user_oauth.") cmd.Flags().StringVar(&fAuthType, "auth-type", "", "New auth type. Omit to leave unchanged.") cmd.Flags().StringVar(&fCardURL, "card-url", "", "New card URL. Omit to leave unchanged.") - cmd.Flags().StringVar(&fDescription, "description", "", "New description. Omit to leave unchanged.") + cmd.Flags().StringVar(&fInstructions, "instructions", "", "New invocation instructions. Omit to leave unchanged; when supplied, must be nonblank.") cmd.Flags().StringVar(&fOauthMetadata, "oauth-metadata", "", "New JSON OAuth metadata.") cmd.Flags().StringVar(&fSecretSchema, "secret-schema", "", "New JSON secret schema.") cmd.Flags().BoolVar(&fStreaming, "streaming", false, "Toggle streaming support. Omit to leave unchanged.") diff --git a/internal/cli/zz_generated_response_help.go b/internal/cli/zz_generated_response_help.go index 00f7d78..b361820 100644 --- a/internal/cli/zz_generated_response_help.go +++ b/internal/cli/zz_generated_response_help.go @@ -6,8 +6,8 @@ package cli // Response-fields help block. Curated commands look this up via responseHelp() // so they document the same output shape as the generated commands. var responseHelpBySDKMethod = map[string]string{ - "A2aAgents.ReadGet": "Response fields (`data` envelope is unwrapped — these fields are at the top level):\n - account_id (integer) (required) — Owning account ID.\n - agent_card_name (string) — Agent name resolved from the remote card.\n - agent_card_skills (array) — Skills advertised by the remote card.\n - agent_id (string) (required) — Unique A2A agent ID (prefix `a2a_`).\n - agent_name (string) (required) — Agent display name.\n - auth_config (object) — Authentication config; secret values are masked.\n - auth_mode (string) — Authentication mode. [shared, per_user_secret, per_user_oauth]\n - auth_type (string) (required) — Authentication type for reaching the remote agent.\n - can_edit (boolean) (required) — Whether the caller may edit this agent.\n - card_resolve_timeout (integer) (required) — Card-resolution timeout in seconds.\n - card_url (string) (required) — URL of the remote agent card.\n - created_at (integer) (required) — Creation time. Unix timestamp in milliseconds.\n - created_by (integer) (required) — Member ID that created the agent.\n - description (string) (required) — Agent description.\n - oauth_metadata (string) — JSON-encoded OAuth metadata (per_user_oauth mode).\n - secret_schema (string) — JSON-encoded secret schema (per_user_secret mode).\n - status (string) (required) — Agent status. [enabled, disabled]\n - streaming (boolean) (required) — Whether the remote agent supports streaming responses.\n - task_timeout (integer) (required) — Single-task execution timeout in seconds.\n - team_id (integer) (required) — Team scope: 0 = account-wide; >0 = the owning team.\n - updated_at (integer) (required) — Last update time. Unix timestamp in milliseconds.\n", - "A2aAgents.ReadList": "Response fields (this command's `--json` is a TOP-LEVEL array of these row objects — pipe `jq '.[]'`, NOT `.items[]`):\n - account_id (integer) (required) — Owning account ID.\n - agent_card_name (string) — Agent name resolved from the remote card.\n - agent_card_skills (array) — Skills advertised by the remote card.\n - agent_id (string) (required) — Unique A2A agent ID (prefix `a2a_`).\n - agent_name (string) (required) — Agent display name.\n - auth_config (object) — Authentication config; secret values are masked.\n - auth_mode (string) — Authentication mode. [shared, per_user_secret, per_user_oauth]\n - auth_type (string) (required) — Authentication type for reaching the remote agent.\n - can_edit (boolean) (required) — Whether the caller may edit this agent.\n - card_resolve_timeout (integer) (required) — Card-resolution timeout in seconds.\n - card_url (string) (required) — URL of the remote agent card.\n - created_at (integer) (required) — Creation time. Unix timestamp in milliseconds.\n - created_by (integer) (required) — Member ID that created the agent.\n - description (string) (required) — Agent description.\n - oauth_metadata (string) — JSON-encoded OAuth metadata (per_user_oauth mode).\n - secret_schema (string) — JSON-encoded secret schema (per_user_secret mode).\n - status (string) (required) — Agent status. [enabled, disabled]\n - streaming (boolean) (required) — Whether the remote agent supports streaming responses.\n - task_timeout (integer) (required) — Single-task execution timeout in seconds.\n - team_id (integer) (required) — Team scope: 0 = account-wide; >0 = the owning team.\n - updated_at (integer) (required) — Last update time. Unix timestamp in milliseconds.\n", + "A2aAgents.ReadGet": "Response fields (`data` envelope is unwrapped — these fields are at the top level):\n - account_id (integer) (required) — Owning account ID.\n - agent_card_name (string) — Agent name resolved from the remote card.\n - agent_card_skills (array) — Skills advertised by the remote card.\n - agent_id (string) (required) — Unique A2A agent ID (prefix `a2a_`).\n - agent_name (string) (required) — Agent display name.\n - auth_config (object) — Authentication config; secret values are masked.\n - auth_mode (string) — Authentication mode. [shared, per_user_secret, per_user_oauth]\n - auth_type (string) (required) — Authentication type for reaching the remote agent.\n - can_edit (boolean) (required) — Whether the caller may edit this agent.\n - card_resolve_timeout (integer) (required) — Card-resolution timeout in seconds.\n - card_url (string) (required) — URL of the remote agent card.\n - created_at (integer) (required) — Creation time. Unix timestamp in milliseconds.\n - created_by (integer) (required) — Member ID that created the agent.\n - instructions (string) (required) — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent.\n - oauth_metadata (string) — JSON-encoded OAuth metadata (per_user_oauth mode).\n - secret_schema (string) — JSON-encoded secret schema (per_user_secret mode).\n - status (string) (required) — Agent status. [enabled, disabled]\n - streaming (boolean) (required) — Whether the remote agent supports streaming responses.\n - task_timeout (integer) (required) — Single-task execution timeout in seconds.\n - team_id (integer) (required) — Team scope: 0 = account-wide; >0 = the owning team.\n - updated_at (integer) (required) — Last update time. Unix timestamp in milliseconds.\n", + "A2aAgents.ReadList": "Response fields (this command's `--json` is a TOP-LEVEL array of these row objects — pipe `jq '.[]'`, NOT `.items[]`):\n - account_id (integer) (required) — Owning account ID.\n - agent_card_name (string) — Agent name resolved from the remote card.\n - agent_card_skills (array) — Skills advertised by the remote card.\n - agent_id (string) (required) — Unique A2A agent ID (prefix `a2a_`).\n - agent_name (string) (required) — Agent display name.\n - auth_config (object) — Authentication config; secret values are masked.\n - auth_mode (string) — Authentication mode. [shared, per_user_secret, per_user_oauth]\n - auth_type (string) (required) — Authentication type for reaching the remote agent.\n - can_edit (boolean) (required) — Whether the caller may edit this agent.\n - card_resolve_timeout (integer) (required) — Card-resolution timeout in seconds.\n - card_url (string) (required) — URL of the remote agent card.\n - created_at (integer) (required) — Creation time. Unix timestamp in milliseconds.\n - created_by (integer) (required) — Member ID that created the agent.\n - instructions (string) (required) — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent.\n - oauth_metadata (string) — JSON-encoded OAuth metadata (per_user_oauth mode).\n - secret_schema (string) — JSON-encoded secret schema (per_user_secret mode).\n - status (string) (required) — Agent status. [enabled, disabled]\n - streaming (boolean) (required) — Whether the remote agent supports streaming responses.\n - task_timeout (integer) (required) — Single-task execution timeout in seconds.\n - team_id (integer) (required) — Team scope: 0 = account-wide; >0 = the owning team.\n - updated_at (integer) (required) — Last update time. Unix timestamp in milliseconds.\n", "A2aAgents.WriteCreate": "Response fields (`data` envelope is unwrapped — these fields are at the top level):\n - agent_id (string) (required) — ID of the newly created agent.\n", "Account.Info": "Response fields (`data` envelope is unwrapped — these fields are at the top level):\n - account_id (integer) — Account identifier.\n - account_name (string) — Account name.\n - avatar (string) — Account avatar URL.\n - country_code (string) — Calling country code for the contact phone.\n - created_at (integer) — Account creation time, Unix timestamp in seconds.\n - domain (string) — Primary account domain (login subdomain).\n - email (string) — Account contact email.\n - extra_domains (array) — Additional account domains.\n - locale (string) — Account language preference (e.g. zh-CN, en-US).\n - mp_account_id (string) — Account identifier on the cloud marketplace platform (present only for marketplace accounts).\n - mp_plat (string) — Cloud marketplace platform the account was provisioned from (present only for marketplace accounts).\n - phone (string) — Account contact phone, masked for privacy.\n - restrictions (object) — Account access restrictions (present only when configured).\n - allow_subdomain (boolean) — Whether subdomains of the allowed email domains are also accepted.\n - email_domains (array) — Allowed login email domains.\n - ips (array) — Allowed source IP/CIDR whitelist.\n - time_zone (string) — Account default timezone (IANA name, e.g. Asia/Shanghai).\n", "AlertEnrichment.EnrichmentReadInfo": "Response fields (`data` envelope is unwrapped — these fields are at the top level):\n - created_at (integer) (required) — Creation timestamp, Unix seconds.\n - creator_id (integer) (required) — Creator member ID.\n - integration_id (integer) (required) — Integration ID.\n - rules (array) (required) — Ordered enrichment rules.\n - if (array) — Optional AND-filter list. The rule is skipped if the condition does not match.\n - key (string) (required) — Alert label key.\n - oper (string) (required) — Match operator. `IN` matches when any value matches; `NOTIN` matches when none of the values match. [IN, NOTIN]\n - vals (array) (required) — Values to match against.\n - kind (string) (required) — Rule type. `extraction` extracts a label via regex or GJson. `composition` builds a label from a template. `mapping` looks up values from a schema or API. `drop` removes labels. [extraction, composition, mapping, drop]\n - settings (any) (required) — Rule-kind–specific settings. The shape depends on `kind`.\n - status (string) (required) — Rule set status.\n - updated_at (integer) (required) — Last update timestamp, Unix seconds.\n - updated_by (integer) (required) — Last updater member ID.\n", From 58c726ab57cd5c8be4feee1e68c7354c37c8f233 Mon Sep 17 00:00:00 2001 From: ysyneu Date: Mon, 29 Jun 2026 17:14:17 +0800 Subject: [PATCH 2/3] docs: refresh Safari skill card --- skills/flashduty/reference/safari.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/flashduty/reference/safari.md b/skills/flashduty/reference/safari.md index b94ed7e..f8e7dfb 100644 --- a/skills/flashduty/reference/safari.md +++ b/skills/flashduty/reference/safari.md @@ -48,7 +48,7 @@ Create A2A agent - `--auth-mode` string — Authentication mode: shared (default), per_user_secret, or per_user_oauth. - `--auth-type` string — Authentication type for the remote agent. - `--card-url` string (required) — URL of the remote agent card. -- `--description` string — Agent description. +- `--instructions` string — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank. - `--oauth-metadata` string — JSON OAuth metadata; reserved for per_user_oauth. - `--secret-schema` string — JSON secret schema; required when auth_mode=per_user_secret. - `--streaming` bool — Whether the remote agent supports streaming. @@ -85,7 +85,7 @@ Update A2A agent - `--auth-mode` string — New auth mode: shared, per_user_secret, or per_user_oauth. - `--auth-type` string — New auth type. Omit to leave unchanged. - `--card-url` string — New card URL. Omit to leave unchanged. -- `--description` string — New description. Omit to leave unchanged. +- `--instructions` string — New invocation instructions. Omit to leave unchanged; when supplied, must be nonblank. - `--oauth-metadata` string — New JSON OAuth metadata. - `--secret-schema` string — New JSON secret schema. - `--streaming` bool — Toggle streaming support. Omit to leave unchanged. From 286ddf598e81f8b4b04a09b986600dc03e80d6fa Mon Sep 17 00:00:00 2001 From: ysyneu Date: Mon, 29 Jun 2026 17:21:30 +0800 Subject: [PATCH 3/3] fix: require A2A instructions flag --- go.mod | 2 +- go.sum | 4 ++-- internal/cli/zz_generated_a2a_agents.go | 4 ++-- skills/flashduty/reference/safari.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index e9a0134..8f79eb8 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/flashcatcloud/flashduty-cli go 1.25.1 require ( - github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629090534-8f1a398d02df + github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629091912-04a0bfaf665d github.com/mattn/go-runewidth v0.0.24 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 diff --git a/go.sum b/go.sum index 462a38b..866fa1b 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY= github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= -github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629090534-8f1a398d02df h1:1/4t9DDRjjL+N8o90ioDBJ4CvU7ox/1rrAl/OxF8LhQ= -github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629090534-8f1a398d02df/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8= +github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629091912-04a0bfaf665d h1:jWzPzsWn46dCWC/PL5nncOTL1Zid4UMynbPsbL1mGdU= +github.com/flashcatcloud/go-flashduty v0.5.4-0.20260629091912-04a0bfaf665d/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/mattn/go-runewidth v0.0.24 h1:cpokDiIn0MGnhdHwuWnJBITySJ20QyNGnY2kR/ay2DU= diff --git a/internal/cli/zz_generated_a2a_agents.go b/internal/cli/zz_generated_a2a_agents.go index 85f150d..8fadf53 100644 --- a/internal/cli/zz_generated_a2a_agents.go +++ b/internal/cli/zz_generated_a2a_agents.go @@ -191,7 +191,7 @@ Request fields: --auth-mode string — Authentication mode: shared (default), per_user_secret, or per_user_oauth. --auth-type string — Authentication type for the remote agent. --card-url string (required) — URL of the remote agent card. - --instructions string — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank. + --instructions string (required) — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank. --oauth-metadata string — JSON OAuth metadata; reserved for per_user_oauth. --secret-schema string — JSON secret schema; required when auth_mode=per_user_secret. --streaming bool — Whether the remote agent supports streaming. @@ -253,7 +253,7 @@ Response fields ('data' envelope is unwrapped — these fields are at the top le cmd.Flags().StringVar(&fAuthMode, "auth-mode", "", "Authentication mode: shared (default), per_user_secret, or per_user_oauth.") cmd.Flags().StringVar(&fAuthType, "auth-type", "", "Authentication type for the remote agent.") cmd.Flags().StringVar(&fCardURL, "card-url", "", "URL of the remote agent card. (required)") - cmd.Flags().StringVar(&fInstructions, "instructions", "", "Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank.") + cmd.Flags().StringVar(&fInstructions, "instructions", "", "Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank. (required)") cmd.Flags().StringVar(&fOauthMetadata, "oauth-metadata", "", "JSON OAuth metadata; reserved for per_user_oauth.") cmd.Flags().StringVar(&fSecretSchema, "secret-schema", "", "JSON secret schema; required when auth_mode=per_user_secret.") cmd.Flags().BoolVar(&fStreaming, "streaming", false, "Whether the remote agent supports streaming.") diff --git a/skills/flashduty/reference/safari.md b/skills/flashduty/reference/safari.md index f8e7dfb..054d3b7 100644 --- a/skills/flashduty/reference/safari.md +++ b/skills/flashduty/reference/safari.md @@ -48,7 +48,7 @@ Create A2A agent - `--auth-mode` string — Authentication mode: shared (default), per_user_secret, or per_user_oauth. - `--auth-type` string — Authentication type for the remote agent. - `--card-url` string (required) — URL of the remote agent card. -- `--instructions` string — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank. +- `--instructions` string (required) — Invocation instructions included in AI SRE's system prompt to decide when to call this A2A agent. Must be nonblank. - `--oauth-metadata` string — JSON OAuth metadata; reserved for per_user_oauth. - `--secret-schema` string — JSON secret schema; required when auth_mode=per_user_secret. - `--streaming` bool — Whether the remote agent supports streaming.