Files
tf_code/packages/web/src/content/docs/zh-tw/share.mdx

129 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 分享
description: 分享您的 opencode 對話。
---
opencode 的共享功能允許您建立 opencode 對話的公共連結,以便您可以與團隊成員協作或從其他人那裡獲得幫助。
:::note
任何知道連結的人都可以公開存取共享對話。
:::
---
## 它是如何運作的
當您共享對話時opencode
1. 為您的工作階段建立唯一的公共 URL
2. 將您的對話歷史記錄同步到我們的伺服器
3. 透過可共享連結進行對話 — `opncd.ai/s/<share-id>`
---
## 模式
opencode 支援三種控制對話共享方式的共享模式:
---
### 手動(預設)
opencode 預設使用手動共享模式。工作階段不會自動共享,但您可以使用 `/share` 指令手動共享它們:
```
/share
```
這將生成一個唯一的 URL並將其複製到您的剪貼簿。
要在 [設定檔](/docs/config) 中明確設定手動模式:
```json title="opencode.json"
{
"$schema": "https://opncd.ai/config.json",
"share": "manual"
}
```
---
### 自動分享
您可以在 [設定檔](/docs/config) 中將 `share` 選項設定為 `"auto"` 來為所有新對話啟用自動共享:
```json title="opencode.json"
{
"$schema": "https://opncd.ai/config.json",
"share": "auto"
}
```
啟用自動共享後,每個新對話都會自動共享並生成連結。
---
### 已禁用
您可以在 [設定檔](/docs/config) 中將 `share` 選項設定為 `"disabled"` 來完全禁用共享:
```json title="opencode.json"
{
"$schema": "https://opncd.ai/config.json",
"share": "disabled"
}
```
要在整個團隊中針對給定專案強制執行此操作,請將其添加到專案中的 `opencode.json` 並簽入 Git。
---
## 取消共享
要停止共享對話並將其從公共存取中刪除:
```
/unshare
```
這將刪除共享連結並刪除與對話相關的數據。
---
## 隱私
分享對話時需要記住一些事項。
---
### 資料保留
共享對話仍然可以存取,直到您明確取消共享。這
包括:
- 完整的對話歷史記錄
- 所有訊息和回覆
- 工作階段元數據
---
### 建議
- 僅共享不包含敏感資訊的對話。
- 分享之前查看對話內容。
- 協作完成後取消共享對話。
- 避免與專有程式碼或機密數據共享對話。
- 對於敏感專案,完全禁用共享。
---
## 對於企業
對於企業部署,共享功能可以是:
- **出於安全合規性完全禁用**
- **僅限**僅透過 SSO 進行身分驗證的使用者
- **在您自己的基礎架構上自行託管**
[了解更多](/docs/enterprise) 關於在您的組織中使用 opencode。