fix(sdk): expose the version-matched ref pin formatter

Merged
TH
1d ago
+40-2

Summary

Expose the existing formatPinnedRef helper from agent-device, so integrations use the grammar shipped with their client instead of duplicating its separator. This supplies the missing SDK construction API behind the e2e nightly failure after #5097.

Four files changed: public export, unit and installed-package tests, and Node API docs. No runtime admission change or legacy-input fallback. e2e-inc/e2e#2319 remains release-blocked; published 0.21.43 does not contain this export.

Before / after

import { formatPinnedRef } from 'agent-device';
formatPinnedRef('@e4', 7); // '@e4-s7'

Base: the import fails. Head: the public formatter returns a pin accepted by the live parser. Documentation includes an installed-package availability check instead of inventing an unpublished minimum release.

Validation

Head 9dca64c52b; base 9f7751eeb0. Public-entry regression failed before the export and passes all 3 tests after it. The installed-package test reproduced CI's exact export-surface mismatch before the fix and passes after it, including an actual installed formatter invocation.

Full-repository formatting passed. Independent review found no issues. 9dca64c52b passed exact-head affected validation (receipt run-5TJo9z), including packaging, Node integration, unit tests, and docs checks. Hosted CI was green at 5d83bf6cf0; it will rerun for this docs-only expiry clarification.

Hosted CI will rerun at the updated head. No device run: dispatch, capture, and native execution are unchanged.