opencode_client 1.0.2 → 1.0.3

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 (262) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/lib/opencode_client/version.rb +1 -1
  4. metadata +2 -260
  5. data/Gemfile +0 -9
  6. data/Gemfile.lock +0 -102
  7. data/Rakefile +0 -10
  8. data/docs/APIError.md +0 -20
  9. data/docs/APIErrorData.md +0 -28
  10. data/docs/Agent.md +0 -46
  11. data/docs/AgentConfig.md +0 -38
  12. data/docs/AgentConfigPermission.md +0 -28
  13. data/docs/AgentConfigPermissionBash.md +0 -15
  14. data/docs/AgentPart.md +0 -28
  15. data/docs/AgentPartInput.md +0 -24
  16. data/docs/AgentPartSource.md +0 -22
  17. data/docs/AgentPermission.md +0 -28
  18. data/docs/ApiAuth.md +0 -20
  19. data/docs/AppLogRequest.md +0 -24
  20. data/docs/AssistantMessage.md +0 -46
  21. data/docs/AssistantMessageError.md +0 -20
  22. data/docs/AssistantMessagePath.md +0 -20
  23. data/docs/AssistantMessageTime.md +0 -20
  24. data/docs/AssistantMessageTokens.md +0 -24
  25. data/docs/AssistantMessageTokensCache.md +0 -20
  26. data/docs/Auth.md +0 -30
  27. data/docs/BadRequestError.md +0 -22
  28. data/docs/Command.md +0 -28
  29. data/docs/CompactionPart.md +0 -26
  30. data/docs/Config.md +0 -82
  31. data/docs/ConfigAgent.md +0 -30
  32. data/docs/ConfigAutoupdate.md +0 -15
  33. data/docs/ConfigCommandValue.md +0 -26
  34. data/docs/ConfigCompaction.md +0 -20
  35. data/docs/ConfigEnterprise.md +0 -18
  36. data/docs/ConfigExperimental.md +0 -30
  37. data/docs/ConfigExperimentalHook.md +0 -20
  38. data/docs/ConfigExperimentalHookFileEditedValueInner.md +0 -20
  39. data/docs/ConfigFormatter.md +0 -15
  40. data/docs/ConfigFormatterAnyOfValue.md +0 -24
  41. data/docs/ConfigLsp.md +0 -15
  42. data/docs/ConfigLspAnyOfValue.md +0 -26
  43. data/docs/ConfigLspAnyOfValueAnyOf.md +0 -18
  44. data/docs/ConfigLspAnyOfValueAnyOf1.md +0 -26
  45. data/docs/ConfigMode.md +0 -20
  46. data/docs/ConfigProviders200Response.md +0 -20
  47. data/docs/ConfigTui.md +0 -22
  48. data/docs/ConfigTuiScrollAcceleration.md +0 -18
  49. data/docs/ConfigWatcher.md +0 -18
  50. data/docs/DefaultApi.md +0 -5641
  51. data/docs/Event.md +0 -20
  52. data/docs/EventCommandExecuted.md +0 -20
  53. data/docs/EventCommandExecutedProperties.md +0 -24
  54. data/docs/EventFileEdited.md +0 -20
  55. data/docs/EventFileEditedProperties.md +0 -18
  56. data/docs/EventFileWatcherUpdated.md +0 -20
  57. data/docs/EventFileWatcherUpdatedProperties.md +0 -20
  58. data/docs/EventGlobalDisposed.md +0 -20
  59. data/docs/EventInstallationUpdateAvailable.md +0 -20
  60. data/docs/EventInstallationUpdated.md +0 -20
  61. data/docs/EventInstallationUpdatedProperties.md +0 -18
  62. data/docs/EventLspClientDiagnostics.md +0 -20
  63. data/docs/EventLspClientDiagnosticsProperties.md +0 -20
  64. data/docs/EventLspUpdated.md +0 -20
  65. data/docs/EventMcpToolsChanged.md +0 -20
  66. data/docs/EventMcpToolsChangedProperties.md +0 -18
  67. data/docs/EventMessagePartRemoved.md +0 -20
  68. data/docs/EventMessagePartRemovedProperties.md +0 -22
  69. data/docs/EventMessagePartUpdated.md +0 -20
  70. data/docs/EventMessagePartUpdatedProperties.md +0 -20
  71. data/docs/EventMessageRemoved.md +0 -20
  72. data/docs/EventMessageRemovedProperties.md +0 -20
  73. data/docs/EventMessageUpdated.md +0 -20
  74. data/docs/EventMessageUpdatedProperties.md +0 -18
  75. data/docs/EventPermissionReplied.md +0 -20
  76. data/docs/EventPermissionRepliedProperties.md +0 -22
  77. data/docs/EventPermissionUpdated.md +0 -20
  78. data/docs/EventProjectUpdated.md +0 -20
  79. data/docs/EventPtyCreated.md +0 -20
  80. data/docs/EventPtyCreatedProperties.md +0 -18
  81. data/docs/EventPtyDeleted.md +0 -20
  82. data/docs/EventPtyDeletedProperties.md +0 -18
  83. data/docs/EventPtyExited.md +0 -20
  84. data/docs/EventPtyExitedProperties.md +0 -20
  85. data/docs/EventPtyUpdated.md +0 -20
  86. data/docs/EventServerConnected.md +0 -20
  87. data/docs/EventServerInstanceDisposed.md +0 -20
  88. data/docs/EventServerInstanceDisposedProperties.md +0 -18
  89. data/docs/EventSessionCompacted.md +0 -20
  90. data/docs/EventSessionCreated.md +0 -20
  91. data/docs/EventSessionCreatedProperties.md +0 -18
  92. data/docs/EventSessionDeleted.md +0 -20
  93. data/docs/EventSessionDiff.md +0 -20
  94. data/docs/EventSessionDiffProperties.md +0 -20
  95. data/docs/EventSessionError.md +0 -20
  96. data/docs/EventSessionErrorProperties.md +0 -20
  97. data/docs/EventSessionIdle.md +0 -20
  98. data/docs/EventSessionIdleProperties.md +0 -18
  99. data/docs/EventSessionStatus.md +0 -20
  100. data/docs/EventSessionStatusProperties.md +0 -20
  101. data/docs/EventSessionUpdated.md +0 -20
  102. data/docs/EventTodoUpdated.md +0 -20
  103. data/docs/EventTodoUpdatedProperties.md +0 -20
  104. data/docs/EventTuiCommandExecute.md +0 -20
  105. data/docs/EventTuiCommandExecuteProperties.md +0 -18
  106. data/docs/EventTuiCommandExecutePropertiesCommand.md +0 -15
  107. data/docs/EventTuiPromptAppend.md +0 -20
  108. data/docs/EventTuiToastShow.md +0 -20
  109. data/docs/EventVcsBranchUpdated.md +0 -20
  110. data/docs/EventVcsBranchUpdatedProperties.md +0 -18
  111. data/docs/File.md +0 -24
  112. data/docs/FileContent.md +0 -28
  113. data/docs/FileContentPatch.md +0 -28
  114. data/docs/FileContentPatchHunksInner.md +0 -26
  115. data/docs/FileDiff.md +0 -26
  116. data/docs/FileNode.md +0 -26
  117. data/docs/FilePart.md +0 -32
  118. data/docs/FilePartInput.md +0 -28
  119. data/docs/FilePartSource.md +0 -28
  120. data/docs/FilePartSourceText.md +0 -22
  121. data/docs/FileSource.md +0 -22
  122. data/docs/FindText200ResponseInner.md +0 -26
  123. data/docs/FindText200ResponseInnerPath.md +0 -18
  124. data/docs/FindText200ResponseInnerSubmatchesInner.md +0 -22
  125. data/docs/FormatterStatus.md +0 -22
  126. data/docs/GlobalEvent.md +0 -20
  127. data/docs/GlobalHealth200Response.md +0 -20
  128. data/docs/KeybindsConfig.md +0 -188
  129. data/docs/LSPStatus.md +0 -24
  130. data/docs/LayoutConfig.md +0 -15
  131. data/docs/LogLevel.md +0 -15
  132. data/docs/MCPStatus.md +0 -20
  133. data/docs/MCPStatusConnected.md +0 -18
  134. data/docs/MCPStatusDisabled.md +0 -18
  135. data/docs/MCPStatusFailed.md +0 -20
  136. data/docs/MCPStatusNeedsAuth.md +0 -18
  137. data/docs/MCPStatusNeedsClientRegistration.md +0 -20
  138. data/docs/McpAddRequest.md +0 -20
  139. data/docs/McpAddRequestConfig.md +0 -32
  140. data/docs/McpAuthCallbackRequest.md +0 -18
  141. data/docs/McpAuthRemove200Response.md +0 -18
  142. data/docs/McpAuthStart200Response.md +0 -18
  143. data/docs/McpLocalConfig.md +0 -26
  144. data/docs/McpOAuthConfig.md +0 -22
  145. data/docs/McpRemoteConfig.md +0 -28
  146. data/docs/McpRemoteConfigOauth.md +0 -22
  147. data/docs/Message.md +0 -52
  148. data/docs/MessageAbortedError.md +0 -20
  149. data/docs/MessageOutputLengthError.md +0 -20
  150. data/docs/Model.md +0 -40
  151. data/docs/ModelApi.md +0 -22
  152. data/docs/ModelCapabilities.md +0 -30
  153. data/docs/ModelCapabilitiesInput.md +0 -26
  154. data/docs/ModelCapabilitiesInterleaved.md +0 -18
  155. data/docs/ModelCapabilitiesInterleavedAnyOf.md +0 -18
  156. data/docs/ModelCost.md +0 -24
  157. data/docs/ModelCostExperimentalOver200K.md +0 -22
  158. data/docs/NotFoundError.md +0 -20
  159. data/docs/OAuth.md +0 -26
  160. data/docs/Part.md +0 -76
  161. data/docs/PartAnyOf.md +0 -32
  162. data/docs/PatchPart.md +0 -28
  163. data/docs/Path.md +0 -26
  164. data/docs/Permission.md +0 -34
  165. data/docs/PermissionPattern.md +0 -15
  166. data/docs/PermissionRespondRequest.md +0 -18
  167. data/docs/Project.md +0 -28
  168. data/docs/ProjectTime.md +0 -22
  169. data/docs/ProjectUpdateRequest.md +0 -20
  170. data/docs/ProjectUpdateRequestIcon.md +0 -20
  171. data/docs/Provider.md +0 -30
  172. data/docs/ProviderAuthAuthorization.md +0 -22
  173. data/docs/ProviderAuthError.md +0 -20
  174. data/docs/ProviderAuthErrorData.md +0 -20
  175. data/docs/ProviderAuthMethod.md +0 -20
  176. data/docs/ProviderConfig.md +0 -34
  177. data/docs/ProviderConfigModelsValue.md +0 -50
  178. data/docs/ProviderConfigModelsValueInterleaved.md +0 -18
  179. data/docs/ProviderConfigModelsValueInterleavedAnyOf.md +0 -18
  180. data/docs/ProviderConfigOptions.md +0 -26
  181. data/docs/ProviderConfigOptionsTimeout.md +0 -15
  182. data/docs/ProviderList200Response.md +0 -22
  183. data/docs/ProviderList200ResponseAllInner.md +0 -28
  184. data/docs/ProviderList200ResponseAllInnerModelsValue.md +0 -50
  185. data/docs/ProviderList200ResponseAllInnerModelsValueCost.md +0 -26
  186. data/docs/ProviderList200ResponseAllInnerModelsValueCostContextOver200k.md +0 -24
  187. data/docs/ProviderList200ResponseAllInnerModelsValueInterleaved.md +0 -18
  188. data/docs/ProviderList200ResponseAllInnerModelsValueInterleavedAnyOf.md +0 -18
  189. data/docs/ProviderList200ResponseAllInnerModelsValueLimit.md +0 -20
  190. data/docs/ProviderList200ResponseAllInnerModelsValueModalities.md +0 -20
  191. data/docs/ProviderList200ResponseAllInnerModelsValueProvider.md +0 -18
  192. data/docs/ProviderOauthAuthorizeRequest.md +0 -18
  193. data/docs/ProviderOauthCallbackRequest.md +0 -20
  194. data/docs/Pty.md +0 -30
  195. data/docs/PtyCreateRequest.md +0 -26
  196. data/docs/PtyUpdateRequest.md +0 -20
  197. data/docs/PtyUpdateRequestSize.md +0 -20
  198. data/docs/Range.md +0 -20
  199. data/docs/RangeStart.md +0 -20
  200. data/docs/ReasoningPart.md +0 -30
  201. data/docs/RetryPart.md +0 -30
  202. data/docs/ServerConfig.md +0 -22
  203. data/docs/Session.md +0 -36
  204. data/docs/SessionApi.md +0 -145
  205. data/docs/SessionCommandRequest.md +0 -26
  206. data/docs/SessionCreateRequest.md +0 -20
  207. data/docs/SessionForkRequest.md +0 -18
  208. data/docs/SessionInitRequest.md +0 -22
  209. data/docs/SessionMessages200ResponseInner.md +0 -20
  210. data/docs/SessionPrompt200Response.md +0 -20
  211. data/docs/SessionPromptRequest.md +0 -30
  212. data/docs/SessionPromptRequestModel.md +0 -20
  213. data/docs/SessionPromptRequestPartsInner.md +0 -48
  214. data/docs/SessionRevert.md +0 -24
  215. data/docs/SessionRevertRequest.md +0 -20
  216. data/docs/SessionShare.md +0 -18
  217. data/docs/SessionShellRequest.md +0 -22
  218. data/docs/SessionStatus.md +0 -24
  219. data/docs/SessionStatusAnyOf.md +0 -18
  220. data/docs/SessionStatusAnyOf1.md +0 -24
  221. data/docs/SessionStatusAnyOf2.md +0 -18
  222. data/docs/SessionSummarizeRequest.md +0 -22
  223. data/docs/SessionSummary.md +0 -24
  224. data/docs/SessionTime.md +0 -24
  225. data/docs/SessionUpdateRequest.md +0 -20
  226. data/docs/SessionUpdateRequestTime.md +0 -18
  227. data/docs/SnapshotPart.md +0 -26
  228. data/docs/StepFinishPart.md +0 -32
  229. data/docs/StepStartPart.md +0 -26
  230. data/docs/SubtaskPartInput.md +0 -28
  231. data/docs/Symbol.md +0 -22
  232. data/docs/SymbolLocation.md +0 -20
  233. data/docs/SymbolSource.md +0 -28
  234. data/docs/TextPart.md +0 -34
  235. data/docs/TextPartInput.md +0 -30
  236. data/docs/TextPartTime.md +0 -20
  237. data/docs/Todo.md +0 -24
  238. data/docs/ToolListItem.md +0 -22
  239. data/docs/ToolPart.md +0 -32
  240. data/docs/ToolState.md +0 -34
  241. data/docs/ToolStateCompleted.md +0 -30
  242. data/docs/ToolStateCompletedTime.md +0 -22
  243. data/docs/ToolStateError.md +0 -26
  244. data/docs/ToolStateErrorTime.md +0 -20
  245. data/docs/ToolStatePending.md +0 -22
  246. data/docs/ToolStateRunning.md +0 -26
  247. data/docs/ToolStateRunningTime.md +0 -18
  248. data/docs/TuiControlNext200Response.md +0 -20
  249. data/docs/TuiExecuteCommandRequest.md +0 -18
  250. data/docs/TuiPublishRequest.md +0 -20
  251. data/docs/TuiShowToastRequest.md +0 -24
  252. data/docs/UnknownError.md +0 -20
  253. data/docs/UnknownErrorData.md +0 -18
  254. data/docs/UserMessage.md +0 -34
  255. data/docs/UserMessageSummary.md +0 -22
  256. data/docs/UserMessageTime.md +0 -18
  257. data/docs/VcsInfo.md +0 -18
  258. data/docs/WellKnownAuth.md +0 -22
  259. data/example_usage.rb +0 -37
  260. data/git_push.sh +0 -57
  261. data/opencode_client.gemspec +0 -39
  262. data/pkg/opencode_client-1.0.1.gem +0 -0
