opencode_client 1.0.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.
Files changed (769) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +102 -0
  4. data/README.md +423 -0
  5. data/Rakefile +10 -0
  6. data/docs/APIError.md +20 -0
  7. data/docs/APIErrorData.md +28 -0
  8. data/docs/Agent.md +46 -0
  9. data/docs/AgentConfig.md +38 -0
  10. data/docs/AgentConfigPermission.md +28 -0
  11. data/docs/AgentConfigPermissionBash.md +15 -0
  12. data/docs/AgentPart.md +28 -0
  13. data/docs/AgentPartInput.md +24 -0
  14. data/docs/AgentPartSource.md +22 -0
  15. data/docs/AgentPermission.md +28 -0
  16. data/docs/ApiAuth.md +20 -0
  17. data/docs/AppLogRequest.md +24 -0
  18. data/docs/AssistantMessage.md +46 -0
  19. data/docs/AssistantMessageError.md +20 -0
  20. data/docs/AssistantMessagePath.md +20 -0
  21. data/docs/AssistantMessageTime.md +20 -0
  22. data/docs/AssistantMessageTokens.md +24 -0
  23. data/docs/AssistantMessageTokensCache.md +20 -0
  24. data/docs/Auth.md +30 -0
  25. data/docs/BadRequestError.md +22 -0
  26. data/docs/Command.md +28 -0
  27. data/docs/CompactionPart.md +26 -0
  28. data/docs/Config.md +82 -0
  29. data/docs/ConfigAgent.md +30 -0
  30. data/docs/ConfigAutoupdate.md +15 -0
  31. data/docs/ConfigCommandValue.md +26 -0
  32. data/docs/ConfigCompaction.md +20 -0
  33. data/docs/ConfigEnterprise.md +18 -0
  34. data/docs/ConfigExperimental.md +30 -0
  35. data/docs/ConfigExperimentalHook.md +20 -0
  36. data/docs/ConfigExperimentalHookFileEditedValueInner.md +20 -0
  37. data/docs/ConfigFormatter.md +15 -0
  38. data/docs/ConfigFormatterAnyOfValue.md +24 -0
  39. data/docs/ConfigLsp.md +15 -0
  40. data/docs/ConfigLspAnyOfValue.md +26 -0
  41. data/docs/ConfigLspAnyOfValueAnyOf.md +18 -0
  42. data/docs/ConfigLspAnyOfValueAnyOf1.md +26 -0
  43. data/docs/ConfigMode.md +20 -0
  44. data/docs/ConfigProviders200Response.md +20 -0
  45. data/docs/ConfigTui.md +22 -0
  46. data/docs/ConfigTuiScrollAcceleration.md +18 -0
  47. data/docs/ConfigWatcher.md +18 -0
  48. data/docs/DefaultApi.md +5641 -0
  49. data/docs/Event.md +20 -0
  50. data/docs/EventCommandExecuted.md +20 -0
  51. data/docs/EventCommandExecutedProperties.md +24 -0
  52. data/docs/EventFileEdited.md +20 -0
  53. data/docs/EventFileEditedProperties.md +18 -0
  54. data/docs/EventFileWatcherUpdated.md +20 -0
  55. data/docs/EventFileWatcherUpdatedProperties.md +20 -0
  56. data/docs/EventGlobalDisposed.md +20 -0
  57. data/docs/EventInstallationUpdateAvailable.md +20 -0
  58. data/docs/EventInstallationUpdated.md +20 -0
  59. data/docs/EventInstallationUpdatedProperties.md +18 -0
  60. data/docs/EventLspClientDiagnostics.md +20 -0
  61. data/docs/EventLspClientDiagnosticsProperties.md +20 -0
  62. data/docs/EventLspUpdated.md +20 -0
  63. data/docs/EventMcpToolsChanged.md +20 -0
  64. data/docs/EventMcpToolsChangedProperties.md +18 -0
  65. data/docs/EventMessagePartRemoved.md +20 -0
  66. data/docs/EventMessagePartRemovedProperties.md +22 -0
  67. data/docs/EventMessagePartUpdated.md +20 -0
  68. data/docs/EventMessagePartUpdatedProperties.md +20 -0
  69. data/docs/EventMessageRemoved.md +20 -0
  70. data/docs/EventMessageRemovedProperties.md +20 -0
  71. data/docs/EventMessageUpdated.md +20 -0
  72. data/docs/EventMessageUpdatedProperties.md +18 -0
  73. data/docs/EventPermissionReplied.md +20 -0
  74. data/docs/EventPermissionRepliedProperties.md +22 -0
  75. data/docs/EventPermissionUpdated.md +20 -0
  76. data/docs/EventProjectUpdated.md +20 -0
  77. data/docs/EventPtyCreated.md +20 -0
  78. data/docs/EventPtyCreatedProperties.md +18 -0
  79. data/docs/EventPtyDeleted.md +20 -0
  80. data/docs/EventPtyDeletedProperties.md +18 -0
  81. data/docs/EventPtyExited.md +20 -0
  82. data/docs/EventPtyExitedProperties.md +20 -0
  83. data/docs/EventPtyUpdated.md +20 -0
  84. data/docs/EventServerConnected.md +20 -0
  85. data/docs/EventServerInstanceDisposed.md +20 -0
  86. data/docs/EventServerInstanceDisposedProperties.md +18 -0
  87. data/docs/EventSessionCompacted.md +20 -0
  88. data/docs/EventSessionCreated.md +20 -0
  89. data/docs/EventSessionCreatedProperties.md +18 -0
  90. data/docs/EventSessionDeleted.md +20 -0
  91. data/docs/EventSessionDiff.md +20 -0
  92. data/docs/EventSessionDiffProperties.md +20 -0
  93. data/docs/EventSessionError.md +20 -0
  94. data/docs/EventSessionErrorProperties.md +20 -0
  95. data/docs/EventSessionIdle.md +20 -0
  96. data/docs/EventSessionIdleProperties.md +18 -0
  97. data/docs/EventSessionStatus.md +20 -0
  98. data/docs/EventSessionStatusProperties.md +20 -0
  99. data/docs/EventSessionUpdated.md +20 -0
  100. data/docs/EventTodoUpdated.md +20 -0
  101. data/docs/EventTodoUpdatedProperties.md +20 -0
  102. data/docs/EventTuiCommandExecute.md +20 -0
  103. data/docs/EventTuiCommandExecuteProperties.md +18 -0
  104. data/docs/EventTuiCommandExecutePropertiesCommand.md +15 -0
  105. data/docs/EventTuiPromptAppend.md +20 -0
  106. data/docs/EventTuiToastShow.md +20 -0
  107. data/docs/EventVcsBranchUpdated.md +20 -0
  108. data/docs/EventVcsBranchUpdatedProperties.md +18 -0
  109. data/docs/File.md +24 -0
  110. data/docs/FileContent.md +28 -0
  111. data/docs/FileContentPatch.md +28 -0
  112. data/docs/FileContentPatchHunksInner.md +26 -0
  113. data/docs/FileDiff.md +26 -0
  114. data/docs/FileNode.md +26 -0
  115. data/docs/FilePart.md +32 -0
  116. data/docs/FilePartInput.md +28 -0
  117. data/docs/FilePartSource.md +28 -0
  118. data/docs/FilePartSourceText.md +22 -0
  119. data/docs/FileSource.md +22 -0
  120. data/docs/FindText200ResponseInner.md +26 -0
  121. data/docs/FindText200ResponseInnerPath.md +18 -0
  122. data/docs/FindText200ResponseInnerSubmatchesInner.md +22 -0
  123. data/docs/FormatterStatus.md +22 -0
  124. data/docs/GlobalEvent.md +20 -0
  125. data/docs/GlobalHealth200Response.md +20 -0
  126. data/docs/KeybindsConfig.md +188 -0
  127. data/docs/LSPStatus.md +24 -0
  128. data/docs/LayoutConfig.md +15 -0
  129. data/docs/LogLevel.md +15 -0
  130. data/docs/MCPStatus.md +20 -0
  131. data/docs/MCPStatusConnected.md +18 -0
  132. data/docs/MCPStatusDisabled.md +18 -0
  133. data/docs/MCPStatusFailed.md +20 -0
  134. data/docs/MCPStatusNeedsAuth.md +18 -0
  135. data/docs/MCPStatusNeedsClientRegistration.md +20 -0
  136. data/docs/McpAddRequest.md +20 -0
  137. data/docs/McpAddRequestConfig.md +32 -0
  138. data/docs/McpAuthCallbackRequest.md +18 -0
  139. data/docs/McpAuthRemove200Response.md +18 -0
  140. data/docs/McpAuthStart200Response.md +18 -0
  141. data/docs/McpLocalConfig.md +26 -0
  142. data/docs/McpOAuthConfig.md +22 -0
  143. data/docs/McpRemoteConfig.md +28 -0
  144. data/docs/McpRemoteConfigOauth.md +22 -0
  145. data/docs/Message.md +52 -0
  146. data/docs/MessageAbortedError.md +20 -0
  147. data/docs/MessageOutputLengthError.md +20 -0
  148. data/docs/Model.md +40 -0
  149. data/docs/ModelApi.md +22 -0
  150. data/docs/ModelCapabilities.md +30 -0
  151. data/docs/ModelCapabilitiesInput.md +26 -0
  152. data/docs/ModelCapabilitiesInterleaved.md +18 -0
  153. data/docs/ModelCapabilitiesInterleavedAnyOf.md +18 -0
  154. data/docs/ModelCost.md +24 -0
  155. data/docs/ModelCostExperimentalOver200K.md +22 -0
  156. data/docs/NotFoundError.md +20 -0
  157. data/docs/OAuth.md +26 -0
  158. data/docs/Part.md +76 -0
  159. data/docs/PartAnyOf.md +32 -0
  160. data/docs/PatchPart.md +28 -0
  161. data/docs/Path.md +26 -0
  162. data/docs/Permission.md +34 -0
  163. data/docs/PermissionPattern.md +15 -0
  164. data/docs/PermissionRespondRequest.md +18 -0
  165. data/docs/Project.md +28 -0
  166. data/docs/ProjectTime.md +22 -0
  167. data/docs/ProjectUpdateRequest.md +20 -0
  168. data/docs/ProjectUpdateRequestIcon.md +20 -0
  169. data/docs/Provider.md +30 -0
  170. data/docs/ProviderAuthAuthorization.md +22 -0
  171. data/docs/ProviderAuthError.md +20 -0
  172. data/docs/ProviderAuthErrorData.md +20 -0
  173. data/docs/ProviderAuthMethod.md +20 -0
  174. data/docs/ProviderConfig.md +34 -0
  175. data/docs/ProviderConfigModelsValue.md +50 -0
  176. data/docs/ProviderConfigModelsValueInterleaved.md +18 -0
  177. data/docs/ProviderConfigModelsValueInterleavedAnyOf.md +18 -0
  178. data/docs/ProviderConfigOptions.md +26 -0
  179. data/docs/ProviderConfigOptionsTimeout.md +15 -0
  180. data/docs/ProviderList200Response.md +22 -0
  181. data/docs/ProviderList200ResponseAllInner.md +28 -0
  182. data/docs/ProviderList200ResponseAllInnerModelsValue.md +50 -0
  183. data/docs/ProviderList200ResponseAllInnerModelsValueCost.md +26 -0
  184. data/docs/ProviderList200ResponseAllInnerModelsValueCostContextOver200k.md +24 -0
  185. data/docs/ProviderList200ResponseAllInnerModelsValueInterleaved.md +18 -0
  186. data/docs/ProviderList200ResponseAllInnerModelsValueInterleavedAnyOf.md +18 -0
  187. data/docs/ProviderList200ResponseAllInnerModelsValueLimit.md +20 -0
  188. data/docs/ProviderList200ResponseAllInnerModelsValueModalities.md +20 -0
  189. data/docs/ProviderList200ResponseAllInnerModelsValueProvider.md +18 -0
  190. data/docs/ProviderOauthAuthorizeRequest.md +18 -0
  191. data/docs/ProviderOauthCallbackRequest.md +20 -0
  192. data/docs/Pty.md +30 -0
  193. data/docs/PtyCreateRequest.md +26 -0
  194. data/docs/PtyUpdateRequest.md +20 -0
  195. data/docs/PtyUpdateRequestSize.md +20 -0
  196. data/docs/Range.md +20 -0
  197. data/docs/RangeStart.md +20 -0
  198. data/docs/ReasoningPart.md +30 -0
  199. data/docs/RetryPart.md +30 -0
  200. data/docs/ServerConfig.md +22 -0
  201. data/docs/Session.md +36 -0
  202. data/docs/SessionApi.md +145 -0
  203. data/docs/SessionCommandRequest.md +26 -0
  204. data/docs/SessionCreateRequest.md +20 -0
  205. data/docs/SessionForkRequest.md +18 -0
  206. data/docs/SessionInitRequest.md +22 -0
  207. data/docs/SessionMessages200ResponseInner.md +20 -0
  208. data/docs/SessionPrompt200Response.md +20 -0
  209. data/docs/SessionPromptRequest.md +30 -0
  210. data/docs/SessionPromptRequestModel.md +20 -0
  211. data/docs/SessionPromptRequestPartsInner.md +48 -0
  212. data/docs/SessionRevert.md +24 -0
  213. data/docs/SessionRevertRequest.md +20 -0
  214. data/docs/SessionShare.md +18 -0
  215. data/docs/SessionShellRequest.md +22 -0
  216. data/docs/SessionStatus.md +24 -0
  217. data/docs/SessionStatusAnyOf.md +18 -0
  218. data/docs/SessionStatusAnyOf1.md +24 -0
  219. data/docs/SessionStatusAnyOf2.md +18 -0
  220. data/docs/SessionSummarizeRequest.md +22 -0
  221. data/docs/SessionSummary.md +24 -0
  222. data/docs/SessionTime.md +24 -0
  223. data/docs/SessionUpdateRequest.md +20 -0
  224. data/docs/SessionUpdateRequestTime.md +18 -0
  225. data/docs/SnapshotPart.md +26 -0
  226. data/docs/StepFinishPart.md +32 -0
  227. data/docs/StepStartPart.md +26 -0
  228. data/docs/SubtaskPartInput.md +28 -0
  229. data/docs/Symbol.md +22 -0
  230. data/docs/SymbolLocation.md +20 -0
  231. data/docs/SymbolSource.md +28 -0
  232. data/docs/TextPart.md +34 -0
  233. data/docs/TextPartInput.md +30 -0
  234. data/docs/TextPartTime.md +20 -0
  235. data/docs/Todo.md +24 -0
  236. data/docs/ToolListItem.md +22 -0
  237. data/docs/ToolPart.md +32 -0
  238. data/docs/ToolState.md +34 -0
  239. data/docs/ToolStateCompleted.md +30 -0
  240. data/docs/ToolStateCompletedTime.md +22 -0
  241. data/docs/ToolStateError.md +26 -0
  242. data/docs/ToolStateErrorTime.md +20 -0
  243. data/docs/ToolStatePending.md +22 -0
  244. data/docs/ToolStateRunning.md +26 -0
  245. data/docs/ToolStateRunningTime.md +18 -0
  246. data/docs/TuiControlNext200Response.md +20 -0
  247. data/docs/TuiExecuteCommandRequest.md +18 -0
  248. data/docs/TuiPublishRequest.md +20 -0
  249. data/docs/TuiShowToastRequest.md +24 -0
  250. data/docs/UnknownError.md +20 -0
  251. data/docs/UnknownErrorData.md +18 -0
  252. data/docs/UserMessage.md +34 -0
  253. data/docs/UserMessageSummary.md +22 -0
  254. data/docs/UserMessageTime.md +18 -0
  255. data/docs/VcsInfo.md +18 -0
  256. data/docs/WellKnownAuth.md +22 -0
  257. data/git_push.sh +57 -0
  258. data/lib/opencode_client/api/default_api.rb +5442 -0
  259. data/lib/opencode_client/api/session_api.rb +164 -0
  260. data/lib/opencode_client/api_client.rb +374 -0
  261. data/lib/opencode_client/api_error.rb +58 -0
  262. data/lib/opencode_client/api_model_base.rb +88 -0
  263. data/lib/opencode_client/configuration.rb +288 -0
  264. data/lib/opencode_client/models/agent.rb +405 -0
  265. data/lib/opencode_client/models/agent_config.rb +316 -0
  266. data/lib/opencode_client/models/agent_config_permission.rb +262 -0
  267. data/lib/opencode_client/models/agent_config_permission_bash.rb +103 -0
  268. data/lib/opencode_client/models/agent_part.rb +301 -0
  269. data/lib/opencode_client/models/agent_part_input.rb +232 -0
  270. data/lib/opencode_client/models/agent_part_source.rb +252 -0
  271. data/lib/opencode_client/models/agent_permission.rb +287 -0
  272. data/lib/opencode_client/models/api_auth.rb +214 -0
  273. data/lib/opencode_client/models/api_error.rb +214 -0
  274. data/lib/opencode_client/models/api_error_data.rb +230 -0
  275. data/lib/opencode_client/models/app_log_request.rb +255 -0
  276. data/lib/opencode_client/models/assistant_message.rb +501 -0
  277. data/lib/opencode_client/models/assistant_message_error.rb +106 -0
  278. data/lib/opencode_client/models/assistant_message_path.rb +190 -0
  279. data/lib/opencode_client/models/assistant_message_time.rb +173 -0
  280. data/lib/opencode_client/models/assistant_message_tokens.rb +242 -0
  281. data/lib/opencode_client/models/assistant_message_tokens_cache.rb +190 -0
  282. data/lib/opencode_client/models/auth.rb +104 -0
  283. data/lib/opencode_client/models/bad_request_error.rb +228 -0
  284. data/lib/opencode_client/models/command.rb +226 -0
  285. data/lib/opencode_client/models/compaction_part.rb +292 -0
  286. data/lib/opencode_client/models/config.rb +500 -0
  287. data/lib/opencode_client/models/config_agent.rb +202 -0
  288. data/lib/opencode_client/models/config_autoupdate.rb +104 -0
  289. data/lib/opencode_client/models/config_command_value.rb +200 -0
  290. data/lib/opencode_client/models/config_compaction.rb +158 -0
  291. data/lib/opencode_client/models/config_enterprise.rb +148 -0
  292. data/lib/opencode_client/models/config_experimental.rb +208 -0
  293. data/lib/opencode_client/models/config_experimental_hook.rb +160 -0
  294. data/lib/opencode_client/models/config_experimental_hook_file_edited_value_inner.rb +177 -0
  295. data/lib/opencode_client/models/config_formatter.rb +103 -0
  296. data/lib/opencode_client/models/config_formatter_any_of_value.rb +180 -0
  297. data/lib/opencode_client/models/config_lsp.rb +103 -0
  298. data/lib/opencode_client/models/config_lsp_any_of_value.rb +103 -0
  299. data/lib/opencode_client/models/config_lsp_any_of_value_any_of.rb +188 -0
  300. data/lib/opencode_client/models/config_lsp_any_of_value_any_of1.rb +208 -0
  301. data/lib/opencode_client/models/config_mode.rb +157 -0
  302. data/lib/opencode_client/models/config_providers200_response.rb +194 -0
  303. data/lib/opencode_client/models/config_tui.rb +221 -0
  304. data/lib/opencode_client/models/config_tui_scroll_acceleration.rb +166 -0
  305. data/lib/opencode_client/models/config_watcher.rb +149 -0
  306. data/lib/opencode_client/models/event.rb +136 -0
  307. data/lib/opencode_client/models/event_command_executed.rb +214 -0
  308. data/lib/opencode_client/models/event_command_executed_properties.rb +264 -0
  309. data/lib/opencode_client/models/event_file_edited.rb +214 -0
  310. data/lib/opencode_client/models/event_file_edited_properties.rb +164 -0
  311. data/lib/opencode_client/models/event_file_watcher_updated.rb +214 -0
  312. data/lib/opencode_client/models/event_file_watcher_updated_properties.rb +214 -0
  313. data/lib/opencode_client/models/event_global_disposed.rb +214 -0
  314. data/lib/opencode_client/models/event_installation_update_available.rb +214 -0
  315. data/lib/opencode_client/models/event_installation_updated.rb +214 -0
  316. data/lib/opencode_client/models/event_installation_updated_properties.rb +164 -0
  317. data/lib/opencode_client/models/event_lsp_client_diagnostics.rb +214 -0
  318. data/lib/opencode_client/models/event_lsp_client_diagnostics_properties.rb +190 -0
  319. data/lib/opencode_client/models/event_lsp_updated.rb +214 -0
  320. data/lib/opencode_client/models/event_mcp_tools_changed.rb +214 -0
  321. data/lib/opencode_client/models/event_mcp_tools_changed_properties.rb +164 -0
  322. data/lib/opencode_client/models/event_message_part_removed.rb +214 -0
  323. data/lib/opencode_client/models/event_message_part_removed_properties.rb +216 -0
  324. data/lib/opencode_client/models/event_message_part_updated.rb +214 -0
  325. data/lib/opencode_client/models/event_message_part_updated_properties.rb +173 -0
  326. data/lib/opencode_client/models/event_message_removed.rb +214 -0
  327. data/lib/opencode_client/models/event_message_removed_properties.rb +190 -0
  328. data/lib/opencode_client/models/event_message_updated.rb +214 -0
  329. data/lib/opencode_client/models/event_message_updated_properties.rb +164 -0
  330. data/lib/opencode_client/models/event_permission_replied.rb +214 -0
  331. data/lib/opencode_client/models/event_permission_replied_properties.rb +216 -0
  332. data/lib/opencode_client/models/event_permission_updated.rb +214 -0
  333. data/lib/opencode_client/models/event_project_updated.rb +214 -0
  334. data/lib/opencode_client/models/event_pty_created.rb +214 -0
  335. data/lib/opencode_client/models/event_pty_created_properties.rb +164 -0
  336. data/lib/opencode_client/models/event_pty_deleted.rb +214 -0
  337. data/lib/opencode_client/models/event_pty_deleted_properties.rb +175 -0
  338. data/lib/opencode_client/models/event_pty_exited.rb +214 -0
  339. data/lib/opencode_client/models/event_pty_exited_properties.rb +201 -0
  340. data/lib/opencode_client/models/event_pty_updated.rb +214 -0
  341. data/lib/opencode_client/models/event_server_connected.rb +214 -0
  342. data/lib/opencode_client/models/event_server_instance_disposed.rb +214 -0
  343. data/lib/opencode_client/models/event_server_instance_disposed_properties.rb +164 -0
  344. data/lib/opencode_client/models/event_session_compacted.rb +214 -0
  345. data/lib/opencode_client/models/event_session_created.rb +214 -0
  346. data/lib/opencode_client/models/event_session_created_properties.rb +164 -0
  347. data/lib/opencode_client/models/event_session_deleted.rb +214 -0
  348. data/lib/opencode_client/models/event_session_diff.rb +214 -0
  349. data/lib/opencode_client/models/event_session_diff_properties.rb +192 -0
  350. data/lib/opencode_client/models/event_session_error.rb +214 -0
  351. data/lib/opencode_client/models/event_session_error_properties.rb +156 -0
  352. data/lib/opencode_client/models/event_session_idle.rb +214 -0
  353. data/lib/opencode_client/models/event_session_idle_properties.rb +164 -0
  354. data/lib/opencode_client/models/event_session_status.rb +214 -0
  355. data/lib/opencode_client/models/event_session_status_properties.rb +190 -0
  356. data/lib/opencode_client/models/event_session_updated.rb +214 -0
  357. data/lib/opencode_client/models/event_todo_updated.rb +214 -0
  358. data/lib/opencode_client/models/event_todo_updated_properties.rb +192 -0
  359. data/lib/opencode_client/models/event_tui_command_execute.rb +214 -0
  360. data/lib/opencode_client/models/event_tui_command_execute_properties.rb +164 -0
  361. data/lib/opencode_client/models/event_tui_command_execute_properties_command.rb +102 -0
  362. data/lib/opencode_client/models/event_tui_prompt_append.rb +214 -0
  363. data/lib/opencode_client/models/event_tui_toast_show.rb +214 -0
  364. data/lib/opencode_client/models/event_vcs_branch_updated.rb +214 -0
  365. data/lib/opencode_client/models/event_vcs_branch_updated_properties.rb +147 -0
  366. data/lib/opencode_client/models/file.rb +302 -0
  367. data/lib/opencode_client/models/file_content.rb +262 -0
  368. data/lib/opencode_client/models/file_content_patch.rb +245 -0
  369. data/lib/opencode_client/models/file_content_patch_hunks_inner.rb +270 -0
  370. data/lib/opencode_client/models/file_diff.rb +268 -0
  371. data/lib/opencode_client/models/file_node.rb +292 -0
  372. data/lib/opencode_client/models/file_part.rb +336 -0
  373. data/lib/opencode_client/models/file_part_input.rb +267 -0
  374. data/lib/opencode_client/models/file_part_source.rb +103 -0
  375. data/lib/opencode_client/models/file_part_source_text.rb +252 -0
  376. data/lib/opencode_client/models/file_source.rb +240 -0
  377. data/lib/opencode_client/models/find_text200_response_inner.rb +270 -0
  378. data/lib/opencode_client/models/find_text200_response_inner_path.rb +164 -0
  379. data/lib/opencode_client/models/find_text200_response_inner_submatches_inner.rb +216 -0
  380. data/lib/opencode_client/models/formatter_status.rb +218 -0
  381. data/lib/opencode_client/models/global_event.rb +190 -0
  382. data/lib/opencode_client/models/global_health200_response.rb +214 -0
  383. data/lib/opencode_client/models/keybinds_config.rb +1171 -0
  384. data/lib/opencode_client/models/layout_config.rb +40 -0
  385. data/lib/opencode_client/models/log_level.rb +42 -0
  386. data/lib/opencode_client/models/lsp_status.rb +266 -0
  387. data/lib/opencode_client/models/mcp_add_request.rb +190 -0
  388. data/lib/opencode_client/models/mcp_add_request_config.rb +103 -0
  389. data/lib/opencode_client/models/mcp_auth_callback_request.rb +165 -0
  390. data/lib/opencode_client/models/mcp_auth_remove200_response.rb +188 -0
  391. data/lib/opencode_client/models/mcp_auth_start200_response.rb +165 -0
  392. data/lib/opencode_client/models/mcp_local_config.rb +269 -0
  393. data/lib/opencode_client/models/mcp_o_auth_config.rb +168 -0
  394. data/lib/opencode_client/models/mcp_remote_config.rb +276 -0
  395. data/lib/opencode_client/models/mcp_remote_config_oauth.rb +104 -0
  396. data/lib/opencode_client/models/mcp_status.rb +106 -0
  397. data/lib/opencode_client/models/mcp_status_connected.rb +188 -0
  398. data/lib/opencode_client/models/mcp_status_disabled.rb +188 -0
  399. data/lib/opencode_client/models/mcp_status_failed.rb +214 -0
  400. data/lib/opencode_client/models/mcp_status_needs_auth.rb +188 -0
  401. data/lib/opencode_client/models/mcp_status_needs_client_registration.rb +214 -0
  402. data/lib/opencode_client/models/message.rb +103 -0
  403. data/lib/opencode_client/models/message_aborted_error.rb +214 -0
  404. data/lib/opencode_client/models/message_output_length_error.rb +214 -0
  405. data/lib/opencode_client/models/model.rb +461 -0
  406. data/lib/opencode_client/models/model_api.rb +216 -0
  407. data/lib/opencode_client/models/model_capabilities.rb +320 -0
  408. data/lib/opencode_client/models/model_capabilities_input.rb +268 -0
  409. data/lib/opencode_client/models/model_capabilities_interleaved.rb +103 -0
  410. data/lib/opencode_client/models/model_capabilities_interleaved_any_of.rb +188 -0
  411. data/lib/opencode_client/models/model_cost.rb +225 -0
  412. data/lib/opencode_client/models/model_cost_experimental_over200_k.rb +216 -0
  413. data/lib/opencode_client/models/not_found_error.rb +214 -0
  414. data/lib/opencode_client/models/o_auth.rb +275 -0
  415. data/lib/opencode_client/models/part.rb +113 -0
  416. data/lib/opencode_client/models/part_any_of.rb +353 -0
  417. data/lib/opencode_client/models/patch_part.rb +320 -0
  418. data/lib/opencode_client/models/path.rb +268 -0
  419. data/lib/opencode_client/models/permission.rb +340 -0
  420. data/lib/opencode_client/models/permission_pattern.rb +103 -0
  421. data/lib/opencode_client/models/permission_respond_request.rb +188 -0
  422. data/lib/opencode_client/models/project.rb +277 -0
  423. data/lib/opencode_client/models/project_time.rb +199 -0
  424. data/lib/opencode_client/models/project_update_request.rb +156 -0
  425. data/lib/opencode_client/models/project_update_request_icon.rb +156 -0
  426. data/lib/opencode_client/models/provider.rb +333 -0
  427. data/lib/opencode_client/models/provider_auth_authorization.rb +240 -0
  428. data/lib/opencode_client/models/provider_auth_error.rb +214 -0
  429. data/lib/opencode_client/models/provider_auth_error_data.rb +190 -0
  430. data/lib/opencode_client/models/provider_auth_method.rb +214 -0
  431. data/lib/opencode_client/models/provider_config.rb +227 -0
  432. data/lib/opencode_client/models/provider_config_models_value.rb +329 -0
  433. data/lib/opencode_client/models/provider_config_models_value_interleaved.rb +103 -0
  434. data/lib/opencode_client/models/provider_config_models_value_interleaved_any_of.rb +188 -0
  435. data/lib/opencode_client/models/provider_config_options.rb +185 -0
  436. data/lib/opencode_client/models/provider_config_options_timeout.rb +104 -0
  437. data/lib/opencode_client/models/provider_list200_response.rb +222 -0
  438. data/lib/opencode_client/models/provider_list200_response_all_inner.rb +264 -0
  439. data/lib/opencode_client/models/provider_list200_response_all_inner_models_value.rb +482 -0
  440. data/lib/opencode_client/models/provider_list200_response_all_inner_models_value_cost.rb +217 -0
  441. data/lib/opencode_client/models/provider_list200_response_all_inner_models_value_cost_context_over200k.rb +208 -0
  442. data/lib/opencode_client/models/provider_list200_response_all_inner_models_value_interleaved.rb +103 -0
  443. data/lib/opencode_client/models/provider_list200_response_all_inner_models_value_interleaved_any_of.rb +188 -0
  444. data/lib/opencode_client/models/provider_list200_response_all_inner_models_value_limit.rb +190 -0
  445. data/lib/opencode_client/models/provider_list200_response_all_inner_models_value_modalities.rb +196 -0
  446. data/lib/opencode_client/models/provider_list200_response_all_inner_models_value_provider.rb +164 -0
  447. data/lib/opencode_client/models/provider_oauth_authorize_request.rb +165 -0
  448. data/lib/opencode_client/models/provider_oauth_callback_request.rb +175 -0
  449. data/lib/opencode_client/models/pty.rb +357 -0
  450. data/lib/opencode_client/models/pty_create_request.rb +187 -0
  451. data/lib/opencode_client/models/pty_update_request.rb +156 -0
  452. data/lib/opencode_client/models/pty_update_request_size.rb +190 -0
  453. data/lib/opencode_client/models/range.rb +190 -0
  454. data/lib/opencode_client/models/range_start.rb +190 -0
  455. data/lib/opencode_client/models/reasoning_part.rb +329 -0
  456. data/lib/opencode_client/models/retry_part.rb +344 -0
  457. data/lib/opencode_client/models/server_config.rb +188 -0
  458. data/lib/opencode_client/models/session.rb +362 -0
  459. data/lib/opencode_client/models/session_command_request.rb +238 -0
  460. data/lib/opencode_client/models/session_create_request.rb +177 -0
  461. data/lib/opencode_client/models/session_fork_request.rb +168 -0
  462. data/lib/opencode_client/models/session_init_request.rb +227 -0
  463. data/lib/opencode_client/models/session_messages200_response_inner.rb +192 -0
  464. data/lib/opencode_client/models/session_prompt200_response.rb +192 -0
  465. data/lib/opencode_client/models/session_prompt_request.rb +243 -0
  466. data/lib/opencode_client/models/session_prompt_request_model.rb +190 -0
  467. data/lib/opencode_client/models/session_prompt_request_parts_inner.rb +105 -0
  468. data/lib/opencode_client/models/session_revert.rb +191 -0
  469. data/lib/opencode_client/models/session_revert_request.rb +205 -0
  470. data/lib/opencode_client/models/session_share.rb +164 -0
  471. data/lib/opencode_client/models/session_shell_request.rb +199 -0
  472. data/lib/opencode_client/models/session_status.rb +104 -0
  473. data/lib/opencode_client/models/session_status_any_of.rb +188 -0
  474. data/lib/opencode_client/models/session_status_any_of1.rb +266 -0
  475. data/lib/opencode_client/models/session_status_any_of2.rb +188 -0
  476. data/lib/opencode_client/models/session_summarize_request.rb +201 -0
  477. data/lib/opencode_client/models/session_summary.rb +227 -0
  478. data/lib/opencode_client/models/session_time.rb +208 -0
  479. data/lib/opencode_client/models/session_update_request.rb +156 -0
  480. data/lib/opencode_client/models/session_update_request_time.rb +147 -0
  481. data/lib/opencode_client/models/snapshot_part.rb +292 -0
  482. data/lib/opencode_client/models/step_finish_part.rb +353 -0
  483. data/lib/opencode_client/models/step_start_part.rb +275 -0
  484. data/lib/opencode_client/models/subtask_part_input.rb +284 -0
  485. data/lib/opencode_client/models/symbol.rb +216 -0
  486. data/lib/opencode_client/models/symbol_location.rb +190 -0
  487. data/lib/opencode_client/models/symbol_source.rb +336 -0
  488. data/lib/opencode_client/models/text_part.rb +330 -0
  489. data/lib/opencode_client/models/text_part_input.rb +261 -0
  490. data/lib/opencode_client/models/text_part_time.rb +173 -0
  491. data/lib/opencode_client/models/todo.rb +246 -0
  492. data/lib/opencode_client/models/tool_list_item.rb +202 -0
  493. data/lib/opencode_client/models/tool_part.rb +355 -0
  494. data/lib/opencode_client/models/tool_state.rb +105 -0
  495. data/lib/opencode_client/models/tool_state_completed.rb +333 -0
  496. data/lib/opencode_client/models/tool_state_completed_time.rb +199 -0
  497. data/lib/opencode_client/models/tool_state_error.rb +279 -0
  498. data/lib/opencode_client/models/tool_state_error_time.rb +190 -0
  499. data/lib/opencode_client/models/tool_state_pending.rb +242 -0
  500. data/lib/opencode_client/models/tool_state_running.rb +262 -0
  501. data/lib/opencode_client/models/tool_state_running_time.rb +164 -0
  502. data/lib/opencode_client/models/tui_control_next200_response.rb +176 -0
  503. data/lib/opencode_client/models/tui_execute_command_request.rb +164 -0
  504. data/lib/opencode_client/models/tui_publish_request.rb +104 -0
  505. data/lib/opencode_client/models/tui_show_toast_request.rb +235 -0
  506. data/lib/opencode_client/models/unknown_error.rb +214 -0
  507. data/lib/opencode_client/models/unknown_error_data.rb +164 -0
  508. data/lib/opencode_client/models/user_message.rb +347 -0
  509. data/lib/opencode_client/models/user_message_summary.rb +184 -0
  510. data/lib/opencode_client/models/user_message_time.rb +164 -0
  511. data/lib/opencode_client/models/vcs_info.rb +164 -0
  512. data/lib/opencode_client/models/well_known_auth.rb +240 -0
  513. data/lib/opencode_client/version.rb +15 -0
  514. data/lib/opencode_client.rb +291 -0
  515. data/opencode_client.gemspec +39 -0
  516. data/pkg/opencode_client-1.0.0.gem +0 -0
  517. data/spec/api/default_api_spec.rb +1090 -0
  518. data/spec/api/session_api_spec.rb +61 -0
  519. data/spec/models/agent_config_permission_bash_spec.rb +21 -0
  520. data/spec/models/agent_config_permission_spec.rb +82 -0
  521. data/spec/models/agent_config_spec.rb +100 -0
  522. data/spec/models/agent_part_input_spec.rb +58 -0
  523. data/spec/models/agent_part_source_spec.rb +48 -0
  524. data/spec/models/agent_part_spec.rb +70 -0
  525. data/spec/models/agent_permission_spec.rb +90 -0
  526. data/spec/models/agent_spec.rb +124 -0
  527. data/spec/models/api_auth_spec.rb +46 -0
  528. data/spec/models/api_error_data_spec.rb +66 -0
  529. data/spec/models/api_error_spec.rb +46 -0
  530. data/spec/models/app_log_request_spec.rb +58 -0
  531. data/spec/models/assistant_message_error_spec.rb +21 -0
  532. data/spec/models/assistant_message_path_spec.rb +42 -0
  533. data/spec/models/assistant_message_spec.rb +124 -0
  534. data/spec/models/assistant_message_time_spec.rb +42 -0
  535. data/spec/models/assistant_message_tokens_cache_spec.rb +42 -0
  536. data/spec/models/assistant_message_tokens_spec.rb +54 -0
  537. data/spec/models/auth_spec.rb +21 -0
  538. data/spec/models/bad_request_error_spec.rb +52 -0
  539. data/spec/models/command_spec.rb +66 -0
  540. data/spec/models/compaction_part_spec.rb +64 -0
  541. data/spec/models/config_agent_spec.rb +72 -0
  542. data/spec/models/config_autoupdate_spec.rb +21 -0
  543. data/spec/models/config_command_value_spec.rb +60 -0
  544. data/spec/models/config_compaction_spec.rb +42 -0
  545. data/spec/models/config_enterprise_spec.rb +36 -0
  546. data/spec/models/config_experimental_hook_file_edited_value_inner_spec.rb +42 -0
  547. data/spec/models/config_experimental_hook_spec.rb +42 -0
  548. data/spec/models/config_experimental_spec.rb +72 -0
  549. data/spec/models/config_formatter_any_of_value_spec.rb +54 -0
  550. data/spec/models/config_formatter_spec.rb +21 -0
  551. data/spec/models/config_lsp_any_of_value_any_of1_spec.rb +60 -0
  552. data/spec/models/config_lsp_any_of_value_any_of_spec.rb +40 -0
  553. data/spec/models/config_lsp_any_of_value_spec.rb +21 -0
  554. data/spec/models/config_lsp_spec.rb +21 -0
  555. data/spec/models/config_mode_spec.rb +42 -0
  556. data/spec/models/config_providers200_response_spec.rb +42 -0
  557. data/spec/models/config_spec.rb +232 -0
  558. data/spec/models/config_tui_scroll_acceleration_spec.rb +36 -0
  559. data/spec/models/config_tui_spec.rb +52 -0
  560. data/spec/models/config_watcher_spec.rb +36 -0
  561. data/spec/models/event_command_executed_properties_spec.rb +54 -0
  562. data/spec/models/event_command_executed_spec.rb +46 -0
  563. data/spec/models/event_file_edited_properties_spec.rb +36 -0
  564. data/spec/models/event_file_edited_spec.rb +46 -0
  565. data/spec/models/event_file_watcher_updated_properties_spec.rb +46 -0
  566. data/spec/models/event_file_watcher_updated_spec.rb +46 -0
  567. data/spec/models/event_global_disposed_spec.rb +46 -0
  568. data/spec/models/event_installation_update_available_spec.rb +46 -0
  569. data/spec/models/event_installation_updated_properties_spec.rb +36 -0
  570. data/spec/models/event_installation_updated_spec.rb +46 -0
  571. data/spec/models/event_lsp_client_diagnostics_properties_spec.rb +42 -0
  572. data/spec/models/event_lsp_client_diagnostics_spec.rb +46 -0
  573. data/spec/models/event_lsp_updated_spec.rb +46 -0
  574. data/spec/models/event_mcp_tools_changed_properties_spec.rb +36 -0
  575. data/spec/models/event_mcp_tools_changed_spec.rb +46 -0
  576. data/spec/models/event_message_part_removed_properties_spec.rb +48 -0
  577. data/spec/models/event_message_part_removed_spec.rb +46 -0
  578. data/spec/models/event_message_part_updated_properties_spec.rb +42 -0
  579. data/spec/models/event_message_part_updated_spec.rb +46 -0
  580. data/spec/models/event_message_removed_properties_spec.rb +42 -0
  581. data/spec/models/event_message_removed_spec.rb +46 -0
  582. data/spec/models/event_message_updated_properties_spec.rb +36 -0
  583. data/spec/models/event_message_updated_spec.rb +46 -0
  584. data/spec/models/event_permission_replied_properties_spec.rb +48 -0
  585. data/spec/models/event_permission_replied_spec.rb +46 -0
  586. data/spec/models/event_permission_updated_spec.rb +46 -0
  587. data/spec/models/event_project_updated_spec.rb +46 -0
  588. data/spec/models/event_pty_created_properties_spec.rb +36 -0
  589. data/spec/models/event_pty_created_spec.rb +46 -0
  590. data/spec/models/event_pty_deleted_properties_spec.rb +36 -0
  591. data/spec/models/event_pty_deleted_spec.rb +46 -0
  592. data/spec/models/event_pty_exited_properties_spec.rb +42 -0
  593. data/spec/models/event_pty_exited_spec.rb +46 -0
  594. data/spec/models/event_pty_updated_spec.rb +46 -0
  595. data/spec/models/event_server_connected_spec.rb +46 -0
  596. data/spec/models/event_server_instance_disposed_properties_spec.rb +36 -0
  597. data/spec/models/event_server_instance_disposed_spec.rb +46 -0
  598. data/spec/models/event_session_compacted_spec.rb +46 -0
  599. data/spec/models/event_session_created_properties_spec.rb +36 -0
  600. data/spec/models/event_session_created_spec.rb +46 -0
  601. data/spec/models/event_session_deleted_spec.rb +46 -0
  602. data/spec/models/event_session_diff_properties_spec.rb +42 -0
  603. data/spec/models/event_session_diff_spec.rb +46 -0
  604. data/spec/models/event_session_error_properties_spec.rb +42 -0
  605. data/spec/models/event_session_error_spec.rb +46 -0
  606. data/spec/models/event_session_idle_properties_spec.rb +36 -0
  607. data/spec/models/event_session_idle_spec.rb +46 -0
  608. data/spec/models/event_session_status_properties_spec.rb +42 -0
  609. data/spec/models/event_session_status_spec.rb +46 -0
  610. data/spec/models/event_session_updated_spec.rb +46 -0
  611. data/spec/models/event_spec.rb +21 -0
  612. data/spec/models/event_todo_updated_properties_spec.rb +42 -0
  613. data/spec/models/event_todo_updated_spec.rb +46 -0
  614. data/spec/models/event_tui_command_execute_properties_command_spec.rb +21 -0
  615. data/spec/models/event_tui_command_execute_properties_spec.rb +36 -0
  616. data/spec/models/event_tui_command_execute_spec.rb +46 -0
  617. data/spec/models/event_tui_prompt_append_spec.rb +46 -0
  618. data/spec/models/event_tui_toast_show_spec.rb +46 -0
  619. data/spec/models/event_vcs_branch_updated_properties_spec.rb +36 -0
  620. data/spec/models/event_vcs_branch_updated_spec.rb +46 -0
  621. data/spec/models/file_content_patch_hunks_inner_spec.rb +60 -0
  622. data/spec/models/file_content_patch_spec.rb +66 -0
  623. data/spec/models/file_content_spec.rb +74 -0
  624. data/spec/models/file_diff_spec.rb +60 -0
  625. data/spec/models/file_node_spec.rb +64 -0
  626. data/spec/models/file_part_input_spec.rb +70 -0
  627. data/spec/models/file_part_source_spec.rb +21 -0
  628. data/spec/models/file_part_source_text_spec.rb +48 -0
  629. data/spec/models/file_part_spec.rb +82 -0
  630. data/spec/models/file_source_spec.rb +52 -0
  631. data/spec/models/file_spec.rb +58 -0
  632. data/spec/models/find_text200_response_inner_path_spec.rb +36 -0
  633. data/spec/models/find_text200_response_inner_spec.rb +60 -0
  634. data/spec/models/find_text200_response_inner_submatches_inner_spec.rb +48 -0
  635. data/spec/models/formatter_status_spec.rb +48 -0
  636. data/spec/models/global_event_spec.rb +42 -0
  637. data/spec/models/global_health200_response_spec.rb +46 -0
  638. data/spec/models/keybinds_config_spec.rb +546 -0
  639. data/spec/models/layout_config_spec.rb +30 -0
  640. data/spec/models/log_level_spec.rb +30 -0
  641. data/spec/models/lsp_status_spec.rb +58 -0
  642. data/spec/models/mcp_add_request_config_spec.rb +21 -0
  643. data/spec/models/mcp_add_request_spec.rb +42 -0
  644. data/spec/models/mcp_auth_callback_request_spec.rb +36 -0
  645. data/spec/models/mcp_auth_remove200_response_spec.rb +40 -0
  646. data/spec/models/mcp_auth_start200_response_spec.rb +36 -0
  647. data/spec/models/mcp_local_config_spec.rb +64 -0
  648. data/spec/models/mcp_o_auth_config_spec.rb +48 -0
  649. data/spec/models/mcp_remote_config_oauth_spec.rb +21 -0
  650. data/spec/models/mcp_remote_config_spec.rb +70 -0
  651. data/spec/models/mcp_status_connected_spec.rb +40 -0
  652. data/spec/models/mcp_status_disabled_spec.rb +40 -0
  653. data/spec/models/mcp_status_failed_spec.rb +46 -0
  654. data/spec/models/mcp_status_needs_auth_spec.rb +40 -0
  655. data/spec/models/mcp_status_needs_client_registration_spec.rb +46 -0
  656. data/spec/models/mcp_status_spec.rb +21 -0
  657. data/spec/models/message_aborted_error_spec.rb +46 -0
  658. data/spec/models/message_output_length_error_spec.rb +46 -0
  659. data/spec/models/message_spec.rb +21 -0
  660. data/spec/models/model_api_spec.rb +48 -0
  661. data/spec/models/model_capabilities_input_spec.rb +60 -0
  662. data/spec/models/model_capabilities_interleaved_any_of_spec.rb +40 -0
  663. data/spec/models/model_capabilities_interleaved_spec.rb +21 -0
  664. data/spec/models/model_capabilities_spec.rb +72 -0
  665. data/spec/models/model_cost_experimental_over200_k_spec.rb +48 -0
  666. data/spec/models/model_cost_spec.rb +54 -0
  667. data/spec/models/model_spec.rb +106 -0
  668. data/spec/models/not_found_error_spec.rb +46 -0
  669. data/spec/models/o_auth_spec.rb +64 -0
  670. data/spec/models/part_any_of_spec.rb +82 -0
  671. data/spec/models/part_spec.rb +21 -0
  672. data/spec/models/patch_part_spec.rb +70 -0
  673. data/spec/models/path_spec.rb +60 -0
  674. data/spec/models/permission_pattern_spec.rb +21 -0
  675. data/spec/models/permission_respond_request_spec.rb +40 -0
  676. data/spec/models/permission_spec.rb +84 -0
  677. data/spec/models/project_spec.rb +70 -0
  678. data/spec/models/project_time_spec.rb +48 -0
  679. data/spec/models/project_update_request_icon_spec.rb +42 -0
  680. data/spec/models/project_update_request_spec.rb +42 -0
  681. data/spec/models/provider_auth_authorization_spec.rb +52 -0
  682. data/spec/models/provider_auth_error_data_spec.rb +42 -0
  683. data/spec/models/provider_auth_error_spec.rb +46 -0
  684. data/spec/models/provider_auth_method_spec.rb +46 -0
  685. data/spec/models/provider_config_models_value_interleaved_any_of_spec.rb +40 -0
  686. data/spec/models/provider_config_models_value_interleaved_spec.rb +21 -0
  687. data/spec/models/provider_config_models_value_spec.rb +136 -0
  688. data/spec/models/provider_config_options_spec.rb +60 -0
  689. data/spec/models/provider_config_options_timeout_spec.rb +21 -0
  690. data/spec/models/provider_config_spec.rb +84 -0
  691. data/spec/models/provider_list200_response_all_inner_models_value_cost_context_over200k_spec.rb +54 -0
  692. data/spec/models/provider_list200_response_all_inner_models_value_cost_spec.rb +60 -0
  693. data/spec/models/provider_list200_response_all_inner_models_value_interleaved_any_of_spec.rb +40 -0
  694. data/spec/models/provider_list200_response_all_inner_models_value_interleaved_spec.rb +21 -0
  695. data/spec/models/provider_list200_response_all_inner_models_value_limit_spec.rb +42 -0
  696. data/spec/models/provider_list200_response_all_inner_models_value_modalities_spec.rb +50 -0
  697. data/spec/models/provider_list200_response_all_inner_models_value_provider_spec.rb +36 -0
  698. data/spec/models/provider_list200_response_all_inner_models_value_spec.rb +136 -0
  699. data/spec/models/provider_list200_response_all_inner_spec.rb +66 -0
  700. data/spec/models/provider_list200_response_spec.rb +48 -0
  701. data/spec/models/provider_oauth_authorize_request_spec.rb +36 -0
  702. data/spec/models/provider_oauth_callback_request_spec.rb +42 -0
  703. data/spec/models/provider_spec.rb +76 -0
  704. data/spec/models/pty_create_request_spec.rb +60 -0
  705. data/spec/models/pty_spec.rb +76 -0
  706. data/spec/models/pty_update_request_size_spec.rb +42 -0
  707. data/spec/models/pty_update_request_spec.rb +42 -0
  708. data/spec/models/range_spec.rb +42 -0
  709. data/spec/models/range_start_spec.rb +42 -0
  710. data/spec/models/reasoning_part_spec.rb +76 -0
  711. data/spec/models/retry_part_spec.rb +76 -0
  712. data/spec/models/server_config_spec.rb +48 -0
  713. data/spec/models/session_command_request_spec.rb +60 -0
  714. data/spec/models/session_create_request_spec.rb +42 -0
  715. data/spec/models/session_fork_request_spec.rb +36 -0
  716. data/spec/models/session_init_request_spec.rb +48 -0
  717. data/spec/models/session_messages200_response_inner_spec.rb +42 -0
  718. data/spec/models/session_prompt200_response_spec.rb +42 -0
  719. data/spec/models/session_prompt_request_model_spec.rb +42 -0
  720. data/spec/models/session_prompt_request_parts_inner_spec.rb +21 -0
  721. data/spec/models/session_prompt_request_spec.rb +72 -0
  722. data/spec/models/session_revert_request_spec.rb +42 -0
  723. data/spec/models/session_revert_spec.rb +54 -0
  724. data/spec/models/session_share_spec.rb +36 -0
  725. data/spec/models/session_shell_request_spec.rb +48 -0
  726. data/spec/models/session_spec.rb +90 -0
  727. data/spec/models/session_status_any_of1_spec.rb +58 -0
  728. data/spec/models/session_status_any_of2_spec.rb +40 -0
  729. data/spec/models/session_status_any_of_spec.rb +40 -0
  730. data/spec/models/session_status_spec.rb +21 -0
  731. data/spec/models/session_summarize_request_spec.rb +48 -0
  732. data/spec/models/session_summary_spec.rb +54 -0
  733. data/spec/models/session_time_spec.rb +54 -0
  734. data/spec/models/session_update_request_spec.rb +42 -0
  735. data/spec/models/session_update_request_time_spec.rb +36 -0
  736. data/spec/models/snapshot_part_spec.rb +64 -0
  737. data/spec/models/step_finish_part_spec.rb +82 -0
  738. data/spec/models/step_start_part_spec.rb +64 -0
  739. data/spec/models/subtask_part_input_spec.rb +70 -0
  740. data/spec/models/symbol_location_spec.rb +42 -0
  741. data/spec/models/symbol_source_spec.rb +70 -0
  742. data/spec/models/symbol_spec.rb +48 -0
  743. data/spec/models/text_part_input_spec.rb +76 -0
  744. data/spec/models/text_part_spec.rb +88 -0
  745. data/spec/models/text_part_time_spec.rb +42 -0
  746. data/spec/models/todo_spec.rb +54 -0
  747. data/spec/models/tool_list_item_spec.rb +48 -0
  748. data/spec/models/tool_part_spec.rb +82 -0
  749. data/spec/models/tool_state_completed_spec.rb +76 -0
  750. data/spec/models/tool_state_completed_time_spec.rb +48 -0
  751. data/spec/models/tool_state_error_spec.rb +64 -0
  752. data/spec/models/tool_state_error_time_spec.rb +42 -0
  753. data/spec/models/tool_state_pending_spec.rb +52 -0
  754. data/spec/models/tool_state_running_spec.rb +64 -0
  755. data/spec/models/tool_state_running_time_spec.rb +36 -0
  756. data/spec/models/tool_state_spec.rb +21 -0
  757. data/spec/models/tui_control_next200_response_spec.rb +42 -0
  758. data/spec/models/tui_execute_command_request_spec.rb +36 -0
  759. data/spec/models/tui_publish_request_spec.rb +21 -0
  760. data/spec/models/tui_show_toast_request_spec.rb +58 -0
  761. data/spec/models/unknown_error_data_spec.rb +36 -0
  762. data/spec/models/unknown_error_spec.rb +46 -0
  763. data/spec/models/user_message_spec.rb +88 -0
  764. data/spec/models/user_message_summary_spec.rb +48 -0
  765. data/spec/models/user_message_time_spec.rb +36 -0
  766. data/spec/models/vcs_info_spec.rb +36 -0
  767. data/spec/models/well_known_auth_spec.rb +52 -0
  768. data/spec/spec_helper.rb +111 -0
  769. metadata +1099 -0
