open-index/open-npm huggingface dataset:
npm package: @kamiyo-org/switchboard-function
Description: Switchboard On-Demand function for quality scoring in KAMIYO dispute resolution
Author: KAMIYO
Latest version: 1.0.0

# @kamiyo-org/switchboard

Switchboard On-Demand function for quality scoring in dispute resolution.

## Overview

Computes quality scores for API responses during Kamiyo disputes. Deployed as a Switchboard function that oracles execute to assess data quality.

**Scoring weights:**
- Semantic similarity: 40% (query vs response relevance)
- Completeness: 40% (expected fields and record count)
- Freshness: 20% (data recency)

## Installation

```bash
npm install @kamiyo-org/switchboard
```

## Usage

```typescript
import qualityScorer from '@kamiyo-org/switchboard';

const result = await qualityScorer({
  originalQuery: 'list all DeFi exploits from 2024',
  dataReceived: {
    exploits: [
      { protocol: 'Example', amount: 1000000, date: '2024-01-15' }
    ]
  },
  expectedCriteria: ['protocol', 'amount', 'date'],
  expectedRecordCount: 10
});

console.log(result.quality_score);      // 0-100
console.log(result.refund_percentage);  // 0-100
console.log(result.breakdown);          // { semantic, completeness, freshness }
```

## Refund Calculation

| Quality Score | Refund |
|---------------|--------|
| 80-100 | 0% |
| 50-79 | Sliding scale |
| 0-49 | 100% |

## Switchboard Deployment

```bash
# Build function
npm run build

# Deploy to Switchboard
sb function create --name kamiyo-quality \
  --container your-registry/kamiyo-quality:latest
```

## Development

```bash
npm run build
npm test
```

## License

MIT
npm package: @kamkom/awb
Description: Agentic Workspace Bootstrapper CLI
Latest version: 0.1.0

# Agentic Workspace Bootstrapper (AWB)

Minimal CLI scaffold for the `awb` command.

## Prerequisites

- Node.js >= 18

## Install from npm

Install globally and run:

```bash
npm install -g @kamkom/awb
awb --help
```

Or run without installing:

```bash
npx @kamkom/awb --help
```

## Development

### Install

```bash
npm install
```

### Build

```bash
npm run build
```

### Test

```bash
npm test
```

### Lint / Format

```bash
npm run lint
npm run format
```

### Run the CLI

```bash
node dist/index.js --help
```