retell-sync-cli 3.5.0 → 3.5.1
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 +10 -26
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -135509,12 +135509,8 @@ async function deploy({
|
|
|
135509
135509
|
spinner = createSpinner2(`Deploying ${totalChanges} changes...`);
|
|
135510
135510
|
const updateResults = await Promise.allSettled([
|
|
135511
135511
|
...changes.agents.map(async (change) => {
|
|
135512
|
-
const {
|
|
135513
|
-
|
|
135514
|
-
_version,
|
|
135515
|
-
response_engine: _responseEngine,
|
|
135516
|
-
...updateData
|
|
135517
|
-
} = change.current;
|
|
135512
|
+
const { _id, _version, response_engine, ...baseData } = change.current;
|
|
135513
|
+
const updateData = response_engine.type === "custom-llm" ? { ...baseData, response_engine } : baseData;
|
|
135518
135514
|
await retell.agent.update(_id, updateData);
|
|
135519
135515
|
return { type: "agent", id: _id, name: change.name };
|
|
135520
135516
|
}),
|
|
@@ -135558,16 +135554,10 @@ function computeChanges(local, remote) {
|
|
|
135558
135554
|
const remoteAgent = remoteAgents.get(agent._id);
|
|
135559
135555
|
if (!remoteAgent)
|
|
135560
135556
|
continue;
|
|
135561
|
-
const
|
|
135562
|
-
|
|
135563
|
-
|
|
135564
|
-
|
|
135565
|
-
]);
|
|
135566
|
-
const remoteComparable = n9(remoteAgent, [
|
|
135567
|
-
"_id",
|
|
135568
|
-
"_version",
|
|
135569
|
-
"response_engine"
|
|
135570
|
-
]);
|
|
135557
|
+
const isCustomLlm = agent.response_engine.type === "custom-llm";
|
|
135558
|
+
const omitFields = isCustomLlm ? ["_id", "_version"] : ["_id", "_version", "response_engine"];
|
|
135559
|
+
const localComparable = n9(agent, omitFields);
|
|
135560
|
+
const remoteComparable = n9(remoteAgent, omitFields);
|
|
135571
135561
|
const differences = diff(remoteComparable, localComparable);
|
|
135572
135562
|
if (differences.length > 0) {
|
|
135573
135563
|
changes.agents.push({
|
|
@@ -135817,16 +135807,10 @@ function computeChanges2(draft, published) {
|
|
|
135817
135807
|
});
|
|
135818
135808
|
continue;
|
|
135819
135809
|
}
|
|
135820
|
-
const
|
|
135821
|
-
|
|
135822
|
-
|
|
135823
|
-
|
|
135824
|
-
]);
|
|
135825
|
-
const publishedComparable = n9(publishedAgent, [
|
|
135826
|
-
"_id",
|
|
135827
|
-
"_version",
|
|
135828
|
-
"response_engine"
|
|
135829
|
-
]);
|
|
135810
|
+
const isCustomLlm = agent.response_engine.type === "custom-llm";
|
|
135811
|
+
const omitFields = isCustomLlm ? ["_id", "_version"] : ["_id", "_version", "response_engine"];
|
|
135812
|
+
const draftComparable = n9(agent, omitFields);
|
|
135813
|
+
const publishedComparable = n9(publishedAgent, omitFields);
|
|
135830
135814
|
const differences = diff(publishedComparable, draftComparable);
|
|
135831
135815
|
if (differences.length > 0) {
|
|
135832
135816
|
changes.agents.push({
|