@signaliz/sdk 1.0.7 → 1.0.8
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/{chunk-BHL5NHVO.mjs → chunk-KL6KNOP6.mjs} +19 -0
- package/dist/cli.js +21 -1
- package/dist/cli.mjs +3 -2
- package/dist/index.js +19 -0
- package/dist/index.mjs +1 -1
- package/dist/mcp-config.js +19 -0
- package/dist/mcp-config.mjs +1 -1
- package/package.json +1 -1
|
@@ -2760,6 +2760,17 @@ function createMcpFlow(request, buildRequest, routes, memory, approvals) {
|
|
|
2760
2760
|
readOnly: false,
|
|
2761
2761
|
approvalRequired: approvals.some((approval) => approval.blocking)
|
|
2762
2762
|
});
|
|
2763
|
+
const deliveryApprovalArgs = buildDeliveryApprovalArgs(buildRequest);
|
|
2764
|
+
if (deliveryApprovalArgs) {
|
|
2765
|
+
steps.push({
|
|
2766
|
+
id: "delivery-approval",
|
|
2767
|
+
phase: "delivery",
|
|
2768
|
+
tool: "approve_campaign_delivery",
|
|
2769
|
+
arguments: deliveryApprovalArgs,
|
|
2770
|
+
readOnly: false,
|
|
2771
|
+
approvalRequired: true
|
|
2772
|
+
});
|
|
2773
|
+
}
|
|
2763
2774
|
return steps.map((step) => ({ ...step, arguments: compact(step.arguments) }));
|
|
2764
2775
|
}
|
|
2765
2776
|
function shouldPrepareProviderRoute(route) {
|
|
@@ -3102,6 +3113,14 @@ function buildExecutionPrepareArgs(request, dryRun, confirmSpend) {
|
|
|
3102
3113
|
enhancers: buildArgs2.enhancers
|
|
3103
3114
|
});
|
|
3104
3115
|
}
|
|
3116
|
+
function buildDeliveryApprovalArgs(request) {
|
|
3117
|
+
if (request.delivery?.enabled === false || request.delivery?.approvalRequired === false) return void 0;
|
|
3118
|
+
return compact({
|
|
3119
|
+
campaign_build_id: "<campaign_build_id_from_approved_build>",
|
|
3120
|
+
destination_type: request.delivery?.destinationType ?? "json",
|
|
3121
|
+
destination_config: request.delivery?.destinationConfig
|
|
3122
|
+
});
|
|
3123
|
+
}
|
|
3105
3124
|
function mapBuildResult(data, dryRun) {
|
|
3106
3125
|
return {
|
|
3107
3126
|
campaignBuildId: data.campaign_build_id ?? null,
|
package/dist/cli.js
CHANGED
|
@@ -2766,6 +2766,17 @@ function createMcpFlow(request, buildRequest, routes, memory, approvals) {
|
|
|
2766
2766
|
readOnly: false,
|
|
2767
2767
|
approvalRequired: approvals.some((approval) => approval.blocking)
|
|
2768
2768
|
});
|
|
2769
|
+
const deliveryApprovalArgs = buildDeliveryApprovalArgs(buildRequest);
|
|
2770
|
+
if (deliveryApprovalArgs) {
|
|
2771
|
+
steps.push({
|
|
2772
|
+
id: "delivery-approval",
|
|
2773
|
+
phase: "delivery",
|
|
2774
|
+
tool: "approve_campaign_delivery",
|
|
2775
|
+
arguments: deliveryApprovalArgs,
|
|
2776
|
+
readOnly: false,
|
|
2777
|
+
approvalRequired: true
|
|
2778
|
+
});
|
|
2779
|
+
}
|
|
2769
2780
|
return steps.map((step) => ({ ...step, arguments: compact(step.arguments) }));
|
|
2770
2781
|
}
|
|
2771
2782
|
function shouldPrepareProviderRoute(route) {
|
|
@@ -3108,6 +3119,14 @@ function buildExecutionPrepareArgs(request, dryRun, confirmSpend) {
|
|
|
3108
3119
|
enhancers: buildArgs2.enhancers
|
|
3109
3120
|
});
|
|
3110
3121
|
}
|
|
3122
|
+
function buildDeliveryApprovalArgs(request) {
|
|
3123
|
+
if (request.delivery?.enabled === false || request.delivery?.approvalRequired === false) return void 0;
|
|
3124
|
+
return compact({
|
|
3125
|
+
campaign_build_id: "<campaign_build_id_from_approved_build>",
|
|
3126
|
+
destination_type: request.delivery?.destinationType ?? "json",
|
|
3127
|
+
destination_config: request.delivery?.destinationConfig
|
|
3128
|
+
});
|
|
3129
|
+
}
|
|
3111
3130
|
function mapBuildResult(data, dryRun) {
|
|
3112
3131
|
return {
|
|
3113
3132
|
campaignBuildId: data.campaign_build_id ?? null,
|
|
@@ -6966,7 +6985,8 @@ function createCampaignAgentProofReceipt(plan, result) {
|
|
|
6966
6985
|
recommended_next_actions: [
|
|
6967
6986
|
"Review the plan, approvals, and dry-run result.",
|
|
6968
6987
|
"Use campaign-agent commit-plan --confirm-write only after review.",
|
|
6969
|
-
"Use campaign-agent build-approved only with --confirm-launch, approval identity, approval types, and spend limit."
|
|
6988
|
+
"Use campaign-agent build-approved only with --confirm-launch, approval identity, approval types, and spend limit.",
|
|
6989
|
+
"When an approved build reaches pending_approval, review rows and approve delivery through the Campaigns SDK."
|
|
6970
6990
|
]
|
|
6971
6991
|
};
|
|
6972
6992
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Signaliz,
|
|
4
4
|
createCampaignBuilderAgentRequestTemplate,
|
|
5
5
|
createCampaignBuilderApproval
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KL6KNOP6.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
9
9
|
import { readFileSync, writeFileSync } from "fs";
|
|
@@ -864,7 +864,8 @@ function createCampaignAgentProofReceipt(plan, result) {
|
|
|
864
864
|
recommended_next_actions: [
|
|
865
865
|
"Review the plan, approvals, and dry-run result.",
|
|
866
866
|
"Use campaign-agent commit-plan --confirm-write only after review.",
|
|
867
|
-
"Use campaign-agent build-approved only with --confirm-launch, approval identity, approval types, and spend limit."
|
|
867
|
+
"Use campaign-agent build-approved only with --confirm-launch, approval identity, approval types, and spend limit.",
|
|
868
|
+
"When an approved build reaches pending_approval, review rows and approve delivery through the Campaigns SDK."
|
|
868
869
|
]
|
|
869
870
|
};
|
|
870
871
|
}
|
package/dist/index.js
CHANGED
|
@@ -2809,6 +2809,17 @@ function createMcpFlow(request, buildRequest, routes, memory, approvals) {
|
|
|
2809
2809
|
readOnly: false,
|
|
2810
2810
|
approvalRequired: approvals.some((approval) => approval.blocking)
|
|
2811
2811
|
});
|
|
2812
|
+
const deliveryApprovalArgs = buildDeliveryApprovalArgs(buildRequest);
|
|
2813
|
+
if (deliveryApprovalArgs) {
|
|
2814
|
+
steps.push({
|
|
2815
|
+
id: "delivery-approval",
|
|
2816
|
+
phase: "delivery",
|
|
2817
|
+
tool: "approve_campaign_delivery",
|
|
2818
|
+
arguments: deliveryApprovalArgs,
|
|
2819
|
+
readOnly: false,
|
|
2820
|
+
approvalRequired: true
|
|
2821
|
+
});
|
|
2822
|
+
}
|
|
2812
2823
|
return steps.map((step) => ({ ...step, arguments: compact(step.arguments) }));
|
|
2813
2824
|
}
|
|
2814
2825
|
function shouldPrepareProviderRoute(route) {
|
|
@@ -3151,6 +3162,14 @@ function buildExecutionPrepareArgs(request, dryRun, confirmSpend) {
|
|
|
3151
3162
|
enhancers: buildArgs2.enhancers
|
|
3152
3163
|
});
|
|
3153
3164
|
}
|
|
3165
|
+
function buildDeliveryApprovalArgs(request) {
|
|
3166
|
+
if (request.delivery?.enabled === false || request.delivery?.approvalRequired === false) return void 0;
|
|
3167
|
+
return compact({
|
|
3168
|
+
campaign_build_id: "<campaign_build_id_from_approved_build>",
|
|
3169
|
+
destination_type: request.delivery?.destinationType ?? "json",
|
|
3170
|
+
destination_config: request.delivery?.destinationConfig
|
|
3171
|
+
});
|
|
3172
|
+
}
|
|
3154
3173
|
function mapBuildResult(data, dryRun) {
|
|
3155
3174
|
return {
|
|
3156
3175
|
campaignBuildId: data.campaign_build_id ?? null,
|
package/dist/index.mjs
CHANGED
package/dist/mcp-config.js
CHANGED
|
@@ -2682,6 +2682,17 @@ function createMcpFlow(request, buildRequest, routes, memory, approvals) {
|
|
|
2682
2682
|
readOnly: false,
|
|
2683
2683
|
approvalRequired: approvals.some((approval) => approval.blocking)
|
|
2684
2684
|
});
|
|
2685
|
+
const deliveryApprovalArgs = buildDeliveryApprovalArgs(buildRequest);
|
|
2686
|
+
if (deliveryApprovalArgs) {
|
|
2687
|
+
steps.push({
|
|
2688
|
+
id: "delivery-approval",
|
|
2689
|
+
phase: "delivery",
|
|
2690
|
+
tool: "approve_campaign_delivery",
|
|
2691
|
+
arguments: deliveryApprovalArgs,
|
|
2692
|
+
readOnly: false,
|
|
2693
|
+
approvalRequired: true
|
|
2694
|
+
});
|
|
2695
|
+
}
|
|
2685
2696
|
return steps.map((step) => ({ ...step, arguments: compact(step.arguments) }));
|
|
2686
2697
|
}
|
|
2687
2698
|
function shouldPrepareProviderRoute(route) {
|
|
@@ -3024,6 +3035,14 @@ function buildExecutionPrepareArgs(request, dryRun, confirmSpend) {
|
|
|
3024
3035
|
enhancers: buildArgs2.enhancers
|
|
3025
3036
|
});
|
|
3026
3037
|
}
|
|
3038
|
+
function buildDeliveryApprovalArgs(request) {
|
|
3039
|
+
if (request.delivery?.enabled === false || request.delivery?.approvalRequired === false) return void 0;
|
|
3040
|
+
return compact({
|
|
3041
|
+
campaign_build_id: "<campaign_build_id_from_approved_build>",
|
|
3042
|
+
destination_type: request.delivery?.destinationType ?? "json",
|
|
3043
|
+
destination_config: request.delivery?.destinationConfig
|
|
3044
|
+
});
|
|
3045
|
+
}
|
|
3027
3046
|
function mapBuildResult(data, dryRun) {
|
|
3028
3047
|
return {
|
|
3029
3048
|
campaignBuildId: data.campaign_build_id ?? null,
|
package/dist/mcp-config.mjs
CHANGED