File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export JAVA_HOME=$(/usr/libexec/java_home -v 21)
131131
132132## Features
133133
134- - §5.1 envelope with ` arcp: "1" ` and ` FAIL_ON_UNKNOWN_PROPERTIES=false `
134+ - §5.1 envelope with ` arcp: "1.1 " ` and ` FAIL_ON_UNKNOWN_PROPERTIES=false `
135135- §6.1 bearer auth via ` BearerVerifier ` SPI; ` acceptAny ` and ` staticToken ` helpers
136136- §6.2 capability intersection with rich ` agents ` shape (name + versions + default)
137137- §6.3 resume buffer (in-memory ring) and rotating ` resume_token `
Original file line number Diff line number Diff line change 11package dev .arcp .core ;
22
33public final class Version {
4- public static final String PROTOCOL = "1" ;
4+ public static final String PROTOCOL = "1.1 " ;
55 public static final String SDK = "1.0.0" ;
66
77 private Version () {}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public record Envelope(
2929 @ JsonProperty ("event_seq" ) @ Nullable Long eventSeq ,
3030 JsonNode payload ) {
3131
32- public static final String VERSION = "1" ;
32+ public static final String VERSION = "1.1 " ;
3333
3434 public Envelope {
3535 Objects .requireNonNull (arcp , "arcp" );
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void envelopeWithSessionIdRoundTrips() throws Exception {
3535 String json = mapper .writeValueAsString (original );
3636 Envelope parsed = mapper .readValue (json , Envelope .class );
3737
38- assertThat (parsed .arcp ()).isEqualTo ("1" );
38+ assertThat (parsed .arcp ()).isEqualTo ("1.1 " );
3939 assertThat (parsed .id ()).isEqualTo (MessageId .of ("m_1" ));
4040 assertThat (parsed .sessionId ()).isEqualTo (sid );
4141 assertThat (parsed .type ()).isEqualTo ("session.hello" );
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ since: "1.0.0"
1313
1414``` json
1515{
16- "arcp" : " 1" ,
16+ "arcp" : " 1.1 " ,
1717 "id" : " 01J…" ,
1818 "type" : " session.hello" ,
1919 "session_id" : " sess_…" ,
@@ -26,7 +26,7 @@ since: "1.0.0"
2626
2727| Field | Java type | Always required |
2828| ---| ---| ---|
29- | ` arcp ` | ` String ` | yes (` Envelope.VERSION = "1" ` ) |
29+ | ` arcp ` | ` String ` | yes (` Envelope.VERSION = "1.1 " ` ) |
3030| ` id ` | [ ` MessageId ` ] ( ../../arcp-core/src/main/java/dev/arcp/core/ids/MessageId.java ) | yes (ULID, monotonic per process) |
3131| ` type ` | discriminator → [ ` Message.Type ` ] ( ../../arcp-core/src/main/java/dev/arcp/core/messages/Message.java ) | yes |
3232| ` payload ` | ` JsonNode ` then decoded per type | yes |
You can’t perform that action at this time.
0 commit comments