An agent that requires sign-in before any session can open, offering two auth methods (one the agent handles itself, one an interactive terminal login the client runs as a separate process) plus a logout capability.
What You’ll Learn
Declaring authMethods on @AcpAgent, with no @Initialize method needed
AuthMethod as an open union: AuthMethodAgent versus AuthMethodTerminal
Why a terminal method reaches only a client that advertised auth.terminal, with no hand-written check
@Authenticate, and why the client never calls it for a terminal method
Rejecting session/new with AUTHENTICATION_REQUIRED (-32000) before sign-in
@Logout, derived agentCapabilities.auth.logout, and checking supportsLogout() first
The Code
Declaring auth methods on @AcpAgent, with no @Initialize method
@AcpAgent(name = "auth-agent", version = "1.0.0", authMethods = { @AuthMethod(id = AuthAgent.API_KEY_METHOD, name = "API key", description = "Use the key configured for this machine"), @AuthMethod(id = AuthAgent.TERMINAL_METHOD, name = "Log in in a terminal", type = AuthMethod.Type.TERMINAL, args = AuthAgent.LOGIN_ARG, env = "AUTH_AGENT_LOGIN_STYLE=plain") })public class AuthAgent { // ...}
There’s no @Initialize method: the SDK derives everything a client needs from the class.
@AcpAgent(authMethods = @AuthMethod(...)) becomes authMethods; @Logout (below) advertises
agentCapabilities.auth.logout; agentInfo comes from @AcpAgent(name, version). A terminal method
is advertised only to a client that announced clientCapabilities.auth.terminal: the SDK does
that per-client check itself now, rather than the agent checking NegotiatedCapabilities by hand in
a written @Initialize method. Declaring an agent-type method (the default, as api-key is here)
without an @Authenticate handler to serve it fails the build, naming the method.AuthMethod is an open union of two kinds. An agent-handled method (AuthMethodAgent, type AGENT,
the default) is the one the client calls authenticate for; a terminal method (AuthMethodTerminal,
type TERMINAL) is an interactive login the client runs, not something passed to authenticate.
An unknown auth method type from a newer agent reads as AuthMethodAgent.
Requiring sign-in
@NewSessionAcpSchema.NewSessionResponse newSession(AcpSchema.NewSessionRequest req) { if (signedInAs() == null) { throw new AcpProtocolException(AcpErrorCodes.AUTHENTICATION_REQUIRED, "Authentication required", null); } return new AcpSchema.NewSessionResponse(UUID.randomUUID().toString(), null, null);}
The agent-handled method
@AuthenticateAcpSchema.AuthenticateResponse authenticate(AcpSchema.AuthenticateRequest req) { if (API_KEY_METHOD.equals(req.methodId())) { apiKeyUser = "api-key user"; return new AcpSchema.AuthenticateResponse(); } if (TERMINAL_METHOD.equals(req.methodId())) { throw new AcpProtocolException(AcpErrorCodes.INVALID_PARAMS, "Terminal login is run by the client, not passed to authenticate", null); } throw new AcpProtocolException(AcpErrorCodes.INVALID_PARAMS, "Unknown auth method " + req.methodId(), null);}
The terminal method
The client runs the agent’s own program again, as a separate process, with the method’s args and env added: not a different login tool, the same binary in a different mode.
// Agent: reads --login, runs an interactive prompt, writes credentials to a file, exits.public static void main(String[] args) throws IOException { if (List.of(args).contains(LOGIN_ARG)) { terminalLogin(); return; } // ...normal agent startup...}
// Client: for an AuthMethodTerminal, run the agent's command with the method's args and env.List<String> command = new ArrayList<>(List.of("java", "-jar", jar));command.addAll(method.args());ProcessBuilder pb = new ProcessBuilder(command).redirectErrorStream(true);pb.environment().putAll(method.env());Process login = pb.start();// the client shows the terminal to the user; this demo types a name into its inputlogin.waitFor(30, TimeUnit.SECONDS);
The login stores credentials where the running agent process can find them; the client does not call authenticate for this method at all.
Client: advertising terminal auth, and dispatching the union
var terminalCapable = AcpSchema.ClientCapabilities.builder() .auth(new AcpSchema.AuthCapabilities(true)) .build();AcpSyncClient client = AcpClient.sync(transport) .clientCapabilities(terminalCapable) .build();AcpSchema.InitializeResponse init = client.initialize();System.out.println("agentInfo (from @AcpAgent): " + init.agentInfo().name() + " " + init.agentInfo().version());for (AcpSchema.AuthMethod method : init.authMethods()) { if (method instanceof AcpSchema.AuthMethodTerminal t) { // run the agent program with t.args() and t.env() } else if (method instanceof AcpSchema.AuthMethodAgent a) { // call client.authenticate(new AuthenticateRequest(a.id())) }}
A client that never advertises auth.terminal sees only the agent method in authMethods(): the agent leaves the terminal method out entirely, rather than offering something the client can’t run.
session/new fails with AcpErrorCodes.AUTHENTICATION_REQUIRED (-32000) until the user is signed in, by either method, and fails again immediately after logout. AuthMethod is an open union: dispatch with instanceof, the same discipline as every other union type in the schema.
The demo runs seven steps against one client advertising terminal auth (initialize, a rejected session/new, the terminal login, a working session/new, logout, re-authenticating with the agent method) and a second client that doesn’t advertise terminal auth, which is offered only the agent method. No API key required.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"Pollack AI Lab","colors":{"primary":"#4fc3f7","light":"#81d4fa","dark":"#0097a7"},"logo":{"light":"https://mintcdn.com/mcpjavasdk/vV_7S-Kh5_jdaxd-/logo/lab-light.svg?fit=max\u0026auto=format\u0026n=vV_7S-Kh5_jdaxd-\u0026q=85\u0026s=a123c4091fc6865b076075083c5b7cc7","dark":"https://mintcdn.com/mcpjavasdk/vV_7S-Kh5_jdaxd-/logo/lab-dark.svg?fit=max\u0026auto=format\u0026n=vV_7S-Kh5_jdaxd-\u0026q=85\u0026s=c3cb0c503d21faaa1f99441042d9173e"},"favicon":"https://mintcdn.com/mcpjavasdk/vV_7S-Kh5_jdaxd-/logo/favicon.svg?fit=max\u0026auto=format\u0026n=vV_7S-Kh5_jdaxd-\u0026q=85\u0026s=132d021cef95efd8a5bb2fc6c6560810","appearance":{"default":"dark"},"background":{"color":{"dark":"#020915"}},"navbar":{"links":[{"href":"https://pollack.ai","label":"pollack.ai"},{"href":"https://github.com/markpollack","type":"github"}],"primary":{"type":"button","label":"Read the Blog","href":"https://blog.pollack.ai"}},"banner":{"content":"[📓 Read the latest on the blog →](https://blog.pollack.ai)","dismissible":false},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"AgentWorks","icon":"cubes","href":"/projects#agentworks"},{"anchor":"Agento Forge","icon":"hammer","href":"/methodology/forge"},{"anchor":"Experiments","icon":"flask","href":"/experiments"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mcpjavasdk","hasAudioNarration":false,"actualSubdomain":"mcpjavasdk","customDomains":["lab.pollack.ai"],"gitSource":{"type":"github","owner":"markpollack","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6afb5f3bdefb47a100b39cbc","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Projects","count":179},{"language":"default","tag":"AgentWorks","count":91},{"language":"default","tag":"Supporting Projects","count":69},{"language":"default","tag":"ACP Java SDK","count":67},{"language":"default","tag":"Tutorial","count":56},{"language":"default","tag":"Agent Client","count":24},{"language":"default","tag":"Agent Eval","count":17},{"language":"default","tag":"Agent Journal","count":15},{"language":"default","tag":"Concepts","count":14},{"language":"default","tag":"Reference","count":13}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600\u0026display=swap');h1,h2,h3,h4{font-family:'Geist Mono', ui-monospace, monospace!important;letter-spacing:0.02em}h1{font-weight:300!important;letter-spacing:0.06em}h2{font-weight:400!important;letter-spacing:0.04em}::selection{background:rgba(79, 195, 247, 0.25);color:#ffffff}[class*=\"Card\"] a:hover,.dark [class*=\"Card\"] a:hover{border-color:rgba(255, 215, 64, 0.5)!important;background:rgba(255, 215, 64, 0.03)!important}nav [class*=\"group\"]>span,nav [class*=\"Group\"]>span{font-family:'Geist Mono', ui-monospace, monospace!important;letter-spacing:0.12em;text-transform:uppercase;font-size:0.68rem}.dark pre{background:#020915!important;border:1px solid rgba(79, 195, 247, 0.15)}.dark :not(pre)>code{background:rgba(79, 195, 247, 0.08)!important;color:#81d4fa!important;border:1px solid rgba(79, 195, 247, 0.12)}.dark table{border-color:rgba(33, 150, 243, 0.2)}.dark th{font-family:'Geist Mono', ui-monospace, monospace!important;font-size:0.8rem;letter-spacing:0.08em;text-transform:uppercase;color:rgba(79, 195, 247, 0.7);border-bottom:1px solid rgba(79, 195, 247, 0.2)}.dark td{border-bottom:1px solid rgba(33, 150, 243, 0.1)}.dark span[style*=\"background: #22c55e\"],.dark span[style*=\"background: #3b82f6\"],.dark span[style*=\"background: #ffd740\"]{font-family:'Geist Mono', ui-monospace, monospace!important;letter-spacing:0.08em}.dark blockquote{border-left-color:#ffd740!important;background:rgba(255, 215, 64, 0.03)}.dark hr{border:none;height:1px;background:linear-gradient(90deg, rgba(79, 195, 247, 0.3), transparent)}.dark [class*=\"Note\"],.dark [class*=\"note\"]{border-color:rgba(79, 195, 247, 0.3);background:rgba(79, 195, 247, 0.04)}.dark [class*=\"Warning\"],.dark [class*=\"warning\"]{border-color:rgba(255, 215, 64, 0.4);background:rgba(255, 215, 64, 0.04)}.dark [class*=\"Step\"] [class*=\"indicator\"],.dark [class*=\"step\"] [class*=\"indicator\"]{border-color:rgba(79, 195, 247, 0.4)}footer{font-family:'Geist Mono', ui-monospace, monospace!important;letter-spacing:0.1em}.nav-tabs-item:first-child{font-size:0!important;line-height:0}.nav-tabs-item:first-child::after{content:\"Projects\";font-size:0.875rem;line-height:normal}.dark ::-webkit-scrollbar{width:6px}.dark ::-webkit-scrollbar-track{background:#020915}.dark ::-webkit-scrollbar-thumb{background:rgba(79, 195, 247, 0.2);border-radius:3px}.dark ::-webkit-scrollbar-thumb:hover{background:rgba(79, 195, 247, 0.4)}#banner{background:linear-gradient(90deg, rgba(79, 195, 247, 0.18), rgba(255, 215, 64, 0.12))!important;border-bottom:1px solid rgba(79, 195, 247, 0.35)}#banner a{font-family:'Geist Mono', ui-monospace, monospace!important;font-weight:600!important;letter-spacing:0.04em;color:#ffd740!important;text-decoration:none!important}#banner a:hover{color:#ffffff!important}"}],"page":{"pagePath":"docs/acp-java-sdk/tutorial/36-terminal-auth-logout","slug":"/docs/acp-java-sdk/tutorial/36-terminal-auth-logout","pageMetadata":{"title":null,"description":null,"href":"/docs/acp-java-sdk/tutorial/36-terminal-auth-logout"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`module-36-terminal-auth-and-logout`,children:`Module 36: Terminal Auth and Logout`}),`\n`,_jsx(_components.p,{children:`An agent that requires sign-in before any session can open, offering two auth methods (one the agent handles itself, one an interactive terminal login the client runs as a separate process) plus a logout capability.`}),`\n`,_jsx(Heading,{level:`2`,id:`what-you’ll-learn`,children:`What You’ll Learn`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Declaring `,_jsx(_components.code,{children:`authMethods`}),` on `,_jsx(_components.code,{children:`@AcpAgent`}),`, with no `,_jsx(_components.code,{children:`@Initialize`}),` method needed`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`AuthMethod`}),` as an open union: `,_jsx(_components.code,{children:`AuthMethodAgent`}),` versus `,_jsx(_components.code,{children:`AuthMethodTerminal`})]}),`\n`,_jsxs(_components.li,{children:[`Why a terminal method reaches only a client that advertised `,_jsx(_components.code,{children:`auth.terminal`}),`, with no hand-written check`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`@Authenticate`}),`, and why the client never calls it for a terminal method`]}),`\n`,_jsxs(_components.li,{children:[`Rejecting `,_jsx(_components.code,{children:`session/new`}),` with `,_jsx(_components.code,{children:`AUTHENTICATION_REQUIRED`}),` (`,_jsx(_components.code,{children:`-32000`}),`) before sign-in`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`@Logout`}),`, derived `,_jsx(_components.code,{children:`agentCapabilities.auth.logout`}),`, and checking `,_jsx(_components.code,{children:`supportsLogout()`}),` first`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-code`,children:`The Code`}),`\n`,_jsxs(Heading,{level:`3`,id:`declaring-auth-methods-on-@acpagent-with-no-@initialize-method`,children:[`Declaring auth methods on `,_jsx(_components.code,{children:`@AcpAgent`}),`, with no `,_jsx(_components.code,{children:`@Initialize`}),` method`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`AcpAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"auth-agent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`version`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1.0.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`authMethods`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` @`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`AuthMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AuthAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`API_KEY_METHOD`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"API key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Use the key configured for this machine\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` @`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`AuthMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AuthAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TERMINAL_METHOD`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Log in in a terminal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AuthMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TERMINAL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` args`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AuthAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LOGIN_ARG`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`env`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"AUTH_AGENT_LOGIN_STYLE=plain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) })`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AuthAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`There’s no `,_jsx(_components.code,{children:`@Initialize`}),` method: the SDK derives everything a client needs from the class.\n`,_jsx(_components.code,{children:`@AcpAgent(authMethods = @AuthMethod(...))`}),` becomes `,_jsx(_components.code,{children:`authMethods`}),`; `,_jsx(_components.code,{children:`@Logout`}),` (below) advertises\n`,_jsx(_components.code,{children:`agentCapabilities.auth.logout`}),`; `,_jsx(_components.code,{children:`agentInfo`}),` comes from `,_jsx(_components.code,{children:`@AcpAgent(name, version)`}),`. A terminal method\nis advertised `,_jsx(_components.strong,{children:`only`}),` to a client that announced `,_jsx(_components.code,{children:`clientCapabilities.auth.terminal`}),`: the SDK does\nthat per-client check itself now, rather than the agent checking `,_jsx(_components.code,{children:`NegotiatedCapabilities`}),` by hand in\na written `,_jsx(_components.code,{children:`@Initialize`}),` method. Declaring an agent-type method (the default, as `,_jsx(_components.code,{children:`api-key`}),` is here)\nwithout an `,_jsx(_components.code,{children:`@Authenticate`}),` handler to serve it fails the build, naming the method.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`AuthMethod`}),` is an open union of two kinds. An agent-handled method (`,_jsx(_components.code,{children:`AuthMethodAgent`}),`, type `,_jsx(_components.code,{children:`AGENT`}),`,\nthe default) is the one the client calls `,_jsx(_components.code,{children:`authenticate`}),` for; a terminal method (`,_jsx(_components.code,{children:`AuthMethodTerminal`}),`,\ntype `,_jsx(_components.code,{children:`TERMINAL`}),`) is an interactive login the `,_jsx(_components.strong,{children:`client`}),` runs, not something passed to `,_jsx(_components.code,{children:`authenticate`}),`.\nAn unknown auth method type from a newer agent reads as `,_jsx(_components.code,{children:`AuthMethodAgent`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`requiring-sign-in`,children:`Requiring sign-in`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`NewSession`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`NewSessionResponse`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` newSession`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`NewSessionRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` req) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`signedInAs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` AcpProtocolException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AUTHENTICATION_REQUIRED`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authentication required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AcpSchema.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewSessionResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`UUID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`randomUUID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(), `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`the-agent-handled-method`,children:`The agent-handled method`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Authenticate`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AuthenticateResponse`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` authenticate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AuthenticateRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` req) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`API_KEY_METHOD`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`methodId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` apiKeyUser `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api-key user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AcpSchema.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AuthenticateResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TERMINAL_METHOD`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`methodId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` AcpProtocolException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`INVALID_PARAMS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Terminal login is run by the client, not passed to authenticate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` AcpProtocolException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`INVALID_PARAMS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unknown auth method \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`methodId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(), `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`the-terminal-method`,children:`The terminal method`}),`\n`,_jsxs(_components.p,{children:[`The client runs the agent’s own program again, as a separate process, with the method’s `,_jsx(_components.code,{children:`args`}),` and `,_jsx(_components.code,{children:`env`}),` added: not a different login tool, the same binary in a different mode.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Agent: reads --login, runs an interactive prompt, writes credentials to a file, exits.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` static`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] args) throws IOException {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`List`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(args).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`contains`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(LOGIN_ARG)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` terminalLogin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...normal agent startup...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Client: for an AuthMethodTerminal, run the agent's command with the method's args and env.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`List`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` ArrayList`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c>(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`List`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"java\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"-jar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, jar));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`command`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addAll`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`ProcessBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pb`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ProcessBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(command).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`redirectErrorStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pb`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`putAll`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` login`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pb`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the client shows the terminal to the user; this demo types a name into its input`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`login`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`waitFor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TimeUnit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SECONDS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The login stores credentials where the running agent process can find them; the client does `,_jsx(_components.strong,{children:`not`}),` call `,_jsx(_components.code,{children:`authenticate`}),` for this method at all.`]}),`\n`,_jsx(Heading,{level:`3`,id:`logout`,children:`Logout`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Logout`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LogoutResponse`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` logout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LogoutRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` req) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` apiKeyUser `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`deleteIfExists`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(credentials);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AcpSchema.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`LogoutResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Client`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getAgentCapabilities`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`supportsLogout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`logout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AcpSchema.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`LogoutRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`client-advertising-terminal-auth-and-dispatching-the-union`,children:`Client: advertising terminal auth, and dispatching the union`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` terminalCapable`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ClientCapabilities`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AcpSchema.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AuthCapabilities`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`AcpSyncClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AcpClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(transport)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`clientCapabilities`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(terminalCapable)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`AcpSchema`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`InitializeResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` init`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`out`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"agentInfo (from @AcpAgent): \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`agentInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \" \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`agentInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`AcpSchema`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`AuthMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`authMethods`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (method `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`instanceof`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AuthMethodTerminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` t) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // run the agent program with t.args() and t.env()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (method `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`instanceof`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AcpSchema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AuthMethodAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` a) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // call client.authenticate(new AuthenticateRequest(a.id()))`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A client that never advertises `,_jsx(_components.code,{children:`auth.terminal`}),` sees only the agent method in `,_jsx(_components.code,{children:`authMethods()`}),`: the agent leaves the terminal method out entirely, rather than offering something the client can’t run.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`session/new`}),` fails with `,_jsx(_components.code,{children:`AcpErrorCodes.AUTHENTICATION_REQUIRED`}),` (`,_jsx(_components.code,{children:`-32000`}),`) until the user is signed in, by either method, and fails again immediately after logout. `,_jsx(_components.code,{children:`AuthMethod`}),` is an open union: dispatch with `,_jsx(_components.code,{children:`instanceof`}),`, the same discipline as every other union type in the schema.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`source-code`,children:`Source Code`}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://github.com/markpollack/acp-java-tutorial/tree/main/module-36-terminal-auth-logout`,children:`View on GitHub`})}),`\n`,_jsx(Heading,{level:`2`,id:`running-the-example`,children:`Running the Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`./mvnw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` package`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -pl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` module-36-terminal-auth-logout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -q`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`./mvnw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` exec:java`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -pl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` module-36-terminal-auth-logout`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The demo runs seven steps against one client advertising terminal auth (initialize, a rejected `,_jsx(_components.code,{children:`session/new`}),`, the terminal login, a working `,_jsx(_components.code,{children:`session/new`}),`, logout, re-authenticating with the agent method) and a second client that doesn’t advertise terminal auth, which is offered only the agent method. No API key required.`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-module`,children:`Next Module`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/docs/acp-java-sdk/tutorial/37-streamable-http-websocket`,children:`Module 37: Streamable HTTP and WebSocket`}),`: serve an agent over the network instead of stdio.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":null,"description":null,"href":"/docs/acp-java-sdk/tutorial/36-terminal-auth-logout"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Module 36: Terminal Auth and Logout","slug":"module-36-terminal-auth-and-logout","depth":1,"children":[]},{"title":"What You’ll Learn","slug":"what-you’ll-learn","depth":2,"children":[]},{"title":"The Code","slug":"the-code","depth":2,"children":[{"title":"Declaring auth methods on @AcpAgent, with no @Initialize method","slug":"declaring-auth-methods-on-@acpagent-with-no-@initialize-method","depth":3,"children":[]},{"title":"Requiring sign-in","slug":"requiring-sign-in","depth":3,"children":[]},{"title":"The agent-handled method","slug":"the-agent-handled-method","depth":3,"children":[]},{"title":"The terminal method","slug":"the-terminal-method","depth":3,"children":[]},{"title":"Logout","slug":"logout","depth":3,"children":[]},{"title":"Client: advertising terminal auth, and dispatching the union","slug":"client-advertising-terminal-auth-and-dispatching-the-union","depth":3,"children":[]}]},{"title":"Source Code","slug":"source-code","depth":2,"children":[]},{"title":"Running the Example","slug":"running-the-example","depth":2,"children":[]},{"title":"Next Module","slug":"next-module","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"mcpjavasdk","siteName":"Pollack AI Lab","title":"36 terminal auth logout - Pollack AI Lab","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T20:03:09.647Z","originalFileLocation":"docs/acp-java-sdk/tutorial/36-terminal-auth-logout.md"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Pollack AI Lab\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"36 terminal auth logout - Pollack AI Lab\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pollack AI Lab\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mcpjavasdk.mintlify.site/_mintlify/api/og/v2?division=New+in+0.80.0\u0026amp;title=36+terminal+auth+logout\u0026amp;theme=0456974a4d42811676bca4e8\u0026amp;signature=a121413a4051c76eeca95f9da47a94b5b84510bfb3990f3a7f8a68e5b12f2357\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"36 terminal auth logout - Pollack AI Lab\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mcpjavasdk.mintlify.site/_mintlify/api/og/v2?division=New+in+0.80.0\u0026amp;title=36+terminal+auth+logout\u0026amp;theme=0456974a4d42811676bca4e8\u0026amp;signature=a121413a4051c76eeca95f9da47a94b5b84510bfb3990f3a7f8a68e5b12f2357\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/mcpjavasdk/Mlmb3Lm_XQ1b3nx5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pollack AI Lab\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4fc3f7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/acp-java-sdk/tutorial/36-terminal-auth-logout.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://lab.pollack.ai/#organization\",\"name\":\"Pollack AI Lab\",\"url\":\"https://lab.pollack.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mcpjavasdk/vV_7S-Kh5_jdaxd-/logo/lab-light.svg?fit=max\u0026auto=format\u0026n=vV_7S-Kh5_jdaxd-\u0026q=85\u0026s=a123c4091fc6865b076075083c5b7cc7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://lab.pollack.ai#website\",\"name\":\"Pollack AI Lab\",\"url\":\"https://lab.pollack.ai\",\"publisher\":{\"@id\":\"https://lab.pollack.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout#webpage\",\"url\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout\",\"name\":\"36 terminal auth logout\",\"dateModified\":\"2026-10-30T20:03:09.647Z\",\"isPartOf\":{\"@id\":\"https://lab.pollack.ai#website\"},\"breadcrumb\":{\"@id\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Supporting Projects\",\"item\":\"https://lab.pollack.ai/projects/claude-agent-sdk\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ACP Java SDK\",\"item\":\"https://lab.pollack.ai/projects/acp-java-sdk\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Tutorial\",\"item\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"New in 0.80.0\",\"item\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/33-session-config-options\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"36 terminal auth logout\",\"item\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout#article\",\"headline\":\"36 terminal auth logout\",\"name\":\"36 terminal auth logout\",\"url\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout\",\"mainEntityOfPage\":{\"@id\":\"https://lab.pollack.ai/docs/acp-java-sdk/tutorial/36-terminal-auth-logout#webpage\"},\"dateModified\":\"2026-10-30T20:03:09.647Z\",\"publisher\":{\"@id\":\"https://lab.pollack.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://lab.pollack.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pollack AI Lab\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Pollack AI Lab\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/acp-java-sdk/tutorial/36-terminal-auth-logout.md","siteName":"Pollack AI Lab","nav":{"global":{"anchors":[{"anchor":"AgentWorks","icon":"cubes","href":"/projects#agentworks"},{"anchor":"Agento Forge","icon":"hammer","href":"/methodology/forge"},{"anchor":"Experiments","icon":"flask","href":"/experiments"}]},"tabs":[{"tab":"Projects","groups":[{"group":"Projects","pages":[{"title":"Pollack AI Lab","sidebarTitle":"Overview","href":""},{"title":"What's New","sidebarTitle":"What's New","href":"/whats-new"},{"title":"Using development snapshots from main","sidebarTitle":"Development snapshots","href":"/docs/development-snapshots"},{"title":"Projects","href":"/projects/index"},{"group":"Bud","pages":[{"title":"Bud","href":"/projects/bud"}]}]},{"group":"AgentWorks","pages":[{"group":"AgentWorks BOM","pages":[{"title":"AgentWorks BOM","href":"/projects/agentworks-bom"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agentworks-bom/whats-new"},{"title":"Upgrading from org.springaicommunity coordinates","href":"/docs/agentworks-bom/upgrading-from-springaicommunity"}]},{"group":"Agent Workflow","pages":[{"title":"Agent Workflow","href":"/projects/agent-workflow"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-workflow/whats-new"},{"title":"AgentLoop","href":"/docs/agent-workflow/agent-loop"},{"title":"Getting Started with Agent Workflow","href":"/docs/agent-workflow/getting-started"},{"group":"Tutorial","pages":[{"title":"Typed Workflow Tutorial","href":"/docs/agent-workflow/tutorial"},{"title":"Runnable Workflow Examples","href":"/docs/agent-workflow/examples"}]},{"title":"Annotation Model","href":"/docs/agent-workflow/annotation-model"},{"title":"Typed Step Inputs and Constructor Injection","href":"/docs/agent-workflow/parameterization"},{"title":"DSL Primitives","href":"/docs/agent-workflow/choosing-a-pattern"},{"title":"Wiring Complex Pipelines","href":"/docs/agent-workflow/wiring"},{"title":"Agent Workflow API Reference","href":"/docs/agent-workflow/api-reference"},{"title":"Trace Capture","sidebarTitle":"Trace Capture","href":"/docs/agent-workflow/trace-capture"},{"title":"Local Durability and Recovery","href":"/docs/agent-workflow/durability"}]},{"group":"Agent Client","pages":[{"title":"Agent Client","href":"/projects/agent-client"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-client/whats-new"},{"title":"Getting Started","sidebarTitle":"Getting Started","href":"/docs/agent-client/howto/getting-started"},{"group":"Tutorial","pages":[{"title":"Agent Client Tutorial","sidebarTitle":"Tutorial Overview","href":"/docs/agent-client/tutorial/index"},{"title":"Lesson 1: Your First Agent Task","sidebarTitle":"01 - First Task","href":"/docs/agent-client/tutorial/01-first-task"},{"title":"Lesson 2: Multi-Provider","sidebarTitle":"02 - Multi-Provider","href":"/docs/agent-client/tutorial/02-multi-provider"},{"title":"Lesson 3: Read and Transform","sidebarTitle":"03 - Read \u0026 Transform","href":"/docs/agent-client/tutorial/03-read-and-transform"},{"title":"Lesson 4: Git Operations","sidebarTitle":"04 - Git Operations","href":"/docs/agent-client/tutorial/04-git-operations"},{"group":"Async conversations","pages":[{"title":"One server, many conversations","sidebarTitle":"01 - One server, many conversations","href":"/docs/agent-client/tutorial/async/01-one-server-many-conversations"},{"title":"A shared conversation, in arrival order","sidebarTitle":"02 - Shared conversation","href":"/docs/agent-client/tutorial/async/02-shared-conversation-arrival-order"},{"title":"Separate conversations, independently","sidebarTitle":"03 - Separate conversations","href":"/docs/agent-client/tutorial/async/03-separate-conversations"},{"title":"Picking a conversation up later","sidebarTitle":"04 - Picking up later","href":"/docs/agent-client/tutorial/async/04-picking-up-later"}]}]},{"title":"Switching Providers","sidebarTitle":"Switching Providers","href":"/docs/agent-client/howto/switching-providers"},{"title":"Structured Output","sidebarTitle":"Structured Output","href":"/docs/agent-client/howto/structured-output"},{"title":"Give an agent MCP servers","sidebarTitle":"MCP servers","href":"/docs/agent-client/howto/mcp-servers"},{"group":"Reference","pages":[{"title":"Portable Options Reference","sidebarTitle":"Portable Options","href":"/docs/agent-client/reference/portable-options"},{"title":"Claude Reference","sidebarTitle":"Claude Reference","href":"/docs/agent-client/reference/claude-reference"},{"title":"Codex Reference","sidebarTitle":"Codex Reference","href":"/docs/agent-client/reference/codex-reference"},{"title":"Gemini Reference","sidebarTitle":"Gemini Reference","href":"/docs/agent-client/reference/gemini-reference"},{"title":"Grok Reference","sidebarTitle":"Grok Reference","href":"/docs/agent-client/reference/grok-reference"},{"title":"Antigravity Reference","sidebarTitle":"Antigravity Reference","href":"/docs/agent-client/reference/antigravity-reference"},{"title":"Agent Sessions","href":"/docs/agent-client/reference/sessions"},{"title":"Async Lifecycle","sidebarTitle":"Async Lifecycle","href":"/docs/agent-client/reference/async-lifecycle"}]},{"title":"Defaults Philosophy","sidebarTitle":"Defaults Philosophy","href":"/docs/agent-client/explanation/defaults-philosophy"}]},{"group":"Agent Eval","pages":[{"title":"Agent Eval","href":"/projects/agent-judge"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-judge/whats-new"},{"title":"Getting started with Agent Eval","href":"/docs/agent-judge/getting-started"},{"group":"Tutorial","pages":[{"title":"Executable Tutorial","href":"/docs/agent-judge/tutorial"},{"title":"PetClinic: running the specification","href":"/docs/agent-judge/petclinic-case-study"},{"title":"Writing Custom Judges","href":"/docs/agent-judge/custom-judge"}]},{"title":"Configured juries and coverage","href":"/docs/agent-judge/jury-system"},{"title":"Reading and retaining results","href":"/docs/agent-judge/interpreting-verdicts"},{"title":"Built-in Judges","href":"/docs/agent-judge/built-in-judges"},{"title":"Requirements, evidence, and execution","href":"/docs/agent-judge/requirements-judges"},{"title":"Requirement documents: syntax, strict loading and the linter","sidebarTitle":"Requirement documents","href":"/docs/agent-judge/requirement-documents"},{"title":"Prompt size guard","sidebarTitle":"Prompt size guard","href":"/docs/agent-judge/prompt-size-guard"},{"title":"Agent Eval API reference","href":"/docs/agent-judge/api-reference"},{"title":"Migrating to Agent Eval 0.18","sidebarTitle":"Migrating to 0.18","href":"/docs/agent-judge/migration-0.18"},{"title":"Migrating to 0.17","sidebarTitle":"Migrating to 0.17","href":"/docs/agent-judge/migration-0.17"},{"title":"Agent Eval design","href":"/docs/agent-judge/design-philosophy"},{"title":"Research Foundations","href":"/docs/agent-judge/research-foundations"}]},{"group":"Agent Bench","pages":[{"title":"Agent Bench","href":"/projects/agent-bench"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-bench/whats-new"},{"title":"Getting Started with Agent Bench","href":"/docs/agent-bench/getting-started"},{"title":"Agent Configuration","href":"/docs/agent-bench/agent-config"},{"title":"Jury System","href":"/docs/agent-bench/jury-system"},{"title":"CLI Reference","href":"/docs/agent-bench/cli-reference"}]},{"group":"Agent Experiment","pages":[{"title":"Agent Experiment","href":"/projects/agent-experiment"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-experiment/whats-new"},{"title":"Getting Started with Agent Experiment","href":"/docs/agent-experiment/getting-started"},{"title":"Creating Experiments","href":"/docs/agent-experiment/creating-experiments"},{"title":"Sessions and Sweeps","href":"/docs/agent-experiment/sessions-and-sweeps"},{"title":"Building a Jury","href":"/docs/agent-experiment/jury-system"},{"title":"Agent Experiment API Reference","href":"/docs/agent-experiment/api-reference"}]},{"group":"Agent Hooks","pages":[{"title":"Agent Hooks","href":"/projects/agent-hooks"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-hooks/whats-new"}]},{"group":"Agent Memory","pages":[{"title":"Agent Memory","href":"/projects/agent-memory"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-memory/whats-new"}]},{"group":"Agent Journal","pages":[{"title":"Agent Journal","href":"/projects/agent-journal"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-journal/whats-new"},{"title":"Which Journal Do I Need?","sidebarTitle":"Which Journal do I need?","href":"/docs/agent-journal/1x-or-2"},{"group":"Agent Journal 2.0","pages":[{"title":"Agent Journal 2.0 Overview","sidebarTitle":"Overview","href":"/docs/agent-journal/v2/overview"},{"title":"Agent Journal 2.0: Getting Started","sidebarTitle":"Getting started","href":"/docs/agent-journal/v2/getting-started"},{"title":"Agent Journal 2.0: Capture","sidebarTitle":"Capture","href":"/docs/agent-journal/v2/capture"},{"title":"Agent Journal 2.0: Reading Packages","sidebarTitle":"Reading packages","href":"/docs/agent-journal/v2/reading"},{"title":"Agent Journal 2.0: CLI Support","sidebarTitle":"CLI support","href":"/docs/agent-journal/v2/cli-support"},{"title":"Agent Journal 2.0: Agent Client Recording","sidebarTitle":"Agent Client recording","href":"/docs/agent-journal/v2/agent-client"}]},{"group":"Agent Journal 1.x (released)","pages":[{"title":"Getting Started","href":"/docs/agent-journal/getting-started"},{"title":"Core Concepts","href":"/docs/agent-journal/concepts"},{"group":"Guides","pages":[{"title":"Capture SDK Sessions","href":"/docs/agent-journal/capture-sessions"},{"title":"Sub-agent Capture","href":"/docs/agent-journal/subagent-capture"},{"title":"Analyze Runs with DuckDB","href":"/docs/agent-journal/analyzing-runs"}]},{"title":"API Reference","href":"/docs/agent-journal/api-reference"}]}]},{"group":"Agent Sandbox","pages":[{"title":"Agent Sandbox","href":"/projects/agent-sandbox"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/agent-sandbox/whats-new"}]}]},{"group":"Supporting Projects","pages":[{"group":"Claude Agent SDK","pages":[{"title":"Claude Agent SDK (Java)","href":"/projects/claude-agent-sdk"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/claude-agent-sdk/whats-new"}]},{"group":"ACP Java SDK","pages":[{"title":"ACP Java SDK","href":"/projects/acp-java-sdk"},{"title":"ACP Java SDK","sidebarTitle":"Overview","href":"/docs/acp-java-sdk/index"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/acp-java-sdk/whats-new"},{"title":"What's New 0.81.0","href":"/docs/acp-java-sdk/whats-new-0.81"},{"title":"Migrating to 0.80.0","sidebarTitle":"Migrating to 0.80.0","href":"/docs/acp-java-sdk/migration-0.80"},{"group":"Framework Integrations","pages":[{"title":"ACP Spring Boot Autoconfiguration","sidebarTitle":"Spring Boot Starter","href":"/docs/acp-java-sdk/autoconfig"},{"title":"Micronaut Integration","sidebarTitle":"Micronaut","href":"/docs/acp-java-sdk/micronaut"},{"title":"Quarkus Integration","sidebarTitle":"Quarkus","href":"/docs/acp-java-sdk/quarkus"}]},{"group":"Concepts","pages":[{"title":"Concepts","sidebarTitle":"Concepts","href":"/docs/acp-java-sdk/concepts"},{"title":"Clients and Agents in Java","sidebarTitle":"Clients \u0026 Agents","href":"/docs/acp-java-sdk/clients-and-agents"},{"title":"Session Config Options","sidebarTitle":"Config Options","href":"/docs/acp-java-sdk/config-options"},{"title":"Cancellation","sidebarTitle":"Cancellation","href":"/docs/acp-java-sdk/cancellation"},{"title":"Extension Methods","sidebarTitle":"Extensions","href":"/docs/acp-java-sdk/extensions"},{"title":"Elicitation","sidebarTitle":"Elicitation","href":"/docs/acp-java-sdk/elicitation"},{"title":"Terminal Auth and Logout","sidebarTitle":"Auth \u0026 Logout","href":"/docs/acp-java-sdk/terminal-auth-and-logout"},{"title":"Transports","sidebarTitle":"Transports","href":"/docs/acp-java-sdk/transports"},{"title":"Agent-to-Client Calls","sidebarTitle":"Agent → Client Calls","href":"/docs/acp-java-sdk/agent-to-client-calls"},{"title":"Forward Compatibility","sidebarTitle":"Forward Compat","href":"/docs/acp-java-sdk/forward-compatibility"},{"title":"Errors","sidebarTitle":"Errors","href":"/docs/acp-java-sdk/errors"},{"title":"JSON Mappers","sidebarTitle":"JSON Mappers","href":"/docs/acp-java-sdk/json-mappers"},{"title":"Testing","sidebarTitle":"Testing","href":"/docs/acp-java-sdk/testing"},{"title":"Stable vs Unstable","sidebarTitle":"Stability","href":"/docs/acp-java-sdk/stability"}]},{"group":"Tutorial","pages":[{"title":"Tutorial","sidebarTitle":"Overview","href":"/docs/acp-java-sdk/tutorial/index"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/01-first-contact"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/02-protocol-basics"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/03-sessions"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/04-prompts"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/05-streaming-updates"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/06-update-types"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/07-agent-requests"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/08-permissions"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/09-session-resume"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/10-cancellation"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/11-error-handling"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/12-echo-agent"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/13-agent-handlers"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/14-sending-updates"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/15-agent-requests"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/16-in-memory-testing"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/17-capability-negotiation"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/18-terminal-operations"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/19-mcp-servers"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/20-session-management"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/21-async-client"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/22-async-agent"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/23-spring-boot-agent"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/24-spring-boot-client"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/25-ai-chatbot-agent"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/26-spring-ai-chatbot"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/27-langchain4j-chatbot"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/28-zed-integration"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/29-jetbrains-integration"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/30-vscode-integration"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/31-elicitation"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/32-agent-client"},{"group":"New in 0.80.0","pages":[{"title":null,"href":"/docs/acp-java-sdk/tutorial/33-session-config-options"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/34-extension-methods"},{"title":null,"description":null,"href":"/docs/acp-java-sdk/tutorial/35-cancellation-timeouts"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/36-terminal-auth-logout"},{"title":null,"description":null,"href":"/docs/acp-java-sdk/tutorial/37-streamable-http-websocket"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/38-spring-boot-http"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/39-forward-compatibility"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/40-micronaut"},{"title":null,"href":"/docs/acp-java-sdk/tutorial/41-quarkus"}]}]},{"title":"Java API Reference","sidebarTitle":"Java","href":"/docs/acp-java-sdk/reference/java"},{"title":"Cross-SDK Compatibility","sidebarTitle":"Compatibility","href":"/docs/acp-java-sdk/compatibility"},{"title":null,"href":"/docs/acp-java-sdk/resources"}]}]},{"group":"Related Projects","pages":[{"title":"Agent Tools","href":"/projects/agent-tools"},{"title":"Agent Skills","href":"/projects/agent-skills"}]},{"group":"Explorations","pages":[{"title":"Agento University","href":"/product/agento-university"},{"title":"The Bud Family","href":"/product/bud-family"}]},{"group":"Older / Inactive Projects","pages":[{"group":"Loopy","pages":[{"title":"Loopy","href":"/projects/loopy"},{"title":"Getting Started with Loopy","href":"/docs/loopy/getting-started"},{"title":"Extending Loopy","href":"/docs/loopy/extending"},{"title":"Loopy CLI Reference","href":"/docs/loopy/cli-reference"},{"title":"What's New","sidebarTitle":"What's New","href":"/docs/loopy/whats-new"}]}]}]},{"tab":"Agento Forge","groups":[{"group":"Forge","pages":[{"title":"Agento Forge","href":"/methodology/forge"},{"title":"Your First Research Agent","href":"/docs/forge/getting-started"}]},{"group":"Reference","pages":[{"title":"Knowledge-Directed Execution","href":"/methodology/knowledge-directed-execution"},{"title":"Improvement Flywheel","href":"/methodology/improvement-flywheel"},{"title":"Knowledge Base Design","href":"/methodology/knowledge-base-design"},{"title":"Knowledge Base Freshness","href":"/methodology/knowledge-base-freshness"},{"title":"Four-Tier Jury","href":"/methodology/four-tier-jury"}]}]},{"tab":"Experiments","groups":[{"group":"Experiments","pages":[{"title":"Experiments","href":"/experiments"},{"title":"Code Coverage v1 — Knowledge Injection Baseline","href":"/experiments/code-coverage-v1"},{"title":"Code Coverage v2 — Skills vs Knowledge Bases","href":"/experiments/code-coverage-v2"},{"title":"Code Coverage v3 — The Exemplar Effect","href":"/experiments/code-coverage-v3"},{"title":"Issue Classification — Infrastructure vs Prompts","href":"/experiments/issue-classification"}]}]}]},"basePath":"","title":"36 terminal auth logout - Pollack AI Lab","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["10e4515597"],"chunks":["BannerMarkdown-BjdIPj1P.js","dist-C5gjFYHe.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}