@signaliz/cli 1.0.13 → 1.0.14
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/bin.js +14 -8
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2921,15 +2921,20 @@ async function campaignAgent(sub, rest) {
|
|
|
2921
2921
|
if (!readiness.summary?.ready) process.exitCode = 1;
|
|
2922
2922
|
return output(readiness, () => printCampaignAgentReadiness(readiness));
|
|
2923
2923
|
}
|
|
2924
|
-
const plan = await agent.createPlan(request, planOptions);
|
|
2925
2924
|
if (sub === "proof" || sub === "smoke") {
|
|
2926
|
-
const
|
|
2925
|
+
const proof = typeof agent.proof === "function" ? await agent.proof(request, {
|
|
2926
|
+
...planOptions,
|
|
2927
2927
|
idempotencyKey: commandStringFlag(flags, "idempotency-key")
|
|
2928
|
-
})
|
|
2929
|
-
|
|
2928
|
+
}) : await (async () => {
|
|
2929
|
+
const plan2 = await agent.createPlan(request, planOptions);
|
|
2930
|
+
return createCampaignAgentProofReceipt(plan2, await agent.dryRunPlan(plan2, {
|
|
2931
|
+
idempotencyKey: commandStringFlag(flags, "idempotency-key")
|
|
2932
|
+
}));
|
|
2933
|
+
})();
|
|
2930
2934
|
if (!proof.success) process.exitCode = 1;
|
|
2931
2935
|
return output(proof, () => printCampaignAgentProof(proof));
|
|
2932
2936
|
}
|
|
2937
|
+
const plan = await agent.createPlan(request, planOptions);
|
|
2933
2938
|
if (isCommitPlan) {
|
|
2934
2939
|
const result = await agent.commitPlan(plan, {
|
|
2935
2940
|
confirm: isConfirmedCommit,
|
|
@@ -5746,18 +5751,19 @@ async function simpleJob(cmd, rest) {
|
|
|
5746
5751
|
if (isHelpRequest(rest) || !promptArg(rest) && !flagArg("prompt") && !flagArg("brief") && !flagArg("campaign-brief")) {
|
|
5747
5752
|
process.stdout.write(`signaliz build "campaign brief" [options]
|
|
5748
5753
|
|
|
5749
|
-
|
|
5754
|
+
Run the campaign-agent proof path: strategy memory, Kernel plan, approvals, and
|
|
5755
|
+
a forced build_campaign dry-run without spend or provider writes.
|
|
5750
5756
|
|
|
5751
5757
|
Examples:
|
|
5752
5758
|
signaliz build "Build a campaign for industrial maintenance buyers" --target-count 50
|
|
5753
|
-
signaliz build "
|
|
5759
|
+
signaliz build "Build a strategy-template campaign for local operators" --strategy-template non-medical-home-care --use-local-leads --json
|
|
5754
5760
|
|
|
5755
5761
|
Equivalent:
|
|
5756
|
-
signaliz
|
|
5762
|
+
signaliz campaign-agent proof "campaign brief"
|
|
5757
5763
|
`);
|
|
5758
5764
|
return;
|
|
5759
5765
|
}
|
|
5760
|
-
return
|
|
5766
|
+
return campaignAgent("proof", rest);
|
|
5761
5767
|
}
|
|
5762
5768
|
if (cmd === "connect") {
|
|
5763
5769
|
if (isHelpRequest(rest)) {
|