AbsoluteJS

@absolutejs/agent-exchange-http-destination

@absolutejs/agent-exchange-http-destinationv0.3.0betaAI

Fixed-endpoint HTTPS verification-code destination adapter for Agent Exchange.

#Installation

BASH
bun add @absolutejs/agent-exchange-http-destination

#Capabilities

Overview

A fixed-endpoint HTTPS adapter for submitting a six-digit email verification code without exposing that code to an agent or returning it in the receipt.

The endpoint is deployment configuration, never a per-request URL. It must use HTTPS and cannot contain URL credentials, a query, or a fragment. Requests omit ambient browser credentials, disable referrers and caching, reject redirects, carry an idempotency key, and time out. Response bodies are discarded and never become agent-visible output.

authorization is a BYO credential resolver. Paid hosted credential custody belongs in AbsoluteJS PaaS; the open package does not include third-party secrets.

Outcomes

What you can build

Build on the supported package contract

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

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/agent-exchange-http-destination 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-http-destination 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-http-destination quick start

Partial snippet

# @absolutejs/agent-exchange-http-destination

TS
import { createAgentExchangeHttpDestination } from "@absolutejs/agent-exchange-http-destination";

const adapter = createAgentExchangeHttpDestination({
  authorization: ({ tenantId }) => credentials.forTenant(tenantId),
  challengeField: "challenge",
  endpoint: "https://accounts.example.com/api/verify",
  id: "accounts-example",
  operations: ["verification.submit"],
});

#Public entry points

Supported entry points declared by this package manifest.

@absolutejs/agent-exchange-http-destinationPackage 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-destinations && 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.

4 symbols
AgentExchangeHttpAuthorizationResolvertypePermalinkSource
TS
type AgentExchangeHttpAuthorizationResolver = (input: Readonly<{
    exchangeId: string;
    tenantId: string;
}>) => Promise<string> | string;
Exported from @absolutejs/agent-exchange-http-destination