open-index/open-npm huggingface dataset:
npm package: @t-agent/bytemd-plugin-frontmatter
Description: ByteMD plugin to parse frontmatter
Author: Rongjian Zhang
Latest version: 1.23.1

# @bytemd/plugin-frontmatter

[![npm](https://img.shields.io/npm/v/@bytemd/plugin-frontmatter.svg)](https://npm.im/@bytemd/plugin-frontmatter)

ByteMD plugin to parse frontmatter

## Usage

```js
import frontmatter from '@bytemd/plugin-frontmatter'
import { Editor } from 'bytemd'

new Editor({
  target: document.body,
  props: {
    plugins: [
      frontmatter(),
      // ... other plugins
    ],
  },
})
```

## License

MIT
npm package: @t-agent/bytemd-plugin-gfm
Description: ByteMD plugin to support GFM (autolink literals, strikethrough, tables, tasklists)
Author: Rongjian Zhang
Latest version: 1.23.1

# @bytemd/plugin-gfm

[![npm](https://img.shields.io/npm/v/@bytemd/plugin-gfm.svg)](https://npm.im/@bytemd/plugin-gfm)

ByteMD plugin to support GFM (autolink literals, strikethrough, tables, tasklists)

## Usage

```js
import gfm from '@bytemd/plugin-gfm'
import { Editor } from 'bytemd'

new Editor({
  target: document.body,
  props: {
    plugins: [
      gfm(),
      // ... other plugins
    ],
  },
})
```

## License

MIT
npm package: @t-agent/bytemd-plugin-mermaid
Description: ByteMD plugin to support Mermaid diagram
Author: Rongjian Zhang
Latest version: 1.23.1

# @bytemd/plugin-mermaid

[![npm](https://img.shields.io/npm/v/@bytemd/plugin-mermaid.svg)](https://npm.im/@bytemd/plugin-mermaid)

ByteMD plugin to support Mermaid diagram

## Usage

```js
import mermaid from '@bytemd/plugin-mermaid'
import { Editor } from 'bytemd'

new Editor({
  target: document.body,
  props: {
    plugins: [
      mermaid(),
      // ... other plugins
    ],
  },
})
```

## License

MIT
npm package: @t-agent/cli
Description: T-Agent 应用脚手架工具
Author: TA Core Team
Latest version: 1.0.35

# T-Agent CLI

T-Agent 应用脚手架工具，支持命令行和 Web 界面两种配置方式。

## 功能特性

- 🚀 快速创建 T-Agent 应用
- 📝 支持命令行交互式配置
- 🌐 提供 Web 配置界面
- 🎨 自定义主题色配置
- 📱 支持多种应用类型 (FORMA, DATA_WISE, GLOSSA)
- 📦 支持多种包管理器 (pnpm, npm, yarn)

## 安装

```bash
# 全局安装
npm install -g @t-agent/cli

# 或者使用 pnpm
pnpm add -g @t-agent/cli

# 或者使用 yarn
yarn global add @t-agent/cli
```

## 使用方法

### 命令行模式

```bash
# 创建新应用
t-agent create my-app

# 跳过确认步骤
t-agent create my-app --yes

# 指定模板类型
t-agent create my-app --template glossa
```

### Web 界面模式

```bash
# 启动 Web 配置界面
t-agent ui

# 指定端口
t-agent ui --port 3001
```

## 配置选项

### 应用名称 (APP_NAME)

- 用于路由映射：`aipower.yingdao.com/${appName}`
- 只能包含小写字母、数字和连字符
- 必须以字母开头
- 示例：`forma`, `datawise`, `glossa`

### 应用类型 (PRODUCT_TYPE)

- 与服务端协商的应用类型标识
- 预定义类型：`FORMA`, `DATA_WISE`, `GLOSSA`
- 支持自定义类型

### 主题色配置

- **主色调 (primaryColor)**: 应用的主要颜色
- **辅助色 (secondaryColor)**: 应用的辅助颜色
- 支持十六进制颜色代码格式

## 生成的文件结构

```
my-app/
├── src/
│   ├── api/
│   │   └── config.ts          # 包含 PRODUCT_TYPE 配置
│   ├── routes/
│   │   ├── index.tsx          # 重定向到 /${appName}
│   │   └── ${appName}/        # 应用路由文件夹
│   │       ├── index.tsx      # 主页面
│   │       ├── app.$id.tsx    # 应用详情页
│   │       └── process.$id.tsx # 流程详情页
│   ├── main.tsx               # 包含主题色配置
│   └── index.css              # 包含主题色 CSS 变量
├── package.json               # 更新应用名称和描述
└── ...其他配置文件
```

## 模板变量替换

CLI 会自动替换以下模板变量：

- `{{PRODUCT_TYPE}}` → 应用类型
- `{{APP_NAME}}` → 应用名称
- `{{primaryColor}}` → 主色调
- `{{secondaryColor}}` → 辅助色

## 开发

```bash
# 安装依赖
pnpm install

# 构建
pnpm build

# 开发模式
pnpm dev

# 类型检查
pnpm type-check

# 测试
pnpm test
```

## 许可证

MIT
npm package: @t-alpha/utils
Description: Compilado de utils
Author: Carlos Henrique Ziegler de Araújo
Latest version: 1.0.1

**Utils Library**

A library of utility functions for common operations in JavaScript and TypeScript.

**Installation**

You can install this library using npm:

```bash
npm install @t-alpha/utils
```

**Functions**

**formatBRLCurrency**

Formats a number as Brazilian Real currency.

**Input:**
```typescript
const value = 1234.56;
```

**Output:**
```typescript
const formattedValue = formatBRLCurrency(value);
console.log(formattedValue); // "R$ 1.234,56"
```

**replaceCurrencyToNumber**

Converts a Brazilian Real currency string to a number.

**Input:**
```typescript
const currency = "R$ 1.234,56";
```

**Output:**
```typescript
const numberValue = replaceCurrencyToNumber(currency);
console.log(numberValue); // 1234.56
```

**formatCurrencyWhileTyping**

Formats a string as currency while typing.

**Input:**
```typescript
const value = "123456";
```

**Output:**
```typescript
const formattedValue = formatCurrencyWhileTyping(value);
console.log(formattedValue); // "1.234,56"
```

**getInitials**

Gets the initials from a name.

**Input:**
```typescript
const name = "John Doe";
```

**Output:**
```typescript
const initials = getInitials(name);
console.log(initials); // "JD"
```

**formatCpfWhileTyping**

Formats a CPF number while typing.

**Input:**
```typescript
const cpf = "12345678909";
```

**Output:**
```typescript
const formattedCpf = formatCpfWhileTyping(cpf);
console.log(formattedCpf); // "123.456.789-09"
```

**maskPhoneWithDDD**

Masks a phone number with DDD.

**Input:**
```typescript
const phone = "11987654321";
```

**Output:**
```typescript
const maskedPhone = maskPhoneWithDDD(phone);
console.log(maskedPhone); // "(11) 98765-4321"
```

**hideCpfOrCnpj**

Hides parts of a CPF or CNPJ number.

**Input:**
```typescript
const cpf = "12345678909";
```

**Output:**
```typescript
const hiddenCpf = hideCpfOrCnpj(cpf);
console.log(hiddenCpf); // "***.456.789-**"
```

**Input:**
```typescript
const cnpj = "12345678000195";
```

**Output:**
```typescript
const hiddenCnpj = hideCpfOrCnpj(cnpj);
console.log(hiddenCnpj); // "**.456.***/0001-**"
```

**formatDigitableLine**

Formats a string as a digitable line.

**Input:**
```typescript
const linha = "12345678901234567890123456789012345678901234";
```

**Output:**
```typescript
const formattedLinha = formatDigitableLine(linha);
console.log(formattedLinha); // "12345.67890 12345.678901 23456.789012 3 45678901234"
```
npm package: @t-botz/contentful-typescript-codegen
Description: Generate TypeScript types from your Contentful environment.
Author: Tibo Delor
Latest version: 0.0.5

# contentful-typescript-codegen

Generate typings from your Contentful environment.

- Content Types become interfaces.
- Locales (and your default locale) become string types.
- Assets and Rich Text link to Contentful's types.

At Intercom, we use this in our [website] to increase developer confidence and productivity,
ensure that breaking changes to our Content Types don't cause an outage, and because it's neat.

[website]: https://www.intercom.com

## Usage

```sh
yarn add --dev contentful-typescript-codegen
```

Then, add the following to your `package.json`:

```jsonc
{
  // ...
  "scripts": {
    "contentful-typescript-codegen": "contentful-typescript-codegen --output @types/generated/contentful.d.ts"
  }
}
```

Feel free to change the output path to whatever you like.

Next, the codegen will expect you to have created a file called `getContentfulEnvironment.js` in the
root of your project directory, and it should export a promise that resolves with your Contentful
environment.

The reason for this is that you can do whatever you like to set up your Contentful Management
Client. Here's an example:

```js
const contentfulManagement = require("contentful-management")

module.exports = function() {
  const contentfulClient = contentfulManagement.createClient({
    accessToken: process.env.CONTENTFUL_MANAGEMENT_API_ACCESS_TOKEN,
  })

  return contentfulClient
    .getSpace(process.env.CONTENTFUL_SPACE_ID)
    .then(space => space.getEnvironment(process.env.CONTENTFUL_ENVIRONMENT))
}
```

### Command line options

```
Usage
  $ contentful-typescript-codegen --output <file> <options>

Options
  --output,      -o  Where to write to
  --poll,        -p  Continuously refresh types
  --interval N,  -i  The interval in seconds at which to poll (defaults to 15)
```

## Example output

Here's an idea of what the output will look like for a Content Type:

```ts
interface IBlogPostFields {
  /** Title */
  title: string

  /** Body */
  body: Document

  /** Author link */
  author: IAuthor

  /** Image */
  image: Asset

  /** Published? */
  published: boolean | null

  /** Tags */
  tags: string[]

  /** Blog CTA variant */
  ctaVariant: "new-cta" | "old-cta"
}

/**
 * A blog post.
 */
export interface IBlogPost extends Entry<IBlogPostFields> {}
```

You can see that a few things are handled for you:

- Documentation comments are automatically generated from Contentful descriptions.
- Links, like `author`, are resolved to other TypeScript interfaces.
- Assets are handled properly.
- Validations on symbols and text fields are expanded to unions.
- Non-required attributes automatically have `| null` appended to their type.
- The output is formatted using **your** Prettier config.
npm package: @t-med/prettier-config
Description: T-MED Prettier Config
Author: Thomas LITT
Latest version: 1.0.0

# `@t-med/prettier-config`

> T-MED [Prettier](https://prettier.io) config.

## Usage

**Install**:

```bash
$ yarn add --dev @t-med/prettier-config
$ npm install --dev @t-med/prettier-config
```

**Edit `package.json`**:

```jsonc
{
  // ...
  "prettier": "@t-med/prettier-config"
}
```
npm package: @t-onetech/ted-webhook-consumer
Description: TED Webhook Consumer SDK (signature verification, idempotency, express middleware).
Author: Charles Targema
Latest version: 1.0.0

# @ted/webhook-consumer

Webhook Consumer SDK for TED/TSentinel:
- HMAC signature verification
- timestamp replay protection
- idempotency helpers
- Express middleware with raw body capture

## Install
```bash
npm i @ted/webhook-consumer
```

## Express Usage
```javascript
const express = require("express");
const { tedWebhookMiddleware } = require("@ted/webhook-consumer");

const app = express();
app.post(
  "/webhooks/ted",
  ...tedWebhookMiddleware({
    secret: process.env.TED_WEBHOOK_SECRET,
    toleranceSec: 300,
    enableIdempotency: true,
  }),
  (req, res) => {
    const event = req.tedWebhook.event;
    console.log(event.event, event.data);
    res.status(200).json({ ok: true });
  },
);
```

## Signature
Expected signature header: x-ted-signature
Computed as:
hex(hmac_sha256(secret, "${x-ted-timestamp}.${rawBody}"))

## Idempotency
Uses x-idempotency-key if provided, otherwise event.id.
For production, use a shared store (Redis/DB unique index).
npm package: @t-req/plugin-base
Description: Base resolvers for t-req (uuid, timestamp, base64, etc.)
Author: tensorix labs
Latest version: 0.1.1

# @t-req/plugin-base

Base resolvers for [t-req](https://github.com/tensorix-labs/t-req) — UUIDs, timestamps, environment variables, encoding, and random values.

[![npm version](https://img.shields.io/npm/v/@t-req/plugin-base.svg)](https://www.npmjs.com/package/@t-req/plugin-base)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Installation

```bash
npm install @t-req/plugin-base

# or
bun add @t-req/plugin-base
yarn add @t-req/plugin-base
pnpm add @t-req/plugin-base
```

Bundled with the t-req CLI — no separate install needed if you're using `treq`.

## Setup

Add to your `treq.jsonc`:

```jsonc
{
  "plugins": ["@t-req/plugin-base"]
}
```

This is included by default when you run `treq init`.

## Resolvers

| Resolver | Args | Description | Example output |
|----------|------|-------------|----------------|
| `$uuid` | — | UUID v4 | `f47ac10b-58cc-4372-a567-0e02b2c3d479` |
| `$timestamp` | — | Unix timestamp (seconds) | `1706745600` |
| `$timestampMs` | — | Unix timestamp (milliseconds) | `1706745600000` |
| `$isodate` | — | ISO 8601 datetime | `2025-01-31T12:00:00.000Z` |
| `$randomInt` | `min`, `max` | Random integer in range (inclusive) | `42` |
| `$base64` | `value` | Base64 encode | `aGVsbG8=` |
| `$base64Decode` | `value` | Base64 decode | `hello` |
| `$env` | `key` | Read environment variable (empty string if unset) | `my-secret` |

## Usage in .http files

```http
POST {{baseUrl}}/users
Content-Type: application/json
X-Request-ID: {{$uuid()}}
X-Timestamp: {{$isodate()}}
Authorization: Bearer {{$env(API_TOKEN)}}

{
  "id": "{{$uuid()}}",
  "createdAt": {{$timestamp()}},
  "verificationCode": {{$randomInt(1000, 9999)}}
}
```

Encoding:

```http
POST {{baseUrl}}/auth
Authorization: Basic {{$base64(username:password)}}
```

## Permissions

This plugin declares the `env` permission for `$env` resolver access to `process.env`.

With no explicit permission config, all declared permissions are granted automatically. To lock down permissions:

```jsonc
{
  "plugins": ["@t-req/plugin-base"],
  "security": {
    "pluginPermissions": {
      "base": ["env"]
    }
  }
}
```

## License

MIT
npm package: @t-ui/ffalcon-ui
Description: ui component for react.
Author: liyanru@tcl.com
Latest version: 2.0.17

[![](https://img.shields.io/npm/dw/@t-ui/ffalcon-ui.svg)](https://www.npmjs.com/package/@t-ui/ffalcon-ui) [![npm package](https://img.shields.io/npm/v/@t-ui/ffalcon-ui.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@t-ui/ffalcon-ui) [![Dependencies](https://img.shields.io/david/ant-design/ant-design-pro-layout.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design-pro-layout) [![DevDependencies](https://img.shields.io/david/dev/ant-design/ant-design-pro-layout.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design-pro-layout?type=dev)

<h1 align="center">基于antd封装的UI组件</h1>

<div align="center">

适用于企业级中后台的 UI 组件库，基于 React 实现.

</div>

## 使用

```bash
npm i @t-ui/ffalcon-ui --save
// or
yarn add @t-ui/ffalcon-ui
```

```jsx
import { AdvancedTable } from '@t-ui/ffalcon-ui';

const Page = () => <AdvancedTable onSelectionChange={this.onSelectionChange} />;
```

## API

### AdvancedTable

> 基于 antd Table 的封装.

| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| onSelectionChange | 选中项发生变化时的回调 | Function(selectedRowKeys, selectedRows) | - |
| selectedRowKeys | 指定选中项的 key 数组，需要和 onChange 进行配合 | string[] \| number[] | - |
| selectedRows | 指定选中项的 对象 数组，需要和 onChange 进行配合 | object[] | - |
| selectionType | 选择类型 | 'checkbox' \| 'radio' | `'checkbox'` |

selectedRowKeys, selectedRows 互斥使用