open-index/open-npm huggingface dataset:
npm package: @manet/agent-event-stream
Description: Agent Event Stream types and specifications for Manet Agent framework
Latest version: 0.0.4

# @manet/agent-event-stream

Agent Event Stream types and specifications for Manet Agent framework.

## Installation

```bash
pnpm add @manet/agent-event-stream
```

## Usage

```typescript
import { AgentEventStream } from '@manet/agent-event-stream';

// Create events
const userMessage: AgentEventStream.UserMessageEvent = {
  id: 'event-1',
  type: 'user_message',
  timestamp: Date.now(),
  content: 'Hello, world!'
};

// Type guards
if (AgentEventStream.isEnvironmentInputEvent(event)) {
  // Handle environment input
}
```

## Documentation

See [SPECIFICATION.md](./SPECIFICATION.md) for complete API documentation and usage guidelines.

## License

Apache-2.0
npm package: @manet/config-loader
Description: A TypeScript SDK to load your configuration from various file formats.
Latest version: 0.0.4

# @manet/config-loader

A TypeScript SDK to load your configuration from various file formats.

## Installation

```bash
pnpm install @manet/config-loader
```

## Quick Start

```ts
import { loadConfig } from '@manet/config-loader';

// Define your config type for better type safety
interface MyConfig {
  apiKey: string;
  baseUrl: string;
  features: {
    enableCache: boolean;
    timeout: number;
  };
}

// Load config with type checking
const { content, filePath } = await loadConfig<MyConfig>({
  configFiles: [
    'sailors.config.ts',
    'sailors.config.js',
    'sailors.config.json',
    'sailors.config.yml',
  ],
});

console.log('Config loaded from:', filePath);
console.log('API Key:', content.apiKey);
```

## Features

### Supported File Formats

- TypeScript (.ts)
- JavaScript (.js, .mjs, .cjs)
- JSON (.json)
- YAML (.yml, .yaml)

### Configuration as a Function

You can export a function from your config file that receives environment information:

```ts
// sailors.config.ts
export default ({ env, meta }) => {
  return {
    apiKey: env === 'production' ? process.env.PROD_API_KEY : 'dev-key',
    debug: env !== 'production',
  };
};
```

### Configuration Options

```ts
interface LoadConfigOptions {
  // Working directory to resolve config files from
  cwd?: string;

  // Specific path to config file (absolute or relative to cwd)
  path?: string;

  // Custom metadata passed to config function
  meta?: Record<string, unknown>;

  // Environment mode (defaults to process.env.NODE_ENV)
  envMode?: string;

  // Loader type: 'jiti' (default) or 'native'
  loader?: 'jiti' | 'native';

  // Array of config file names to search for
  configFiles?: string[];
}
```

## Example

### Using with Strong Typing

```ts
// types.ts
export interface ServerConfig {
  port: number;
  host: string;
  corsOrigins: string[];
  database: {
    url: string;
    maxConnections: number;
  };
}

// usage.ts
import { loadConfig } from '@manet/config-loader';
import type { ServerConfig } from './types';

const { content } = await loadConfig<ServerConfig>({
  configFiles: ['server.config.ts', 'server.config.js'],
});

// TypeScript knows the shape of content
const { port, host, database } = content;
```
npm package: @manet/llm-client
Description: A TypeScript SDK to call multiple LLM Providers in OpenAI format.
Latest version: 0.0.4

# @manet/llm-client

A TypeScript SDK to call multiple LLM Providers in OpenAI format.

## Credits

This package is forked from [token.js](https://github.com/token-js/token.js), For multimodal and Azure OpenAI support, we had to fork, thanks to [RPate97](https://github.com/RPate97) for his work.
npm package: @manet/mcp-agent
Description: An event-stream driven MCP Agent Framework for building effective multimodal Agents.
Latest version: 0.0.4

# @manet/mcp-agent

An event-stream driven MCP Agent Framework for building effective multimodal Agents.

## Installation

```bash
npm install @manet/mcp-agent
```

## Usage

```typescript
import { MCPAgent } from '@manet/mcp-agent';

const agent = new MCPAgent({
  instructions: 'You are a helpful assistant.',
  mcpServers: {
    filesystem: {
      command: 'npx',
      args: ['@agent-infra/mcp-server-filesystem@latest'],
    },
    browser: {
      command: 'npx',
      args: ['@agent-infra/mcp-server-browser@latest'],
    },
  },
  model: {
    provider: 'openai',
    model: 'gpt-4',
  },
});

await agent.initialize();
const response = await agent.run('List files in current directory');
await agent.cleanup();
```

## MCP Server Configuration

### Stdio Transport

```typescript
{
  mcpServers: {
    commands: {
      command: 'npx',
      args: ['-y', '@agent-infra/mcp-server-commands@latest'],
      env: { NODE_ENV: 'production' }
    }
  }
}
```

### HTTP/SSE Transport

```typescript
{
  mcpServers: {
    remote: {
      url: 'http://localhost:8089/sse';
    }
  }
}
```

## Server Filtering

```typescript
const agent = new MCPAgent({
  mcpServers: {
    /* all servers */
  },
  mcpServer: {
    include: ['filesystem', 'browser'],
    exclude: ['dangerous-server'],
  },
});
```

## Available MCP Servers

- [`@agent-infra/mcp-server-filesystem`](https://www.npmjs.com/package/@agent-infra/mcp-server-filesystem) - File operations
- [`@agent-infra/mcp-server-browser`](https://www.npmjs.com/package/@agent-infra/mcp-server-browser) - Web automation
- [`@agent-infra/mcp-server-commands`](https://www.npmjs.com/package/@agent-infra/mcp-server-commands) - Command execution
- [`@agent-infra/mcp-server-search`](https://www.npmjs.com/package/@agent-infra/mcp-server-search) - Search operations