open-index/open-npm huggingface dataset:
npm package: @lauginwing/openapi-gen
Description: 根据swagger文档生成api代码及其类型
Author: jianrong
Latest version: 0.0.4

## openapi-gen

根据 swagger 文档生成 api 代码及其类型

### 安装
```bash
yarn add @lauginwing/openapi-gen
```
### 使用

-   cli 使用

```bash
openapi-gen -c ./config.js
// -c : 设定配置文件所在地址，不传则默认取终端当前目录下的genapiconfig.js

// 本地使用
npx openapi-gen -c ./config.js
```

-   js 调用

```js
import {gen} from '@lauginwing/openapi-gen'
import config from './genapiconfig.ts'

gen(config)
```

### 配置

一般情况下，只需配置前四项即可

例子

```js
// config.js
const path = require('path')

module.exports = [
    {
        api: `https://petstore.swagger.io/v2/swagger.json`,
        sdkDir: path.join(__dirname, './src/api/pet'),
        namespace: 'Pet',
        prefix: '/pet',
    },
]
```

完整类型:
> 参考 https://github.com/zhang740/openapi-generator#readme
```ts
interface config {
    /** api文档地址 **/
    api: string
    /** 生成目录 */
    sdkDir: string
    /** 复杂类型命名空间 */
    namespace?: string
    /** 在每个请求的请求地址前加的前缀 */
    prefix?: string

    saveOpenAPIData?: boolean
    autoClear?: boolean
    /** 自动清除旧文件时忽略列表 */
    ignoreDelete?: string[]
    /** 参数类型的模板的地址 */
    paramInterfaceTemplatePath?: string
    /** Service模板文件路径 */
    templatePath?: string
    /** Interface模板文件路径 */
    interfaceTemplatePath?: string
    /** 生成请求库 */
    requestLib?: boolean
    /** filename style, true 为大驼峰，lower 为小驼峰 */
    camelCase?: boolean | 'lower'
    /** gen type */
    type?: 'ts' | 'js'
    /** 生成 Service 类型 */
    serviceType?: 'function' | 'class'
    /** 拿到 swagger json ，做前置处理，返回处理好的数据 **/
    beforeParseSwagger?: (data: SwaggerJSon | OpenApiJson) => Promise<SwaggerJSon | OpenApiJson>
    /** 数据处理钩子 */
    hook?: {
        /** 自定义函数名称 */
        customFunctionName?: (data: OperationObject) => string
        /** 自定义类名 */
        customClassName?: (tagName: string) => string
    }
    /** path过滤 */
    filter?: (RegExp | ((data: APIDataType) => boolean))[]
}
```
npm package: @lauginwing/openapi-generator
Description: 根据 swagger 文档生成 api 代码及其类型
Author: zhang740
Latest version: 0.0.1

## openapi-genrator

根据 swagger 文档生成 api 代码及其类型

### 安装

```bash
yarn add @lauginwing/openapi-genrator
```

### 使用

- cli 使用

```bash
openapi-gen -c ./config.js
// -c : 设定配置文件所在地址，不传则默认取终端当前目录下的genapiconfig.js

// 本地使用
npx openapi-gen -c ./config.js
```

- js 调用

```js
import { gen, configure } from '@lauginwing/openapi-genrator';
import apiConfig from './genapiconfig.ts';
configure({
  // 腾讯云的秘钥，用于翻译api文档中的中文模块名。可选
  tencentCloudSecretId: secretId,
  tencentCloudSecretKey: secretKey,
});

gen(apiConfig);
```

### 配置

一般情况下，只需配置前四项即可

例子

```js
// config.js
const path = require('path');

exports.apiConfig = [
  {
    api: `https://petstore.swagger.io/v2/swagger.json`,
    sdkDir: path.join(__dirname, './src/api/pet'),
    namespace: 'Pet',
    prefix: '/pet',
  },
];
```

完整类型:

> 参考 https://github.com/zhang740/openapi-generator#readme

```ts
interface ApiConfig {
  /** api文档地址 **/
  api: string;
  /** 生成目录 */
  sdkDir: string;
  /** 复杂类型命名空间 */
  namespace?: string;
  /** 在每个请求的请求地址前加的前缀 */
  prefix?: string;

  saveOpenAPIData?: boolean;

  autoClear?: boolean;
  /** 自动清除旧文件时忽略列表 */
  ignoreDelete?: string[];
  /** 参数类型的模板的地址 */
  paramInterfaceTemplatePath?: string;
  /** Service模板文件路径 */
  templatePath?: string;
  /** Interface模板文件路径 */
  interfaceTemplatePath?: string;
  /** 生成请求库 */
  requestLib?: boolean;
  /** filename style, true 为大驼峰，lower 为小驼峰 */
  camelCase?: boolean | 'lower';
  /** gen type */
  type?: 'ts' | 'js';
  /** 生成 Service 类型 */
  serviceType?: 'function' | 'class';
  /** 拿到 swagger json ，做前置处理，返回处理好的数据 **/
  beforeParseSwagger?: (data: SwaggerJSon | OpenApiJson) => Promise<SwaggerJSon | OpenApiJson>;
  /** 数据处理钩子 */
  hook?: {
    /** 自定义函数名称 */
    customFunctionName?: (data: OperationObject) => string;
    /** 自定义类名 */
    customClassName?: (tagName: string) => string;
  };
  /** path过滤 */
  filter?: (RegExp | ((data: APIDataType) => boolean))[];
}

