You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 513f0ac
Browse filesBrowse the repository at this point in the historyBrowse files
Mark Pollack
committed
Micronaut: the listener's own keys move under acp.agent.transport.http.listener
host, port and max-concurrent-streams-per-connection configure only the
SDK's Jetty listener, so they now sit under
acp.agent.transport.http.listener, as in Spring Boot and acp-integration.
The keys any host of the endpoint reads (path, allowed-origins, the
buffer limits, shutdown-timeout) stay under acp.agent.transport.http.
No aliases: the old keys never shipped.
Copy file name to clipboardExpand all lines: acp-micronaut/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,12 +89,13 @@ public final class Application {
89
89
|`acp.agent.shutdown-on-transport-end`|`true`| close the context when the stdio input ends |
90
90
|`acp.agent.shutdown-timeout`|`10s`| how long closing waits for a stdio agent's graceful close, then closes it at once |
91
91
|`acp.agent.transport.type`|`stdio`|`stdio`, `http` or `websocket`, in any case (the last two mean the same listener) |
92
-
|`acp.agent.transport.http.host`| loopback | the address the listener binds; unset binds `127.0.0.1` and `::1` only, `0.0.0.0` every interface (an explicit opt-in: the listener has no authentication) |
92
+
|`acp.agent.transport.http.listener.host`| loopback | the address the listener binds; unset binds `127.0.0.1` and `::1` only, `0.0.0.0` every interface (an explicit opt-in: the listener has no authentication) |
93
93
|`acp.agent.transport.http.allowed-origins`| none | browser origins accepted besides `localhost`, `127.0.0.1` and `[::1]`; any other `Origin` is answered 403, over HTTP and on the WebSocket handshake; `*` for any |
94
-
|`acp.agent.transport.http.port`|`8080`| the listener's own port; `0` for an ephemeral one (`AcpAgentRuntime.port()`) |
94
+
|`acp.agent.transport.http.listener.port`|`8080`| the listener's own port; `0` for an ephemeral one (`AcpAgentRuntime.port()`) |
95
+
|`acp.agent.transport.http.listener.max-concurrent-streams-per-connection`| SDK (1024) | HTTP/2 streams one client connection may hold open |
95
96
|`acp.agent.transport.http.path`|`/acp`||
96
97
|`acp.agent.transport.http.max-post-body-size`| SDK (16MB) | e.g. `4MB`|
97
-
|`acp.agent.transport.http.keep-alive-interval`, `mailbox-capacity`, `max-pending-sse-events`, `max-web-socket-pending-frames`, `max-provisional-sessions`, `max-concurrent-streams-per-connection`, `shutdown-timeout`| SDK |`StreamableHttpAcpAgentTransportOptions`; closing waits for the listener at most `shutdown-timeout` plus 5 seconds |
98
+
|`acp.agent.transport.http.keep-alive-interval`, `mailbox-capacity`, `max-pending-sse-events`, `max-web-socket-pending-frames`, `max-provisional-sessions`, `shutdown-timeout`| SDK |`StreamableHttpAcpAgentTransportOptions`; closing waits for the listener at most `shutdown-timeout` plus 5 seconds |
98
99
99
100
An application bean of type `AcpAgentTransport` replaces stdio, for example the in-memory
100
101
transport of `acp-test` in a test.
@@ -106,7 +107,7 @@ one, not inside it. It serves HTTP/1.1, cleartext HTTP/2 and WebSocket upgrades
106
107
**Micronaut's security does not apply to it.** Because the listener is the SDK's own server,
107
108
Micronaut's filters, `micronaut-security` rules, CORS, TLS and metrics never see its requests. It
108
109
binds the loopback interface by default, so only programs on the same machine can connect, and it
109
-
refuses browser requests from foreign origins. Setting `acp.agent.transport.http.host=0.0.0.0`
110
+
refuses browser requests from foreign origins. Setting `acp.agent.transport.http.listener.host=0.0.0.0`
110
111
exposes an endpoint without authentication to the network: put a proxy that authenticates in front
111
112
of it. This is the interim arrangement for 0.80.0; serving ACP on Micronaut's own server, where its
0 commit comments