@gscdump/cli 1.4.11 → 1.5.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/analysis-local.mjs +1 -1
- package/dist/auth.mjs +1 -1
- package/dist/commands/auth.mjs +1 -1
- package/dist/commands/doctor.mjs +1 -1
- package/dist/commands/dump.mjs +1 -1
- package/dist/commands/export.mjs +1 -1
- package/dist/commands/init.mjs +1 -1
- package/dist/commands/profile.mjs +2 -2
- package/dist/config.mjs +1 -1
- package/dist/env-file.mjs +1 -1
- package/dist/package.mjs +1 -1
- package/dist/runtime.mjs +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +7 -13
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs +0 -2
package/dist/analysis-local.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { logger } from "./utils.mjs";
|
|
|
2
2
|
import { createLocalStore } from "./local-store.mjs";
|
|
3
3
|
import { createCommandContext } from "./context.mjs";
|
|
4
4
|
import { LocalStoreUnsupportedError } from "./error-handler.mjs";
|
|
5
|
-
import { join } from "node:path";
|
|
6
5
|
import process from "node:process";
|
|
7
6
|
import { readdir } from "node:fs/promises";
|
|
7
|
+
import { join } from "node:path";
|
|
8
8
|
import { defaultAnalyzerRegistry } from "@gscdump/analysis/registry";
|
|
9
9
|
import { AnalyzerCapabilityError, createEngineQuerySource, runAnalyzerFromSource } from "@gscdump/analysis";
|
|
10
10
|
import { createGscApiQuerySource } from "@gscdump/engine-gsc-api";
|
package/dist/auth.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { getConfigDir, loadConfig } from "./config.mjs";
|
|
|
2
2
|
import { pickCliEnvironmentValue, resolveCliEnvironment } from "./environment.mjs";
|
|
3
3
|
import { displayPath, logger } from "./utils.mjs";
|
|
4
4
|
import { getAppliedEnvKeys, getLoadedEnvPath } from "./env-file.mjs";
|
|
5
|
-
import path from "node:path";
|
|
6
5
|
import process from "node:process";
|
|
7
6
|
import fs from "node:fs/promises";
|
|
7
|
+
import path from "node:path";
|
|
8
8
|
import { isCancel, text } from "@clack/prompts";
|
|
9
9
|
import { err, ok, unwrapResult } from "gscdump/result";
|
|
10
10
|
import { createAuth } from "gscdump";
|
package/dist/commands/auth.mjs
CHANGED
|
@@ -3,9 +3,9 @@ import { OUTPUT_ARGS, applyOutputMode, logger, noSubcommandSelected } from "../u
|
|
|
3
3
|
import { adoptCurrentConfigAsProfile, profileNameFromEmail, resolveActiveProfile } from "./profile.mjs";
|
|
4
4
|
import { authenticate, clearTokens, formatAuthProvenance, getAuth, getAuthCredentials, loadServiceAccount, loadTokens, resolveBYOK, saveTokens } from "../auth.mjs";
|
|
5
5
|
import { runSmokeTest } from "./init.mjs";
|
|
6
|
-
import path from "node:path";
|
|
7
6
|
import process from "node:process";
|
|
8
7
|
import { defineCommand } from "citty";
|
|
8
|
+
import path from "node:path";
|
|
9
9
|
import { hasGscWriteScope, hasIndexingScope } from "gscdump";
|
|
10
10
|
import { ofetch } from "ofetch";
|
|
11
11
|
const AUTH_SUBCOMMANDS = [
|
package/dist/commands/doctor.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import { parseEnvFile } from "../env-file.mjs";
|
|
|
5
5
|
import { loadTokens, resolveAuth, resolveBYOK } from "../auth.mjs";
|
|
6
6
|
import { createLocalStore } from "../local-store.mjs";
|
|
7
7
|
import { createCommandContext } from "../context.mjs";
|
|
8
|
-
import path from "node:path";
|
|
9
8
|
import process from "node:process";
|
|
10
9
|
import { defineCommand } from "citty";
|
|
11
10
|
import fs from "node:fs/promises";
|
|
11
|
+
import path from "node:path";
|
|
12
12
|
import { googleSearchConsole, hasGscWriteScope, hasIndexingScope } from "gscdump";
|
|
13
13
|
import { ofetch } from "ofetch";
|
|
14
14
|
const REQUIRED_SCOPES = [
|
package/dist/commands/dump.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import { ALL_SEARCH_TYPES, OUTPUT_ARGS, applyOutputMode, displayPath, logger, pa
|
|
|
2
2
|
import { allTables } from "../local-store.mjs";
|
|
3
3
|
import { createCommandContext } from "../context.mjs";
|
|
4
4
|
import { readParquetRows } from "../native-duckdb.mjs";
|
|
5
|
-
import path from "node:path";
|
|
6
5
|
import process from "node:process";
|
|
7
6
|
import { defineCommand } from "citty";
|
|
8
7
|
import fs from "node:fs/promises";
|
|
8
|
+
import path from "node:path";
|
|
9
9
|
const DEFAULT_OUT = "./gscdump-export";
|
|
10
10
|
const FORMATS = [
|
|
11
11
|
"parquet",
|
package/dist/commands/export.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { OUTPUT_ARGS, applyOutputMode, displayPath } from "../utils.mjs";
|
|
|
2
2
|
import { allTables } from "../local-store.mjs";
|
|
3
3
|
import { createCommandContext } from "../context.mjs";
|
|
4
4
|
import { materializeParquetTables } from "../native-duckdb.mjs";
|
|
5
|
-
import path from "node:path";
|
|
6
5
|
import { defineCommand } from "citty";
|
|
6
|
+
import path from "node:path";
|
|
7
7
|
async function exportToDuckDB(opts) {
|
|
8
8
|
const outPath = path.resolve(opts.outPath);
|
|
9
9
|
const entries = await opts.engine.listLive({
|
package/dist/commands/init.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import { defaultDataDir, loadConfig, saveConfig } from "../config.mjs";
|
|
|
2
2
|
import { applyCliEnvironment } from "../environment.mjs";
|
|
3
3
|
import { OUTPUT_ARGS, applyOutputMode, displayPath, logger } from "../utils.mjs";
|
|
4
4
|
import { authenticate, getAuthCredentials, loadTokens, resolveBYOK, saveTokens } from "../auth.mjs";
|
|
5
|
-
import path from "node:path";
|
|
6
5
|
import process from "node:process";
|
|
7
6
|
import { defineCommand } from "citty";
|
|
8
7
|
import fs from "node:fs/promises";
|
|
8
|
+
import path from "node:path";
|
|
9
9
|
import { confirm, isCancel, text } from "@clack/prompts";
|
|
10
10
|
import { googleSearchConsole } from "gscdump";
|
|
11
11
|
const ENV_LINE_RE = /^([^=]+)=(.*)$/;
|
|
@@ -2,12 +2,12 @@ import { useCliRuntime } from "../runtime.mjs";
|
|
|
2
2
|
import { getConfigDir, setConfigDir } from "../config.mjs";
|
|
3
3
|
import { resolveCliEnvironment } from "../environment.mjs";
|
|
4
4
|
import { OUTPUT_ARGS, applyOutputMode, displayPath, logger, noSubcommandSelected } from "../utils.mjs";
|
|
5
|
-
import os from "node:os";
|
|
6
|
-
import path from "node:path";
|
|
7
5
|
import process from "node:process";
|
|
8
6
|
import { defineCommand } from "citty";
|
|
9
7
|
import fs from "node:fs";
|
|
10
8
|
import fs$1 from "node:fs/promises";
|
|
9
|
+
import os from "node:os";
|
|
10
|
+
import path from "node:path";
|
|
11
11
|
import { confirm, isCancel } from "@clack/prompts";
|
|
12
12
|
const ROOT_DIR = path.join(os.homedir(), ".config", "gscdump");
|
|
13
13
|
const PROFILES_DIR = path.join(ROOT_DIR, "profiles");
|
package/dist/config.mjs
CHANGED
package/dist/env-file.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCliRuntime } from "./runtime.mjs";
|
|
2
|
-
import path from "node:path";
|
|
3
2
|
import process from "node:process";
|
|
4
3
|
import fs from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
5
|
const ENV_LINE_RE = /^([^=]+)=(.*)$/;
|
|
6
6
|
function parseEnvFile(envPath) {
|
|
7
7
|
let content;
|
package/dist/package.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var version = "1.
|
|
1
|
+
var version = "1.5.0";
|
|
2
2
|
export { version };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import process from "node:process";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { createConsola } from "consola";
|
|
6
6
|
let runtimeStorage;
|
|
7
7
|
let fallbackRuntime;
|
package/dist/utils.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCliRuntime } from "./runtime.mjs";
|
|
2
2
|
import { version } from "./package.mjs";
|
|
3
|
-
import os from "node:os";
|
|
4
3
|
import process from "node:process";
|
|
5
4
|
import fs from "node:fs/promises";
|
|
5
|
+
import os from "node:os";
|
|
6
6
|
import { Buffer } from "node:buffer";
|
|
7
7
|
import { SearchTypes } from "gscdump/query";
|
|
8
8
|
const ALL_SEARCH_TYPES = Object.values(SearchTypes);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "CLI for Google Search Console - dump, query, and run MCP server",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -29,13 +29,7 @@
|
|
|
29
29
|
"data-export"
|
|
30
30
|
],
|
|
31
31
|
"sideEffects": false,
|
|
32
|
-
"exports": {
|
|
33
|
-
".": {
|
|
34
|
-
"types": "./dist/index.d.mts",
|
|
35
|
-
"import": "./dist/index.mjs",
|
|
36
|
-
"default": "./dist/index.mjs"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
32
|
+
"exports": {},
|
|
39
33
|
"bin": {
|
|
40
34
|
"gscdump": "./bin/gscdump.mjs"
|
|
41
35
|
},
|
|
@@ -52,14 +46,14 @@
|
|
|
52
46
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
53
47
|
"citty": "^0.2.2",
|
|
54
48
|
"consola": "^3.4.2",
|
|
55
|
-
"google-auth-library": "^10.9.
|
|
49
|
+
"google-auth-library": "^10.9.1",
|
|
56
50
|
"ofetch": "^1.5.1",
|
|
57
51
|
"open": "^11.0.0",
|
|
58
52
|
"zod": "^4.4.3",
|
|
59
|
-
"@gscdump/analysis": "^1.
|
|
60
|
-
"@gscdump/engine
|
|
61
|
-
"gscdump": "^1.
|
|
62
|
-
"
|
|
53
|
+
"@gscdump/analysis": "^1.5.0",
|
|
54
|
+
"@gscdump/engine": "^1.5.0",
|
|
55
|
+
"@gscdump/engine-gsc-api": "^1.5.0",
|
|
56
|
+
"gscdump": "^1.5.0"
|
|
63
57
|
},
|
|
64
58
|
"devDependencies": {
|
|
65
59
|
"vitest": "^4.1.10"
|
package/dist/index.d.mts
DELETED
package/dist/index.mjs
DELETED