@dxos/functions 0.8.4-main.422d1c7879 → 0.8.4-main.4f23b4e393

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.
Files changed (98) hide show
  1. package/dist/lib/neutral/index.mjs +256 -883
  2. package/dist/lib/neutral/index.mjs.map +4 -4
  3. package/dist/lib/neutral/meta.json +1 -1
  4. package/dist/types/src/index.d.ts +0 -6
  5. package/dist/types/src/index.d.ts.map +1 -1
  6. package/dist/types/src/protocol/functions-ai-http-client.d.ts.map +1 -1
  7. package/dist/types/src/protocol/functions-ai-http-client.test.d.ts +2 -0
  8. package/dist/types/src/protocol/functions-ai-http-client.test.d.ts.map +1 -0
  9. package/dist/types/src/protocol/protocol.d.ts +14 -2
  10. package/dist/types/src/protocol/protocol.d.ts.map +1 -1
  11. package/dist/types/src/sdk.d.ts +3 -4
  12. package/dist/types/src/sdk.d.ts.map +1 -1
  13. package/dist/types/src/services/credentials.d.ts +15 -38
  14. package/dist/types/src/services/credentials.d.ts.map +1 -1
  15. package/dist/types/src/services/function-invocation-service.d.ts +1 -2
  16. package/dist/types/src/services/function-invocation-service.d.ts.map +1 -1
  17. package/dist/types/src/services/index.d.ts +0 -3
  18. package/dist/types/src/services/index.d.ts.map +1 -1
  19. package/dist/types/src/services/queues.d.ts +1 -49
  20. package/dist/types/src/services/queues.d.ts.map +1 -1
  21. package/dist/types/src/services/tracing.d.ts +1 -1
  22. package/dist/types/src/types/index.d.ts +0 -3
  23. package/dist/types/src/types/index.d.ts.map +1 -1
  24. package/dist/types/src/types/url.d.ts +1 -1
  25. package/dist/types/src/types/url.d.ts.map +1 -1
  26. package/dist/types/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +15 -20
  28. package/src/index.ts +0 -6
  29. package/src/protocol/functions-ai-http-client.test.ts +105 -0
  30. package/src/protocol/functions-ai-http-client.ts +75 -1
  31. package/src/protocol/protocol.test.ts +10 -10
  32. package/src/protocol/protocol.ts +200 -45
  33. package/src/sdk.ts +5 -4
  34. package/src/services/credentials.ts +76 -120
  35. package/src/services/function-invocation-service.ts +1 -3
  36. package/src/services/index.ts +0 -3
  37. package/src/services/queues.ts +1 -87
  38. package/src/types/index.ts +0 -3
  39. package/src/types/url.ts +1 -1
  40. package/dist/lib/neutral/Trace.mjs +0 -42
  41. package/dist/lib/neutral/Trace.mjs.map +0 -7
  42. package/dist/lib/neutral/chunk-27Y24OTY.mjs +0 -167
  43. package/dist/lib/neutral/chunk-27Y24OTY.mjs.map +0 -7
  44. package/dist/lib/neutral/chunk-IVDUS56O.mjs +0 -49
  45. package/dist/lib/neutral/chunk-IVDUS56O.mjs.map +0 -7
  46. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +0 -10
  47. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +0 -7
  48. package/dist/lib/neutral/fib-N45KAC7C.mjs +0 -23
  49. package/dist/lib/neutral/fib-N45KAC7C.mjs.map +0 -7
  50. package/dist/lib/neutral/reply-EUEPKNJF.mjs +0 -19
  51. package/dist/lib/neutral/reply-EUEPKNJF.mjs.map +0 -7
  52. package/dist/lib/neutral/sleep-PUK3D4FF.mjs +0 -15
  53. package/dist/lib/neutral/sleep-PUK3D4FF.mjs.map +0 -7
  54. package/dist/types/src/Trace.d.ts +0 -174
  55. package/dist/types/src/Trace.d.ts.map +0 -1
  56. package/dist/types/src/errors.d.ts +0 -121
  57. package/dist/types/src/errors.d.ts.map +0 -1
  58. package/dist/types/src/example/definitions.d.ts +0 -11
  59. package/dist/types/src/example/definitions.d.ts.map +0 -1
  60. package/dist/types/src/example/fib.d.ts +0 -8
  61. package/dist/types/src/example/fib.d.ts.map +0 -1
  62. package/dist/types/src/example/forex-effect.d.ts +0 -3
  63. package/dist/types/src/example/forex-effect.d.ts.map +0 -1
  64. package/dist/types/src/example/index.d.ts +0 -4
  65. package/dist/types/src/example/index.d.ts.map +0 -1
  66. package/dist/types/src/example/reply.d.ts +0 -4
  67. package/dist/types/src/example/reply.d.ts.map +0 -1
  68. package/dist/types/src/example/sleep.d.ts +0 -6
  69. package/dist/types/src/example/sleep.d.ts.map +0 -1
  70. package/dist/types/src/process/Process.d.ts +0 -246
  71. package/dist/types/src/process/Process.d.ts.map +0 -1
  72. package/dist/types/src/process/ServiceResolver.d.ts +0 -74
  73. package/dist/types/src/process/ServiceResolver.d.ts.map +0 -1
  74. package/dist/types/src/process/StorageService.d.ts +0 -58
  75. package/dist/types/src/process/StorageService.d.ts.map +0 -1
  76. package/dist/types/src/services/event-logger.d.ts +0 -77
  77. package/dist/types/src/services/event-logger.d.ts.map +0 -1
  78. package/dist/types/src/types/Script.d.ts +0 -22
  79. package/dist/types/src/types/Script.d.ts.map +0 -1
  80. package/dist/types/src/types/Trigger.d.ts +0 -150
  81. package/dist/types/src/types/Trigger.d.ts.map +0 -1
  82. package/dist/types/src/types/TriggerEvent.d.ts +0 -75
  83. package/dist/types/src/types/TriggerEvent.d.ts.map +0 -1
  84. package/src/Trace.ts +0 -225
  85. package/src/errors.ts +0 -21
  86. package/src/example/definitions.ts +0 -49
  87. package/src/example/fib.ts +0 -23
  88. package/src/example/forex-effect.ts +0 -40
  89. package/src/example/index.ts +0 -12
  90. package/src/example/reply.ts +0 -19
  91. package/src/example/sleep.ts +0 -17
  92. package/src/process/Process.ts +0 -487
  93. package/src/process/ServiceResolver.ts +0 -174
  94. package/src/process/StorageService.ts +0 -99
  95. package/src/services/event-logger.ts +0 -111
  96. package/src/types/Script.ts +0 -38
  97. package/src/types/Trigger.ts +0 -207
  98. package/src/types/TriggerEvent.ts +0 -62
