chore: 项目更名 - PIT Channel → 智队频道
This commit is contained in:
16
README.md
16
README.md
@@ -1,4 +1,4 @@
|
|||||||
# PIT Channel
|
# 智队频道
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/badge/Version-1.0.0-blue.svg" alt="Version">
|
<img src="https://img.shields.io/badge/Version-1.0.0-blue.svg" alt="Version">
|
||||||
@@ -6,15 +6,15 @@
|
|||||||
<img src="https://img.shields.io/badge/OpenClaw-2026.3+-orange.svg" alt="OpenClaw Version">
|
<img src="https://img.shields.io/badge/OpenClaw-2026.3+-orange.svg" alt="OpenClaw Version">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
> OpenClaw Channel 插件,连接 PIT Router 实现多 Agent 协作
|
> OpenClaw Channel 插件,连接智队中枢实现多 Agent 协作
|
||||||
|
|
||||||
## 📖 简介
|
## 📖 简介
|
||||||
|
|
||||||
PIT Channel 是 OpenClaw 的 Channel 插件,用于连接 **PIT Router(个人智能体团队路由服务)**,实现多 Agent 之间的消息路由和协作通信。
|
**智队频道**是 OpenClaw 的 Channel 插件,用于连接 **智队中枢(Personal Intelligent Team Router)**,实现多 Agent 之间的消息路由和协作通信。
|
||||||
|
|
||||||
### 什么是 PIT Router?
|
### 什么是智队中枢?
|
||||||
|
|
||||||
PIT Router 是一个消息路由服务,负责:
|
智队中枢是一个消息路由服务,负责:
|
||||||
- 管理多个用户连接
|
- 管理多个用户连接
|
||||||
- 将用户消息路由到正确的 Agent
|
- 将用户消息路由到正确的 Agent
|
||||||
- 支持 Agent 之间的协作通信
|
- 支持 Agent 之间的协作通信
|
||||||
@@ -39,7 +39,7 @@ PIT Router 是一个消息路由服务,负责:
|
|||||||
|
|
||||||
```
|
```
|
||||||
┌──────────────┐ WebSocket ┌──────────────┐
|
┌──────────────┐ WebSocket ┌──────────────┐
|
||||||
│ PIT Router │ ←─────────────→ │ PIT Channel │
|
│ 智队中枢 │ ←─────────────→ │ 智队频道 │
|
||||||
│ (服务端) │ │ (OpenClaw) │
|
│ (服务端) │ │ (OpenClaw) │
|
||||||
└──────────────┘ └──────────────┘
|
└──────────────┘ └──────────────┘
|
||||||
↑ ↓
|
↑ ↓
|
||||||
@@ -55,7 +55,7 @@ PIT Router 是一个消息路由服务,负责:
|
|||||||
|
|
||||||
- Node.js >= 20.0.0
|
- Node.js >= 20.0.0
|
||||||
- OpenClaw >= 2026.3.0
|
- OpenClaw >= 2026.3.0
|
||||||
- PIT Router 服务端
|
- 智队中枢服务端
|
||||||
|
|
||||||
### 安装插件
|
### 安装插件
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ openclaw plugins install @openclaw/pit-channel
|
|||||||
|
|
||||||
| 参数 | 类型 | 默认值 | 说明 |
|
| 参数 | 类型 | 默认值 | 说明 |
|
||||||
|------|------|--------|------|
|
|------|------|--------|------|
|
||||||
| `routerUrl` | string | - | **必填** PIT Router WebSocket 地址 |
|
| `routerUrl` | string | - | **必填** 智队中枢 WebSocket 地址 |
|
||||||
| `authToken` | string | - | 认证 Token,支持 `${ENV_VAR}` 引用环境变量 |
|
| `authToken` | string | - | 认证 Token,支持 `${ENV_VAR}` 引用环境变量 |
|
||||||
| `enabled` | boolean | true | 是否启用 |
|
| `enabled` | boolean | true | 是否启用 |
|
||||||
| `reconnectInterval` | number | 5000 | 重连间隔(毫秒) |
|
| `reconnectInterval` | number | 5000 | 重连间隔(毫秒) |
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/openclaw/openclaw/main/schemas/plugin.json",
|
"$schema": "https://raw.githubusercontent.com/openclaw/openclaw/main/schemas/plugin.json",
|
||||||
"id": "pit-bot",
|
"id": "zhidui-channel",
|
||||||
"name": "PIT Bot",
|
"name": "智队频道",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Connect to PIT Router for multi-agent support",
|
"description": "连接智队中枢实现多 Agent 协作",
|
||||||
"entry": "dist/index.js",
|
"entry": "dist/index.js",
|
||||||
"minOpenClawVersion": "2026.3.0",
|
"minOpenClawVersion": "2026.3.0",
|
||||||
"author": "小白 🐶",
|
"author": "小白 🐶",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/your-org/openclaw-pit-bot",
|
"repository": "https://github.com/your-org/openclaw-zhidui-channel",
|
||||||
"homepage": "https://github.com/your-org/openclaw-pit-bot#readme",
|
"homepage": "https://github.com/your-org/openclaw-zhidui-channel#readme",
|
||||||
"capabilities": {
|
"capabilities": {
|
||||||
"chatTypes": ["direct"],
|
"chatTypes": ["direct"],
|
||||||
"media": true,
|
"media": true,
|
||||||
@@ -20,55 +20,55 @@
|
|||||||
"config": {
|
"config": {
|
||||||
"sections": [
|
"sections": [
|
||||||
{
|
{
|
||||||
"key": "channels.pit-bot",
|
"key": "channels.zhidui-channel",
|
||||||
"label": "PIT Bot",
|
"label": "智队频道",
|
||||||
"description": "PIT Router connection settings",
|
"description": "智队中枢连接配置",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"enabled": {
|
"enabled": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true,
|
"default": true,
|
||||||
"description": "Enable PIT Bot channel"
|
"description": "启用智队频道"
|
||||||
},
|
},
|
||||||
"routerUrl": {
|
"routerUrl": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uri",
|
"format": "uri",
|
||||||
"description": "PIT Router WebSocket URL"
|
"description": "智队中枢 WebSocket 地址"
|
||||||
},
|
},
|
||||||
"authToken": {
|
"authToken": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Authentication token or ${ENV_VAR}"
|
"description": "认证 Token 或 ${ENV_VAR}"
|
||||||
},
|
},
|
||||||
"reconnectInterval": {
|
"reconnectInterval": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 1000,
|
"minimum": 1000,
|
||||||
"default": 5000,
|
"default": 5000,
|
||||||
"description": "Reconnection interval in milliseconds"
|
"description": "重连间隔(毫秒)"
|
||||||
},
|
},
|
||||||
"heartbeatInterval": {
|
"heartbeatInterval": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 1000,
|
"minimum": 1000,
|
||||||
"default": 30000,
|
"default": 30000,
|
||||||
"description": "Heartbeat interval in milliseconds"
|
"description": "心跳间隔(毫秒)"
|
||||||
},
|
},
|
||||||
"heartbeatTimeout": {
|
"heartbeatTimeout": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 1000,
|
"minimum": 1000,
|
||||||
"default": 10000,
|
"default": 10000,
|
||||||
"description": "Heartbeat timeout in milliseconds"
|
"description": "心跳超时(毫秒)"
|
||||||
},
|
},
|
||||||
"ackTimeout": {
|
"ackTimeout": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 1000,
|
"minimum": 1000,
|
||||||
"default": 30000,
|
"default": 30000,
|
||||||
"description": "Message acknowledgment timeout in milliseconds"
|
"description": "消息确认超时(毫秒)"
|
||||||
},
|
},
|
||||||
"maxQueueSize": {
|
"maxQueueSize": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 1,
|
"minimum": 1,
|
||||||
"default": 100,
|
"default": 100,
|
||||||
"description": "Maximum message queue size"
|
"description": "离线消息队列最大长度"
|
||||||
},
|
},
|
||||||
"accounts": {
|
"accounts": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
20
package.json
20
package.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "openclaw-pit-bot",
|
"name": "openclaw-zhidui-channel",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "PIT Bot Channel Plugin for OpenClaw - Connect to PIT Router for multi-agent support",
|
"description": "智队频道插件 for OpenClaw - 连接智队中枢实现多 Agent 协作",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -16,8 +16,9 @@
|
|||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"openclaw",
|
"openclaw",
|
||||||
"pit-bot",
|
"zhidui-channel",
|
||||||
"pit-router",
|
"zhidui",
|
||||||
|
"智队中枢",
|
||||||
"channel-plugin",
|
"channel-plugin",
|
||||||
"multi-agent",
|
"multi-agent",
|
||||||
"websocket"
|
"websocket"
|
||||||
@@ -26,12 +27,12 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/your-org/openclaw-pit-bot.git"
|
"url": "https://github.com/your-org/openclaw-zhidui-channel.git"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/your-org/openclaw-pit-bot/issues"
|
"url": "https://github.com/your-org/openclaw-zhidui-channel/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/your-org/openclaw-pit-bot#readme",
|
"homepage": "https://github.com/your-org/openclaw-zhidui-channel#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"openclaw": "~2026.3.0",
|
"openclaw": "~2026.3.0",
|
||||||
"ws": "^8.18.0",
|
"ws": "^8.18.0",
|
||||||
@@ -52,8 +53,9 @@
|
|||||||
"node": ">=20.0.0"
|
"node": ">=20.0.0"
|
||||||
},
|
},
|
||||||
"openclaw": {
|
"openclaw": {
|
||||||
"pluginId": "pit-bot",
|
"pluginId": "zhidui-channel",
|
||||||
"minOpenClawVersion": "2026.3.0"
|
"minOpenClawVersion": "2026.3.0",
|
||||||
|
"extensions": ["./dist/index.js"]
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist/**/*",
|
"dist/**/*",
|
||||||
|
|||||||
Reference in New Issue
Block a user