skedyul 1.2.12 → 1.2.14

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/cli/index.js CHANGED
@@ -1080,6 +1080,16 @@ function configure(options) {
1080
1080
  async function callCore(method, params) {
1081
1081
  const effectiveConfig = getEffectiveConfig();
1082
1082
  const { baseUrl, apiToken } = effectiveConfig;
1083
+ const requestConfig = requestConfigStorage.getStore();
1084
+ console.log(`[callCore] Method: ${method}, Config state:`, {
1085
+ hasRequestConfig: !!requestConfig,
1086
+ requestConfigBaseUrl: requestConfig?.baseUrl ? "set" : "not set",
1087
+ requestConfigApiToken: requestConfig?.apiToken ? `set (${requestConfig.apiToken.length} chars)` : "not set",
1088
+ globalConfigBaseUrl: globalConfig.baseUrl ? "set" : "not set",
1089
+ globalConfigApiToken: globalConfig.apiToken ? `set (${globalConfig.apiToken.length} chars)` : "not set",
1090
+ effectiveBaseUrl: baseUrl ? "set" : "not set",
1091
+ effectiveApiToken: apiToken ? `set (${apiToken.length} chars)` : "not set"
1092
+ });
1083
1093
  if (!baseUrl) {
1084
1094
  throw new Error(
1085
1095
  "Skedyul client not configured: missing baseUrl. Set SKEDYUL_API_URL environment variable or call configure()."
@@ -2625,8 +2635,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
2625
2635
  baseUrl: requestEnv.SKEDYUL_API_URL ?? process.env.SKEDYUL_API_URL ?? "",
2626
2636
  apiToken: requestEnv.SKEDYUL_API_TOKEN ?? process.env.SKEDYUL_API_TOKEN ?? ""
2627
2637
  };
2628
- const functionResult = await runWithLogContext({ invocation }, async () => {
2629
- return await runWithConfig(requestConfig, async () => {
2638
+ const functionResult = await runWithConfig(requestConfig, async () => {
2639
+ return await runWithLogContext({ invocation }, async () => {
2630
2640
  return await fn(inputs, executionContext);
2631
2641
  });
2632
2642
  });
@@ -457,8 +457,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
457
457
  baseUrl: requestEnv.SKEDYUL_API_URL ?? process.env.SKEDYUL_API_URL ?? "",
458
458
  apiToken: requestEnv.SKEDYUL_API_TOKEN ?? process.env.SKEDYUL_API_TOKEN ?? ""
459
459
  };
460
- const functionResult = await runWithLogContext({ invocation }, async () => {
461
- return await runWithConfig(requestConfig, async () => {
460
+ const functionResult = await runWithConfig(requestConfig, async () => {
461
+ return await runWithLogContext({ invocation }, async () => {
462
462
  return await fn(inputs, executionContext);
463
463
  });
464
464
  });
@@ -972,6 +972,16 @@ function getConfig() {
972
972
  async function callCore(method, params) {
973
973
  const effectiveConfig = getEffectiveConfig();
974
974
  const { baseUrl, apiToken } = effectiveConfig;
975
+ const requestConfig = requestConfigStorage.getStore();
976
+ console.log(`[callCore] Method: ${method}, Config state:`, {
977
+ hasRequestConfig: !!requestConfig,
978
+ requestConfigBaseUrl: requestConfig?.baseUrl ? "set" : "not set",
979
+ requestConfigApiToken: requestConfig?.apiToken ? `set (${requestConfig.apiToken.length} chars)` : "not set",
980
+ globalConfigBaseUrl: globalConfig.baseUrl ? "set" : "not set",
981
+ globalConfigApiToken: globalConfig.apiToken ? `set (${globalConfig.apiToken.length} chars)` : "not set",
982
+ effectiveBaseUrl: baseUrl ? "set" : "not set",
983
+ effectiveApiToken: apiToken ? `set (${apiToken.length} chars)` : "not set"
984
+ });
975
985
  if (!baseUrl) {
976
986
  throw new Error(
977
987
  "Skedyul client not configured: missing baseUrl. Set SKEDYUL_API_URL environment variable or call configure()."
@@ -2125,8 +2135,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
2125
2135
  baseUrl: requestEnv.SKEDYUL_API_URL ?? process.env.SKEDYUL_API_URL ?? "",
2126
2136
  apiToken: requestEnv.SKEDYUL_API_TOKEN ?? process.env.SKEDYUL_API_TOKEN ?? ""
2127
2137
  };
2128
- const functionResult = await runWithLogContext({ invocation }, async () => {
2129
- return await runWithConfig(requestConfig, async () => {
2138
+ const functionResult = await runWithConfig(requestConfig, async () => {
2139
+ return await runWithLogContext({ invocation }, async () => {
2130
2140
  return await fn(inputs, executionContext);
2131
2141
  });
2132
2142
  });
package/dist/index.js CHANGED
@@ -1137,6 +1137,16 @@ function getConfig() {
1137
1137
  async function callCore(method, params) {
1138
1138
  const effectiveConfig = getEffectiveConfig();
1139
1139
  const { baseUrl, apiToken } = effectiveConfig;
1140
+ const requestConfig = requestConfigStorage.getStore();
1141
+ console.log(`[callCore] Method: ${method}, Config state:`, {
1142
+ hasRequestConfig: !!requestConfig,
1143
+ requestConfigBaseUrl: requestConfig?.baseUrl ? "set" : "not set",
1144
+ requestConfigApiToken: requestConfig?.apiToken ? `set (${requestConfig.apiToken.length} chars)` : "not set",
1145
+ globalConfigBaseUrl: globalConfig.baseUrl ? "set" : "not set",
1146
+ globalConfigApiToken: globalConfig.apiToken ? `set (${globalConfig.apiToken.length} chars)` : "not set",
1147
+ effectiveBaseUrl: baseUrl ? "set" : "not set",
1148
+ effectiveApiToken: apiToken ? `set (${apiToken.length} chars)` : "not set"
1149
+ });
1140
1150
  if (!baseUrl) {
1141
1151
  throw new Error(
1142
1152
  "Skedyul client not configured: missing baseUrl. Set SKEDYUL_API_URL environment variable or call configure()."
@@ -2290,8 +2300,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
2290
2300
  baseUrl: requestEnv.SKEDYUL_API_URL ?? process.env.SKEDYUL_API_URL ?? "",
2291
2301
  apiToken: requestEnv.SKEDYUL_API_TOKEN ?? process.env.SKEDYUL_API_TOKEN ?? ""
2292
2302
  };
2293
- const functionResult = await runWithLogContext({ invocation }, async () => {
2294
- return await runWithConfig(requestConfig, async () => {
2303
+ const functionResult = await runWithConfig(requestConfig, async () => {
2304
+ return await runWithLogContext({ invocation }, async () => {
2295
2305
  return await fn(inputs, executionContext);
2296
2306
  });
2297
2307
  });
package/dist/server.js CHANGED
@@ -457,8 +457,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
457
457
  baseUrl: requestEnv.SKEDYUL_API_URL ?? process.env.SKEDYUL_API_URL ?? "",
458
458
  apiToken: requestEnv.SKEDYUL_API_TOKEN ?? process.env.SKEDYUL_API_TOKEN ?? ""
459
459
  };
460
- const functionResult = await runWithLogContext({ invocation }, async () => {
461
- return await runWithConfig(requestConfig, async () => {
460
+ const functionResult = await runWithConfig(requestConfig, async () => {
461
+ return await runWithLogContext({ invocation }, async () => {
462
462
  return await fn(inputs, executionContext);
463
463
  });
464
464
  });
@@ -396,8 +396,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
396
396
  baseUrl: requestEnv.SKEDYUL_API_URL ?? process.env.SKEDYUL_API_URL ?? "",
397
397
  apiToken: requestEnv.SKEDYUL_API_TOKEN ?? process.env.SKEDYUL_API_TOKEN ?? ""
398
398
  };
399
- const functionResult = await runWithLogContext({ invocation }, async () => {
400
- return await runWithConfig(requestConfig, async () => {
399
+ const functionResult = await runWithConfig(requestConfig, async () => {
400
+ return await runWithLogContext({ invocation }, async () => {
401
401
  return await fn(inputs, executionContext);
402
402
  });
403
403
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",