@agoric/vow 0.2.1-upgrade-23-dev-7007b60.0.7007b60 → 0.3.0-u23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/vow",
3
- "version": "0.2.1-upgrade-23-dev-7007b60.0.7007b60",
3
+ "version": "0.3.0-u23.0",
4
4
  "description": "Remote (shortening and disconnection-tolerant) Promise-likes",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -20,8 +20,8 @@
20
20
  "lint:types": "yarn run -T tsc"
21
21
  },
22
22
  "dependencies": {
23
- "@agoric/base-zone": "0.2.1-upgrade-23-dev-7007b60.0.7007b60",
24
- "@agoric/internal": "0.4.1-upgrade-23-dev-7007b60.0.7007b60",
23
+ "@agoric/base-zone": "0.3.0-u23.0",
24
+ "@agoric/internal": "0.5.0-u23.0",
25
25
  "@endo/env-options": "^1.1.11",
26
26
  "@endo/errors": "^1.2.13",
27
27
  "@endo/eventual-send": "^1.3.4",
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@agoric/internal": "workspace:*",
34
- "@agoric/swingset-vat": "0.33.1-upgrade-23-dev-7007b60.0.7007b60",
35
- "@agoric/zone": "0.3.1-upgrade-23-dev-7007b60.0.7007b60",
34
+ "@agoric/swingset-vat": "0.34.0-u23.0",
35
+ "@agoric/zone": "0.4.0-u23.0",
36
36
  "@endo/far": "^1.1.14",
37
37
  "@endo/init": "^1.1.12",
38
38
  "ava": "^6.4.1",
@@ -58,5 +58,5 @@
58
58
  "typeCoverage": {
59
59
  "atLeast": 92.06
60
60
  },
61
- "gitHead": "7007b604e77880d419321a757c4b719fde7d9ff1"
61
+ "gitHead": "1147be15b0704de17204d04e2407fa3192b98a1c"
62
62
  }
