feat: management of opencode upgrade

This commit is contained in:
Gab 2026-03-26 13:54:53 +11:00
parent c095414857
commit a42f8fa99f
37 changed files with 80 additions and 80 deletions

View File

@ -377,9 +377,9 @@ opencode session list
opencode session delete <sessionID> opencode session delete <sessionID>
opencode stats opencode stats
opencode uninstall opencode uninstall
opencode upgrade tfcode upgrade
opencode upgrade [target] tfcode upgrade [target]
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
opencode web opencode web
opencode web --cors https://example.com opencode web --cors https://example.com
opencode web --hostname 0.0.0.0 opencode web --hostname 0.0.0.0

View File

@ -513,19 +513,19 @@ opencode uninstall
تحديث opencode إلى أحدث إصدار أو إلى إصدار محدد. تحديث opencode إلى أحدث إصدار أو إلى إصدار محدد.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
للترقية إلى أحدث إصدار. للترقية إلى أحدث إصدار.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
للترقية إلى إصدار محدد. للترقية إلى إصدار محدد.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### الرايات #### الرايات

View File

@ -199,7 +199,7 @@ description: المشكلات الشائعة وكيفية حلها.
1. تحقق من السجلات بحثا عن رسائل الخطأ 1. تحقق من السجلات بحثا عن رسائل الخطأ
2. جرّب التشغيل مع `--print-logs` لرؤية المخرجات في terminal 2. جرّب التشغيل مع `--print-logs` لرؤية المخرجات في terminal
3. تأكد من أنك تستخدم أحدث إصدار عبر `opencode upgrade` 3. تأكد من أنك تستخدم أحدث إصدار عبر `tfcode upgrade`
--- ---

View File

@ -510,19 +510,19 @@ opencode uninstall
Ažurira OpenCode na najnoviju verziju ili određenu verziju. Ažurira OpenCode na najnoviju verziju ili određenu verziju.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
Za nadogradnju na najnoviju verziju. Za nadogradnju na najnoviju verziju.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Za nadogradnju na određenu verziju. Za nadogradnju na određenu verziju.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Opcije #### Opcije

View File

@ -199,7 +199,7 @@ Evo nekih uobičajenih problema i kako ih riješiti.
1. Provjerite dnevnike za poruke o greškama 1. Provjerite dnevnike za poruke o greškama
2. Pokušajte pokrenuti sa `--print-logs` da vidite izlaz u terminalu 2. Pokušajte pokrenuti sa `--print-logs` da vidite izlaz u terminalu
3. Uvjerite se da imate najnoviju verziju sa `opencode upgrade` 3. Uvjerite se da imate najnoviju verziju sa `tfcode upgrade`
--- ---

View File

@ -510,22 +510,22 @@ opencode uninstall
### upgrade ### upgrade
Updates opencode to the latest version or a specific version. Updates tfcode to the latest version or a specific version.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
To upgrade to the latest version. To upgrade to the latest version.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
To upgrade to a specific version. To upgrade to a specific version.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Flags #### Flags

View File

@ -513,19 +513,19 @@ opencode uninstall
Opdaterer OpenCode til den nyeste version eller en specifik version. Opdaterer OpenCode til den nyeste version eller en specifik version.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
For at opgradere til den nyeste version. For at opgradere til den nyeste version.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
For at opgradere til en bestemt version. For at opgradere til en bestemt version.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### upgrade #### upgrade

View File

@ -199,7 +199,7 @@ Her er nogle almindelige problemer og hvordan du kan løse dem.
1. Tjek logfilerne for fejlmeddelelser 1. Tjek logfilerne for fejlmeddelelser
2. Prøv at køre med `--print-logs` for at se output i terminalen 2. Prøv at køre med `--print-logs` for at se output i terminalen
3. Sørg for at du har den nyeste version med `opencode upgrade` 3. Sørg for at du har den nyeste version med `tfcode upgrade`
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
Aktualisiert OpenCode auf die neueste Version oder eine bestimmte Version. Aktualisiert OpenCode auf die neueste Version oder eine bestimmte Version.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
Um auf die neueste Version zu aktualisieren: Um auf die neueste Version zu aktualisieren:
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Um auf eine bestimmte Version zu aktualisieren. Um auf eine bestimmte Version zu aktualisieren.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Optionen #### Optionen

View File

