open-index/open-npm huggingface dataset:
npm package: @swarmtools/evals
Description: Evaluation suite for swarm-tools multi-agent coordination
Author: Joel Hooks
Latest version: 0.2.40

# @swarmtools/evals

```
    🐝   EVAL SUITE   🐝
━━━━━━━━━━━━━━━━━━━━━━━━━━
  Swarm Intelligence QA
```

Evaluation suite for swarm-tools multi-agent coordination. Uses [Evalite](https://evalite.dev) to measure coordinator behavior, decomposition quality, and compaction correctness.

## Purpose

This package contains the evaluation framework for the swarm-tools ecosystem. Extracting evals into a separate package ensures:

1. **Clean Dependencies** - Main plugin doesn't need evalite/vitest in production
2. **Faster Installs** - Eval deps only needed for development/CI
3. **Isolated Testing** - Eval suite can evolve independently from plugin

## What Gets Evaluated

- **Coordinator Protocol** - Does the coordinator spawn workers vs doing work itself?
- **Coordinator Behavior** - LLM behavior after compaction (stays in coordinator role)
- **Compaction Resumption** - Context injection correctness after compaction
- **Compaction Prompt Quality** - Quality of continuation prompts generated
- **Task Decomposition** - Quality of task splitting, file conflict detection
- **Strategy Selection** - Correct strategy choice for task characteristics
- **Decision Quality** - Strategy selection quality and precedent relevance

## Usage

```bash
# Run all evals
bun run test

# Build for publishing
bun run build

# Type check
bun run typecheck
```

## Package Structure

This package is part of the swarm-tools monorepo:

- `opencode-swarm-plugin` - Main plugin (peer dependency)
- `swarm-mail` - Event sourcing primitives (peer dependency)
- `@swarmtools/evals` - This package

## Development

Evals use real coordinator sessions captured to `~/.config/swarm-tools/sessions/*.jsonl`. See `docs/README.md` in this package for details on session capture and eval architecture.

## License

MIT
npm package: @swarmvault/claude-skill
Description: Claude skill for Swarm Vault manager trading - execute swaps and transactions through Claude
Author: Lit Protocol
Latest version: 1.0.1

# @swarmvault/claude-skill

A Claude Code skill for Swarm Vault manager trading. Execute swaps and transactions using natural language.

## Installation

```bash
npx skills add @swarmvault/claude-skill
```

## Setup

1. **Get your API key** from [swarmvault.xyz/settings](https://swarmvault.xyz/settings)

2. **Set your environment variable:**
   ```bash
   export SWARM_VAULT_API_KEY="svk_your_api_key_here"
   ```

3. **Start using Claude Code** - just ask what you want to do!

## Usage

Once installed, you can ask Claude things like:

- "What tokens does my swarm hold?"
- "Preview swapping 50% of USDC to WETH"
- "Execute a swap of all ETH to USDC with 2% slippage"
- "Check the status of my last transaction"

Claude will use the skill to execute the appropriate commands and interpret the results for you.

## Example Workflow

```
You: What swarms do I manage?

Claude: Let me check your swarms...
[runs check-holdings]
You manage 2 swarms:
1. Alpha Traders (12 members, 5.2 ETH, 10,000 USDC)
2. DeFi Squad (8 members, 2.1 ETH, 5,000 USDC)

You: Preview swapping 50% of USDC to WETH for Alpha Traders

Claude: [runs preview-swap]
Preview for Alpha Traders:
- Selling: 5,000 USDC (50% of holdings)
- Buying: ~1.85 WETH (estimated)
- Members affected: 12
- All members have sufficient balance

You: Execute that swap

Claude: [runs execute-swap]
Swap initiated! Transaction ID: abc-123
Waiting for confirmation...
✓ 12/12 members confirmed
Swap completed successfully!
```

## Available Commands

The skill provides these commands that Claude can use:

| Command | Description |
|---------|-------------|
| `check-holdings [swarmId]` | View token holdings |
| `preview-swap <swarmId> <sell> <buy> [%] [slippage]` | Preview a swap |
| `execute-swap <swarmId> <sell> <buy> [%] [slippage]` | Execute a swap |
| `execute-transaction <swarmId> <template>` | Execute raw transaction |
| `check-transaction <txId> [--wait]` | Check transaction status |

## Token Symbols

You can use these symbols instead of addresses:

- `ETH` - Native ETH
- `WETH` - Wrapped ETH
- `USDC` - USD Coin
- `DAI` - Dai Stablecoin
- `USDbC` - Bridged USDC
- `cbETH` - Coinbase ETH

## Documentation

For advanced usage and template placeholders, see [SKILL.md](./SKILL.md).

## Links

- [Swarm Vault](https://swarmvault.xyz)
- [API Documentation](https://api.swarmvault.xyz/api/docs)
- [JavaScript SDK](https://www.npmjs.com/package/@swarmvault/sdk)
- [GitHub](https://github.com/LIT-Protocol/swarm-vault)

## License

MIT
npm package: @swarmvaultai/viewer
Description: Graph viewer package for SwarmVault graph artifacts.
Latest version: 0.7.26

# @swarmvaultai/viewer

`@swarmvaultai/viewer` is the graph UI package for SwarmVault.

It powers `swarmvault graph serve` and renders `state/graph.json` as an interactive graph of sources, concepts, and entities.

## What It Does

The viewer loads graph data from `/api/graph` and renders:

- source nodes
- concept nodes
- entity nodes
- extracted, inferred, conflicted, and stale edge states

Its main purpose is to support the SwarmVault runtime, but the package also exports lightweight types and helpers for custom integrations.

## Package Use

```ts
import { fetchGraphArtifact } from "@swarmvaultai/viewer";

const graph = await fetchGraphArtifact("/api/graph");
console.log(graph.nodes.length);
```

## Notes

- End users do not need to install this package separately to use `swarmvault graph serve`
- The CLI and engine bundle the built viewer assets for the normal install path

## Development

```bash
pnpm build
pnpm lint
pnpm test
```

## Links

- Website: https://www.swarmvault.ai
- Docs: https://www.swarmvault.ai/docs
- GitHub: https://github.com/swarmclawai/swarmvault
npm package: @swarthy/wait-for
Description: Wait for (PostgresSQL|RabbitMQ|Redis) server is available
Author: Alexander Mochalin
Latest version: 2.1.1

# wait-for

[![npm](https://img.shields.io/npm/v/@swarthy/wait-for.svg)](https://www.npmjs.com/package/@swarthy/wait-for)
[![Build Status](https://travis-ci.org/swarthy/wait-for.svg?branch=master)](https://travis-ci.org/swarthy/wait-for)

_wait-for_ will try connect to server then exit with code `0` if server is available and `1` otherwise.

## Usage

### PostgreSQL

```bash
wait-for --postgresql postgres://postgres@localhost && npm run test-integration
# or
POSTGRESQL_URI=postgres://postgres@localhost wait-for --postgresql && npm run test-integration
```

### RabbitMQ

```bash
wait-for --rabbitmq amqp://localhost && npm run test-integration
# or
RABBITMQ_URI=amqp://localhost wait-for --rabbitmq && npm run test-integration
```

### Redis

```bash
wait-for --redis redis://localhost && npm run test-integration
# or
REDIS_URI=redis://localhost wait-for --redis && npm run test-integration
```

### Example

Wait for PostgreSQL, RabbitMQ and Redis (configured via environment)

```bash
wait-for --postgresql --rabbitmq --redis && npm run test-integration
```

## Configuration

| CLI argument       | Environment variable | Description            | Default |
| ------------------ | -------------------- | ---------------------- | ------- |
| --postgressql      | `POSTGRESQL_URI`     | Connection string      |         |
| --rabbitmq         | `RABBITMQ_URI`       | Connection string      |         |
| --redis            | `REDIS_URI`          | Connection string      |         |
| -c, --max-attempts |                      | Max attempt count      | 60      |
| -d, --delay        |                      | Delay between attempts | 1000    |
| -q, --quiet        |                      | Quiet mode             |         |

### Used packages

[amqplib](https://www.npmjs.com/package/amqplib)
[pg](https://www.npmjs.com/package/pg)
[redis](https://www.npmjs.com/package/redis)