retell-sync-cli 3.13.1 → 3.13.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/dist/cli.js +11 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -114097,7 +114097,8 @@ var FinetuneExampleSchema = exports_external.object({
|
|
|
114097
114097
|
var GlobalNodeSettingSchema = exports_external.object({
|
|
114098
114098
|
condition: exports_external.string().optional(),
|
|
114099
114099
|
positive_finetune_examples: exports_external.array(FinetuneExampleSchema).optional(),
|
|
114100
|
-
negative_finetune_examples: exports_external.array(FinetuneExampleSchema).optional()
|
|
114100
|
+
negative_finetune_examples: exports_external.array(FinetuneExampleSchema).optional(),
|
|
114101
|
+
cool_down: exports_external.number().optional()
|
|
114101
114102
|
});
|
|
114102
114103
|
var FlowNodeSchema = exports_external.object({
|
|
114103
114104
|
id: exports_external.string().optional(),
|
|
@@ -114112,6 +114113,7 @@ var FlowNodeSchema = exports_external.object({
|
|
|
114112
114113
|
edge: FlowEdgeSchema.optional(),
|
|
114113
114114
|
else_edge: FlowEdgeSchema.optional(),
|
|
114114
114115
|
skip_response_edge: FlowEdgeSchema.optional(),
|
|
114116
|
+
always_edge: FlowEdgeSchema.optional(),
|
|
114115
114117
|
start_speaker: StartSpeakerSchema.optional(),
|
|
114116
114118
|
global_node_setting: GlobalNodeSettingSchema.optional(),
|
|
114117
114119
|
finetune_transition_examples: exports_external.array(FinetuneExampleSchema).nullable().optional(),
|
|
@@ -134250,9 +134252,11 @@ async function serializeState(state, { agentsDir = DEFAULT_AGENTS_DIR } = {}) {
|
|
|
134250
134252
|
nodeNameById.set(n7.id, n7.name);
|
|
134251
134253
|
const edgesArray = "edges" in n7 ? n7.edges : undefined;
|
|
134252
134254
|
const singleEdge = "edge" in n7 ? n7.edge : undefined;
|
|
134255
|
+
const alwaysEdge = "always_edge" in n7 ? n7.always_edge : undefined;
|
|
134253
134256
|
const allEdges = [
|
|
134254
134257
|
...edgesArray ?? [],
|
|
134255
|
-
...singleEdge ? [singleEdge] : []
|
|
134258
|
+
...singleEdge ? [singleEdge] : [],
|
|
134259
|
+
...alwaysEdge ? [alwaysEdge] : []
|
|
134256
134260
|
];
|
|
134257
134261
|
for (const edge of allEdges) {
|
|
134258
134262
|
const destId = edge.destination_node_id;
|
|
@@ -134271,7 +134275,11 @@ async function serializeState(state, { agentsDir = DEFAULT_AGENTS_DIR } = {}) {
|
|
|
134271
134275
|
const nodeFileName = `nodes/${nodeName}.md`;
|
|
134272
134276
|
const previous = node.id ? incomingEdges.get(node.id) ?? [] : [];
|
|
134273
134277
|
const nodeEdges = "edges" in node ? node.edges : undefined;
|
|
134274
|
-
const
|
|
134278
|
+
const nodeAlwaysEdge = "always_edge" in node ? node.always_edge : undefined;
|
|
134279
|
+
const next = [
|
|
134280
|
+
...nodeEdges ?? [],
|
|
134281
|
+
...nodeAlwaysEdge ? [nodeAlwaysEdge] : []
|
|
134282
|
+
].map((e30) => e30.destination_node_id ? nodeNameById.get(e30.destination_node_id) : undefined).filter((name) => !!name);
|
|
134275
134283
|
const flowViz = node.name ? createFlowVisualization(node.name, previous, next) : undefined;
|
|
134276
134284
|
files[path15.join(agentDirPath, nodeFileName)] = await writeMarkdown(node.instruction.text, {
|
|
134277
134285
|
nodeId: node.id,
|