gogcli-mcp-calendar 2.19.1 → 2.20.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.js CHANGED
@@ -31119,6 +31119,13 @@ function isGogFileArg(arg) {
31119
31119
  return typeof arg !== "string";
31120
31120
  }
31121
31121
  var runExecutor = new AsyncLocalStorage();
31122
+ var defaultExecutor;
31123
+ function setDefaultGogExecutor(executor) {
31124
+ defaultExecutor = executor ? { executor } : void 0;
31125
+ }
31126
+ function activeExecutor() {
31127
+ return runExecutor.getStore() ?? defaultExecutor;
31128
+ }
31122
31129
  var TIMEOUT_MS = 3e4;
31123
31130
  function readonlyEnvEnabled() {
31124
31131
  return readEnvVar("GOG_READONLY") !== void 0 && parseBoolEnv("GOG_READONLY", { default: true });
@@ -31279,7 +31286,7 @@ async function run(args, options = {}) {
31279
31286
  const { account, spawner, interactive = false, timeout, readonly: readonly2 = false, redactMode = "full" } = options;
31280
31287
  const redact = redactMode === "tokens" ? redactGoogleTokens : redactSecrets2;
31281
31288
  const fullArgs = assembleArgs(args, { account, interactive, readonly: readonly2 });
31282
- const store = runExecutor.getStore();
31289
+ const store = activeExecutor();
31283
31290
  try {
31284
31291
  let output;
31285
31292
  if (spawner) {
@@ -31895,16 +31902,17 @@ var failIfNotEmptyParam = external_exports.boolean().optional().describe(
31895
31902
  );
31896
31903
 
31897
31904
  // ../gogcli-mcp/src/server.ts
31898
- var VERSION = true ? "2.19.1" : "0.0.0";
31905
+ var VERSION = true ? "2.20.0" : "0.0.0";
31899
31906
 
31900
31907
  // ../gogcli-mcp/src/connector-runtime.ts
31901
31908
  var DEFAULT_TIMEOUT_MS = 3e4;
31902
31909
  var DEADLINE_GRACE_MS = 5e3;
31903
31910
  var RUNNER_GOG_FAILED = 422;
31904
31911
  var RUNNER_DRAINING = 503;
31905
- function makeFlyExecutor(endpoint, key) {
31912
+ function makeFlyExecutor(endpoint, key, readAccessToken) {
31906
31913
  return async (args, opts) => {
31907
31914
  const deadlineMs = (opts?.timeout ?? DEFAULT_TIMEOUT_MS) + DEADLINE_GRACE_MS;
31915
+ const accessToken = readAccessToken?.();
31908
31916
  let res;
31909
31917
  try {
31910
31918
  res = await fetch(endpoint + "/run", {
@@ -31913,7 +31921,7 @@ function makeFlyExecutor(endpoint, key) {
31913
31921
  Authorization: "Bearer " + key,
31914
31922
  "Content-Type": "application/json"
31915
31923
  },
31916
- body: JSON.stringify({ args }),
31924
+ body: JSON.stringify(accessToken ? { args, accessToken } : { args }),
31917
31925
  signal: AbortSignal.timeout(deadlineMs)
31918
31926
  });
31919
31927
  } catch (err) {
@@ -31954,7 +31962,9 @@ function useRemoteGogRunner(env = process.env) {
31954
31962
  const endpoint = readEnvVar("GOG_RUNNER_URL", { env });
31955
31963
  const key = readEnvVar("GOG_RUNNER_KEY", { env });
31956
31964
  if (!endpoint || !key) return false;
31957
- runExecutor.enterWith({ executor: makeFlyExecutor(endpoint.replace(/\/+$/, ""), key) });
31965
+ setDefaultGogExecutor(
31966
+ makeFlyExecutor(endpoint.replace(/\/+$/, ""), key, () => readEnvVar("GOG_ACCESS_TOKEN", { env }))
31967
+ );
31958
31968
  return true;
31959
31969
  }
31960
31970
 
package/manifest.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifest_version": "0.3",
4
4
  "name": "gogcli-mcp-calendar",
5
5
  "display_name": "gogcli (Calendar)",
6
- "version": "2.19.1",
6
+ "version": "2.20.0",
7
7
  "description": "Extended Google Calendar for Claude via gogcli — auth + Calendar events + Meet space management",
8
8
  "author": {
9
9
  "name": "Chris Hall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gogcli-mcp-calendar",
3
- "version": "2.19.1",
3
+ "version": "2.20.0",
4
4
  "mcpName": "io.github.chrischall/gogcli-mcp-calendar",
5
5
  "description": "Extended Google Calendar + Meet MCP server via gogcli — auth + Calendar events + Meet space management",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",