retell-sync-cli 3.0.0 → 3.1.0
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 +15 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -135590,7 +135590,8 @@ async function publishCommand(agentIdArgs, opts, cmd) {
|
|
|
135590
135590
|
await publish({
|
|
135591
135591
|
agentsDir: globalOpts.agentsDir,
|
|
135592
135592
|
configFormat: globalOpts.configFormat,
|
|
135593
|
-
agentIds
|
|
135593
|
+
agentIds,
|
|
135594
|
+
dryRun: opts.dryRun
|
|
135594
135595
|
});
|
|
135595
135596
|
} catch (err) {
|
|
135596
135597
|
if (err instanceof ExitPromptError) {
|
|
@@ -135603,7 +135604,8 @@ async function publishCommand(agentIdArgs, opts, cmd) {
|
|
|
135603
135604
|
async function publish({
|
|
135604
135605
|
agentsDir = DEFAULT_AGENTS_DIR,
|
|
135605
135606
|
configFormat = DEFAULT_CONFIG_FORMAT,
|
|
135606
|
-
agentIds = null
|
|
135607
|
+
agentIds = null,
|
|
135608
|
+
dryRun = false
|
|
135607
135609
|
} = {}) {
|
|
135608
135610
|
const scopeLabel = agentIds ? `${agentIds.length} agent(s)` : "all agents";
|
|
135609
135611
|
console.log(source_default.bold(`Checking ${scopeLabel} for unpublished changes...`));
|
|
@@ -135637,6 +135639,16 @@ async function publish({
|
|
|
135637
135639
|
console.log(source_default.green("All agents are already up to date"));
|
|
135638
135640
|
return;
|
|
135639
135641
|
}
|
|
135642
|
+
if (dryRun) {
|
|
135643
|
+
console.log(source_default.yellow("Dry run mode - no changes will be made"));
|
|
135644
|
+
console.log(source_default.cyan(`
|
|
135645
|
+
Would publish ${pluralize("agent", agentIdsToPublish.size, true)}:`));
|
|
135646
|
+
for (const id2 of agentIdsToPublish) {
|
|
135647
|
+
const name = agentNames.get(id2) ?? id2;
|
|
135648
|
+
console.log(` ${source_default.bold(name)} ${source_default.dim(`(${id2})`)}`);
|
|
135649
|
+
}
|
|
135650
|
+
return;
|
|
135651
|
+
}
|
|
135640
135652
|
console.log(source_default.bold(`Publishing ${pluralize("agent", agentIdsToPublish.size, true)}...`));
|
|
135641
135653
|
spinner = createSpinner(`Publishing ${agentIdsToPublish.size} agents...`);
|
|
135642
135654
|
const publishResults = await Promise.allSettled([...agentIdsToPublish].map(async (id2) => {
|
|
@@ -135812,5 +135824,5 @@ var program2 = new Command;
|
|
|
135812
135824
|
program2.name("retell").description("Retell AI agent management CLI").option("-w, --agents-dir <dir>", "Directory for agent files", DEFAULT_AGENTS_DIR).option("-f, --config-format <format>", `Config file format (${CONFIG_FORMATS.join(", ")})`, DEFAULT_CONFIG_FORMAT);
|
|
135813
135825
|
program2.command("pull [agentIds...]").description("Pull agents from Retell API (always pulls latest draft state)").option("-a, --all", "Pull all agents in the account").option("-s, --select", "Force interactive agent selection").option("-y, --yes", "Skip confirmation prompts").action(pullCommand);
|
|
135814
135826
|
program2.command("deploy [agentIds...]").description("Deploy local changes to Retell draft").option("-a, --all", "Deploy all agents in the account").option("-s, --select", "Force interactive agent selection").option("-n, --dry-run", "Show changes without applying").option("-v, --verbose", "Show full diff details (use with --dry-run)").action(deployCommand);
|
|
135815
|
-
program2.command("publish [agentIds...]").description("Publish agents with unpublished draft changes").option("-a, --all", "Publish all agents in the account").option("-s, --select", "Force interactive agent selection").action(publishCommand);
|
|
135827
|
+
program2.command("publish [agentIds...]").description("Publish agents with unpublished draft changes").option("-a, --all", "Publish all agents in the account").option("-s, --select", "Force interactive agent selection").option("-n, --dry-run", "Show what would be published without publishing").action(publishCommand);
|
|
135816
135828
|
program2.parse();
|