@@ -0,0 +1,1090 @@
1
+ =begin
2
+ #opencode
3
+
4
+ #opencode api
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.18.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for OpencodeClient::DefaultApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DefaultApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OpencodeClient::DefaultApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DefaultApi' do
30
+ it 'should create an instance of DefaultApi' do
31
+ expect(@api_instance).to be_instance_of(OpencodeClient::DefaultApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for app_agents
36
+ # List agents
37
+ # Get a list of all available AI agents in the OpenCode system.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :directory
40
+ # @return [Array<Agent>]
41
+ describe 'app_agents test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for app_log
48
+ # Write log
49
+ # Write a log entry to the server logs with specified level and metadata.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :directory
52
+ # @option opts [AppLogRequest] :app_log_request
53
+ # @return [Boolean]
54
+ describe 'app_log test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ # unit tests for auth_set
61
+ # Set auth credentials
62
+ # Set authentication credentials
63
+ # @param provider_id
64
+ # @param [Hash] opts the optional parameters
65
+ # @option opts [String] :directory
66
+ # @option opts [Auth] :auth
67
+ # @return [Boolean]
68
+ describe 'auth_set test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
71
+ end
72
+ end
73
+
74
+ # unit tests for command_list
75
+ # List commands
76
+ # Get a list of all available commands in the OpenCode system.
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [String] :directory
79
+ # @return [Array<Command>]
80
+ describe 'command_list test' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
83
+ end
84
+ end
85
+
86
+ # unit tests for config_get
87
+ # Get configuration
88
+ # Retrieve the current OpenCode configuration settings and preferences.
89
+ # @param [Hash] opts the optional parameters
90
+ # @option opts [String] :directory
91
+ # @return [Config]
92
+ describe 'config_get test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
95
+ end
96
+ end
97
+
98
+ # unit tests for config_providers
99
+ # List config providers
100
+ # Get a list of all configured AI providers and their default models.
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :directory
103
+ # @return [ConfigProviders200Response]
104
+ describe 'config_providers test' do
105
+ it 'should work' do
106
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
107
+ end
108
+ end
109
+
110
+ # unit tests for config_update
111
+ # Update configuration
112
+ # Update OpenCode configuration settings and preferences.
113
+ # @param [Hash] opts the optional parameters
114
+ # @option opts [String] :directory
115
+ # @option opts [Config] :config
116
+ # @return [Config]
117
+ describe 'config_update test' do
118
+ it 'should work' do
119
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
120
+ end
121
+ end
122
+
123
+ # unit tests for event_subscribe
124
+ # Subscribe to events
125
+ # Get events
126
+ # @param [Hash] opts the optional parameters
127
+ # @option opts [String] :directory
128
+ # @return [Event]
129
+ describe 'event_subscribe test' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
132
+ end
133
+ end
134
+
135
+ # unit tests for file_list
136
+ # List files
137
+ # List files and directories in a specified path.
138
+ # @param path
139
+ # @param [Hash] opts the optional parameters
140
+ # @option opts [String] :directory
141
+ # @return [Array<FileNode>]
142
+ describe 'file_list test' do
143
+ it 'should work' do
144
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
145
+ end
146
+ end
147
+
148
+ # unit tests for file_read
149
+ # Read file
150
+ # Read the content of a specified file.
151
+ # @param path
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [String] :directory
154
+ # @return [FileContent]
155
+ describe 'file_read test' do
156
+ it 'should work' do
157
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
158
+ end
159
+ end
160
+
161
+ # unit tests for file_status
162
+ # Get file status
163
+ # Get the git status of all files in the project.
164
+ # @param [Hash] opts the optional parameters
165
+ # @option opts [String] :directory
166
+ # @return [Array<File>]
167
+ describe 'file_status test' do
168
+ it 'should work' do
169
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
170
+ end
171
+ end
172
+
173
+ # unit tests for find_files
174
+ # Find files
175
+ # Search for files by name or pattern in the project directory.
176
+ # @param query
177
+ # @param [Hash] opts the optional parameters
178
+ # @option opts [String] :directory
179
+ # @option opts [String] :dirs
180
+ # @return [Array<String>]
181
+ describe 'find_files test' do
182
+ it 'should work' do
183
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
184
+ end
185
+ end
186
+
187
+ # unit tests for find_symbols
188
+ # Find symbols
189
+ # Search for workspace symbols like functions, classes, and variables using LSP.
190
+ # @param query
191
+ # @param [Hash] opts the optional parameters
192
+ # @option opts [String] :directory
193
+ # @return [Array<Symbol>]
194
+ describe 'find_symbols test' do
195
+ it 'should work' do
196
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
197
+ end
198
+ end
199
+
200
+ # unit tests for find_text
201
+ # Find text
202
+ # Search for text patterns across files in the project using ripgrep.
203
+ # @param pattern
204
+ # @param [Hash] opts the optional parameters
205
+ # @option opts [String] :directory
206
+ # @return [Array<FindText200ResponseInner>]
207
+ describe 'find_text test' do
208
+ it 'should work' do
209
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
210
+ end
211
+ end
212
+
213
+ # unit tests for formatter_status
214
+ # Get formatter status
215
+ # Get formatter status
216
+ # @param [Hash] opts the optional parameters
217
+ # @option opts [String] :directory
218
+ # @return [Array<FormatterStatus>]
219
+ describe 'formatter_status test' do
220
+ it 'should work' do
221
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
222
+ end
223
+ end
224
+
225
+ # unit tests for global_dispose
226
+ # Dispose instance
227
+ # Clean up and dispose all OpenCode instances, releasing all resources.
228
+ # @param [Hash] opts the optional parameters
229
+ # @return [Boolean]
230
+ describe 'global_dispose test' do
231
+ it 'should work' do
232
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
233
+ end
234
+ end
235
+
236
+ # unit tests for global_event
237
+ # Get global events
238
+ # Subscribe to global events from the OpenCode system using server-sent events.
239
+ # @param [Hash] opts the optional parameters
240
+ # @return [GlobalEvent]
241
+ describe 'global_event test' do
242
+ it 'should work' do
243
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
244
+ end
245
+ end
246
+
247
+ # unit tests for global_health
248
+ # Get health
249
+ # Get health information about the OpenCode server.
250
+ # @param [Hash] opts the optional parameters
251
+ # @return [GlobalHealth200Response]
252
+ describe 'global_health test' do
253
+ it 'should work' do
254
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
255
+ end
256
+ end
257
+
258
+ # unit tests for instance_dispose
259
+ # Dispose instance
260
+ # Clean up and dispose the current OpenCode instance, releasing all resources.
261
+ # @param [Hash] opts the optional parameters
262
+ # @option opts [String] :directory
263
+ # @return [Boolean]
264
+ describe 'instance_dispose test' do
265
+ it 'should work' do
266
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
267
+ end
268
+ end
269
+
270
+ # unit tests for lsp_status
271
+ # Get LSP status
272
+ # Get LSP server status
273
+ # @param [Hash] opts the optional parameters
274
+ # @option opts [String] :directory
275
+ # @return [Array<LSPStatus>]
276
+ describe 'lsp_status test' do
277
+ it 'should work' do
278
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
279
+ end
280
+ end
281
+
282
+ # unit tests for mcp_add
283
+ # Add MCP server
284
+ # Dynamically add a new Model Context Protocol (MCP) server to the system.
285
+ # @param [Hash] opts the optional parameters
286
+ # @option opts [String] :directory
287
+ # @option opts [McpAddRequest] :mcp_add_request
288
+ # @return [Hash<String, MCPStatus>]
289
+ describe 'mcp_add test' do
290
+ it 'should work' do
291
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
292
+ end
293
+ end
294
+
295
+ # unit tests for mcp_auth_authenticate
296
+ # Authenticate MCP OAuth
297
+ # Start OAuth flow and wait for callback (opens browser)
298
+ # @param name
299
+ # @param [Hash] opts the optional parameters
300
+ # @option opts [String] :directory
301
+ # @return [MCPStatus]
302
+ describe 'mcp_auth_authenticate test' do
303
+ it 'should work' do
304
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
305
+ end
306
+ end
307
+
308
+ # unit tests for mcp_auth_callback
309
+ # Complete MCP OAuth
310
+ # Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
311
+ # @param name
312
+ # @param [Hash] opts the optional parameters
313
+ # @option opts [String] :directory
314
+ # @option opts [McpAuthCallbackRequest] :mcp_auth_callback_request
315
+ # @return [MCPStatus]
316
+ describe 'mcp_auth_callback test' do
317
+ it 'should work' do
318
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
319
+ end
320
+ end
321
+
322
+ # unit tests for mcp_auth_remove
323
+ # Remove MCP OAuth
324
+ # Remove OAuth credentials for an MCP server
325
+ # @param name
326
+ # @param [Hash] opts the optional parameters
327
+ # @option opts [String] :directory
328
+ # @return [McpAuthRemove200Response]
329
+ describe 'mcp_auth_remove test' do
330
+ it 'should work' do
331
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
332
+ end
333
+ end
334
+
335
+ # unit tests for mcp_auth_start
336
+ # Start MCP OAuth
337
+ # Start OAuth authentication flow for a Model Context Protocol (MCP) server.
338
+ # @param name
339
+ # @param [Hash] opts the optional parameters
340
+ # @option opts [String] :directory
341
+ # @return [McpAuthStart200Response]
342
+ describe 'mcp_auth_start test' do
343
+ it 'should work' do
344
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
345
+ end
346
+ end
347
+
348
+ # unit tests for mcp_connect
349
+ # Connect an MCP server
350
+ # @param name
351
+ # @param [Hash] opts the optional parameters
352
+ # @option opts [String] :directory
353
+ # @return [Boolean]
354
+ describe 'mcp_connect test' do
355
+ it 'should work' do
356
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
357
+ end
358
+ end
359
+
360
+ # unit tests for mcp_disconnect
361
+ # Disconnect an MCP server
362
+ # @param name
363
+ # @param [Hash] opts the optional parameters
364
+ # @option opts [String] :directory
365
+ # @return [Boolean]
366
+ describe 'mcp_disconnect test' do
367
+ it 'should work' do
368
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
369
+ end
370
+ end
371
+
372
+ # unit tests for mcp_status
373
+ # Get MCP status
374
+ # Get the status of all Model Context Protocol (MCP) servers.
375
+ # @param [Hash] opts the optional parameters
376
+ # @option opts [String] :directory
377
+ # @return [Hash<String, MCPStatus>]
378
+ describe 'mcp_status test' do
379
+ it 'should work' do
380
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
381
+ end
382
+ end
383
+
384
+ # unit tests for part_delete
385
+ # Delete a part from a message
386
+ # @param session_id Session ID
387
+ # @param message_id Message ID
388
+ # @param part_id Part ID
389
+ # @param [Hash] opts the optional parameters
390
+ # @option opts [String] :directory
391
+ # @return [Boolean]
392
+ describe 'part_delete test' do
393
+ it 'should work' do
394
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
395
+ end
396
+ end
397
+
398
+ # unit tests for part_update
399
+ # Update a part in a message
400
+ # @param session_id Session ID
401
+ # @param message_id Message ID
402
+ # @param part_id Part ID
403
+ # @param [Hash] opts the optional parameters
404
+ # @option opts [String] :directory
405
+ # @option opts [Part] :part
406
+ # @return [Part]
407
+ describe 'part_update test' do
408
+ it 'should work' do
409
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
410
+ end
411
+ end
412
+
413
+ # unit tests for path_get
414
+ # Get paths
415
+ # Retrieve the current working directory and related path information for the OpenCode instance.
416
+ # @param [Hash] opts the optional parameters
417
+ # @option opts [String] :directory
418
+ # @return [Path]
419
+ describe 'path_get test' do
420
+ it 'should work' do
421
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
422
+ end
423
+ end
424
+
425
+ # unit tests for permission_list
426
+ # List pending permissions
427
+ # Get all pending permission requests across all sessions.
428
+ # @param [Hash] opts the optional parameters
429
+ # @option opts [String] :directory
430
+ # @return [Array<Permission>]
431
+ describe 'permission_list test' do
432
+ it 'should work' do
433
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
434
+ end
435
+ end
436
+
437
+ # unit tests for permission_respond
438
+ # Respond to permission
439
+ # Approve or deny a permission request from the AI assistant.
440
+ # @param session_id
441
+ # @param permission_id
442
+ # @param [Hash] opts the optional parameters
443
+ # @option opts [String] :directory
444
+ # @option opts [PermissionRespondRequest] :permission_respond_request
445
+ # @return [Boolean]
446
+ describe 'permission_respond test' do
447
+ it 'should work' do
448
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
449
+ end
450
+ end
451
+
452
+ # unit tests for project_current
453
+ # Get current project
454
+ # Retrieve the currently active project that OpenCode is working with.
455
+ # @param [Hash] opts the optional parameters
456
+ # @option opts [String] :directory
457
+ # @return [Project]
458
+ describe 'project_current test' do
459
+ it 'should work' do
460
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
461
+ end
462
+ end
463
+
464
+ # unit tests for project_list
465
+ # List all projects
466
+ # Get a list of projects that have been opened with OpenCode.
467
+ # @param [Hash] opts the optional parameters
468
+ # @option opts [String] :directory
469
+ # @return [Array<Project>]
470
+ describe 'project_list test' do
471
+ it 'should work' do
472
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
473
+ end
474
+ end
475
+
476
+ # unit tests for project_update
477
+ # Update project
478
+ # Update project properties such as name, icon and color.
479
+ # @param project_id
480
+ # @param [Hash] opts the optional parameters
481
+ # @option opts [String] :directory
482
+ # @option opts [ProjectUpdateRequest] :project_update_request
483
+ # @return [Project]
484
+ describe 'project_update test' do
485
+ it 'should work' do
486
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
487
+ end
488
+ end
489
+
490
+ # unit tests for provider_auth
491
+ # Get provider auth methods
492
+ # Retrieve available authentication methods for all AI providers.
493
+ # @param [Hash] opts the optional parameters
494
+ # @option opts [String] :directory
495
+ # @return [Hash<String, Array<ProviderAuthMethod>>]
496
+ describe 'provider_auth test' do
497
+ it 'should work' do
498
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
499
+ end
500
+ end
501
+
502
+ # unit tests for provider_list
503
+ # List providers
504
+ # Get a list of all available AI providers, including both available and connected ones.
505
+ # @param [Hash] opts the optional parameters
506
+ # @option opts [String] :directory
507
+ # @return [ProviderList200Response]
508
+ describe 'provider_list test' do
509
+ it 'should work' do
510
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
511
+ end
512
+ end
513
+
514
+ # unit tests for provider_oauth_authorize
515
+ # OAuth authorize
516
+ # Initiate OAuth authorization for a specific AI provider to get an authorization URL.
517
+ # @param provider_id Provider ID
518
+ # @param [Hash] opts the optional parameters
519
+ # @option opts [String] :directory
520
+ # @option opts [ProviderOauthAuthorizeRequest] :provider_oauth_authorize_request
521
+ # @return [ProviderAuthAuthorization]
522
+ describe 'provider_oauth_authorize test' do
523
+ it 'should work' do
524
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
525
+ end
526
+ end
527
+
528
+ # unit tests for provider_oauth_callback
529
+ # OAuth callback
530
+ # Handle the OAuth callback from a provider after user authorization.
531
+ # @param provider_id Provider ID
532
+ # @param [Hash] opts the optional parameters
533
+ # @option opts [String] :directory
534
+ # @option opts [ProviderOauthCallbackRequest] :provider_oauth_callback_request
535
+ # @return [Boolean]
536
+ describe 'provider_oauth_callback test' do
537
+ it 'should work' do
538
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
539
+ end
540
+ end
541
+
542
+ # unit tests for pty_connect
543
+ # Connect to PTY session
544
+ # Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
545
+ # @param pty_id
546
+ # @param [Hash] opts the optional parameters
547
+ # @option opts [String] :directory
548
+ # @return [Boolean]
549
+ describe 'pty_connect test' do
550
+ it 'should work' do
551
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
552
+ end
553
+ end
554
+
555
+ # unit tests for pty_create
556
+ # Create PTY session
557
+ # Create a new pseudo-terminal (PTY) session for running shell commands and processes.
558
+ # @param [Hash] opts the optional parameters
559
+ # @option opts [String] :directory
560
+ # @option opts [PtyCreateRequest] :pty_create_request
561
+ # @return [Pty]
562
+ describe 'pty_create test' do
563
+ it 'should work' do
564
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
565
+ end
566
+ end
567
+
568
+ # unit tests for pty_get
569
+ # Get PTY session
570
+ # Retrieve detailed information about a specific pseudo-terminal (PTY) session.
571
+ # @param pty_id
572
+ # @param [Hash] opts the optional parameters
573
+ # @option opts [String] :directory
574
+ # @return [Pty]
575
+ describe 'pty_get test' do
576
+ it 'should work' do
577
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
578
+ end
579
+ end
580
+
581
+ # unit tests for pty_list
582
+ # List PTY sessions
583
+ # Get a list of all active pseudo-terminal (PTY) sessions managed by OpenCode.
584
+ # @param [Hash] opts the optional parameters
585
+ # @option opts [String] :directory
586
+ # @return [Array<Pty>]
587
+ describe 'pty_list test' do
588
+ it 'should work' do
589
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
590
+ end
591
+ end
592
+
593
+ # unit tests for pty_remove
594
+ # Remove PTY session
595
+ # Remove and terminate a specific pseudo-terminal (PTY) session.
596
+ # @param pty_id
597
+ # @param [Hash] opts the optional parameters
598
+ # @option opts [String] :directory
599
+ # @return [Boolean]
600
+ describe 'pty_remove test' do
601
+ it 'should work' do
602
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
603
+ end
604
+ end
605
+
606
+ # unit tests for pty_update
607
+ # Update PTY session
608
+ # Update properties of an existing pseudo-terminal (PTY) session.
609
+ # @param pty_id
610
+ # @param [Hash] opts the optional parameters
611
+ # @option opts [String] :directory
612
+ # @option opts [PtyUpdateRequest] :pty_update_request
613
+ # @return [Pty]
614
+ describe 'pty_update test' do
615
+ it 'should work' do
616
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
617
+ end
618
+ end
619
+
620
+ # unit tests for session_abort
621
+ # Abort session
622
+ # Abort an active session and stop any ongoing AI processing or command execution.
623
+ # @param session_id
624
+ # @param [Hash] opts the optional parameters
625
+ # @option opts [String] :directory
626
+ # @return [Boolean]
627
+ describe 'session_abort test' do
628
+ it 'should work' do
629
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
630
+ end
631
+ end
632
+
633
+ # unit tests for session_command
634
+ # Send command
635
+ # Send a new command to a session for execution by the AI assistant.
636
+ # @param session_id Session ID
637
+ # @param [Hash] opts the optional parameters
638
+ # @option opts [String] :directory
639
+ # @option opts [SessionCommandRequest] :session_command_request
640
+ # @return [SessionPrompt200Response]
641
+ describe 'session_command test' do
642
+ it 'should work' do
643
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
644
+ end
645
+ end
646
+
647
+ # unit tests for session_create
648
+ # Create session
649
+ # Create a new OpenCode session for interacting with AI assistants and managing conversations.
650
+ # @param [Hash] opts the optional parameters
651
+ # @option opts [String] :directory
652
+ # @option opts [SessionCreateRequest] :session_create_request
653
+ # @return [Session]
654
+ describe 'session_create test' do
655
+ it 'should work' do
656
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
657
+ end
658
+ end
659
+
660
+ # unit tests for session_delete
661
+ # Delete session
662
+ # Delete a session and permanently remove all associated data, including messages and history.
663
+ # @param session_id
664
+ # @param [Hash] opts the optional parameters
665
+ # @option opts [String] :directory
666
+ # @return [Boolean]
667
+ describe 'session_delete test' do
668
+ it 'should work' do
669
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
670
+ end
671
+ end
672
+
673
+ # unit tests for session_diff
674
+ # Get session diff
675
+ # Get all file changes (diffs) made during this session.
676
+ # @param session_id Session ID
677
+ # @param [Hash] opts the optional parameters
678
+ # @option opts [String] :directory
679
+ # @option opts [String] :message_id
680
+ # @return [Array<FileDiff>]
681
+ describe 'session_diff test' do
682
+ it 'should work' do
683
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
684
+ end
685
+ end
686
+
687
+ # unit tests for session_fork
688
+ # Fork session
689
+ # Create a new session by forking an existing session at a specific message point.
690
+ # @param session_id
691
+ # @param [Hash] opts the optional parameters
692
+ # @option opts [String] :directory
693
+ # @option opts [SessionForkRequest] :session_fork_request
694
+ # @return [Session]
695
+ describe 'session_fork test' do
696
+ it 'should work' do
697
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
698
+ end
699
+ end
700
+
701
+ # unit tests for session_init
702
+ # Initialize session
703
+ # Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
704
+ # @param session_id Session ID
705
+ # @param [Hash] opts the optional parameters
706
+ # @option opts [String] :directory
707
+ # @option opts [SessionInitRequest] :session_init_request
708
+ # @return [Boolean]
709
+ describe 'session_init test' do
710
+ it 'should work' do
711
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
712
+ end
713
+ end
714
+
715
+ # unit tests for session_list
716
+ # List sessions
717
+ # Get a list of all OpenCode sessions, sorted by most recently updated.
718
+ # @param [Hash] opts the optional parameters
719
+ # @option opts [String] :directory
720
+ # @return [Array<Session>]
721
+ describe 'session_list test' do
722
+ it 'should work' do
723
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
724
+ end
725
+ end
726
+
727
+ # unit tests for session_message
728
+ # Get message
729
+ # Retrieve a specific message from a session by its message ID.
730
+ # @param session_id Session ID
731
+ # @param message_id Message ID
732
+ # @param [Hash] opts the optional parameters
733
+ # @option opts [String] :directory
734
+ # @return [SessionMessages200ResponseInner]
735
+ describe 'session_message test' do
736
+ it 'should work' do
737
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
738
+ end
739
+ end
740
+
741
+ # unit tests for session_messages
742
+ # Get session messages
743
+ # Retrieve all messages in a session, including user prompts and AI responses.
744
+ # @param session_id Session ID
745
+ # @param [Hash] opts the optional parameters
746
+ # @option opts [String] :directory
747
+ # @option opts [Float] :limit
748
+ # @return [Array<SessionMessages200ResponseInner>]
749
+ describe 'session_messages test' do
750
+ it 'should work' do
751
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
752
+ end
753
+ end
754
+
755
+ # unit tests for session_prompt
756
+ # Send message
757
+ # Create and send a new message to a session, streaming the AI response.
758
+ # @param session_id Session ID
759
+ # @param [Hash] opts the optional parameters
760
+ # @option opts [String] :directory
761
+ # @option opts [SessionPromptRequest] :session_prompt_request
762
+ # @return [SessionPrompt200Response]
763
+ describe 'session_prompt test' do
764
+ it 'should work' do
765
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
766
+ end
767
+ end
768
+
769
+ # unit tests for session_prompt_async
770
+ # Send async message
771
+ # Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
772
+ # @param session_id Session ID
773
+ # @param [Hash] opts the optional parameters
774
+ # @option opts [String] :directory
775
+ # @option opts [SessionPromptRequest] :session_prompt_request
776
+ # @return [nil]
777
+ describe 'session_prompt_async test' do
778
+ it 'should work' do
779
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
780
+ end
781
+ end
782
+
783
+ # unit tests for session_revert
784
+ # Revert message
785
+ # Revert a specific message in a session, undoing its effects and restoring the previous state.
786
+ # @param session_id
787
+ # @param [Hash] opts the optional parameters
788
+ # @option opts [String] :directory
789
+ # @option opts [SessionRevertRequest] :session_revert_request
790
+ # @return [Session]
791
+ describe 'session_revert test' do
792
+ it 'should work' do
793
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
794
+ end
795
+ end
796
+
797
+ # unit tests for session_share
798
+ # Share session
799
+ # Create a shareable link for a session, allowing others to view the conversation.
800
+ # @param session_id
801
+ # @param [Hash] opts the optional parameters
802
+ # @option opts [String] :directory
803
+ # @return [Session]
804
+ describe 'session_share test' do
805
+ it 'should work' do
806
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
807
+ end
808
+ end
809
+
810
+ # unit tests for session_shell
811
+ # Run shell command
812
+ # Execute a shell command within the session context and return the AI&#39;s response.
813
+ # @param session_id Session ID
814
+ # @param [Hash] opts the optional parameters
815
+ # @option opts [String] :directory
816
+ # @option opts [SessionShellRequest] :session_shell_request
817
+ # @return [AssistantMessage]
818
+ describe 'session_shell test' do
819
+ it 'should work' do
820
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
821
+ end
822
+ end
823
+
824
+ # unit tests for session_status
825
+ # Get session status
826
+ # Retrieve the current status of all sessions, including active, idle, and completed states.
827
+ # @param [Hash] opts the optional parameters
828
+ # @option opts [String] :directory
829
+ # @return [Hash<String, SessionStatus>]
830
+ describe 'session_status test' do
831
+ it 'should work' do
832
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
833
+ end
834
+ end
835
+
836
+ # unit tests for session_summarize
837
+ # Summarize session
838
+ # Generate a concise summary of the session using AI compaction to preserve key information.
839
+ # @param session_id Session ID
840
+ # @param [Hash] opts the optional parameters
841
+ # @option opts [String] :directory
842
+ # @option opts [SessionSummarizeRequest] :session_summarize_request
843
+ # @return [Boolean]
844
+ describe 'session_summarize test' do
845
+ it 'should work' do
846
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
847
+ end
848
+ end
849
+
850
+ # unit tests for session_todo
851
+ # Get session todos
852
+ # Retrieve the todo list associated with a specific session, showing tasks and action items.
853
+ # @param session_id Session ID
854
+ # @param [Hash] opts the optional parameters
855
+ # @option opts [String] :directory
856
+ # @return [Array<Todo>]
857
+ describe 'session_todo test' do
858
+ it 'should work' do
859
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
860
+ end
861
+ end
862
+
863
+ # unit tests for session_unrevert
864
+ # Restore reverted messages
865
+ # Restore all previously reverted messages in a session.
866
+ # @param session_id
867
+ # @param [Hash] opts the optional parameters
868
+ # @option opts [String] :directory
869
+ # @return [Session]
870
+ describe 'session_unrevert test' do
871
+ it 'should work' do
872
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
873
+ end
874
+ end
875
+
876
+ # unit tests for session_unshare
877
+ # Unshare session
878
+ # Remove the shareable link for a session, making it private again.
879
+ # @param session_id
880
+ # @param [Hash] opts the optional parameters
881
+ # @option opts [String] :directory
882
+ # @return [Session]
883
+ describe 'session_unshare test' do
884
+ it 'should work' do
885
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
886
+ end
887
+ end
888
+
889
+ # unit tests for session_update
890
+ # Update session
891
+ # Update properties of an existing session, such as title or other metadata.
892
+ # @param session_id
893
+ # @param [Hash] opts the optional parameters
894
+ # @option opts [String] :directory
895
+ # @option opts [SessionUpdateRequest] :session_update_request
896
+ # @return [Session]
897
+ describe 'session_update test' do
898
+ it 'should work' do
899
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
900
+ end
901
+ end
902
+
903
+ # unit tests for tool_ids
904
+ # List tool IDs
905
+ # Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
906
+ # @param [Hash] opts the optional parameters
907
+ # @option opts [String] :directory
908
+ # @return [Array<String>]
909
+ describe 'tool_ids test' do
910
+ it 'should work' do
911
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
912
+ end
913
+ end
914
+
915
+ # unit tests for tool_list
916
+ # List tools
917
+ # Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
918
+ # @param provider
919
+ # @param model
920
+ # @param [Hash] opts the optional parameters
921
+ # @option opts [String] :directory
922
+ # @return [Array<ToolListItem>]
923
+ describe 'tool_list test' do
924
+ it 'should work' do
925
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
926
+ end
927
+ end
928
+
929
+ # unit tests for tui_append_prompt
930
+ # Append TUI prompt
931
+ # Append prompt to the TUI
932
+ # @param [Hash] opts the optional parameters
933
+ # @option opts [String] :directory
934
+ # @option opts [FindText200ResponseInnerPath] :find_text200_response_inner_path
935
+ # @return [Boolean]
936
+ describe 'tui_append_prompt test' do
937
+ it 'should work' do
938
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
939
+ end
940
+ end
941
+
942
+ # unit tests for tui_clear_prompt
943
+ # Clear TUI prompt
944
+ # Clear the prompt
945
+ # @param [Hash] opts the optional parameters
946
+ # @option opts [String] :directory
947
+ # @return [Boolean]
948
+ describe 'tui_clear_prompt test' do
949
+ it 'should work' do
950
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
951
+ end
952
+ end
953
+
954
+ # unit tests for tui_control_next
955
+ # Get next TUI request
956
+ # Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
957
+ # @param [Hash] opts the optional parameters
958
+ # @option opts [String] :directory
959
+ # @return [TuiControlNext200Response]
960
+ describe 'tui_control_next test' do
961
+ it 'should work' do
962
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
963
+ end
964
+ end
965
+
966
+ # unit tests for tui_control_response
967
+ # Submit TUI response
968
+ # Submit a response to the TUI request queue to complete a pending request.
969
+ # @param [Hash] opts the optional parameters
970
+ # @option opts [String] :directory
971
+ # @option opts [Object] :body
972
+ # @return [Boolean]
973
+ describe 'tui_control_response test' do
974
+ it 'should work' do
975
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
976
+ end
977
+ end
978
+
979
+ # unit tests for tui_execute_command
980
+ # Execute TUI command
981
+ # Execute a TUI command (e.g. agent_cycle)
982
+ # @param [Hash] opts the optional parameters
983
+ # @option opts [String] :directory
984
+ # @option opts [TuiExecuteCommandRequest] :tui_execute_command_request
985
+ # @return [Boolean]
986
+ describe 'tui_execute_command test' do
987
+ it 'should work' do
988
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
989
+ end
990
+ end
991
+
992
+ # unit tests for tui_open_help
993
+ # Open help dialog
994
+ # Open the help dialog in the TUI to display user assistance information.
995
+ # @param [Hash] opts the optional parameters
996
+ # @option opts [String] :directory
997
+ # @return [Boolean]
998
+ describe 'tui_open_help test' do
999
+ it 'should work' do
1000
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1001
+ end
1002
+ end
1003
+
1004
+ # unit tests for tui_open_models
1005
+ # Open models dialog
1006
+ # Open the model dialog
1007
+ # @param [Hash] opts the optional parameters
1008
+ # @option opts [String] :directory
1009
+ # @return [Boolean]
1010
+ describe 'tui_open_models test' do
1011
+ it 'should work' do
1012
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1013
+ end
1014
+ end
1015
+
1016
+ # unit tests for tui_open_sessions
1017
+ # Open sessions dialog
1018
+ # Open the session dialog
1019
+ # @param [Hash] opts the optional parameters
1020
+ # @option opts [String] :directory
1021
+ # @return [Boolean]
1022
+ describe 'tui_open_sessions test' do
1023
+ it 'should work' do
1024
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1025
+ end
1026
+ end
1027
+
1028
+ # unit tests for tui_open_themes
1029
+ # Open themes dialog
1030
+ # Open the theme dialog
1031
+ # @param [Hash] opts the optional parameters
1032
+ # @option opts [String] :directory
1033
+ # @return [Boolean]
1034
+ describe 'tui_open_themes test' do
1035
+ it 'should work' do
1036
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1037
+ end
1038
+ end
1039
+
1040
+ # unit tests for tui_publish
1041
+ # Publish TUI event
1042
+ # Publish a TUI event
1043
+ # @param [Hash] opts the optional parameters
1044
+ # @option opts [String] :directory
1045
+ # @option opts [TuiPublishRequest] :tui_publish_request
1046
+ # @return [Boolean]
1047
+ describe 'tui_publish test' do
1048
+ it 'should work' do
1049
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1050
+ end
1051
+ end
1052
+
1053
+ # unit tests for tui_show_toast
1054
+ # Show TUI toast
1055
+ # Show a toast notification in the TUI
1056
+ # @param [Hash] opts the optional parameters
1057
+ # @option opts [String] :directory
1058
+ # @option opts [TuiShowToastRequest] :tui_show_toast_request
1059
+ # @return [Boolean]
1060
+ describe 'tui_show_toast test' do
1061
+ it 'should work' do
1062
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1063
+ end
1064
+ end
1065
+
1066
+ # unit tests for tui_submit_prompt
1067
+ # Submit TUI prompt
1068
+ # Submit the prompt
1069
+ # @param [Hash] opts the optional parameters
1070
+ # @option opts [String] :directory
1071
+ # @return [Boolean]
1072
+ describe 'tui_submit_prompt test' do
1073
+ it 'should work' do
1074
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1075
+ end
1076
+ end
1077
+
1078
+ # unit tests for vcs_get
1079
+ # Get VCS info
1080
+ # Retrieve version control system (VCS) information for the current project, such as git branch.
1081
+ # @param [Hash] opts the optional parameters
1082
+ # @option opts [String] :directory
1083
+ # @return [VcsInfo]
1084
+ describe 'vcs_get test' do
1085
+ it 'should work' do
1086
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1087
+ end
1088
+ end
1089
+
1090
+ end