docs: description required for "Add Extension" in cli - phase 2 (#5635)

This commit is contained in:
dianed-square
2025-11-07 13:27:57 -08:00
committed by GitHub
parent 4b0bef18ae
commit 65b4b2bb18
32 changed files with 608 additions and 3865 deletions
@@ -16,6 +16,7 @@ interface CLIExtensionInstructionsProps {
timeout?: number;
envVars?: EnvVar[]; // For stdio: environment variables, for http: headers
infoNote?: string;
commandNote?: React.ReactNode; // Note to display for command/URL step
}
export default function CLIExtensionInstructions({
@@ -27,6 +28,7 @@ export default function CLIExtensionInstructions({
timeout = 300,
envVars = [],
infoNote,
commandNote,
}: CLIExtensionInstructionsProps) {
const hasEnvVars = envVars.length > 0;
const isSSE = type === 'sse';
@@ -101,6 +103,14 @@ ${
<ol start={4}>
<li>Enter the {isSSE ? 'SSE endpoint URI' : 'Streaming HTTP endpoint URI'}.</li>
</ol>
{commandNote && (
<>
<Admonition type="info">
{commandNote}
</Admonition>
<br />
</>
)}
<CodeBlock language="sh">{`┌ goose-configure
◇ What would you like to configure?
@@ -123,6 +133,14 @@ ${
<ol start={4}>
<li>Enter the command to run when this extension is used.</li>
</ol>
{commandNote && (
<>
<Admonition type="info">
{commandNote}
</Admonition>
<br />
</>
)}
<CodeBlock language="sh">{`┌ goose-configure
◇ What would you like to configure?