@restatedev/sessions 0.11.1 → 0.12.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/README.md +330 -178
- package/dist/addon.d.ts +1 -0
- package/dist/addon.d.ts.map +1 -1
- package/dist/addon.js.map +1 -1
- package/dist/calls.d.ts +28 -28
- package/dist/calls.d.ts.map +1 -1
- package/dist/calls.js +25 -25
- package/dist/calls.js.map +1 -1
- package/dist/database.d.ts +90 -166
- package/dist/database.d.ts.map +1 -1
- package/dist/database.js +137 -249
- package/dist/database.js.map +1 -1
- package/dist/driver.d.ts +129 -126
- package/dist/driver.d.ts.map +1 -1
- package/dist/driver.js +337 -276
- package/dist/driver.js.map +1 -1
- package/dist/endpoint.d.ts +47 -5
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoint.js +175 -60
- package/dist/endpoint.js.map +1 -1
- package/dist/handler.d.ts +20 -17
- package/dist/handler.d.ts.map +1 -1
- package/dist/handler.js +161 -127
- package/dist/handler.js.map +1 -1
- package/dist/host.d.ts +29 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +2 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -26
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +11 -11
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +20 -16
- package/dist/internal.js.map +1 -1
- package/dist/link.d.ts +1 -2
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +4 -5
- package/dist/link.js.map +1 -1
- package/dist/log.d.ts +14 -0
- package/dist/log.d.ts.map +1 -0
- package/dist/log.js +21 -0
- package/dist/log.js.map +1 -0
- package/dist/object.d.ts +217 -142
- package/dist/object.d.ts.map +1 -1
- package/dist/object.js +195 -241
- package/dist/object.js.map +1 -1
- package/dist/platform.d.ts +0 -1
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +4 -6
- package/dist/platform.js.map +1 -1
- package/dist/schema.d.ts +14 -22
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +31 -69
- package/dist/schema.js.map +1 -1
- package/dist/serve.d.ts +11 -17
- package/dist/serve.d.ts.map +1 -1
- package/dist/serve.js +21 -39
- package/dist/serve.js.map +1 -1
- package/dist/session.d.ts +58 -236
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +206 -513
- package/dist/session.js.map +1 -1
- package/dist/stop.d.ts +59 -0
- package/dist/stop.d.ts.map +1 -0
- package/dist/stop.js +220 -0
- package/dist/stop.js.map +1 -0
- package/dist/vm.d.ts +108 -29
- package/dist/vm.d.ts.map +1 -1
- package/dist/vm.js +43 -10
- package/dist/vm.js.map +1 -1
- package/package.json +4 -4
- package/src/addon.ts +1 -0
- package/src/calls.ts +51 -47
- package/src/database.ts +195 -339
- package/src/driver.ts +379 -315
- package/src/endpoint.ts +217 -62
- package/src/handler.ts +183 -164
- package/src/host.ts +28 -0
- package/src/index.ts +6 -26
- package/src/internal.ts +28 -39
- package/src/link.ts +4 -5
- package/src/log.ts +42 -0
- package/src/object.ts +379 -335
- package/src/platform.ts +4 -6
- package/src/schema.ts +37 -103
- package/src/serve.ts +20 -41
- package/src/session.ts +236 -613
- package/src/stop.ts +225 -0
- package/src/vm.ts +151 -55
- package/dist/scope.d.ts +0 -38
- package/dist/scope.d.ts.map +0 -1
- package/dist/scope.js +0 -55
- package/dist/scope.js.map +0 -1
- package/src/scope.ts +0 -78
package/dist/object.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../src/object.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../src/object.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAGL,KAAK,KAAK,EACV,KAAK,uBAAuB,EAC7B,MAAM,8BAA8B,CAAC;AACtC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MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC;CACjC,GAAG,uBAAuB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CA6B1D;AAkBD;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IAC7C,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1C,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,IAAI,IAAI,CAAC;IACjB,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC3B;AAQD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,WAAW,GAAG,eAAe,CAalF;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAEjH;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,cAAc,GAAG,WAAW,EACjC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,GACzC,IAAI,CAGN;AAED,4FAA4F;AAC5F,wBAAgB,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtE"}
|
package/dist/object.js
CHANGED
|
@@ -1,108 +1,53 @@
|
|
|
1
1
|
// Session objects: Restate virtual objects whose state is a SQL database per
|
|
2
|
-
// key.
|
|
3
|
-
//
|
|
4
|
-
// calls, and nothing else of the SDK's context:
|
|
5
|
-
//
|
|
6
|
-
// const notes = restate.sessionObject({
|
|
7
|
-
// name: 'notes',
|
|
8
|
-
// schema: ['CREATE TABLE notes (text TEXT NOT NULL)'],
|
|
9
|
-
// handlers: {
|
|
10
|
-
// add: async (ctx, text: string) => {
|
|
11
|
-
// await ctx.db.execute('INSERT INTO notes (text) VALUES (?)', [text]);
|
|
12
|
-
// },
|
|
13
|
-
// },
|
|
14
|
-
// views: {
|
|
15
|
-
// list: async (ctx) => ctx.db.query<{ text: string }>('SELECT text FROM notes'),
|
|
16
|
-
// },
|
|
17
|
-
// });
|
|
2
|
+
// key. Handlers run one at a time per key, and views run beside them. Each gets
|
|
3
|
+
// a context with the key, the request, the database and calls.
|
|
18
4
|
import * as restate from '@restatedev/restate-sdk';
|
|
5
|
+
import { millisOrDurationToMillis, } from '@restatedev/restate-sdk-core';
|
|
19
6
|
import { rpcOf, sendOf } from './calls.js';
|
|
20
7
|
import { ensureOf, ensuring, Schema } from './schema.js';
|
|
21
8
|
import { patchEndpoint } from './endpoint.js';
|
|
22
9
|
import { Link } from './link.js';
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The key of the object database's head, its first read as it opens:
|
|
27
|
-
* `HEAD_KEY` in the addon's state format
|
|
28
|
-
* (`packages/sessions/native/src/state/format.rs`).
|
|
29
|
-
*/
|
|
10
|
+
import { Attempt } from './session.js';
|
|
11
|
+
/** The state key of the database head, the first read of an open (`HEAD_KEY` in shared-core `src/state/format.rs`). */
|
|
30
12
|
export const HEAD_KEY = 'v22/head';
|
|
31
|
-
/**
|
|
32
|
-
* The options every session object has: an invocation starts with the
|
|
33
|
-
* database's head only, not with every page. The rest of the database it
|
|
34
|
-
* reads as it needs it: its tail entries and packs change keys with each
|
|
35
|
-
* flush, so only the head can be named.
|
|
36
|
-
*/
|
|
13
|
+
/** Preload only the database head: tail and pack keys change with each flush. */
|
|
37
14
|
export const sqlOptions = { state: { preload: [HEAD_KEY] } };
|
|
38
15
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
16
|
+
* Marks a session object's handlers for discovery: they are on the explicit
|
|
17
|
+
* recovery protocol (`protocolFamily` in manifest v6, endpoint.ts). The
|
|
18
|
+
* database's actions are recorded as nothing, so Restate's UI shows none of
|
|
19
|
+
* its pages.
|
|
42
20
|
*/
|
|
43
|
-
export const
|
|
44
|
-
'dev.restate.tooling.journal.hidden.names': 'sync',
|
|
45
|
-
'dev.restate.tooling.journal.hidden.name.prefix': 'v22/',
|
|
46
|
-
};
|
|
47
|
-
// The handler options of every handler: explicit recovery, which runs a
|
|
48
|
-
// retried attempt from the start, since a later attempt makes different
|
|
49
|
-
// reads than a replayed journal would have.
|
|
50
|
-
export const recovery = () => restate.internal.explicitRecovery();
|
|
51
|
-
/** What an attempt's session needs of the SDK's context `ctx`. */
|
|
52
|
-
export function host(ctx, shared) {
|
|
53
|
-
const runtime = ctx;
|
|
54
|
-
const exclusive = ctx;
|
|
55
|
-
return {
|
|
56
|
-
shared,
|
|
57
|
-
key: ctx.key,
|
|
58
|
-
invocationEndPromise: runtime.invocationEndPromise,
|
|
59
|
-
defaultSerde: runtime.defaultSerde,
|
|
60
|
-
request: () => ctx.request(),
|
|
61
|
-
get: (name, serde, entry) => ctx.get(name, serde, entry),
|
|
62
|
-
set: (name, value, serde, entry) => exclusive.set(name, value, serde, entry),
|
|
63
|
-
clear: (name, entry) => exclusive.clear(name, entry),
|
|
64
|
-
stateKeys: () => ctx.stateKeys(),
|
|
65
|
-
run: (name, action) => exclusive.run(name, action),
|
|
66
|
-
vm: ctx.vm,
|
|
67
|
-
takeCancellation: ctx.takeCancellation,
|
|
68
|
-
working: workingOf(ctx),
|
|
69
|
-
genericSend: (send) => ctx.genericSend(send),
|
|
70
|
-
};
|
|
71
|
-
}
|
|
21
|
+
export const PROTOCOL_FAMILY = 'EXPLICIT_RECOVERY';
|
|
72
22
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
23
|
+
* What {@link serveSession} needs to run entry `name`, if `definition` is a
|
|
24
|
+
* session object, on an endpoint whose default service options are
|
|
25
|
+
* `defaults`.
|
|
75
26
|
*/
|
|
76
|
-
export function handlerEntry(definition, name) {
|
|
27
|
+
export function handlerEntry(definition, name, defaults = {}) {
|
|
77
28
|
const entry = OBJECT.of(definition)?.entries.get(name);
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
29
|
+
return entry === undefined ? undefined : resolved(entry, defaults);
|
|
30
|
+
}
|
|
31
|
+
function resolved({ view, options: h, objectOptions }, defaults) {
|
|
32
|
+
const o = { ...defaults, ...objectOptions };
|
|
33
|
+
const defaultSerde = (h.serde ?? o.serde ?? restate.serde.json);
|
|
34
|
+
const asTerminalError = h.asTerminalError ?? o.asTerminalError;
|
|
35
|
+
return {
|
|
36
|
+
view,
|
|
37
|
+
explicit: (h.explicitCancellation ?? o.explicitCancellation) === true,
|
|
38
|
+
defaultSerde,
|
|
39
|
+
inputSerde: h.input ?? defaultSerde,
|
|
40
|
+
outputSerde: h.output ?? defaultSerde,
|
|
41
|
+
...(asTerminalError !== undefined ? { asTerminalError } : {}),
|
|
42
|
+
hooks: [...(o.hooks ?? []), ...(h.hooks ?? [])],
|
|
43
|
+
inactivityTimeoutMs: timeoutMs(h.inactivityTimeout ?? o.inactivityTimeout),
|
|
44
|
+
};
|
|
82
45
|
}
|
|
83
|
-
/** Whether `definition` is a session object: it has handlers this package runs. */
|
|
84
46
|
export const isSessionObject = (definition) => OBJECT.of(definition) !== undefined;
|
|
85
|
-
/** A session object's own, on its definition: for {@link invoke} and {@link withStoreWrapper}. */
|
|
86
47
|
const OBJECT = new Link('a session object');
|
|
87
|
-
/**
|
|
88
|
-
* The definition (`sessionObject`'s) of the object whose handler or view
|
|
89
|
-
* `ctx` is the context of: what a library keeps per object lives on it.
|
|
90
|
-
*/
|
|
91
|
-
export const definitionOf = (ctx) => scopeOf(ctx)?.definition;
|
|
92
|
-
/** What `definition`'s attempts get, if it is a session object: for a test's attempts of its own. */
|
|
48
|
+
/** For tests that run attempts without Restate. */
|
|
93
49
|
export const configOf = (definition) => OBJECT.of(definition)?.object.config;
|
|
94
|
-
/**
|
|
95
|
-
* Wrap the stores of `definition`'s attempts with `wrap`: fault injection, in
|
|
96
|
-
* tests. A definition that is no session object has no store: it is left as
|
|
97
|
-
* it is.
|
|
98
|
-
*/
|
|
99
|
-
export function withStoreWrapper(definition, wrapper) {
|
|
100
|
-
const object = OBJECT.of(definition);
|
|
101
|
-
if (object !== undefined)
|
|
102
|
-
object.object.config.wrapStore = wrapper;
|
|
103
|
-
return definition;
|
|
104
|
-
}
|
|
105
|
-
/** The reads of `db`, which apply a library's schema as `db` does (`Schema.ensure`). */
|
|
50
|
+
/** The reads of `db`, keeping its `Schema.ensure` support. */
|
|
106
51
|
function readerOf(db) {
|
|
107
52
|
const reader = {
|
|
108
53
|
query: (sql, params) => db.query(sql, params),
|
|
@@ -112,55 +57,67 @@ function readerOf(db) {
|
|
|
112
57
|
const ensure = ensureOf(db);
|
|
113
58
|
return Object.freeze(ensure ? ensuring(reader, ensure) : reader);
|
|
114
59
|
}
|
|
115
|
-
export function contextOf(
|
|
116
|
-
const
|
|
117
|
-
const
|
|
118
|
-
//
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
60
|
+
export function contextOf(host, db, { view = false, serde } = {}) {
|
|
61
|
+
const { key, request, stop } = host;
|
|
62
|
+
const rpc = rpcOf((call) => host.call(call), serde);
|
|
63
|
+
// An id that is not one throws a TerminalError (400): the VM checks it as Restate parses it.
|
|
64
|
+
const cancel = (invocationId) => host.cancel(invocationId);
|
|
65
|
+
if (view)
|
|
66
|
+
return Object.freeze(HOST.on({ key, request, db: readerOf(db), rpc, cancel }, host));
|
|
67
|
+
const context = {
|
|
68
|
+
key,
|
|
69
|
+
request,
|
|
70
|
+
db,
|
|
71
|
+
rpc,
|
|
72
|
+
send: sendOf((send) => host.send(send), serde),
|
|
73
|
+
cancel,
|
|
74
|
+
working: (fn) => stop.working(fn),
|
|
75
|
+
stoppable: (fn) => stop.stoppable(fn),
|
|
76
|
+
suspendable: (fn) => stop.suspendable(fn),
|
|
77
|
+
span: (name, fn) => (host.driver === undefined ? fn() : host.driver.inSpan(name, fn)),
|
|
78
|
+
};
|
|
79
|
+
return Object.freeze(HOST.on(context, host));
|
|
80
|
+
}
|
|
81
|
+
/** The attempt behind a handler's or a view's context: for {@link openScope} and the protocol's additions below. */
|
|
82
|
+
const HOST = new Link('a session object’s context');
|
|
83
|
+
/**
|
|
84
|
+
* Open a `ctx.stoppable` scope until `scope.release()`, for framework hooks. A
|
|
85
|
+
* `pinned` scope is not paused by `ctx.suspendable`: for a framework whose next
|
|
86
|
+
* attempt would lose the result of work suspended inside it.
|
|
87
|
+
*/
|
|
88
|
+
export function openScope(ctx, { pinned = false } = {}) {
|
|
89
|
+
const host = HOST.of(ctx);
|
|
90
|
+
if (host === undefined || !('working' in ctx))
|
|
91
|
+
throw new TypeError("openScope takes a handler's context");
|
|
92
|
+
return host.stop.open({ stoppable: true, pinned });
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Run `handler`, then end `session`. A handler that fails after the
|
|
96
|
+
* cancellation was delivered fails with `CancelledError`, decided when the
|
|
97
|
+
* handler settles, not after the session is saved.
|
|
98
|
+
*/
|
|
99
|
+
export async function withAttempt(handler, session, stop) {
|
|
100
|
+
let value;
|
|
101
|
+
try {
|
|
102
|
+
value = await handler();
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
return session.end({ error: stop.cancelled ? new restate.CancelledError() : error });
|
|
106
|
+
}
|
|
107
|
+
return session.end({ value });
|
|
133
108
|
}
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
// Not an id (the SDK's parser checks no more): a retry would fail the same way.
|
|
139
|
-
if (!invocationId.startsWith('inv'))
|
|
140
|
-
throw new restate.TerminalError(`not an invocation id: ${invocationId}`);
|
|
141
|
-
ctx.invocation(restate.InvocationIdParser.fromString(invocationId)).cancel();
|
|
142
|
-
};
|
|
143
|
-
/** One attempt of `entry` over `ctx`: its own context and session, which ends with it. */
|
|
144
|
-
function attempt({ fn, view, explicit, object }, ctx, input) {
|
|
145
|
-
const session = new Attempt(host(ctx, view), object.config);
|
|
109
|
+
function attempt(entry, host, input, run) {
|
|
110
|
+
const { fn, view, object } = entry;
|
|
111
|
+
const { defaultSerde: serde } = run;
|
|
112
|
+
const session = new Attempt(host, view, { ...object.config, serde });
|
|
146
113
|
session.openNow();
|
|
147
|
-
const {
|
|
148
|
-
|
|
149
|
-
? contextOf(ctx, session.db, { view: true, definition })
|
|
150
|
-
: contextOf(ctx, session.db, { explicitCancellation: explicit, definition });
|
|
151
|
-
return withAttempt(() => fn(context, input), session);
|
|
114
|
+
const context = view ? contextOf(host, session.db, { view: true, serde }) : contextOf(host, session.db, { serde });
|
|
115
|
+
return withAttempt(async () => fn(context, input), session, host.stop);
|
|
152
116
|
}
|
|
153
117
|
/**
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* `restate.endpoint()`, `restate.serve` and `connect`'s tunnel alike.
|
|
158
|
-
*
|
|
159
|
-
* Reaching here means the endpoint is one the patch does not cover, a fetch
|
|
160
|
-
* endpoint being the one that exists. A session object cannot run on the
|
|
161
|
-
* SDK's journaled VM: it is never replayed, and awaiting two things at once
|
|
162
|
-
* fails the attempt with `awaitNext already pending`. So it is refused, rather
|
|
163
|
-
* than half-served.
|
|
118
|
+
* The SDK handler of an entry, reached only on an endpoint the patch in
|
|
119
|
+
* endpoint.ts does not cover (a fetch endpoint). It refuses: a session object
|
|
120
|
+
* cannot run on the journaled SDK VM.
|
|
164
121
|
*/
|
|
165
122
|
function wrap(objectName, name) {
|
|
166
123
|
return () => {
|
|
@@ -171,19 +128,37 @@ function wrap(objectName, name) {
|
|
|
171
128
|
};
|
|
172
129
|
}
|
|
173
130
|
/**
|
|
174
|
-
* Run
|
|
175
|
-
*
|
|
131
|
+
* Run entry `name` of `definition` for one attempt over `host`: from
|
|
132
|
+
* handler.ts, with its options as {@link handlerEntry} resolved them on the
|
|
133
|
+
* endpoint, or from a test.
|
|
176
134
|
*/
|
|
177
|
-
export function invoke(definition, name,
|
|
135
|
+
export function invoke(definition, name, host, input, run) {
|
|
178
136
|
const entry = OBJECT.of(definition)?.entries.get(name);
|
|
179
137
|
if (entry === undefined)
|
|
180
138
|
throw new Error(`${definition.name}.${name} is no handler or view of a session object`);
|
|
181
|
-
return attempt(entry,
|
|
139
|
+
return attempt(entry, host, input, run ?? resolved(entry, {}));
|
|
182
140
|
}
|
|
183
|
-
/** Whether `value` is a handler of the SDK's already. */
|
|
184
141
|
const isSdkHandler = (value) => Object.getOwnPropertySymbols(value).some((s) => s.description === 'Handler');
|
|
185
|
-
/**
|
|
186
|
-
|
|
142
|
+
/** An inactivity timeout of the SDK's options, in milliseconds. */
|
|
143
|
+
const timeoutMs = (timeout) => timeout === undefined ? undefined : millisOrDurationToMillis(timeout);
|
|
144
|
+
/**
|
|
145
|
+
* The SDK options a session object refuses, where `options` sets them: the
|
|
146
|
+
* state options, which it sets itself (the database owns the state), and
|
|
147
|
+
* `onJournalMismatchErrors`, which has nothing to act on (an attempt is never
|
|
148
|
+
* replayed, so no journal mismatches).
|
|
149
|
+
*/
|
|
150
|
+
export function refuseOptions(where, options) {
|
|
151
|
+
if (options === undefined)
|
|
152
|
+
return;
|
|
153
|
+
if ('state' in options || 'enableLazyState' in options) {
|
|
154
|
+
throw new Error(`${where}: a session object sets its state options itself: leave out state and enableLazyState`);
|
|
155
|
+
}
|
|
156
|
+
if ('onJournalMismatchErrors' in options) {
|
|
157
|
+
throw new Error(`${where}: onJournalMismatchErrors is not supported for session objects: their attempts are never replayed, ` +
|
|
158
|
+
'so there is no journal to mismatch');
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function handlerOf(objectName, name, entry, view, object, objectOptions) {
|
|
187
162
|
const [fn, options] = typeof entry === 'function'
|
|
188
163
|
? [entry, {}]
|
|
189
164
|
: typeof entry === 'object' && entry !== null && typeof entry.handler === 'function'
|
|
@@ -198,18 +173,9 @@ function handlerOf(objectName, name, entry, view, object) {
|
|
|
198
173
|
throw new TypeError(`${objectName}.${name} is an SDK handler: a session object's handlers are functions of its context. ` +
|
|
199
174
|
'Put journaled work in a restate.object, service or workflow, and call it with ctx.rpc');
|
|
200
175
|
}
|
|
201
|
-
|
|
202
|
-
const
|
|
203
|
-
const
|
|
204
|
-
const made = {
|
|
205
|
-
fn: fn,
|
|
206
|
-
view,
|
|
207
|
-
explicit,
|
|
208
|
-
inputSerde: serdes.input ?? restate.serde.json,
|
|
209
|
-
outputSerde: serdes.output ?? restate.serde.json,
|
|
210
|
-
asTerminalError: serdes.asTerminalError,
|
|
211
|
-
object,
|
|
212
|
-
};
|
|
176
|
+
refuseOptions(`${objectName}.${name}`, options);
|
|
177
|
+
const opts = { ...options };
|
|
178
|
+
const made = { fn: fn, view, options: opts, objectOptions, object };
|
|
213
179
|
const sdk = wrap(objectName, name);
|
|
214
180
|
const handler = view ? restate.handlers.object.shared(opts, sdk) : restate.handlers.object.exclusive(opts, sdk);
|
|
215
181
|
return { handler, entry: made };
|
|
@@ -218,30 +184,36 @@ function handlerOf(objectName, name, entry, view, object) {
|
|
|
218
184
|
* A virtual object whose state is a SQL database per key.
|
|
219
185
|
*
|
|
220
186
|
* - `schema`: the steps that make each key's database, in order, applied
|
|
221
|
-
* once per key
|
|
222
|
-
*
|
|
223
|
-
* - `
|
|
224
|
-
*
|
|
225
|
-
* - `views`: they run beside the handlers, each with a {@link ViewContext}:
|
|
226
|
-
* they read, and write nothing.
|
|
187
|
+
* once per key. A step that ran never changes: a change is a new step.
|
|
188
|
+
* - `handlers`: run one at a time per key, each with a {@link SessionContext}.
|
|
189
|
+
* - `views`: run beside the handlers, each with a {@link ViewContext}. They
|
|
190
|
+
* only read.
|
|
227
191
|
*
|
|
228
|
-
* Each is a function, or `{ handler, ...options }` with
|
|
192
|
+
* Each entry is a function, or `{ handler, ...options }` with SDK handler
|
|
229
193
|
* options. A name is a handler or a view, not both. `description`,
|
|
230
|
-
* `metadata` and `options` are the SDK
|
|
194
|
+
* `metadata` and `options` are the SDK object fields.
|
|
195
|
+
*
|
|
196
|
+
* const notes = restate.sessionObject({
|
|
197
|
+
* name: 'notes',
|
|
198
|
+
* schema: ['CREATE TABLE notes (text TEXT NOT NULL)'],
|
|
199
|
+
* handlers: {
|
|
200
|
+
* add: async (ctx, text: string) => {
|
|
201
|
+
* await ctx.db.execute('INSERT INTO notes (text) VALUES (?)', [text]);
|
|
202
|
+
* },
|
|
203
|
+
* },
|
|
204
|
+
* views: {
|
|
205
|
+
* list: async (ctx) => ctx.db.query<{ text: string }>('SELECT text FROM notes'),
|
|
206
|
+
* },
|
|
207
|
+
* });
|
|
231
208
|
*/
|
|
232
209
|
export function sessionObject(definition) {
|
|
233
|
-
//
|
|
234
|
-
// invocations to the explicit recovery VM (`endpoint.ts`). Installed here
|
|
235
|
-
// rather than on import: the package declares `sideEffects: false`.
|
|
210
|
+
// Here rather than on import, because the package declares `sideEffects: false` (see endpoint.ts).
|
|
236
211
|
patchEndpoint();
|
|
237
212
|
const { name, schema, handlers = {}, views = {}, description, metadata, options } = definition;
|
|
238
213
|
const both = Object.keys(handlers).filter((key) => key in views);
|
|
239
214
|
if (both.length > 0)
|
|
240
215
|
throw new Error(`${name}: ${both.join(', ')} is a handler and a view: name one otherwise`);
|
|
241
|
-
|
|
242
|
-
if (options && ('state' in options || 'enableLazyState' in options)) {
|
|
243
|
-
throw new Error(`${name}: a session object sets its state options itself: leave out state and enableLazyState`);
|
|
244
|
-
}
|
|
216
|
+
refuseOptions(name, options);
|
|
245
217
|
const object = { config: { schema: schema ? new Schema(name, schema) : undefined } };
|
|
246
218
|
const sdkHandlers = {};
|
|
247
219
|
const entries = new Map();
|
|
@@ -250,7 +222,7 @@ export function sessionObject(definition) {
|
|
|
250
222
|
[true, views],
|
|
251
223
|
]) {
|
|
252
224
|
for (const [key, value] of Object.entries(map)) {
|
|
253
|
-
const { handler, entry } = handlerOf(name, key, value, view, object);
|
|
225
|
+
const { handler, entry } = handlerOf(name, key, value, view, object, options);
|
|
254
226
|
sdkHandlers[key] = handler;
|
|
255
227
|
entries.set(key, entry);
|
|
256
228
|
}
|
|
@@ -259,91 +231,73 @@ export function sessionObject(definition) {
|
|
|
259
231
|
name,
|
|
260
232
|
description,
|
|
261
233
|
handlers: sdkHandlers,
|
|
262
|
-
metadata
|
|
234
|
+
...(metadata !== undefined ? { metadata } : {}),
|
|
263
235
|
options: { ...sqlOptions, ...options },
|
|
264
236
|
});
|
|
265
|
-
object.definition = made;
|
|
266
237
|
OBJECT.on(made, { object, entries });
|
|
267
238
|
return made;
|
|
268
239
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
240
|
+
// --- What the explicit recovery protocol adds, for libraries (provisional:
|
|
241
|
+
// the user-facing shape is still to design). Each works from a handler's or a
|
|
242
|
+
// view's context of an attempt on the VM, and throws a TerminalError from any
|
|
243
|
+
// other. `readSignal` is a wait on Restate as a `ctx.rpc` is: an owed
|
|
244
|
+
// cancellation fails it before it is made, and one that arrives while it waits
|
|
245
|
+
// rejects it (see stop.ts). The invocation state's reads (`get`, `keys`) and
|
|
246
|
+
// `flush` are the session's own waits: a cancellation neither refuses nor
|
|
247
|
+
// rejects them.
|
|
248
|
+
/** The VM's driver of the attempt whose context `ctx` is. */
|
|
249
|
+
function driverOf(ctx, of) {
|
|
250
|
+
const driver = HOST.of(ctx)?.driver;
|
|
251
|
+
if (driver === undefined)
|
|
252
|
+
throw new restate.TerminalError(`${of} takes the context of an attempt served by Restate`);
|
|
253
|
+
return driver;
|
|
275
254
|
}
|
|
276
|
-
/**
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
* `explicitCancellation` whose `cancelCalls` cancels the calls of its
|
|
281
|
-
* attempt cancels this one too, as a send's would not be.
|
|
282
|
-
*
|
|
283
|
-
* Its result is left as it comes. A call of a workflow's `run` whose run of
|
|
284
|
-
* that id started already fails ("the workflow method was already
|
|
285
|
-
* invoked"), whatever its idempotency key, but its invocation id is that
|
|
286
|
-
* run's: so a new attempt that calls again gets the id of the run an
|
|
287
|
-
* earlier one started, and its `cancelCalls` cancels that run.
|
|
288
|
-
*/
|
|
289
|
-
export async function start(ctx, target) {
|
|
290
|
-
const { service, key, handler, input, inputSerde, idempotencyKey, headers } = target;
|
|
291
|
-
const called = scopeOfHandler(ctx, 'start').sdk.genericCall({
|
|
292
|
-
service,
|
|
293
|
-
method: handler,
|
|
294
|
-
key,
|
|
295
|
-
parameter: input,
|
|
296
|
-
inputSerde: inputSerde ?? restate.serde.json,
|
|
297
|
-
outputSerde: restate.serde.binary,
|
|
298
|
-
idempotencyKey,
|
|
299
|
-
headers,
|
|
300
|
-
});
|
|
301
|
-
return String(await called.invocationId);
|
|
255
|
+
/** Throws a TerminalError if `ctx` is a view's: a view writes and sends nothing. */
|
|
256
|
+
function refusedInView(ctx, of) {
|
|
257
|
+
if (!('working' in ctx))
|
|
258
|
+
throw new restate.TerminalError(`${of} takes a handler's context: a view writes and sends nothing`);
|
|
302
259
|
}
|
|
303
260
|
/**
|
|
304
|
-
* The
|
|
305
|
-
*
|
|
306
|
-
* when the attempt ends: the invocation is its own.
|
|
261
|
+
* The invocation state of the invocation whose context `ctx` is: see
|
|
262
|
+
* {@link InvocationState}. A view's reads it; its writes throw a TerminalError.
|
|
307
263
|
*/
|
|
308
|
-
export function
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
const
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
264
|
+
export function invocationState(ctx) {
|
|
265
|
+
const view = !('working' in ctx);
|
|
266
|
+
const writes = (of) => {
|
|
267
|
+
if (view)
|
|
268
|
+
refusedInView(ctx, `invocationState(ctx).${of}`);
|
|
269
|
+
};
|
|
270
|
+
const driver = driverOf(ctx, 'invocationState');
|
|
271
|
+
return {
|
|
272
|
+
get: (key) => driver.stateGet('invocation', key),
|
|
273
|
+
set: (key, value) => (writes('set'), driver.stateSet('invocation', key, value)),
|
|
274
|
+
clear: (key) => (writes('clear'), driver.stateClear('invocation', key)),
|
|
275
|
+
clearAll: () => (writes('clearAll'), driver.stateClearAll('invocation')),
|
|
276
|
+
keys: () => driver.stateKeys('invocation'),
|
|
277
|
+
};
|
|
319
278
|
}
|
|
320
279
|
/**
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
* (a heartbeat, in `ctx.working`, tells Restate the attempt makes progress
|
|
328
|
-
* instead). The cancel signal comes while Restate keeps
|
|
329
|
-
* the invocation's input open. Once Restate closed it (the handler sent and
|
|
330
|
-
* got nothing for the inactivity timeout), a cancellation resolves this at
|
|
331
|
-
* the handler's next await of Restate's, which suspends the invocation and
|
|
332
|
-
* resumes it at once, or not at all if it awaits nothing more.
|
|
333
|
-
*
|
|
334
|
-
* So it is not a way to park a handler until it is cancelled. One that
|
|
335
|
-
* awaits this and nothing else is not suspended: its attempt is shut down at
|
|
336
|
-
* the inactivity timeout and started again at once, and so on until the
|
|
337
|
-
* cancellation comes.
|
|
280
|
+
* The `index`-th signal named `name` (from 0) the invocation of `ctx`
|
|
281
|
+
* received: its payload, `null` if it carries nothing, or a TerminalError if
|
|
282
|
+
* it carries a failure. It waits for it: an attempt shut down meanwhile
|
|
283
|
+
* suspends, and the signal's arrival wakes the invocation. The caller keeps
|
|
284
|
+
* the index. A signal is sent through Restate's admin API
|
|
285
|
+
* (`POST /invocations/<id>/signals/<name>`) or {@link sendSignal}.
|
|
338
286
|
*/
|
|
339
|
-
export
|
|
340
|
-
|
|
341
|
-
}
|
|
287
|
+
export function readSignal(ctx, name, index = 0) {
|
|
288
|
+
return driverOf(ctx, 'readSignal').signalRead(name, index);
|
|
289
|
+
}
|
|
342
290
|
/**
|
|
343
|
-
*
|
|
344
|
-
*
|
|
291
|
+
* Send the signal `name` to invocation `invocationId`, with `value`, a
|
|
292
|
+
* failure, or nothing. An `invocationId` that is not an invocation id throws a
|
|
293
|
+
* `TerminalError` (400): nothing is sent, and the handler may catch it.
|
|
345
294
|
*/
|
|
346
|
-
export
|
|
347
|
-
|
|
348
|
-
|
|
295
|
+
export function sendSignal(ctx, invocationId, name, value) {
|
|
296
|
+
refusedInView(ctx, 'sendSignal');
|
|
297
|
+
driverOf(ctx, 'sendSignal').signalSend(invocationId, name, value);
|
|
298
|
+
}
|
|
299
|
+
/** Resolves once every action the attempt of `ctx` made before it is applied by Restate. */
|
|
300
|
+
export function flush(ctx) {
|
|
301
|
+
return driverOf(ctx, 'flush').flushActions();
|
|
302
|
+
}
|
|
349
303
|
//# sourceMappingURL=object.js.map
|
package/dist/object.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.js","sourceRoot":"","sources":["../src/object.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,2EAA2E;AAC3E,4EAA4E;AAC5E,gDAAgD;AAChD,EAAE;AACF,0CAA0C;AAC1C,qBAAqB;AACrB,2DAA2D;AAC3D,kBAAkB;AAClB,4CAA4C;AAC5C,+EAA+E;AAC/E,WAAW;AACX,SAAS;AACT,eAAe;AACf,uFAAuF;AACvF,SAAS;AACT,QAAQ;AACR,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAA8B,KAAK,EAAa,MAAM,EAAe,MAAM,YAAY,CAAC;AAE/F,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAa,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AIG;AACH,MAAM,UAAU,UAAU,CACxB,GAAiC,EACjC,YAAoB,EACpB,IAAY,EACZ,KAA0C;IAE1C,aAAa,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,KAAK,CAAC,GAAiC;IACrD,OAAO,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,YAAY,EAAE,CAAC;AAC/C,CAAC"}
|
package/dist/platform.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** The platforms built, as their packages name them. */
|
|
2
1
|
export declare const PLATFORMS: readonly ['linux-x64-gnu', 'linux-arm64-gnu', 'darwin-arm64'];
|
|
3
2
|
/** This machine's platform, as a package of the addon would name it. */
|
|
4
3
|
export declare function platform(): string;
|
package/dist/platform.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,YAAI,eAAe,EAAE,iBAAiB,EAAE,cAAc,CAAU,CAAC;AAEvF,wEAAwE;AACxE,wBAAgB,QAAQ,IAAI,MAAM,CAIjC"}
|