@relayfx/sdk 0.2.7 → 0.2.9

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-kyja7pam.js";
2
+ import"./index-2efzqcg2.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-km48etr2.js";
37
+ } from "./index-89vy9qm7.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-km48etr2.js";
5
+ } from "./index-89vy9qm7.js";
6
6
 
7
7
  // ../ai/src/language-model/language-model-registration.ts
8
8
  var exports_language_model_registration = {};
@@ -14898,18 +14898,19 @@ var ModelInput = Schema73.Struct({
14898
14898
  }))),
14899
14899
  tool_names: Schema73.optionalKey(Schema73.Array(Schema73.String)),
14900
14900
  permissions: Schema73.optionalKey(Schema73.Array(Schema73.String)),
14901
- output_schema_ref: Schema73.optionalKey(Schema73.String),
14902
- metadata: Schema73.optionalKey(Schema73.Record(Schema73.String, Schema73.String)),
14901
+ output_schema_ref: Schema73.optionalKey(Schema73.NullOr(Schema73.String)),
14903
14902
  input: Schema73.optionalKey(Schema73.Array(Schema73.Struct({ type: Schema73.Literal("text"), text: Schema73.String })))
14904
14903
  });
14905
14904
  var ModelTransferInput = Schema73.Struct({
14906
14905
  input: Schema73.optionalKey(Schema73.Array(Schema73.Struct({ type: Schema73.Literal("text"), text: Schema73.String })))
14907
14906
  });
14908
14907
  var normalizeModelInput = (input) => {
14909
- if (input.model !== null)
14910
- return input;
14911
- const { model: _, ...normalized } = input;
14912
- return normalized;
14908
+ const { model, output_schema_ref: outputSchemaRef, ...rest } = input;
14909
+ return {
14910
+ ...rest,
14911
+ ...model === null || model === undefined ? {} : { model },
14912
+ ...outputSchemaRef === null || outputSchemaRef === undefined ? {} : { output_schema_ref: outputSchemaRef }
14913
+ };
14913
14914
  };
14914
14915
  var enabled = (agent) => agent.metadata?.multi_agent_enabled === true;
14915
14916
  var parentContext = (agent) => ({
@@ -48,7 +48,7 @@ import {
48
48
  exports_wait_service,
49
49
  exports_wait_signal,
50
50
  exports_workflow_definition_repository
51
- } from "./index-km48etr2.js";
51
+ } from "./index-89vy9qm7.js";
52
52
 
53
53
  // src/operation.ts
54
54
  var exports_operation = {};
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  exports_language_model_registration
4
- } from "./index-kyja7pam.js";
4
+ } from "./index-2efzqcg2.js";
5
5
  import {
6
6
  Service,
7
7
  exports_client,
8
8
  exports_command,
9
9
  exports_operation
10
- } from "./index-m5hjrbfh.js";
10
+ } from "./index-gb18mkj2.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-km48etr2.js";
62
+ } from "./index-89vy9qm7.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-m5hjrbfh.js";
5
+ } from "./index-gb18mkj2.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-km48etr2.js";
49
+ } from "./index-89vy9qm7.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.7",
4
+ "version": "0.2.9",
5
5
  "description": "Effect-native durable execution SDK for addressable agents and tools",
6
6
  "type": "module",
7
7
  "exports": {