mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-29 20:05:25 +08:00
Rewrite plugin/certified-plugins in all three locales around the questions a plugin developer actually asks, and make it the single home for certification: what it is, why it exists, when it is needed, what changes after approval, and what the contract requires. - Decision framing restored, including a needs/does-not-need table and the explicit statement that most plugins do not need certification. - Full manifest example, accepted values for both declaration fields and the SDK version that recognises them. - Constraints kept and tightened: stateless rules, allowed/forbidden table, anti-patterns with correct/incorrect snippets, Runner notes, self-check list. - Submission flow moved onto this page so it no longer depends on the publishing page. - Operator content that duplicates the Core architecture document removed (Cloud admission matrix, OSS issuer keys, certificate fields, internal review tiers). publish/market is now publishing-only with a one-line pointer, and its misplaced plugin_submission screenshot moves back under the upload section where it belongs. dev/basic-info replaces the commented-out manifest fields with a link to the contract page. ja had been missing whole sections (36 lines); all three locales now share the same section structure.
86 lines
3.8 KiB
Plaintext
86 lines
3.8 KiB
Plaintext
---
|
|
title: "プラグインマーケットプレイスに公開"
|
|
---
|
|
|
|
CLI経由で[LangBotプラグインマーケットプレイス](https://space.langbot.app/market)にプラグインを公開します。
|
|
|
|
## LangBot Spaceでアカウントを作成
|
|
|
|
LangBot SpaceはLangBotの集中サービスプラットフォームです。[LangBot Space](https://space.langbot.app)にアクセスし、右上隅をクリックしてGitHubでログインし、アカウントを作成してください。
|
|
|
|
<img width="600" src="/images/zh/plugin/dev/login_space.png" />
|
|
|
|
GitHubの認証ページにリダイレクトされますので、プロンプトに従って認証を完了してください。
|
|
|
|
## CLIを使用してLangBot Spaceにログイン
|
|
|
|
### 方法1:個人アクセストークンを使用(推奨)
|
|
|
|
1. [LangBot Space](https://space.langbot.app)にログインし、アバターをクリックして**アカウント設定**を開き、**アカウント**タブの**個人アクセストークン**で新しいトークンを作成します。
|
|
2. 生成されたトークンをコピーし(一度しか表示されません)、ターミナルで以下を実行します:
|
|
|
|
```bash
|
|
➜ HelloPlugin > lbp login --token lbpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
==================================================
|
|
✅ 個人アクセストークンでログインしました!
|
|
トークンの保存先:~/.langbot/cli/config.json
|
|
==================================================
|
|
```
|
|
|
|
### 方法2:デバイスコード認証を使用
|
|
|
|
任意のディレクトリでコマンド`lbp login`を実行します:
|
|
|
|
```bash
|
|
➜ HelloPlugin > lbp login
|
|
Starting LangBot CLI login process...
|
|
Generating device code...
|
|
|
|
==================================================
|
|
Please copy the user code and complete verification in your browser:
|
|
User Code: 6CD64D56
|
|
Verification URL: https://space.langbot.app/auth/device
|
|
Device code expires in: 120 seconds
|
|
==================================================
|
|
|
|
Waiting for verification...
|
|
```
|
|
|
|
`Verification URL`をクリックしてLangBot Spaceにリダイレクトし、`User Code`を入力してログインを完了してください。
|
|
|
|
<img width="600" src="/images/zh/plugin/dev/space_device_flow.png" />
|
|
|
|
```bash
|
|
==================================================
|
|
✅ Login successful!
|
|
Access token saved to: ~/.langbot/cli/config.json
|
|
Token type: Bearer
|
|
Expires in: 21600 seconds
|
|
==================================================
|
|
```
|
|
|
|
どちらの方法でもログインが成功したら、CLIを使用してプラグインをアップロードできます。
|
|
|
|
## プラグインのアップロード
|
|
|
|
プラグインディレクトリで`lbp publish`を実行してください:
|
|
|
|
```bash
|
|
➜ HelloPlugin > lbp publish
|
|
Building plugin to dist/tmp...
|
|
- Skipping ignored directory: dist
|
|
- Skipping ignored directory: __pycache__
|
|
...
|
|
Plugin built successfully: dist/tmp/RockChinQ-HelloPlugin-0.1.0.lbpkg
|
|
✅ Plugin published successfully. You can check it on https://https://space.langbot.app/market
|
|
```
|
|
|
|
[LangBotプラグインマーケットプレイス](https://space.langbot.app/market)でプラグイン提出タスクを確認できます。承認をお待ちください。承認後、マーケットプレイスでプラグインを表示できます。
|
|
|
|
<img width="600" src="/images/zh/plugin/dev/plugin_submission.png" />
|
|
|
|
公開の流れ自体に認証は関係しません。プラグインは既定で専用モードで動作します。このバージョンで認証も申請する場合は、[認証プラグインと共有実行](/ja/plugin/certified-plugins)を参照してください。
|
|
|
|
ご質問がある場合は、`[email protected]`にメールを送信するか、[コミュニティ](/ja/insight/community)を通じてお問い合わせください。
|