@relayfx/sdk 0.2.9 → 0.2.10
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/ai.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./index-
|
|
2
|
+
import"./index-tpwr0wmj.js";
|
|
3
3
|
import {
|
|
4
4
|
AiError,
|
|
5
5
|
Chat,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
exports_tool_executor,
|
|
35
35
|
exports_tool_output,
|
|
36
36
|
exports_turn_policy
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-fhqr1n44.js";
|
|
38
38
|
|
|
39
39
|
// src/ai.ts
|
|
40
40
|
var relayAiPackage = "@relayfx/sdk/ai";
|
|
@@ -14790,7 +14790,10 @@ var layer44 = Layer58.effect(Service44, Effect65.gen(function* () {
|
|
|
14790
14790
|
...override === undefined ? {} : { override }
|
|
14791
14791
|
}).pipe(Effect65.mapError(mapChildRunError));
|
|
14792
14792
|
}),
|
|
14793
|
-
stream: (input) =>
|
|
14793
|
+
stream: (input) => {
|
|
14794
|
+
const stream3 = eventLog.stream(input).pipe(Stream11.mapError((error5) => mapEventLogError4(error5)));
|
|
14795
|
+
return input.limit === undefined ? stream3 : stream3.pipe(Stream11.take(input.limit));
|
|
14796
|
+
}
|
|
14794
14797
|
});
|
|
14795
14798
|
}));
|
|
14796
14799
|
var memoryLayer39 = layer44.pipe(Layer58.provide(layer39), Layer58.provide(exports_execution_repository.memoryLayer), Layer58.provide(exports_session_repository.memoryLayer), Layer58.provide(exports_child_execution_repository.memoryLayer), Layer58.provide(memoryLayer29), Layer58.provide(ShardingConfig.layer({ runnerAddress: Option21.none() })));
|
|
@@ -14889,7 +14892,7 @@ var TransferInput = Schema73.Struct({
|
|
|
14889
14892
|
input: Schema73.optionalKey(Schema73.Array(exports_content_schema.Part))
|
|
14890
14893
|
}).annotate({ identifier: "Relay.SpawnChildRunTool.TransferInput" });
|
|
14891
14894
|
var ModelInput = Schema73.Struct({
|
|
14892
|
-
preset_name: Schema73.optionalKey(Schema73.String),
|
|
14895
|
+
preset_name: Schema73.optionalKey(Schema73.NullOr(Schema73.String)),
|
|
14893
14896
|
instructions: Schema73.optionalKey(Schema73.String),
|
|
14894
14897
|
model: Schema73.optionalKey(Schema73.NullOr(Schema73.Struct({
|
|
14895
14898
|
provider: Schema73.String,
|
|
@@ -14905,9 +14908,10 @@ var ModelTransferInput = Schema73.Struct({
|
|
|
14905
14908
|
input: Schema73.optionalKey(Schema73.Array(Schema73.Struct({ type: Schema73.Literal("text"), text: Schema73.String })))
|
|
14906
14909
|
});
|
|
14907
14910
|
var normalizeModelInput = (input) => {
|
|
14908
|
-
const { model, output_schema_ref: outputSchemaRef, ...rest } = input;
|
|
14911
|
+
const { preset_name: presetName, model, output_schema_ref: outputSchemaRef, ...rest } = input;
|
|
14909
14912
|
return {
|
|
14910
14913
|
...rest,
|
|
14914
|
+
...presetName === null || presetName === undefined ? {} : { preset_name: presetName },
|
|
14911
14915
|
...model === null || model === undefined ? {} : { model },
|
|
14912
14916
|
...outputSchemaRef === null || outputSchemaRef === undefined ? {} : { output_schema_ref: outputSchemaRef }
|
|
14913
14917
|
};
|
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-tpwr0wmj.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-r8975x1z.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-fhqr1n44.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-r8975x1z.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-fhqr1n44.js";
|
|
50
50
|
// src/sqlite-runtime.ts
|
|
51
51
|
var exports_sqlite_runtime = {};
|
|
52
52
|
__export(exports_sqlite_runtime, {
|
package/package.json
CHANGED