@relayfx/sdk 0.2.6 → 0.2.8
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
__export,
|
|
4
4
|
exports_model_registry
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-r0cn6k03.js";
|
|
6
6
|
|
|
7
7
|
// ../ai/src/language-model/language-model-registration.ts
|
|
8
8
|
var exports_language_model_registration = {};
|
|
@@ -24,9 +24,9 @@ __export(exports_language_model_registration, {
|
|
|
24
24
|
anthropic: () => anthropic
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
// ../../node_modules/.bun/@batonfx+providers@0.4.
|
|
27
|
+
// ../../node_modules/.bun/@batonfx+providers@0.4.2/node_modules/@batonfx/providers/dist/anthropic.js
|
|
28
28
|
import { AnthropicClient, AnthropicLanguageModel } from "@effect/ai-anthropic";
|
|
29
|
-
import { Layer } from "effect";
|
|
29
|
+
import { Config, Layer, Redacted } from "effect";
|
|
30
30
|
import { FetchHttpClient } from "effect/unstable/http";
|
|
31
31
|
var anthropic = (input) => exports_model_registry.registrationFromLayer({
|
|
32
32
|
provider: "anthropic",
|
|
@@ -40,15 +40,15 @@ var anthropic = (input) => exports_model_registry.registrationFromLayer({
|
|
|
40
40
|
});
|
|
41
41
|
var anthropicClientLayerConfig = AnthropicClient.layerConfig;
|
|
42
42
|
var withAnthropic = (options) => exports_model_registry.layerFromRegistrationEffects([anthropic(options)]).pipe(Layer.provide(AnthropicClient.layerConfig({ ...options.clientConfig, apiKey: options.apiKey })), Layer.provide(FetchHttpClient.layer));
|
|
43
|
-
// ../../node_modules/.bun/@batonfx+providers@0.4.
|
|
43
|
+
// ../../node_modules/.bun/@batonfx+providers@0.4.2/node_modules/@batonfx/providers/dist/deterministic.js
|
|
44
44
|
import { OpenAiClient as OpenAiClient2 } from "@effect/ai-openai";
|
|
45
45
|
import { Effect, Layer as Layer3, Option, Stream } from "effect";
|
|
46
46
|
import { LanguageModel, Response } from "effect/unstable/ai";
|
|
47
47
|
import { FetchHttpClient as FetchHttpClient3 } from "effect/unstable/http";
|
|
48
48
|
|
|
49
|
-
// ../../node_modules/.bun/@batonfx+providers@0.4.
|
|
49
|
+
// ../../node_modules/.bun/@batonfx+providers@0.4.2/node_modules/@batonfx/providers/dist/openai.js
|
|
50
50
|
import { OpenAiClient, OpenAiLanguageModel } from "@effect/ai-openai";
|
|
51
|
-
import { Layer as Layer2 } from "effect";
|
|
51
|
+
import { Config as Config2, Layer as Layer2, Redacted as Redacted2 } from "effect";
|
|
52
52
|
import { FetchHttpClient as FetchHttpClient2 } from "effect/unstable/http";
|
|
53
53
|
var openAi = (input) => exports_model_registry.registrationFromLayer({
|
|
54
54
|
provider: "openai",
|
|
@@ -63,7 +63,7 @@ var openAi = (input) => exports_model_registry.registrationFromLayer({
|
|
|
63
63
|
var openAiClientLayerConfig = OpenAiClient.layerConfig;
|
|
64
64
|
var withOpenAi = (options) => exports_model_registry.layerFromRegistrationEffects([openAi(options)]).pipe(Layer2.provide(OpenAiClient.layerConfig({ ...options.clientConfig, apiKey: options.apiKey })), Layer2.provide(FetchHttpClient2.layer));
|
|
65
65
|
|
|
66
|
-
// ../../node_modules/.bun/@batonfx+providers@0.4.
|
|
66
|
+
// ../../node_modules/.bun/@batonfx+providers@0.4.2/node_modules/@batonfx/providers/dist/deterministic.js
|
|
67
67
|
var deterministicModelLayer = Layer3.effect(LanguageModel.LanguageModel, LanguageModel.make({
|
|
68
68
|
generateText: () => Effect.succeed([{ type: "text", text: "deterministic response" }]),
|
|
69
69
|
streamText: () => Stream.make(Response.makePart("text-delta", { id: "text", delta: "deterministic response" }))
|
|
@@ -87,9 +87,9 @@ var withOpenAiOrDeterministic = (options) => Layer3.unwrap(Effect.gen(function*
|
|
|
87
87
|
...Option.isSome(openAiRegistration) ? [openAiRegistration.value] : []
|
|
88
88
|
]);
|
|
89
89
|
}));
|
|
90
|
-
// ../../node_modules/.bun/@batonfx+providers@0.4.
|
|
90
|
+
// ../../node_modules/.bun/@batonfx+providers@0.4.2/node_modules/@batonfx/providers/dist/openai-compat.js
|
|
91
91
|
import { OpenAiClient as OpenAiClient3, OpenAiLanguageModel as OpenAiLanguageModel2 } from "@effect/ai-openai-compat";
|
|
92
|
-
import { Config as Config3, Layer as Layer4 } from "effect";
|
|
92
|
+
import { Config as Config3, Layer as Layer4, Redacted as Redacted3 } from "effect";
|
|
93
93
|
import { FetchHttpClient as FetchHttpClient4 } from "effect/unstable/http";
|
|
94
94
|
var openAiCompatible = (input) => exports_model_registry.registrationFromLayer({
|
|
95
95
|
provider: input.provider ?? "openai-compatible",
|
|
@@ -108,9 +108,9 @@ var clientLayerConfig = (options) => OpenAiClient3.layerConfig({
|
|
|
108
108
|
...options.baseUrl === undefined ? {} : { apiUrl: Config3.succeed(options.baseUrl) }
|
|
109
109
|
});
|
|
110
110
|
var withOpenAiCompatible = (options) => exports_model_registry.layerFromRegistrationEffects([openAiCompatible(options)]).pipe(Layer4.provide(clientLayerConfig(options)), Layer4.provide(FetchHttpClient4.layer));
|
|
111
|
-
// ../../node_modules/.bun/@batonfx+providers@0.4.
|
|
111
|
+
// ../../node_modules/.bun/@batonfx+providers@0.4.2/node_modules/@batonfx/providers/dist/openrouter.js
|
|
112
112
|
import { OpenRouterClient, OpenRouterLanguageModel } from "@effect/ai-openrouter";
|
|
113
|
-
import { Layer as Layer5 } from "effect";
|
|
113
|
+
import { Config as Config4, Layer as Layer5, Redacted as Redacted4 } from "effect";
|
|
114
114
|
import { FetchHttpClient as FetchHttpClient5 } from "effect/unstable/http";
|
|
115
115
|
var openRouter = (input) => exports_model_registry.registrationFromLayer({
|
|
116
116
|
provider: "openrouter",
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
exports_language_model_registration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-zfby0gxq.js";
|
|
5
5
|
import {
|
|
6
6
|
Service,
|
|
7
7
|
exports_client,
|
|
8
8
|
exports_command,
|
|
9
9
|
exports_operation
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-dyk0914g.js";
|
|
11
11
|
import {
|
|
12
12
|
Dialect,
|
|
13
13
|
__export,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
fromDbTimestamp,
|
|
60
60
|
fromNullableDbTimestamp,
|
|
61
61
|
timestampParam
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-r0cn6k03.js";
|
|
63
63
|
|
|
64
64
|
// src/adapter-outbox.ts
|
|
65
65
|
var exports_adapter_outbox = {};
|
package/dist/sqlite.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
exports_client,
|
|
4
4
|
exports_operation
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-dyk0914g.js";
|
|
6
6
|
import {
|
|
7
7
|
__export,
|
|
8
8
|
exports_activity_version_registry,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
exports_wait_service,
|
|
47
47
|
exports_workflow_definition_repository,
|
|
48
48
|
exports_workflow_schema
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-r0cn6k03.js";
|
|
50
50
|
// src/sqlite-runtime.ts
|
|
51
51
|
var exports_sqlite_runtime = {};
|
|
52
52
|
__export(exports_sqlite_runtime, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@relayfx/sdk",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"description": "Effect-native durable execution SDK for addressable agents and tools",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"typecheck": "bun tsc --noEmit"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@batonfx/core": "0.4.
|
|
50
|
-
"@batonfx/providers": "0.4.
|
|
49
|
+
"@batonfx/core": "0.4.2",
|
|
50
|
+
"@batonfx/providers": "0.4.2",
|
|
51
51
|
"@effect/ai-anthropic": "4.0.0-beta.93",
|
|
52
52
|
"@effect/ai-openai": "4.0.0-beta.93",
|
|
53
53
|
"@effect/ai-openai-compat": "4.0.0-beta.93",
|