interface Config {
  tencentCloudSecretId: string;
  tencentCloudSecretKey: string;
}
```
npm package: @lauginwing/swagger-openapi-generator
Description: [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down
Author: zhang740
Latest version: 0.1.44
Deprecated: delete

# openapi-generator

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/openapi-generator.svg?style=flat-square
[npm-url]: https://npmjs.org/package/openapi-generator
[travis-image]: https://img.shields.io/travis/zhang740/openapi-generator.svg?style=flat-square
[travis-url]: https://travis-ci.org/zhang740/openapi-generator
[codecov-image]: https://codecov.io/github/zhang740/openapi-generator/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/zhang740/openapi-generator?branch=master
[david-image]: https://img.shields.io/david/zhang740/openapi-generator.svg?style=flat-square
[david-url]: https://david-dm.org/zhang740/openapi-generator
[snyk-image]: https://snyk.io/test/npm/openapi-generator/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/openapi-generator
[download-image]: https://img.shields.io/npm/dm/openapi-generator.svg?style=flat-square
[download-url]: https://npmjs.org/package/openapi-generator

# Quick View

openapi-generator from swagger 2.0 or OpenAPI 3.0:

## Simple

`openapi-generator url http://xxx/v2/api-docs -c true`

## Use Config

`openapi-generator config ./xxx.js` or `openapi-generator config ./xxx.json`

Config interface:

```ts
interface CliConfig {
  api: string;

  /** dir for openapi-generator */
  sdkDir: string;
  /** path of service template */
  templatePath?: string;
  /** path of interface template */
  interfaceTemplatePath?: string;
  /** request lib */
  requestLib = true;
  /** filename style, true 为大驼峰，lower 为小驼峰 */
  camelCase?: boolean | 'lower' = false;
  /** gen type */
  type?: 'ts' | 'js' = 'ts';
  /** service type */
  serviceType?: 'function' | 'class' = 'function';
  /** namespace of typings */
  namespace?: string = 'API';
  /** 自动清除旧文件时忽略列表 */
  ignoreDelete: string[] = [];
}
```

### genAPISDK

`function genAPISDK(data: RouteMetadataType[], config: GenConfig) => void`
npm package: @launch-list/nextjs
Description: LaunchList package for Next.js
Latest version: 0.1.6

# @launch-list/nextjs

<p align="center">
<a href="https://github.com/OrbitechSoftware/launch-list">
<img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white" />
</a>
</p>

## Overview

Launch List is the easiest way to add lead generation to your Next.js app.

## Getting Started

### Installation

```bash
npm i @launch-list/nextjs
```

## Usage

Add your Launch List API key and project ID to your .env file

```.env
NEXT_PUBLIC_LAUNCH_LIST_API_KEY=<YOUR-API-KEY>
NEXT_PUBLIC_LAUNCH_LIST_PROJECT_ID=<YOUR-PROJECT-ID>
```

Now, you can import the `<SignUp />` component from Launch List. This is a client component and will work in both server and client components.

Full example:

```tsx
import { SignUp } from "@launch-list/nextjs";

export default function Home() {
  return (
    <div>
      <SignUp />
    </div>
  );
}
```
npm package: @launch11/srgical
Description: A polished local-first CLI for planning and executing long AI-driven delivery sequences.
Latest version: 0.0.62

# srgical

`srgical` is a local-first CLI for planning work with an AI, turning that plan into a visible pack inside your repo, and then executing the next step cleanly.

It is built around a simple loop:

1. `prepare` the plan
2. approve it
3. `operate` the next step
4. repeat

## Install From npm

Requirements:

- Node.js 20 or newer
- At least one local agent CLI installed and working on your machine: `codex`, `claude`, or `auggie`

```bash
npm install -g @launch11/srgical
```

After install:

```bash
srgical about
```

## Quick Start

Create or reopen a named plan:

```bash
srgical prepare release-readiness
```

That command creates the plan pack under `.srgical/plans/release-readiness/` if it does not exist, then opens the full-screen prepare studio.

Inside `prepare`:

- Type normal text to talk to the planner
- Press `F2` to gather more context
- Press `F3` to build the draft
- Press `F4` to slice the plan into steps
- Press `F6` to approve the current draft
- Type `:help` to see the command list

Check the current state at any time:

```bash
srgical status release-readiness
```

When the plan is approved, switch to execution:

```bash
srgical operate release-readiness
```

Useful operate variants:

```bash
srgical operate release-readiness --dry-run
srgical operate release-readiness --auto --max-steps 5
srgical operate release-readiness --checkpoint
```

## Main Commands

```bash
srgical prepare <id>
srgical operate <id>
srgical status [id]
srgical about
srgical changelog
srgical completion bash
srgical completion powershell
```

## What Gets Written

`srgical` keeps its working state in `.srgical/` inside your repo so the plan, progress, and execution handoff stay visible to both humans and agents.

## Notes

- Legacy commands such as `doctor`, `init`, `studio`, and `run-next` now exist only to point you to the rebooted workflow.
- If you want a fuller walkthrough of the prepare experience, see [docs/studio-plan-tutorial.md](docs/studio-plan-tutorial.md).

## Development

```bash
npm install
npm run build
npm test
npm run dev -- prepare release-readiness
```
npm package: @launchacademy/shortcut-cli
Description: Query cli tool for shortcut
Latest version: 0.0.1

# Launch Academy - Shortcut CLI

## Install

```javascript
yarn global add @launchacademy/shortcut-cli
```

## Configure Your Shortcut Projects and Queries

In `~/.shortcut.yml`:

```yml
launchAcademy:
  apiKey: <API KEY>
  name: "Launch Academy"
  queries:
    - name: "Ready for Review"
      query: 'state:"Ready for Review"'
project2:
  apiKey: <API KEY>
  name: "Client Project"
  queries:
    - name: "Ready for Review"
      query: 'state:"Ready for Review"'
```

## Run Anywhere

```bash
shortcut query
```