open-index/open-npm huggingface dataset:
npm package: @oahl/cli
Description: The command-line interface for the **Open Agent Hardware Layer (OAHL)**.
Latest version: 1.0.0

# @oahl/cli

The command-line interface for the **Open Agent Hardware Layer (OAHL)**. 

This tool provides an interactive wizard for hardware owners to easily configure their hardware nodes, set up safety policies, and expose devices to AI agents without having to write code or manually edit JSON files.

## Installation

```bash
npm install -g @oahl/cli
```

## Usage

### Initialize a new Node

Run the interactive setup wizard to generate your `oahl-config.json`:

```bash
oahl init
```

The wizard will ask you for:
- Your node name and provider details
- The type of hardware you are connecting (e.g., USB Camera, RTL-SDR)
- Privacy and security policies for the device

### Scaffold a new Adapter

Generate a starter adapter package:

```bash
oahl create-adapter my-device
```

This creates a ready-to-edit adapter with a valid OAHL interface implementation.

### Run conformance checks

Run the OAHL core conformance suite from your monorepo root:

```bash
oahl conformance
```

Or specify a workspace path:

```bash
oahl conformance --workspace /path/to/oahl
```

### Configure with Terminal UI (TUI)

Open an interactive terminal UI to manage node settings, plugins, devices, and access policies:

```bash
oahl tui
```

Use a custom config path if needed:

```bash
oahl tui --config ./my-oahl-config.json
```

In TUI, use **Import detected devices from plugins** to auto-populate `devices` from currently installed adapters, then edit access policy/visibility for each imported device.

### Scan connected USB/serial ports

Scan currently connected devices and get adapter suggestions:

```bash
oahl scan-ports
```

Output JSON for scripting/tooling:

```bash
oahl scan-ports --json
```

The scan output includes detected IDs, port type, suggested adapter, capability hints, and config snippets to accelerate adapter creation.

### What is OAHL?
OAHL is an open-source framework that lets hardware owners safely expose physical capabilities (like taking pictures or scanning radio frequencies) to remote AI agents. 

For the full documentation, visit the [main OAHL repository](https://github.com/fredabila/oahl).
npm package: @oahl/cloud
Description: The cloud registry and routing service for the **Open Agent Hardware Layer (OAHL)**.
Latest version: 1.0.0

# @oahl/cloud

The cloud registry and routing service for the **Open Agent Hardware Layer (OAHL)**.

This package acts as the central control plane (or matchmaking brain) for the Agent Hardware Cloud. 
- **Nodes** (`@oahl/server`) securely connect to this registry to announce that they have hardware available.
- **AI Agents** connect to this registry to discover available capabilities and request hardware sessions.

## Features
- Hardware node registration (`POST /v1/provider/nodes/register`)
- Global capability discovery (`GET /v1/capabilities`)
- Agent hardware session requests (`POST /v1/requests`)

## Session Request Matching
`POST /v1/requests` supports these request shapes:

- Deterministic (recommended): `{ "device_id": "...", "capability": "..." }`
- Node-pinned deterministic: `{ "device_id": "...", "node_id": "...", "capability": "..." }`
- Backward-compatible fallback: `{ "capability": "..." }`

When only `capability` is provided, the cloud selects the first available compatible device.

## Capability Discovery at Scale
Use `GET /v1/capabilities` with optional query params:

- `q` (text search)
- `type` (exact device type)
- `provider` (exact provider)
- `node_id` (exact node)
- `capability` (capability-name filter)
- `page` (1-based)
- `page_size` (max 100)

Response now includes a `pagination` object and preserves `devices` for compatibility.

## What is OAHL?
OAHL is an open-source framework that lets hardware owners safely expose physical capabilities (like taking pictures or scanning radio frequencies) to remote AI agents. 

For the full documentation, visit the [main OAHL repository](https://github.com/fredabila/oahl).
npm package: @oahl/core
Description: Shared types, interfaces, and core domain logic for the **Open Agent Hardware Layer (OAHL)**.
Latest version: 1.0.0

# @oahl/core

Shared types, interfaces, and core domain logic for the **Open Agent Hardware Layer (OAHL)**.

This package contains the foundational building blocks used by the OAHL ecosystem, including:
- Standardized Types (`Device`, `Capability`, `Session`, `Policy`)
- `PolicyEngine` for validating safe hardware operations.
- `SessionManager` for handling hardware reservations and lifecycle.

If you are building custom hardware adapters for OAHL, you will import interfaces from this package.

## Installation

```bash
npm install @oahl/core
```

## What is OAHL?
OAHL is an open-source framework that lets hardware owners safely expose physical capabilities (like taking pictures or scanning radio frequencies) to remote AI agents. 

For the full documentation, visit the [main OAHL repository](https://github.com/fredabila/oahl).
npm package: @oahl/server
Description: The local hardware node server for the **Open Agent Hardware Layer (OAHL)**.
Latest version: 1.0.0

# @oahl/server

The local hardware node server for the **Open Agent Hardware Layer (OAHL)**.

This is the daemon that runs on the hardware owner's machine (laptop, Raspberry Pi, server). It reads your `oahl-config.json`, loads the appropriate hardware adapters, and safely exposes your physical devices as standardized capabilities (like `camera.capture`) via a local API.

## Installation

```bash
npm install -g @oahl/server
```

## Usage

You must have an `oahl-config.json` file in your current directory. (You can generate one easily using `@oahl/cli`).

To start the node:
```bash
# Ensure your config file is in the current directory, then run:
npm start -w @oahl/server
```
*(Note: A global CLI command like `oahl start` is the recommended way to wrap this execution).*

## What is OAHL?
OAHL is an open-source framework that lets hardware owners safely expose physical capabilities (like taking pictures or scanning radio frequencies) to remote AI agents. 

For the full documentation, visit the [main OAHL repository](https://github.com/fredabila/oahl).
npm package: @oaiao/x-map
Description: ## Project setup ``` yarn install ```
Author: 奇点老T
Latest version: 0.1.4

# x-map

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Run your unit tests
```
yarn test:unit
```

### Run your end-to-end tests
```
yarn test:e2e
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @oaix/json-schema-to-typescript
Description: Convert JSON Schema to Typescript.
Latest version: 0.1.0

# @oaix/json-schema-to-typescript

[![npm](https://img.shields.io/npm/v/@oaix/json-schema-to-typescript.svg)](https://www.npmjs.com/package/@oaix/json-schema-to-typescript)
[![npm](https://img.shields.io/npm/dt/@oaix/json-schema-to-typescript.svg)](https://www.npmjs.com/package/@oaix/json-schema-to-typescript)
[![npm](https://img.shields.io/npm/l/@oaix/json-schema-to-typescript.svg)](https://www.npmjs.com/package/@oaix/json-schema-to-typescript)

## Overview

Convert JSON Schema to Typescript.

## Usage

```bash
pnpm @oaix/json-schema-to-typescript -h
```