@erdoai/cli 0.165.0 → 0.166.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/index.js +37 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2044,6 +2044,13 @@ var ErdoClient = class {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
// One decision in full. A slug belonging to another organization reads as 404,
|
|
2046
2046
|
// so it cannot be probed for existence.
|
|
2047
|
+
retireDecision(slug, reason, organization_slug) {
|
|
2048
|
+
return this.request(
|
|
2049
|
+
"POST",
|
|
2050
|
+
`/v1/decisions/${encodeURIComponent(slug)}/retire`,
|
|
2051
|
+
{ reason, organization_slug }
|
|
2052
|
+
);
|
|
2053
|
+
}
|
|
2047
2054
|
getDecision(slug) {
|
|
2048
2055
|
return this.request(
|
|
2049
2056
|
"GET",
|
|
@@ -5123,6 +5130,21 @@ function renderDecision(detail) {
|
|
|
5123
5130
|
console.log(" The approval card could not be loaded.");
|
|
5124
5131
|
}
|
|
5125
5132
|
}
|
|
5133
|
+
decisionsCmd.command("retire <slug>").description("End a standing workstream commitment without changing provider state (admin or owner)").requiredOption("--reason <text>", "why this commitment is no longer applicable").option("--organization <slug>", "target organization, including an authorized managed client").option("--json", "output raw JSON").action(async (slug, opts) => {
|
|
5134
|
+
try {
|
|
5135
|
+
if (!opts.reason.trim()) throw new Error("--reason must not be blank");
|
|
5136
|
+
const result = await new ErdoClient().retireDecision(slug, opts.reason, opts.organization);
|
|
5137
|
+
if (opts.json) {
|
|
5138
|
+
print(result);
|
|
5139
|
+
return;
|
|
5140
|
+
}
|
|
5141
|
+
console.log(`${result.decision.slug} ${result.created ? "retired" : "already ended"}`);
|
|
5142
|
+
if (result.decision.superseded_by_decision_slug) console.log(`Superseded by: ${result.decision.superseded_by_decision_slug}`);
|
|
5143
|
+
if (result.decision.lapsed) console.log(`Lapsed at: ${result.decision.review_by}`);
|
|
5144
|
+
} catch (e) {
|
|
5145
|
+
fail(e);
|
|
5146
|
+
}
|
|
5147
|
+
});
|
|
5126
5148
|
decisionsCmd.command("show <slug>").description(
|
|
5127
5149
|
"Show one decision in full: the commitment and its authority, every exact action it authorized with how each one ended, every declared effect with the evidence that settled it, and what it replaced or was replaced by"
|
|
5128
5150
|
).option("--json", "output raw JSON").action(async (slug, opts) => {
|
|
@@ -6052,6 +6074,9 @@ pagesCmd.command("update <id>").description(
|
|
|
6052
6074
|
).option(
|
|
6053
6075
|
"--build-brief <textOr@file>",
|
|
6054
6076
|
"new judge build brief (or @path to a UTF-8 file; omit to keep current, pass an empty string to clear)"
|
|
6077
|
+
).option(
|
|
6078
|
+
"--kind <kind>",
|
|
6079
|
+
"what the page is for after this update: landing_page, lead_followup_page, dashboard or app (omit to keep current). Set it when a rewrite changes the page's job: Meta and LinkedIn ad tags load only on lead landing pages"
|
|
6055
6080
|
).option(
|
|
6056
6081
|
"--required-modules <csv>",
|
|
6057
6082
|
'replacement runtime module list (comma-separated; "[]" clears)'
|
|
@@ -6071,6 +6096,7 @@ pagesCmd.command("update <id>").description(
|
|
|
6071
6096
|
meta_icon_asset_id: opts.metaIconAsset,
|
|
6072
6097
|
meta_image_asset_id: opts.metaImageAsset,
|
|
6073
6098
|
build_brief: readMaybeFile(opts.buildBrief),
|
|
6099
|
+
artifact_kind: opts.kind,
|
|
6074
6100
|
required_modules: grantList(opts.requiredModules),
|
|
6075
6101
|
dataset_slugs: grantList(opts.datasets),
|
|
6076
6102
|
writable_dataset_slugs: grantList(opts.writableDatasets),
|
|
@@ -8454,10 +8480,12 @@ analytics.command("query <hogql>").description("Run a read-only HogQL query agai
|
|
|
8454
8480
|
var TRACKING_KINDS = [
|
|
8455
8481
|
{ kind: "session_analytics", what: "heatmaps, session replay, and the events behind `erdo analytics query`" },
|
|
8456
8482
|
{ kind: "google_analytics", what: "GA4 measurement" },
|
|
8457
|
-
{ kind: "meta_pixel", what: "cookies visitors so Meta retargeting audiences can be built" },
|
|
8458
|
-
{ kind: "linkedin_insight", what: "cookies visitors so LinkedIn retargeting audiences can be built" }
|
|
8483
|
+
{ kind: "meta_pixel", what: "lead landing pages only: cookies visitors so Meta retargeting audiences can be built" },
|
|
8484
|
+
{ kind: "linkedin_insight", what: "lead landing pages only: cookies visitors so LinkedIn retargeting audiences can be built" }
|
|
8459
8485
|
];
|
|
8460
|
-
analytics.command("tracking").description(
|
|
8486
|
+
analytics.command("tracking").description(
|
|
8487
|
+
"Show which analytics destinations this org has configured for its published pages (Meta and LinkedIn load only on lead landing pages)"
|
|
8488
|
+
).option("--json", "print the raw JSON result instead of a table").action(async (opts) => {
|
|
8461
8489
|
try {
|
|
8462
8490
|
const res = await new ErdoClient().getPageTracking();
|
|
8463
8491
|
if (opts.json) {
|
|
@@ -8482,14 +8510,18 @@ session replay input masking: ${res.mask_inputs ? "on" : "OFF \u2014 form values
|
|
|
8482
8510
|
console.log(`consent: ${res.consent}${res.consent === "required" ? " (recording waits on a consent banner, so thin volume may be the gate, not the traffic)" : ""}`);
|
|
8483
8511
|
if (!byKind.get("meta_pixel")?.enabled) {
|
|
8484
8512
|
console.log(`
|
|
8485
|
-
No Meta pixel is
|
|
8513
|
+
No Meta pixel is configured, so no Meta retargeting audience is accumulating \u2014 page traffic alone does not mean those visitors can be served ads on Meta.`);
|
|
8486
8514
|
}
|
|
8487
8515
|
if (!byKind.get("linkedin_insight")?.enabled) {
|
|
8488
8516
|
console.log(`
|
|
8489
|
-
No LinkedIn Insight Tag is
|
|
8517
|
+
No LinkedIn Insight Tag is configured, so no LinkedIn retargeting audience is accumulating from this traffic.`);
|
|
8490
8518
|
} else if (!byKind.get("linkedin_insight")?.conversion_id) {
|
|
8491
8519
|
console.log(`
|
|
8492
8520
|
The LinkedIn Insight Tag is configured for page views and retargeting; no lead conversion ID is configured.`);
|
|
8521
|
+
}
|
|
8522
|
+
if (byKind.get("meta_pixel")?.enabled || byKind.get("linkedin_insight")?.enabled) {
|
|
8523
|
+
console.log(`
|
|
8524
|
+
This is organization configuration. Meta and LinkedIn tags load only on lead-generation landing pages (a declared landing page, or an undeclared page that owns a lead-capture pipeline); reports, dashboards and follow-up pages carry session analytics and GA4 only.`);
|
|
8493
8525
|
}
|
|
8494
8526
|
console.log(`
|
|
8495
8527
|
Erdo's own page-events beacon is provisioned per page at render time and is not listed above \u2014 it records independently of every vendor here.`);
|