@dxos/functions 0.8.4-main.c85a9c8dae → 0.8.4-main.d05673bc65
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/dist/lib/neutral/index.mjs +6 -6
- package/dist/lib/neutral/index.mjs.map +2 -2
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/types/src/services/event-logger.d.ts.map +1 -1
- package/dist/types/src/types/Trigger.d.ts.map +1 -1
- package/dist/types/src/types/url.d.ts +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/src/example/forex-effect.ts +1 -1
- package/src/services/event-logger.ts +1 -1
- package/src/types/Function.ts +1 -1
- package/src/types/Script.ts +1 -1
- package/src/types/Trigger.ts +2 -1
- package/src/types/url.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/functions",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.d05673bc65",
|
|
4
4
|
"description": "Functions API.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
"@effect/ai-anthropic": "0.23.0",
|
|
30
30
|
"@effect/platform": "0.94.4",
|
|
31
31
|
"effect": "3.19.16",
|
|
32
|
-
"@dxos/
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/types": "0.8.4-main.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
32
|
+
"@dxos/context": "0.8.4-main.d05673bc65",
|
|
33
|
+
"@dxos/ai": "0.8.4-main.d05673bc65",
|
|
34
|
+
"@dxos/echo": "0.8.4-main.d05673bc65",
|
|
35
|
+
"@dxos/echo-db": "0.8.4-main.d05673bc65",
|
|
36
|
+
"@dxos/effect": "0.8.4-main.d05673bc65",
|
|
37
|
+
"@dxos/errors": "0.8.4-main.d05673bc65",
|
|
38
|
+
"@dxos/invariant": "0.8.4-main.d05673bc65",
|
|
39
|
+
"@dxos/log": "0.8.4-main.d05673bc65",
|
|
40
|
+
"@dxos/node-std": "0.8.4-main.d05673bc65",
|
|
41
|
+
"@dxos/protocols": "0.8.4-main.d05673bc65",
|
|
42
|
+
"@dxos/types": "0.8.4-main.d05673bc65",
|
|
43
|
+
"@dxos/operation": "0.8.4-main.d05673bc65",
|
|
44
|
+
"@dxos/schema": "0.8.4-main.d05673bc65",
|
|
45
|
+
"@dxos/keys": "0.8.4-main.d05673bc65"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { Effect, Schedule } from 'https://esm.sh/effect@3.17.0?bundle=false';
|
|
15
15
|
|
|
16
16
|
export default defineFunction({
|
|
17
|
-
key: 'dxos.
|
|
17
|
+
key: 'org.dxos.script.forex-effect',
|
|
18
18
|
name: 'Forex Effect',
|
|
19
19
|
description: 'Returns the exchange rate between two currencies.',
|
|
20
20
|
|
|
@@ -52,7 +52,7 @@ export type ComputeEventPayload = Schema.Schema.Type<typeof ComputeEventPayload>
|
|
|
52
52
|
|
|
53
53
|
export const ComputeEvent = Schema.Struct({
|
|
54
54
|
payload: ComputeEventPayload,
|
|
55
|
-
}).pipe(Type.object({ typename: 'dxos.
|
|
55
|
+
}).pipe(Type.object({ typename: 'org.dxos.type.compute-event', version: '0.1.0' }));
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* Logs event for the compute workflows.
|
package/src/types/Function.ts
CHANGED
|
@@ -51,7 +51,7 @@ export const Function = Schema.Struct({
|
|
|
51
51
|
binding: Schema.optional(Schema.String),
|
|
52
52
|
}).pipe(
|
|
53
53
|
Type.object({
|
|
54
|
-
typename: 'dxos.
|
|
54
|
+
typename: 'org.dxos.type.function',
|
|
55
55
|
version: '0.1.0',
|
|
56
56
|
}),
|
|
57
57
|
Annotation.LabelAnnotation.set(['name']),
|
package/src/types/Script.ts
CHANGED
|
@@ -20,7 +20,7 @@ export const Script = Schema.Struct({
|
|
|
20
20
|
source: Ref.Ref(Text.Text).pipe(FormInputAnnotation.set(false)),
|
|
21
21
|
}).pipe(
|
|
22
22
|
Type.object({
|
|
23
|
-
typename: 'dxos.
|
|
23
|
+
typename: 'org.dxos.type.script',
|
|
24
24
|
version: '0.1.0',
|
|
25
25
|
}),
|
|
26
26
|
Annotation.LabelAnnotation.set(['name']),
|
package/src/types/Trigger.ts
CHANGED
|
@@ -25,6 +25,7 @@ export const EmailSpec = Schema.Struct({
|
|
|
25
25
|
});
|
|
26
26
|
export type EmailSpec = Schema.Schema.Type<typeof EmailSpec>;
|
|
27
27
|
|
|
28
|
+
// TODO(wittjosiah): Remove. Migrate to Subscription triggers once EDGE supports them for feed queries.
|
|
28
29
|
export const QueueSpec = Schema.Struct({
|
|
29
30
|
kind: Schema.Literal('queue').annotations(kindLiteralAnnotations),
|
|
30
31
|
|
|
@@ -140,7 +141,7 @@ const TriggerSchema = Schema.Struct({
|
|
|
140
141
|
input: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
|
|
141
142
|
}).pipe(
|
|
142
143
|
Type.object({
|
|
143
|
-
typename: 'dxos.
|
|
144
|
+
typename: 'org.dxos.type.trigger',
|
|
144
145
|
version: '0.1.0',
|
|
145
146
|
}),
|
|
146
147
|
Annotation.IconAnnotation.set({ icon: 'ph--lightning--regular', hue: 'yellow' }),
|
package/src/types/url.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { type Obj } from '@dxos/echo';
|
|
6
6
|
|
|
7
7
|
// TODO: use URL scheme for source?
|
|
8
|
-
export const FUNCTIONS_META_KEY = 'dxos.
|
|
8
|
+
export const FUNCTIONS_META_KEY = 'org.dxos.service.function';
|
|
9
9
|
|
|
10
|
-
export const FUNCTIONS_PRESET_META_KEY = 'dxos.
|
|
10
|
+
export const FUNCTIONS_PRESET_META_KEY = 'org.dxos.service.function-preset';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* NOTE: functionId is backend ID, not ECHO object id.
|