1.6.0 • Published 10 months ago

@lobehub/market-types v1.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

LobeHub Market Types

NPM version NPM downloads

This package contains TypeScript type definitions for the LobeHub Market ecosystem. It provides a comprehensive set of interfaces and type definitions that are shared between the API server and client applications.

Overview

The type definitions in this package are organized into the following categories:

  • Market Base Types: Common type definitions used across all marketplace items
  • Plugin Types: Types related to plugins, their capabilities, and deployment options
  • Agent Types: Types related to AI agents and their features

Installation

npm install @lobehub/market-types
# or
yarn add @lobehub/market-types
# or
pnpm add @lobehub/market-types

Usage

Import the types you need in your TypeScript files:

import { AgentItem, MarketItemBase, PluginManifest } from '@lobehub/market-types';

// Use the types in your code
const plugin: PluginManifest = {
  id: 'my-plugin',
  name: 'My Plugin',
  description: 'A sample plugin',
  version: '1.0.0',
  // ...other properties
};

Type Categories

Market Base Types

The MarketItemBase interface defines the common properties shared by all marketplace items:

interface MarketItemBase {
  author?: string;
  category?: string;
  description: string;
  identifier: string;
  name: string;
  // ...other properties
}

Plugin Types

Plugin-related types include:

  • PluginManifest: Complete specification of a plugin
  • PluginTool: Definition of a tool provided by a plugin
  • PluginPrompt: Definition of a prompt template
  • PluginResource: Definition of a resource provided by a plugin
  • DeploymentOption: Deployment configuration for a plugin

Agent Types

Agent-related types include:

  • AgentItem: Definition of an agent in the marketplace

Structure

src/
├── market.ts       - Base marketplace item types
├── agent/          - Agent-related types
│   └── index.ts    - Agent type definitions
├── plugin/         - Plugin-related types
│   ├── admin.ts    - Admin-specific plugin types
│   ├── capabilities.ts - Plugin capability types
│   ├── deploymentOption.ts - Deployment option types
│   ├── plugin.ts   - Core plugin types
│   └── index.ts    - Plugin exports
└── index.ts        - Package exports

Development

To build the package:

pnpm build

License

MIT

1.6.0

10 months ago

1.5.0

11 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.3.1

11 months ago

1.3.0

11 months ago

1.2.0

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago