open-index/open-npm huggingface dataset:
npm package: @louxiu/weibo-openclaw-plugin
Description: OpenClaw Weibo DM channel plugin
Latest version: 2.1.1-beta.4

# openclaw-weibo

OpenClaw Weibo DM channel plugin - 微博私信通道插件



## 使用
### 获取凭证

1. 打开微博客户端，私信 [@微博龙虾助手](https://weibo.com/u/6808810981)
2. 发送消息：`连接龙虾`
3. 收到回复示例：
   ```
   您的应用凭证信息如下：

   AppId: your-app-id
   AppSecret: your-app-secret

   如需重置凭证，请发送 "重置凭证" 命令。
   ```

### 配置OpenClaw
#### 安装插件

```bash
npx @wecode-ai/weibo-openclaw-plugin
```
此命令会自动检测您的 OpenClaw 版本并安装对应版本的插件。

#### 更新插件
```bash
npx @wecode-ai/weibo-openclaw-plugin update
```
此命令会自动检测您的 OpenClaw 版本并更新到对应的兼容版本。

#### 配置凭证
使用命令配置：
```bash
openclaw config set 'channels.weibo.appSecret' 'your-appSecret'
openclaw config set 'channels.weibo.appId' 'your-appId'
```

或编辑 `~/.openclaw/openclaw.config.json`：

```json
{
...existing config...
  "channels": {
    ...existing config...
    "weibo": {
      "appId": "your-app-id",
      "appSecret": "your-app-secret"
    }
  }
}
```

## 内置工具

插件提供以下 AI 工具，默认全部启用：

| 工具名称 | 功能说明 | 配置项 |
|---------|---------|--------|
| `weibo_crowd` | 微博超话发帖工具，支持在超话社区发帖、评论、回复 | `weiboCrowdEnabled` |
| `weibo_search` | 微博智搜工具，通过关键词获取微博智搜内容 | `weiboSearchEnabled` |
| `weibo_status` | 获取用户自己发布的微博列表 | `weiboStatusEnabled` |
| `weibo_hot_search` | 获取微博热搜榜（支持主榜、文娱榜、社会榜等） | `weiboHotSearchEnabled` |
| `weibo_token` | 微博 API 访问令牌工具，用于获取和管理访问 token | `weiboTokenEnabled` |

### 关闭工具

使用命令关闭指定工具：
```bash
# 关闭微博智搜工具
openclaw config set 'channels.weibo.weiboSearchEnabled' false

# 关闭用户微博工具
openclaw config set 'channels.weibo.weiboStatusEnabled' false

# 关闭热搜榜工具
openclaw config set 'channels.weibo.weiboHotSearchEnabled' false
```

或编辑 `~/.openclaw/openclaw.config.json`：
```json
{
  "channels": {
    "weibo": {
      "appId": "your-app-id",
      "appSecret": "your-app-secret",
      "weiboSearchEnabled": false,
      "weiboStatusEnabled": false,
      "weiboHotSearchEnabled": false
    }
  },
  "plugins": {
    "allow": ["weibo-openclaw-plugin"]
  }
}
```

> **注意**：将配置值设为 `false` 可关闭对应工具，删除配置项或设为 `true` 则启用工具。

## 插件网络访问说明
* 插件通过域名 `open-im.api.weibo.com` 来调用微博接口。
* 如在出入口网络受限环境下使用该插件请注意配置访问权限。

## Development

```bash
npm install
npm run build
npm run test:unit
```

## License

MIT
npm package: @lov3kaizen/agentsea-react
Description: React components for rendering AgentSea agent responses with formatting support
Author: lovekaizen
Latest version: 0.6.0

# @lov3kaizen/agentsea-react

React components for rendering AgentSea agent responses with formatting support.

[![npm version](https://img.shields.io/npm/v/@lov3kaizen/agentsea-react.svg)](https://www.npmjs.com/package/@lov3kaizen/agentsea-react)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg)](https://www.typescriptlang.org/)

## Features

- Markdown rendering with GitHub Flavored Markdown support
- Code syntax highlighting
- Streaming response support
- Customizable styling

## Installation

```bash
npm install @lov3kaizen/agentsea-react @lov3kaizen/agentsea-core react react-dom
# or
pnpm add @lov3kaizen/agentsea-react @lov3kaizen/agentsea-core react react-dom
# or
yarn add @lov3kaizen/agentsea-react @lov3kaizen/agentsea-core react react-dom
```

## Quick Start

```tsx
import { AgentResponse } from '@lov3kaizen/agentsea-react';

function ChatMessage({ content }: { content: string }) {
  return <AgentResponse content={content} />;
}
```

## Components

### AgentResponse

Renders agent response content with markdown formatting:

```tsx
import { AgentResponse } from '@lov3kaizen/agentsea-react';

<AgentResponse
  content="# Hello World\n\nThis is **markdown** content."
  className="my-response"
/>;
```

### StreamingResponse

For streaming responses:

```tsx
import { StreamingResponse } from '@lov3kaizen/agentsea-react';

<StreamingResponse content={streamingContent} isStreaming={true} />;
```

## Styling

Components can be styled using CSS classes or inline styles:

```tsx
<AgentResponse
  content={content}
  className="custom-response"
  style={{ maxWidth: '600px' }}
/>
```

## Documentation

Full documentation available at [agentsea.dev](https://agentsea.dev)

## Related Packages

- [@lov3kaizen/agentsea-core](https://www.npmjs.com/package/@lov3kaizen/agentsea-core) - Core library
- [@lov3kaizen/agentsea-nestjs](https://www.npmjs.com/package/@lov3kaizen/agentsea-nestjs) - NestJS integration
- [@lov3kaizen/agentsea-cli](https://www.npmjs.com/package/@lov3kaizen/agentsea-cli) - Command-line interface

## License

MIT License - see [LICENSE](../../LICENSE) for details