diff --git a/docs/src/content/docs/reference/frontmatter-full.md b/docs/src/content/docs/reference/frontmatter-full.md index 4c3c5b29c97..f77fbca7388 100644 --- a/docs/src/content/docs/reference/frontmatter-full.md +++ b/docs/src/content/docs/reference/frontmatter-full.md @@ -1102,7 +1102,7 @@ sandbox: # This field supports multiple formats (oneOf): # Option 1: List of plugins to install. Each item can be either a repository slug -# string (e.g., 'org/repo') or an object with url and optional MCP configuration. +# string (e.g., 'org/repo') or an object with id and optional MCP configuration. plugins: [] # Array items: undefined @@ -1110,7 +1110,7 @@ plugins: [] # strings or objects with MCP configuration. plugins: # List of plugins to install. Each item can be either a repository slug string or - # an object with url and optional MCP configuration. + # an object with id and optional MCP configuration. repos: [] # Custom GitHub token expression to use for plugin installation. Overrides the diff --git a/pkg/parser/agent_import_integration_test.go b/pkg/parser/agent_import_integration_test.go index a5d6f367ede..616a421dc89 100644 --- a/pkg/parser/agent_import_integration_test.go +++ b/pkg/parser/agent_import_integration_test.go @@ -97,9 +97,27 @@ This workflow imports a custom agent with array-format tools.` t.Errorf("AgentFile = %q, want %q", result.AgentFile, expectedAgentPath) } - // Verify that markdown was extracted from the agent file - if result.MergedMarkdown == "" { - t.Errorf("Expected MergedMarkdown to contain agent markdown content") + // Verify that the import path was added for runtime-import macro (new behavior) + // Agent imports without inputs should go into ImportPaths, not MergedMarkdown + if len(result.ImportPaths) == 0 { + t.Errorf("Expected ImportPaths to contain agent import path") + } + + expectedImportPath := ".github/agents/feature-flag-remover.agent.md" + found := false + for _, path := range result.ImportPaths { + if path == expectedImportPath { + found = true + break + } + } + if !found { + t.Errorf("ImportPaths = %v, want to contain %q", result.ImportPaths, expectedImportPath) + } + + // MergedMarkdown should be empty for imports without inputs (runtime-import behavior) + if result.MergedMarkdown != "" { + t.Errorf("Expected MergedMarkdown to be empty for agent import without inputs, got: %q", result.MergedMarkdown) } // Verify that tools were NOT merged from the agent file (they're in array format)