@teepin/sdk 0.3.0-rc.1 → 0.4.0
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.
- package/dist/cjs/client.js +3 -1
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/direct/engine.js +49 -59
- package/dist/cjs/direct/engine.js.map +1 -1
- package/dist/cjs/direct/packing.js +549 -0
- package/dist/cjs/direct/packing.js.map +1 -0
- package/dist/cjs/direct/uploads.js +336 -64
- package/dist/cjs/direct/uploads.js.map +1 -1
- package/dist/esm/client.js +3 -1
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/direct/engine.js +45 -55
- package/dist/esm/direct/engine.js.map +1 -1
- package/dist/esm/direct/packing.js +536 -0
- package/dist/esm/direct/packing.js.map +1 -0
- package/dist/esm/direct/uploads.js +337 -65
- package/dist/esm/direct/uploads.js.map +1 -1
- package/dist/types/client.d.ts +1 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/direct/engine.d.ts +37 -21
- package/dist/types/direct/engine.d.ts.map +1 -1
- package/dist/types/direct/packing.d.ts +207 -0
- package/dist/types/direct/packing.d.ts.map +1 -0
- package/dist/types/direct/uploads.d.ts +66 -13
- package/dist/types/direct/uploads.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
export declare const DEFAULT_FLOOR: number;
|
|
2
|
+
export declare const DEFAULT_CEILING: number;
|
|
3
|
+
export declare const DEFAULT_MAX_OBJECTS = 10000;
|
|
4
|
+
/** The server's cap on a pack's objects: one that has just reached the floor, plus a run's tail (28.14). */
|
|
5
|
+
export declare const DEFAULT_MAX_PACK_OBJECTS = 140000;
|
|
6
|
+
/** A reserve or sign body's limit on the server. */
|
|
7
|
+
export declare const DEFAULT_MAX_REQUEST: number;
|
|
8
|
+
export declare const DEFAULT_WAIT_MS = 5000;
|
|
9
|
+
export declare const DEFAULT_RATE_WINDOW_MS = 1000;
|
|
10
|
+
export declare const DEFAULT_SETTLE_MS = 200;
|
|
11
|
+
/**
|
|
12
|
+
* How long a pack under the floor waits before it may go as a leftover early (28.25 point 1): within it, a burst's
|
|
13
|
+
* arrivals land in the rate window. The server may send 0 to 2,000 ms.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEFAULT_OBSERVE_MS = 300;
|
|
16
|
+
export declare const MAX_OBSERVE_MS = 2000;
|
|
17
|
+
/** A commit's usual time until one is measured, and how many of the last ones its median takes (28.25 point 2). */
|
|
18
|
+
export declare const COMMIT_USUAL_START_MS = 1500;
|
|
19
|
+
export declare const COMMIT_SAMPLES = 8;
|
|
20
|
+
/** A reserve body's bytes besides its objects, with room to spare. */
|
|
21
|
+
export declare const REQUEST_OVERHEAD = 512;
|
|
22
|
+
/** Pack bytes in flight per client (28.2): 16 full packs. */
|
|
23
|
+
export declare const MEMORY_CAP: number;
|
|
24
|
+
/** The pack cap: no ceiling may pass it. */
|
|
25
|
+
export declare const MAX_PACK_BYTES: number;
|
|
26
|
+
/** On a slow link a pack never shrinks below one TWS1 segment (28.7). Settable only for tests. */
|
|
27
|
+
export declare const SLOW: {
|
|
28
|
+
min: number;
|
|
29
|
+
};
|
|
30
|
+
export type PackState = 'full' | 'ready' | 'under' | 'request_limited';
|
|
31
|
+
export type UnderFloor = 'leftover' | 'slow_link' | 'request_limit';
|
|
32
|
+
/** The pack sizes (bytes as stored) and timings (milliseconds) a client follows. */
|
|
33
|
+
export interface PackLimits {
|
|
34
|
+
floor: number;
|
|
35
|
+
ceiling: number;
|
|
36
|
+
maxObjects: number;
|
|
37
|
+
maxPackObjects: number;
|
|
38
|
+
maxRequest: number;
|
|
39
|
+
waitMs: number;
|
|
40
|
+
windowMs: number;
|
|
41
|
+
settleMs: number;
|
|
42
|
+
observeMs: number;
|
|
43
|
+
}
|
|
44
|
+
/** The limits a client starts with, until the server sends its own. */
|
|
45
|
+
export declare const DEFAULT_LIMITS: Readonly<PackLimits>;
|
|
46
|
+
/** The bytes a reserve body's objects may take. */
|
|
47
|
+
export declare function requestBudget(l: Readonly<PackLimits>): number;
|
|
48
|
+
/**
|
|
49
|
+
* The reserve answer's limits (28.15), whole or not at all: undefined when absent or when any value breaks section
|
|
50
|
+
* 28's rules (the caller then keeps what it has).
|
|
51
|
+
*/
|
|
52
|
+
export declare function limitsFromJSON(d: unknown): PackLimits | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* l at the measured speed (28.7): requestBytes is what one request carries in 240 s (undefined before anything is
|
|
55
|
+
* measured). The ceiling comes down toward the floor. Under the floor the link is slow: packs shrink as before section
|
|
56
|
+
* 28, each taking files only while it stays within that size (at least SLOW.min), so the floor is one byte and the
|
|
57
|
+
* ceiling that size.
|
|
58
|
+
*/
|
|
59
|
+
export declare function atSpeed(l: Readonly<PackLimits>, requestBytes: number | undefined): [PackLimits, boolean];
|
|
60
|
+
/** The next pack: its items in order, the items left, its state, and its stored and reserve-request bytes. */
|
|
61
|
+
export interface Plan<T> {
|
|
62
|
+
pack: T[];
|
|
63
|
+
rest: T[];
|
|
64
|
+
state: PackState;
|
|
65
|
+
stored: number;
|
|
66
|
+
request: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Which of items (in order) the next pack takes (28.3, 28.17):
|
|
70
|
+
* - an item whose key is in the pack, or among the earlier items left, waits (writes to one key keep their order);
|
|
71
|
+
* - under the floor, the pack takes the next item whatever its size and the count, until its reserve body would pass
|
|
72
|
+
* the request budget (request_limited);
|
|
73
|
+
* - at or over the floor, it takes an item only if it stays at or under the ceiling, under maxObjects and within the
|
|
74
|
+
* request budget; a pack that turned one away is full, else ready;
|
|
75
|
+
* - tail (runs): when everything left is over zero and under the floor, and can join (no key in it waits on another),
|
|
76
|
+
* the pack takes it all, within maxPackObjects and the request budget; with tailCap (a save's remnant, 28.25), only
|
|
77
|
+
* while the pack stays within that many stored bytes.
|
|
78
|
+
*/
|
|
79
|
+
export declare function planPack<T>(items: readonly T[], storedOf: (t: T) => number, keyOf: (t: T) => string, requestOf: (t: T) => number, l: Readonly<PackLimits>, tail?: boolean, tailCap?: number): Plan<T>;
|
|
80
|
+
/** The timing rule's answer: send (with the reason for a pack under the floor), wait until at, or idle. */
|
|
81
|
+
export interface Decision {
|
|
82
|
+
kind: 'send' | 'wait' | 'idle';
|
|
83
|
+
reason?: UnderFloor;
|
|
84
|
+
at: number;
|
|
85
|
+
}
|
|
86
|
+
/** A save that arrived able to join the next pack: when (on the caller's clock, ms) and its stored bytes. */
|
|
87
|
+
export type Arrival = readonly [at: number, stored: number];
|
|
88
|
+
/**
|
|
89
|
+
* When a save's pack goes (28.4, 28.17, 28.25). waiting is the stored bytes that can join the next pack; oldest and last
|
|
90
|
+
* the first and latest arrival among them; arrivals the saves that arrived ready to join, without the oldest waiting
|
|
91
|
+
* file's own (28.22: it says nothing about what comes next). A pack that would send with no free slot is idle.
|
|
92
|
+
*
|
|
93
|
+
* A pack under the floor goes at its time limit. Before it, it goes early only when nothing says a batch is forming
|
|
94
|
+
* (28.25):
|
|
95
|
+
* - not before its oldest file has waited l.observeMs, so a burst's arrivals reach the rate window first; unless a later
|
|
96
|
+
* write to one of its keys waits behind it (only its going lets that write go: 75 saves to one key still go one by one
|
|
97
|
+
* at once);
|
|
98
|
+
* - coming: the stored bytes of this bucket's packs in flight expected back before the time limit count as arriving, as
|
|
99
|
+
* their callers will very likely save again;
|
|
100
|
+
* - not while contested: another pack waits for a slot or settles (a full or ready one, or a run's next pack), which a
|
|
101
|
+
* leftover must not take.
|
|
102
|
+
*/
|
|
103
|
+
export declare function decide(state: PackState, waiting: number, oldest: number, last: number, arrivals: readonly Arrival[], now: number, l: Readonly<PackLimits>, slotFree: boolean, coming?: number, contested?: boolean, behind?: boolean): Decision;
|
|
104
|
+
/**
|
|
105
|
+
* One bucket's waiting saves and their running totals (28.17, 28.22). A save whose key already has an earlier write
|
|
106
|
+
* waiting can't join the next pack: it counts neither as bytes waiting nor as an arrival. When the earlier write leaves,
|
|
107
|
+
* it joins the bytes waiting, but never counts as an arrival. The first waiting save is always one that can join, so it
|
|
108
|
+
* is the oldest the timing rule looks at.
|
|
109
|
+
*/
|
|
110
|
+
export declare class Arrivals<T> {
|
|
111
|
+
private entries;
|
|
112
|
+
private byKey;
|
|
113
|
+
private seq;
|
|
114
|
+
private window;
|
|
115
|
+
/** The stored and reserve-request bytes that can join; the latest arrival among them. */
|
|
116
|
+
waiting: number;
|
|
117
|
+
request: number;
|
|
118
|
+
last: number;
|
|
119
|
+
/** Waiting saves that can't join the next pack (an earlier write to their key waits). */
|
|
120
|
+
blocked: number;
|
|
121
|
+
get size(): number;
|
|
122
|
+
add(item: T, key: string, stored: number, request: number, now: number): void;
|
|
123
|
+
/** Items a pack took (or that left the queue). */
|
|
124
|
+
remove(items: Iterable<T>): void;
|
|
125
|
+
/** The waiting items, in arrival order. */
|
|
126
|
+
items(): T[];
|
|
127
|
+
/** The first waiting item and when it arrived, or undefined. */
|
|
128
|
+
oldest(): [T, number] | undefined;
|
|
129
|
+
/** The arrivals within windowMs of now, without the oldest waiting item's own; older ones are forgotten. */
|
|
130
|
+
arrivals(now: number, windowMs: number): Arrival[];
|
|
131
|
+
/** When a waiting item arrived. */
|
|
132
|
+
arrivedAt(item: T): number;
|
|
133
|
+
/** A waiting item's stored bytes. */
|
|
134
|
+
storedOf(item: T): number;
|
|
135
|
+
/** The stored bytes of the saves that arrived able to join at t or later (within the rate window kept), waiting or not. */
|
|
136
|
+
arrivedSince(t: number): number;
|
|
137
|
+
/** Whether a later write to a key in the next pack waits behind it. */
|
|
138
|
+
get behind(): boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The saves' packs in flight, and when each is expected back (28.25 point 2): the callers blocked in a pack will very
|
|
142
|
+
* likely save again once it commits, so its bytes count as coming arrivals.
|
|
143
|
+
*
|
|
144
|
+
* Expected back, by phase: not uploading yet, now plus its sending time plus a commit's usual time; uploading, from the
|
|
145
|
+
* upload's start; sent, the send plus a commit's usual time (the median of the last COMMIT_SAMPLES commits,
|
|
146
|
+
* COMMIT_USUAL_START_MS until one is measured). Before any speed is measured, every pack counts as coming: at worst a
|
|
147
|
+
* save waits the time limit.
|
|
148
|
+
*
|
|
149
|
+
* A pack that committed keeps counting for a grace time (the observe time), less the bytes that arrived since it came
|
|
150
|
+
* back: its callers are on their way back, and between its commit and their saves it is neither in flight nor waiting (a
|
|
151
|
+
* small group waiting for it would otherwise go alone just before them). Times are passed in (ms).
|
|
152
|
+
*/
|
|
153
|
+
export declare class InFlight<K = unknown> {
|
|
154
|
+
private packs;
|
|
155
|
+
private commits;
|
|
156
|
+
/** Committed packs within their grace time: bucket, stored bytes, when it came back. */
|
|
157
|
+
returned: Array<[bucket: string, stored: number, at: number]>;
|
|
158
|
+
get size(): number;
|
|
159
|
+
add(key: K, bucket: string, stored: number): void;
|
|
160
|
+
/** Its upload starts (again: a pack sent once more starts over). */
|
|
161
|
+
uploading(key: K, now: number): void;
|
|
162
|
+
/** Its upload ended; its commit is being checked. */
|
|
163
|
+
sent(key: K, now: number): void;
|
|
164
|
+
/** It left: a committed pack's time since its send is a commit's time, and it starts its grace time. */
|
|
165
|
+
remove(key: K, now: number, committed: boolean): void;
|
|
166
|
+
/** The median of the last commits' times (ms). */
|
|
167
|
+
commitUsual(): number;
|
|
168
|
+
/** When the pack is expected back (ms); now before any speed is measured. speed is in bytes per second. */
|
|
169
|
+
expected(key: K, now: number, speed: number | undefined): number;
|
|
170
|
+
/**
|
|
171
|
+
* The stored bytes of bucket's packs expected back by by, and of those that came back within graceMs of now less what
|
|
172
|
+
* arrived since (arrivedSince(t): the stored bytes that arrived at t or later).
|
|
173
|
+
*/
|
|
174
|
+
coming(bucket: string, by: number, now: number, speed: number | undefined, graceMs?: number, arrivedSince?: (t: number) => number): number;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The most stored bytes a save's pack may reach by taking its remnant (28.25): the ceiling plus the floor, never past
|
|
178
|
+
* what the measured speed sends in one request's time (28.7), nor the pack cap. l are the server's, before the speed's
|
|
179
|
+
* clamp.
|
|
180
|
+
*/
|
|
181
|
+
export declare function absorbCap(l: Readonly<PackLimits>, requestBytes: number | undefined): number;
|
|
182
|
+
/**
|
|
183
|
+
* Whether what a full save's pack turns away is a remnant with nothing coming for it (28.25): its rest stored bytes,
|
|
184
|
+
* plus coming, plus its own arrivals in the window (without its oldest's) at their rate for the time its oldest has
|
|
185
|
+
* left, stay under the floor. The batch that is going is no evidence for it. Decided when the pack goes, never after a
|
|
186
|
+
* wait.
|
|
187
|
+
*/
|
|
188
|
+
export declare function remnantAlone(rest: number, oldest: number, arrivals: readonly Arrival[], coming: number, now: number, l: Readonly<PackLimits>): boolean;
|
|
189
|
+
/** A pack the timing rule sends now: its bucket, plan and decision. */
|
|
190
|
+
export interface Choice<T> {
|
|
191
|
+
bucket: string;
|
|
192
|
+
plan: Plan<T>;
|
|
193
|
+
decision: Decision;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* One dispatch (28.17's driver, 28.25): every bucket's decision, oldest bucket first. Returns the packs that may go now,
|
|
197
|
+
* in that order (the driver gives each a slot and memory, or holds it), and the earliest time a waiting one next needs a
|
|
198
|
+
* decision.
|
|
199
|
+
*
|
|
200
|
+
* A bucket's pack is planned only when its totals are at the floor, over the request budget, or it goes (28.22 point 6).
|
|
201
|
+
* A bucket under the floor is contested while another bucket's totals are at the floor or over the budget (a full, ready
|
|
202
|
+
* or request-limited pack waits or settles), or a run's next pack waits for a slot. planOf(arrivals, tailCap) plans a
|
|
203
|
+
* bucket's next pack, with its tail taken within tailCap bytes when given. A full pack that goes takes its remnant
|
|
204
|
+
* (remnantAlone) within cap (absorbCap; 0 takes none).
|
|
205
|
+
*/
|
|
206
|
+
export declare function schedule<T>(queues: ReadonlyMap<string, Arrivals<T>>, now: number, l: Readonly<PackLimits>, planOf: (a: Arrivals<T>, tailCap: number | undefined) => Plan<T>, comingOf: (bucket: string, by: number) => number, runsWaiting: boolean, cap?: number): [Choice<T>[], number | undefined];
|
|
207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from '../client.js';
|
|
|
2
2
|
import type { StorageObject } from '../storage.js';
|
|
3
3
|
import { AdaptiveLimit, RetryBudget, SpeedMeter, type Outcome, type PartRules } from './engine.js';
|
|
4
4
|
import { Deferred, type Json, type Waits } from './common.js';
|
|
5
|
+
import { InFlight, type PackLimits, type UnderFloor } from './packing.js';
|
|
5
6
|
import { type Entry, type Journal } from './journal.js';
|
|
6
7
|
import { Parts, type PartSource, type StreamSource } from './large.js';
|
|
7
8
|
export { abortable, Deferred, joinCapped, linked, objectFrom, Progress, Slots, toBase64, uuid7, type Json, type Waits } from './common.js';
|
|
@@ -43,14 +44,8 @@ export declare class MemoryPins implements KeyPins {
|
|
|
43
44
|
}
|
|
44
45
|
/** Sizes the engine works with: tests shrink them, as the Python tests patch _engine's constants. */
|
|
45
46
|
export interface UploadSizes extends PartRules {
|
|
46
|
-
/** Objects up to this size are packed; larger ones go in parts (16 MiB). */
|
|
47
|
+
/** Objects up to this size are packed; larger ones go in parts (16 MiB). A pack's own sizes are section 28's (limits). */
|
|
47
48
|
packObjectLimit: number;
|
|
48
|
-
/** A pack closes at about this many stored bytes (9 MiB), less on a slow link (section 22.7). */
|
|
49
|
-
packTarget: number;
|
|
50
|
-
/** A slow link's pack target never goes below this (64 KiB). */
|
|
51
|
-
packMinTarget: number;
|
|
52
|
-
/** The most objects in a pack. */
|
|
53
|
-
packMaxObjects: number;
|
|
54
49
|
/** A stream's parts in flight unless the caller says. */
|
|
55
50
|
streamConcurrency: number;
|
|
56
51
|
}
|
|
@@ -176,13 +171,22 @@ export declare class Item {
|
|
|
176
171
|
wake?: Deferred;
|
|
177
172
|
/** The pack and object id its file row last journaled. */
|
|
178
173
|
journaled: string;
|
|
174
|
+
/** A run's place for the file (items given back to the planner keep it). */
|
|
175
|
+
order: number;
|
|
176
|
+
/** Rebuilds of the packs it was in, carried when a pack gives it back, so MAX_REBUILDS holds. */
|
|
177
|
+
rebuilds: number;
|
|
178
|
+
private reqBytes;
|
|
179
179
|
readonly contentType: string;
|
|
180
180
|
readonly metadata: Record<string, string>;
|
|
181
181
|
readonly ifMatch: string;
|
|
182
182
|
constructor(key: string, size: number, sha256: string, read: () => Promise<Uint8Array>, contentType?: string, metadata?: Record<string, string>, ifNoneMatch?: boolean, ifMatch?: string, path?: string | undefined, fileId?: string | undefined);
|
|
183
|
+
/** Its bytes in a pack: its needle and TWS1 bytes. */
|
|
184
|
+
get stored(): number;
|
|
185
|
+
/** The bytes it adds to a reserve body (section 28.17): its JSON object and a separator. */
|
|
186
|
+
get request(): number;
|
|
183
187
|
reserveJSON(): Json;
|
|
184
188
|
}
|
|
185
|
-
export type PackState = 'new' | 'reserved' | 'built' | 'signed' | 'uploading' | 'sent' | 'unknown' | 'committing' | 'committed' | 'conflict' | 'bad' | 'failed';
|
|
189
|
+
export type PackState = 'new' | 'reserved' | 'built' | 'signed' | 'uploading' | 'sent' | 'unknown' | 'committing' | 'committed' | 'conflict' | 'bad' | 'failed' | 'returned';
|
|
186
190
|
/** One pack's state, kept in its store (a run's journal, or memory). */
|
|
187
191
|
export declare class Pack implements Waits {
|
|
188
192
|
readonly bucket: string;
|
|
@@ -206,6 +210,18 @@ export declare class Pack implements Waits {
|
|
|
206
210
|
waited: number;
|
|
207
211
|
throttled: boolean;
|
|
208
212
|
lastError: string;
|
|
213
|
+
/** The reason for a pack under the floor (section 28.9), sent with its reserve. */
|
|
214
|
+
underFloor?: UnderFloor;
|
|
215
|
+
/** Its bytes counted against MEMORY_CAP while in flight (putObject's packs). */
|
|
216
|
+
inflight: number;
|
|
217
|
+
/** When its upload ended (in memory only), whether that answer was lost, and the checking waits since (28.18). */
|
|
218
|
+
sentAt?: number;
|
|
219
|
+
sentUnknown: boolean;
|
|
220
|
+
verifyWaited: number;
|
|
221
|
+
/** A run's packs give their files back to its planner instead of renewing under the floor (28.5). */
|
|
222
|
+
giveback?: (items: Item[]) => void;
|
|
223
|
+
/** Resumed, unsigned and under the floor (28.22 point 5): its idempotency key is asked first. */
|
|
224
|
+
dissolve: boolean;
|
|
209
225
|
constructor(bucket: string, items: Item[], store: PackStore, id?: string);
|
|
210
226
|
get serverId(): string;
|
|
211
227
|
}
|
|
@@ -272,6 +288,10 @@ export declare class DirectUploads {
|
|
|
272
288
|
readonly parts: Parts;
|
|
273
289
|
/** The sizes it works with (tests shrink them). */
|
|
274
290
|
readonly sizes: UploadSizes;
|
|
291
|
+
/** The pack sizes and timings (section 28): built in, then the server's from each reservation. Tests set them. */
|
|
292
|
+
limits: PackLimits;
|
|
293
|
+
/** The timing rule's monotonic clock in milliseconds (tests replace it). */
|
|
294
|
+
clock: () => number;
|
|
275
295
|
/**
|
|
276
296
|
* The measured upload speed to the storage network: shrinks packs and new uploads' parts on a slow link (section
|
|
277
297
|
* 22.7). Tests set it with speed.set.
|
|
@@ -285,6 +305,11 @@ export declare class DirectUploads {
|
|
|
285
305
|
minMs: number;
|
|
286
306
|
bytesPerSecond: number;
|
|
287
307
|
};
|
|
308
|
+
/**
|
|
309
|
+
* A pack call's timeout (29.15): the server's time for `objects` objects, scaled, plus sending `body` (none for a
|
|
310
|
+
* commit) at the speed measured so far; never under `floorMs`.
|
|
311
|
+
*/
|
|
312
|
+
callTimeoutMs(objects: number, perObjectMs: number, floorMs: number, body?: unknown): number;
|
|
288
313
|
/** How long a stopping step waits for its tasks, and a cleanup call may take (ms). */
|
|
289
314
|
cleanupMs: number;
|
|
290
315
|
digests: Digests;
|
|
@@ -293,8 +318,17 @@ export declare class DirectUploads {
|
|
|
293
318
|
host?: RunHost;
|
|
294
319
|
/** Where warnings go: a run removed by cleanUploads, a large state directory. */
|
|
295
320
|
warn: (message: string) => void;
|
|
321
|
+
/** Where a line worth knowing but not a warning goes (a purged pack's commit, 29.15); tests replace it. */
|
|
322
|
+
info: (message: string) => void;
|
|
296
323
|
private accountId?;
|
|
297
|
-
|
|
324
|
+
/** putObject's waiting files, per bucket, with their running totals (section 28.17). */
|
|
325
|
+
private waiting;
|
|
326
|
+
/** When the timing rule next needs a decision, if it does. */
|
|
327
|
+
private nextDecision?;
|
|
328
|
+
/** putObject's pack bytes in flight, against MEMORY_CAP. */
|
|
329
|
+
private inflight;
|
|
330
|
+
/** putObject's packs in flight and when each is expected back (section 28.25). */
|
|
331
|
+
readonly inFlight: InFlight<string>;
|
|
298
332
|
/** Wake-ups of putObject calls waiting for a slot: resolved when one comes free. */
|
|
299
333
|
private slotWaiters;
|
|
300
334
|
private readonly memory;
|
|
@@ -320,8 +354,6 @@ export declare class DirectUploads {
|
|
|
320
354
|
* parts. At the speed measured so far (section 22.7).
|
|
321
355
|
*/
|
|
322
356
|
packObjectLimit(): number;
|
|
323
|
-
/** The next pack's target size, at the speed measured so far. */
|
|
324
|
-
packTarget(): number;
|
|
325
357
|
/** Where runs keep their state, when it's on disk. */
|
|
326
358
|
get runHost(): RunHost;
|
|
327
359
|
/**
|
|
@@ -356,8 +388,21 @@ export declare class DirectUploads {
|
|
|
356
388
|
/** A pack's one PUT. Replaced in tests. */
|
|
357
389
|
send(p: Pack, signal?: AbortSignal): Promise<void>;
|
|
358
390
|
private commit;
|
|
359
|
-
/**
|
|
391
|
+
/**
|
|
392
|
+
* A new reservation and fresh keys for the pack's items (section 17.3). A run's pack under the floor gives its files
|
|
393
|
+
* back to the planner instead (section 28.5); the old reservation is released (section 28.23).
|
|
394
|
+
*/
|
|
360
395
|
private renew;
|
|
396
|
+
/**
|
|
397
|
+
* A resumed pack that was never signed and is under the floor: reserve is asked with its own idempotency key (and its
|
|
398
|
+
* files as journaled), so a pack an earlier run already committed answers pack_committed and is committed for its
|
|
399
|
+
* stored result. Any other answer releases what it reserved, and its files go back to the planner (28.22, point 5).
|
|
400
|
+
*/
|
|
401
|
+
private dissolvePack;
|
|
402
|
+
/** Hands a run's pack's remaining files back to its planner (section 28.5); the pack ends as returned. */
|
|
403
|
+
private giveBack;
|
|
404
|
+
/** Frees a given-up reservation at once (section 28.23), best effort: without the route it expires as before. */
|
|
405
|
+
private releaseReservation;
|
|
361
406
|
private deliver;
|
|
362
407
|
/**
|
|
363
408
|
* Stores one object of up to 16 MiB in a pack shared with the other calls waiting now, and returns it once its pack
|
|
@@ -368,8 +413,16 @@ export declare class DirectUploads {
|
|
|
368
413
|
* is shared) and the call stops waiting for it.
|
|
369
414
|
*/
|
|
370
415
|
put(bucket: string, key: string, data: Uint8Array, opts?: WriteOptions, signal?: AbortSignal): Promise<StorageObject>;
|
|
371
|
-
/**
|
|
416
|
+
/**
|
|
417
|
+
* Sends the packs section 28's timing rule allows, oldest bucket first, each when a slot is free and the memory cap
|
|
418
|
+
* allows, and notes when the rule next needs a decision. While a pack would go but has no slot, a run's next pack
|
|
419
|
+
* waits for it (priority); a pack that is only gathering holds no run up. Replaced in tests.
|
|
420
|
+
*/
|
|
372
421
|
dispatch(): void;
|
|
422
|
+
/** The next pack to send and its reason (a slot taken for it), or undefined; sets the next decision and priority. */
|
|
423
|
+
private choose;
|
|
424
|
+
/** A pack's reason for being under the floor (section 28.9), or undefined at or over it. */
|
|
425
|
+
private reasonFor;
|
|
373
426
|
private runShared;
|
|
374
427
|
/**
|
|
375
428
|
* Every slot comes back through here, from putObject's packs and a run's alike, and putObject's waiting calls are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../../../src/direct/uploads.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAejD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EACL,aAAa,EAQb,WAAW,EAIX,UAAU,EAWV,KAAK,OAAO,EACZ,KAAK,SAAS,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAa,QAAQ,EAA6D,KAAK,IAAI,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpI,OAAO,EAAiB,KAAK,KAAK,EAAE,KAAK,OAAO,EAAY,MAAM,cAAc,CAAC;AACjF,OAAO,EAAS,KAAK,EAAgB,KA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AAE,MAAM,GAAG,MAAM,CAGnD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teepin/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Official TypeScript/JavaScript SDK for Teepin Web Services: Teepin Inference (AI models in confidential enclaves, OpenAI-compatible) and Teepin Storage, for Node 20+ and browsers",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && node scripts/package-types.mjs",
|
|
12
12
|
"prepare": "npm run build",
|
|
13
|
-
"test": "npm run build && node --test test/storage.test.mjs test/inference.test.mjs test/config.test.mjs test/formats.test.mjs test/fake-direct.test.mjs test/engine.test.mjs test/journal.test.mjs test/sha256.test.mjs test/reads.test.mjs test/downloads.test.mjs test/uploads.test.mjs test/uploads-large.test.mjs test/upload-journal.test.mjs test/links.test.mjs",
|
|
13
|
+
"test": "npm run build && node --test test/storage.test.mjs test/inference.test.mjs test/config.test.mjs test/formats.test.mjs test/fake-direct.test.mjs test/engine.test.mjs test/packing.test.mjs test/journal.test.mjs test/sha256.test.mjs test/reads.test.mjs test/downloads.test.mjs test/uploads.test.mjs test/uploads-large.test.mjs test/upload-journal.test.mjs test/links.test.mjs",
|
|
14
14
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.examples.json"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|