@candledottv/agent-sdk 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,126 @@
1
+ export type PerpsHistoryKind = "fills" | "funding";
2
+ export type PerpsHistoryNetwork = "mainnet" | "testnet";
3
+ /** Hyperliquid's public `/info` endpoint per network. Mirrors `HYPERLIQUID_INFO_URLS`. */
4
+ export declare const PERPS_HISTORY_INFO_URLS: Readonly<Record<PerpsHistoryNetwork, string>>;
5
+ /** Rows a page holds when the caller names no limit. */
6
+ export declare const PERPS_HISTORY_DEFAULT_LIMIT = 100;
7
+ /** The most rows one upstream response carries, and so the largest page: 2,000 fills, 500 funding rows. */
8
+ export declare const PERPS_HISTORY_MAX_LIMIT: Readonly<Record<PerpsHistoryKind, number>>;
9
+ /** The default window: the seven days before `endTime`. */
10
+ export declare const PERPS_HISTORY_DEFAULT_WINDOW_MS: number;
11
+ /** Upstream history requests one call may make before it stops with a resumable cursor. */
12
+ export declare const PERPS_HISTORY_REQUEST_BUDGET = 10;
13
+ /** Hyperliquid serves only an account's 10,000 most recent fills; a cursor chain scans no more. */
14
+ export declare const PERPS_HISTORY_FILL_RETENTION = 10000;
15
+ /** The longest cursor accepted, in characters. */
16
+ export declare const PERPS_HISTORY_MAX_CURSOR_LENGTH = 200000;
17
+ /** How long one upstream request may take. */
18
+ export declare const PERPS_HISTORY_TIMEOUT_MS = 15000;
19
+ export interface PerpsHistoryOptions {
20
+ /** Inclusive epoch milliseconds. Default: seven days before `endTime`. */
21
+ startTime?: number;
22
+ /** Inclusive epoch milliseconds. Default: the first call's clock. */
23
+ endTime?: number;
24
+ /** Rows per page. Default 100; at most 2,000 for fills and 500 for funding. */
25
+ limit?: number;
26
+ /** `nextCursor` from the previous page. Other options, when given, must match it. */
27
+ cursor?: string;
28
+ }
29
+ export interface PerpsHistoryWarning {
30
+ code: "PERPS_HISTORY_RETENTION_LIMIT" | "PERPS_HISTORY_PAGE_BUDGET" | "PERPS_HISTORY_BOUNDARY_LIMIT";
31
+ message: string;
32
+ }
33
+ /** One fill exactly as Hyperliquid reports it; decimal values stay strings. */
34
+ export type PerpsFillRow = Record<string, unknown> & {
35
+ coin: string;
36
+ time: number;
37
+ tid: number;
38
+ oid: number;
39
+ px: string;
40
+ sz: string;
41
+ side: string;
42
+ dir?: string;
43
+ closedPnl: string;
44
+ /** Already includes `builderFee`; never subtract the builder fee again. */
45
+ fee: string;
46
+ feeToken?: string;
47
+ builderFee?: string;
48
+ };
49
+ /** One funding payment exactly as Hyperliquid reports it. `delta.usdc` is signed: negative is paid. */
50
+ export type PerpsFundingRow = Record<string, unknown> & {
51
+ time: number;
52
+ hash: string;
53
+ delta: Record<string, unknown> & {
54
+ coin: string;
55
+ usdc: string;
56
+ fundingRate: string;
57
+ szi: string;
58
+ };
59
+ };
60
+ interface PageBase {
61
+ success: true;
62
+ walletId: string;
63
+ address: string;
64
+ network: PerpsHistoryNetwork;
65
+ source: "hyperliquid";
66
+ /** When this page was read, epoch milliseconds. */
67
+ readAt: number;
68
+ startTime: number;
69
+ endTime: number;
70
+ /** Pass back as `cursor` for the next page; null when the window is read to its end. */
71
+ nextCursor: string | null;
72
+ hasMore: boolean;
73
+ /** True when coverage stopped short of the window for a venue or budget limit, not for paging. */
74
+ truncated: boolean;
75
+ warnings: PerpsHistoryWarning[];
76
+ }
77
+ export type PerpsFillsPage = PageBase & {
78
+ fills: PerpsFillRow[];
79
+ };
80
+ export type PerpsFundingPage = PageBase & {
81
+ funding: PerpsFundingRow[];
82
+ };
83
+ /** A refusal or an upstream failure. `code` is `VALIDATION_FAILED` or `PERPS_UNAVAILABLE`. */
84
+ export declare class PerpsHistoryError extends Error {
85
+ readonly code: "VALIDATION_FAILED" | "PERPS_UNAVAILABLE";
86
+ readonly extra: {
87
+ field?: string;
88
+ retryable?: boolean;
89
+ retryAfterMs?: number;
90
+ };
91
+ constructor(code: "VALIDATION_FAILED" | "PERPS_UNAVAILABLE", message: string, extra?: {
92
+ field?: string;
93
+ retryable?: boolean;
94
+ retryAfterMs?: number;
95
+ });
96
+ }
97
+ export type PerpsHistoryFetch = (url: string, init?: RequestInit) => Promise<{
98
+ ok: boolean;
99
+ status: number;
100
+ headers?: {
101
+ get(name: string): string | null;
102
+ };
103
+ text(): Promise<string>;
104
+ }>;
105
+ export interface PerpsHistoryRequest {
106
+ kind: PerpsHistoryKind;
107
+ network: PerpsHistoryNetwork;
108
+ walletId: string;
109
+ /** The wallet's EVM address: the Hyperliquid account. */
110
+ address: string;
111
+ options?: PerpsHistoryOptions;
112
+ fetch: PerpsHistoryFetch;
113
+ now: () => number;
114
+ }
115
+ /**
116
+ * Read one page. Validation runs before any request, so a bad bound, limit or cursor makes no I/O.
117
+ * A rate limit, a timeout, a malformed answer or an unreadable market list throws `PERPS_UNAVAILABLE`
118
+ * and the caller's cursor stays good for a retry; nothing is ever reported as an empty success.
119
+ */
120
+ export declare function readPerpsHistoryPage(req: PerpsHistoryRequest): Promise<PerpsFillsPage | PerpsFundingPage>;
121
+ /** Money for a table: two decimals, sign kept. JSON keeps the venue's exact strings. */
122
+ export declare function perpsHistoryMoney(value: unknown): string;
123
+ /** The human lines for one page: wallet, UTC window, rows, then how to read the next page. */
124
+ export declare function perpsHistoryLines(page: PerpsFillsPage | PerpsFundingPage, nextHint: (cursor: string) => string): string[];
125
+ export {};
126
+ //# sourceMappingURL=perps-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perps-history.d.ts","sourceRoot":"","sources":["../src/perps-history.ts"],"names":[],"mappings":"AA2BA,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,CAAA;AAClD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,SAAS,CAAA;AAEvD,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAGjF,CAAA;AAED,wDAAwD;AACxD,eAA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ent key (BE-1678's `/api/v1/agent/quant/*`; spec S5 Q-2, BE-1737): a plain HTTP
3
+ * client for the five key routes, with the route spec's timing rules. It holds no state: the caller
4
+ * keeps the `clientTurnId`, the poll cursor and anything it shows.
5
+ *
6
+ * GET /status 5 s
7
+ * POST /turns {text, clientTurnId} 5 s (resend the same `clientTurnId` after a lost answer)
8
+ * GET /turns/:id/events?after= 35 s (one held poll, about 25 s on the server)
9
+ * POST /turns/:id/cancel 5 s
10
+ * GET /history?before=&limit= 5 s
11
+ *
12
+ * A refusal is read as `body.code ?? body.error?.code`: the Quant handlers answer `{code, ...}` (the
13
+ * relay shape), the key middleware answers `{success: false, error: {code}}` (the envelope shape),
14
+ * and `RATE_LIMITED` comes in both, meaning different limits. `shape` says which one arrived.
15
+ *
16
+ * The key is sent as `x-api-key` and never follows a redirect (`redirect: "error"`), so it cannot be
17
+ * forwarded to another host. Use a Read key (`account:read`): Quant needs nothing more.
18
+ *
19
+ * Dependency-free on purpose. The CLI carries a byte-identical copy (`packages/cli/src/quant.ts`,
20
+ * kept equal by `quant.drift.test.ts`). Copy any change verbatim:
21
+ * `cp packages/sdk/src/quant.ts packages/cli/src/quant.ts`.
22
+ */
23
+ export declare const QUANT_AGENT_PATH = "/api/v1/agent/quant";
24
+ export declare const QUANT_CALL_TIMEOUT_MS = 5000;
25
+ export declare const QUANT_POLL_TIMEOUT_MS = 35000;
26
+ /** hacc's B0 figure, used until a status read says otherwise (the route's `DEFAULT_MAX_TEXT_CHARS`). */
27
+ export declare const QUANT_DEFAULT_MAX_TEXT_CHARS = 4000;
28
+ /** `GET /status`. With the switch off the route answers `{enabled: false}` and nothing else. */
29
+ export interface QuantKeyStatus {
30
+ enabled: boolean;
31
+ allowed?: boolean;
32
+ tier?: string | null;
33
+ marketAccess?: boolean;
34
+ linked?: boolean;
35
+ remaining?: number | null;
36
+ maxTextChars?: number | null;
37
+ activeTurnId?: string | null;
38
+ }
39
+ export interface QuantTurnStarted {
40
+ turnId: string;
41
+ cursor?: number;
42
+ }
43
+ /** One event of a turn: `turn_started`, `working`, `tool_started`, `tool_finished`, `text`, `done`, `error`. */
44
+ export interface QuantTurnEvent {
45
+ seq: number;
46
+ kind: string;
47
+ data: Record<string, unknown>;
48
+ createdAt?: string;
49
+ }
50
+ export interface QuantEventsPage {
51
+ events: QuantTurnEvent[];
52
+ next: number;
53
+ /** `running`, or the terminal state (`done`, `error`, `cancelled`, ...). */
54
+ status: string;
55
+ }
56
+ export interface QuantHistoryItem {
57
+ id: string;
58
+ role: "user" | "assistant";
59
+ text: string;
60
+ createdAt: string;
61
+ }
62
+ export interface QuantHistoryPage {
63
+ items: QuantHistoryItem[];
64
+ next: string | null;
65
+ }
66
+ /**
67
+ * Why a call did not succeed. `shape` is `relay` for `{code}`, `envelope` for `{error: {code}}`, and
68
+ * `transport` when no answer arrived (`NETWORK_ERROR`, `TIMEOUT`) or it could not be read
69
+ * (`BAD_RESPONSE`): a lost answer to `POST /turns` is safe to resend with the same `clientTurnId`.
70
+ */
71
+ export interface QuantRefusal {
72
+ code: string;
73
+ status: number;
74
+ shape: "relay" | "envelope" | "transport";
75
+ retryable?: boolean;
76
+ resetsAt?: string | number;
77
+ turnId?: string;
78
+ limit?: number;
79
+ }
80
+ export type QuantAnswer<T> = {
81
+ ok: true;
82
+ status: number;
83
+ body: T;
84
+ } | {
85
+ ok: false;
86
+ refusal: QuantRefusal;
87
+ };
88
+ export interface QuantKeyClientOptions {
89
+ apiUrl: string;
90
+ apiKey: string;
91
+ fetch?: typeof fetch;
92
+ callTimeoutMs?: number;
93
+ pollTimeoutMs?: number;
94
+ }
95
+ export interface QuantKeyClient {
96
+ status(): Promise<QuantAnswer<QuantKeyStatus>>;
97
+ sendTurn(input: {
98
+ text: string;
99
+ clientTurnId: string;
100
+ }): Promise<QuantAnswer<QuantTurnStarted>>;
101
+ events(turnId: string, after: number, options?: {
102
+ signal?: AbortSignal;
103
+ }): Promise<QuantAnswer<QuantEventsPage>>;
104
+ cancel(turnId: string): Promise<QuantAnswer<Record<string, unknown>>>;
105
+ history(input?: {
106
+ before?: string;
107
+ limit?: number;
108
+ }): Promise<QuantAnswer<QuantHistoryPage>>;
109
+ }
110
+ /** Unicode code points, the unit hacc counts `maxTextChars` in. */
111
+ export declare function quantCodePoints(text: string): number;
112
+ /** A `clientTurnId`: a uuid v4, kept with the draft until a `turnId` arrives. */
113
+ export declare function newClientTurnId(): string;
114
+ /** The refusal code of a body in either shape, or undefined when it names none. */
115
+ export declare function quantRefusalCode(body: unknown): string | undefined;
116
+ /** The key client. Refuses an `http://` API URL other than this machine's: the key would travel in clear. */
117
+ export declare function createQuantKeyClient(options: QuantKeyClientOptions): QuantKeyClient;
118
+ //# sourceMappingURL=quant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quant.d.ts","sourceRoot":"","sources":["../src/quant.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,gBAAgB,wBAAwB,CAAA;AACrD,eAAO,MAAM,qBAAqB,OAAQ,CAAA;AAC1C,eAAO,MAAM,qBAAqB,QAAS,CAAA;AAC3C,wGAAwG;AACxG,eAAO,MAAM,4BAA4B,OAAQ,CAAA;AAEjD,gGAAgG;AAChG,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AA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0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "TypeScript SDK for the Candle agent rail: typed headless launches, market reads, and webhook verification",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",