chore: generate

This commit is contained in:
opencode-agent[bot]
2026-02-10 20:03:24 +00:00
committed by opencode
parent 55119559b3
commit 4f6b929784
21 changed files with 569 additions and 565 deletions

View File

@@ -29,16 +29,16 @@ opencode [project]
#### Flags
| Flag | Short | Description |
| ------------ | ----- | --------------------------------------------------------------------- |
| `--continue` | `-c` | 最後のセッションを続行 |
| `--session` | | 続行時にセッションをフォーク (`-s` または `--fork` と併用) |
| `--continue` | `--session` | 続行するセッション ID |
| `--prompt` | | 使用のプロンプト |
| `--model` | `-m` | プロバイダー/モデルの形式で使用するモデル |
| `--agent` | | 使用するエージェント |
| `--port` | | リッスンするポート |
| `--hostname` | | リッスンするホスト名 |
| Flag | Short | Description |
| ------------ | ----------- | ---------------------------------------------------------- |
| `--continue` | `-c` | 最後のセッションを続行 |
| `--session` | | 続行時にセッションをフォーク (`-s` または `--fork` と併用) |
| `--continue` | `--session` | 続行するセッション ID |
| `--prompt` | | 使用のプロンプト |
| `--model` | `-m` | プロバイダー/モデルの形式で使用するモデル |
| `--agent` | | 使用するエージェント |
| `--port` | | リッスンするポート |
| `--hostname` | | リッスンするホスト名 |
---
@@ -335,20 +335,20 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
#### Flags
| Flag | Short | Description |
| ------------ | ----- | ----------------------------------------------------------------------------------------- |
| `--command` | | 実行するコマンド。引数には message を使用します。 |
| `--continue` | `-c` | 最後のセッションを続行 |
| `--session` | | 続行時にセッションをフォーク (`-s` または `--fork` と併用) |
| `--continue` | `--session` | 続行するセッション ID |
| `--share` | | セッションを共有する |
| `--model` | `-m` | プロバイダー/モデルの形式で使用するモデル |
| `--agent` | | 使用するエージェント |
| `--file` | `-f` | メッセージに添付するファイル |
| `--format` | | 形式: デフォルト (フォーマット済み) または json (生の JSON イベント) |
| `--title` | | セッションのタイトル (値が指定されていない場合は、切り詰められたプロンプトが使用されます) |
| `--attach` | | 実行中のopencodeサーバー (http://localhost:4096 など) に接続します。 |
| `--port` | | ローカルサーバーのポート (デフォルトはランダムポート) |
| Flag | Short | Description |
| ------------ | ----------- | ----------------------------------------------------------------------------------------- |
| `--command` | | 実行するコマンド。引数には message を使用します。 |
| `--continue` | `-c` | 最後のセッションを続行 |
| `--session` | | 続行時にセッションをフォーク (`-s` または `--fork` と併用) |
| `--continue` | `--session` | 続行するセッション ID |
| `--share` | | セッションを共有する |
| `--model` | `-m` | プロバイダー/モデルの形式で使用するモデル |
| `--agent` | | 使用するエージェント |
| `--file` | `-f` | メッセージに添付するファイル |
| `--format` | | 形式: デフォルト (フォーマット済み) または json (生の JSON イベント) |
| `--title` | | セッションのタイトル (値が指定されていない場合は、切り詰められたプロンプトが使用されます) |
| `--attach` | | 実行中のopencodeサーバー (http://localhost:4096 など) に接続します。 |
| `--port` | | ローカルサーバーのポート (デフォルトはランダムポート) |
---

View File

@@ -71,7 +71,7 @@ opencode github install
model: anthropic/claude-sonnet-4-20250514
# share: true
# github_token: xxxx
```
```
3. **API キーをシークレットに保存します**
@@ -90,12 +90,12 @@ opencode github install
あるいは、OpenCode GitHub アプリをインストールせずに、GitHub Action ランナーの [組み込み `GITHUB_TOKEN`](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token) を使用することもできます。ワークフローで必要な権限を必ず付与してください。
```yaml
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
```
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
```
必要に応じて、[パーソナル アクセス トークン](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)(PAT) を使用することもできます。
@@ -279,7 +279,7 @@ GitHub で OpenCode を使用する方法の例をいくつか示します。
```
/opencode explain this issue
```
```
OpenCode は、すべてのコメントを含むスレッド全体を読み取り、明確な説明を返信します。
@@ -289,7 +289,7 @@ GitHub の問題で次のように言います。
```
/opencode fix this
```
```
そして、OpenCode は新しいブランチを作成し、変更を実装し、変更を含む PR を開きます。
@@ -299,7 +299,7 @@ GitHub PR に次のコメントを残してください。
```
Delete the attachment from S3 when the note is removed /oc
```
```
OpenCode は要求された変更を実装し、同じ PR にコミットします。
@@ -310,7 +310,7 @@ PR の「ファイル」タブのコード行に直接コメントを残しま
```
[Comment on specific lines in Files tab]
/oc add error handling here
```
```
特定の行にコメントすると、OpenCode は以下を受け取ります。

View File

@@ -170,7 +170,7 @@ GitLab で OpenCode を使用する方法の例をいくつか示します。
```
@opencode explain this issue
```
```
OpenCode は問題を読み、明確な説明を返信します。
@@ -180,7 +180,7 @@ GitLab の問題では、次のように言います。
```
@opencode fix this
```
```
OpenCode は新しいブランチを作成し、変更を実装し、変更を含むマージ リクエストを開きます。
@@ -190,6 +190,6 @@ GitLab マージ リクエストに次のコメントを残してください。
```
@opencode review this merge request
```
```
OpenCode はマージ リクエストをレビューし、フィードバックを提供します。

View File

@@ -230,7 +230,7 @@ OpenCode には、変更を加える機能を無効にする _Plan mode_ があ
```bash frame="none" title="Switch to Plan mode"
<TAB>
```
```
では、何をしたいのかを説明しましょう。
@@ -238,7 +238,7 @@ OpenCode には、変更を加える機能を無効にする _Plan mode_ があ
When a user deletes a note, we'd like to flag it as deleted in the database.
Then create a screen that shows all the recently deleted notes.
From this screen, the user can undelete a note or permanently delete it.
```
```
自分が何を望んでいるのかを理解するために、OpenCode に十分な詳細を提供したいと考えています。役に立ちます
チームの若手開発者と話しているように話すことができます。
@@ -255,7 +255,7 @@ want.
```txt frame="none"
We'd like to design this new screen using a design I've used before.
[Image #1] Take a look at this image and use it as a reference.
```
```
:::tip
画像をterminal にドラッグ アンド ドロップして、プロンプトに追加します。
@@ -271,13 +271,13 @@ OpenCode は、指定された画像をスキャンしてプロンプトに追
```bash frame="none"
<TAB>
```
```
そして変更を加えるように依頼します。
```bash frame="none"
Sounds good! Go ahead and make the changes.
```
```
---

View File

@@ -148,32 +148,32 @@ opencode の実行中に次の環境変数のいずれかを設定します。
# Option 3: Using Bedrock bearer token
AWS_BEARER_TOKEN_BEDROCK=XXX opencode
```
```
または、それらを bash プロファイルに追加します。
```bash title="~/.bash_profile"
export AWS_PROFILE=my-dev-profile
export AWS_REGION=us-east-1
```
```
#### 設定ファイル (推奨)
プロジェクト固有の構成または永続的な構成の場合は、`opencode.json` を使用します。
```json title="opencode.json"
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"amazon-bedrock": {
"options": {
"region": "us-east-1",
"profile": "my-aws-profile"
}
}
}
}
```
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"amazon-bedrock": {
"options": {
"region": "us-east-1",
"profile": "my-aws-profile"
}
}
}
}
```
**利用可能なオプション:**
@@ -190,19 +190,19 @@ opencode の実行中に次の環境変数のいずれかを設定します。
Bedrock の VPC エンドポイントを使用している場合:
```json title="opencode.json"
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"amazon-bedrock": {
"options": {
"region": "us-east-1",
"profile": "production",
"endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
}
}
}
}
```
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"amazon-bedrock": {
"options": {
"region": "us-east-1",
"profile": "production",
"endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
}
}
}
}
```
:::note
`endpoint` オプションは、AWS 固有の用語を使用した汎用の `baseURL` オプションのエイリアスです。 `endpoint` と `baseURL` の両方が指定された場合は、`endpoint` が優先されます。
@@ -334,7 +334,7 @@ opencodeが正しく動作するには、デプロイメント名がモデル名
```bash title="~/.bash_profile"
export AZURE_RESOURCE_NAME=XXX
```
```
6. `/models` コマンドを実行して、デプロイされたモデルを選択します。
@@ -381,7 +381,7 @@ opencodeが正しく動作するには、デプロイメント名がモデル名
```bash title="~/.bash_profile"
export AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX
```
```
6. `/models` コマンドを実行して、デプロイされたモデルを選択します。
@@ -477,7 +477,7 @@ Cloudflare AI Gatewayを使用すると、統合エンドポイントを通じ
```bash title="~/.bash_profile"
export CLOUDFLARE_API_TOKEN=your-api-token
```
```
5. `/models` コマンドを実行してモデルを選択します。
@@ -488,18 +488,18 @@ Cloudflare AI Gatewayを使用すると、統合エンドポイントを通じ
opencode構成を通じてモデルを追加することもできます。
```json title="opencode.json"
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"cloudflare-ai-gateway": {
"models": {
"openai/gpt-4o": {},
"anthropic/claude-sonnet-4": {}
}
}
}
}
```
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"cloudflare-ai-gateway": {
"models": {
"openai/gpt-4o": {},
"anthropic/claude-sonnet-4": {}
}
}
}
}
```
---
@@ -673,8 +673,10 @@ GitLab Duo は、GitLab の Anthropic プロキシを介したネイティブ
6. `/models` コマンドを実行して、利用可能なモデルを確認します。
```txt
/models
```
/models
```
````
3 つのクロードベースのモデルが利用可能です。
@@ -697,11 +699,11 @@ OpenCode は、セッション タイトルの生成などの一部の AI タス
```json
{
"$schema": "https://opencode.ai/config.json",
"small_model": "gitlab/duo-chat-haiku-4-5",
"share": "disabled"
"$schema": "https://opencode.ai/config.json",
"small_model": "gitlab/duo-chat-haiku-4-5",
"share": "disabled"
}
```
````
:::
@@ -848,7 +850,7 @@ opencode の実行中に設定します。
```bash
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_CLOUD_PROJECT=your-project-id opencode
```
```
または、それらを bash プロファイルに追加します。
@@ -856,7 +858,7 @@ opencode の実行中に設定します。
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
export GOOGLE_CLOUD_PROJECT=your-project-id
export VERTEX_LOCATION=global
```
```
:::tip
`global` 領域は、追加コストなしで可用性を向上させ、エラーを削減します。データ常駐要件には、リージョン エンドポイント (`us-central1` など) を使用します。 [詳細はこちら](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional_and_global_endpoints)
@@ -1394,17 +1396,17 @@ OpenCode Zen は、OpenCode チームによって提供される、テストお
opencode構成を通じて追加のモデルを追加することもできます。
```json title="opencode.json" {6}
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openrouter": {
"models": {
"somecoolnewmodel": {}
}
}
}
}
```
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openrouter": {
"models": {
"somecoolnewmodel": {}
}
}
}
}
```
5. opencode設定を通じてカスタマイズすることもできます。プロバイダーを指定する例を次に示します。
@@ -1459,13 +1461,13 @@ SAP AI コアは、統合プラットフォームを通じて、OpenAI、Anthrop
```bash
AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' opencode
```
```
または、bash プロファイルに追加します。
```bash title="~/.bash_profile"
export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'
```
```
4. 必要に応じて、デプロイメント ID とリソース グループを設定します。
@@ -1735,17 +1737,17 @@ opencode構成を通じてモデルをカスタマイズすることもできま
opencode構成を通じて追加のモデルを追加することもできます。
```json title="opencode.json" {6}
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"zenmux": {
"models": {
"somecoolnewmodel": {}
}
}
}
}
```
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"zenmux": {
"models": {
"somecoolnewmodel": {}
}
}
}
}
```
---