@ -200,7 +200,7 @@ Hier sind typische Fehlerbilder und wie du sie loest.
1. Pruefe die Logs auf Fehlermeldungen 1. Pruefe die Logs auf Fehlermeldungen
2. Versuche den Start mit `--print-logs`, um Ausgaben im Terminal zu sehen 2. Versuche den Start mit `--print-logs`, um Ausgaben im Terminal zu sehen
3. Stelle sicher, dass du die neueste Version hast: `opencode upgrade` 3. Stelle sicher, dass du die neueste Version hast: `tfcode upgrade`
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
Actualiza opencode a la última versión o a una versión específica. Actualiza opencode a la última versión o a una versión específica.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
Para actualizar a la última versión. Para actualizar a la última versión.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Para actualizar a una versión específica. Para actualizar a una versión específica.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Opciones #### Opciones

View File

@ -199,7 +199,7 @@ A continuación se detallan algunos problemas comunes y cómo resolverlos.
1. Verifique los registros en busca de mensajes de error. 1. Verifique los registros en busca de mensajes de error.
2. Intente ejecutar con `--print-logs` para ver el resultado en la terminal. 2. Intente ejecutar con `--print-logs` para ver el resultado en la terminal.
3. Asegúrese de tener la última versión con `opencode upgrade` 3. Asegúrese de tener la última versión con `tfcode upgrade`
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
Met à jour opencode vers la dernière version ou une version spécifique. Met à jour opencode vers la dernière version ou une version spécifique.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
Pour mettre à niveau vers la dernière version. Pour mettre à niveau vers la dernière version.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Pour passer à une version spécifique. Pour passer à une version spécifique.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Options #### Options

View File

@ -199,7 +199,7 @@ Voici quelques problèmes courants et comment les résoudre.
1. Vérifiez les journaux pour les messages d'erreur 1. Vérifiez les journaux pour les messages d'erreur
2. Essayez d'exécuter avec `--print-logs` pour voir la sortie dans le terminal 2. Essayez d'exécuter avec `--print-logs` pour voir la sortie dans le terminal
3. Assurez-vous d'avoir la dernière version avec `opencode upgrade` 3. Assurez-vous d'avoir la dernière version avec `tfcode upgrade`
--- ---

View File

