@gscdump/cli 0.19.4 → 0.19.7

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.
Files changed (2) hide show
  1. package/dist/index.mjs +29 -3
  2. package/package.json +6 -6
package/dist/index.mjs CHANGED
@@ -122,7 +122,7 @@ function loadEnvFromCwd() {
122
122
  }
123
123
  return applied;
124
124
  }
125
- var version = "0.19.4";
125
+ var version = "0.19.7";
126
126
  const ALL_SEARCH_TYPES$1 = Object.values(SearchTypes);
127
127
  const VERSION = version;
128
128
  function noSubcommandSelected(parent, subNames) {
@@ -5475,7 +5475,20 @@ const rollupsCommand = defineCommand({
5475
5475
  for (const siteId of allSiteIds) {
5476
5476
  logger.info(`Rebuilding rollups for [${siteId}] (${DEFAULT_ROLLUPS.length} rollups)`);
5477
5477
  const results = await rebuildRollups({
5478
- engine: store.engine,
5478
+ engine: {
5479
+ runSQL: (opts) => store.engine.runSQL(opts),
5480
+ listPartitions: async ({ ctx, table, searchType }) => {
5481
+ return (await store.engine.listLive({
5482
+ userId: ctx.userId,
5483
+ ...ctx.siteId !== void 0 ? { siteId: ctx.siteId } : {},
5484
+ table,
5485
+ ...searchType !== void 0 ? { searchType } : {}
5486
+ })).map((e) => ({
5487
+ partition: e.partition,
5488
+ bytes: e.bytes
5489
+ }));
5490
+ }
5491
+ },
5479
5492
  dataSource: store.dataSource,
5480
5493
  ctx: {
5481
5494
  userId: store.userId,
@@ -6131,7 +6144,20 @@ const syncCommand = defineCommand({
6131
6144
  if (!quiet) logger.info(`Rebuilding rollups for [${siteId}] (${DEFAULT_ROLLUPS.length} rollups)…`);
6132
6145
  const rollupStart = Date.now();
6133
6146
  const results = await rebuildRollups({
6134
- engine: store.engine,
6147
+ engine: {
6148
+ runSQL: (opts) => store.engine.runSQL(opts),
6149
+ listPartitions: async ({ ctx, table, searchType }) => {
6150
+ return (await store.engine.listLive({
6151
+ userId: ctx.userId,
6152
+ ...ctx.siteId !== void 0 ? { siteId: ctx.siteId } : {},
6153
+ table,
6154
+ ...searchType !== void 0 ? { searchType } : {}
6155
+ })).map((e) => ({
6156
+ partition: e.partition,
6157
+ bytes: e.bytes
6158
+ }));
6159
+ }
6160
+ },
6135
6161
  dataSource: store.dataSource,
6136
6162
  ctx: {
6137
6163
  userId: store.userId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/cli",
3
3
  "type": "module",
4
- "version": "0.19.4",
4
+ "version": "0.19.7",
5
5
  "description": "CLI for Google Search Console - dump, query, and run MCP server",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -42,11 +42,11 @@
42
42
  "google-auth-library": "^10.6.2",
43
43
  "ofetch": "^1.5.1",
44
44
  "open": "^11.0.0",
45
- "@gscdump/analysis": "0.19.4",
46
- "@gscdump/engine-gsc-api": "0.19.4",
47
- "@gscdump/mcp": "0.19.4",
48
- "gscdump": "0.19.4",
49
- "@gscdump/engine": "0.19.4"
45
+ "@gscdump/analysis": "0.19.7",
46
+ "@gscdump/engine": "0.19.7",
47
+ "@gscdump/engine-gsc-api": "0.19.7",
48
+ "@gscdump/mcp": "0.19.7",
49
+ "gscdump": "0.19.7"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@duckdb/node-api": "1.5.1-r.2",