@relayfx/sdk 0.0.42 → 0.0.44

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.
@@ -1,6 +1,6 @@
1
1
  import { Ids, Shared } from "../../schema/index";
2
2
  import { Context, Effect, Layer, Schema } from "effect";
3
- import type { Message } from "effect/unstable/ai/Prompt";
3
+ import type { Message, ToolCallPart, ToolResultPart } from "effect/unstable/ai/Prompt";
4
4
  import { SqlClient } from "effect/unstable/sql/SqlClient";
5
5
  declare const SessionRepositoryError_base: Schema.Class<SessionRepositoryError, Schema.TaggedStruct<"SessionRepositoryError", {
6
6
  readonly message: Schema.String;
@@ -55,6 +55,32 @@ export type AppendSessionEntryInput = {
55
55
  readonly _tag: "Message";
56
56
  readonly message: Message;
57
57
  readonly metadata?: Shared.Metadata;
58
+ } | {
59
+ readonly _tag: "ToolCall";
60
+ readonly part: ToolCallPart;
61
+ readonly metadata?: Shared.Metadata;
62
+ } | {
63
+ readonly _tag: "ToolResult";
64
+ readonly part: ToolResultPart;
65
+ readonly metadata?: Shared.Metadata;
66
+ } | {
67
+ readonly _tag: "Memory";
68
+ readonly items: ReadonlyArray<string>;
69
+ readonly metadata?: Shared.Metadata;
70
+ } | {
71
+ readonly _tag: "Skill";
72
+ readonly name: string;
73
+ readonly body: string;
74
+ readonly metadata?: Shared.Metadata;
75
+ } | {
76
+ readonly _tag: "Steering";
77
+ readonly message: Message;
78
+ readonly metadata?: Shared.Metadata;
79
+ } | {
80
+ readonly _tag: "Handoff";
81
+ readonly target: string;
82
+ readonly summary: string;
83
+ readonly metadata?: Shared.Metadata;
58
84
  } | {
59
85
  readonly _tag: "Compaction";
60
86
  readonly summary: string;
@@ -73,6 +99,56 @@ export type SessionEntryRecord = {
73
99
  readonly message: Message;
74
100
  readonly metadata?: Shared.Metadata;
75
101
  readonly createdAt: number;
102
+ } | {
103
+ readonly id: Ids.SessionEntryId;
104
+ readonly sessionId: Ids.SessionId;
105
+ readonly parentId: Ids.SessionEntryId | null;
106
+ readonly _tag: "ToolCall";
107
+ readonly part: ToolCallPart;
108
+ readonly metadata?: Shared.Metadata;
109
+ readonly createdAt: number;
110
+ } | {
111
+ readonly id: Ids.SessionEntryId;
112
+ readonly sessionId: Ids.SessionId;
113
+ readonly parentId: Ids.SessionEntryId | null;
114
+ readonly _tag: "ToolResult";
115
+ readonly part: ToolResultPart;
116
+ readonly metadata?: Shared.Metadata;
117
+ readonly createdAt: number;
118
+ } | {
119
+ readonly id: Ids.SessionEntryId;
120
+ readonly sessionId: Ids.SessionId;
121
+ readonly parentId: Ids.SessionEntryId | null;
122
+ readonly _tag: "Memory";
123
+ readonly items: ReadonlyArray<string>;
124
+ readonly metadata?: Shared.Metadata;
125
+ readonly createdAt: number;
126
+ } | {
127
+ readonly id: Ids.SessionEntryId;
128
+ readonly sessionId: Ids.SessionId;
129
+ readonly parentId: Ids.SessionEntryId | null;
130
+ readonly _tag: "Skill";
131
+ readonly name: string;
132
+ readonly body: string;
133
+ readonly metadata?: Shared.Metadata;
134
+ readonly createdAt: number;
135
+ } | {
136
+ readonly id: Ids.SessionEntryId;
137
+ readonly sessionId: Ids.SessionId;
138
+ readonly parentId: Ids.SessionEntryId | null;
139
+ readonly _tag: "Steering";
140
+ readonly message: Message;
141
+ readonly metadata?: Shared.Metadata;
142
+ readonly createdAt: number;
143
+ } | {
144
+ readonly id: Ids.SessionEntryId;
145
+ readonly sessionId: Ids.SessionId;
146
+ readonly parentId: Ids.SessionEntryId | null;
147
+ readonly _tag: "Handoff";
148
+ readonly target: string;
149
+ readonly summary: string;
150
+ readonly metadata?: Shared.Metadata;
151
+ readonly createdAt: number;
76
152
  } | {
77
153
  readonly id: Ids.SessionEntryId;
78
154
  readonly sessionId: Ids.SessionId;
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.0.42",
4
+ "version": "0.0.44",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -25,8 +25,8 @@
25
25
  "typecheck": "bun tsc --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@batonfx/core": "0.3.1",
29
- "@batonfx/providers": "0.3.1",
28
+ "@batonfx/core": "0.3.3",
29
+ "@batonfx/providers": "0.3.3",
30
30
  "@effect/ai-anthropic": "4.0.0-beta.93",
31
31
  "@effect/ai-openai": "4.0.0-beta.93",
32
32
  "@effect/ai-openai-compat": "4.0.0-beta.93",