@letterstory/cli 0.177.132 → 0.177.134
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/README.md +1 -1
- package/lib/cli.mjs +2 -2
- package/lib/commands/insights.mjs +5 -1
- package/lib/commands/log.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -833,7 +833,7 @@ image generation, which is why the fan-out is capped at four models.
|
|
|
833
833
|
Search Console performance, network-wide, per post, or top posts:
|
|
834
834
|
|
|
835
835
|
```bash
|
|
836
|
-
letterstory insights site [--period 14d|30d|90d] [--collection <uuid>]
|
|
836
|
+
letterstory insights site [--period 14d|30d|90d] [--collection <uuid>] [--scope site|posts]
|
|
837
837
|
letterstory insights post <article-id> [--period 14d|30d|90d]
|
|
838
838
|
letterstory insights top [--period 14d|30d|90d] [--collection <uuid>] [--limit <n>] [--sort clicks|impressions]
|
|
839
839
|
```
|
package/lib/cli.mjs
CHANGED
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
94
94
|
|
|
95
95
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
96
|
-
export const VERSION = "0.177.
|
|
96
|
+
export const VERSION = "0.177.134";
|
|
97
97
|
|
|
98
98
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
99
99
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -1936,7 +1936,7 @@ Insights:
|
|
|
1936
1936
|
insights properties Search Console properties the connected Google account can read, the
|
|
1937
1937
|
unverified ones, and the one tracked
|
|
1938
1938
|
insights property <site-url> Pick the Search Console property to track (a key minted by an admin)
|
|
1939
|
-
insights site [--period 14d|30d|90d] [--collection <uuid>]
|
|
1939
|
+
insights site [--period 14d|30d|90d] [--collection <uuid>] [--scope site|posts]
|
|
1940
1940
|
insights post <article-id> [--period 14d|30d|90d]
|
|
1941
1941
|
insights top [--period 14d|30d|90d] [--collection <uuid>] [--limit <n>] [--sort clicks|impressions]
|
|
1942
1942
|
insights bank [--source phantoms|marketing|all] [--phantom <uuid>]... [--period 14d|30d|90d] [--answers <n>]
|
|
@@ -152,7 +152,11 @@ export async function cmdInsights(ctx) {
|
|
|
152
152
|
|
|
153
153
|
async function insightsSite(ctx) {
|
|
154
154
|
const { client, flags, io } = ctx;
|
|
155
|
-
const args = compact({
|
|
155
|
+
const args = compact({
|
|
156
|
+
period: flagStr(flags.period),
|
|
157
|
+
collection_id: flagStr(flags.collection),
|
|
158
|
+
scope: flagStr(flags.scope),
|
|
159
|
+
});
|
|
156
160
|
const result = await client.callTool("get_site_performance", args);
|
|
157
161
|
printResult(io, flags, result);
|
|
158
162
|
return 0;
|
package/lib/commands/log.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// `log` — the Log from a terminal (docs/architecture/letter-log.md): what Letter did for the org, newest first.
|
|
2
2
|
// A thin wrapper over get_letter_log, the function the app's Log page calls.
|
|
3
3
|
//
|
|
4
|
-
// letterstory log [--kinds published,change_merged] [--limit <n>] [--before <ISO>]
|
|
4
|
+
// letterstory log [--kinds published,change_merged] [--goal seo|geo|agent_conviction|inbound_conversion] [--limit <n>] [--before <ISO>]
|
|
5
5
|
// letterstory log --all-orgs [--with-internal] staff: every org's (get_global_log)
|
|
6
6
|
|
|
7
7
|
import { argsFromFlags, printResult } from "./shared.mjs";
|
|
@@ -13,7 +13,7 @@ const page = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export const ARGS = {
|
|
16
|
-
get_letter_log: page,
|
|
16
|
+
get_letter_log: { ...page, goal: { flag: "goal" } },
|
|
17
17
|
get_global_log: { ...page, customer_only: { flag: "with-internal", type: "bool", invert: true } },
|
|
18
18
|
};
|
|
19
19
|
|