@dxos/functions 0.8.4-main.ae835ea → 0.8.4-main.bc2380dfbc
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/LICENSE +102 -5
- package/README.md +5 -7
- package/dist/lib/neutral/index.mjs +599 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/types/src/index.d.ts +2 -7
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/protocol/functions-ai-http-client.d.ts +12 -0
- package/dist/types/src/protocol/functions-ai-http-client.d.ts.map +1 -0
- package/dist/types/src/protocol/functions-ai-http-client.test.d.ts +2 -0
- package/dist/types/src/protocol/functions-ai-http-client.test.d.ts.map +1 -0
- package/dist/types/src/protocol/index.d.ts +2 -0
- package/dist/types/src/protocol/index.d.ts.map +1 -0
- package/dist/types/src/protocol/protocol.d.ts +24 -0
- package/dist/types/src/protocol/protocol.d.ts.map +1 -0
- package/dist/types/src/protocol/protocol.test.d.ts +2 -0
- package/dist/types/src/protocol/protocol.test.d.ts.map +1 -0
- package/dist/types/src/sdk.d.ts +10 -0
- package/dist/types/src/sdk.d.ts.map +1 -0
- package/dist/types/src/services/credentials.d.ts +17 -38
- package/dist/types/src/services/credentials.d.ts.map +1 -1
- package/dist/types/src/services/function-invocation-service.d.ts +6 -19
- package/dist/types/src/services/function-invocation-service.d.ts.map +1 -1
- package/dist/types/src/services/index.d.ts +1 -6
- package/dist/types/src/services/index.d.ts.map +1 -1
- package/dist/types/src/services/queues.d.ts +1 -46
- package/dist/types/src/services/queues.d.ts.map +1 -1
- package/dist/types/src/services/tracing.d.ts +2 -56
- package/dist/types/src/services/tracing.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +1 -4
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/url.d.ts +13 -0
- package/dist/types/src/types/url.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +26 -61
- package/src/index.ts +2 -7
- package/src/protocol/functions-ai-http-client.test.ts +105 -0
- package/src/protocol/functions-ai-http-client.ts +141 -0
- package/src/{executor → protocol}/index.ts +1 -1
- package/src/protocol/protocol.test.ts +58 -0
- package/src/protocol/protocol.ts +452 -0
- package/src/sdk.ts +31 -0
- package/src/services/credentials.ts +81 -110
- package/src/services/function-invocation-service.ts +19 -70
- package/src/services/index.ts +1 -6
- package/src/services/queues.ts +1 -80
- package/src/services/tracing.ts +1 -136
- package/src/types/index.ts +1 -4
- package/src/types/url.ts +32 -0
- package/dist/lib/browser/bundler/index.mjs +0 -256
- package/dist/lib/browser/bundler/index.mjs.map +0 -7
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +0 -10
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +0 -7
- package/dist/lib/browser/chunk-M6EXIREF.mjs +0 -610
- package/dist/lib/browser/chunk-M6EXIREF.mjs.map +0 -7
- package/dist/lib/browser/edge/index.mjs +0 -83
- package/dist/lib/browser/edge/index.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -1346
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs +0 -131
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/bundler/index.mjs +0 -257
- package/dist/lib/node-esm/bundler/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-P3IATZMZ.mjs +0 -612
- package/dist/lib/node-esm/chunk-P3IATZMZ.mjs.map +0 -7
- package/dist/lib/node-esm/edge/index.mjs +0 -84
- package/dist/lib/node-esm/edge/index.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -1347
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs +0 -132
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/types/src/bundler/bundler.d.ts +0 -49
- package/dist/types/src/bundler/bundler.d.ts.map +0 -1
- package/dist/types/src/bundler/bundler.test.d.ts +0 -2
- package/dist/types/src/bundler/bundler.test.d.ts.map +0 -1
- package/dist/types/src/bundler/index.d.ts +0 -2
- package/dist/types/src/bundler/index.d.ts.map +0 -1
- package/dist/types/src/e2e/deploy.test.d.ts +0 -2
- package/dist/types/src/e2e/deploy.test.d.ts.map +0 -1
- package/dist/types/src/edge/functions.d.ts +0 -17
- package/dist/types/src/edge/functions.d.ts.map +0 -1
- package/dist/types/src/edge/index.d.ts +0 -2
- package/dist/types/src/edge/index.d.ts.map +0 -1
- package/dist/types/src/errors.d.ts +0 -137
- package/dist/types/src/errors.d.ts.map +0 -1
- package/dist/types/src/example/fib.d.ts +0 -7
- package/dist/types/src/example/fib.d.ts.map +0 -1
- package/dist/types/src/example/forex-effect.d.ts +0 -3
- package/dist/types/src/example/forex-effect.d.ts.map +0 -1
- package/dist/types/src/example/index.d.ts +0 -12
- package/dist/types/src/example/index.d.ts.map +0 -1
- package/dist/types/src/example/reply.d.ts +0 -3
- package/dist/types/src/example/reply.d.ts.map +0 -1
- package/dist/types/src/example/sleep.d.ts +0 -5
- package/dist/types/src/example/sleep.d.ts.map +0 -1
- package/dist/types/src/executor/executor.d.ts +0 -14
- package/dist/types/src/executor/executor.d.ts.map +0 -1
- package/dist/types/src/executor/index.d.ts +0 -2
- package/dist/types/src/executor/index.d.ts.map +0 -1
- package/dist/types/src/handler.d.ts +0 -102
- package/dist/types/src/handler.d.ts.map +0 -1
- package/dist/types/src/services/database.d.ts +0 -67
- package/dist/types/src/services/database.d.ts.map +0 -1
- package/dist/types/src/services/event-logger.d.ts +0 -75
- package/dist/types/src/services/event-logger.d.ts.map +0 -1
- package/dist/types/src/services/function-invocation-service.test.d.ts +0 -2
- package/dist/types/src/services/function-invocation-service.test.d.ts.map +0 -1
- package/dist/types/src/services/local-function-execution.d.ts +0 -34
- package/dist/types/src/services/local-function-execution.d.ts.map +0 -1
- package/dist/types/src/services/remote-function-execution-service.d.ts +0 -22
- package/dist/types/src/services/remote-function-execution-service.d.ts.map +0 -1
- package/dist/types/src/services/service-container.d.ts +0 -57
- package/dist/types/src/services/service-container.d.ts.map +0 -1
- package/dist/types/src/services/service-registry.d.ts +0 -31
- package/dist/types/src/services/service-registry.d.ts.map +0 -1
- package/dist/types/src/services/service-registry.test.d.ts +0 -2
- package/dist/types/src/services/service-registry.test.d.ts.map +0 -1
- package/dist/types/src/testing/index.d.ts +0 -3
- package/dist/types/src/testing/index.d.ts.map +0 -1
- package/dist/types/src/testing/layer.d.ts +0 -18
- package/dist/types/src/testing/layer.d.ts.map +0 -1
- package/dist/types/src/testing/logger.d.ts +0 -5
- package/dist/types/src/testing/logger.d.ts.map +0 -1
- package/dist/types/src/testing/persist-database.test.d.ts +0 -2
- package/dist/types/src/testing/persist-database.test.d.ts.map +0 -1
- package/dist/types/src/testing/services.d.ts +0 -59
- package/dist/types/src/testing/services.d.ts.map +0 -1
- package/dist/types/src/trace.d.ts +0 -122
- package/dist/types/src/trace.d.ts.map +0 -1
- package/dist/types/src/translations.d.ts +0 -12
- package/dist/types/src/translations.d.ts.map +0 -1
- package/dist/types/src/triggers/index.d.ts +0 -4
- package/dist/types/src/triggers/index.d.ts.map +0 -1
- package/dist/types/src/triggers/input-builder.d.ts +0 -3
- package/dist/types/src/triggers/input-builder.d.ts.map +0 -1
- package/dist/types/src/triggers/invocation-tracer.d.ts +0 -37
- package/dist/types/src/triggers/invocation-tracer.d.ts.map +0 -1
- package/dist/types/src/triggers/trigger-dispatcher.d.ts +0 -78
- package/dist/types/src/triggers/trigger-dispatcher.d.ts.map +0 -1
- package/dist/types/src/triggers/trigger-dispatcher.test.d.ts +0 -2
- package/dist/types/src/triggers/trigger-dispatcher.test.d.ts.map +0 -1
- package/dist/types/src/triggers/trigger-state-store.d.ts +0 -28
- package/dist/types/src/triggers/trigger-state-store.d.ts.map +0 -1
- package/dist/types/src/types/Function.d.ts +0 -47
- package/dist/types/src/types/Function.d.ts.map +0 -1
- package/dist/types/src/types/Script.d.ts +0 -28
- package/dist/types/src/types/Script.d.ts.map +0 -1
- package/dist/types/src/types/Trigger.d.ts +0 -139
- package/dist/types/src/types/Trigger.d.ts.map +0 -1
- package/dist/types/src/types/TriggerEvent.d.ts +0 -44
- package/dist/types/src/types/TriggerEvent.d.ts.map +0 -1
- package/dist/types/src/url.d.ts +0 -21
- package/dist/types/src/url.d.ts.map +0 -1
- package/src/bundler/bundler.test.ts +0 -58
- package/src/bundler/bundler.ts +0 -295
- package/src/bundler/index.ts +0 -5
- package/src/e2e/deploy.test.ts +0 -69
- package/src/edge/functions.ts +0 -67
- package/src/edge/index.ts +0 -9
- package/src/errors.ts +0 -21
- package/src/example/fib.ts +0 -32
- package/src/example/forex-effect.ts +0 -40
- package/src/example/index.ts +0 -13
- package/src/example/reply.ts +0 -21
- package/src/example/sleep.ts +0 -24
- package/src/executor/executor.ts +0 -58
- package/src/handler.ts +0 -226
- package/src/services/database.ts +0 -175
- package/src/services/event-logger.ts +0 -121
- package/src/services/function-invocation-service.test.ts +0 -81
- package/src/services/local-function-execution.ts +0 -153
- package/src/services/remote-function-execution-service.ts +0 -63
- package/src/services/service-container.ts +0 -115
- package/src/services/service-registry.test.ts +0 -45
- package/src/services/service-registry.ts +0 -63
- package/src/testing/index.ts +0 -6
- package/src/testing/layer.ts +0 -114
- package/src/testing/logger.ts +0 -17
- package/src/testing/persist-database.test.ts +0 -87
- package/src/testing/services.ts +0 -115
- package/src/trace.ts +0 -178
- package/src/translations.ts +0 -20
- package/src/triggers/index.ts +0 -7
- package/src/triggers/input-builder.ts +0 -35
- package/src/triggers/invocation-tracer.ts +0 -101
- package/src/triggers/trigger-dispatcher.test.ts +0 -664
- package/src/triggers/trigger-dispatcher.ts +0 -521
- package/src/triggers/trigger-state-store.ts +0 -61
- package/src/types/Function.ts +0 -51
- package/src/types/Script.ts +0 -33
- package/src/types/Trigger.ts +0 -139
- package/src/types/TriggerEvent.ts +0 -62
- package/src/url.ts +0 -55
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundler.test.d.ts","sourceRoot":"","sources":["../../../../src/bundler/bundler.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bundler/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.test.d.ts","sourceRoot":"","sources":["../../../../src/e2e/deploy.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type DID } from 'iso-did/types';
|
|
2
|
-
import { type Client } from '@dxos/client';
|
|
3
|
-
import { type PublicKey } from '@dxos/keys';
|
|
4
|
-
import { type UploadFunctionResponseBody } from '@dxos/protocols';
|
|
5
|
-
export type UploadWorkerArgs = {
|
|
6
|
-
client: Client;
|
|
7
|
-
version: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
functionId?: string;
|
|
10
|
-
ownerPublicKey: PublicKey;
|
|
11
|
-
entryPoint: string;
|
|
12
|
-
assets: Record<string, Uint8Array>;
|
|
13
|
-
};
|
|
14
|
-
export declare const uploadWorkerFunction: ({ client, version, name, functionId, ownerPublicKey, entryPoint, assets, }: UploadWorkerArgs) => Promise<UploadFunctionResponseBody>;
|
|
15
|
-
export declare const incrementSemverPatch: (version: string) => string;
|
|
16
|
-
export declare const publicKeyToDid: (key: PublicKey) => DID;
|
|
17
|
-
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/edge/functions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAI3C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,SAAS,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,4EAQxC,gBAAgB,KAAG,OAAO,CAAC,0BAA0B,CAsBvD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,MAKtD,CAAC;AAGF,eAAO,MAAM,cAAc,GAAI,KAAK,SAAS,KAAG,GAE/C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/edge/index.ts"],"names":[],"mappings":"AAQA,cAAc,aAAa,CAAC"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { BaseError, type BaseErrorOptions } from '@dxos/errors';
|
|
2
|
-
declare const ServiceNotAvailableError_base: {
|
|
3
|
-
new (options?: BaseErrorOptions): {
|
|
4
|
-
"__#private@#code": "SERVICE_NOT_AVAILABLE";
|
|
5
|
-
"__#private@#context": Record<string, unknown>;
|
|
6
|
-
readonly name: "SERVICE_NOT_AVAILABLE";
|
|
7
|
-
readonly message: string;
|
|
8
|
-
readonly code: "SERVICE_NOT_AVAILABLE";
|
|
9
|
-
readonly _tag: "SERVICE_NOT_AVAILABLE";
|
|
10
|
-
readonly context: Record<string, unknown>;
|
|
11
|
-
stack?: string;
|
|
12
|
-
cause?: unknown;
|
|
13
|
-
};
|
|
14
|
-
code: "SERVICE_NOT_AVAILABLE";
|
|
15
|
-
is(error: unknown): error is BaseError;
|
|
16
|
-
wrap(options?: Omit<BaseErrorOptions, "cause">): (error: unknown) => {
|
|
17
|
-
"__#private@#code": "SERVICE_NOT_AVAILABLE";
|
|
18
|
-
"__#private@#context": Record<string, unknown>;
|
|
19
|
-
readonly name: "SERVICE_NOT_AVAILABLE";
|
|
20
|
-
readonly message: string;
|
|
21
|
-
readonly code: "SERVICE_NOT_AVAILABLE";
|
|
22
|
-
readonly _tag: "SERVICE_NOT_AVAILABLE";
|
|
23
|
-
readonly context: Record<string, unknown>;
|
|
24
|
-
stack?: string;
|
|
25
|
-
cause?: unknown;
|
|
26
|
-
};
|
|
27
|
-
extend<Code extends string = string>(code: Code, message?: string): any;
|
|
28
|
-
isError(error: unknown): error is Error;
|
|
29
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
30
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
31
|
-
stackTraceLimit: number;
|
|
32
|
-
};
|
|
33
|
-
export declare class ServiceNotAvailableError extends ServiceNotAvailableError_base {
|
|
34
|
-
constructor(service: string, options?: Omit<BaseErrorOptions, 'context'>);
|
|
35
|
-
}
|
|
36
|
-
declare const FunctionNotFoundError_base: {
|
|
37
|
-
new (options?: BaseErrorOptions): {
|
|
38
|
-
"__#private@#code": "FUNCTION_NOT_FOUND";
|
|
39
|
-
"__#private@#context": Record<string, unknown>;
|
|
40
|
-
readonly name: "FUNCTION_NOT_FOUND";
|
|
41
|
-
readonly message: string;
|
|
42
|
-
readonly code: "FUNCTION_NOT_FOUND";
|
|
43
|
-
readonly _tag: "FUNCTION_NOT_FOUND";
|
|
44
|
-
readonly context: Record<string, unknown>;
|
|
45
|
-
stack?: string;
|
|
46
|
-
cause?: unknown;
|
|
47
|
-
};
|
|
48
|
-
code: "FUNCTION_NOT_FOUND";
|
|
49
|
-
is(error: unknown): error is BaseError;
|
|
50
|
-
wrap(options?: Omit<BaseErrorOptions, "cause">): (error: unknown) => {
|
|
51
|
-
"__#private@#code": "FUNCTION_NOT_FOUND";
|
|
52
|
-
"__#private@#context": Record<string, unknown>;
|
|
53
|
-
readonly name: "FUNCTION_NOT_FOUND";
|
|
54
|
-
readonly message: string;
|
|
55
|
-
readonly code: "FUNCTION_NOT_FOUND";
|
|
56
|
-
readonly _tag: "FUNCTION_NOT_FOUND";
|
|
57
|
-
readonly context: Record<string, unknown>;
|
|
58
|
-
stack?: string;
|
|
59
|
-
cause?: unknown;
|
|
60
|
-
};
|
|
61
|
-
extend<Code extends string = string>(code: Code, message?: string): any;
|
|
62
|
-
isError(error: unknown): error is Error;
|
|
63
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
64
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
65
|
-
stackTraceLimit: number;
|
|
66
|
-
};
|
|
67
|
-
export declare class FunctionNotFoundError extends FunctionNotFoundError_base {
|
|
68
|
-
constructor(functionKey: string, options?: Omit<BaseErrorOptions, 'context'>);
|
|
69
|
-
}
|
|
70
|
-
declare const FunctionError_base: {
|
|
71
|
-
new (options?: BaseErrorOptions): {
|
|
72
|
-
"__#private@#code": "FUNCTION_ERROR";
|
|
73
|
-
"__#private@#context": Record<string, unknown>;
|
|
74
|
-
readonly name: "FUNCTION_ERROR";
|
|
75
|
-
readonly message: string;
|
|
76
|
-
readonly code: "FUNCTION_ERROR";
|
|
77
|
-
readonly _tag: "FUNCTION_ERROR";
|
|
78
|
-
readonly context: Record<string, unknown>;
|
|
79
|
-
stack?: string;
|
|
80
|
-
cause?: unknown;
|
|
81
|
-
};
|
|
82
|
-
code: "FUNCTION_ERROR";
|
|
83
|
-
is(error: unknown): error is BaseError;
|
|
84
|
-
wrap(options?: Omit<BaseErrorOptions, "cause">): (error: unknown) => {
|
|
85
|
-
"__#private@#code": "FUNCTION_ERROR";
|
|
86
|
-
"__#private@#context": Record<string, unknown>;
|
|
87
|
-
readonly name: "FUNCTION_ERROR";
|
|
88
|
-
readonly message: string;
|
|
89
|
-
readonly code: "FUNCTION_ERROR";
|
|
90
|
-
readonly _tag: "FUNCTION_ERROR";
|
|
91
|
-
readonly context: Record<string, unknown>;
|
|
92
|
-
stack?: string;
|
|
93
|
-
cause?: unknown;
|
|
94
|
-
};
|
|
95
|
-
extend<Code extends string = string>(code: Code, message?: string): any;
|
|
96
|
-
isError(error: unknown): error is Error;
|
|
97
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
98
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
99
|
-
stackTraceLimit: number;
|
|
100
|
-
};
|
|
101
|
-
export declare class FunctionError extends FunctionError_base {
|
|
102
|
-
}
|
|
103
|
-
declare const TriggerStateNotFoundError_base: {
|
|
104
|
-
new (options?: BaseErrorOptions): {
|
|
105
|
-
"__#private@#code": "TRIGGER_STATE_NOT_FOUND";
|
|
106
|
-
"__#private@#context": Record<string, unknown>;
|
|
107
|
-
readonly name: "TRIGGER_STATE_NOT_FOUND";
|
|
108
|
-
readonly message: string;
|
|
109
|
-
readonly code: "TRIGGER_STATE_NOT_FOUND";
|
|
110
|
-
readonly _tag: "TRIGGER_STATE_NOT_FOUND";
|
|
111
|
-
readonly context: Record<string, unknown>;
|
|
112
|
-
stack?: string;
|
|
113
|
-
cause?: unknown;
|
|
114
|
-
};
|
|
115
|
-
code: "TRIGGER_STATE_NOT_FOUND";
|
|
116
|
-
is(error: unknown): error is BaseError;
|
|
117
|
-
wrap(options?: Omit<BaseErrorOptions, "cause">): (error: unknown) => {
|
|
118
|
-
"__#private@#code": "TRIGGER_STATE_NOT_FOUND";
|
|
119
|
-
"__#private@#context": Record<string, unknown>;
|
|
120
|
-
readonly name: "TRIGGER_STATE_NOT_FOUND";
|
|
121
|
-
readonly message: string;
|
|
122
|
-
readonly code: "TRIGGER_STATE_NOT_FOUND";
|
|
123
|
-
readonly _tag: "TRIGGER_STATE_NOT_FOUND";
|
|
124
|
-
readonly context: Record<string, unknown>;
|
|
125
|
-
stack?: string;
|
|
126
|
-
cause?: unknown;
|
|
127
|
-
};
|
|
128
|
-
extend<Code extends string = string>(code: Code, message?: string): any;
|
|
129
|
-
isError(error: unknown): error is Error;
|
|
130
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
131
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
132
|
-
stackTraceLimit: number;
|
|
133
|
-
};
|
|
134
|
-
export declare class TriggerStateNotFoundError extends TriggerStateNotFoundError_base {
|
|
135
|
-
}
|
|
136
|
-
export {};
|
|
137
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhE,qBAAa,wBAAyB,SAAQ,6BAAkE;gBAClG,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC;CAGzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,qBAAsB,SAAQ,0BAA4D;gBACzF,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC;CAG7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,aAAc,SAAQ,kBAA+D;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErG,qBAAa,yBAA0B,SAAQ,8BAAsE;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fib.d.ts","sourceRoot":"","sources":["../../../../src/example/fib.ts"],"names":[],"mappings":";;;;;AASA,wBAsBG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forex-effect.d.ts","sourceRoot":"","sources":["../../../../src/example/forex-effect.ts"],"names":[],"mappings":";AAeA,wBAwBG"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare namespace Example {
|
|
2
|
-
const fib: import("..").FunctionDefinition<{
|
|
3
|
-
readonly iterations?: number | undefined;
|
|
4
|
-
}, {
|
|
5
|
-
readonly result: string;
|
|
6
|
-
}>;
|
|
7
|
-
const reply: import("..").FunctionDefinition<any, any>;
|
|
8
|
-
const sleep: import("..").FunctionDefinition<{
|
|
9
|
-
readonly duration?: number | undefined;
|
|
10
|
-
}, void>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/example/index.ts"],"names":[],"mappings":"AAQA,yBAAiB,OAAO,CAAC;IAChB,MAAM,GAAG;;;;MAAO,CAAC;IACjB,MAAM,KAAK,2CAAS,CAAC;IACrB,MAAM,KAAK;;YAAS,CAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reply.d.ts","sourceRoot":"","sources":["../../../../src/example/reply.ts"],"names":[],"mappings":";AAUA,wBAUG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../../../src/example/sleep.ts"],"names":[],"mappings":";;;AASA,wBAcG"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FunctionDefinition } from '../handler';
|
|
2
|
-
import type { ServiceContainer } from '../services';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use `FunctionInvocationService`
|
|
5
|
-
*/
|
|
6
|
-
export declare class FunctionExecutor {
|
|
7
|
-
private readonly _services;
|
|
8
|
-
constructor(_services: ServiceContainer);
|
|
9
|
-
/**
|
|
10
|
-
* Invoke function.
|
|
11
|
-
*/
|
|
12
|
-
invoke<F extends FunctionDefinition<any, any>>(functionDef: F, input: F extends FunctionDefinition<infer I, infer _O> ? I : never): Promise<F extends FunctionDefinition<infer _I, infer O> ? O : never>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../../src/executor/executor.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAmB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,aAAa,CAAC;AAE9D;;GAEG;AACH,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,gBAAgB;IAExD;;OAEG;IAEG,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EACjD,WAAW,EAAE,CAAC,EACd,KAAK,EAAE,CAAC,SAAS,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,GACjE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;CA+BxE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/executor/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type * as Context from 'effect/Context';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import * as Schema from 'effect/Schema';
|
|
4
|
-
import { type HasId } from '@dxos/echo/internal';
|
|
5
|
-
import { type EchoDatabase } from '@dxos/echo-db';
|
|
6
|
-
import { type DXN, type SpaceId } from '@dxos/keys';
|
|
7
|
-
import { type QueryResult } from '@dxos/protocols';
|
|
8
|
-
import { type Services } from './services';
|
|
9
|
-
import { Function } from './types';
|
|
10
|
-
/**
|
|
11
|
-
* Function handler.
|
|
12
|
-
*/
|
|
13
|
-
export type FunctionHandler<TData = {}, TOutput = any> = (params: {
|
|
14
|
-
/**
|
|
15
|
-
* Services and context available to the function.
|
|
16
|
-
*/
|
|
17
|
-
context: FunctionContext;
|
|
18
|
-
/**
|
|
19
|
-
* Data passed as the input to the function.
|
|
20
|
-
* Must match the function's input schema.
|
|
21
|
-
* This will be the payload from the trigger or other data passed into the function in a workflow.
|
|
22
|
-
*/
|
|
23
|
-
data: TData;
|
|
24
|
-
}) => TOutput | Promise<TOutput> | Effect.Effect<TOutput, any, Services>;
|
|
25
|
-
/**
|
|
26
|
-
* Function context.
|
|
27
|
-
*/
|
|
28
|
-
export interface FunctionContext {
|
|
29
|
-
/**
|
|
30
|
-
* Space from which the function was invoked.
|
|
31
|
-
*/
|
|
32
|
-
space: SpaceAPI | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Resolves a service available to the function.
|
|
35
|
-
* @throws if the service is not available.
|
|
36
|
-
*/
|
|
37
|
-
getService: <T extends Context.Tag<any, any>>(tag: T) => Context.Tag.Service<T>;
|
|
38
|
-
getSpace: (spaceId: SpaceId) => Promise<SpaceAPI>;
|
|
39
|
-
}
|
|
40
|
-
export interface FunctionContextAi {
|
|
41
|
-
run(model: string, inputs: any, options?: any): Promise<any>;
|
|
42
|
-
}
|
|
43
|
-
export interface QueuesAPI {
|
|
44
|
-
queryQueue(queue: DXN, options?: {}): Promise<QueryResult>;
|
|
45
|
-
insertIntoQueue(queue: DXN, objects: HasId[]): Promise<void>;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Space interface available to functions.
|
|
49
|
-
*/
|
|
50
|
-
export interface SpaceAPI {
|
|
51
|
-
get id(): SpaceId;
|
|
52
|
-
get db(): EchoDatabase;
|
|
53
|
-
get queues(): QueuesAPI;
|
|
54
|
-
}
|
|
55
|
-
declare const typeId: unique symbol;
|
|
56
|
-
export type FunctionDefinition<T = any, O = any> = {
|
|
57
|
-
[typeId]: true;
|
|
58
|
-
key: string;
|
|
59
|
-
name: string;
|
|
60
|
-
description?: string;
|
|
61
|
-
inputSchema: Schema.Schema<T, any>;
|
|
62
|
-
outputSchema?: Schema.Schema<O, any>;
|
|
63
|
-
handler: FunctionHandler<T, O>;
|
|
64
|
-
meta?: {
|
|
65
|
-
/**
|
|
66
|
-
* Tools that are projected from functions have this annotation.
|
|
67
|
-
*
|
|
68
|
-
* deployedFunctionId:
|
|
69
|
-
* - Backend deployment ID assigned by the EDGE function service (typically a UUID).
|
|
70
|
-
* - Used for remote invocation via `FunctionInvocationService` → `RemoteFunctionExecutionService`.
|
|
71
|
-
* - Persisted on the corresponding ECHO `Function.Function` object's metadata under the
|
|
72
|
-
* `FUNCTIONS_META_KEY` and retrieved with `getUserFunctionIdInMetadata`.
|
|
73
|
-
*/
|
|
74
|
-
deployedFunctionId?: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export type FunctionProps<T, O> = {
|
|
78
|
-
key: string;
|
|
79
|
-
name: string;
|
|
80
|
-
description?: string;
|
|
81
|
-
inputSchema: Schema.Schema<T, any>;
|
|
82
|
-
outputSchema?: Schema.Schema<O, any>;
|
|
83
|
-
handler: FunctionHandler<T, O>;
|
|
84
|
-
};
|
|
85
|
-
export declare const defineFunction: {
|
|
86
|
-
<I, O>(params: FunctionProps<I, O>): FunctionDefinition<I, O>;
|
|
87
|
-
};
|
|
88
|
-
export declare const FunctionDefinition: {
|
|
89
|
-
make: <I, O>(params: FunctionProps<I, O>) => FunctionDefinition<I, O>;
|
|
90
|
-
isFunction: (value: unknown) => value is FunctionDefinition.Any;
|
|
91
|
-
serialize: (functionDef: FunctionDefinition.Any) => Function.Function;
|
|
92
|
-
deserialize: (functionObj: Function.Function) => FunctionDefinition.Any;
|
|
93
|
-
};
|
|
94
|
-
export declare namespace FunctionDefinition {
|
|
95
|
-
type Any = FunctionDefinition<any, any>;
|
|
96
|
-
type Input<T extends FunctionDefinition> = T extends FunctionDefinition<infer I, any> ? I : never;
|
|
97
|
-
type Output<T extends FunctionDefinition> = T extends FunctionDefinition<any, infer O> ? O : never;
|
|
98
|
-
}
|
|
99
|
-
export declare const serializeFunction: (functionDef: FunctionDefinition<any, any>) => Function.Function;
|
|
100
|
-
export declare const deserializeFunction: (functionObj: Function.Function) => FunctionDefinition<unknown, unknown>;
|
|
101
|
-
export {};
|
|
102
|
-
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAQnC;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,KAAK,GAAG,EAAE,EAAE,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE;IAChE;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC;IAEzB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC;CAC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,CAAC;AACF,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,KAAY,GAAG,GAAG,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC/C,KAAY,KAAK,CAAC,CAAC,SAAS,kBAAkB,IAAI,CAAC,SAAS,kBAAkB,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACzG,KAAY,MAAM,CAAC,CAAC,SAAS,kBAAkB,IAAI,CAAC,SAAS,kBAAkB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;CAC3G;AAED,eAAO,MAAM,iBAAiB,GAAI,aAAa,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,KAAG,QAAQ,CAAC,QAatF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,aAAa,QAAQ,CAAC,QAAQ,KAAG,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAevG,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as Context from 'effect/Context';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import * as Layer from 'effect/Layer';
|
|
4
|
-
import * as Option from 'effect/Option';
|
|
5
|
-
import type * as Schema from 'effect/Schema';
|
|
6
|
-
import { type Filter, type Live, Obj, ObjectNotFoundError, type Query, type Ref, type Relation, type Type } from '@dxos/echo';
|
|
7
|
-
import type { EchoSchema } from '@dxos/echo/internal';
|
|
8
|
-
import type { EchoDatabase, FlushOptions, OneShotQueryResult, QueryResult, SchemaRegistryQuery } from '@dxos/echo-db';
|
|
9
|
-
import type { SchemaRegistryPreparedQuery } from '@dxos/echo-db';
|
|
10
|
-
import type { DXN } from '@dxos/keys';
|
|
11
|
-
declare const DatabaseService_base: Context.TagClass<DatabaseService, "@dxos/functions/DatabaseService", {
|
|
12
|
-
readonly db: EchoDatabase;
|
|
13
|
-
}>;
|
|
14
|
-
export declare class DatabaseService extends DatabaseService_base {
|
|
15
|
-
static notAvailable: Layer.Layer<DatabaseService, never, never>;
|
|
16
|
-
static make: (db: EchoDatabase) => Context.Tag.Service<DatabaseService>;
|
|
17
|
-
static layer: (db: EchoDatabase) => Layer.Layer<DatabaseService>;
|
|
18
|
-
/**
|
|
19
|
-
* Resolves an object by its DXN.
|
|
20
|
-
*/
|
|
21
|
-
static resolve: {
|
|
22
|
-
(dxn: DXN): Effect.Effect<Obj.Any | Relation.Any, never, DatabaseService>;
|
|
23
|
-
<S extends Type.Obj.Any | Type.Relation.Any>(dxn: DXN, schema: S): Effect.Effect<Schema.Schema.Type<S>, ObjectNotFoundError, DatabaseService>;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Loads an object reference.
|
|
27
|
-
*/
|
|
28
|
-
static load: <T>(ref: Ref.Ref<T>) => Effect.Effect<T, ObjectNotFoundError, never>;
|
|
29
|
-
/**
|
|
30
|
-
* Loads an object reference option.
|
|
31
|
-
*/
|
|
32
|
-
static loadOption: <T>(ref: Ref.Ref<T>) => Effect.Effect<Option.Option<T>, never, never>;
|
|
33
|
-
/**
|
|
34
|
-
* @link EchoDatabase.add
|
|
35
|
-
*/
|
|
36
|
-
static add: <T extends Obj.Any | Relation.Any>(obj: T) => Effect.Effect<T, never, DatabaseService>;
|
|
37
|
-
/**
|
|
38
|
-
* @link EchoDatabase.remove
|
|
39
|
-
*/
|
|
40
|
-
static remove: <T extends Obj.Any | Relation.Any>(obj: T) => Effect.Effect<void, never, DatabaseService>;
|
|
41
|
-
/**
|
|
42
|
-
* @link EchoDatabase.flush
|
|
43
|
-
*/
|
|
44
|
-
static flush: (opts?: FlushOptions) => Effect.Effect<void, never, DatabaseService>;
|
|
45
|
-
/**
|
|
46
|
-
* @link EchoDatabase.getObjectById
|
|
47
|
-
*/
|
|
48
|
-
static getObjectById: <T extends Obj.Any | Relation.Any>(id: string) => Effect.Effect<Live<T> | undefined, never, DatabaseService>;
|
|
49
|
-
/**
|
|
50
|
-
* Creates a `QueryResult` object that can be subscribed to.
|
|
51
|
-
*/
|
|
52
|
-
static query: {
|
|
53
|
-
<Q extends Query.Any>(query: Q): Effect.Effect<QueryResult<Live<Query.Type<Q>>>, never, DatabaseService>;
|
|
54
|
-
<F extends Filter.Any>(filter: F): Effect.Effect<QueryResult<Live<Filter.Type<F>>>, never, DatabaseService>;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Executes the query once and returns the results.
|
|
58
|
-
*/
|
|
59
|
-
static runQuery: {
|
|
60
|
-
<Q extends Query.Any>(query: Q): Effect.Effect<OneShotQueryResult<Live<Query.Type<Q>>>, never, DatabaseService>;
|
|
61
|
-
<F extends Filter.Any>(filter: F): Effect.Effect<OneShotQueryResult<Live<Filter.Type<F>>>, never, DatabaseService>;
|
|
62
|
-
};
|
|
63
|
-
static schemaQuery: <Q extends SchemaRegistryQuery>(query: Q) => Effect.Effect<SchemaRegistryPreparedQuery<EchoSchema>, never, DatabaseService>;
|
|
64
|
-
static runSchemaQuery: <Q extends SchemaRegistryQuery>(query: Q) => Effect.Effect<EchoSchema[], never, DatabaseService>;
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
67
|
-
//# sourceMappingURL=database.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../../../src/services/database.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAE7C,OAAO,EACL,KAAK,MAAM,EACX,KAAK,IAAI,EACT,GAAG,EACH,mBAAmB,EACnB,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,QAAQ,EACb,KAAK,IAAI,EACV,MA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AAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC;KAC7G,CAIG;IAEJ;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE;QACf,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC;QAChH,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC;KACpH,CAGG;IAEJ,MAAM,CAAC,WAAW,GAAI,CAAC,SAAS,mBAAmB,EACjD,OAAO,CAAC,KACP,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAI7E;IAEJ,MAAM,CAAC,cAAc,GAAI,CAAC,SAAS,mBAAmB,EACpD,OAAO,CAAC,KACP,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,eAAe,CAAC,CAGlD;CACL"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import * as Context from 'effect/Context';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import * as Layer from 'effect/Layer';
|
|
4
|
-
import * as Schema from 'effect/Schema';
|
|
5
|
-
import { Type } from '@dxos/echo';
|
|
6
|
-
import { LogLevel } from '@dxos/log';
|
|
7
|
-
import { TracingService } from './tracing';
|
|
8
|
-
export declare const ComputeEventPayload: Schema.Union<[Schema.Struct<{
|
|
9
|
-
type: Schema.Literal<["begin-compute"]>;
|
|
10
|
-
nodeId: typeof Schema.String;
|
|
11
|
-
inputs: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
12
|
-
}>, Schema.Struct<{
|
|
13
|
-
type: Schema.Literal<["end-compute"]>;
|
|
14
|
-
nodeId: typeof Schema.String;
|
|
15
|
-
outputs: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
16
|
-
}>, Schema.Struct<{
|
|
17
|
-
type: Schema.Literal<["compute-input"]>;
|
|
18
|
-
nodeId: typeof Schema.String;
|
|
19
|
-
property: typeof Schema.String;
|
|
20
|
-
value: typeof Schema.Any;
|
|
21
|
-
}>, Schema.Struct<{
|
|
22
|
-
type: Schema.Literal<["compute-output"]>;
|
|
23
|
-
nodeId: typeof Schema.String;
|
|
24
|
-
property: typeof Schema.String;
|
|
25
|
-
value: typeof Schema.Any;
|
|
26
|
-
}>, Schema.Struct<{
|
|
27
|
-
type: Schema.Literal<["custom"]>;
|
|
28
|
-
nodeId: typeof Schema.String;
|
|
29
|
-
event: typeof Schema.Any;
|
|
30
|
-
}>]>;
|
|
31
|
-
export type ComputeEventPayload = Schema.Schema.Type<typeof ComputeEventPayload>;
|
|
32
|
-
export declare const ComputeEvent: Type.obj<Schema.Struct<{
|
|
33
|
-
payload: Schema.Union<[Schema.Struct<{
|
|
34
|
-
type: Schema.Literal<["begin-compute"]>;
|
|
35
|
-
nodeId: typeof Schema.String;
|
|
36
|
-
inputs: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
37
|
-
}>, Schema.Struct<{
|
|
38
|
-
type: Schema.Literal<["end-compute"]>;
|
|
39
|
-
nodeId: typeof Schema.String;
|
|
40
|
-
outputs: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
41
|
-
}>, Schema.Struct<{
|
|
42
|
-
type: Schema.Literal<["compute-input"]>;
|
|
43
|
-
nodeId: typeof Schema.String;
|
|
44
|
-
property: typeof Schema.String;
|
|
45
|
-
value: typeof Schema.Any;
|
|
46
|
-
}>, Schema.Struct<{
|
|
47
|
-
type: Schema.Literal<["compute-output"]>;
|
|
48
|
-
nodeId: typeof Schema.String;
|
|
49
|
-
property: typeof Schema.String;
|
|
50
|
-
value: typeof Schema.Any;
|
|
51
|
-
}>, Schema.Struct<{
|
|
52
|
-
type: Schema.Literal<["custom"]>;
|
|
53
|
-
nodeId: typeof Schema.String;
|
|
54
|
-
event: typeof Schema.Any;
|
|
55
|
-
}>]>;
|
|
56
|
-
}>>;
|
|
57
|
-
declare const ComputeEventLogger_base: Context.TagClass<ComputeEventLogger, "@dxos/functions/ComputeEventLogger", {
|
|
58
|
-
readonly log: (event: ComputeEventPayload) => void;
|
|
59
|
-
readonly nodeId: string | undefined;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* Logs event for the compute workflows.
|
|
63
|
-
*/
|
|
64
|
-
export declare class ComputeEventLogger extends ComputeEventLogger_base {
|
|
65
|
-
static noop: Context.Tag.Service<ComputeEventLogger>;
|
|
66
|
-
/**
|
|
67
|
-
* Implements ComputeEventLogger using TracingService.
|
|
68
|
-
*/
|
|
69
|
-
static layerFromTracing: Layer.Layer<ComputeEventLogger, never, TracingService>;
|
|
70
|
-
}
|
|
71
|
-
export declare const logCustomEvent: (data: any) => Effect.Effect<void, never, ComputeEventLogger>;
|
|
72
|
-
export declare const createDefectLogger: <A, E, R>() => ((self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>);
|
|
73
|
-
export declare const createEventLogger: (level: LogLevel, message?: string) => Context.Tag.Service<ComputeEventLogger>;
|
|
74
|
-
export {};
|
|
75
|
-
//# sourceMappingURL=event-logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-logger.d.ts","sourceRoot":"","sources":["../../../../src/services/event-logger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAO,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;IA4B/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEjF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;GAEsD,CAAC;;kBAO9D,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;qBAAmB,MAAM,GAAG,SAAS;;AAL3F;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,uBAGrC;IACD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAGlD;IAEF;;OAEG;IACH,MAAM,CAAC,gBAAgB,yDAWrB;CACH;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,GAAG,mDAWpC,CAAC;AAEL,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAE,CAAC,EAAE,CAAC,OAAK,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAMrG,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAC5B,OAAO,QAAQ,EACf,UAAS,MAAgB,KACxB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAiBxC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function-invocation-service.test.d.ts","sourceRoot":"","sources":["../../../../src/services/function-invocation-service.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as Context from 'effect/Context';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import * as Layer from 'effect/Layer';
|
|
4
|
-
import { AiService } from '@dxos/ai';
|
|
5
|
-
import { FunctionNotFoundError } from '../errors';
|
|
6
|
-
import type { FunctionDefinition } from '../handler';
|
|
7
|
-
import { CredentialsService } from './credentials';
|
|
8
|
-
import { DatabaseService } from './database';
|
|
9
|
-
import { type ComputeEventLogger } from './event-logger';
|
|
10
|
-
import { QueueService } from './queues';
|
|
11
|
-
import { RemoteFunctionExecutionService } from './remote-function-execution-service';
|
|
12
|
-
import { type Services } from './service-container';
|
|
13
|
-
import { type TracingService } from './tracing';
|
|
14
|
-
/**
|
|
15
|
-
* Services that are provided at the function call site.
|
|
16
|
-
*/
|
|
17
|
-
export type InvocationServices = TracingService | ComputeEventLogger;
|
|
18
|
-
declare const LocalFunctionExecutionService_base: Context.TagClass<LocalFunctionExecutionService, "@dxos/functions/LocalFunctionExecutionService", {
|
|
19
|
-
invokeFunction<I, O>(functionDef: FunctionDefinition<I, O>, input: I): Effect.Effect<O, never, InvocationServices>;
|
|
20
|
-
}>;
|
|
21
|
-
export declare class LocalFunctionExecutionService extends LocalFunctionExecutionService_base {
|
|
22
|
-
static layerLive: Layer.Layer<LocalFunctionExecutionService, never, DatabaseService | CredentialsService | QueueService | RemoteFunctionExecutionService | AiService.AiService | FunctionImplementationResolver>;
|
|
23
|
-
static invokeFunction: <F extends FunctionDefinition.Any>(functionDef: F, input: FunctionDefinition.Input<F>) => Effect.Effect<FunctionDefinition.Output<F>, never, Services | LocalFunctionExecutionService>;
|
|
24
|
-
}
|
|
25
|
-
declare const FunctionImplementationResolver_base: Context.TagClass<FunctionImplementationResolver, "@dxos/functions/FunctionImplementationResolver", {
|
|
26
|
-
resolveFunctionImplementation<I, O>(functionDef: FunctionDefinition<I, O>): Effect.Effect<FunctionDefinition<I, O>, FunctionNotFoundError>;
|
|
27
|
-
}>;
|
|
28
|
-
export declare class FunctionImplementationResolver extends FunctionImplementationResolver_base {
|
|
29
|
-
static layerTest: ({ functions }: {
|
|
30
|
-
functions: readonly FunctionDefinition<any, any>[];
|
|
31
|
-
}) => Layer.Layer<FunctionImplementationResolver, never, never>;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=local-function-execution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local-function-execution.d.ts","sourceRoot":"","sources":["../../../../src/services/local-function-execution.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,OAAO,EAAiB,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAmB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,kBAAkB,CAAC;;mBAOlD,CAAC,EAAE,CAAC,eAAe,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC;;AALtH,qBAAa,6BAA8B,SAAQ,kCAOhD;IACD,MAAM,CAAC,SAAS,iMA8Bd;IAEF,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,SAAS,kBAAkB,CAAC,GAAG,EACtD,WAAW,EAAE,CAAC,EACd,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,KAC/B,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,GAAG,6BAA6B,CAAC,CACH;CAC/F;;kCA+DiC,CAAC,EAAE,CAAC,eACnB,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,CAAC;;AALrE,qBAAa,8BAA+B,SAAQ,mCAOjD;IACD,MAAM,CAAC,SAAS,GAAI,eAAe;QAAE,SAAS,EAAE,SAAS,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAA;KAAE,+DASpF;CACN"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as Context from 'effect/Context';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import * as Layer from 'effect/Layer';
|
|
4
|
-
import type { SpaceId } from '@dxos/keys';
|
|
5
|
-
declare const RemoteFunctionExecutionService_base: Context.TagClass<RemoteFunctionExecutionService, "@dxos/functions/RemoteFunctionExecutionService", {
|
|
6
|
-
callFunction<I, O>(deployedFunctionId: string, input: I): Effect.Effect<O>;
|
|
7
|
-
}>;
|
|
8
|
-
/**
|
|
9
|
-
* Allows calling into other functions.
|
|
10
|
-
*/
|
|
11
|
-
export declare class RemoteFunctionExecutionService extends RemoteFunctionExecutionService_base {
|
|
12
|
-
/**
|
|
13
|
-
* @param baseUrl URL of the EDGE server.
|
|
14
|
-
* @param spaceId - The space ID to invoke the function in. If not provided, the function will be without space context.
|
|
15
|
-
* @returns
|
|
16
|
-
*/
|
|
17
|
-
static fromClient(baseUrl: string, spaceId?: SpaceId): Layer.Layer<RemoteFunctionExecutionService>;
|
|
18
|
-
static mock: () => Context.Tag.Service<RemoteFunctionExecutionService>;
|
|
19
|
-
static layerMock: Layer.Layer<RemoteFunctionExecutionService, never, never>;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=remote-function-execution-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-function-execution-service.d.ts","sourceRoot":"","sources":["../../../../src/services/remote-function-execution-service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;;iBAWzB,CAAC,EAAE,CAAC,sBAAsB,MAAM,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;;AAN9E;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,mCAKjD;IACD;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,8BAA8B,CAAC;IA2BlG,MAAM,CAAC,IAAI,QAAO,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAKnE;IAEF,MAAM,CAAC,SAAS,4DAAwF;CACzG"}
|