Skip to content

Commit e262fad

Browse files
nficanoclaude
andcommitted
chore: bump envelope arcp wire literal to "1.1"
Aligns PROTOCOL_VERSION and round-trip spec with the v1.1 spec wire literal. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bc04fc4 commit e262fad

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/arcp/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Arcp
44
VERSION = '1.0.0'
5-
PROTOCOL_VERSION = '1'
5+
PROTOCOL_VERSION = '1.1'
66
SUBPROTOCOL = 'arcp.v1'
77
end

spec/unit/envelope_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
require 'spec_helper'
44

55
RSpec.describe Arcp::Envelope do
6-
it 'builds with the v1 wire fields' do
6+
it 'builds with the v1.1 wire fields' do
77
env = described_class.build(
88
type: 'session.hello', session_id: 's_1',
99
payload: { 'features' => ['heartbeat'] }
1010
)
11-
expect(env.arcp).to eq('1')
11+
expect(env.arcp).to eq('1.1')
1212
expect(env.type).to eq('session.hello')
1313
expect(env.session_id).to eq('s_1')
1414
expect(env.event_seq).to be_nil
@@ -34,7 +34,7 @@
3434
it 'rejects non-Integer event_seq' do
3535
expect do
3636
described_class.from_h(
37-
'arcp' => '1', 'id' => 'x', 'type' => 'job.event', 'session_id' => 's',
37+
'arcp' => '1.1', 'id' => 'x', 'type' => 'job.event', 'session_id' => 's',
3838
'event_seq' => '7', 'payload' => {}
3939
)
4040
end.to raise_error(Arcp::Errors::InvalidRequest)

0 commit comments

Comments
 (0)