@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
30 lines (29 loc) • 1.14 kB
TypeScript
/**
* `neurolink proxy peer` — the borrower's controls.
*
* A peer is a lender's exposed proxy plus the share token they issued. Peers are
* only consulted after every local account is spent, so adding one can never
* make this node spend someone else's capacity while it still has its own.
*
* @module cli/commands/proxyPeer
*/
import type { CommandModule } from "yargs";
import type { ProxyPeerArgs } from "../../types/index.js";
/**
* Parse a share link into its parts.
*
* The token rides in the fragment so it is never sent to whatever host resolves
* the URL — fragments are not transmitted.
* Shape: `neurolink://share/<host>[/<path>]#<token>`
*
* Everything between `share/` and the fragment is the lender's address,
* **including any path**. A lender fronted at `example.com/proxy` is an ordinary
* reverse-proxy layout, and dropping the path silently produced a peer URL
* nothing answers on.
*/
export declare function parseShareLink(link: string): {
url: string;
token: string;
receiptSecret?: string;
} | undefined;
export declare const proxyPeerCommand: CommandModule<object, ProxyPeerArgs>;