@elaraai/e3-api-server 1.0.103 → 1.0.105
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/README.md +114 -9
- package/dist/src/call-limits.d.ts +72 -0
- package/dist/src/call-limits.d.ts.map +1 -0
- package/dist/src/call-limits.js +104 -0
- package/dist/src/call-limits.js.map +1 -0
- package/dist/src/call-limits.spec.d.ts +6 -0
- package/dist/src/call-limits.spec.d.ts.map +1 -0
- package/dist/src/call-limits.spec.js +264 -0
- package/dist/src/call-limits.spec.js.map +1 -0
- package/dist/src/cli.js +10 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/handlers/calls.d.ts +238 -0
- package/dist/src/handlers/calls.d.ts.map +1 -0
- package/dist/src/handlers/calls.js +383 -0
- package/dist/src/handlers/calls.js.map +1 -0
- package/dist/src/handlers/functions.d.ts +47 -14
- package/dist/src/handlers/functions.d.ts.map +1 -1
- package/dist/src/handlers/functions.js +159 -94
- package/dist/src/handlers/functions.js.map +1 -1
- package/dist/src/handlers/functions.spec.js +71 -14
- package/dist/src/handlers/functions.spec.js.map +1 -1
- package/dist/src/handlers/index.d.ts +2 -1
- package/dist/src/handlers/index.d.ts.map +1 -1
- package/dist/src/handlers/index.js +2 -1
- package/dist/src/handlers/index.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/portable.d.ts +2 -1
- package/dist/src/portable.d.ts.map +1 -1
- package/dist/src/portable.js +4 -1
- package/dist/src/portable.js.map +1 -1
- package/dist/src/portable.spec.js +1 -0
- package/dist/src/portable.spec.js.map +1 -1
- package/dist/src/routes/calls.d.ts +81 -0
- package/dist/src/routes/calls.d.ts.map +1 -0
- package/dist/src/routes/calls.js +141 -0
- package/dist/src/routes/calls.js.map +1 -0
- package/dist/src/routes/functions.d.ts +97 -25
- package/dist/src/routes/functions.d.ts.map +1 -1
- package/dist/src/routes/functions.js +147 -30
- package/dist/src/routes/functions.js.map +1 -1
- package/dist/src/routes/index.d.ts +2 -1
- package/dist/src/routes/index.d.ts.map +1 -1
- package/dist/src/routes/index.js +2 -1
- package/dist/src/routes/index.js.map +1 -1
- package/dist/src/server.d.ts +15 -1
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +43 -10
- package/dist/src/server.js.map +1 -1
- package/dist/src/types.d.ts +295 -3
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +13 -2
- package/dist/src/types.js.map +1 -1
- package/package.json +7 -6
|
@@ -7,26 +7,33 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Functions are callable at the package level (imported in a repo, no
|
|
9
9
|
* workspace) and at the workspace level (resolved from the deployed package).
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
* An argument is a value, or through a workspace one of its datasets, pinned
|
|
11
|
+
* at launch as a one-shot's is; the package level has no workspace to read one
|
|
12
|
+
* from, and answers a dataset argument `invalid`. A call through the package
|
|
13
|
+
* runs within its request and keeps nothing. A call through a workspace is
|
|
14
|
+
* kept for its lifetime, and runs where the transfer backend runs calls,
|
|
15
|
+
* outliving its request: its start waits a while and answers `running` with
|
|
16
|
+
* the call's id, which the calls routes poll (`routes/calls.ts`); the sync
|
|
17
|
+
* route waits for it within the request. A function runs on its author's
|
|
18
|
+
* runner for any caller the routes admit; a runner a call names instead is
|
|
19
|
+
* held to the caller's grant, which the routes take as the one-shot routes do.
|
|
16
20
|
*
|
|
17
21
|
* One-shot is workspace-scoped, caller-supplied IR. Who may run what is the
|
|
18
22
|
* host's to say, since only its auth knows who the caller is: the route takes
|
|
19
23
|
* a {@link OneShotAccess}, which gives each request's caller a grant — `any`,
|
|
20
24
|
* `platform_free` or `none` — and e3-core's `oneShotExecute` runs the request
|
|
21
25
|
* under it. A caller who may read a workspace may run a platform-free
|
|
22
|
-
* one-shot, which can only compute over its arguments. A
|
|
23
|
-
*
|
|
24
|
-
* and
|
|
26
|
+
* one-shot, which can only compute over its arguments. A one-shot started as
|
|
27
|
+
* a call is kept as a function's call through a workspace is, under the same
|
|
28
|
+
* grant, and outlives its request. A split call — a caller's program over a
|
|
29
|
+
* dataset's pieces — is launched under the same grant, and runs as a job the
|
|
30
|
+
* client polls.
|
|
25
31
|
*/
|
|
26
32
|
import { Hono } from 'hono';
|
|
27
33
|
import type { Context } from 'hono';
|
|
28
|
-
import type { ExecuteCeilings, OneShotGrant, StorageBackend, TaskRunner, TransferBackend } from '@elaraai/e3-core/portable';
|
|
34
|
+
import type { ExecuteCeilings, FunctionCallLifetimes, OneShotGrant, StorageBackend, TaskRunner, TransferBackend } from '@elaraai/e3-core/portable';
|
|
29
35
|
import type { Identity } from '../identity.js';
|
|
36
|
+
import { type CallerOf } from './calls.js';
|
|
30
37
|
/**
|
|
31
38
|
* Per-repo TaskRunner accessor — the runner is injected (the local server
|
|
32
39
|
* passes LocalTaskRunner), mirroring the orchestrator runner-injection seam.
|
|
@@ -47,7 +54,26 @@ export interface OneShotRoutesOptions {
|
|
|
47
54
|
/** The most a request may ask for, where a host's response limits are
|
|
48
55
|
* tighter than a server's default. */
|
|
49
56
|
ceilings?: ExecuteCeilings;
|
|
57
|
+
/**
|
|
58
|
+
* The most a one-shot started as a call may ask for: its timeout is the
|
|
59
|
+
* ceiling's unless it asks for less, since it outlives its request
|
|
60
|
+
* (default `ceilings`). A host whose calls run elsewhere than its one-shots
|
|
61
|
+
* and split calls — e3-cloud's call function — gives that compute's own.
|
|
62
|
+
*/
|
|
63
|
+
callCeilings?: ExecuteCeilings;
|
|
64
|
+
/** The longest a started call's start waits for it to end before it
|
|
65
|
+
* answers `running` (default {@link DEFAULT_CALL_WINDOW_MS}): under the
|
|
66
|
+
* host's request timeout */
|
|
67
|
+
windowMs?: number;
|
|
68
|
+
/** How long a started call is kept once it ends (default: an hour for a
|
|
69
|
+
* success or a cancel, a week for any other end) */
|
|
70
|
+
lifetimes?: FunctionCallLifetimes;
|
|
71
|
+
/** Who makes a started call, as it is kept (default `callerOfIdentity`:
|
|
72
|
+
* the identity's email, else its subject) */
|
|
73
|
+
callerOf?: CallerOf;
|
|
50
74
|
}
|
|
75
|
+
/** The longest a call's start waits for it to end, unless the host says. */
|
|
76
|
+
export declare const DEFAULT_CALL_WINDOW_MS = 20000;
|
|
51
77
|
/** Options for the named function routes. */
|
|
52
78
|
export interface FunctionRoutesOptions {
|
|
53
79
|
/** A sync call's deadline, under the host's request timeout (default
|
|
@@ -62,6 +88,24 @@ export interface FunctionRoutesOptions {
|
|
|
62
88
|
* Absent, no caller may add a package.
|
|
63
89
|
*/
|
|
64
90
|
access?: OneShotAccess;
|
|
91
|
+
/**
|
|
92
|
+
* The most a call may ask for. Through a workspace, a started call's timeout
|
|
93
|
+
* is the ceiling's unless it asks for less, since it outlives its request; a
|
|
94
|
+
* sync call's, and a call's through the package, defaults as before, and is
|
|
95
|
+
* clamped under the sync deadline too (default: a server's, a 10-minute
|
|
96
|
+
* timeout, a 1 MiB result and 256 KiB of logs).
|
|
97
|
+
*/
|
|
98
|
+
ceilings?: ExecuteCeilings;
|
|
99
|
+
/** The longest a call's start waits for it to end before it answers
|
|
100
|
+
* `running` (default {@link DEFAULT_CALL_WINDOW_MS}): under the host's
|
|
101
|
+
* request timeout */
|
|
102
|
+
windowMs?: number;
|
|
103
|
+
/** How long a call through a workspace is kept once it ends (default: an
|
|
104
|
+
* hour for a success or a cancel, a week for any other end) */
|
|
105
|
+
lifetimes?: FunctionCallLifetimes;
|
|
106
|
+
/** Who makes a call, as it is kept (default `callerOfIdentity`: the
|
|
107
|
+
* identity's email, else its subject) */
|
|
108
|
+
callerOf?: CallerOf;
|
|
65
109
|
}
|
|
66
110
|
/**
|
|
67
111
|
* The one-shot grant of a caller by the roles its token carries: `any` for an
|
|
@@ -80,15 +124,30 @@ export declare function oneShotAccessByRoles(elevated?: readonly string[]): OneS
|
|
|
80
124
|
* @param storage - Storage backend
|
|
81
125
|
* @param getRepoPath - A repository's identifier from its name
|
|
82
126
|
* @param getRunner - Each repository's task runner
|
|
83
|
-
* @param options - The host's sync deadline,
|
|
84
|
-
* names is held to
|
|
127
|
+
* @param options - The host's sync deadline, the ceilings a call's limits are
|
|
128
|
+
* held to, and the grant a runner a call names is held to
|
|
85
129
|
* @returns The routes
|
|
86
130
|
*/
|
|
87
131
|
export declare function createPackageFunctionRoutes(storage: StorageBackend, getRepoPath: (repo: string) => string, getRunner: GetRunner, options?: FunctionRoutesOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
88
132
|
/**
|
|
89
133
|
* Workspace-scoped function routes, mounted at
|
|
90
134
|
* `/api/repos/:repo/workspaces/:ws/functions`. The package is resolved from
|
|
91
|
-
* what's deployed in the workspace
|
|
135
|
+
* what's deployed in the workspace.
|
|
136
|
+
*
|
|
137
|
+
* - `GET /` lists the deployed package's functions, and `GET /:fn` describes
|
|
138
|
+
* one, as the package routes do.
|
|
139
|
+
* - `POST /:fn/calls[?wait=ms&id=uuidv7]` starts a call: it is filed, run where
|
|
140
|
+
* the transfer backend runs calls, and kept for its lifetime. The start
|
|
141
|
+
* waits up to `wait` — at most `windowMs`, which it waits when none is
|
|
142
|
+
* given — and answers the call's id and its status: its result once it
|
|
143
|
+
* ended, or `running`, which the calls routes poll. `?wait=0` answers at
|
|
144
|
+
* once. An `id` the client chose, a UUIDv7 of about now, names the call, so
|
|
145
|
+
* the client can cancel it before the start answers; one far from the
|
|
146
|
+
* server's clock is set aside for the server's own, which the answer names,
|
|
147
|
+
* and an id that is no UUIDv7 is refused `400 bad_request`.
|
|
148
|
+
* - `POST /:fn` calls it synchronously: the same call, filed and kept, waited
|
|
149
|
+
* for within the request, its timeout clamped under the sync deadline, and
|
|
150
|
+
* answered as its `ExecuteResult`.
|
|
92
151
|
*
|
|
93
152
|
* @remarks
|
|
94
153
|
* A workspace whose package cannot be resolved — none deployed, or no such
|
|
@@ -98,36 +157,49 @@ export declare function createPackageFunctionRoutes(storage: StorageBackend, get
|
|
|
98
157
|
*
|
|
99
158
|
* @param storage - Storage backend
|
|
100
159
|
* @param getRepoPath - A repository's identifier from its name
|
|
101
|
-
* @param
|
|
102
|
-
*
|
|
103
|
-
*
|
|
160
|
+
* @param transferBackend - Runs the calls where the backend runs them, and
|
|
161
|
+
* hears of their ends
|
|
162
|
+
* @param options - The host's sync deadline, the grant a runner a call names
|
|
163
|
+
* is held to, the ceilings, the start's window, the lifetimes, and who calls
|
|
104
164
|
* @returns The routes
|
|
105
165
|
*/
|
|
106
|
-
export declare function createWorkspaceFunctionRoutes(storage: StorageBackend, getRepoPath: (repo: string) => string,
|
|
166
|
+
export declare function createWorkspaceFunctionRoutes(storage: StorageBackend, getRepoPath: (repo: string) => string, transferBackend: TransferBackend, options?: FunctionRoutesOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
107
167
|
/**
|
|
108
168
|
* One-shot routes, mounted at `/api/repos/:repo/workspaces/:ws/one-shot`.
|
|
109
169
|
*
|
|
110
170
|
* - `POST /` takes the caller's grant from `options.access`, and runs the
|
|
111
171
|
* request under it through e3-core's `oneShotExecute`, stopped when the
|
|
112
|
-
* caller hangs up
|
|
172
|
+
* caller hangs up: within the request, its timeout under the sync deadline,
|
|
173
|
+
* keeping nothing.
|
|
174
|
+
* - `POST /calls[?wait=ms&id=uuidv7]` starts the request as a call under the
|
|
175
|
+
* same grant: filed, run where the transfer backend runs calls, and kept
|
|
176
|
+
* for its lifetime among the workspace's calls, naming no function. The
|
|
177
|
+
* start waits and answers as a function's start does
|
|
178
|
+
* (`POST …/functions/:fn/calls`): the call's id and its status, its result
|
|
179
|
+
* once it ended or `running`, which the calls routes poll and cancel.
|
|
113
180
|
* - `POST /split` launches a split call under the same grant and answers its
|
|
114
181
|
* job's id; with `?explain=1` its job plans the call's pieces instead, and
|
|
115
182
|
* runs no unit.
|
|
116
183
|
* - `GET /split/:id` answers a split call's status: how far it has got, its
|
|
117
|
-
* result, the pieces an explain planned,
|
|
184
|
+
* result, the pieces an explain planned, why e3 could not run it, or that
|
|
185
|
+
* it was cancelled.
|
|
186
|
+
* - `POST /split/:id/cancel` cancels a split call that is still running, and
|
|
187
|
+
* answers its status after, as a poll does.
|
|
118
188
|
*
|
|
119
189
|
* A caller refused is answered `permission_denied` (`path` `one-shot`), and
|
|
120
|
-
* nothing runs. A caller whose grant is `none` polls no split call,
|
|
121
|
-
* whose grant is `platform_free` only a platform-free one, or one such
|
|
122
|
-
* caller launched.
|
|
190
|
+
* nothing runs. A caller whose grant is `none` polls or cancels no split call,
|
|
191
|
+
* and one whose grant is `platform_free` only a platform-free one, or one such
|
|
192
|
+
* a caller launched.
|
|
123
193
|
*
|
|
124
194
|
* @param storage - Storage backend
|
|
125
195
|
* @param getRepoPath - A repository's identifier from its name
|
|
126
196
|
* @param transferBackend - Files and dispatches the jobs split calls run as,
|
|
127
|
-
* which
|
|
197
|
+
* and runs started calls, each of which outlasts a request, on the runner
|
|
198
|
+
* the backend was given
|
|
128
199
|
* @param getRunner - Each repository's task runner
|
|
129
|
-
* @param options - Who may run what, the host's sync deadline
|
|
130
|
-
* request may ask for
|
|
200
|
+
* @param options - Who may run what, the host's sync deadline, the most a
|
|
201
|
+
* request may ask for, and a started call's ceilings, window, lifetimes and
|
|
202
|
+
* caller
|
|
131
203
|
* @returns The routes
|
|
132
204
|
*/
|
|
133
205
|
export declare function createOneShotRoutes(storage: StorageBackend, getRepoPath: (repo: string) => string, transferBackend: TransferBackend, getRunner: GetRunner, options: OneShotRoutesOptions): Hono<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/routes/functions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/routes/functions.ts"],"names":[],"mappings":"AAAA;;;GAGG;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C,EAAE,eAAe,CAAC;IAC3B;;0BAEsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;oEACgE;IAChE,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC;8CAC0C;IAC1C,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAOD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,GAAE,SAAS,MAAM,EAAuB,GAAG,aAAa,CAMpG;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,cAAc,EACvB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EACrC,SAAS,EAAE,SAAS,EACpB,OAAO,GAAE,qBAA0B,8EA8BpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,cAAc,EACvB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EACrC,eAAe,EAAE,eAAe,EAChC,OAAO,GAAE,qBAA0B,8EA4EpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,cAAc,EACvB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EACrC,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,oBAAoB;eAEK;QAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAE;0CAwF1D"}
|
|
@@ -7,29 +7,40 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Functions are callable at the package level (imported in a repo, no
|
|
9
9
|
* workspace) and at the workspace level (resolved from the deployed package).
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
* An argument is a value, or through a workspace one of its datasets, pinned
|
|
11
|
+
* at launch as a one-shot's is; the package level has no workspace to read one
|
|
12
|
+
* from, and answers a dataset argument `invalid`. A call through the package
|
|
13
|
+
* runs within its request and keeps nothing. A call through a workspace is
|
|
14
|
+
* kept for its lifetime, and runs where the transfer backend runs calls,
|
|
15
|
+
* outliving its request: its start waits a while and answers `running` with
|
|
16
|
+
* the call's id, which the calls routes poll (`routes/calls.ts`); the sync
|
|
17
|
+
* route waits for it within the request. A function runs on its author's
|
|
18
|
+
* runner for any caller the routes admit; a runner a call names instead is
|
|
19
|
+
* held to the caller's grant, which the routes take as the one-shot routes do.
|
|
16
20
|
*
|
|
17
21
|
* One-shot is workspace-scoped, caller-supplied IR. Who may run what is the
|
|
18
22
|
* host's to say, since only its auth knows who the caller is: the route takes
|
|
19
23
|
* a {@link OneShotAccess}, which gives each request's caller a grant — `any`,
|
|
20
24
|
* `platform_free` or `none` — and e3-core's `oneShotExecute` runs the request
|
|
21
25
|
* under it. A caller who may read a workspace may run a platform-free
|
|
22
|
-
* one-shot, which can only compute over its arguments. A
|
|
23
|
-
*
|
|
24
|
-
* and
|
|
26
|
+
* one-shot, which can only compute over its arguments. A one-shot started as
|
|
27
|
+
* a call is kept as a function's call through a workspace is, under the same
|
|
28
|
+
* grant, and outlives its request. A split call — a caller's program over a
|
|
29
|
+
* dataset's pieces — is launched under the same grant, and runs as a job the
|
|
30
|
+
* client polls.
|
|
25
31
|
*/
|
|
26
32
|
import { Hono } from 'hono';
|
|
27
33
|
import { ArrayType } from '@elaraai/east';
|
|
28
|
-
import { oneShotExecute, workspaceGetPackage } from '@elaraai/e3-core/portable';
|
|
34
|
+
import { isUuidv7, oneShotExecute, workspaceGetPackage } from '@elaraai/e3-core/portable';
|
|
29
35
|
import { decodeBody, sendError, sendSuccess } from '../beast2.js';
|
|
30
36
|
import { errorToVariant } from '../errors.js';
|
|
31
|
-
import { FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, ExecuteResultType, PackageJobResponseType, SplitCallRequestType, SplitCallStatusType, } from '../types.js';
|
|
32
|
-
import { listPackageFunctions, describePackageFunction, callFunctionSync, getSplitCallStatus, startSplitCall, } from '../handlers/functions.js';
|
|
37
|
+
import { FunctionCallAnswerType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, ExecuteResultType, PackageJobResponseType, SplitCallRequestType, SplitCallStatusType, } from '../types.js';
|
|
38
|
+
import { listPackageFunctions, describePackageFunction, callFunctionSync, cancelSplitCall, getSplitCallStatus, startSplitCall, } from '../handlers/functions.js';
|
|
39
|
+
import { callFunctionInWorkspace, startFunctionCall, startOneShotCall } from '../handlers/calls.js';
|
|
40
|
+
import { callerOfIdentity } from './calls.js';
|
|
41
|
+
import { badQuery, wholeQuery } from './query.js';
|
|
42
|
+
/** The longest a call's start waits for it to end, unless the host says. */
|
|
43
|
+
export const DEFAULT_CALL_WINDOW_MS = 20_000;
|
|
33
44
|
/** The grant of a function call's caller, by the routes' options. */
|
|
34
45
|
async function functionGrant(c, options) {
|
|
35
46
|
return options.access === undefined ? 'platform_free' : options.access(c);
|
|
@@ -58,8 +69,8 @@ export function oneShotAccessByRoles(elevated = ['admin', 'owner']) {
|
|
|
58
69
|
* @param storage - Storage backend
|
|
59
70
|
* @param getRepoPath - A repository's identifier from its name
|
|
60
71
|
* @param getRunner - Each repository's task runner
|
|
61
|
-
* @param options - The host's sync deadline,
|
|
62
|
-
* names is held to
|
|
72
|
+
* @param options - The host's sync deadline, the ceilings a call's limits are
|
|
73
|
+
* held to, and the grant a runner a call names is held to
|
|
63
74
|
* @returns The routes
|
|
64
75
|
*/
|
|
65
76
|
export function createPackageFunctionRoutes(storage, getRepoPath, getRunner, options = {}) {
|
|
@@ -80,7 +91,7 @@ export function createPackageFunctionRoutes(storage, getRepoPath, getRunner, opt
|
|
|
80
91
|
try {
|
|
81
92
|
const grant = await functionGrant(c, options);
|
|
82
93
|
const req = await decodeBody(c, FunctionCallRequestType);
|
|
83
|
-
return await callFunctionSync(storage, repoPath, getRunner(repoPath), c.req.param('pkg'), c.req.param('version'), c.req.param('fn'), req, c.req.query('verbose') === '1', options.syncDeadlineMs, grant);
|
|
94
|
+
return await callFunctionSync(storage, repoPath, getRunner(repoPath), c.req.param('pkg'), c.req.param('version'), c.req.param('fn'), req, c.req.query('verbose') === '1', options.syncDeadlineMs, grant, null, options.ceilings);
|
|
84
95
|
}
|
|
85
96
|
catch (err) {
|
|
86
97
|
return sendError(ExecuteResultType, errorToVariant(err));
|
|
@@ -91,7 +102,22 @@ export function createPackageFunctionRoutes(storage, getRepoPath, getRunner, opt
|
|
|
91
102
|
/**
|
|
92
103
|
* Workspace-scoped function routes, mounted at
|
|
93
104
|
* `/api/repos/:repo/workspaces/:ws/functions`. The package is resolved from
|
|
94
|
-
* what's deployed in the workspace
|
|
105
|
+
* what's deployed in the workspace.
|
|
106
|
+
*
|
|
107
|
+
* - `GET /` lists the deployed package's functions, and `GET /:fn` describes
|
|
108
|
+
* one, as the package routes do.
|
|
109
|
+
* - `POST /:fn/calls[?wait=ms&id=uuidv7]` starts a call: it is filed, run where
|
|
110
|
+
* the transfer backend runs calls, and kept for its lifetime. The start
|
|
111
|
+
* waits up to `wait` — at most `windowMs`, which it waits when none is
|
|
112
|
+
* given — and answers the call's id and its status: its result once it
|
|
113
|
+
* ended, or `running`, which the calls routes poll. `?wait=0` answers at
|
|
114
|
+
* once. An `id` the client chose, a UUIDv7 of about now, names the call, so
|
|
115
|
+
* the client can cancel it before the start answers; one far from the
|
|
116
|
+
* server's clock is set aside for the server's own, which the answer names,
|
|
117
|
+
* and an id that is no UUIDv7 is refused `400 bad_request`.
|
|
118
|
+
* - `POST /:fn` calls it synchronously: the same call, filed and kept, waited
|
|
119
|
+
* for within the request, its timeout clamped under the sync deadline, and
|
|
120
|
+
* answered as its `ExecuteResult`.
|
|
95
121
|
*
|
|
96
122
|
* @remarks
|
|
97
123
|
* A workspace whose package cannot be resolved — none deployed, or no such
|
|
@@ -101,13 +127,23 @@ export function createPackageFunctionRoutes(storage, getRepoPath, getRunner, opt
|
|
|
101
127
|
*
|
|
102
128
|
* @param storage - Storage backend
|
|
103
129
|
* @param getRepoPath - A repository's identifier from its name
|
|
104
|
-
* @param
|
|
105
|
-
*
|
|
106
|
-
*
|
|
130
|
+
* @param transferBackend - Runs the calls where the backend runs them, and
|
|
131
|
+
* hears of their ends
|
|
132
|
+
* @param options - The host's sync deadline, the grant a runner a call names
|
|
133
|
+
* is held to, the ceilings, the start's window, the lifetimes, and who calls
|
|
107
134
|
* @returns The routes
|
|
108
135
|
*/
|
|
109
|
-
export function createWorkspaceFunctionRoutes(storage, getRepoPath,
|
|
136
|
+
export function createWorkspaceFunctionRoutes(storage, getRepoPath, transferBackend, options = {}) {
|
|
110
137
|
const app = new Hono();
|
|
138
|
+
const windowMs = options.windowMs ?? DEFAULT_CALL_WINDOW_MS;
|
|
139
|
+
const callerOf = options.callerOf ?? callerOfIdentity;
|
|
140
|
+
const filing = (c, grant) => ({
|
|
141
|
+
caller: callerOf(c),
|
|
142
|
+
grant,
|
|
143
|
+
verbose: c.req.query('verbose') === '1',
|
|
144
|
+
...(options.ceilings !== undefined && { ceilings: options.ceilings }),
|
|
145
|
+
...(options.lifetimes !== undefined && { lifetimes: options.lifetimes }),
|
|
146
|
+
});
|
|
111
147
|
const deployed = async (c) => {
|
|
112
148
|
const repoPath = getRepoPath(c.req.param('repo'));
|
|
113
149
|
const ws = c.req.param('ws');
|
|
@@ -132,13 +168,40 @@ export function createWorkspaceFunctionRoutes(storage, getRepoPath, getRunner, o
|
|
|
132
168
|
return sendError(FunctionSignatureType, errorToVariant(err));
|
|
133
169
|
}
|
|
134
170
|
});
|
|
171
|
+
// POST /:fn/calls - Start a call, kept for its lifetime (FunctionCallAnswer)
|
|
172
|
+
app.post('/:fn/calls', async (c) => {
|
|
173
|
+
const repo = c.req.param('repo');
|
|
174
|
+
try {
|
|
175
|
+
const query = wholeQuery(c, { wait: 0 });
|
|
176
|
+
if (query instanceof Response)
|
|
177
|
+
return query;
|
|
178
|
+
// The id the client chose, so it can stop the call before this answers
|
|
179
|
+
const id = c.req.query('id');
|
|
180
|
+
if (id !== undefined && !isUuidv7(id))
|
|
181
|
+
return badQuery(`id must be a UUIDv7, got ${JSON.stringify(id)}`);
|
|
182
|
+
const grant = await functionGrant(c, options);
|
|
183
|
+
const req = await decodeBody(c, FunctionCallRequestType);
|
|
184
|
+
return await startFunctionCall(storage, transferBackend.functionCalls, repo, getRepoPath(repo), c.req.param('ws'), c.req.param('fn'), req, {
|
|
185
|
+
...filing(c, grant),
|
|
186
|
+
waitMs: Math.min(query.wait ?? windowMs, windowMs),
|
|
187
|
+
...(id !== undefined && { id }),
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
catch (err) {
|
|
191
|
+
return sendError(FunctionCallAnswerType, errorToVariant(err));
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
// POST /:fn - Call synchronously, kept as a started call is (ExecuteResult)
|
|
135
195
|
app.post('/:fn', async (c) => {
|
|
196
|
+
const repo = c.req.param('repo');
|
|
136
197
|
try {
|
|
137
|
-
const { repoPath, name, version } = await deployed(c);
|
|
138
198
|
const grant = await functionGrant(c, options);
|
|
139
199
|
const req = await decodeBody(c, FunctionCallRequestType);
|
|
140
200
|
// A dataset argument is the workspace's, pinned at launch
|
|
141
|
-
return await
|
|
201
|
+
return await callFunctionInWorkspace(storage, transferBackend.functionCalls, repo, getRepoPath(repo), c.req.param('ws'), c.req.param('fn'), req, {
|
|
202
|
+
...filing(c, grant),
|
|
203
|
+
...(options.syncDeadlineMs !== undefined && { syncDeadlineMs: options.syncDeadlineMs }),
|
|
204
|
+
});
|
|
142
205
|
}
|
|
143
206
|
catch (err) {
|
|
144
207
|
return sendError(ExecuteResultType, errorToVariant(err));
|
|
@@ -151,29 +214,44 @@ export function createWorkspaceFunctionRoutes(storage, getRepoPath, getRunner, o
|
|
|
151
214
|
*
|
|
152
215
|
* - `POST /` takes the caller's grant from `options.access`, and runs the
|
|
153
216
|
* request under it through e3-core's `oneShotExecute`, stopped when the
|
|
154
|
-
* caller hangs up
|
|
217
|
+
* caller hangs up: within the request, its timeout under the sync deadline,
|
|
218
|
+
* keeping nothing.
|
|
219
|
+
* - `POST /calls[?wait=ms&id=uuidv7]` starts the request as a call under the
|
|
220
|
+
* same grant: filed, run where the transfer backend runs calls, and kept
|
|
221
|
+
* for its lifetime among the workspace's calls, naming no function. The
|
|
222
|
+
* start waits and answers as a function's start does
|
|
223
|
+
* (`POST …/functions/:fn/calls`): the call's id and its status, its result
|
|
224
|
+
* once it ended or `running`, which the calls routes poll and cancel.
|
|
155
225
|
* - `POST /split` launches a split call under the same grant and answers its
|
|
156
226
|
* job's id; with `?explain=1` its job plans the call's pieces instead, and
|
|
157
227
|
* runs no unit.
|
|
158
228
|
* - `GET /split/:id` answers a split call's status: how far it has got, its
|
|
159
|
-
* result, the pieces an explain planned,
|
|
229
|
+
* result, the pieces an explain planned, why e3 could not run it, or that
|
|
230
|
+
* it was cancelled.
|
|
231
|
+
* - `POST /split/:id/cancel` cancels a split call that is still running, and
|
|
232
|
+
* answers its status after, as a poll does.
|
|
160
233
|
*
|
|
161
234
|
* A caller refused is answered `permission_denied` (`path` `one-shot`), and
|
|
162
|
-
* nothing runs. A caller whose grant is `none` polls no split call,
|
|
163
|
-
* whose grant is `platform_free` only a platform-free one, or one such
|
|
164
|
-
* caller launched.
|
|
235
|
+
* nothing runs. A caller whose grant is `none` polls or cancels no split call,
|
|
236
|
+
* and one whose grant is `platform_free` only a platform-free one, or one such
|
|
237
|
+
* a caller launched.
|
|
165
238
|
*
|
|
166
239
|
* @param storage - Storage backend
|
|
167
240
|
* @param getRepoPath - A repository's identifier from its name
|
|
168
241
|
* @param transferBackend - Files and dispatches the jobs split calls run as,
|
|
169
|
-
* which
|
|
242
|
+
* and runs started calls, each of which outlasts a request, on the runner
|
|
243
|
+
* the backend was given
|
|
170
244
|
* @param getRunner - Each repository's task runner
|
|
171
|
-
* @param options - Who may run what, the host's sync deadline
|
|
172
|
-
* request may ask for
|
|
245
|
+
* @param options - Who may run what, the host's sync deadline, the most a
|
|
246
|
+
* request may ask for, and a started call's ceilings, window, lifetimes and
|
|
247
|
+
* caller
|
|
173
248
|
* @returns The routes
|
|
174
249
|
*/
|
|
175
250
|
export function createOneShotRoutes(storage, getRepoPath, transferBackend, getRunner, options) {
|
|
176
251
|
const app = new Hono();
|
|
252
|
+
const windowMs = options.windowMs ?? DEFAULT_CALL_WINDOW_MS;
|
|
253
|
+
const callerOf = options.callerOf ?? callerOfIdentity;
|
|
254
|
+
const callCeilings = options.callCeilings ?? options.ceilings;
|
|
177
255
|
app.post('/', async (c) => {
|
|
178
256
|
const repoPath = getRepoPath(c.req.param('repo'));
|
|
179
257
|
try {
|
|
@@ -192,6 +270,34 @@ export function createOneShotRoutes(storage, getRepoPath, transferBackend, getRu
|
|
|
192
270
|
return sendError(ExecuteResultType, errorToVariant(err));
|
|
193
271
|
}
|
|
194
272
|
});
|
|
273
|
+
// POST /calls - Start a one-shot as a call, kept for its lifetime
|
|
274
|
+
// (FunctionCallAnswer)
|
|
275
|
+
app.post('/calls', async (c) => {
|
|
276
|
+
const repo = c.req.param('repo');
|
|
277
|
+
try {
|
|
278
|
+
const query = wholeQuery(c, { wait: 0 });
|
|
279
|
+
if (query instanceof Response)
|
|
280
|
+
return query;
|
|
281
|
+
// The id the client chose, so it can stop the call before this answers
|
|
282
|
+
const id = c.req.query('id');
|
|
283
|
+
if (id !== undefined && !isUuidv7(id))
|
|
284
|
+
return badQuery(`id must be a UUIDv7, got ${JSON.stringify(id)}`);
|
|
285
|
+
const grant = await options.access(c);
|
|
286
|
+
const req = await decodeBody(c, OneShotRequestType);
|
|
287
|
+
return await startOneShotCall(storage, transferBackend.functionCalls, repo, getRepoPath(repo), c.req.param('ws'), req, {
|
|
288
|
+
caller: callerOf(c),
|
|
289
|
+
grant,
|
|
290
|
+
verbose: c.req.query('verbose') === '1',
|
|
291
|
+
...(callCeilings !== undefined && { ceilings: callCeilings }),
|
|
292
|
+
...(options.lifetimes !== undefined && { lifetimes: options.lifetimes }),
|
|
293
|
+
waitMs: Math.min(query.wait ?? windowMs, windowMs),
|
|
294
|
+
...(id !== undefined && { id }),
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
catch (err) {
|
|
298
|
+
return sendError(FunctionCallAnswerType, errorToVariant(err));
|
|
299
|
+
}
|
|
300
|
+
});
|
|
195
301
|
// POST /split - Launch a split call (or, with ?explain=1, a job that plans
|
|
196
302
|
// its pieces)
|
|
197
303
|
app.post('/split', async (c) => {
|
|
@@ -219,6 +325,17 @@ export function createOneShotRoutes(storage, getRepoPath, transferBackend, getRu
|
|
|
219
325
|
return sendError(SplitCallStatusType, errorToVariant(err));
|
|
220
326
|
}
|
|
221
327
|
});
|
|
328
|
+
// POST /split/:id/cancel - Cancel a split call
|
|
329
|
+
app.post('/split/:id/cancel', async (c) => {
|
|
330
|
+
const repo = c.req.param('repo');
|
|
331
|
+
try {
|
|
332
|
+
const grant = await options.access(c);
|
|
333
|
+
return await cancelSplitCall(storage, getRepoPath(repo), transferBackend.splitCall, repo, c.req.param('ws'), c.req.param('id'), grant);
|
|
334
|
+
}
|
|
335
|
+
catch (err) {
|
|
336
|
+
return sendError(SplitCallStatusType, errorToVariant(err));
|
|
337
|
+
}
|
|
338
|
+
});
|
|
222
339
|
return app;
|
|
223
340
|
}
|
|
224
341
|
//# sourceMappingURL=functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/routes/functions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAA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AC,MAAM,CAAC,CAAC,CAAC,CAAC;YACtC,OAAO,MAAM,eAAe,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;QAC1I,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,SAAS,CAAC,mBAAmB,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -14,7 +14,8 @@ export { createObjectRoutes } from './objects.js';
|
|
|
14
14
|
export { createTransferRoutes, type TransferRouteOptions } from './transfer.js';
|
|
15
15
|
export { createPackageTransferRoutes } from './package-transfer.js';
|
|
16
16
|
export { createDataEndpoints } from './data.js';
|
|
17
|
-
export { createPackageFunctionRoutes, createWorkspaceFunctionRoutes, createOneShotRoutes, oneShotAccessByRoles, type GetRunner, type OneShotAccess, type OneShotRoutesOptions, type FunctionRoutesOptions, } from './functions.js';
|
|
17
|
+
export { createPackageFunctionRoutes, createWorkspaceFunctionRoutes, createOneShotRoutes, oneShotAccessByRoles, DEFAULT_CALL_WINDOW_MS, type GetRunner, type OneShotAccess, type OneShotRoutesOptions, type FunctionRoutesOptions, } from './functions.js';
|
|
18
|
+
export { createWorkspaceCallRoutes, callerOfIdentity, DEFAULT_CALL_POLL_WAIT_MS, type CallerOf, type CallAccess, type CallRoutesOptions, } from './calls.js';
|
|
18
19
|
export { createWorkspaceRecordRoutes, type RecordRoutesOptions } from './records.js';
|
|
19
20
|
export { badQuery, wholeQuery, pathsQuery, type QueryLeast } from './query.js';
|
|
20
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,E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8 @@ export { createObjectRoutes } from './objects.js';
|
|
|
14
14
|
export { createTransferRoutes } from './transfer.js';
|
|
15
15
|
export { createPackageTransferRoutes } from './package-transfer.js';
|
|
16
16
|
export { createDataEndpoints } from './data.js';
|
|
17
|
-
export { createPackageFunctionRoutes, createWorkspaceFunctionRoutes, createOneShotRoutes, oneShotAccessByRoles, } from './functions.js';
|
|
17
|
+
export { createPackageFunctionRoutes, createWorkspaceFunctionRoutes, createOneShotRoutes, oneShotAccessByRoles, DEFAULT_CALL_WINDOW_MS, } from './functions.js';
|
|
18
|
+
export { createWorkspaceCallRoutes, callerOfIdentity, DEFAULT_CALL_POLL_WAIT_MS, } from './calls.js';
|
|
18
19
|
export { createWorkspaceRecordRoutes } from './records.js';
|
|
19
20
|
export { badQuery, wholeQuery, pathsQuery } from './query.js';
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAA4B,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAyC,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAA6B,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBA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@ import { Budget } from '@elaraai/e3-core';
|
|
|
7
7
|
import type { BudgetSettings, StorageBackend } from '@elaraai/e3-core';
|
|
8
8
|
import { type AuthConfig } from './middleware/auth.js';
|
|
9
9
|
import { type OidcConfig } from './auth/index.js';
|
|
10
|
+
import { type CallLimits } from './call-limits.js';
|
|
10
11
|
import type { DataflowRunnerLease } from './dataflow-runner.js';
|
|
11
12
|
export type { DataflowRunnerLease } from './dataflow-runner.js';
|
|
12
13
|
/** Supplies the server's existing runtime collaborators to a per-run factory. */
|
|
@@ -61,6 +62,18 @@ export interface ServerConfig {
|
|
|
61
62
|
* `E3_JOBS` and `E3_MEMORY`, else what the process may use); settings
|
|
62
63
|
* that do not resolve make `createServer` throw a `RangeError`. */
|
|
63
64
|
budget?: Budget | BudgetSettings;
|
|
65
|
+
/** The limits of the calls the server runs, as `--call-deadline`,
|
|
66
|
+
* `--job-timeout`, `--max-result` and `--max-log` give them: a sync call's
|
|
67
|
+
* deadline, which the one-shot and function routes take; the most a
|
|
68
|
+
* one-shot call, a split call or a call of a function, through its package
|
|
69
|
+
* or a workspace, may ask for (default: 120 s; 10 minutes, 1 MiB and
|
|
70
|
+
* 256 KiB); and how a kept call is waited for and kept: its start's window,
|
|
71
|
+
* the longest a poll is held, and its lifetimes (default: 20 s, 20 s; an
|
|
72
|
+
* hour for a success or a cancel, a week for any other end). A limit no
|
|
73
|
+
* call could meet makes `createServer` throw a `RangeError`, and so does a
|
|
74
|
+
* deadline, timeout, window or wait longer than a timer waits, about 24.8
|
|
75
|
+
* days. */
|
|
76
|
+
calls?: CallLimits;
|
|
64
77
|
/** Opens a per-run runner attachment, closed when the run ends. */
|
|
65
78
|
dataflowRunner?: DataflowRunnerFactory;
|
|
66
79
|
}
|
|
@@ -89,7 +102,8 @@ export interface Server {
|
|
|
89
102
|
*
|
|
90
103
|
* @param config - Server configuration
|
|
91
104
|
* @returns Server instance
|
|
92
|
-
* @throws {RangeError} When the budget's settings do not resolve
|
|
105
|
+
* @throws {RangeError} When the budget's settings do not resolve, or a call
|
|
106
|
+
* limit is not positive, or is longer than a timer waits
|
|
93
107
|
* @throws {RepoNotFoundError} When the single repository is none
|
|
94
108
|
* @throws {RepoLayoutError} When this e3 cannot open the single repository
|
|
95
109
|
*/
|
package/dist/src/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EACL,MAAM,EACP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAA+B,MAAM,kBAAkB,CAAC;AACpG,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAyC,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EACL,MAAM,EACP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAA+B,MAAM,kBAAkB,CAAC;AACpG,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAyC,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAkBzF,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,OAAO,EAAE,cAAc,CAAC;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