package/src/E.d.ts DELETED
@@ -1,104 +0,0 @@
1
- export default makeE;
2
- export type Callable = (...args: unknown[]) => any;
3
- export type EProxy = ReturnType<typeof makeE>;
4
- /**
5
- * `DataOnly<T>` means to return a record type `T2` consisting only of
6
- * properties that are *not* functions.
7
- */
8
- export type DataOnly<T> = Omit<T, FilteredKeys<T, Callable>>;
9
- export type ECallable<T extends Callable> = ReturnType<T> extends Promise<EUnwrap<ReturnType<T>>> ? T : (...args: Parameters<T>) => Promise<EUnwrap<ReturnType<T>>>;
10
- export type EMethods<T> = { readonly [P in keyof T]: T[P] extends Callable ? ECallable<T[P]> : never; };
11
- export type EGetters<T> = { readonly [P in keyof T]: T[P] extends PromiseLike<any> ? T[P] : Promise<Awaited<T[P]>>; };
12
- export type ESendOnlyCallable<T extends Callable> = (...args: Parameters<T>) => Promise<void>;
13
- export type ESendOnlyMethods<T> = { readonly [P in keyof T]: T[P] extends Callable ? ESendOnlyCallable<T[P]> : never; };
14
- export type ESendOnlyCallableOrMethods<T> = (T extends Callable ? ESendOnlyCallable<T> & ESendOnlyMethods<Required<T>> : ESendOnlyMethods<Required<T>>);
15
- export type ECallableOrMethods<T> = (T extends Callable ? ECallable<T> & EMethods<Required<T>> : EMethods<Required<T>>);
16
- /**
17
- * Return a union of property names/symbols/numbers P for which the record element T[P]'s type extends U.
18
- *
19
- * Given const x = { a: 123, b: 'hello', c: 42, 49: () => {}, 53: 67 },
20
- *
21
- * FilteredKeys<typeof x, number> is the type 'a' | 'c' | 53.
22
- * FilteredKeys<typeof x, string> is the type 'b'.
23
- * FilteredKeys<typeof x, 42 | 67> is the type 'c' | 53.
24
- * FilteredKeys<typeof x, boolean> is the type never.
25
- */
26
- export type FilteredKeys<T, U> = { [P in keyof T]: T[P] extends U ? P : never; }[keyof T];
27
- /**
28
- * `PickCallable<T>` means to return a single root callable or a record type
29
- * consisting only of properties that are functions.
30
- */
31
- export type PickCallable<T> = (T extends Callable ? (...args: Parameters<T>) => ReturnType<T> : FilteredKeys<T, Callable> extends never ? never : Pick<T, FilteredKeys<T, Callable>>);
32
- /**
33
- * `RemoteFunctions<T>` means to return the functions and properties that are remotely callable.
34
- */
35
- export type RemoteFunctions<T> = (EUnwrap<T> extends RemotableBrand<any, infer R> ? PickCallable<R> : PickCallable<EUnwrap<T>>);
36
- export type LocalRecord<T> = (T extends RemotableBrand<infer L, any> ? L : EUnwrap<T>);
37
- /**
38
- * Type for an object that must only be invoked with E. It supports a given
39
- * interface but declares all the functions as asyncable.
40
- */
41
- export type EOnly<T> = (T extends Callable ? (...args: Parameters<T>) => ERef<Awaited<EOnly<ReturnType<T>>>> : T extends Record<PropertyKey, Callable> ? { [K in keyof T]: T[K] extends Callable ? (...args: Parameters<T[K]>) => ERef<Awaited<EOnly<ReturnType<T[K]>>>> : T[K]; } : T);
42
- /**
43
- * @template [A={}]
44
- * @param {HandledPromiseConstructor} HandledPromise
45
- * @param {object} [powers]
46
- * @param {<T>(x: T) => Promise<EUnwrap<T>>} [powers.unwrap]
47
- * @param {A} [powers.additional]
48
- */
49
- declare function makeE<A = {}>(HandledPromise: HandledPromiseConstructor, powers?: {
50
- unwrap?: (<T>(x: T) => Promise<EUnwrap<T>>) | undefined;
51
- additional?: A | undefined;
52
- }): (<T>(x: T) => ECallableOrMethods<RemoteFunctions<T>>) & {
53
- /**
54
- * E.get(x) returns a proxy on which you can get arbitrary properties.
55
- * Each of these properties returns a promise for the property. The promise
56
- * value will be the property fetched from whatever 'x' designates (or
57
- * resolves to) in a future turn, not this one.
58
- *
59
- * @template T
60
- * @param {T} x target for property get
61
- * @returns {EGetters<LocalRecord<T>>} property get proxy
62
- * @readonly
63
- */
64
- readonly get: <T>(x: T) => EGetters<LocalRecord<T>>;
65
- /**
66
- * E.resolve(x) converts x to a handled promise. It is
67
- * shorthand for HandledPromise.resolve(x)
68
- *
69
- * @template T
70
- * @param {T} x value to convert to a handled promise
71
- * @returns {Promise<Awaited<T>>} handled promise for x
72
- * @readonly
73
- */
74
- readonly resolve: <T>(x: T) => Promise<Awaited<T>>;
75
- /**
76
- * E.sendOnly returns a proxy similar to E, but for which the results
77
- * are ignored (undefined is returned).
78
- *
79
- * @template T
80
- * @param {T} x target for method/function call
81
- * @returns {ESendOnlyCallableOrMethods<RemoteFunctions<T>>} method/function call proxy
82
- * @readonly
83
- */
84
- readonly sendOnly: <T>(x: T) => ESendOnlyCallableOrMethods<RemoteFunctions<T>>;
85
- /**
86
- * E.when(x, res, rej) is equivalent to
87
- * unwrap(x).then(onfulfilled, onrejected)
88
- *
89
- * @template T
90
- * @template [TResult1=EUnwrap<T>]
91
- * @template [TResult2=never]
92
- * @param {ERef<T>} x value to convert to a handled promise
93
- * @param {(value: EUnwrap<T>) => ERef<TResult1>} [onfulfilled]
94
- * @param {(reason: any) => ERef<TResult2>} [onrejected]
95
- * @returns {Promise<TResult1 | TResult2>}
96
- * @readonly
97
- */
98
- readonly when: <T, TResult1 = EUnwrap<T>, TResult2 = never>(x: ERef<T>, onfulfilled?: (value: EUnwrap<T>) => ERef<TResult1>, onrejected?: (reason: any) => ERef<TResult2>) => Promise<TResult1 | TResult2>;
99
- } & A;
100
- import type { EUnwrap } from './types.js';
101
- import type { RemotableBrand } from '@endo/eventual-send';
102
- import type { ERef } from '@endo/far';
103
- import type { HandledPromiseConstructor } from '@endo/eventual-send';
104
- //# sourceMappingURL=E.d.ts.map
package/src/E.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"E.d.ts","sourceRoot":"","sources":["E.js"],"names":[],"mappings":";uBAiCc,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,GAAG;qBAuR3B,UAAU,CAAC,OAAO,KAAK,CAAC;;;;;qBAMzB,CAAC,IACD,IAAI,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;sBAIvB,CAAC,SAAX,QAAS,IACV,UAAU,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GACzD,CAAC,GACD,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,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C,QAAQ,CAAC,CAAC,CAAC;IACrB,UAAU;CAAC,KAed,CAAC,KACH,CAAC,KACC,kBAAkB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAOjD;;;;;;;;;;OAUG;mBAJU,CAAC,KACH,CAAC,KACC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAWrC;;;;;;;;OAQG;uBAJU,CAAC,KACH,CAAC,KACC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAKhC;;;;;;;;OAQG;wBAJU,CAAC,KACH,CAAC,KACC,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAW3D;;;;;;;;;;;;OAYG;oBARU,CAAC,EACA,QAAQ,eACR,QAAQ,aACX,KAAK,CAAC,CAAC,gBACP,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAC,eACrC,CAAC,MAAM,EAAE,GAAG,KAAK,KAAK,QAAQ,CAAC,KAC7B,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;MAgBhD;6BA7RyB,YAAY;oCAQwB,qBAAqB;0BAT5D,WAAW;+CAS4B,qBAAqB"}
package/src/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from "../vat.js";
2
- export * from "./types-index.js";
3
- export { default as makeE } from "./E.js";
4
- export { VowShape, toPassableCap } from "./vow-utils.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
1
- export function makeMessageBreakpointTester(optionName: string): MessageBreakpointTester | undefined;
2
- /**
3
- * A star `'*'` matches any recipient. Otherwise, the string is
4
- * matched against the value of a recipient's `@@toStringTag`
5
- * after stripping out any leading `'Alleged: '` or `'DebugName: '`
6
- * prefix. For objects defined with `Far` this is the first argument,
7
- * known as the `farName`. For exos, this is the tag.
8
- */
9
- export type MatchStringTag = string | "*";
10
- /**
11
- * A star `'*'` matches any method name. Otherwise, the string is
12
- * matched against the method name. Currently, this is only an exact match.
13
- * However, beware that we may introduce a string syntax for
14
- * symbol method names.
15
- */
16
- export type MatchMethodName = string | "*";
17
- /**
18
- * A star `'*'` will always breakpoint. Otherwise, the string
19
- * must be a non-negative integer. Once that is zero, always breakpoint.
20
- * Otherwise decrement by one each time it matches until it reaches zero.
21
- * In other words, the countdown represents the number of
22
- * breakpoint occurrences to skip before actually breakpointing.
23
- */
24
- export type MatchCountdown = number | "*";
25
- /**
26
- * This is the external JSON representation, in which
27
- * - the outer property name is the class-like tag or '*',
28
- * - the inner property name is the method name or '*',
29
- * - the value is a non-negative integer countdown or '*'.
30
- */
31
- export type MessageBreakpoints = Record<MatchStringTag, Record<MatchMethodName, MatchCountdown>>;
32
- /**
33
- * This is the internal JSON representation, in which
34
- * - the outer property name is the method name or '*',
35
- * - the inner property name is the class-like tag or '*',
36
- * - the value is a non-negative integer countdown or '*'.
37
- */
38
- export type BreakpointTable = Record<MatchMethodName, Record<MatchStringTag, MatchCountdown>>;
39
- export type MessageBreakpointTester = {
40
- getBreakpoints: () => MessageBreakpoints;
41
- setBreakpoints: (newBreakpoints?: MessageBreakpoints) => void;
42
- shouldBreakpoint: (recipient: object, methodName: string | symbol | undefined) => boolean;
43
- };
44
- //# sourceMappingURL=message-breakpoints.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-breakpoints.d.ts","sourceRoot":"","sources":["message-breakpoints.js"],"names":[],"mappings":"AA0FO,wDAHI,MAAM,GACJ,uBAAuB,GAAG,SAAS,CA0F/C;;;;;;;;6BA1KY,MAAM,GAAG,GAAG;;;;;;;8BAQZ,MAAM,GAAG,GAAG;;;;;;;;6BAOZ,MAAM,GAAG,GAAG;;;;;;;iCAcZ,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC;;;;;;;8BAS/D,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;;oBAK9D,MAAM,kBAAkB;oBACxB,CAAC,cAAc,CAAC,EAAE,kBAAkB,KAAK,IAAI;sBAC7C,CACT,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,KACpC,OAAO"}
@@ -1,15 +0,0 @@
1
- export function prepareVowRejectionTracker(zone: Zone): import("@endo/exo").Guarded<{
2
- /**
3
- * @param {PassableCap} vowCap
4
- */
5
- handle(vowCap: PassableCap): void;
6
- /**
7
- * @param {PassableCap} vowCap
8
- * @param {any} reason
9
- */
10
- reject(vowCap: PassableCap, reason: any): void;
11
- }>;
12
- export type VowRejectionTracker = ReturnType<typeof prepareVowRejectionTracker>;
13
- import type { Zone } from '@agoric/base-zone';
14
- import type { PassableCap } from '@endo/pass-style';
15
- //# sourceMappingURL=rejection-tracker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rejection-tracker.d.ts","sourceRoot":"","sources":["rejection-tracker.js"],"names":[],"mappings":"AA4BO,iDADK,IAAI;IA4BV;;OAEG;mBADQ,WAAW;IAetB;;;OAGG;mBAFQ,WAAW,UACX,GAAG;GA8BnB;kCAEa,UAAU,CAAC,OAAO,0BAA0B,CAAC;0BA/FpC,mBAAmB;iCAFZ,kBAAkB"}
@@ -1,46 +0,0 @@
1
- export function prepareRetryableTools(outerZone: Zone, outerOptions: PreparationOptions): {
2
- prepareRetryableFlowKit: (zone: Zone, tag: string, retryableFunc: RetryableFunc) => (activationArgs: any) => import("@endo/exo").GuardedKit<{
3
- flow: {
4
- /**
5
- * Calls the retryable function, either for the initial run or when
6
- * the result of the previous run fails with a retryable reason.
7
- */
8
- restart(): void;
9
- getOutcome(): Vow<any>;
10
- };
11
- resultWatcher: {
12
- onFulfilled(value: any, runId: any): void;
13
- onRejected(reason: any, runId: any): void;
14
- };
15
- }>;
16
- adminRetryableFlow: import("@endo/exo").Guarded<{
17
- /**
18
- * @param {Vow} outcomeVow
19
- */
20
- getFlowForOutcomeVow(outcomeVow: Vow): import("@endo/exo").Guarded<{
21
- /**
22
- * Calls the retryable function, either for the initial run or when
23
- * the result of the previous run fails with a retryable reason.
24
- */
25
- restart(): void;
26
- getOutcome(): Vow<any>;
27
- }>;
28
- }>;
29
- retryable: import("./types.js").RetryableTool;
30
- };
31
- export type PreparationOptions = {
32
- makeVowKit: () => VowKit<any>;
33
- isRetryableReason: IsRetryableReason;
34
- };
35
- export type RetryableFunc = (...args: Passable[]) => Promise<any>;
36
- export type RetryableTools = ReturnType<typeof prepareRetryableTools>;
37
- export type AdminRetryableFlow = RetryableTools["adminRetryableFlow"];
38
- export type MakeRetryableFlowKit = ReturnType<RetryableTools["prepareRetryableFlowKit"]>;
39
- export type RetryableFlowKit = ReturnType<MakeRetryableFlowKit>;
40
- export type RetryableFlow = RetryableFlowKit["flow"];
41
- import type { Zone } from '@agoric/base-zone';
42
- import type { Vow } from './types.js';
43
- import type { VowKit } from './types.js';
44
- import type { IsRetryableReason } from './types.js';
45
- import type { Passable } from '@endo/pass-style';
46
- //# sourceMappingURL=retryable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"retryable.d.ts","sourceRoot":"","sources":["retryable.js"],"names":[],"mappings":"AAwCO,iDAHI,IAAI,gBACJ,kBAAkB;oCAoBhB,IAAI,OACJ,MAAM,iBACN,aAAa;;YAsBhB;;;eAGG;;;;;;;;;;QAuGP;;WAEG;yCADQ,GAAG;YA3GV;;;eAGG;;;;;;EAqHZ;;gBA5La,MAAM,OAAO,GAAG,CAAC;uBACjB,iBAAiB;;4BAIlB,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC;6BA2LrC,UAAU,CAAC,OAAO,qBAAqB,CAAC;iCAIxC,cAAc,CAAC,oBAAoB,CAAC;mCAIpC,UAAU,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAC;+BAIrD,UAAU,CAAC,oBAAoB,CAAC;4BAIhC,gBAAgB,CAAC,MAAM,CAAC;0BAvNd,mBAAmB;yBACiB,YAAY;4BAAZ,YAAY;uCAAZ,YAAY;8BAC/B,kBAAkB"}
package/src/tools.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export function prepareBasicVowTools(zone: Zone, powers?: {
2
- isRetryableReason?: IsRetryableReason | undefined;
3
- }): VowTools;
4
- import type { Zone } from '@agoric/base-zone';
5
- import type { IsRetryableReason } from './types.js';
6
- import type { VowTools } from './types.js';
7
- //# sourceMappingURL=tools.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["tools.js"],"names":[],"mappings":"AAwBO,2CALI,IAAI,WAEZ;IAAmC,iBAAiB;CACpD,GAAU,QAAQ,CAwEpB;0BApFsB,mBAAmB;uCAEuC,YAAY;8BAAZ,YAAY"}
@@ -1,7 +0,0 @@
1
- export function trackTurns<T extends TurnStarterFn[]>(funcs: T): T;
2
- /**
3
- * An optional function that is not this-sensitive, expected to be called at
4
- * bottom of stack to start a new turn.
5
- */
6
- export type TurnStarterFn = ((...args: any[]) => any) | undefined;
7
- //# sourceMappingURL=track-turns.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"track-turns.d.ts","sourceRoot":"","sources":["track-turns.js"],"names":[],"mappings":"AA2FO,2BAJwB,CAAC,SAAlB,aAAa,EAAG,SACnB,CAAC,GACC,CAAC,CAkBb;;;;;4BAMY,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,GAAG,SAAS"}
package/src/types.d.ts DELETED
@@ -1,137 +0,0 @@
1
- import type { Remote } from '@agoric/internal';
2
- import type { Zone } from '@agoric/zone';
3
- import type { ERef } from '@endo/far';
4
- import type { CopyTagged, RemotableObject } from '@endo/pass-style';
5
- export type { ERef };
6
- /**
7
- * Return truthy if a rejection reason should result in a retry.
8
- */
9
- export type IsRetryableReason = (reason: any, priorRetryValue: any) => any;
10
- /**
11
- * Types that are conceptually similar to Promise<F> in that they wrap a fulfilled type.
12
- */
13
- export type VowLike<F> = Promise<F> | PromiseLike<F> | Vow<F>;
14
- /**
15
- * Extract the final fulfilment type from a chain of VowLikes.
16
- */
17
- export type Fulfilled<T> = T extends VowLike<infer F> ? Fulfilled<F> : T;
18
- /**
19
- * Return type of a function that may
20
- * return a promise or a vow.
21
- */
22
- export type PromiseVow<T> = Promise<T | Vow<T>>;
23
- /**
24
- * Eventually a value T or Vow for it.
25
- */
26
- export type EVow<T> = ERef<T | Vow<T>>;
27
- /**
28
- * Follow the chain of vow shortening to the end, returning the final value.
29
- * This is used within E, so we must narrow the type to its remote form.
30
- */
31
- export type EUnwrap<T> = Fulfilled<T>;
32
- /**
33
- * The first version of the vow implementation
34
- * object. CAVEAT: These methods must never be changed or added to, to provide
35
- * forward/backward compatibility. Create a new object and bump its version
36
- * number instead.
37
- */
38
- export type VowPayloadV0<T = any> = {
39
- /**
40
- * Attempt to unwrap all vows in this
41
- * promise chain, returning a promise for the final value. A rejection may
42
- * indicate a temporary routing failure requiring a retry, otherwise that the
43
- * decider of the terminal promise rejected it.
44
- */
45
- shorten: () => Promise<T>;
46
- };
47
- export type VowPayload<T = any> = {
48
- vowV0: RemotableObject & Remote<VowPayloadV0<T>>;
49
- };
50
- /**
51
- * Vows are objects that represent promises that can be stored durably.
52
- */
53
- export type Vow<T = any> = CopyTagged<'Vow', VowPayload<T>>;
54
- export type VowKit<T = any> = {
55
- vow: Vow<T>;
56
- resolver: VowResolver<T>;
57
- };
58
- export type VowResolver<T = any> = {
59
- resolve(value?: T | PromiseVow<T>): void;
60
- reject(reason?: any): void;
61
- };
62
- export type Watcher<T = any, TResult1 = T, TResult2 = never, C extends any[] = any[]> = {
63
- onFulfilled?: ((value: T, ...args: C) => Vow<TResult1> | PromiseVow<TResult1> | TResult1) | undefined;
64
- onRejected?: ((reason: any, ...args: C) => Vow<TResult2> | PromiseVow<TResult2> | TResult2) | undefined;
65
- };
66
- /**
67
- * Converts a vow or promise to a promise, ensuring proper handling of ephemeral promises.
68
- */
69
- export type AsPromiseFunction<T = any, TResult1 = T, TResult2 = never, C extends any[] = any[]> = (specimenP: ERef<T | Vow<T>>, watcher?: Watcher<T, TResult1, TResult2, C> | undefined, watcherArgs?: C | undefined) => Promise<TResult1 | TResult2>;
70
- export interface RetryableTool {
71
- /**
72
- * Create a function that retries the given function if the underlying
73
- * async function rejects due to an upgrade disconnection. The return value
74
- * of the created function is a vow that settles to the final retry result.
75
- *
76
- * The retried function should be idempotent.
77
- *
78
- * @param fnZone the zone for the named function
79
- * @param name base name to use in the zone
80
- * @param fn the retried function
81
- */
82
- <F extends (...args: any[]) => Promise<any>>(fnZone: Zone, name: string, fn: F): F extends (...args: infer Args) => Promise<infer R> ? (...args: Args) => Vow<R> : never;
83
- }
84
- export type VowTools = {
85
- /**
86
- * Vow-tolerant implementation of Promise.all that takes an iterable of vows
87
- * and other {@link Passable}s and returns a single {@link Vow}. It resolves
88
- * with an array of values when all of the input's promises or vows are
89
- * fulfilled and rejects when any of the input's promises or vows are rejected
90
- * with the first rejection reason.
91
- */
92
- all: <TS extends readonly unknown[]>(maybeVows: TS) => Vow<{
93
- [K in keyof TS]: Fulfilled<TS[K]>;
94
- }>;
95
- /**
96
- * Vow-tolerant
97
- * implementation of Promise.allSettled that takes an iterable of vows and other
98
- * {@link Passable}s and returns a single {@link Vow}. It resolves when all of
99
- * the input's promises or vows are settled with an array of settled outcome
100
- * objects.
101
- */
102
- allSettled: <TS extends readonly unknown[]>(maybeVows: TS) => Vow<{
103
- [K in keyof TS]: PromiseSettledResult<Fulfilled<TS[K]>>;
104
- }>;
105
- /**
106
- * @deprecated use `all`
107
- */
108
- allVows: <TS extends readonly unknown[]>(maybeVows: TS) => Vow<{
109
- [K in keyof TS]: Fulfilled<TS[K]>;
110
- }>;
111
- /**
112
- * Convert a vow or promise to a promise, ensuring proper handling of ephemeral promises.
113
- */
114
- asPromise: AsPromiseFunction;
115
- /**
116
- * Helper function that
117
- * coerces the result of a function to a Vow. Helpful for scenarios like a
118
- * synchronously thrown error.
119
- */
120
- asVow: <T>(fn: (...args: any[]) => Vow<Awaited<T>> | Awaited<T> | PromiseVow<T>) => Vow<Awaited<T>>;
121
- makeVowKit: <T>() => VowKit<T>;
122
- retryable: RetryableTool;
123
- /**
124
- * @deprecated use `retryable`
125
- */
126
- retriable: RetryableTool;
127
- watch: <T = any, TResult1 = T, TResult2 = never, C extends any[] = any[]>(specimenP: EVow<T>, watcher?: Watcher<T, TResult1, TResult2, C> | undefined, ...watcherArgs: C) => Vow<Exclude<TResult1, void> | Exclude<TResult2, void> extends never ? TResult1 : Exclude<TResult1, void> | Exclude<TResult2, void>>;
128
- /**
129
- * Shorten `specimenP` until we achieve a final result.
130
- *
131
- * Does not survive upgrade (even if specimenP is a durable Vow).
132
- *
133
- * Use only if the Vow will resolve _promptly_ {@link @agoric/swingset-vat/docs/async.md}.
134
- */
135
- when: <T, TResult1 = EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: EUnwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
136
- };
137
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEpE,YAAY,EAAE,IAAI,EAAE,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,KAAK,GAAG,CAAC;AAE3E;;GA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en: unknown): specimen is Vow;
5
- export function getVowPayload<T>(specimen: any): VowPayload<T> | undefined;
6
- export function toPassableCap(k: PassableCap | Vow): PassableCap;
7
- export function makeAsVow(makeVowKit: MakeVowKit): <T extends unknown>(fn: (...args: any[]) => Vow<Awaited<T>> | Awaited<T> | PromiseVow<T>) => Vow<Awaited<T>>;
8
- import { E as basicE } from '@endo/eventual-send';
9
- import type { Vow } from './types.js';
10
- import type { VowPayload } from './types.js';
11
- import type { PassableCap } from '@endo/pass-style';
12
- import type { MakeVowKit } from './vow.js';
13
- import type { PromiseVow } from './types.js';
14
- //# sourceMappingURL=vow-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vow-utils.d.ts","sourceRoot":"","sources":["vow-utils.js"],"names":[],"mappings":"AAWO,6BAAqB;;AAK5B,wDAKE;AAMK,gCAHI,OAAO,GACL,QAAQ,IAAI,GAAG,CAGyB;AAc9C,8BAJM,CAAC,YACH,GAAG,GACD,WAAW,CAAC,CAAC,GAAG,SAAS,CASrC;AAoBM,iCAHI,WAAW,GAAG,GAAG,GACf,WAAW,CAUvB;AAIM,sCADK,UAAU,IAKD,CAAC,sBACT,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,KAC9D,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAiB7B;4BAvG2B,qBAAqB;yBAMH,YAAY;gCAAZ,YAAY;iCAD5B,kBAAkB;gCAEnB,UAAU;gCADO,YAAY"}
package/src/vow.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export function prepareVowKit(zone: Zone, vowRejectionTracker?: VowRejectionTracker): <T>() => VowKit<T>;
2
- export type VowEphemera = Partial<PromiseKit<any>> & Pick<PromiseKit<any>, "promise"> & {
3
- potentiallyHandled?: boolean;
4
- };
5
- export type MakeVowKit = ReturnType<typeof prepareVowKit>;
6
- import type { Zone } from '@agoric/base-zone';
7
- import type { VowRejectionTracker } from './rejection-tracker.js';
8
- import type { VowKit } from './types.js';
9
- import type { PromiseKit } from '@endo/promise-kit';
10
- //# sourceMappingURL=vow.d.ts.map
package/src/vow.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"vow.d.ts","sourceRoot":"","sources":["vow.js"],"names":[],"mappings":"AA4BO,oCAHI,IAAI,wBACJ,mBAAmB,IAgNf,CAAC,OACD,OAAO,CAAC,CAAC,CASvB;0BAjOY,OAAO,CAAC,WAAW,GAAG,CAAC,CAAC,GAChC,IAAI,CAAC,WAAW,GAAG,CAAC,EAAE,SAAS,CAAC,GACpC;IAAM,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAAE;yBAgOvB,UAAU,CAAC,OAAO,aAAa,CAAC;0BAxOvB,mBAAmB;yCAEJ,wBAAwB;4BADxB,YAAY;gCAFrB,mBAAmB"}
@@ -1,28 +0,0 @@
1
- export function prepareWatchUtils(zone: Zone, { watch, when, makeVowKit, isRetryableReason }: {
2
- watch: Watch;
3
- when: When;
4
- makeVowKit: () => VowKit<any>;
5
- isRetryableReason: IsRetryableReason;
6
- }): () => import("@endo/exo").Guarded<{
7
- /**
8
- * @template {readonly unknown[]} S
9
- * @param {S} specimens
10
- * @returns {Vow<{ [P in keyof S]: Fulfilled<S[P]> }>}
11
- */
12
- all<S extends readonly unknown[]>(specimens: S): Vow<{ [P in keyof S]: Fulfilled<S[P]>; }>;
13
- /**
14
- * @template {readonly unknown[]} S
15
- * @param {S} specimens
16
- * @returns {Vow<{ [P in keyof S]: PromiseSettledResult<Fulfilled<S[P]>> }>}
17
- */
18
- allSettled<S extends readonly unknown[]>(specimens: S): Vow<{ [P in keyof S]: PromiseSettledResult<Fulfilled<S[P]>>; }>;
19
- asPromise(specimenP: any, watcher?: import("./types.js").Watcher<any, any, never, any[]> | undefined, watcherArgs?: any[] | undefined): Promise<any>;
20
- }>;
21
- import type { Zone } from '@agoric/base-zone';
22
- import type { Watch } from './watch.js';
23
- import type { When } from './when.js';
24
- import type { VowKit } from './types.js';
25
- import type { IsRetryableReason } from './types.js';
26
- import type { Fulfilled } from './types.js';
27
- import type { Vow } from './types.js';
28
- //# sourceMappingURL=watch-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watch-utils.d.ts","sourceRoot":"","sources":["watch-utils.js"],"names":[],"mappings":"AA+BO,wCAPI,IAAI,kDAEZ;IAAsB,KAAK,EAAnB,KAAK;IACQ,IAAI,EAAjB,IAAI;IACsB,UAAU,EAApC,MAAM,OAAO,GAAG,CAAC;IACS,iBAAiB,EAA3C,iBAAiB;CAC3B;IA4CO;;;;OAIG;QAH+B,CAAC,SAAtB,SAAU,OAAO,EAAG,aACtB,CAAC,GACC,IAAI,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CAAC;IAOrD;;;;OAIG;eAH+B,CAAC,SAAtB,SAAU,OAAO,EAAG,aACtB,CAAC,GACC,IAAI,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CAAC;;GA6LlF;0BA1QsB,mBAAmB;2BAClB,YAAY;0BACb,WAAW;4BAC6C,YAAY;uCAAZ,YAAY;+BAAZ,YAAY;yBAAZ,YAAY"}
package/src/watch.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export function prepareWatch(zone: Zone, makeVowKit: () => VowKit<any>, isRetryableReason?: (reason: any, lastValue: any) => any): <T = any, TResult1 = T, TResult2 = never, C extends any[] = any[]>(specimenP: EVow<T>, watcher?: Watcher<T, TResult1, TResult2, C>, ...watcherArgs: C) => import("./types.js").Vow<Exclude<TResult1, void> | Exclude<TResult2, void> extends never ? TResult1 : Exclude<TResult1, void> | Exclude<TResult2, void>>;
2
- export type Watch = ReturnType<typeof prepareWatch>;
3
- import type { Zone } from '@agoric/base-zone';
4
- import type { VowKit } from './types.js';
5
- import type { EVow } from './types.js';
6
- import type { Watcher } from './types.js';
7
- //# sourceMappingURL=watch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["watch.js"],"names":[],"mappings":"AA4KO,mCAJI,IAAI,cACJ,MAAM,OAAO,GAAG,CAAC,sBACjB,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,IAe/B,CAAC,QACD,QAAQ,MACR,QAAQ,UACA,CAAC,SAAT,GAAG,EAAG,qBACT,KAAK,CAAC,CAAC,YACP,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,kBACjC,CAAC,8JAqBb;oBAIa,UAAU,CAAC,OAAO,YAAY,CAAC;0BAjNJ,mBAAmB;4BACc,YAAY;0BAAZ,YAAY;6BAAZ,YAAY"}
package/src/when.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export function makeWhen(isRetryableReason?: IsRetryableReason): <T, TResult1 = EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: (value: EUnwrap<T>) => TResult1 | PromiseLike<TResult1>, onRejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>;
2
- export type When = ReturnType<typeof makeWhen>;
3
- import type { IsRetryableReason } from './types.js';
4
- import type { EUnwrap } from './types.js';
5
- //# sourceMappingURL=when.d.ts.map
package/src/when.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"when.d.ts","sourceRoot":"","sources":["when.js"],"names":[],"mappings":"AAQO,6CAFI,iBAAiB,IAmEb,CAAC,EACA,QAAQ,eACR,QAAQ,qBACX,CAAC,gBACD,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,eACvD,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,KAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAc1C;mBAIa,UAAU,CAAC,OAAO,QAAQ,CAAC;uCA9FO,YAAY;6BAAZ,YAAY"}