@signaliz/sdk 1.0.5 → 1.0.6
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-GF2T2X3W.mjs → chunk-GRVV37LD.mjs} +33 -1
- package/dist/cli.js +33 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +33 -1
- package/dist/index.mjs +1 -1
- package/dist/mcp-config.js +33 -1
- package/dist/mcp-config.mjs +1 -1
- package/package.json +1 -1
|
@@ -933,7 +933,7 @@ function mapStatus(data) {
|
|
|
933
933
|
errors: diagnosticMessages(data.errors),
|
|
934
934
|
artifactCount: data.artifact_count ?? 0,
|
|
935
935
|
providerRoute: mapProviderRoute(data),
|
|
936
|
-
nextAction: data.next_action
|
|
936
|
+
nextAction: formatNextAction(data.next_action),
|
|
937
937
|
createdAt: data.created_at,
|
|
938
938
|
updatedAt: data.updated_at,
|
|
939
939
|
completedAt: data.completed_at
|
|
@@ -973,6 +973,19 @@ function diagnosticMessages(value) {
|
|
|
973
973
|
return typeof record?.message === "string" ? record.message : null;
|
|
974
974
|
}).filter((item) => typeof item === "string" && item.length > 0);
|
|
975
975
|
}
|
|
976
|
+
function formatNextAction(value) {
|
|
977
|
+
if (!value) return "";
|
|
978
|
+
if (typeof value === "string") return value;
|
|
979
|
+
const record = recordOrNull(value);
|
|
980
|
+
if (!record) return "";
|
|
981
|
+
const tool = typeof record.tool === "string" ? record.tool : void 0;
|
|
982
|
+
const type = typeof record.type === "string" ? record.type : void 0;
|
|
983
|
+
const reason = typeof record.reason === "string" ? record.reason : void 0;
|
|
984
|
+
const args = recordOrNull(record.arguments);
|
|
985
|
+
const argText = args && Object.keys(args).length > 0 ? ` ${JSON.stringify(args)}` : "";
|
|
986
|
+
const action = tool ? `${tool}${argText}` : type || "";
|
|
987
|
+
return [action, reason].filter(Boolean).join(" \u2014 ");
|
|
988
|
+
}
|
|
976
989
|
function booleanOrNull(value) {
|
|
977
990
|
return typeof value === "boolean" ? value : null;
|
|
978
991
|
}
|
|
@@ -3852,6 +3865,25 @@ var GtmKernel = class {
|
|
|
3852
3865
|
write_routine_outcomes: input.writeRoutineOutcomes
|
|
3853
3866
|
});
|
|
3854
3867
|
}
|
|
3868
|
+
/** Run a read-only Campaign Audit and persist workspace-scoped failure findings. */
|
|
3869
|
+
async runCampaignAudit(input) {
|
|
3870
|
+
return this.callMcp("gtm_campaign_audit_run", {
|
|
3871
|
+
provider: input.provider,
|
|
3872
|
+
provider_campaign_id: input.providerCampaignId,
|
|
3873
|
+
campaign_id: input.campaignId,
|
|
3874
|
+
campaign_name: input.campaignName,
|
|
3875
|
+
lookback_days: input.lookbackDays,
|
|
3876
|
+
limit_findings: input.limitFindings
|
|
3877
|
+
});
|
|
3878
|
+
}
|
|
3879
|
+
/** Read a persisted Campaign Audit by audit id or campaign id. */
|
|
3880
|
+
async getCampaignAudit(options) {
|
|
3881
|
+
return this.callMcp("gtm_campaign_audit_get", {
|
|
3882
|
+
audit_id: options.auditId,
|
|
3883
|
+
campaign_id: options.campaignId,
|
|
3884
|
+
limit_findings: options.limitFindings
|
|
3885
|
+
});
|
|
3886
|
+
}
|
|
3855
3887
|
/** Normalize Instantly webhook/pull payloads and ingest row-level feedback through the GTM Kernel. */
|
|
3856
3888
|
async syncInstantlyFeedback(input) {
|
|
3857
3889
|
return this.callMcp("gtm_instantly_feedback_sync", {
|
package/dist/cli.js
CHANGED
|
@@ -936,7 +936,7 @@ function mapStatus(data) {
|
|
|
936
936
|
errors: diagnosticMessages(data.errors),
|
|
937
937
|
artifactCount: data.artifact_count ?? 0,
|
|
938
938
|
providerRoute: mapProviderRoute(data),
|
|
939
|
-
nextAction: data.next_action
|
|
939
|
+
nextAction: formatNextAction(data.next_action),
|
|
940
940
|
createdAt: data.created_at,
|
|
941
941
|
updatedAt: data.updated_at,
|
|
942
942
|
completedAt: data.completed_at
|
|
@@ -976,6 +976,19 @@ function diagnosticMessages(value) {
|
|
|
976
976
|
return typeof record?.message === "string" ? record.message : null;
|
|
977
977
|
}).filter((item) => typeof item === "string" && item.length > 0);
|
|
978
978
|
}
|
|
979
|
+
function formatNextAction(value) {
|
|
980
|
+
if (!value) return "";
|
|
981
|
+
if (typeof value === "string") return value;
|
|
982
|
+
const record = recordOrNull(value);
|
|
983
|
+
if (!record) return "";
|
|
984
|
+
const tool = typeof record.tool === "string" ? record.tool : void 0;
|
|
985
|
+
const type = typeof record.type === "string" ? record.type : void 0;
|
|
986
|
+
const reason = typeof record.reason === "string" ? record.reason : void 0;
|
|
987
|
+
const args = recordOrNull(record.arguments);
|
|
988
|
+
const argText = args && Object.keys(args).length > 0 ? ` ${JSON.stringify(args)}` : "";
|
|
989
|
+
const action = tool ? `${tool}${argText}` : type || "";
|
|
990
|
+
return [action, reason].filter(Boolean).join(" \u2014 ");
|
|
991
|
+
}
|
|
979
992
|
function booleanOrNull(value) {
|
|
980
993
|
return typeof value === "boolean" ? value : null;
|
|
981
994
|
}
|
|
@@ -3848,6 +3861,25 @@ var GtmKernel = class {
|
|
|
3848
3861
|
write_routine_outcomes: input.writeRoutineOutcomes
|
|
3849
3862
|
});
|
|
3850
3863
|
}
|
|
3864
|
+
/** Run a read-only Campaign Audit and persist workspace-scoped failure findings. */
|
|
3865
|
+
async runCampaignAudit(input) {
|
|
3866
|
+
return this.callMcp("gtm_campaign_audit_run", {
|
|
3867
|
+
provider: input.provider,
|
|
3868
|
+
provider_campaign_id: input.providerCampaignId,
|
|
3869
|
+
campaign_id: input.campaignId,
|
|
3870
|
+
campaign_name: input.campaignName,
|
|
3871
|
+
lookback_days: input.lookbackDays,
|
|
3872
|
+
limit_findings: input.limitFindings
|
|
3873
|
+
});
|
|
3874
|
+
}
|
|
3875
|
+
/** Read a persisted Campaign Audit by audit id or campaign id. */
|
|
3876
|
+
async getCampaignAudit(options) {
|
|
3877
|
+
return this.callMcp("gtm_campaign_audit_get", {
|
|
3878
|
+
audit_id: options.auditId,
|
|
3879
|
+
campaign_id: options.campaignId,
|
|
3880
|
+
limit_findings: options.limitFindings
|
|
3881
|
+
});
|
|
3882
|
+
}
|
|
3851
3883
|
/** Normalize Instantly webhook/pull payloads and ingest row-level feedback through the GTM Kernel. */
|
|
3852
3884
|
async syncInstantlyFeedback(input) {
|
|
3853
3885
|
return this.callMcp("gtm_instantly_feedback_sync", {
|
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -2408,6 +2408,19 @@ interface GtmFeedbackIngestInput {
|
|
|
2408
2408
|
createMemory?: boolean;
|
|
2409
2409
|
writeRoutineOutcomes?: boolean;
|
|
2410
2410
|
}
|
|
2411
|
+
interface GtmCampaignAuditRunInput {
|
|
2412
|
+
provider: 'instantly' | 'heyreach' | 'smartlead' | 'custom';
|
|
2413
|
+
providerCampaignId?: string;
|
|
2414
|
+
campaignId?: string;
|
|
2415
|
+
campaignName?: string;
|
|
2416
|
+
lookbackDays?: number;
|
|
2417
|
+
limitFindings?: number;
|
|
2418
|
+
}
|
|
2419
|
+
interface GtmCampaignAuditGetOptions {
|
|
2420
|
+
auditId?: string;
|
|
2421
|
+
campaignId?: string;
|
|
2422
|
+
limitFindings?: number;
|
|
2423
|
+
}
|
|
2411
2424
|
interface GtmInstantlyFeedbackSyncInput {
|
|
2412
2425
|
campaignId?: string;
|
|
2413
2426
|
campaignBuildId?: string;
|
|
@@ -3002,6 +3015,10 @@ declare class GtmKernel {
|
|
|
3002
3015
|
logCampaign(campaignId: string, input: Omit<GtmCampaignLogInput, 'campaignId'>): Promise<any>;
|
|
3003
3016
|
/** Ingest provider-neutral feedback from Instantly, Smartlead, HeyReach, webhook, or a custom MCP. */
|
|
3004
3017
|
ingestFeedback(input: GtmFeedbackIngestInput): Promise<any>;
|
|
3018
|
+
/** Run a read-only Campaign Audit and persist workspace-scoped failure findings. */
|
|
3019
|
+
runCampaignAudit(input: GtmCampaignAuditRunInput): Promise<any>;
|
|
3020
|
+
/** Read a persisted Campaign Audit by audit id or campaign id. */
|
|
3021
|
+
getCampaignAudit(options: GtmCampaignAuditGetOptions): Promise<any>;
|
|
3005
3022
|
/** Normalize Instantly webhook/pull payloads and ingest row-level feedback through the GTM Kernel. */
|
|
3006
3023
|
syncInstantlyFeedback(input: GtmInstantlyFeedbackSyncInput): Promise<any>;
|
|
3007
3024
|
/** Start a background Instantly webhook-events pull and route results into the GTM feedback loop. */
|
package/dist/index.d.ts
CHANGED
|
@@ -2408,6 +2408,19 @@ interface GtmFeedbackIngestInput {
|
|
|
2408
2408
|
createMemory?: boolean;
|
|
2409
2409
|
writeRoutineOutcomes?: boolean;
|
|
2410
2410
|
}
|
|
2411
|
+
interface GtmCampaignAuditRunInput {
|
|
2412
|
+
provider: 'instantly' | 'heyreach' | 'smartlead' | 'custom';
|
|
2413
|
+
providerCampaignId?: string;
|
|
2414
|
+
campaignId?: string;
|
|
2415
|
+
campaignName?: string;
|
|
2416
|
+
lookbackDays?: number;
|
|
2417
|
+
limitFindings?: number;
|
|
2418
|
+
}
|
|
2419
|
+
interface GtmCampaignAuditGetOptions {
|
|
2420
|
+
auditId?: string;
|
|
2421
|
+
campaignId?: string;
|
|
2422
|
+
limitFindings?: number;
|
|
2423
|
+
}
|
|
2411
2424
|
interface GtmInstantlyFeedbackSyncInput {
|
|
2412
2425
|
campaignId?: string;
|
|
2413
2426
|
campaignBuildId?: string;
|
|
@@ -3002,6 +3015,10 @@ declare class GtmKernel {
|
|
|
3002
3015
|
logCampaign(campaignId: string, input: Omit<GtmCampaignLogInput, 'campaignId'>): Promise<any>;
|
|
3003
3016
|
/** Ingest provider-neutral feedback from Instantly, Smartlead, HeyReach, webhook, or a custom MCP. */
|
|
3004
3017
|
ingestFeedback(input: GtmFeedbackIngestInput): Promise<any>;
|
|
3018
|
+
/** Run a read-only Campaign Audit and persist workspace-scoped failure findings. */
|
|
3019
|
+
runCampaignAudit(input: GtmCampaignAuditRunInput): Promise<any>;
|
|
3020
|
+
/** Read a persisted Campaign Audit by audit id or campaign id. */
|
|
3021
|
+
getCampaignAudit(options: GtmCampaignAuditGetOptions): Promise<any>;
|
|
3005
3022
|
/** Normalize Instantly webhook/pull payloads and ingest row-level feedback through the GTM Kernel. */
|
|
3006
3023
|
syncInstantlyFeedback(input: GtmInstantlyFeedbackSyncInput): Promise<any>;
|
|
3007
3024
|
/** Start a background Instantly webhook-events pull and route results into the GTM feedback loop. */
|
package/dist/index.js
CHANGED
|
@@ -972,7 +972,7 @@ function mapStatus(data) {
|
|
|
972
972
|
errors: diagnosticMessages(data.errors),
|
|
973
973
|
artifactCount: data.artifact_count ?? 0,
|
|
974
974
|
providerRoute: mapProviderRoute(data),
|
|
975
|
-
nextAction: data.next_action
|
|
975
|
+
nextAction: formatNextAction(data.next_action),
|
|
976
976
|
createdAt: data.created_at,
|
|
977
977
|
updatedAt: data.updated_at,
|
|
978
978
|
completedAt: data.completed_at
|
|
@@ -1012,6 +1012,19 @@ function diagnosticMessages(value) {
|
|
|
1012
1012
|
return typeof record?.message === "string" ? record.message : null;
|
|
1013
1013
|
}).filter((item) => typeof item === "string" && item.length > 0);
|
|
1014
1014
|
}
|
|
1015
|
+
function formatNextAction(value) {
|
|
1016
|
+
if (!value) return "";
|
|
1017
|
+
if (typeof value === "string") return value;
|
|
1018
|
+
const record = recordOrNull(value);
|
|
1019
|
+
if (!record) return "";
|
|
1020
|
+
const tool = typeof record.tool === "string" ? record.tool : void 0;
|
|
1021
|
+
const type = typeof record.type === "string" ? record.type : void 0;
|
|
1022
|
+
const reason = typeof record.reason === "string" ? record.reason : void 0;
|
|
1023
|
+
const args = recordOrNull(record.arguments);
|
|
1024
|
+
const argText = args && Object.keys(args).length > 0 ? ` ${JSON.stringify(args)}` : "";
|
|
1025
|
+
const action = tool ? `${tool}${argText}` : type || "";
|
|
1026
|
+
return [action, reason].filter(Boolean).join(" \u2014 ");
|
|
1027
|
+
}
|
|
1015
1028
|
function booleanOrNull(value) {
|
|
1016
1029
|
return typeof value === "boolean" ? value : null;
|
|
1017
1030
|
}
|
|
@@ -3891,6 +3904,25 @@ var GtmKernel = class {
|
|
|
3891
3904
|
write_routine_outcomes: input.writeRoutineOutcomes
|
|
3892
3905
|
});
|
|
3893
3906
|
}
|
|
3907
|
+
/** Run a read-only Campaign Audit and persist workspace-scoped failure findings. */
|
|
3908
|
+
async runCampaignAudit(input) {
|
|
3909
|
+
return this.callMcp("gtm_campaign_audit_run", {
|
|
3910
|
+
provider: input.provider,
|
|
3911
|
+
provider_campaign_id: input.providerCampaignId,
|
|
3912
|
+
campaign_id: input.campaignId,
|
|
3913
|
+
campaign_name: input.campaignName,
|
|
3914
|
+
lookback_days: input.lookbackDays,
|
|
3915
|
+
limit_findings: input.limitFindings
|
|
3916
|
+
});
|
|
3917
|
+
}
|
|
3918
|
+
/** Read a persisted Campaign Audit by audit id or campaign id. */
|
|
3919
|
+
async getCampaignAudit(options) {
|
|
3920
|
+
return this.callMcp("gtm_campaign_audit_get", {
|
|
3921
|
+
audit_id: options.auditId,
|
|
3922
|
+
campaign_id: options.campaignId,
|
|
3923
|
+
limit_findings: options.limitFindings
|
|
3924
|
+
});
|
|
3925
|
+
}
|
|
3894
3926
|
/** Normalize Instantly webhook/pull payloads and ingest row-level feedback through the GTM Kernel. */
|
|
3895
3927
|
async syncInstantlyFeedback(input) {
|
|
3896
3928
|
return this.callMcp("gtm_instantly_feedback_sync", {
|
package/dist/index.mjs
CHANGED
package/dist/mcp-config.js
CHANGED
|
@@ -964,7 +964,7 @@ function mapStatus(data) {
|
|
|
964
964
|
errors: diagnosticMessages(data.errors),
|
|
965
965
|
artifactCount: data.artifact_count ?? 0,
|
|
966
966
|
providerRoute: mapProviderRoute(data),
|
|
967
|
-
nextAction: data.next_action
|
|
967
|
+
nextAction: formatNextAction(data.next_action),
|
|
968
968
|
createdAt: data.created_at,
|
|
969
969
|
updatedAt: data.updated_at,
|
|
970
970
|
completedAt: data.completed_at
|
|
@@ -1004,6 +1004,19 @@ function diagnosticMessages(value) {
|
|
|
1004
1004
|
return typeof record?.message === "string" ? record.message : null;
|
|
1005
1005
|
}).filter((item) => typeof item === "string" && item.length > 0);
|
|
1006
1006
|
}
|
|
1007
|
+
function formatNextAction(value) {
|
|
1008
|
+
if (!value) return "";
|
|
1009
|
+
if (typeof value === "string") return value;
|
|
1010
|
+
const record = recordOrNull(value);
|
|
1011
|
+
if (!record) return "";
|
|
1012
|
+
const tool = typeof record.tool === "string" ? record.tool : void 0;
|
|
1013
|
+
const type = typeof record.type === "string" ? record.type : void 0;
|
|
1014
|
+
const reason = typeof record.reason === "string" ? record.reason : void 0;
|
|
1015
|
+
const args = recordOrNull(record.arguments);
|
|
1016
|
+
const argText = args && Object.keys(args).length > 0 ? ` ${JSON.stringify(args)}` : "";
|
|
1017
|
+
const action = tool ? `${tool}${argText}` : type || "";
|
|
1018
|
+
return [action, reason].filter(Boolean).join(" \u2014 ");
|
|
1019
|
+
}
|
|
1007
1020
|
function booleanOrNull(value) {
|
|
1008
1021
|
return typeof value === "boolean" ? value : null;
|
|
1009
1022
|
}
|
|
@@ -3876,6 +3889,25 @@ var GtmKernel = class {
|
|
|
3876
3889
|
write_routine_outcomes: input.writeRoutineOutcomes
|
|
3877
3890
|
});
|
|
3878
3891
|
}
|
|
3892
|
+
/** Run a read-only Campaign Audit and persist workspace-scoped failure findings. */
|
|
3893
|
+
async runCampaignAudit(input) {
|
|
3894
|
+
return this.callMcp("gtm_campaign_audit_run", {
|
|
3895
|
+
provider: input.provider,
|
|
3896
|
+
provider_campaign_id: input.providerCampaignId,
|
|
3897
|
+
campaign_id: input.campaignId,
|
|
3898
|
+
campaign_name: input.campaignName,
|
|
3899
|
+
lookback_days: input.lookbackDays,
|
|
3900
|
+
limit_findings: input.limitFindings
|
|
3901
|
+
});
|
|
3902
|
+
}
|
|
3903
|
+
/** Read a persisted Campaign Audit by audit id or campaign id. */
|
|
3904
|
+
async getCampaignAudit(options) {
|
|
3905
|
+
return this.callMcp("gtm_campaign_audit_get", {
|
|
3906
|
+
audit_id: options.auditId,
|
|
3907
|
+
campaign_id: options.campaignId,
|
|
3908
|
+
limit_findings: options.limitFindings
|
|
3909
|
+
});
|
|
3910
|
+
}
|
|
3879
3911
|
/** Normalize Instantly webhook/pull payloads and ingest row-level feedback through the GTM Kernel. */
|
|
3880
3912
|
async syncInstantlyFeedback(input) {
|
|
3881
3913
|
return this.callMcp("gtm_instantly_feedback_sync", {
|
package/dist/mcp-config.mjs
CHANGED