@letterstory/cli 0.81.0 → 0.81.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/lib/cli.mjs +1 -2
- package/lib/commands/phantom.mjs +18 -1
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./commands.mjs";
|
|
58
58
|
|
|
59
59
|
// Keep in sync with cli/package.json.
|
|
60
|
-
export const VERSION = "0.81.
|
|
60
|
+
export const VERSION = "0.81.1";
|
|
61
61
|
|
|
62
62
|
// Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
|
|
63
63
|
// can't accidentally swallow the id as --json's value.
|
|
@@ -929,7 +929,6 @@ Mail:
|
|
|
929
929
|
|
|
930
930
|
Insights:
|
|
931
931
|
insights summary [--period …] [--part <block>]... Measure Overview: AI named/cited rates, share of voice, search, targets
|
|
932
|
-
insights competitors [--period 14d|30d|90d] GEO → Competitors: share of mentions per brand, is it moving, by engine/question
|
|
933
932
|
insights site [--period 14d|30d|90d] [--collection <uuid>]
|
|
934
933
|
insights post <article-id> [--period 14d|30d|90d]
|
|
935
934
|
insights top [--period 14d|30d|90d] [--collection <uuid>] [--limit <n>] [--sort clicks|impressions]
|
package/lib/commands/phantom.mjs
CHANGED
|
@@ -79,12 +79,27 @@ export const ARGS = {
|
|
|
79
79
|
value: (flags) =>
|
|
80
80
|
flags.layout === undefined ? undefined : flags.layout === "none" ? null : String(flags.layout),
|
|
81
81
|
},
|
|
82
|
+
maverick_enabled: { flag: "maverick", type: "bool", negate: "no-maverick" },
|
|
83
|
+
// `--maverick-customer-id none` clears it (identification back to pending).
|
|
84
|
+
maverick_customer_id: {
|
|
85
|
+
value: (flags) =>
|
|
86
|
+
flags["maverick-customer-id"] === undefined
|
|
87
|
+
? undefined
|
|
88
|
+
: flags["maverick-customer-id"] === "none"
|
|
89
|
+
? null
|
|
90
|
+
: String(flags["maverick-customer-id"]),
|
|
91
|
+
},
|
|
82
92
|
},
|
|
83
93
|
},
|
|
84
94
|
collection: { value: (flags) => readJsonObjectFlag(flags, "collection-config") },
|
|
85
95
|
configure: { flag: "configure", type: "bool" },
|
|
86
96
|
dry_run: { flag: "dry-run", type: "bool" },
|
|
87
97
|
},
|
|
98
|
+
// `phantom visitors [phantom-id]` — the id is optional (omit for every opted-in site).
|
|
99
|
+
get_phantom_visitors: {
|
|
100
|
+
phantom_id: { value: (flags, positionals) => positionals[0] },
|
|
101
|
+
limit: { flag: "limit", type: "num" },
|
|
102
|
+
},
|
|
88
103
|
delete_phantom: { phantom_id: { positional: 0, label: "phantom-id", required: true } },
|
|
89
104
|
rebuild_phantom: { phantom_id: { positional: 0, label: "phantom-id", required: true } },
|
|
90
105
|
get_phantom_diagnostics: { phantom_id: { positional: 0, label: "phantom-id", required: true } },
|
|
@@ -118,6 +133,8 @@ export async function cmdPhantom(ctx) {
|
|
|
118
133
|
return phantomCreate(rest);
|
|
119
134
|
case "config":
|
|
120
135
|
return phantomConfig(rest);
|
|
136
|
+
case "visitors":
|
|
137
|
+
return call(rest, "get_phantom_visitors");
|
|
121
138
|
case "delete":
|
|
122
139
|
case "rm":
|
|
123
140
|
if (rest.flags.yes !== true) {
|
|
@@ -136,7 +153,7 @@ export async function cmdPhantom(ctx) {
|
|
|
136
153
|
return phantomDomain(rest);
|
|
137
154
|
default:
|
|
138
155
|
throw new CliError(
|
|
139
|
-
`Unknown phantom subcommand: ${sub ?? "(none)"}. Try: list, get, new, config, delete, rebuild, diagnostics, balance, domain`
|
|
156
|
+
`Unknown phantom subcommand: ${sub ?? "(none)"}. Try: list, get, new, config, visitors, delete, rebuild, diagnostics, balance, domain`
|
|
140
157
|
);
|
|
141
158
|
}
|
|
142
159
|
}
|