claude-agent-sdk 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -128,12 +128,23 @@ module ClaudeAgentSDK
128
128
  end
129
129
  end
130
130
 
131
- # Init system message (emitted at session start and after /clear)
131
+ # Init system message (emitted at session start and after /clear).
132
+ #
133
+ # `capabilities` lists the protocol features the CLI supports (e.g.
134
+ # "interrupt_receipt_v1"; an open set, absent before CLI 2.1.205): test it
135
+ # for a feature instead of comparing `claude_code_version`.
136
+ # `plugin_errors` lists plugins that failed to load (`{ plugin:, type:,
137
+ # message:, path: }`; the CLI omits it when none failed, and older CLIs never
138
+ # send it). `terminal_slash_commands` are the entries of `slash_commands`
139
+ # bound to the local terminal (e.g. "exit"), sent only when there are some.
140
+ # `fast_mode_disabled_reason` names the check that keeps fast mode off.
132
141
  class InitMessage < SystemMessage
133
142
  attr_accessor :uuid, :session_id, :agents, :api_key_source, :betas,
134
143
  :claude_code_version, :cwd, :tools, :mcp_servers, :model,
135
- :permission_mode, :slash_commands, :output_style, :skills, :plugins,
136
- :fast_mode_state # "off", "cooldown", or "on"
144
+ :permission_mode, :slash_commands, :terminal_slash_commands,
145
+ :output_style, :skills, :plugins, :plugin_errors,
146
+ :fast_mode_state, # "off", "cooldown", or "on"
147
+ :fast_mode_disabled_reason, :capabilities
137
148
  end
138
149
 
139
150
  # Compact boundary system message (emitted after context compaction completes)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClaudeAgentSDK
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end