@ -45,28 +45,28 @@ You can also install it with the following commands:
<TabItem label="npm"> <TabItem label="npm">
```bash ```bash
npm install -g opencode-ai npm install -g @toothfairyai/tfcode
``` ```
</TabItem> </TabItem>
<TabItem label="Bun"> <TabItem label="Bun">
```bash ```bash
bun install -g opencode-ai bun install -g @toothfairyai/tfcode
``` ```
</TabItem> </TabItem>
<TabItem label="pnpm"> <TabItem label="pnpm">
```bash ```bash
pnpm install -g opencode-ai pnpm install -g @toothfairyai/tfcode
``` ```
</TabItem> </TabItem>
<TabItem label="Yarn"> <TabItem label="Yarn">
```bash ```bash
yarn global add opencode-ai yarn global add @toothfairyai/tfcode
``` ```
</TabItem> </TabItem>
@ -109,7 +109,7 @@ For the best experience on Windows, we recommend using [Windows Subsystem for Li
- **Using NPM** - **Using NPM**
```bash ```bash
npm install -g opencode-ai npm install -g @toothfairyai/tfcode
``` ```
- **Using Mise** - **Using Mise**

View File

@ -513,19 +513,19 @@ opencode uninstall
Aggiorna opencode all'ultima versione o a una versione specifica. Aggiorna opencode all'ultima versione o a una versione specifica.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
Per aggiornare all'ultima versione: Per aggiornare all'ultima versione:
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Per aggiornare a una versione specifica: Per aggiornare a una versione specifica:
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Flag #### Flag

View File

@ -199,7 +199,7 @@ Ecco alcuni problemi comuni e come risolverli.
1. Controlla i log per eventuali messaggi di errore 1. Controlla i log per eventuali messaggi di errore
2. Prova a eseguire con `--print-logs` per vedere l'output nel terminale 2. Prova a eseguire con `--print-logs` per vedere l'output nel terminale
3. Assicurati di avere l'ultima versione con `opencode upgrade` 3. Assicurati di avere l'ultima versione con `tfcode upgrade`
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
opencode を最新バージョンまたは特定のバージョンに更新します。 opencode を最新バージョンまたは特定のバージョンに更新します。
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
最新バージョンにアップグレードするには。 最新バージョンにアップグレードするには。
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
特定のバージョンにアップグレードするには。 特定のバージョンにアップグレードするには。
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### フラグ #### フラグ

View File

@ -199,7 +199,7 @@ OpenCode で問題が発生している場合:
1. ログでエラーメッセージを確認する 1. ログでエラーメッセージを確認する
2. `--print-logs` で実行して、ターミナルに出力を確認してください。 2. `--print-logs` で実行して、ターミナルに出力を確認してください。
3. `opencode upgrade` を含む最新バージョンを使用していることを確認してください 3. `tfcode upgrade` を含む最新バージョンを使用していることを確認してください
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
opencode를 최신 버전 또는 특정 버전으로 업데이트합니다. opencode를 최신 버전 또는 특정 버전으로 업데이트합니다.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
최신 버전으로 업그레이드: 최신 버전으로 업그레이드:
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
특정 버전으로 업그레이드: 특정 버전으로 업그레이드:
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### 플래그 #### 플래그

View File

@ -202,7 +202,7 @@ opencode와 문제가 발생하면:
1. 오류 메시지에 대한 로그 확인 1. 오류 메시지에 대한 로그 확인
2. terminal에 있는 산출을 보기 위하여 `--print-logs`로 달리기를 시도하십시오 2. terminal에 있는 산출을 보기 위하여 `--print-logs`로 달리기를 시도하십시오
3. 당신은 `opencode upgrade`를 가진 최신 버전이 있는 것을 지킵니다 3. 당신은 `tfcode upgrade`를 가진 최신 버전이 있는 것을 지킵니다
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
Oppdaterer OpenCode til siste versjon eller en spesifikk versjon. Oppdaterer OpenCode til siste versjon eller en spesifikk versjon.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
For å oppgradere til siste versjon. For å oppgradere til siste versjon.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
For å oppgradere til en bestemt versjon. For å oppgradere til en bestemt versjon.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Flagg #### Flagg

View File

@ -513,19 +513,19 @@ opencode uninstall
Aktualizuj OpenCode do najnowszej lub określonej wersji. Aktualizuj OpenCode do najnowszej lub określonej wersji.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
Aby zaktualizować do najnowszej wersji: Aby zaktualizować do najnowszej wersji:
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Aby zaktualizować do konkretnej wersji: Aby zaktualizować do konkretnej wersji:
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Flagi #### Flagi

View File

@ -199,7 +199,7 @@ Oto kilka typowych problemów i sposobów ich rozwiązania.
1. Sprawdź dzienniki pod kątem komunikatów o błędach 1. Sprawdź dzienniki pod kątem komunikatów o błędach
2. Spróbuj uruchomić z `--print-logs`, aby zobaczyć dane wyjściowe w terminalu 2. Spróbuj uruchomić z `--print-logs`, aby zobaczyć dane wyjściowe w terminalu
3. Upewnij się, że masz najnowszą wersję z `opencode upgrade` 3. Upewnij się, że masz najnowszą wersję z `tfcode upgrade`
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
Atualiza o opencode para a versão mais recente ou uma versão específica. Atualiza o opencode para a versão mais recente ou uma versão específica.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
Para atualizar para a versão mais recente. Para atualizar para a versão mais recente.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Para atualizar para uma versão específica. Para atualizar para uma versão específica.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Opções #### Opções

View File

@ -199,7 +199,7 @@ Aqui estão alguns problemas comuns e como resolvê-los.
1. Verifique os logs em busca de mensagens de erro 1. Verifique os logs em busca de mensagens de erro
2. Tente executar com `--print-logs` para ver a saída no terminal 2. Tente executar com `--print-logs` para ver a saída no terminal
3. Certifique-se de que você tem a versão mais recente com `opencode upgrade` 3. Certifique-se de que você tem a versão mais recente com `tfcode upgrade`
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
Обновляет opencode до последней версии или определенной версии. Обновляет opencode до последней версии или определенной версии.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
Чтобы обновиться до последней версии. Чтобы обновиться до последней версии.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Для обновления до определенной версии. Для обновления до определенной версии.
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Флаги #### Флаги

View File

@ -199,7 +199,7 @@ opencode Desktop отображает системные уведомления
1. Проверьте журналы на наличие сообщений об ошибках 1. Проверьте журналы на наличие сообщений об ошибках
2. Попробуйте запустить `--print-logs`, чтобы увидеть вывод в terminal. 2. Попробуйте запустить `--print-logs`, чтобы увидеть вывод в terminal.
3. Убедитесь, что у вас установлена ​​последняя версия `opencode upgrade`. 3. Убедитесь, что у вас установлена ​​последняя версия `tfcode upgrade`.
--- ---

View File

@ -514,19 +514,19 @@ opencode uninstall
อัปเกรด OpenCode เป็นเวอร์ชันล่าสุดหรือเวอร์ชันที่ระบุ อัปเกรด OpenCode เป็นเวอร์ชันล่าสุดหรือเวอร์ชันที่ระบุ
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
อัปเกรดเป็นเวอร์ชันล่าสุด อัปเกรดเป็นเวอร์ชันล่าสุด
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
อัปเกรดเป็นเวอร์ชันที่ระบุ อัปเกรดเป็นเวอร์ชันที่ระบุ
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### แฟล็ก #### แฟล็ก

View File

@ -199,7 +199,7 @@ OpenCode Desktop จะแสดงการแจ้งเตือนของ
1. ตรวจสอบบันทึกเพื่อดูข้อความแสดงข้อผิดพลาด 1. ตรวจสอบบันทึกเพื่อดูข้อความแสดงข้อผิดพลาด
2. ลองรันด้วย `--print-logs` เพื่อดูเอาต์พุตใน terminal 2. ลองรันด้วย `--print-logs` เพื่อดูเอาต์พุตใน terminal
3. ตรวจสอบให้แน่ใจว่าคุณมีเวอร์ชันล่าสุดด้วย `opencode upgrade` 3. ตรวจสอบให้แน่ใจว่าคุณมีเวอร์ชันล่าสุดด้วย `tfcode upgrade`
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
opencode'u en son sürüme veya belirli bir sürüme günceller. opencode'u en son sürüme veya belirli bir sürüme günceller.
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
En son sürüme yükseltmek için. En son sürüme yükseltmek için.
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
Belirli bir sürüme yükseltmek için: Belirli bir sürüme yükseltmek için:
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### Bayraklar #### Bayraklar

View File

@ -199,7 +199,7 @@ Asagida yaygin sorunlar ve cozumleri yer aliyor.
1. Hata mesaji icin loglari kontrol edin 1. Hata mesaji icin loglari kontrol edin
2. Terminalde cikti gormek icin `--print-logs` ile calistirin 2. Terminalde cikti gormek icin `--print-logs` ile calistirin
3. `opencode upgrade` ile en guncel surumu kullandiginizdan emin olun 3. `tfcode upgrade` ile en guncel surumu kullandiginizdan emin olun
--- ---

View File

@ -199,7 +199,7 @@ Here are some common issues and how to resolve them.
1. Check the logs for error messages 1. Check the logs for error messages
2. Try running with `--print-logs` to see output in the terminal 2. Try running with `--print-logs` to see output in the terminal
3. Ensure you have the latest version with `opencode upgrade` 3. Ensure you have the latest version with `tfcode upgrade`
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
将 OpenCode 更新到最新版本或指定版本。 将 OpenCode 更新到最新版本或指定版本。
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
更新到最新版本。 更新到最新版本。
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
更新到指定版本。 更新到指定版本。
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### 标志 #### 标志

View File

@ -199,7 +199,7 @@ OpenCode Desktop 仅在以下情况下显示系统通知:
1. 检查日志中的错误消息 1. 检查日志中的错误消息
2. 尝试使用 `--print-logs` 运行以在终端中查看输出 2. 尝试使用 `--print-logs` 运行以在终端中查看输出
3. 使用 `opencode upgrade` 确保你使用的是最新版本 3. 使用 `tfcode upgrade` 确保你使用的是最新版本
--- ---

View File

@ -513,19 +513,19 @@ opencode uninstall
將 OpenCode 更新到最新版本或指定版本。 將 OpenCode 更新到最新版本或指定版本。
```bash ```bash
opencode upgrade [target] tfcode upgrade [target]
``` ```
更新到最新版本。 更新到最新版本。
```bash ```bash
opencode upgrade tfcode upgrade
``` ```
更新到指定版本。 更新到指定版本。
```bash ```bash
opencode upgrade v0.1.48 tfcode upgrade v0.1.48
``` ```
#### 旗標 #### 旗標

View File

@ -199,7 +199,7 @@ OpenCode Desktop 僅在以下情況下顯示系統通知:
1. 檢查日誌中的錯誤訊息 1. 檢查日誌中的錯誤訊息
2. 嘗試使用 `--print-logs` 執行以在終端機中查看輸出 2. 嘗試使用 `--print-logs` 執行以在終端機中查看輸出
3. 使用 `opencode upgrade` 確保你使用的是最新版本 3. 使用 `tfcode upgrade` 確保你使用的是最新版本
--- ---