gogcli-mcp-drive 4.8.0 → 4.8.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.
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "metadata": {
9
9
  "description": "Extended Google Drive for Claude via gogcli — auth + full Drive support (upload, download, permissions, comments, shared drives)",
10
- "version": "4.8.0"
10
+ "version": "4.8.1"
11
11
  },
12
12
  "plugins": [
13
13
  {
@@ -15,7 +15,7 @@
15
15
  "displayName": "gogcli (Drive)",
16
16
  "source": "./",
17
17
  "description": "Extended Google Drive for Claude via gogcli — auth + full Drive support (upload, download, permissions, comments, shared drives)",
18
- "version": "4.8.0",
18
+ "version": "4.8.1",
19
19
  "author": {
20
20
  "name": "Chris Hall"
21
21
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gogcli-mcp-drive",
3
3
  "displayName": "gogcli (Drive)",
4
- "version": "4.8.0",
4
+ "version": "4.8.1",
5
5
  "description": "Extended Google Drive for Claude via gogcli — auth + full Drive support (upload, download, permissions, comments, shared drives)",
6
6
  "author": {
7
7
  "name": "Chris Hall",
package/.mcp.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "gogcli-drive": {
4
- "command": "node",
4
+ "command": "npx",
5
5
  "args": [
6
- "${CLAUDE_PLUGIN_ROOT}/dist/index.js"
6
+ "-y",
7
+ "gogcli-mcp-drive"
7
8
  ],
8
9
  "env": {
9
10
  "GOG_ACCOUNT": "${GOG_ACCOUNT}",
package/dist/index.js CHANGED
@@ -773,6 +773,7 @@ __export(util_exports, {
773
773
  required: () => required,
774
774
  safeExtend: () => safeExtend,
775
775
  shallowClone: () => shallowClone,
776
+ sizeCaps: () => sizeCaps,
776
777
  slugify: () => slugify,
777
778
  stringifyPrimitive: () => stringifyPrimitive,
778
779
  toZod: () => toZod,
@@ -1292,6 +1293,18 @@ function prefixIssues(path, issues) {
1292
1293
  function unwrapMessage(message) {
1293
1294
  return typeof message === "string" ? message : message?.message;
1294
1295
  }
1296
+ function sizeCaps(defChecks) {
1297
+ const caps = [];
1298
+ for (const ch of defChecks ?? []) {
1299
+ const d = ch._zod.def;
1300
+ if (!/_(length|size)$|_equals$/.test(d.check))
1301
+ break;
1302
+ const max = d.maximum ?? d.length ?? d.size;
1303
+ if (max >= 0)
1304
+ caps.push([max, ch]);
1305
+ }
1306
+ return caps;
1307
+ }
1295
1308
  function attachSchema(issues, start, inst) {
1296
1309
  var _a3;
1297
1310
  for (let i = start; i < issues.length; i++) {
@@ -2712,7 +2725,7 @@ ${content.join("\n")}
2712
2725
  var version = {
2713
2726
  major: 4,
2714
2727
  minor: 6,
2715
- patch: 5
2728
+ patch: 7
2716
2729
  };
2717
2730
 
2718
2731
  // ../../node_modules/zod/v4/core/schemas.js
@@ -3468,6 +3481,31 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
3468
3481
  return payload;
3469
3482
  };
3470
3483
  });
3484
+ function capSize(inst, size) {
3485
+ const caps = sizeCaps(inst._zod.def.checks);
3486
+ if (!caps.length)
3487
+ return;
3488
+ const cap = Math.min(...caps.map((c) => c[0]));
3489
+ const parse3 = inst._zod.parse;
3490
+ inst._zod.parse = (payload, ctx) => {
3491
+ const n = size(payload.value);
3492
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
3493
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
3494
+ if (n > max && ch._zod.def.when(payload)) {
3495
+ const start = payload.issues.length;
3496
+ ch._zod.check(payload);
3497
+ payload.issues[start].continue = false;
3498
+ attachSchema(payload.issues, start, inst);
3499
+ return payload;
3500
+ }
3501
+ }
3502
+ }
3503
+ return parse3(payload, ctx);
3504
+ };
3505
+ }
3506
+ var arraySize = (input2) => Array.isArray(input2) ? input2.length : -1;
3507
+ var mapSize = (input2) => input2 instanceof Map ? input2.size : -1;
3508
+ var setSize = (input2) => input2 instanceof Set ? input2.size : -1;
3471
3509
  function handleArrayResult(result, final, index) {
3472
3510
  if (result.issues.length) {
3473
3511
  final.issues.push(...prefixIssues(index, result.issues));
@@ -3511,6 +3549,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3511
3549
  }
3512
3550
  return payload;
3513
3551
  };
3552
+ capSize(inst, arraySize);
3514
3553
  });
3515
3554
  function handlePropertyResult(result, final, key, input2, optin, optout) {
3516
3555
  const isPresent = key in input2;
@@ -4467,6 +4506,7 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
4467
4506
  return Promise.all(proms).then(() => payload);
4468
4507
  return payload;
4469
4508
  };
4509
+ capSize(inst, mapSize);
4470
4510
  });
4471
4511
  function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) {
4472
4512
  if (keyResult.issues.length) {
@@ -4533,6 +4573,7 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
4533
4573
  return Promise.all(proms).then(() => payload);
4534
4574
  return payload;
4535
4575
  };
4576
+ capSize(inst, setSize);
4536
4577
  });
