open-index/open-npm huggingface dataset:
npm package: @farm-framework/ai
Description: AI providers and integration for FARM framework
Latest version: 0.2.0

# @farm/ai

This package implements the AI orchestration layer for FARM.  It provides a registry
for AI providers, configuration management and utilities for running inference or
streaming responses.

## Structure

- **index.ts** – re-exports the main classes from `src`.
- **src/providers/base.ts** – abstract base class used by all AI providers and
  type definitions for messages, generation requests, models and provider status.
- **src/config/ai-config.ts** – Zod based schema definitions and the
  `AIConfigManager` class that loads, validates and normalises AI configuration.
- **src/errors/error-handler.ts** – rich `AIError` hierarchy and a global
  `AIErrorHandler` with retry and metrics support.
- **src/health/health-checker.ts** – performs periodic health checks on
  registered providers and aggregates metrics.
- **src/registry/provider-registry.ts** – manages provider instances and handles
  creation, removal and recovery.
- **src/index.ts** – high level `AISystem` which ties together the registry,
  configuration manager, health checker and error handler.

Use this package to integrate local (Ollama) or cloud providers (OpenAI,
HuggingFace) and to route requests between them at runtime.
npm package: @farm-framework/template-validator
Description: FARM template validation tool
Latest version: 0.1.0
Deprecated: This package is for internal use only. Please use the main @farm-framework/cli package instead.

# FARM Template Validator

## Overview

This directory provides tools for validating FARM project templates and configurations. It includes a CLI for running template validation, compatibility checks, and provider connectivity tests, ensuring that all templates are production-ready and compatible with supported environments.

## ✅ Completed Implementation

### Core Components

1. **CLI Entrypoint** (`src/cli.ts`)

   - Provides commands for validating all templates, specific templates, or configurations.
   - Supports options for skipping AI provider tests, running in parallel, and generating reports.
   - Includes commands for testing AI provider connectivity and running performance benchmarks.

2. **Template Validator** (`src/validator.ts`)

   - Core logic for validating templates by generating projects, running health checks, and verifying structure.
   - Handles error reporting, result aggregation, and temporary project management.

3. **Configurations** (`src/configurations.ts`)

   - Defines all supported template configurations and their variants.
   - Used to drive validation coverage and compatibility checks.

4. **Types** (`src/types.ts`)

   - TypeScript definitions for template configs, validation results, and provider settings.

5. **Usage** (`commands.md`)

```bash
# Run all template validations

farm validate

# Validate specific template

farm validate --template ai-chat

# Validate specific configuration

farm validate --template ai-chat --config ollama-only

# Skip AI provider tests (for CI environments without GPU)

farm validate --skip-ai

# Test AI provider connectivity

farm validate:providers

# Test specific provider

farm validate:providers --provider ollama

# Run performance benchmarks

farm validate:performance

# Generate compatibility report

farm validate:compatibility

# Validate against specific environments

farm validate --env development
farm validate --env production
```

## Structure

```
template-validator/
  src/
    cli.ts              # CLI entrypoint for validation
    validator.ts        # Template validation logic
    configurations.ts   # Supported template configs
    types.ts            # Type definitions
  commands.md           # Command usage and examples
```
npm package: @farm-framework/testing
Description: Testing and validation tools for FARM Framework templates
Latest version: 0.1.0
Deprecated: This package is for internal use only. Please use the main @farm-framework/cli package instead.

# FARM Testing Helpers

## Overview

This directory contains utilities and automated tests for FARM project templates and Docker-based infrastructure. It provides a comprehensive suite of tests to verify template generation, Docker integration, and project structure, ensuring the reliability of the FARM framework.

## ✅ Completed Implementation

### Core Components

1. **Vitest Test Suite** (`src/`)

   - Contains end-to-end and integration tests for template generation, Docker workflows, and platform compatibility.
   - Includes test utilities for running the FARM CLI and managing test environments.

2. **Template Validator** (`template-validator.ts`)

   - Helper class that generates a project from a template and checks its structure and compilation.
   - Used by tests to automate validation of generated projects.

3. **Setup Script** (`setup.ts`)

   - Vitest setup file for initializing the test environment and global hooks.

4. **Type Definitions** (`types.ts`)

   - TypeScript definitions for template configs, validation results, and test utilities.

5. **Exports** (`index.ts`)
   - Barrel file re-exporting the validator and types for external use in tests.

## Structure

```
testing/
  src/                  # Vitest test suite and utilities
  template-validator.ts # Template validation helper
  setup.ts              # Vitest setup script
  types.ts              # Type definitions
  index.ts              # Barrel file for exports
```
npm package: @farm-investimentos/front-mfe-components
Description: Biblioteca de componentes Vue 2.
Author: farm investimentos
Latest version: 15.14.22

# front-mfe-components

Biblioteca de componentes Vue 2.

[![codecov](https://codecov.io/gh/Farm-Investimentos/front-mfe-components/branch/develop/graph/badge.svg?token=9ERJ107152)](https://codecov.io/gh/Farm-Investimentos/front-mfe-components)

## Requisitos

- **Node.js** >= 14

## Configuração do projeto

```bash
npm install
```

## Desenvolvimento

Para rodar o Storybook em modo desenvolvimento (com hot-reload):

```bash
npm run storybook
```

## Build

- **Storybook** (documentação estática):

  ```bash
  npm run build-storybook
  ```

- **Componentes** (pacote para produção):

  ```bash
  npm run build:components
  ```

## Publicação e pipelines

- **Pacote NPM:** [@farm-investimentos/front-mfe-components](https://www.npmjs.com/package/@farm-investimentos/front-mfe-components)
- **Documentação (Storybook):** [front-farm-storybook](http://front-farm-storybook.s3-website-us-east-1.amazonaws.com/index.html)

Para o passo a passo de como publicar uma nova versão no NPM e atualizar a documentação do Storybook, consulte **[docs/PUBLISHING.md](docs/PUBLISHING.md)**.
npm package: @farm-investimentos/front-mfe-components-vue3
Description: Biblioteca de componentes Vue 3.
Author: farm investimentos
Latest version: 1.10.4

# front-mfe-components-vue3

Biblioteca de componentes Vue 3.

[![codecov](https://codecov.io/gh/Farm-Investimentos/front-mfe-components-vue3/graph/badge.svg?token=XMRME49YKD)](https://codecov.io/gh/Farm-Investimentos/front-mfe-components-vue3)

<img src="https://codecov.io/gh/Farm-Investimentos/front-mfe-components-vue3/graphs/sunburst.svg?token=XMRME49YKD" alt="Cobertura de testes unitários" />

## Requisitos

- **Node.js** > 20

## Configuração do projeto

```bash
npm install
```

## Desenvolvimento

Para rodar o Storybook em modo desenvolvimento (com hot-reload):

```bash
npm run storybook
```

## Build

- **Storybook** (documentação estática):

  ```bash
  npm run build-storybook
  ```

- **Componentes** (pacote para produção):

  ```bash
  npm run build:components
  ```

## Publicação e pipelines

- **Pacote NPM:** [@farm-investimentos/front-mfe-components-vue3](https://www.npmjs.com/package/@farm-investimentos/front-mfe-components-vue3)
- **Documentação (Storybook):** [front-farm-storybook (Vue 3)](https://front-farm-storybook.s3.us-east-1.amazonaws.com/vue3/index.html)


Para o passo a passo de como publicar uma nova versão no NPM e atualizar a documentação do Storybook, consulte **[docs/PUBLISHING.md](docs/PUBLISHING.md)**.