AbsoluteJS

@absolutejs/agent-exchange-destinations

@absolutejs/agent-exchange-destinationsv0.3.0betaAI

Interchangeable, deterministic destination adapter contract for Agent Exchange.

#Installation

BASH
bun add @absolutejs/agent-exchange-destinations

#Capabilities

Overview

Deterministic, interchangeable destination adapters for Agent Exchange.

The registry selects exactly one adapter using the request's exact HTTPS origin, operation, and secret kind. Duplicate routes, origin lookalikes, non-tool-confined requests, and results that reflect the protected value fail closed.

Adapters receive an isolated mutable copy of the protected bytes. The registry clears that copy after submission; the caller remains responsible for clearing its own buffer.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/agent-exchange-destinations through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/agent-exchange-destinations version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/agent-exchange-destinations example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#@absolutejs/agent-exchange-destinations quick start

Partial snippet

# @absolutejs/agent-exchange-destinations

TS
import { createAgentExchangeDestinationRegistry } from "@absolutejs/agent-exchange-destinations";

const destinations = createAgentExchangeDestinationRegistry([myAdapter]);
await destinations.submit({ plaintext, request, tenantId });

#Public entry points

Supported entry points declared by this package manifest.

@absolutejs/agent-exchange-destinationsPackage entry point declared in package.json.

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build src/index.ts --outdir dist --root src --sourcemap --target=browser --external @absolutejs/agent-exchange && tsc --project tsconfig.build.json
bun run formatprettier --write "./**/*.{ts,json,md}"
bun run format:checkprettier --check "./**/*.{ts,json,md}"
bun run testbun test tests/
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

5 symbols
AgentExchangeDestinationDescriptortypePermalinkSource
TS
type AgentExchangeDestinationDescriptor = {
    readonly id: string;
    readonly operations: readonly string[];
    readonly origin: string;
    readonly secretKinds: readonly string[];
};
Exported from @absolutejs/agent-exchange-destinations