@@ -1,23 +0,0 @@
1
- import {
2
- Fibonacci
3
- } from "./chunk-IVDUS56O.mjs";
4
- import "./chunk-J5LGTIGS.mjs";
5
-
6
- // src/example/fib.ts
7
- import * as Effect from "effect/Effect";
8
- import { Operation } from "@dxos/operation";
9
- var fib_default = Fibonacci.pipe(Operation.withHandler(Effect.fn(function* ({ iterations = 1e5 }) {
10
- let a = 0n;
11
- let b = 1n;
12
- for (let i = 0; i < iterations; i++) {
13
- a += b;
14
- b = a - b;
15
- }
16
- return {
17
- result: a.toString()
18
- };
19
- })));
20
- export {
21
- fib_default as default
22
- };
23
- //# sourceMappingURL=fib-N45KAC7C.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/example/fib.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/operation';\n\nimport { Fibonacci } from './definitions';\n\nexport default Fibonacci.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ iterations = 100_000 }) {\n let a = 0n;\n let b = 1n;\n for (let i = 0; i < iterations; i++) {\n a += b;\n b = a - b;\n }\n return { result: a.toString() };\n }),\n ),\n);\n"],
5
- "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAI1B,IAAA,cAAeC,UAAUC,KACvBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,aAAa,IAAO,GAAE;AAC3C,MAAIC,IAAI;AACR,MAAIC,IAAI;AACR,WAASC,IAAI,GAAGA,IAAIH,YAAYG,KAAK;AACnCF,SAAKC;AACLA,QAAID,IAAIC;EACV;AACA,SAAO;IAAEE,QAAQH,EAAEI,SAAQ;EAAG;AAChC,CAAA,CAAA,CAAA;",
6
- "names": ["Effect", "Operation", "Fibonacci", "pipe", "Operation", "withHandler", "fn", "iterations", "a", "b", "i", "result", "toString"]
7
- }
@@ -1,19 +0,0 @@
1
- import {
2
- Reply
3
- } from "./chunk-IVDUS56O.mjs";
4
- import "./chunk-J5LGTIGS.mjs";
5
-
6
- // src/example/reply.ts
7
- import * as Console from "effect/Console";
8
- import * as Effect from "effect/Effect";
9
- import { Operation } from "@dxos/operation";
10
- var reply_default = Reply.pipe(Operation.withHandler(Effect.fn(function* (input) {
11
- yield* Console.log("reply", {
12
- input
13
- });
14
- return input;
15
- })));
16
- export {
17
- reply_default as default
18
- };
19
- //# sourceMappingURL=reply-EUEPKNJF.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/example/reply.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Console from 'effect/Console';\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/operation';\n\nimport { Reply } from './definitions';\n\nexport default Reply.pipe(\n Operation.withHandler(\n Effect.fn(function* (input) {\n yield* Console.log('reply', { input });\n return input;\n }),\n ),\n);\n"],
5
- "mappings": ";;;;;;AAIA,YAAYA,aAAa;AACzB,YAAYC,YAAY;AAExB,SAASC,iBAAiB;AAI1B,IAAA,gBAAeC,MAAMC,KACnBC,UAAUC,YACDC,UAAG,WAAWC,OAAK;AACxB,SAAeC,YAAI,SAAS;IAAED;EAAM,CAAA;AACpC,SAAOA;AACT,CAAA,CAAA,CAAA;",
6
- "names": ["Console", "Effect", "Operation", "Reply", "pipe", "Operation", "withHandler", "fn", "input", "log"]
7
- }
@@ -1,15 +0,0 @@
1
- import {
2
- Sleep
3
- } from "./chunk-IVDUS56O.mjs";
4
- import "./chunk-J5LGTIGS.mjs";
5
-
6
- // src/example/sleep.ts
7
- import * as Effect from "effect/Effect";
8
- import { Operation } from "@dxos/operation";
9
- var sleep_default = Sleep.pipe(Operation.withHandler(Effect.fn(function* ({ duration = 1e5 }) {
10
- yield* Effect.sleep(duration);
11
- })));
12
- export {
13
- sleep_default as default
14
- };
15
- //# sourceMappingURL=sleep-PUK3D4FF.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/example/sleep.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/operation';\n\nimport { Sleep } from './definitions';\n\nexport default Sleep.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ duration = 100_000 }) {\n yield* Effect.sleep(duration);\n }),\n ),\n);\n"],
5
- "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAI1B,IAAA,gBAAeC,MAAMC,KACnBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,WAAW,IAAO,GAAE;AACzC,SAAcC,aAAMD,QAAAA;AACtB,CAAA,CAAA,CAAA;",
6
- "names": ["Effect", "Operation", "Sleep", "pipe", "Operation", "withHandler", "fn", "duration", "sleep"]
7
- }
@@ -1,174 +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
- /**
7
- * Writes ephemeral or persistent events to the trace.
8
- * Exposed to processes and operations to record events to the trace.
9
- */
10
- export interface TraceWriter {
11
- write<T>(eventType: EventType<T>, payload: NoInfer<T>): void;
12
- }
13
- declare const TraceService_base: Context.TagClass<TraceService, "@dxos/functions/TraceService", TraceWriter>;
14
- /**
15
- * Service that writes events to the trace.
16
- * Exposed to processes and operations to record events to the trace.
17
- */
18
- export declare class TraceService extends TraceService_base {
19
- }
20
- /**
21
- * Writes an event to the trace.
22
- */
23
- export declare const write: <T>(eventType: EventType<T>, payload: NoInfer<T>) => Effect.Effect<void, never, TraceService>;
24
- /**
25
- * Defines an event type for the trace.
26
- */
27
- export interface EventType<T> {
28
- readonly key: string;
29
- readonly schema: Schema.Schema<T, any>;
30
- readonly isEphemeral: boolean;
31
- }
32
- export declare const EventType: <T>(key: string, opts: {
33
- schema: Schema.Schema<T, any>;
34
- isEphemeral: boolean;
35
- }) => EventType<T>;
36
- /**
37
- * Extracts the payload type from an event type.
38
- */
39
- export type PayloadType<E extends EventType<any>> = E extends EventType<infer T> ? T : never;
40
- export declare const Event: Schema.Struct<{
41
- timestamp: typeof Schema.Number;
42
- type: typeof Schema.String;
43
- data: typeof Schema.Unknown;
44
- }>;
45
- export interface Event extends Schema.Schema.Type<typeof Event> {
46
- }
47
- /**
48
- * Checks if an event is of a given type.
49
- */
50
- export declare const isOfType: <T, E extends Event>(eventType: EventType<T>, event: E) => event is E & {
51
- data: T;
52
- };
53
- /**
54
- * Metadata on the context of a trace message.
55
- */
56
- export declare const Meta: Schema.Struct<{
57
- pid: Schema.optional<typeof Schema.String>;
58
- parentPid: Schema.optional<typeof Schema.String>;
59
- processName: Schema.optional<typeof Schema.String>;
60
- /**
61
- * ID of the conversation feed object if present.
62
- */
63
- conversationId: Schema.optional<import("@dxos/keys").ObjectIdClass>;
64
- /**
65
- * ID of the trigger object if invocation resulted from a trigger.
66
- */
67
- triggerId: Schema.optional<import("@dxos/keys").ObjectIdClass>;
68
- /**
69
- * ID of the tool call that created the current process.
70
- */
71
- toolCallId: Schema.optional<typeof Schema.String>;
72
- }>;
73
- export interface Meta extends Schema.Schema.Type<typeof Meta> {
74
- }
75
- /**
76
- * Envelope for a set of events.
77
- */
78
- export declare const MessageData: Schema.Struct<{
79
- meta: Schema.Struct<{
80
- pid: Schema.optional<typeof Schema.String>;
81
- parentPid: Schema.optional<typeof Schema.String>;
82
- processName: Schema.optional<typeof Schema.String>;
83
- /**
84
- * ID of the conversation feed object if present.
85
- */
86
- conversationId: Schema.optional<import("@dxos/keys").ObjectIdClass>;
87
- /**
88
- * ID of the trigger object if invocation resulted from a trigger.
89
- */
90
- triggerId: Schema.optional<import("@dxos/keys").ObjectIdClass>;
91
- /**
92
- * ID of the tool call that created the current process.
93
- */
94
- toolCallId: Schema.optional<typeof Schema.String>;
95
- }>;
96
- isEphemeral: typeof Schema.Boolean;
97
- events: Schema.Array$<Schema.Struct<{
98
- timestamp: typeof Schema.Number;
99
- type: typeof Schema.String;
100
- data: typeof Schema.Unknown;
101
- }>>;
102
- }>;
103
- export interface MessageData extends Schema.Schema.Type<typeof MessageData> {
104
- }
105
- export declare const Message: Type.Obj<{
106
- readonly meta: {
107
- readonly pid?: string | undefined;
108
- readonly parentPid?: string | undefined;
109
- readonly processName?: string | undefined;
110
- readonly conversationId?: string | undefined;
111
- readonly triggerId?: string | undefined;
112
- readonly toolCallId?: string | undefined;
113
- };
114
- readonly isEphemeral: boolean;
115
- readonly events: readonly {
116
- readonly timestamp: number;
117
- readonly type: string;
118
- readonly data: unknown;
119
- }[];
120
- }, Schema.Struct.Fields>;
121
- export interface Message extends Schema.Schema.Type<typeof Message> {
122
- }
123
- /**
124
- * Sink for complete trace messages.
125
- */
126
- export interface Sink {
127
- write(message: Message): void;
128
- }
129
- declare const TraceSink_base: Context.TagClass<TraceSink, "@dxos/functions/TraceSink", Sink>;
130
- /**
131
- * Sink for complete trace messages.
132
- * The Process Manager forwards trace messages to it.
133
- */
134
- export declare class TraceSink extends TraceSink_base {
135
- }
136
- export declare const noopWriter: TraceWriter;
137
- export declare const writerLayerNoop: Layer.Layer<TraceService>;
138
- export declare const layerNoop: Layer.Layer<TraceSink>;
139
- export declare const layerConsole: Layer.Layer<TraceSink>;
140
- export declare const testTraceService: (opts?: {
141
- meta?: Meta;
142
- }) => Layer.Layer<TraceService, never, TraceSink>;
143
- /**
144
- * Outcome of an operation invocation.
145
- */
146
- export type OperationOutcome = 'success' | 'failure';
147
- /**
148
- * Operation invocation started.
149
- */
150
- export declare const OperationStart: EventType<{
151
- readonly key: string;
152
- readonly name?: string | undefined;
153
- }>;
154
- /**
155
- * Operation invocation ended.
156
- */
157
- export declare const OperationEnd: EventType<{
158
- readonly key: string;
159
- readonly name?: string | undefined;
160
- readonly outcome: "success" | "failure";
161
- readonly error?: string | undefined;
162
- }>;
163
- /**
164
- * Human-readable status update emitted by an agent or operation.
165
- */
166
- export declare const StatusUpdate: EventType<{
167
- readonly message: string;
168
- }>;
169
- /**
170
- * Emit the current human-readable execution status to the trace.
171
- */
172
- export declare const emitStatus: (message: string) => Effect.Effect<void, never, TraceService>;
173
- export {};
174
- //# sourceMappingURL=Trace.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Trace.d.ts","sourceRoot":"","sources":["../../../src/Trace.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,OA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AY,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,CAI9C,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,OAAM;IAAE,IAAI,CAAC,EAAE,IAAI,CAAA;CAAO,KAAG,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,EAAE,SAAS,CAiBrG,CAAC;AAMJ;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,cAAc;;;EAQzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;EAYvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;EAMvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CACnD,CAAC"}
@@ -1,121 +0,0 @@
1
- import { BaseError, type BaseErrorOptions } from '@dxos/errors';
2
- declare const ServiceNotAvailableError_base: {
3
- new (options?: BaseErrorOptions): {
4
- name: "ServiceNotAvailable";
5
- context: Record<string, unknown>;
6
- readonly message: string;
7
- readonly _tag: "ServiceNotAvailable";
8
- stack?: string;
9
- cause?: unknown;
10
- };
11
- name: "ServiceNotAvailable";
12
- is(error: unknown): error is BaseError;
13
- wrap(options?: Omit<BaseErrorOptions, "cause"> & {
14
- ifTypeDiffers?: boolean;
15
- }): (error: unknown) => {
16
- name: "ServiceNotAvailable";
17
- context: Record<string, unknown>;
18
- readonly message: string;
19
- readonly _tag: "ServiceNotAvailable";
20
- stack?: string;
21
- cause?: unknown;
22
- };
23
- extend<Name extends string = string>(name: Name, message?: string): any;
24
- isError(error: unknown): error is Error;
25
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
26
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
27
- stackTraceLimit: number;
28
- };
29
- export declare class ServiceNotAvailableError extends ServiceNotAvailableError_base {
30
- constructor(service: string, options?: Omit<BaseErrorOptions, 'context'>);
31
- }
32
- declare const FunctionNotFoundError_base: {
33
- new (options?: BaseErrorOptions): {
34
- name: "FunctionNotFound";
35
- context: Record<string, unknown>;
36
- readonly message: string;
37
- readonly _tag: "FunctionNotFound";
38
- stack?: string;
39
- cause?: unknown;
40
- };
41
- name: "FunctionNotFound";
42
- is(error: unknown): error is BaseError;
43
- wrap(options?: Omit<BaseErrorOptions, "cause"> & {
44
- ifTypeDiffers?: boolean;
45
- }): (error: unknown) => {
46
- name: "FunctionNotFound";
47
- context: Record<string, unknown>;
48
- readonly message: string;
49
- readonly _tag: "FunctionNotFound";
50
- stack?: string;
51
- cause?: unknown;
52
- };
53
- extend<Name extends string = string>(name: Name, message?: string): any;
54
- isError(error: unknown): error is Error;
55
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
56
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
57
- stackTraceLimit: number;
58
- };
59
- export declare class FunctionNotFoundError extends FunctionNotFoundError_base {
60
- constructor(functionKey: string, options?: Omit<BaseErrorOptions, 'context'>);
61
- }
62
- declare const FunctionError_base: {
63
- new (options?: BaseErrorOptions): {
64
- name: "FunctionError";
65
- context: Record<string, unknown>;
66
- readonly message: string;
67
- readonly _tag: "FunctionError";
68
- stack?: string;
69
- cause?: unknown;
70
- };
71
- name: "FunctionError";
72
- is(error: unknown): error is BaseError;
73
- wrap(options?: Omit<BaseErrorOptions, "cause"> & {
74
- ifTypeDiffers?: boolean;
75
- }): (error: unknown) => {
76
- name: "FunctionError";
77
- context: Record<string, unknown>;
78
- readonly message: string;
79
- readonly _tag: "FunctionError";
80
- stack?: string;
81
- cause?: unknown;
82
- };
83
- extend<Name extends string = string>(name: Name, message?: string): any;
84
- isError(error: unknown): error is Error;
85
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
86
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
87
- stackTraceLimit: number;
88
- };
89
- export declare class FunctionError extends FunctionError_base {
90
- }
91
- declare const TriggerStateNotFoundError_base: {
92
- new (options?: BaseErrorOptions): {
93
- name: "TriggerStateNotFound";
94
- context: Record<string, unknown>;
95
- readonly message: string;
96
- readonly _tag: "TriggerStateNotFound";
97
- stack?: string;
98
- cause?: unknown;
99
- };
100
- name: "TriggerStateNotFound";
101
- is(error: unknown): error is BaseError;
102
- wrap(options?: Omit<BaseErrorOptions, "cause"> & {
103
- ifTypeDiffers?: boolean;
104
- }): (error: unknown) => {
105
- name: "TriggerStateNotFound";
106
- context: Record<string, unknown>;
107
- readonly message: string;
108
- readonly _tag: "TriggerStateNotFound";
109
- stack?: string;
110
- cause?: unknown;
111
- };
112
- extend<Name extends string = string>(name: Name, message?: string): any;
113
- isError(error: unknown): error is Error;
114
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
115
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
116
- stackTraceLimit: number;
117
- };
118
- export declare class TriggerStateNotFoundError extends TriggerStateNotFoundError_base {
119
- }
120
- export {};
121
- //# 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;;;;;;;;;;;;;qBAiB8L,CAAC;;;;;;;;;;;;;;;AAf/P,qBAAa,wBAAyB,SAAQ,6BAAgE;gBAChG,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC;CAGzE;;;;;;;;;;;;;qBAW6P,CAAC;;;;;;;;;;;;;;;AAT/P,qBAAa,qBAAsB,SAAQ,0BAA0D;gBACvF,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC;CAG7E;;;;;;;;;;;;;qBAK6P,CAAC;;;;;;;;;;;;;;;AAH/P,qBAAa,aAAc,SAAQ,kBAA8D;CAAG;;;;;;;;;;;;;qBAG0J,CAAC;;;;;;;;;;;;;;;AAD/P,qBAAa,yBAA0B,SAAQ,8BAAmE;CAAG"}
@@ -1,11 +0,0 @@
1
- import { Operation } from '@dxos/operation';
2
- export declare const Fibonacci: Operation.Definition<{
3
- readonly iterations?: number | undefined;
4
- }, {
5
- readonly result: string;
6
- }, never>;
7
- export declare const Reply: Operation.Definition<any, any, never>;
8
- export declare const Sleep: Operation.Definition<{
9
- readonly duration?: number | undefined;
10
- }, void, never>;
11
- //# sourceMappingURL=definitions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../src/example/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,eAAO,MAAM,SAAS;;;;SAepB,CAAC;AAEH,eAAO,MAAM,KAAK,uCAQhB,CAAC;AAEH,eAAO,MAAM,KAAK;;eAahB,CAAC"}
@@ -1,8 +0,0 @@
1
- import { Operation } from '@dxos/operation';
2
- declare const _default: Operation.WithHandler<Operation.Definition<{
3
- readonly iterations?: number | undefined;
4
- }, {
5
- readonly result: string;
6
- }, never>>;
7
- export default _default;
8
- //# sourceMappingURL=fib.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fib.d.ts","sourceRoot":"","sources":["../../../../src/example/fib.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;;;;;;AAI5C,wBAYE"}
@@ -1,3 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
3
- //# sourceMappingURL=forex-effect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"forex-effect.d.ts","sourceRoot":"","sources":["../../../../src/example/forex-effect.ts"],"names":[],"mappings":";AAeA,wBAwBG"}
@@ -1,4 +0,0 @@
1
- import { OperationHandlerSet } from '@dxos/operation';
2
- export * from './definitions';
3
- export declare const ExampleHandlers: OperationHandlerSet.OperationHandlerSet;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/example/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,cAAc,eAAe,CAAC;AAE9B,eAAO,MAAM,eAAe,yCAI3B,CAAC"}
@@ -1,4 +0,0 @@
1
- import { Operation } from '@dxos/operation';
2
- declare const _default: Operation.WithHandler<Operation.Definition<any, any, never>>;
3
- export default _default;
4
- //# sourceMappingURL=reply.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reply.d.ts","sourceRoot":"","sources":["../../../../src/example/reply.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;;AAI5C,wBAOE"}
@@ -1,6 +0,0 @@
1
- import { Operation } from '@dxos/operation';
2
- declare const _default: Operation.WithHandler<Operation.Definition<{
3
- readonly duration?: number | undefined;
4
- }, void, never>>;
5
- export default _default;
6
- //# sourceMappingURL=sleep.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../../../src/example/sleep.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;;;;AAI5C,wBAME"}