open-index/open-npm huggingface dataset:
npm package: @nooterra/core
Description: TypeScript SDK for Nooterra registry and coordinator APIs
Latest version: 0.1.1

# @nooterra/core (TypeScript SDK)

Lightweight SDK for the Nooterra registry and coordinator APIs.

## Install (local)

```
npm install @nooterra/core
```

## Usage

```ts
import { NooterraClient } from "@nooterra/core";

const client = new NooterraClient({
  registryUrl: "https://api.nooterra.ai",
  coordinatorUrl: "https://coord.nooterra.ai",
  registryApiKey: "YOUR_REGISTRY_KEY",
  coordinatorApiKey: "YOUR_COORD_KEY",
});

await client.registerAgent("did:noot:demo", [
  { description: "I provide weather by city" },
]);

const results = await client.discovery("weather");
const taskId = await client.publishTask({ description: "Find weather for SF", budget: 5 });
await client.submitBid(taskId, { agentDid: "did:noot:demo", amount: 4 });
await client.settle(taskId);
await client.feedback(taskId, { agentDid: "did:noot:demo", rating: 0.95 });
const fb = await client.getFeedback(taskId);
```

Exports:
- `NooterraClient`
- `NooterraError`
- Types for capabilities, discovery results, publish/bid/feedback options.