4537
4578
  function handleSetResult(result, final) {
4538
4579
  if (result.issues.length) {
@@ -14063,9 +14104,15 @@ function generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {
14063
14104
  doc.write(`}`);
14064
14105
  return outputVar;
14065
14106
  }
14107
+ function generateSizeGate(doc, schema, size) {
14108
+ for (const [max, check2] of sizeCaps(schema._zod.def.checks)) {
14109
+ doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`);
14110
+ }
14111
+ }
14066
14112
  function generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {
14067
14113
  const def = schema._zod.def;
14068
14114
  doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
14115
+ generateSizeGate(doc, schema, `${accessor}.length`);
14069
14116
  const outputVar = buildsValue ? newVar(ctx) : null;
14070
14117
  const iVar = newVar(ctx);
14071
14118
  const elemVar = newVar(ctx);
@@ -14465,6 +14512,7 @@ function literalPropertyKey(ctx, key) {
14465
14512
  function generateMapCheck(doc, ctx, schema, accessor) {
14466
14513
  const def = schema._zod.def;
14467
14514
  doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
14515
+ generateSizeGate(doc, schema, `${accessor}.size`);
14468
14516
  const outputVar = newVar(ctx);
14469
14517
  const kVar = newVar(ctx);
14470
14518
  const valVar = newVar(ctx);
@@ -14481,6 +14529,7 @@ function generateMapCheck(doc, ctx, schema, accessor) {
14481
14529
  function generateSetCheck(doc, ctx, schema, accessor) {
14482
14530
  const def = schema._zod.def;
14483
14531
  doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
14532
+ generateSizeGate(doc, schema, `${accessor}.size`);
14484
14533
  const outputVar = newVar(ctx);
14485
14534
  const valVar = newVar(ctx);
14486
14535
  doc.write(`const ${outputVar} = new Set();`);
@@ -34574,7 +34623,7 @@ var API_KEY_RE = new RegExp([
34574
34623
  // webhook signing secret (Stripe-style)
34575
34624
  ].map((p) => `\\b${p}`).join("|"), "g");
34576
34625
  var GOOGLE_OAUTH_TOKEN_RE = /(?<![A-Za-z0-9+/])(?:ya29\.|1\/\/)[A-Za-z0-9._-]{8,}/g;
34577
- var QUERY_SECRET_RE = new RegExp(`([?&](?:(?:access|refresh|id|auth|session|csrf|xsrf)[_-]?token|client[_-]?secret|api[_-]?secret|api[_-]?key|password|passwd|signature|token|key|sig|(?:code[_-]?)?verifier|(?:php|j)?sess(?:ion)?[_-]?id|sid|x[-_]${HEADER_NAME_RUN}?(?:api[-_]?key|token|secret|auth)${HEADER_NAME_RUN})=)[^&#\\s"'<>\`]+`, "gi");
34626
+ var QUERY_SECRET_RE = new RegExp(`([?&#;](?:(?:access|refresh|id|auth|session|csrf|xsrf|api)[_-]?token|client[_-]?secret|api[_-]?secret|api[_-]?key|password|passwd|signature|secret|token|auth|key|sig|(?:code[_-]?)?verifier|(?:php|j)?sess(?:ion)?[_-]?id|sid|x[-_]${HEADER_NAME_RUN}?(?:api[-_]?key|token|secret|auth)${HEADER_NAME_RUN})=)[^&#\\s"'<>\`]+`, "gi");
34578
34627
  var OAUTH_CODE_RE = /([?&]code=)(?=[^&#\s"'<>`]{16,})[^&#\s"'<>`]+/gi;
34579
34628
  var FORM_PASSWORD_RE = /((?:^|[\s,;:"'(\[{])(?:password|passwd)=)[^&#\s"'<>`]+/gim;
34580
34629
  var HEADER_SECRET_RE = new RegExp(`(\\b(?:x[-_]${HEADER_NAME_RUN}?(?:api[-_]?key|token|secret|auth)${HEADER_NAME_RUN}|api[-_]?key)\\s*:\\s*)[^\\s,;"'<>\`]+`, "gi");
@@ -34585,6 +34634,8 @@ var JSON_SECRET_KEYS = [
34585
34634
  "api[_-]?secret",
34586
34635
  "(?:x[_-])?api[_-]?key",
34587
34636
  "private[_-]?key",
34637
+ "aws[_-]?secret[_-]?access[_-]?key",
34638
+ // fleet-audit#1297
34588
34639
  "code[_-]?verifier",
34589
34640
  // PKCE; a bare `verifier` key is too generic for JSON
34590
34641
  `x[_-]${HEADER_NAME_RUN}?(?:api[_-]?key|token|secret|auth)${HEADER_NAME_RUN}`,
@@ -36123,7 +36174,7 @@ var PATH_FLAGS = /* @__PURE__ */ new Set(["out", "output", "out-dir", "output-di
36123
36174
  var ID_FLAGS = {
36124
36175
  drive: /* @__PURE__ */ new Set(["file", "filter-file"])
36125
36176
  };
36126
- var EXEC_FLAGS = /* @__PURE__ */ new Set(["on-change", "on-new", "mmdc"]);
36177
+ var EXEC_FLAGS = /* @__PURE__ */ new Set(["on-change", "on-new", "mmdc", "deploy"]);
36127
36178
  var SHORT_PATH_CLUSTER = /^-(?!-)[A-Za-z]*[of]/;
36128
36179
  var LONG_FLAG = /^--([A-Za-z0-9][A-Za-z0-9-]*)(?:=([\s\S]*))?$/;
36129
36180
  function isPathFlag(service, name) {
@@ -37077,7 +37128,7 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
37077
37128
  );
37078
37129
 
37079
37130
  // ../gogcli-mcp/src/server.ts
37080
- var VERSION = true ? "4.8.0" : "0.0.0";
37131
+ var VERSION = true ? "4.8.1" : "0.0.0";
37081
37132
 
37082
37133
  // ../gogcli-mcp/src/bootstrap-auth.ts
37083
37134
  import { join as join7 } from "node:path";
package/manifest.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifest_version": "0.3",
4
4
  "name": "gogcli-mcp-drive",
5
5
  "display_name": "gogcli (Drive)",
6
- "version": "4.8.0",
6
+ "version": "4.8.1",
7
7
  "description": "Extended Google Drive for Claude via gogcli — auth + full Drive support (upload, download, permissions, comments, shared drives)",
8
8
  "author": {
9
9
  "name": "Chris Hall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gogcli-mcp-drive",
3
- "version": "4.8.0",
3
+ "version": "4.8.1",
4
4
  "mcpName": "io.github.chrischall/gogcli-mcp-drive",
5
5
  "description": "Extended Google Drive MCP server via gogcli — auth + full Drive support (upload/download/permissions/comments/shared drives)",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",
@@ -24,7 +24,7 @@
24
24
  "test:coverage": "vitest run --coverage"
25
25
  },
26
26
  "dependencies": {
27
- "@chrischall/mcp-utils": "^3.0.0",
27
+ "@chrischall/mcp-utils": "^3.0.3",
28
28
  "@modelcontextprotocol/server": "^2.3.1",
29
29
  "zod": "^4.6.1"
30
30
  },
package/server.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "source": "github",
8
8
  "subfolder": "packages/gogcli-mcp-drive"
9
9
  },
10
- "version": "4.8.0",
10
+ "version": "4.8.1",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "gogcli-mcp-drive",
15
- "version": "4.8.0",
15
+ "version": "4.8.1",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },