@relayfx/sdk 0.2.5 → 0.2.6

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-pw4pwy28.js";
2
+ import"./index-5vvma5c3.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-wa9tmzad.js";
37
+ } from "./index-e4zcj5d4.js";
38
38
 
39
39
  // src/ai.ts
40
40
  var relayAiPackage = "@relayfx/sdk/ai";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  __export,
4
4
  exports_model_registry
5
- } from "./index-wa9tmzad.js";
5
+ } from "./index-e4zcj5d4.js";
6
6
 
7
7
  // ../ai/src/language-model/language-model-registration.ts
8
8
  var exports_language_model_registration = {};
@@ -48,7 +48,7 @@ import {
48
48
  exports_wait_service,
49
49
  exports_wait_signal,
50
50
  exports_workflow_definition_repository
51
- } from "./index-wa9tmzad.js";
51
+ } from "./index-e4zcj5d4.js";
52
52
 
53
53
  // src/operation.ts
54
54
  var exports_operation = {};
@@ -14897,11 +14897,11 @@ var TransferInput = Schema73.Struct({
14897
14897
  var ModelInput = Schema73.Struct({
14898
14898
  preset_name: Schema73.optionalKey(Schema73.String),
14899
14899
  instructions: Schema73.optionalKey(Schema73.String),
14900
- model: Schema73.optionalKey(Schema73.Struct({
14900
+ model: Schema73.optionalKey(Schema73.NullOr(Schema73.Struct({
14901
14901
  provider: Schema73.String,
14902
14902
  model: Schema73.String,
14903
14903
  registration_key: Schema73.optionalKey(Schema73.String)
14904
- })),
14904
+ }))),
14905
14905
  tool_names: Schema73.optionalKey(Schema73.Array(Schema73.String)),
14906
14906
  permissions: Schema73.optionalKey(Schema73.Array(Schema73.String)),
14907
14907
  output_schema_ref: Schema73.optionalKey(Schema73.String),
@@ -14911,6 +14911,12 @@ var ModelInput = Schema73.Struct({
14911
14911
  var ModelTransferInput = Schema73.Struct({
14912
14912
  input: Schema73.optionalKey(Schema73.Array(Schema73.Struct({ type: Schema73.Literal("text"), text: Schema73.String })))
14913
14913
  });
14914
+ var normalizeModelInput = (input) => {
14915
+ if (input.model !== null)
14916
+ return input;
14917
+ const { model: _, ...normalized } = input;
14918
+ return normalized;
14919
+ };
14914
14920
  var enabled = (agent) => agent.metadata?.multi_agent_enabled === true;
14915
14921
  var parentContext = (agent) => ({
14916
14922
  ...agent.instructions === undefined ? {} : { instructions: agent.instructions },
@@ -15079,7 +15085,7 @@ var registeredTool2 = (config) => tool(toolName2, {
15079
15085
  permissions: [{ name: permissionName2, value: true }],
15080
15086
  requiredPermissions: [permissionName2],
15081
15087
  metadata: { relay_core_tool: true },
15082
- run: (input, context) => Schema73.decodeUnknownEffect(Input2)(input).pipe(Effect66.flatMap((decoded) => run3(config, toolName2, decoded, context, true)))
15088
+ run: (input, context) => Schema73.decodeUnknownEffect(Input2)(normalizeModelInput(input)).pipe(Effect66.flatMap((decoded) => run3(config, toolName2, decoded, context, true)))
15083
15089
  });
15084
15090
  var transferToolName2 = (name) => `transfer_to_${name.trim().toLowerCase().replaceAll(/[^a-z0-9]+/g, "_").replaceAll(/^_+|_+$/g, "")}`;
15085
15091
  var transferTools = (config) => (config.agent.handoff_targets ?? []).map((target) => {
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  exports_language_model_registration
4
- } from "./index-pw4pwy28.js";
4
+ } from "./index-5vvma5c3.js";
5
5
  import {
6
6
  Service,
7
7
  exports_client,
8
8
  exports_command,
9
9
  exports_operation
10
- } from "./index-4dv9n6af.js";
10
+ } from "./index-dztz6stt.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-wa9tmzad.js";
62
+ } from "./index-e4zcj5d4.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-4dv9n6af.js";
5
+ } from "./index-dztz6stt.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-wa9tmzad.js";
49
+ } from "./index-e4zcj5d4.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.5",
4
+ "version": "0.2.6",
5
5
  "description": "Effect-native durable execution SDK for addressable agents and tools",
6
6
  "type": "module",
7
7
  "exports": {