@gscdump/cli 0.29.0 → 0.30.0
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.mjs +11 -5
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ import { z } from "zod";
|
|
|
34
34
|
import { defaultReportRegistry, dryRunReport, formatReport, runReport } from "@gscdump/analysis/report";
|
|
35
35
|
import { resolveWindow } from "@gscdump/engine/period";
|
|
36
36
|
import { collectSpans, inferLegacyTier } from "@gscdump/engine";
|
|
37
|
-
import { DEFAULT_ROLLUPS, rebuildRollups } from "@gscdump/engine/rollups";
|
|
37
|
+
import { CANONICAL_ROLLUPS, DEFAULT_ROLLUPS, rebuildRollups } from "@gscdump/engine/rollups";
|
|
38
38
|
import { filesystemStats } from "@gscdump/engine/filesystem";
|
|
39
39
|
var __defProp = Object.defineProperty;
|
|
40
40
|
var __exportAll = (all, no_symbols) => {
|
|
@@ -136,7 +136,7 @@ function loadEnvFromCwd() {
|
|
|
136
136
|
}
|
|
137
137
|
return applied;
|
|
138
138
|
}
|
|
139
|
-
var version = "0.
|
|
139
|
+
var version = "0.30.0";
|
|
140
140
|
const ALL_SEARCH_TYPES$1 = Object.values(SearchTypes);
|
|
141
141
|
const VERSION = version;
|
|
142
142
|
function noSubcommandSelected(parent, subNames) {
|
|
@@ -6359,14 +6359,20 @@ const rollupsCommand = defineCommand({
|
|
|
6359
6359
|
},
|
|
6360
6360
|
args: {
|
|
6361
6361
|
...OUTPUT_ARGS,
|
|
6362
|
-
site: {
|
|
6362
|
+
"site": {
|
|
6363
6363
|
type: "string",
|
|
6364
6364
|
alias: "s",
|
|
6365
6365
|
description: "Restrict to a single site (default: all sites with local data)"
|
|
6366
|
+
},
|
|
6367
|
+
"with-canonical": {
|
|
6368
|
+
type: "boolean",
|
|
6369
|
+
description: "Also build the opt-in canonical-primary rollups (query_canonical_variants, query_canonical_daily)",
|
|
6370
|
+
default: false
|
|
6366
6371
|
}
|
|
6367
6372
|
},
|
|
6368
6373
|
async run({ args }) {
|
|
6369
6374
|
const { json } = applyOutputMode(args);
|
|
6375
|
+
const defs = args["with-canonical"] ? [...DEFAULT_ROLLUPS, ...CANONICAL_ROLLUPS] : DEFAULT_ROLLUPS;
|
|
6370
6376
|
const store = (await createCommandContext({ needsStore: true })).store;
|
|
6371
6377
|
const explicitSiteId = args.site ? store.siteIdFor(String(args.site)) : void 0;
|
|
6372
6378
|
const allSiteIds = /* @__PURE__ */ new Set();
|
|
@@ -6389,7 +6395,7 @@ const rollupsCommand = defineCommand({
|
|
|
6389
6395
|
const summary = [];
|
|
6390
6396
|
let totalBytes = 0;
|
|
6391
6397
|
for (const siteId of allSiteIds) {
|
|
6392
|
-
logger.info(`Rebuilding rollups for [${siteId}] (${
|
|
6398
|
+
logger.info(`Rebuilding rollups for [${siteId}] (${defs.length} rollups)`);
|
|
6393
6399
|
const results = await rebuildRollups({
|
|
6394
6400
|
engine: {
|
|
6395
6401
|
runSQL: (opts) => store.engine.runSQL(opts),
|
|
@@ -6410,7 +6416,7 @@ const rollupsCommand = defineCommand({
|
|
|
6410
6416
|
userId: store.userId,
|
|
6411
6417
|
siteId
|
|
6412
6418
|
},
|
|
6413
|
-
defs
|
|
6419
|
+
defs
|
|
6414
6420
|
});
|
|
6415
6421
|
const site = {
|
|
6416
6422
|
siteId,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.30.0",
|
|
5
5
|
"description": "CLI for Google Search Console - dump, query, and run MCP server",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"ofetch": "^1.5.1",
|
|
44
44
|
"open": "^11.0.0",
|
|
45
45
|
"zod": "^4.4.3",
|
|
46
|
-
"@gscdump/
|
|
47
|
-
"
|
|
48
|
-
"@gscdump/engine": "0.
|
|
49
|
-
"gscdump": "0.
|
|
46
|
+
"@gscdump/engine": "0.30.0",
|
|
47
|
+
"gscdump": "0.30.0",
|
|
48
|
+
"@gscdump/engine-gsc-api": "0.30.0",
|
|
49
|
+
"@gscdump/analysis": "0.30.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@duckdb/node-api": "1.5.1-r.2",
|