New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@yuankui/ai-actions

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yuankui/ai-actions

AI Actions CLI is a command-line tool that allows you to execute AI-driven actions using a configuration file. It supports different types of actions, such as shell commands and TypeScript scripts.

latest
npmnpm
Version
0.0.4
Version published
Maintainers
0
Created
Source

AI Actions CLI

AI Actions CLI is a command-line tool that allows you to execute AI-driven actions using a configuration file. It supports different types of actions, such as shell commands and TypeScript scripts.

Installation

To install the package globally, run:

npm install -g @yuankui/ai-actions

Configuration

Create a configuration file at ~/.ai-actions/config.yaml with the following structure:

ai:
  apiKey: YOUR_OPENAI_API_KEY

actions:
  exampleAction:
    type: shell
    config:
      prompt: 'echo Hello, World!'
      output: 'text'

Replace YOUR_OPENAI_API_KEY with your actual OpenAI API key.

Usage

To run the CLI, use the following command:

ai <action> [args...]
  • <action>: The name of the action defined in your configuration file.
  • [args...]: Optional arguments to pass to the action.

Example

ai exampleAction

This will execute the exampleAction defined in your configuration file.

Development

To contribute to the development of this CLI, clone the repository and install the dependencies:

git clone https://github.com/yourusername/ai-actions-cli.git
cd ai-actions-cli
bun install

Running Locally

You can run the CLI locally using:

bun run index.ts <action> [args...]

License

This project is licensed under the MIT License.

FAQs

Package last updated on 09 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts