open-index/open-npm huggingface dataset:
npm package: @joseph.ehler/wizard-core
Description: Headless wizard engine: expression parser, flow runtime, validation
Author: Intelligence Studio
Latest version: 0.1.0

# @intelligence-studio/wizard-core

Headless wizard engine with expression evaluation, flow validation, and runtime.

## Features

- ✅ **Expression Engine** - Safe, allowlisted expression evaluation
- ✅ **Flow Schema** - Zod-based validation for wizard flows
- ✅ **Flow Validator** - Strict validation with machine-readable errors
- ✅ **100% Tested** - Complete test coverage

## Installation

```bash
npm install @intelligence-studio/wizard-core zod
```

## Usage

### Expression Engine

```typescript
import { evaluateExpression } from '@intelligence-studio/wizard-core'

const result = evaluateExpression(
  'ctx.vehicle.mileage > 100000',
  {
    ctx: { vehicle: { mileage: 150000 } },
    fields: {}
  }
)

console.log(result.value) // true
```

### Flow Validation

```typescript
import { validateFlow, FlowSchema } from '@intelligence-studio/wizard-core'

const flow = {
  version: '1.0.0',
  chapters: [/* ... */],
  // ...
}

const result = validateFlow(flow)

if (!result.valid) {
  console.error(result.issues)
}
```

## API

### `evaluateExpression(expression, context)`

Evaluates a safe expression with allowlisted operations.

### `validateFlow(flow, options?)`

Validates a flow against the schema.

## License

Apache-2.0
npm package: @joseph.ehler/wizard-datasources
Description: Data source manager with SSRF protection, retries, circuit breakers, caching
Author: Intelligence Studio
Latest version: 0.1.0

# @intelligence-studio/wizard-datasources

Production-grade data source manager with SSRF protection, retries, circuit breakers, and caching.

## Features

- ✅ **SSRF Protection** - Blocks private IPs, enforces HTTPS, host allowlisting
- ✅ **Retry with Jitter** - Exponential/linear/fixed backoff strategies
- ✅ **Circuit Breakers** - Prevents cascading failures
- ✅ **LRU Cache** - With TTL and custom cache keys
- ✅ **In-Flight Deduplication** - Coalesces concurrent identical requests
- ✅ **Privacy Enforcer** - Classification, purpose, retention, AI gates
- ✅ **79/79 Tests Passing** - 100% test coverage

## Installation

```bash
npm install @intelligence-studio/wizard-datasources @intelligence-studio/wizard-core zod
```

## Usage

### Basic Usage

```typescript
import { DataSourceManager } from '@intelligence-studio/wizard-datasources'

const dsm = new DataSourceManager({
  allowedHosts: [
    '^/api/',
    'https://api\\.motomind\\.com'
  ],
  requireHTTPS: true,
  blockPrivateIPs: true,
})

const result = await dsm.execute({
  name: 'vinDecode',
  type: 'http.get',
  url: '/api/vin/decode?vin={{fields.vin.value}}',
  retry: {
    retries: 3,
    backoff: 'exponential',
    baseMs: 100,
    maxMs: 5000
  }
}, context)
```

### With Circuit Breaker

```typescript
const result = await dsm.execute({
  name: 'slowService',
  type: 'http.get',
  url: 'https://api.example.com/data',
  circuitBreaker: {
    enabled: true,
    threshold: 5,
    timeout: 60000,
    halfOpenAttempts: 3
  }
}, context)
```

## API

### `DataSourceManager`

Main class for managing data sources.

### Security Features

- **URL Validator** - SSRF protection, HTTPS enforcement
- **Retry Logic** - With jitter to prevent thundering herd
- **Circuit Breaker** - Auto-recovery with half-open state
- **Privacy Enforcer** - Required tags for data handling

## License

Apache-2.0