skedyul 1.2.9 → 1.2.11

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
@@ -4287,7 +4287,10 @@ function createSkedyulServer(config, registry, webhookRegistry) {
4287
4287
  console.log(`[createSkedyulServer] Creating wrapped schema for ${toolKey}`);
4288
4288
  const wrappedInputSchema = z5.object({
4289
4289
  inputs: inputZodSchema ?? z5.record(z5.string(), z5.unknown()).optional(),
4290
- env: z5.record(z5.string(), z5.string()).optional()
4290
+ context: z5.record(z5.string(), z5.unknown()).optional(),
4291
+ env: z5.record(z5.string(), z5.string()).optional(),
4292
+ invocation: z5.record(z5.string(), z5.unknown()).optional(),
4293
+ estimate: z5.boolean().optional()
4291
4294
  }).passthrough();
4292
4295
  console.log(`[createSkedyulServer] Calling mcpServer.registerTool for ${toolKey}`);
4293
4296
  mcpServer.registerTool(
@@ -4301,11 +4304,20 @@ function createSkedyulServer(config, registry, webhookRegistry) {
4301
4304
  // outputSchema: outputZodSchema,
4302
4305
  },
4303
4306
  async (args2) => {
4307
+ console.log(`[mcpServer.registerTool] Tool ${toolName} received raw args:`, JSON.stringify(args2, null, 2));
4304
4308
  const rawArgs = args2;
4305
4309
  const toolInputs = rawArgs.inputs ?? {};
4306
4310
  const toolContext = rawArgs.context;
4307
4311
  const toolEnv = rawArgs.env;
4308
4312
  const toolInvocation = rawArgs.invocation;
4313
+ console.log(`[mcpServer.registerTool] Tool ${toolName} extracted:`, {
4314
+ hasInputs: !!rawArgs.inputs,
4315
+ hasContext: !!rawArgs.context,
4316
+ hasEnv: !!rawArgs.env,
4317
+ hasInvocation: !!rawArgs.invocation,
4318
+ envKeys: toolEnv ? Object.keys(toolEnv) : [],
4319
+ hasApiToken: toolEnv?.SKEDYUL_API_TOKEN ? `yes (${toolEnv.SKEDYUL_API_TOKEN.length} chars)` : "no"
4320
+ });
4309
4321
  let validatedInputs = toolInputs;
4310
4322
  if (inputZodSchema) {
4311
4323
  try {
@@ -2119,7 +2119,10 @@ function createSkedyulServer(config, registry, webhookRegistry) {
2119
2119
  console.log(`[createSkedyulServer] Creating wrapped schema for ${toolKey}`);
2120
2120
  const wrappedInputSchema = z3.object({
2121
2121
  inputs: inputZodSchema ?? z3.record(z3.string(), z3.unknown()).optional(),
2122
- env: z3.record(z3.string(), z3.string()).optional()
2122
+ context: z3.record(z3.string(), z3.unknown()).optional(),
2123
+ env: z3.record(z3.string(), z3.string()).optional(),
2124
+ invocation: z3.record(z3.string(), z3.unknown()).optional(),
2125
+ estimate: z3.boolean().optional()
2123
2126
  }).passthrough();
2124
2127
  console.log(`[createSkedyulServer] Calling mcpServer.registerTool for ${toolKey}`);
2125
2128
  mcpServer.registerTool(
@@ -2133,11 +2136,20 @@ function createSkedyulServer(config, registry, webhookRegistry) {
2133
2136
  // outputSchema: outputZodSchema,
2134
2137
  },
2135
2138
  async (args) => {
2139
+ console.log(`[mcpServer.registerTool] Tool ${toolName} received raw args:`, JSON.stringify(args, null, 2));
2136
2140
  const rawArgs = args;
2137
2141
  const toolInputs = rawArgs.inputs ?? {};
2138
2142
  const toolContext = rawArgs.context;
2139
2143
  const toolEnv = rawArgs.env;
2140
2144
  const toolInvocation = rawArgs.invocation;
2145
+ console.log(`[mcpServer.registerTool] Tool ${toolName} extracted:`, {
2146
+ hasInputs: !!rawArgs.inputs,
2147
+ hasContext: !!rawArgs.context,
2148
+ hasEnv: !!rawArgs.env,
2149
+ hasInvocation: !!rawArgs.invocation,
2150
+ envKeys: toolEnv ? Object.keys(toolEnv) : [],
2151
+ hasApiToken: toolEnv?.SKEDYUL_API_TOKEN ? `yes (${toolEnv.SKEDYUL_API_TOKEN.length} chars)` : "no"
2152
+ });
2141
2153
  let validatedInputs = toolInputs;
2142
2154
  if (inputZodSchema) {
2143
2155
  try {
@@ -3787,7 +3787,10 @@ function createSkedyulServer(config, registry, webhookRegistry) {
3787
3787
  console.log(`[createSkedyulServer] Creating wrapped schema for ${toolKey}`);
3788
3788
  const wrappedInputSchema = z5.object({
3789
3789
  inputs: inputZodSchema ?? z5.record(z5.string(), z5.unknown()).optional(),
3790
- env: z5.record(z5.string(), z5.string()).optional()
3790
+ context: z5.record(z5.string(), z5.unknown()).optional(),
3791
+ env: z5.record(z5.string(), z5.string()).optional(),
3792
+ invocation: z5.record(z5.string(), z5.unknown()).optional(),
3793
+ estimate: z5.boolean().optional()
3791
3794
  }).passthrough();
3792
3795
  console.log(`[createSkedyulServer] Calling mcpServer.registerTool for ${toolKey}`);
3793
3796
  mcpServer.registerTool(
@@ -3801,11 +3804,20 @@ function createSkedyulServer(config, registry, webhookRegistry) {
3801
3804
  // outputSchema: outputZodSchema,
3802
3805
  },
3803
3806
  async (args) => {
3807
+ console.log(`[mcpServer.registerTool] Tool ${toolName} received raw args:`, JSON.stringify(args, null, 2));
3804
3808
  const rawArgs = args;
3805
3809
  const toolInputs = rawArgs.inputs ?? {};
3806
3810
  const toolContext = rawArgs.context;
3807
3811
  const toolEnv = rawArgs.env;
3808
3812
  const toolInvocation = rawArgs.invocation;
3813
+ console.log(`[mcpServer.registerTool] Tool ${toolName} extracted:`, {
3814
+ hasInputs: !!rawArgs.inputs,
3815
+ hasContext: !!rawArgs.context,
3816
+ hasEnv: !!rawArgs.env,
3817
+ hasInvocation: !!rawArgs.invocation,
3818
+ envKeys: toolEnv ? Object.keys(toolEnv) : [],
3819
+ hasApiToken: toolEnv?.SKEDYUL_API_TOKEN ? `yes (${toolEnv.SKEDYUL_API_TOKEN.length} chars)` : "no"
3820
+ });
3809
3821
  let validatedInputs = toolInputs;
3810
3822
  if (inputZodSchema) {
3811
3823
  try {
package/dist/index.js CHANGED
@@ -3952,7 +3952,10 @@ function createSkedyulServer(config, registry, webhookRegistry) {
3952
3952
  console.log(`[createSkedyulServer] Creating wrapped schema for ${toolKey}`);
3953
3953
  const wrappedInputSchema = z5.object({
3954
3954
  inputs: inputZodSchema ?? z5.record(z5.string(), z5.unknown()).optional(),
3955
- env: z5.record(z5.string(), z5.string()).optional()
3955
+ context: z5.record(z5.string(), z5.unknown()).optional(),
3956
+ env: z5.record(z5.string(), z5.string()).optional(),
3957
+ invocation: z5.record(z5.string(), z5.unknown()).optional(),
3958
+ estimate: z5.boolean().optional()
3956
3959
  }).passthrough();
3957
3960
  console.log(`[createSkedyulServer] Calling mcpServer.registerTool for ${toolKey}`);
3958
3961
  mcpServer.registerTool(
@@ -3966,11 +3969,20 @@ function createSkedyulServer(config, registry, webhookRegistry) {
3966
3969
  // outputSchema: outputZodSchema,
3967
3970
  },
3968
3971
  async (args) => {
3972
+ console.log(`[mcpServer.registerTool] Tool ${toolName} received raw args:`, JSON.stringify(args, null, 2));
3969
3973
  const rawArgs = args;
3970
3974
  const toolInputs = rawArgs.inputs ?? {};
3971
3975
  const toolContext = rawArgs.context;
3972
3976
  const toolEnv = rawArgs.env;
3973
3977
  const toolInvocation = rawArgs.invocation;
3978
+ console.log(`[mcpServer.registerTool] Tool ${toolName} extracted:`, {
3979
+ hasInputs: !!rawArgs.inputs,
3980
+ hasContext: !!rawArgs.context,
3981
+ hasEnv: !!rawArgs.env,
3982
+ hasInvocation: !!rawArgs.invocation,
3983
+ envKeys: toolEnv ? Object.keys(toolEnv) : [],
3984
+ hasApiToken: toolEnv?.SKEDYUL_API_TOKEN ? `yes (${toolEnv.SKEDYUL_API_TOKEN.length} chars)` : "no"
3985
+ });
3974
3986
  let validatedInputs = toolInputs;
3975
3987
  if (inputZodSchema) {
3976
3988
  try {
package/dist/server.js CHANGED
@@ -2119,7 +2119,10 @@ function createSkedyulServer(config, registry, webhookRegistry) {
2119
2119
  console.log(`[createSkedyulServer] Creating wrapped schema for ${toolKey}`);
2120
2120
  const wrappedInputSchema = z3.object({
2121
2121
  inputs: inputZodSchema ?? z3.record(z3.string(), z3.unknown()).optional(),
2122
- env: z3.record(z3.string(), z3.string()).optional()
2122
+ context: z3.record(z3.string(), z3.unknown()).optional(),
2123
+ env: z3.record(z3.string(), z3.string()).optional(),
2124
+ invocation: z3.record(z3.string(), z3.unknown()).optional(),
2125
+ estimate: z3.boolean().optional()
2123
2126
  }).passthrough();
2124
2127
  console.log(`[createSkedyulServer] Calling mcpServer.registerTool for ${toolKey}`);
2125
2128
  mcpServer.registerTool(
@@ -2133,11 +2136,20 @@ function createSkedyulServer(config, registry, webhookRegistry) {
2133
2136
  // outputSchema: outputZodSchema,
2134
2137
  },
2135
2138
  async (args) => {
2139
+ console.log(`[mcpServer.registerTool] Tool ${toolName} received raw args:`, JSON.stringify(args, null, 2));
2136
2140
  const rawArgs = args;
2137
2141
  const toolInputs = rawArgs.inputs ?? {};
2138
2142
  const toolContext = rawArgs.context;
2139
2143
  const toolEnv = rawArgs.env;
2140
2144
  const toolInvocation = rawArgs.invocation;
2145
+ console.log(`[mcpServer.registerTool] Tool ${toolName} extracted:`, {
2146
+ hasInputs: !!rawArgs.inputs,
2147
+ hasContext: !!rawArgs.context,
2148
+ hasEnv: !!rawArgs.env,
2149
+ hasInvocation: !!rawArgs.invocation,
2150
+ envKeys: toolEnv ? Object.keys(toolEnv) : [],
2151
+ hasApiToken: toolEnv?.SKEDYUL_API_TOKEN ? `yes (${toolEnv.SKEDYUL_API_TOKEN.length} chars)` : "no"
2152
+ });
2141
2153
  let validatedInputs = toolInputs;
2142
2154
  if (inputZodSchema) {
2143
2155
  try {
@@ -2058,7 +2058,10 @@ function createSkedyulServer(config, registry, webhookRegistry) {
2058
2058
  console.log(`[createSkedyulServer] Creating wrapped schema for ${toolKey}`);
2059
2059
  const wrappedInputSchema = z3.object({
2060
2060
  inputs: inputZodSchema ?? z3.record(z3.string(), z3.unknown()).optional(),
2061
- env: z3.record(z3.string(), z3.string()).optional()
2061
+ context: z3.record(z3.string(), z3.unknown()).optional(),
2062
+ env: z3.record(z3.string(), z3.string()).optional(),
2063
+ invocation: z3.record(z3.string(), z3.unknown()).optional(),
2064
+ estimate: z3.boolean().optional()
2062
2065
  }).passthrough();
2063
2066
  console.log(`[createSkedyulServer] Calling mcpServer.registerTool for ${toolKey}`);
2064
2067
  mcpServer.registerTool(
@@ -2072,11 +2075,20 @@ function createSkedyulServer(config, registry, webhookRegistry) {
2072
2075
  // outputSchema: outputZodSchema,
2073
2076
  },
2074
2077
  async (args) => {
2078
+ console.log(`[mcpServer.registerTool] Tool ${toolName} received raw args:`, JSON.stringify(args, null, 2));
2075
2079
  const rawArgs = args;
2076
2080
  const toolInputs = rawArgs.inputs ?? {};
2077
2081
  const toolContext = rawArgs.context;
2078
2082
  const toolEnv = rawArgs.env;
2079
2083
  const toolInvocation = rawArgs.invocation;
2084
+ console.log(`[mcpServer.registerTool] Tool ${toolName} extracted:`, {
2085
+ hasInputs: !!rawArgs.inputs,
2086
+ hasContext: !!rawArgs.context,
2087
+ hasEnv: !!rawArgs.env,
2088
+ hasInvocation: !!rawArgs.invocation,
2089
+ envKeys: toolEnv ? Object.keys(toolEnv) : [],
2090
+ hasApiToken: toolEnv?.SKEDYUL_API_TOKEN ? `yes (${toolEnv.SKEDYUL_API_TOKEN.length} chars)` : "no"
2091
+ });
2080
2092
  let validatedInputs = toolInputs;
2081
2093
  if (inputZodSchema) {
2082
2094
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",