open-index/open-npm huggingface dataset:
npm package: @rc-lib/jira-extend
Description: ## 依赖
Author: wangshubin
Latest version: 1.0.6

# 基于jira导出周报

## 依赖

node v16.x以上

## 安装

```
yarn
```

## 周报

```
# 导出全部组
yarn weekly-report

# 导出指定组
yarn weekly-report 前端组
yarn weekly-report 用户组
yarn weekly-report 出金组
yarn weekly-report 入金组
```

## Bug率

```
# 导出指定组
yarn test-report 前端组 2023-04-01 2023-06-30 
yarn test-report 用户组 2023-04-01 2023-06-30
yarn test-report 出金组 2023-04-01 2023-06-30
yarn test-report 入金组 2023-04-01 2023-06-30
```

## 命令行工具

```
# 安装
npm i -g @rc-lib/jira-extend --registry=https://registry.npmmirror.com

# 导出周报
wr 前端组
```
npm package: @rc-lib/sonar-scanner
Description: sonar代码扫描
Latest version: 0.1.13

# sonar-scanner

## 说明

- windows环境如果默认地址存在特殊符号，如：&，解析地址可能会失败。 可配置环境变量SONAR_BASE_PATH=xxx, 例：SONAR_BASE_PATH='D:\\' 修改默认安装地址。
npm package: @rc-lib/swagger-mock
Description: swagger文档添加mock功能的express中间件，可用于webpackDevServer，在后端接口不通得情况下，为前端提供mock数据
Latest version: 1.0.9

# Swagger-Mock

swagger文档添加mock功能的express中间件，可用于webpackDevServer，在后端接口不通得情况下，为前端提供mock数据

node v16 +

## 安装

```
yarn add @rc-lib/swagger-mock --registry=https://registry.npmmirror.com
```

## 使用

在webpackDevServer中添加中间件，比如 create-react-app项目config/webpackDevServer.config.js：

```
setupMiddlewares(middlewares, devServer) {
  if (!devServer) {
    throw new Error('webpack-dev-server is not defined');
  }

  devServer.app.use(require('@rc-lib/swagger-mock'));
  
  ...
  
}
```

配置代理

全部代理

```
app.use(
    createProxyMiddleware('/api', {
      target: 'http://127.0.0.1:3000', // 本地webpackDevServer启动的服务
      pathRewrite: {
        '^/api': '',
      },
      changeOrigin: true,
      secure: false, // 是否验证证书
      ws: true, // 启用websocket
    }),
);
```

部分接口代理

```
Object.entries({
    '/api/gateway': [
        '/api/vcc/account/queryVccAccountBalance',
    ],
}).forEach(([base, urls]) => urls.forEach(url => {
    app.use(
        createProxyMiddleware(`${base}${url}`, {
            target: 'http://localhost:4001',
            pathRewrite: { [`^${base}`]: '/swagger-mock' },
        }),
    );
}));
```

## 配置

项目启动时，会创建swagger-mock.js文件，用于@rc-lib/swagger-mock配置文件
npm package: @rc-microcap/core
Description: MicroCap Core - A distributed agent communication framework
Author: RC MicroCap Team
Latest version: 1.7.0

# @rc-microcap/core

This package provides the core framework for the MicroCAP (Micro Collaborative Agent Platform) TypeScript implementation. It includes the necessary interfaces, base classes, and ZeroMQ communication logic to build distributed, message-based applications using the actor model.

## Features

*   Actor base class (`Actor`)
*   Runtime management (`RuntimeFactory`, `ZmqRuntime`)
*   Publish/Subscribe and Request/Response messaging patterns
*   ZeroMQ-based communication (`ZmqActorConnector`, `ZmqActorSender`)
*   Service discovery via Directory Service integration
*   Protocol Buffer support for type-safe messaging

## Installation

```bash
npm install @rc-microcap/core
```

## Usage

This package provides the building blocks for your MicroCAP applications. You will typically need to run the `@rc-microcap/zmq-broker` and `@rc-microcap/zmq-directory` services for communication and discovery.

```typescript
import { Actor, RuntimeFactory } from '@rc-microcap/core';

// Define your actor
class MyActor extends Actor {
  constructor() {
    super("MyActor", "An example actor");
  }

  async onStart() {
    console.log(`${this.name} started!`);
    // Initialization logic
  }

  async onTextMessage(topic: string, message: string) {
    console.log(`Received text message on topic ${topic}: ${message}`);
    return true; // Keep running
  }
}

// --- Main application ---
async function main() {
  const runtime = RuntimeFactory.getRuntime(); // Get default ZMQ runtime
  const actor = new MyActor();

  await runtime.register(actor);
  await runtime.connect(); // Connects to Broker and Directory

  console.log('Application started. Press Ctrl+C to exit.');

  // Keep the application running (example)
  process.on('SIGINT', async () => {
    console.log('Shutting down...');
    await runtime.disconnect();
    process.exit(0);
  });
}

main().catch(console.error);
```

## Full Documentation

For comprehensive documentation, usage guides, and examples, please refer to the main MicroCAP repository:

[https://github.com/rajan-chari/microcap/tree/main/typescript](https://github.com/rajan-chari/microcap/tree/main/typescript)