@batonfx/foldkit 0.3.1 → 0.3.3
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/.turbo/turbo-build.log +1 -1
- package/dist/index.js +27 -0
- package/package.json +2 -2
- package/src/chat.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/index.js
CHANGED
|
@@ -38965,6 +38965,18 @@ var entryFromInput = (input, id2, parentId) => {
|
|
|
38965
38965
|
switch (input._tag) {
|
|
38966
38966
|
case "Message":
|
|
38967
38967
|
return { ...base2, _tag: "Message", message: input.message };
|
|
38968
|
+
case "ToolCall":
|
|
38969
|
+
return { ...base2, _tag: "ToolCall", part: input.part };
|
|
38970
|
+
case "ToolResult":
|
|
38971
|
+
return { ...base2, _tag: "ToolResult", part: input.part };
|
|
38972
|
+
case "Memory":
|
|
38973
|
+
return { ...base2, _tag: "Memory", items: input.items };
|
|
38974
|
+
case "Skill":
|
|
38975
|
+
return { ...base2, _tag: "Skill", name: input.name, body: input.body };
|
|
38976
|
+
case "Steering":
|
|
38977
|
+
return { ...base2, _tag: "Steering", message: input.message };
|
|
38978
|
+
case "Handoff":
|
|
38979
|
+
return { ...base2, _tag: "Handoff", target: input.target, summary: input.summary };
|
|
38968
38980
|
case "Compaction":
|
|
38969
38981
|
return { ...base2, _tag: "Compaction", summary: input.summary, firstKeptEntryId: input.firstKeptEntryId };
|
|
38970
38982
|
case "BranchSummary":
|
|
@@ -39122,6 +39134,12 @@ var empty20 = fromSkills([]);
|
|
|
39122
39134
|
class Steering extends exports_Context.Service()("@batonfx/core/Steering") {
|
|
39123
39135
|
}
|
|
39124
39136
|
|
|
39137
|
+
class SteeringQueueFull extends exports_Schema.TaggedErrorClass()("@batonfx/core/SteeringQueueFull", {
|
|
39138
|
+
queue: exports_Schema.Literals(["steering", "followUp"]),
|
|
39139
|
+
capacity: exports_Schema.Number
|
|
39140
|
+
}) {
|
|
39141
|
+
}
|
|
39142
|
+
|
|
39125
39143
|
// ../core/src/tool-context.ts
|
|
39126
39144
|
class ToolContext extends exports_Context.Service()("@batonfx/core/ToolContext") {
|
|
39127
39145
|
}
|
|
@@ -39263,6 +39281,13 @@ var EventSchemaWith = (streamPart, responsePart, toolCall, toolResult) => export
|
|
|
39263
39281
|
call: toolCall,
|
|
39264
39282
|
metadata: OptionalMetadata
|
|
39265
39283
|
}),
|
|
39284
|
+
exports_Schema.Struct({
|
|
39285
|
+
_tag: exports_Schema.tag("SteeringDrained"),
|
|
39286
|
+
turn: exports_Schema.Number,
|
|
39287
|
+
queue: exports_Schema.Literals(["steering", "followUp"]),
|
|
39288
|
+
count: exports_Schema.Number,
|
|
39289
|
+
metadata: OptionalMetadata
|
|
39290
|
+
}),
|
|
39266
39291
|
exports_Schema.Struct({
|
|
39267
39292
|
_tag: exports_Schema.tag("TurnCompleted"),
|
|
39268
39293
|
turn: exports_Schema.Number,
|
|
@@ -39734,6 +39759,8 @@ var applyEvent = (model, event) => {
|
|
|
39734
39759
|
{ ...model, entries: resolveTool(upsertToolCall(model.entries, event.call, "executing"), event.result) },
|
|
39735
39760
|
exports_Option.none()
|
|
39736
39761
|
];
|
|
39762
|
+
case "SteeringDrained":
|
|
39763
|
+
return [model, exports_Option.none()];
|
|
39737
39764
|
case "TurnCompleted":
|
|
39738
39765
|
return [flushStreaming(model), exports_Option.none()];
|
|
39739
39766
|
case "StructuredOutput":
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@batonfx/foldkit",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"typecheck": "bun tsc --noEmit"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@batonfx/transport": "0.3.
|
|
17
|
+
"@batonfx/transport": "0.3.3"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"effect": ">=4.0.0-beta.88 <4.0.1",
|
package/src/chat.ts
CHANGED
|
@@ -590,6 +590,8 @@ const applyEvent = (model: Model, event: Wire.EventType): readonly [Model, Optio
|
|
|
590
590
|
{ ...model, entries: resolveTool(upsertToolCall(model.entries, event.call, "executing"), event.result) },
|
|
591
591
|
Option.none(),
|
|
592
592
|
]
|
|
593
|
+
case "SteeringDrained":
|
|
594
|
+
return [model, Option.none()]
|
|
593
595
|
case "TurnCompleted":
|
|
594
596
|
return [flushStreaming(model), Option.none()]
|
|
595
597
|
case "StructuredOutput":
|