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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/opencode_client/version.rb +1 -1
- metadata +2 -260
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -102
- data/Rakefile +0 -10
- data/docs/APIError.md +0 -20
- data/docs/APIErrorData.md +0 -28
- data/docs/Agent.md +0 -46
- data/docs/AgentConfig.md +0 -38
- data/docs/AgentConfigPermission.md +0 -28
- data/docs/AgentConfigPermissionBash.md +0 -15
- data/docs/AgentPart.md +0 -28
- data/docs/AgentPartInput.md +0 -24
- data/docs/AgentPartSource.md +0 -22
- data/docs/AgentPermission.md +0 -28
- data/docs/ApiAuth.md +0 -20
- data/docs/AppLogRequest.md +0 -24
- data/docs/AssistantMessage.md +0 -46
- data/docs/AssistantMessageError.md +0 -20
- data/docs/AssistantMessagePath.md +0 -20
- data/docs/AssistantMessageTime.md +0 -20
- data/docs/AssistantMessageTokens.md +0 -24
- data/docs/AssistantMessageTokensCache.md +0 -20
- data/docs/Auth.md +0 -30
- data/docs/BadRequestError.md +0 -22
- data/docs/Command.md +0 -28
- data/docs/CompactionPart.md +0 -26
- data/docs/Config.md +0 -82
- data/docs/ConfigAgent.md +0 -30
- data/docs/ConfigAutoupdate.md +0 -15
- data/docs/ConfigCommandValue.md +0 -26
- data/docs/ConfigCompaction.md +0 -20
- data/docs/ConfigEnterprise.md +0 -18
- data/docs/ConfigExperimental.md +0 -30
- data/docs/ConfigExperimentalHook.md +0 -20
- data/docs/ConfigExperimentalHookFileEditedValueInner.md +0 -20
- data/docs/ConfigFormatter.md +0 -15
- data/docs/ConfigFormatterAnyOfValue.md +0 -24
- data/docs/ConfigLsp.md +0 -15
- data/docs/ConfigLspAnyOfValue.md +0 -26
- data/docs/ConfigLspAnyOfValueAnyOf.md +0 -18
- data/docs/ConfigLspAnyOfValueAnyOf1.md +0 -26
- data/docs/ConfigMode.md +0 -20
- data/docs/ConfigProviders200Response.md +0 -20
- data/docs/ConfigTui.md +0 -22
- data/docs/ConfigTuiScrollAcceleration.md +0 -18
- data/docs/ConfigWatcher.md +0 -18
- data/docs/DefaultApi.md +0 -5641
- data/docs/Event.md +0 -20
- data/docs/EventCommandExecuted.md +0 -20
- data/docs/EventCommandExecutedProperties.md +0 -24
- data/docs/EventFileEdited.md +0 -20
- data/docs/EventFileEditedProperties.md +0 -18
- data/docs/EventFileWatcherUpdated.md +0 -20
- data/docs/EventFileWatcherUpdatedProperties.md +0 -20
- data/docs/EventGlobalDisposed.md +0 -20
- data/docs/EventInstallationUpdateAvailable.md +0 -20
- data/docs/EventInstallationUpdated.md +0 -20
- data/docs/EventInstallationUpdatedProperties.md +0 -18
- data/docs/EventLspClientDiagnostics.md +0 -20
- data/docs/EventLspClientDiagnosticsProperties.md +0 -20
- data/docs/EventLspUpdated.md +0 -20
- data/docs/EventMcpToolsChanged.md +0 -20
- data/docs/EventMcpToolsChangedProperties.md +0 -18
- data/docs/EventMessagePartRemoved.md +0 -20
- data/docs/EventMessagePartRemovedProperties.md +0 -22
- data/docs/EventMessagePartUpdated.md +0 -20
- data/docs/EventMessagePartUpdatedProperties.md +0 -20
- data/docs/EventMessageRemoved.md +0 -20
- data/docs/EventMessageRemovedProperties.md +0 -20
- data/docs/EventMessageUpdated.md +0 -20
- data/docs/EventMessageUpdatedProperties.md +0 -18
- data/docs/EventPermissionReplied.md +0 -20
- data/docs/EventPermissionRepliedProperties.md +0 -22
- data/docs/EventPermissionUpdated.md +0 -20
- data/docs/EventProjectUpdated.md +0 -20
- data/docs/EventPtyCreated.md +0 -20
- data/docs/EventPtyCreatedProperties.md +0 -18
- data/docs/EventPtyDeleted.md +0 -20
- data/docs/EventPtyDeletedProperties.md +0 -18
- data/docs/EventPtyExited.md +0 -20
- data/docs/EventPtyExitedProperties.md +0 -20
- data/docs/EventPtyUpdated.md +0 -20
- data/docs/EventServerConnected.md +0 -20
- data/docs/EventServerInstanceDisposed.md +0 -20
- data/docs/EventServerInstanceDisposedProperties.md +0 -18
- data/docs/EventSessionCompacted.md +0 -20
- data/docs/EventSessionCreated.md +0 -20
- data/docs/EventSessionCreatedProperties.md +0 -18
- data/docs/EventSessionDeleted.md +0 -20
- data/docs/EventSessionDiff.md +0 -20
- data/docs/EventSessionDiffProperties.md +0 -20
- data/docs/EventSessionError.md +0 -20
- data/docs/EventSessionErrorProperties.md +0 -20
- data/docs/EventSessionIdle.md +0 -20
- data/docs/EventSessionIdleProperties.md +0 -18
- data/docs/EventSessionStatus.md +0 -20
- data/docs/EventSessionStatusProperties.md +0 -20
- data/docs/EventSessionUpdated.md +0 -20
- data/docs/EventTodoUpdated.md +0 -20
- data/docs/EventTodoUpdatedProperties.md +0 -20
- data/docs/EventTuiCommandExecute.md +0 -20
- data/docs/EventTuiCommandExecuteProperties.md +0 -18
- data/docs/EventTuiCommandExecutePropertiesCommand.md +0 -15
- data/docs/EventTuiPromptAppend.md +0 -20
- data/docs/EventTuiToastShow.md +0 -20
- data/docs/EventVcsBranchUpdated.md +0 -20
- data/docs/EventVcsBranchUpdatedProperties.md +0 -18
- data/docs/File.md +0 -24
- data/docs/FileContent.md +0 -28
- data/docs/FileContentPatch.md +0 -28
- data/docs/FileContentPatchHunksInner.md +0 -26
- data/docs/FileDiff.md +0 -26
- data/docs/FileNode.md +0 -26
- data/docs/FilePart.md +0 -32
- data/docs/FilePartInput.md +0 -28
- data/docs/FilePartSource.md +0 -28
- data/docs/FilePartSourceText.md +0 -22
- data/docs/FileSource.md +0 -22
- data/docs/FindText200ResponseInner.md +0 -26
- data/docs/FindText200ResponseInnerPath.md +0 -18
- data/docs/FindText200ResponseInnerSubmatchesInner.md +0 -22
- data/docs/FormatterStatus.md +0 -22
- data/docs/GlobalEvent.md +0 -20
- data/docs/GlobalHealth200Response.md +0 -20
- data/docs/KeybindsConfig.md +0 -188
- data/docs/LSPStatus.md +0 -24
- data/docs/LayoutConfig.md +0 -15
- data/docs/LogLevel.md +0 -15
- data/docs/MCPStatus.md +0 -20
- data/docs/MCPStatusConnected.md +0 -18
- data/docs/MCPStatusDisabled.md +0 -18
- data/docs/MCPStatusFailed.md +0 -20
- data/docs/MCPStatusNeedsAuth.md +0 -18
- data/docs/MCPStatusNeedsClientRegistration.md +0 -20
- data/docs/McpAddRequest.md +0 -20
- data/docs/McpAddRequestConfig.md +0 -32
- data/docs/McpAuthCallbackRequest.md +0 -18
- data/docs/McpAuthRemove200Response.md +0 -18
- data/docs/McpAuthStart200Response.md +0 -18
- data/docs/McpLocalConfig.md +0 -26
- data/docs/McpOAuthConfig.md +0 -22
- data/docs/McpRemoteConfig.md +0 -28
- data/docs/McpRemoteConfigOauth.md +0 -22
- data/docs/Message.md +0 -52
- data/docs/MessageAbortedError.md +0 -20
- data/docs/MessageOutputLengthError.md +0 -20
- data/docs/Model.md +0 -40
- data/docs/ModelApi.md +0 -22
- data/docs/ModelCapabilities.md +0 -30
- data/docs/ModelCapabilitiesInput.md +0 -26
- data/docs/ModelCapabilitiesInterleaved.md +0 -18
- data/docs/ModelCapabilitiesInterleavedAnyOf.md +0 -18
- data/docs/ModelCost.md +0 -24
- data/docs/ModelCostExperimentalOver200K.md +0 -22
- data/docs/NotFoundError.md +0 -20
- data/docs/OAuth.md +0 -26
- data/docs/Part.md +0 -76
- data/docs/PartAnyOf.md +0 -32
- data/docs/PatchPart.md +0 -28
- data/docs/Path.md +0 -26
- data/docs/Permission.md +0 -34
- data/docs/PermissionPattern.md +0 -15
- data/docs/PermissionRespondRequest.md +0 -18
- data/docs/Project.md +0 -28
- data/docs/ProjectTime.md +0 -22
- data/docs/ProjectUpdateRequest.md +0 -20
- data/docs/ProjectUpdateRequestIcon.md +0 -20
- data/docs/Provider.md +0 -30
- data/docs/ProviderAuthAuthorization.md +0 -22
- data/docs/ProviderAuthError.md +0 -20
- data/docs/ProviderAuthErrorData.md +0 -20
- data/docs/ProviderAuthMethod.md +0 -20
- data/docs/ProviderConfig.md +0 -34
- data/docs/ProviderConfigModelsValue.md +0 -50
- data/docs/ProviderConfigModelsValueInterleaved.md +0 -18
- data/docs/ProviderConfigModelsValueInterleavedAnyOf.md +0 -18
- data/docs/ProviderConfigOptions.md +0 -26
- data/docs/ProviderConfigOptionsTimeout.md +0 -15
- data/docs/ProviderList200Response.md +0 -22
- data/docs/ProviderList200ResponseAllInner.md +0 -28
- data/docs/ProviderList200ResponseAllInnerModelsValue.md +0 -50
- data/docs/ProviderList200ResponseAllInnerModelsValueCost.md +0 -26
- data/docs/ProviderList200ResponseAllInnerModelsValueCostContextOver200k.md +0 -24
- data/docs/ProviderList200ResponseAllInnerModelsValueInterleaved.md +0 -18
- data/docs/ProviderList200ResponseAllInnerModelsValueInterleavedAnyOf.md +0 -18
- data/docs/ProviderList200ResponseAllInnerModelsValueLimit.md +0 -20
- data/docs/ProviderList200ResponseAllInnerModelsValueModalities.md +0 -20
- data/docs/ProviderList200ResponseAllInnerModelsValueProvider.md +0 -18
- data/docs/ProviderOauthAuthorizeRequest.md +0 -18
- data/docs/ProviderOauthCallbackRequest.md +0 -20
- data/docs/Pty.md +0 -30
- data/docs/PtyCreateRequest.md +0 -26
- data/docs/PtyUpdateRequest.md +0 -20
- data/docs/PtyUpdateRequestSize.md +0 -20
- data/docs/Range.md +0 -20
- data/docs/RangeStart.md +0 -20
- data/docs/ReasoningPart.md +0 -30
- data/docs/RetryPart.md +0 -30
- data/docs/ServerConfig.md +0 -22
- data/docs/Session.md +0 -36
- data/docs/SessionApi.md +0 -145
- data/docs/SessionCommandRequest.md +0 -26
- data/docs/SessionCreateRequest.md +0 -20
- data/docs/SessionForkRequest.md +0 -18
- data/docs/SessionInitRequest.md +0 -22
- data/docs/SessionMessages200ResponseInner.md +0 -20
- data/docs/SessionPrompt200Response.md +0 -20
- data/docs/SessionPromptRequest.md +0 -30
- data/docs/SessionPromptRequestModel.md +0 -20
- data/docs/SessionPromptRequestPartsInner.md +0 -48
- data/docs/SessionRevert.md +0 -24
- data/docs/SessionRevertRequest.md +0 -20
- data/docs/SessionShare.md +0 -18
- data/docs/SessionShellRequest.md +0 -22
- data/docs/SessionStatus.md +0 -24
- data/docs/SessionStatusAnyOf.md +0 -18
- data/docs/SessionStatusAnyOf1.md +0 -24
- data/docs/SessionStatusAnyOf2.md +0 -18
- data/docs/SessionSummarizeRequest.md +0 -22
- data/docs/SessionSummary.md +0 -24
- data/docs/SessionTime.md +0 -24
- data/docs/SessionUpdateRequest.md +0 -20
- data/docs/SessionUpdateRequestTime.md +0 -18
- data/docs/SnapshotPart.md +0 -26
- data/docs/StepFinishPart.md +0 -32
- data/docs/StepStartPart.md +0 -26
- data/docs/SubtaskPartInput.md +0 -28
- data/docs/Symbol.md +0 -22
- data/docs/SymbolLocation.md +0 -20
- data/docs/SymbolSource.md +0 -28
- data/docs/TextPart.md +0 -34
- data/docs/TextPartInput.md +0 -30
- data/docs/TextPartTime.md +0 -20
- data/docs/Todo.md +0 -24
- data/docs/ToolListItem.md +0 -22
- data/docs/ToolPart.md +0 -32
- data/docs/ToolState.md +0 -34
- data/docs/ToolStateCompleted.md +0 -30
- data/docs/ToolStateCompletedTime.md +0 -22
- data/docs/ToolStateError.md +0 -26
- data/docs/ToolStateErrorTime.md +0 -20
- data/docs/ToolStatePending.md +0 -22
- data/docs/ToolStateRunning.md +0 -26
- data/docs/ToolStateRunningTime.md +0 -18
- data/docs/TuiControlNext200Response.md +0 -20
- data/docs/TuiExecuteCommandRequest.md +0 -18
- data/docs/TuiPublishRequest.md +0 -20
- data/docs/TuiShowToastRequest.md +0 -24
- data/docs/UnknownError.md +0 -20
- data/docs/UnknownErrorData.md +0 -18
- data/docs/UserMessage.md +0 -34
- data/docs/UserMessageSummary.md +0 -22
- data/docs/UserMessageTime.md +0 -18
- data/docs/VcsInfo.md +0 -18
- data/docs/WellKnownAuth.md +0 -22
- data/example_usage.rb +0 -37
- data/git_push.sh +0 -57
- data/opencode_client.gemspec +0 -39
- data/pkg/opencode_client-1.0.1.gem +0 -0
data/docs/AgentPartSource.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AgentPartSource
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **value** | **String** | | |
|
|
8
|
-
| **start** | **Integer** | | |
|
|
9
|
-
| **_end** | **Integer** | | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'opencode_client'
|
|
15
|
-
|
|
16
|
-
instance = OpencodeClient::AgentPartSource.new(
|
|
17
|
-
value: null,
|
|
18
|
-
start: null,
|
|
19
|
-
_end: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
data/docs/AgentPermission.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AgentPermission
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **edit** | **String** | | |
|
|
8
|
-
| **bash** | **Hash<String, String>** | | |
|
|
9
|
-
| **skill** | **Hash<String, String>** | | |
|
|
10
|
-
| **webfetch** | **String** | | [optional] |
|
|
11
|
-
| **doom_loop** | **String** | | [optional] |
|
|
12
|
-
| **external_directory** | **String** | | [optional] |
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```ruby
|
|
17
|
-
require 'opencode_client'
|
|
18
|
-
|
|
19
|
-
instance = OpencodeClient::AgentPermission.new(
|
|
20
|
-
edit: null,
|
|
21
|
-
bash: null,
|
|
22
|
-
skill: null,
|
|
23
|
-
webfetch: null,
|
|
24
|
-
doom_loop: null,
|
|
25
|
-
external_directory: null
|
|
26
|
-
)
|
|
27
|
-
```
|
|
28
|
-
|
data/docs/ApiAuth.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ApiAuth
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **type** | **String** | | |
|
|
8
|
-
| **key** | **String** | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'opencode_client'
|
|
14
|
-
|
|
15
|
-
instance = OpencodeClient::ApiAuth.new(
|
|
16
|
-
type: null,
|
|
17
|
-
key: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/AppLogRequest.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AppLogRequest
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **service** | **String** | Service name for the log entry | |
|
|
8
|
-
| **level** | **String** | Log level | |
|
|
9
|
-
| **message** | **String** | Log message | |
|
|
10
|
-
| **extra** | **Hash<String, Object>** | Additional metadata for the log entry | [optional] |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'opencode_client'
|
|
16
|
-
|
|
17
|
-
instance = OpencodeClient::AppLogRequest.new(
|
|
18
|
-
service: null,
|
|
19
|
-
level: null,
|
|
20
|
-
message: null,
|
|
21
|
-
extra: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
data/docs/AssistantMessage.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AssistantMessage
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | | |
|
|
8
|
-
| **session_id** | **String** | | |
|
|
9
|
-
| **role** | **String** | | |
|
|
10
|
-
| **time** | [**AssistantMessageTime**](AssistantMessageTime.md) | | |
|
|
11
|
-
| **error** | [**AssistantMessageError**](AssistantMessageError.md) | | [optional] |
|
|
12
|
-
| **parent_id** | **String** | | |
|
|
13
|
-
| **model_id** | **String** | | |
|
|
14
|
-
| **provider_id** | **String** | | |
|
|
15
|
-
| **mode** | **String** | | |
|
|
16
|
-
| **agent** | **String** | | |
|
|
17
|
-
| **path** | [**AssistantMessagePath**](AssistantMessagePath.md) | | |
|
|
18
|
-
| **summary** | **Boolean** | | [optional] |
|
|
19
|
-
| **cost** | **Float** | | |
|
|
20
|
-
| **tokens** | [**AssistantMessageTokens**](AssistantMessageTokens.md) | | |
|
|
21
|
-
| **finish** | **String** | | [optional] |
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```ruby
|
|
26
|
-
require 'opencode_client'
|
|
27
|
-
|
|
28
|
-
instance = OpencodeClient::AssistantMessage.new(
|
|
29
|
-
id: null,
|
|
30
|
-
session_id: null,
|
|
31
|
-
role: null,
|
|
32
|
-
time: null,
|
|
33
|
-
error: null,
|
|
34
|
-
parent_id: null,
|
|
35
|
-
model_id: null,
|
|
36
|
-
provider_id: null,
|
|
37
|
-
mode: null,
|
|
38
|
-
agent: null,
|
|
39
|
-
path: null,
|
|
40
|
-
summary: null,
|
|
41
|
-
cost: null,
|
|
42
|
-
tokens: null,
|
|
43
|
-
finish: null
|
|
44
|
-
)
|
|
45
|
-
```
|
|
46
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AssistantMessageError
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **name** | **String** | | |
|
|
8
|
-
| **data** | [**APIErrorData**](APIErrorData.md) | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'opencode_client'
|
|
14
|
-
|
|
15
|
-
instance = OpencodeClient::AssistantMessageError.new(
|
|
16
|
-
name: null,
|
|
17
|
-
data: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AssistantMessagePath
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **cwd** | **String** | | |
|
|
8
|
-
| **root** | **String** | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'opencode_client'
|
|
14
|
-
|
|
15
|
-
instance = OpencodeClient::AssistantMessagePath.new(
|
|
16
|
-
cwd: null,
|
|
17
|
-
root: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AssistantMessageTime
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **created** | **Float** | | |
|
|
8
|
-
| **completed** | **Float** | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'opencode_client'
|
|
14
|
-
|
|
15
|
-
instance = OpencodeClient::AssistantMessageTime.new(
|
|
16
|
-
created: null,
|
|
17
|
-
completed: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AssistantMessageTokens
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **input** | **Float** | | |
|
|
8
|
-
| **output** | **Float** | | |
|
|
9
|
-
| **reasoning** | **Float** | | |
|
|
10
|
-
| **cache** | [**AssistantMessageTokensCache**](AssistantMessageTokensCache.md) | | |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'opencode_client'
|
|
16
|
-
|
|
17
|
-
instance = OpencodeClient::AssistantMessageTokens.new(
|
|
18
|
-
input: null,
|
|
19
|
-
output: null,
|
|
20
|
-
reasoning: null,
|
|
21
|
-
cache: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::AssistantMessageTokensCache
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **read** | **Float** | | |
|
|
8
|
-
| **write** | **Float** | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'opencode_client'
|
|
14
|
-
|
|
15
|
-
instance = OpencodeClient::AssistantMessageTokensCache.new(
|
|
16
|
-
read: null,
|
|
17
|
-
write: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/Auth.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::Auth
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **type** | **String** | | |
|
|
8
|
-
| **refresh** | **String** | | |
|
|
9
|
-
| **access** | **String** | | |
|
|
10
|
-
| **expires** | **Float** | | |
|
|
11
|
-
| **enterprise_url** | **String** | | [optional] |
|
|
12
|
-
| **key** | **String** | | |
|
|
13
|
-
| **token** | **String** | | |
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```ruby
|
|
18
|
-
require 'opencode_client'
|
|
19
|
-
|
|
20
|
-
instance = OpencodeClient::Auth.new(
|
|
21
|
-
type: null,
|
|
22
|
-
refresh: null,
|
|
23
|
-
access: null,
|
|
24
|
-
expires: null,
|
|
25
|
-
enterprise_url: null,
|
|
26
|
-
key: null,
|
|
27
|
-
token: null
|
|
28
|
-
)
|
|
29
|
-
```
|
|
30
|
-
|
data/docs/BadRequestError.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::BadRequestError
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **data** | **Object** | | |
|
|
8
|
-
| **errors** | **Array<Hash<String, Object>>** | | |
|
|
9
|
-
| **success** | **Boolean** | | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'opencode_client'
|
|
15
|
-
|
|
16
|
-
instance = OpencodeClient::BadRequestError.new(
|
|
17
|
-
data: null,
|
|
18
|
-
errors: null,
|
|
19
|
-
success: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
data/docs/Command.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::Command
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **name** | **String** | | |
|
|
8
|
-
| **description** | **String** | | [optional] |
|
|
9
|
-
| **agent** | **String** | | [optional] |
|
|
10
|
-
| **model** | **String** | | [optional] |
|
|
11
|
-
| **template** | **String** | | |
|
|
12
|
-
| **subtask** | **Boolean** | | [optional] |
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```ruby
|
|
17
|
-
require 'opencode_client'
|
|
18
|
-
|
|
19
|
-
instance = OpencodeClient::Command.new(
|
|
20
|
-
name: null,
|
|
21
|
-
description: null,
|
|
22
|
-
agent: null,
|
|
23
|
-
model: null,
|
|
24
|
-
template: null,
|
|
25
|
-
subtask: null
|
|
26
|
-
)
|
|
27
|
-
```
|
|
28
|
-
|
data/docs/CompactionPart.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::CompactionPart
|
|
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
|
-
| **auto** | **Boolean** | | |
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'opencode_client'
|
|
17
|
-
|
|
18
|
-
instance = OpencodeClient::CompactionPart.new(
|
|
19
|
-
id: null,
|
|
20
|
-
session_id: null,
|
|
21
|
-
message_id: null,
|
|
22
|
-
type: null,
|
|
23
|
-
auto: null
|
|
24
|
-
)
|
|
25
|
-
```
|
|
26
|
-
|
data/docs/Config.md
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::Config
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **schema** | **String** | JSON schema reference for configuration validation | [optional] |
|
|
8
|
-
| **theme** | **String** | Theme name to use for the interface | [optional] |
|
|
9
|
-
| **keybinds** | [**KeybindsConfig**](KeybindsConfig.md) | | [optional] |
|
|
10
|
-
| **log_level** | [**LogLevel**](LogLevel.md) | | [optional] |
|
|
11
|
-
| **tui** | [**ConfigTui**](ConfigTui.md) | | [optional] |
|
|
12
|
-
| **server** | [**ServerConfig**](ServerConfig.md) | | [optional] |
|
|
13
|
-
| **command** | [**Hash<String, ConfigCommandValue>**](ConfigCommandValue.md) | Command configuration, see https://opencode.ai/docs/commands | [optional] |
|
|
14
|
-
| **watcher** | [**ConfigWatcher**](ConfigWatcher.md) | | [optional] |
|
|
15
|
-
| **plugin** | **Array<String>** | | [optional] |
|
|
16
|
-
| **snapshot** | **Boolean** | | [optional] |
|
|
17
|
-
| **share** | **String** | Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing | [optional] |
|
|
18
|
-
| **autoshare** | **Boolean** | @deprecated Use 'share' field instead. Share newly created sessions automatically | [optional] |
|
|
19
|
-
| **autoupdate** | [**ConfigAutoupdate**](ConfigAutoupdate.md) | | [optional] |
|
|
20
|
-
| **disabled_providers** | **Array<String>** | Disable providers that are loaded automatically | [optional] |
|
|
21
|
-
| **enabled_providers** | **Array<String>** | When set, ONLY these providers will be enabled. All other providers will be ignored | [optional] |
|
|
22
|
-
| **model** | **String** | Model to use in the format of provider/model, eg anthropic/claude-2 | [optional] |
|
|
23
|
-
| **small_model** | **String** | Small model to use for tasks like title generation in the format of provider/model | [optional] |
|
|
24
|
-
| **default_agent** | **String** | Default agent to use when none is specified. Must be a primary agent. Falls back to 'build' if not set or if the specified agent is invalid. | [optional] |
|
|
25
|
-
| **username** | **String** | Custom username to display in conversations instead of system username | [optional] |
|
|
26
|
-
| **clerk_code** | **String** | THAPE clerk code. Auto-populated from SSO when available | [optional] |
|
|
27
|
-
| **mode** | [**ConfigMode**](ConfigMode.md) | | [optional] |
|
|
28
|
-
| **agent** | [**ConfigAgent**](ConfigAgent.md) | | [optional] |
|
|
29
|
-
| **provider** | [**Hash<String, ProviderConfig>**](ProviderConfig.md) | Custom provider configurations and model overrides | [optional] |
|
|
30
|
-
| **mcp** | [**Hash<String, McpAddRequestConfig>**](McpAddRequestConfig.md) | MCP (Model Context Protocol) server configurations | [optional] |
|
|
31
|
-
| **formatter** | [**ConfigFormatter**](ConfigFormatter.md) | | [optional] |
|
|
32
|
-
| **lsp** | [**ConfigLsp**](ConfigLsp.md) | | [optional] |
|
|
33
|
-
| **instructions** | **Array<String>** | Additional instruction files or patterns to include | [optional] |
|
|
34
|
-
| **layout** | [**LayoutConfig**](LayoutConfig.md) | | [optional] |
|
|
35
|
-
| **permission** | [**AgentConfigPermission**](AgentConfigPermission.md) | | [optional] |
|
|
36
|
-
| **tools** | **Hash<String, Boolean>** | | [optional] |
|
|
37
|
-
| **enterprise** | [**ConfigEnterprise**](ConfigEnterprise.md) | | [optional] |
|
|
38
|
-
| **compaction** | [**ConfigCompaction**](ConfigCompaction.md) | | [optional] |
|
|
39
|
-
| **experimental** | [**ConfigExperimental**](ConfigExperimental.md) | | [optional] |
|
|
40
|
-
|
|
41
|
-
## Example
|
|
42
|
-
|
|
43
|
-
```ruby
|
|
44
|
-
require 'opencode_client'
|
|
45
|
-
|
|
46
|
-
instance = OpencodeClient::Config.new(
|
|
47
|
-
schema: null,
|
|
48
|
-
theme: null,
|
|
49
|
-
keybinds: null,
|
|
50
|
-
log_level: null,
|
|
51
|
-
tui: null,
|
|
52
|
-
server: null,
|
|
53
|
-
command: null,
|
|
54
|
-
watcher: null,
|
|
55
|
-
plugin: null,
|
|
56
|
-
snapshot: null,
|
|
57
|
-
share: null,
|
|
58
|
-
autoshare: null,
|
|
59
|
-
autoupdate: null,
|
|
60
|
-
disabled_providers: null,
|
|
61
|
-
enabled_providers: null,
|
|
62
|
-
model: null,
|
|
63
|
-
small_model: null,
|
|
64
|
-
default_agent: null,
|
|
65
|
-
username: null,
|
|
66
|
-
clerk_code: null,
|
|
67
|
-
mode: null,
|
|
68
|
-
agent: null,
|
|
69
|
-
provider: null,
|
|
70
|
-
mcp: null,
|
|
71
|
-
formatter: null,
|
|
72
|
-
lsp: null,
|
|
73
|
-
instructions: null,
|
|
74
|
-
layout: null,
|
|
75
|
-
permission: null,
|
|
76
|
-
tools: null,
|
|
77
|
-
enterprise: null,
|
|
78
|
-
compaction: null,
|
|
79
|
-
experimental: null
|
|
80
|
-
)
|
|
81
|
-
```
|
|
82
|
-
|
data/docs/ConfigAgent.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigAgent
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **plan** | [**AgentConfig**](AgentConfig.md) | | [optional] |
|
|
8
|
-
| **build** | [**AgentConfig**](AgentConfig.md) | | [optional] |
|
|
9
|
-
| **general** | [**AgentConfig**](AgentConfig.md) | | [optional] |
|
|
10
|
-
| **explore** | [**AgentConfig**](AgentConfig.md) | | [optional] |
|
|
11
|
-
| **title** | [**AgentConfig**](AgentConfig.md) | | [optional] |
|
|
12
|
-
| **summary** | [**AgentConfig**](AgentConfig.md) | | [optional] |
|
|
13
|
-
| **compaction** | [**AgentConfig**](AgentConfig.md) | | [optional] |
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```ruby
|
|
18
|
-
require 'opencode_client'
|
|
19
|
-
|
|
20
|
-
instance = OpencodeClient::ConfigAgent.new(
|
|
21
|
-
plan: null,
|
|
22
|
-
build: null,
|
|
23
|
-
general: null,
|
|
24
|
-
explore: null,
|
|
25
|
-
title: null,
|
|
26
|
-
summary: null,
|
|
27
|
-
compaction: null
|
|
28
|
-
)
|
|
29
|
-
```
|
|
30
|
-
|
data/docs/ConfigAutoupdate.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigAutoupdate
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
|
|
8
|
-
## Example
|
|
9
|
-
|
|
10
|
-
```ruby
|
|
11
|
-
require 'opencode_client'
|
|
12
|
-
|
|
13
|
-
instance = OpencodeClient::ConfigAutoupdate.new()
|
|
14
|
-
```
|
|
15
|
-
|
data/docs/ConfigCommandValue.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigCommandValue
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **template** | **String** | | |
|
|
8
|
-
| **description** | **String** | | [optional] |
|
|
9
|
-
| **agent** | **String** | | [optional] |
|
|
10
|
-
| **model** | **String** | | [optional] |
|
|
11
|
-
| **subtask** | **Boolean** | | [optional] |
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'opencode_client'
|
|
17
|
-
|
|
18
|
-
instance = OpencodeClient::ConfigCommandValue.new(
|
|
19
|
-
template: null,
|
|
20
|
-
description: null,
|
|
21
|
-
agent: null,
|
|
22
|
-
model: null,
|
|
23
|
-
subtask: null
|
|
24
|
-
)
|
|
25
|
-
```
|
|
26
|
-
|
data/docs/ConfigCompaction.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigCompaction
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **auto** | **Boolean** | Enable automatic compaction when context is full (default: true) | [optional] |
|
|
8
|
-
| **prune** | **Boolean** | Enable pruning of old tool outputs (default: true) | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'opencode_client'
|
|
14
|
-
|
|
15
|
-
instance = OpencodeClient::ConfigCompaction.new(
|
|
16
|
-
auto: null,
|
|
17
|
-
prune: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/ConfigEnterprise.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigEnterprise
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **url** | **String** | Enterprise URL | [optional] |
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'opencode_client'
|
|
13
|
-
|
|
14
|
-
instance = OpencodeClient::ConfigEnterprise.new(
|
|
15
|
-
url: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
data/docs/ConfigExperimental.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigExperimental
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **hook** | [**ConfigExperimentalHook**](ConfigExperimentalHook.md) | | [optional] |
|
|
8
|
-
| **chat_max_retries** | **Float** | Number of retries for chat completions on failure | [optional] |
|
|
9
|
-
| **disable_paste_summary** | **Boolean** | | [optional] |
|
|
10
|
-
| **batch_tool** | **Boolean** | Enable the batch tool | [optional] |
|
|
11
|
-
| **open_telemetry** | **Boolean** | Enable OpenTelemetry spans for AI SDK calls (using the 'experimental_telemetry' flag) | [optional] |
|
|
12
|
-
| **primary_tools** | **Array<String>** | Tools that should only be available to primary agents. | [optional] |
|
|
13
|
-
| **continue_loop_on_deny** | **Boolean** | Continue the agent loop when a tool call is denied | [optional] |
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```ruby
|
|
18
|
-
require 'opencode_client'
|
|
19
|
-
|
|
20
|
-
instance = OpencodeClient::ConfigExperimental.new(
|
|
21
|
-
hook: null,
|
|
22
|
-
chat_max_retries: null,
|
|
23
|
-
disable_paste_summary: null,
|
|
24
|
-
batch_tool: null,
|
|
25
|
-
open_telemetry: null,
|
|
26
|
-
primary_tools: null,
|
|
27
|
-
continue_loop_on_deny: null
|
|
28
|
-
)
|
|
29
|
-
```
|
|
30
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigExperimentalHook
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **file_edited** | **Hash<String, Array<ConfigExperimentalHookFileEditedValueInner>>** | | [optional] |
|
|
8
|
-
| **session_completed** | [**Array<ConfigExperimentalHookFileEditedValueInner>**](ConfigExperimentalHookFileEditedValueInner.md) | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'opencode_client'
|
|
14
|
-
|
|
15
|
-
instance = OpencodeClient::ConfigExperimentalHook.new(
|
|
16
|
-
file_edited: null,
|
|
17
|
-
session_completed: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigExperimentalHookFileEditedValueInner
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **command** | **Array<String>** | | |
|
|
8
|
-
| **environment** | **Hash<String, String>** | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'opencode_client'
|
|
14
|
-
|
|
15
|
-
instance = OpencodeClient::ConfigExperimentalHookFileEditedValueInner.new(
|
|
16
|
-
command: null,
|
|
17
|
-
environment: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/ConfigFormatter.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigFormatter
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
|
|
8
|
-
## Example
|
|
9
|
-
|
|
10
|
-
```ruby
|
|
11
|
-
require 'opencode_client'
|
|
12
|
-
|
|
13
|
-
instance = OpencodeClient::ConfigFormatter.new()
|
|
14
|
-
```
|
|
15
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# OpencodeClient::ConfigFormatterAnyOfValue
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **disabled** | **Boolean** | | [optional] |
|
|
8
|
-
| **command** | **Array<String>** | | [optional] |
|
|
9
|
-
| **environment** | **Hash<String, String>** | | [optional] |
|
|
10
|
-
| **extensions** | **Array<String>** | | [optional] |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'opencode_client'
|
|
16
|
-
|
|
17
|
-
instance = OpencodeClient::ConfigFormatterAnyOfValue.new(
|
|
18
|
-
disabled: null,
|
|
19
|
-
command: null,
|
|
20
|
-
environment: null,
|
|
21
|
-
extensions: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|