retell-sync-cli 3.13.0 → 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 +16 -9
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -111366,10 +111366,10 @@ var ToolCallResultSchema = exports_external.object({
|
|
|
111366
111366
|
});
|
|
111367
111367
|
var NodeTransitionSchema = exports_external.object({
|
|
111368
111368
|
role: exports_external.literal("node_transition"),
|
|
111369
|
-
former_node_id: exports_external.string(),
|
|
111370
|
-
former_node_name: exports_external.string(),
|
|
111371
|
-
new_node_id: exports_external.string(),
|
|
111372
|
-
new_node_name: exports_external.string(),
|
|
111369
|
+
former_node_id: exports_external.string().optional(),
|
|
111370
|
+
former_node_name: exports_external.string().optional(),
|
|
111371
|
+
new_node_id: exports_external.string().optional(),
|
|
111372
|
+
new_node_name: exports_external.string().optional(),
|
|
111373
111373
|
time_sec: exports_external.number().optional(),
|
|
111374
111374
|
global_transition: exports_external.boolean().optional()
|
|
111375
111375
|
});
|
|
@@ -113706,8 +113706,8 @@ function createCallSchemas(config2) {
|
|
|
113706
113706
|
call_id: exports_external.string(),
|
|
113707
113707
|
agent_id: exports_external.string().optional(),
|
|
113708
113708
|
agent_name: exports_external.string().optional(),
|
|
113709
|
-
agent_version: exports_external.number(),
|
|
113710
|
-
call_status: CallStatusSchema,
|
|
113709
|
+
agent_version: exports_external.number().optional(),
|
|
113710
|
+
call_status: CallStatusSchema.catch("ended"),
|
|
113711
113711
|
metadata: config2.metadata,
|
|
113712
113712
|
retell_llm_dynamic_variables: config2.dynamicVariables,
|
|
113713
113713
|
collected_dynamic_variables: config2.collectedDynamicVariables,
|
|
@@ -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(),
|
|
@@ -134150,7 +134151,7 @@ async function getLocalState({
|
|
|
134150
134151
|
const agentDirName = path15.dirname(agentIdPath);
|
|
134151
134152
|
const agentDirFull = path15.join(agentsDir, agentDirName);
|
|
134152
134153
|
const filesGlob = new Bun.Glob("**/*");
|
|
134153
|
-
for await (const file2 of filesGlob.scan(agentDirFull)) {
|
|
134154
|
+
for await (const file2 of filesGlob.scan({ cwd: agentDirFull, dot: true })) {
|
|
134154
134155
|
const filePath = path15.join(agentDirFull, file2);
|
|
134155
134156
|
const stat2 = await fs8.stat(filePath);
|
|
134156
134157
|
if (stat2.isFile()) {
|
|
@@ -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,
|