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