data/docs/Todo.md DELETED
@@ -1,24 +0,0 @@
1
- # OpencodeClient::Todo
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **content** | **String** | Brief description of the task | |
8
- | **status** | **String** | Current status of the task: pending, in_progress, completed, cancelled | |
9
- | **priority** | **String** | Priority level of the task: high, medium, low | |
10
- | **id** | **String** | Unique identifier for the todo item | |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'opencode_client'
16
-
17
- instance = OpencodeClient::Todo.new(
18
- content: null,
19
- status: null,
20
- priority: null,
21
- id: null
22
- )
23
- ```
24
-
data/docs/ToolListItem.md DELETED
@@ -1,22 +0,0 @@
1
- # OpencodeClient::ToolListItem
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | |
8
- | **description** | **String** | | |
9
- | **parameters** | **Object** | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'opencode_client'
15
-
16
- instance = OpencodeClient::ToolListItem.new(
17
- id: null,
18
- description: null,
19
- parameters: null
20
- )
21
- ```
22
-
data/docs/ToolPart.md DELETED
@@ -1,32 +0,0 @@
1
- # OpencodeClient::ToolPart
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | |
8
- | **session_id** | **String** | | |
9
- | **message_id** | **String** | | |
10
- | **type** | **String** | | |
11
- | **call_id** | **String** | | |
12
- | **tool** | **String** | | |
13
- | **state** | [**ToolState**](ToolState.md) | | |
14
- | **metadata** | **Hash<String, Object>** | | [optional] |
15
-
16
- ## Example
17
-
18
- ```ruby
19
- require 'opencode_client'
20
-
21
- instance = OpencodeClient::ToolPart.new(
22
- id: null,
23
- session_id: null,
24
- message_id: null,
25
- type: null,
26
- call_id: null,
27
- tool: null,
28
- state: null,
29
- metadata: null
30
- )
31
- ```
32
-
data/docs/ToolState.md DELETED
@@ -1,34 +0,0 @@
1
- # OpencodeClient::ToolState
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **status** | **String** | | |
8
- | **input** | **Hash<String, Object>** | | |
9
- | **raw** | **String** | | |
10
- | **title** | **String** | | |
11
- | **metadata** | **Hash<String, Object>** | | |
12
- | **time** | [**ToolStateErrorTime**](ToolStateErrorTime.md) | | |
13
- | **output** | **String** | | |
14
- | **attachments** | [**Array<FilePart>**](FilePart.md) | | [optional] |
15
- | **error** | **String** | | |
16
-
17
- ## Example
18
-
19
- ```ruby
20
- require 'opencode_client'
21
-
22
- instance = OpencodeClient::ToolState.new(
23
- status: null,
24
- input: null,
25
- raw: null,
26
- title: null,
27
- metadata: null,
28
- time: null,
29
- output: null,
30
- attachments: null,
31
- error: null
32
- )
33
- ```
34
-
@@ -1,30 +0,0 @@
1
- # OpencodeClient::ToolStateCompleted
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **status** | **String** | | |
8
- | **input** | **Hash<String, Object>** | | |
9
- | **output** | **String** | | |
10
- | **title** | **String** | | |
11
- | **metadata** | **Hash<String, Object>** | | |
12
- | **time** | [**ToolStateCompletedTime**](ToolStateCompletedTime.md) | | |
13
- | **attachments** | [**Array<FilePart>**](FilePart.md) | | [optional] |
14
-
15
- ## Example
16
-
17
- ```ruby
18
- require 'opencode_client'
19
-
20
- instance = OpencodeClient::ToolStateCompleted.new(
21
- status: null,
22
- input: null,
23
- output: null,
24
- title: null,
25
- metadata: null,
26
- time: null,
27
- attachments: null
28
- )
29
- ```
30
-
@@ -1,22 +0,0 @@
1
- # OpencodeClient::ToolStateCompletedTime
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **start** | **Float** | | |
8
- | **_end** | **Float** | | |
9
- | **compacted** | **Float** | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'opencode_client'
15
-
16
- instance = OpencodeClient::ToolStateCompletedTime.new(
17
- start: null,
18
- _end: null,
19
- compacted: null
20
- )
21
- ```
22
-
@@ -1,26 +0,0 @@
1
- # OpencodeClient::ToolStateError
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **status** | **String** | | |
8
- | **input** | **Hash<String, Object>** | | |
9
- | **error** | **String** | | |
10
- | **metadata** | **Hash<String, Object>** | | [optional] |
11
- | **time** | [**ToolStateErrorTime**](ToolStateErrorTime.md) | | |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'opencode_client'
17
-
18
- instance = OpencodeClient::ToolStateError.new(
19
- status: null,
20
- input: null,
21
- error: null,
22
- metadata: null,
23
- time: null
24
- )
25
- ```
26
-
@@ -1,20 +0,0 @@
1
- # OpencodeClient::ToolStateErrorTime
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **start** | **Float** | | |
8
- | **_end** | **Float** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'opencode_client'
14
-
15
- instance = OpencodeClient::ToolStateErrorTime.new(
16
- start: null,
17
- _end: null
18
- )
19
- ```
20
-
@@ -1,22 +0,0 @@
1
- # OpencodeClient::ToolStatePending
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **status** | **String** | | |
8
- | **input** | **Hash<String, Object>** | | |
9
- | **raw** | **String** | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'opencode_client'
15
-
16
- instance = OpencodeClient::ToolStatePending.new(
17
- status: null,
18
- input: null,
19
- raw: null
20
- )
21
- ```
22
-
@@ -1,26 +0,0 @@
1
- # OpencodeClient::ToolStateRunning
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **status** | **String** | | |
8
- | **input** | **Hash<String, Object>** | | |
9
- | **title** | **String** | | [optional] |
10
- | **metadata** | **Hash<String, Object>** | | [optional] |
11
- | **time** | [**ToolStateRunningTime**](ToolStateRunningTime.md) | | |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'opencode_client'
17
-
18
- instance = OpencodeClient::ToolStateRunning.new(
19
- status: null,
20
- input: null,
21
- title: null,
22
- metadata: null,
23
- time: null
24
- )
25
- ```
26
-
@@ -1,18 +0,0 @@
1
- # OpencodeClient::ToolStateRunningTime
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **start** | **Float** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'opencode_client'
13
-
14
- instance = OpencodeClient::ToolStateRunningTime.new(
15
- start: null
16
- )
17
- ```
18
-
@@ -1,20 +0,0 @@
1
- # OpencodeClient::TuiControlNext200Response
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **path** | **String** | | |
8
- | **body** | **Object** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'opencode_client'
14
-
15
- instance = OpencodeClient::TuiControlNext200Response.new(
16
- path: null,
17
- body: null
18
- )
19
- ```
20
-
@@ -1,18 +0,0 @@
1
- # OpencodeClient::TuiExecuteCommandRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **command** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'opencode_client'
13
-
14
- instance = OpencodeClient::TuiExecuteCommandRequest.new(
15
- command: null
16
- )
17
- ```
18
-
@@ -1,20 +0,0 @@
1
- # OpencodeClient::TuiPublishRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **type** | **String** | | |
8
- | **properties** | [**TuiShowToastRequest**](TuiShowToastRequest.md) | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'opencode_client'
14
-
15
- instance = OpencodeClient::TuiPublishRequest.new(
16
- type: null,
17
- properties: null
18
- )
19
- ```
20
-
@@ -1,24 +0,0 @@
1
- # OpencodeClient::TuiShowToastRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **title** | **String** | | [optional] |
8
- | **message** | **String** | | |
9
- | **variant** | **String** | | |
10
- | **duration** | **Float** | Duration in milliseconds | [optional][default to 5000] |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'opencode_client'
16
-
17
- instance = OpencodeClient::TuiShowToastRequest.new(
18
- title: null,
19
- message: null,
20
- variant: null,
21
- duration: null
22
- )
23
- ```
24
-
data/docs/UnknownError.md DELETED
@@ -1,20 +0,0 @@
1
- # OpencodeClient::UnknownError
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **name** | **String** | | |
8
- | **data** | [**UnknownErrorData**](UnknownErrorData.md) | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'opencode_client'
14
-
15
- instance = OpencodeClient::UnknownError.new(
16
- name: null,
17
- data: null
18
- )
19
- ```
20
-
@@ -1,18 +0,0 @@
1
- # OpencodeClient::UnknownErrorData
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **message** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'opencode_client'
13
-
14
- instance = OpencodeClient::UnknownErrorData.new(
15
- message: null
16
- )
17
- ```
18
-
data/docs/UserMessage.md DELETED
@@ -1,34 +0,0 @@
1
- # OpencodeClient::UserMessage
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | |
8
- | **session_id** | **String** | | |
9
- | **role** | **String** | | |
10
- | **time** | [**UserMessageTime**](UserMessageTime.md) | | |
11
- | **summary** | [**UserMessageSummary**](UserMessageSummary.md) | | [optional] |
12
- | **agent** | **String** | | |
13
- | **model** | [**SessionPromptRequestModel**](SessionPromptRequestModel.md) | | |
14
- | **system** | **String** | | [optional] |
15
- | **tools** | **Hash<String, Boolean>** | | [optional] |
16
-
17
- ## Example
18
-
19
- ```ruby
20
- require 'opencode_client'
21
-
22
- instance = OpencodeClient::UserMessage.new(
23
- id: null,
24
- session_id: null,
25
- role: null,
26
- time: null,
27
- summary: null,
28
- agent: null,
29
- model: null,
30
- system: null,
31
- tools: null
32
- )
33
- ```
34
-
@@ -1,22 +0,0 @@
1
- # OpencodeClient::UserMessageSummary
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **title** | **String** | | [optional] |
8
- | **body** | **String** | | [optional] |
9
- | **diffs** | [**Array<FileDiff>**](FileDiff.md) | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'opencode_client'
15
-
16
- instance = OpencodeClient::UserMessageSummary.new(
17
- title: null,
18
- body: null,
19
- diffs: null
20
- )
21
- ```
22
-
@@ -1,18 +0,0 @@
1
- # OpencodeClient::UserMessageTime
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **created** | **Float** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'opencode_client'
13
-
14
- instance = OpencodeClient::UserMessageTime.new(
15
- created: null
16
- )
17
- ```
18
-
data/docs/VcsInfo.md DELETED
@@ -1,18 +0,0 @@
1
- # OpencodeClient::VcsInfo
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **branch** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'opencode_client'
13
-
14
- instance = OpencodeClient::VcsInfo.new(
15
- branch: null
16
- )
17
- ```
18
-
@@ -1,22 +0,0 @@
1
- # OpencodeClient::WellKnownAuth
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **type** | **String** | | |
8
- | **key** | **String** | | |
9
- | **token** | **String** | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'opencode_client'
15
-
16
- instance = OpencodeClient::WellKnownAuth.new(
17
- type: null,
18
- key: null,
19
- token: null
20
- )
21
- ```
22
-
data/example_usage.rb DELETED
@@ -1,37 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # frozen_string_literal: true
4
-
5
- $LOAD_PATH.unshift(File.expand_path("lib", __dir__))
6
- require "opencode_client"
7
-
8
- # Example usage of the opencode_client Ruby SDK
9
-
10
- # Initialize the API client & Set base URL (default: http://localhost:4096)
11
- api_client = OpencodeClient::ApiClient.new
12
- api_client.config.scheme = "http"
13
- api_client.config.host = "localhost:4096"
14
-
15
- # Initialize the Default API
16
- client = OpencodeClient::DefaultApi.new(api_client)
17
-
18
- # Health check example
19
- begin
20
- puts "Checking health..."
21
- health_response = client.global_health
22
- puts "Server healthy: #{health_response.healthy}"
23
- puts "Server version: #{health_response.version}"
24
- rescue OpencodeClient::ApiError => e
25
- puts "Error checking health: #{e.message}"
26
- end
27
-
28
- # Get global events (SSE stream), need do some action.
29
- begin
30
- puts "Getting global events..."
31
- events_response = client.global_event
32
- puts "Events response: #{events_response}"
33
- rescue OpencodeClient::ApiError => e
34
- puts "Error getting events: #{e.message}"
35
- end
36
-
37
- puts "\nExample completed!"
data/git_push.sh DELETED
@@ -1,57 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=$(git remote)
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
@@ -1,39 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- =begin
4
- #opencode
5
-
6
- #opencode api
7
-
8
- The version of the OpenAPI document: 1.0.2
9
-
10
- Generated by: https://openapi-generator.tech
11
- Generator version: 7.18.0
12
-
13
- =end
14
-
15
- $:.push File.expand_path("../lib", __FILE__)
16
- require "opencode_client/version"
17
-
18
- Gem::Specification.new do |s|
19
- s.name = "opencode_client"
20
- s.version = OpencodeClient::VERSION
21
- s.platform = Gem::Platform::RUBY
22
- s.authors = ["OpenCode AI"]
23
- s.email = ["eric.guocz@gmail.com"]
24
- s.homepage = 'https://github.com/Eric-Guo/opencode_client_ruby'
25
- s.summary = "OpenCode Ruby Client Gem"
26
- s.description = "Ruby client for the OpenCode API"
27
- s.license = "MIT"
28
- s.required_ruby_version = ">= 2.7"
29
- s.metadata = {}
30
-
31
- s.add_runtime_dependency 'httpx', '~> 1.0', '>= 1.0.0'
32
-
33
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
-
35
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
- s.test_files = `find spec/*`.split("\n")
37
- s.executables = []
38
- s.require_paths = ["lib"]
39
- end
Binary file