skedyul 1.2.36 → 1.2.38

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
@@ -2484,21 +2484,20 @@ function formatLogWithContext(args2) {
2484
2484
  if (!context?.invocation) {
2485
2485
  return args2;
2486
2486
  }
2487
- const contextPrefix = {
2487
+ const messageParts = args2.map((arg) => {
2488
+ if (typeof arg === "string") return arg;
2489
+ return safeStringify(arg);
2490
+ });
2491
+ return [{
2488
2492
  invocationType: context.invocation.invocationType,
2489
2493
  ...context.invocation.toolHandle && { toolHandle: context.invocation.toolHandle },
2490
2494
  ...context.invocation.serverHookHandle && { serverHookHandle: context.invocation.serverHookHandle },
2491
2495
  ...context.invocation.appInstallationId && { appInstallationId: context.invocation.appInstallationId },
2492
2496
  ...context.invocation.toolCallId && { toolCallId: context.invocation.toolCallId },
2493
2497
  ...context.invocation.workflowId && { workflowId: context.invocation.workflowId },
2494
- ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId }
2495
- };
2496
- const prefix = `[${JSON.stringify(contextPrefix)}]`;
2497
- const messageParts = args2.map((arg) => {
2498
- if (typeof arg === "string") return arg;
2499
- return safeStringify(arg);
2500
- });
2501
- return [`${prefix} ${messageParts.join(" ")}`];
2498
+ ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId },
2499
+ msg: messageParts.join(" ")
2500
+ }];
2502
2501
  }
2503
2502
  var originalConsole = {
2504
2503
  log: console.log.bind(console),
@@ -3444,6 +3443,12 @@ function handleConfigRoute(ctx) {
3444
3443
  console.log(
3445
3444
  `[/config] Loaded config from file: tools=${fileConfig.tools?.length ?? 0}, webhooks=${fileConfig.webhooks?.length ?? 0}`
3446
3445
  );
3446
+ console.log(
3447
+ `[/config] SENDING config with keys: ${Object.keys(fileConfig).join(", ")}`
3448
+ );
3449
+ console.log(
3450
+ `[/config] SENDING full config: ${JSON.stringify(fileConfig).substring(0, 2e3)}...`
3451
+ );
3447
3452
  return { status: 200, body: fileConfig };
3448
3453
  }
3449
3454
  console.log("[/config] Config file not found, falling back to runtime serialization");
@@ -3454,6 +3459,12 @@ function handleConfigRoute(ctx) {
3454
3459
  console.log(
3455
3460
  `[/config] Runtime serialization: tools=${serialized.tools?.length ?? 0}, webhooks=${serialized.webhooks?.length ?? 0}`
3456
3461
  );
3462
+ console.log(
3463
+ `[/config] SENDING serialized config with keys: ${Object.keys(serialized).join(", ")}`
3464
+ );
3465
+ console.log(
3466
+ `[/config] SENDING full serialized config: ${JSON.stringify(serialized).substring(0, 2e3)}...`
3467
+ );
3457
3468
  return { status: 200, body: serialized };
3458
3469
  }
3459
3470
  async function handleCoreRoute(req, ctx) {
@@ -256,21 +256,20 @@ function formatLogWithContext(args) {
256
256
  if (!context?.invocation) {
257
257
  return args;
258
258
  }
259
- const contextPrefix = {
259
+ const messageParts = args.map((arg) => {
260
+ if (typeof arg === "string") return arg;
261
+ return safeStringify(arg);
262
+ });
263
+ return [{
260
264
  invocationType: context.invocation.invocationType,
261
265
  ...context.invocation.toolHandle && { toolHandle: context.invocation.toolHandle },
262
266
  ...context.invocation.serverHookHandle && { serverHookHandle: context.invocation.serverHookHandle },
263
267
  ...context.invocation.appInstallationId && { appInstallationId: context.invocation.appInstallationId },
264
268
  ...context.invocation.toolCallId && { toolCallId: context.invocation.toolCallId },
265
269
  ...context.invocation.workflowId && { workflowId: context.invocation.workflowId },
266
- ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId }
267
- };
268
- const prefix = `[${JSON.stringify(contextPrefix)}]`;
269
- const messageParts = args.map((arg) => {
270
- if (typeof arg === "string") return arg;
271
- return safeStringify(arg);
272
- });
273
- return [`${prefix} ${messageParts.join(" ")}`];
270
+ ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId },
271
+ msg: messageParts.join(" ")
272
+ }];
274
273
  }
275
274
  var originalConsole = {
276
275
  log: console.log.bind(console),
@@ -1236,6 +1235,12 @@ function handleConfigRoute(ctx) {
1236
1235
  console.log(
1237
1236
  `[/config] Loaded config from file: tools=${fileConfig.tools?.length ?? 0}, webhooks=${fileConfig.webhooks?.length ?? 0}`
1238
1237
  );
1238
+ console.log(
1239
+ `[/config] SENDING config with keys: ${Object.keys(fileConfig).join(", ")}`
1240
+ );
1241
+ console.log(
1242
+ `[/config] SENDING full config: ${JSON.stringify(fileConfig).substring(0, 2e3)}...`
1243
+ );
1239
1244
  return { status: 200, body: fileConfig };
1240
1245
  }
1241
1246
  console.log("[/config] Config file not found, falling back to runtime serialization");
@@ -1246,6 +1251,12 @@ function handleConfigRoute(ctx) {
1246
1251
  console.log(
1247
1252
  `[/config] Runtime serialization: tools=${serialized.tools?.length ?? 0}, webhooks=${serialized.webhooks?.length ?? 0}`
1248
1253
  );
1254
+ console.log(
1255
+ `[/config] SENDING serialized config with keys: ${Object.keys(serialized).join(", ")}`
1256
+ );
1257
+ console.log(
1258
+ `[/config] SENDING full serialized config: ${JSON.stringify(serialized).substring(0, 2e3)}...`
1259
+ );
1249
1260
  return { status: 200, body: serialized };
1250
1261
  }
1251
1262
  async function handleCoreRoute(req, ctx) {
@@ -1968,21 +1968,20 @@ function formatLogWithContext(args) {
1968
1968
  if (!context?.invocation) {
1969
1969
  return args;
1970
1970
  }
1971
- const contextPrefix = {
1971
+ const messageParts = args.map((arg) => {
1972
+ if (typeof arg === "string") return arg;
1973
+ return safeStringify(arg);
1974
+ });
1975
+ return [{
1972
1976
  invocationType: context.invocation.invocationType,
1973
1977
  ...context.invocation.toolHandle && { toolHandle: context.invocation.toolHandle },
1974
1978
  ...context.invocation.serverHookHandle && { serverHookHandle: context.invocation.serverHookHandle },
1975
1979
  ...context.invocation.appInstallationId && { appInstallationId: context.invocation.appInstallationId },
1976
1980
  ...context.invocation.toolCallId && { toolCallId: context.invocation.toolCallId },
1977
1981
  ...context.invocation.workflowId && { workflowId: context.invocation.workflowId },
1978
- ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId }
1979
- };
1980
- const prefix = `[${JSON.stringify(contextPrefix)}]`;
1981
- const messageParts = args.map((arg) => {
1982
- if (typeof arg === "string") return arg;
1983
- return safeStringify(arg);
1984
- });
1985
- return [`${prefix} ${messageParts.join(" ")}`];
1982
+ ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId },
1983
+ msg: messageParts.join(" ")
1984
+ }];
1986
1985
  }
1987
1986
  var originalConsole = {
1988
1987
  log: console.log.bind(console),
@@ -2948,6 +2947,12 @@ function handleConfigRoute(ctx) {
2948
2947
  console.log(
2949
2948
  `[/config] Loaded config from file: tools=${fileConfig.tools?.length ?? 0}, webhooks=${fileConfig.webhooks?.length ?? 0}`
2950
2949
  );
2950
+ console.log(
2951
+ `[/config] SENDING config with keys: ${Object.keys(fileConfig).join(", ")}`
2952
+ );
2953
+ console.log(
2954
+ `[/config] SENDING full config: ${JSON.stringify(fileConfig).substring(0, 2e3)}...`
2955
+ );
2951
2956
  return { status: 200, body: fileConfig };
2952
2957
  }
2953
2958
  console.log("[/config] Config file not found, falling back to runtime serialization");
@@ -2958,6 +2963,12 @@ function handleConfigRoute(ctx) {
2958
2963
  console.log(
2959
2964
  `[/config] Runtime serialization: tools=${serialized.tools?.length ?? 0}, webhooks=${serialized.webhooks?.length ?? 0}`
2960
2965
  );
2966
+ console.log(
2967
+ `[/config] SENDING serialized config with keys: ${Object.keys(serialized).join(", ")}`
2968
+ );
2969
+ console.log(
2970
+ `[/config] SENDING full serialized config: ${JSON.stringify(serialized).substring(0, 2e3)}...`
2971
+ );
2961
2972
  return { status: 200, body: serialized };
2962
2973
  }
2963
2974
  async function handleCoreRoute(req, ctx) {
package/dist/index.js CHANGED
@@ -2134,21 +2134,20 @@ function formatLogWithContext(args) {
2134
2134
  if (!context?.invocation) {
2135
2135
  return args;
2136
2136
  }
2137
- const contextPrefix = {
2137
+ const messageParts = args.map((arg) => {
2138
+ if (typeof arg === "string") return arg;
2139
+ return safeStringify(arg);
2140
+ });
2141
+ return [{
2138
2142
  invocationType: context.invocation.invocationType,
2139
2143
  ...context.invocation.toolHandle && { toolHandle: context.invocation.toolHandle },
2140
2144
  ...context.invocation.serverHookHandle && { serverHookHandle: context.invocation.serverHookHandle },
2141
2145
  ...context.invocation.appInstallationId && { appInstallationId: context.invocation.appInstallationId },
2142
2146
  ...context.invocation.toolCallId && { toolCallId: context.invocation.toolCallId },
2143
2147
  ...context.invocation.workflowId && { workflowId: context.invocation.workflowId },
2144
- ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId }
2145
- };
2146
- const prefix = `[${JSON.stringify(contextPrefix)}]`;
2147
- const messageParts = args.map((arg) => {
2148
- if (typeof arg === "string") return arg;
2149
- return safeStringify(arg);
2150
- });
2151
- return [`${prefix} ${messageParts.join(" ")}`];
2148
+ ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId },
2149
+ msg: messageParts.join(" ")
2150
+ }];
2152
2151
  }
2153
2152
  var originalConsole = {
2154
2153
  log: console.log.bind(console),
@@ -3114,6 +3113,12 @@ function handleConfigRoute(ctx) {
3114
3113
  console.log(
3115
3114
  `[/config] Loaded config from file: tools=${fileConfig.tools?.length ?? 0}, webhooks=${fileConfig.webhooks?.length ?? 0}`
3116
3115
  );
3116
+ console.log(
3117
+ `[/config] SENDING config with keys: ${Object.keys(fileConfig).join(", ")}`
3118
+ );
3119
+ console.log(
3120
+ `[/config] SENDING full config: ${JSON.stringify(fileConfig).substring(0, 2e3)}...`
3121
+ );
3117
3122
  return { status: 200, body: fileConfig };
3118
3123
  }
3119
3124
  console.log("[/config] Config file not found, falling back to runtime serialization");
@@ -3124,6 +3129,12 @@ function handleConfigRoute(ctx) {
3124
3129
  console.log(
3125
3130
  `[/config] Runtime serialization: tools=${serialized.tools?.length ?? 0}, webhooks=${serialized.webhooks?.length ?? 0}`
3126
3131
  );
3132
+ console.log(
3133
+ `[/config] SENDING serialized config with keys: ${Object.keys(serialized).join(", ")}`
3134
+ );
3135
+ console.log(
3136
+ `[/config] SENDING full serialized config: ${JSON.stringify(serialized).substring(0, 2e3)}...`
3137
+ );
3127
3138
  return { status: 200, body: serialized };
3128
3139
  }
3129
3140
  async function handleCoreRoute(req, ctx) {
package/dist/server.js CHANGED
@@ -256,21 +256,20 @@ function formatLogWithContext(args) {
256
256
  if (!context?.invocation) {
257
257
  return args;
258
258
  }
259
- const contextPrefix = {
259
+ const messageParts = args.map((arg) => {
260
+ if (typeof arg === "string") return arg;
261
+ return safeStringify(arg);
262
+ });
263
+ return [{
260
264
  invocationType: context.invocation.invocationType,
261
265
  ...context.invocation.toolHandle && { toolHandle: context.invocation.toolHandle },
262
266
  ...context.invocation.serverHookHandle && { serverHookHandle: context.invocation.serverHookHandle },
263
267
  ...context.invocation.appInstallationId && { appInstallationId: context.invocation.appInstallationId },
264
268
  ...context.invocation.toolCallId && { toolCallId: context.invocation.toolCallId },
265
269
  ...context.invocation.workflowId && { workflowId: context.invocation.workflowId },
266
- ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId }
267
- };
268
- const prefix = `[${JSON.stringify(contextPrefix)}]`;
269
- const messageParts = args.map((arg) => {
270
- if (typeof arg === "string") return arg;
271
- return safeStringify(arg);
272
- });
273
- return [`${prefix} ${messageParts.join(" ")}`];
270
+ ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId },
271
+ msg: messageParts.join(" ")
272
+ }];
274
273
  }
275
274
  var originalConsole = {
276
275
  log: console.log.bind(console),
@@ -1236,6 +1235,12 @@ function handleConfigRoute(ctx) {
1236
1235
  console.log(
1237
1236
  `[/config] Loaded config from file: tools=${fileConfig.tools?.length ?? 0}, webhooks=${fileConfig.webhooks?.length ?? 0}`
1238
1237
  );
1238
+ console.log(
1239
+ `[/config] SENDING config with keys: ${Object.keys(fileConfig).join(", ")}`
1240
+ );
1241
+ console.log(
1242
+ `[/config] SENDING full config: ${JSON.stringify(fileConfig).substring(0, 2e3)}...`
1243
+ );
1239
1244
  return { status: 200, body: fileConfig };
1240
1245
  }
1241
1246
  console.log("[/config] Config file not found, falling back to runtime serialization");
@@ -1246,6 +1251,12 @@ function handleConfigRoute(ctx) {
1246
1251
  console.log(
1247
1252
  `[/config] Runtime serialization: tools=${serialized.tools?.length ?? 0}, webhooks=${serialized.webhooks?.length ?? 0}`
1248
1253
  );
1254
+ console.log(
1255
+ `[/config] SENDING serialized config with keys: ${Object.keys(serialized).join(", ")}`
1256
+ );
1257
+ console.log(
1258
+ `[/config] SENDING full serialized config: ${JSON.stringify(serialized).substring(0, 2e3)}...`
1259
+ );
1249
1260
  return { status: 200, body: serialized };
1250
1261
  }
1251
1262
  async function handleCoreRoute(req, ctx) {
@@ -217,21 +217,20 @@ function formatLogWithContext(args) {
217
217
  if (!context?.invocation) {
218
218
  return args;
219
219
  }
220
- const contextPrefix = {
220
+ const messageParts = args.map((arg) => {
221
+ if (typeof arg === "string") return arg;
222
+ return safeStringify(arg);
223
+ });
224
+ return [{
221
225
  invocationType: context.invocation.invocationType,
222
226
  ...context.invocation.toolHandle && { toolHandle: context.invocation.toolHandle },
223
227
  ...context.invocation.serverHookHandle && { serverHookHandle: context.invocation.serverHookHandle },
224
228
  ...context.invocation.appInstallationId && { appInstallationId: context.invocation.appInstallationId },
225
229
  ...context.invocation.toolCallId && { toolCallId: context.invocation.toolCallId },
226
230
  ...context.invocation.workflowId && { workflowId: context.invocation.workflowId },
227
- ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId }
228
- };
229
- const prefix = `[${JSON.stringify(contextPrefix)}]`;
230
- const messageParts = args.map((arg) => {
231
- if (typeof arg === "string") return arg;
232
- return safeStringify(arg);
233
- });
234
- return [`${prefix} ${messageParts.join(" ")}`];
231
+ ...context.invocation.workflowRunId && { workflowRunId: context.invocation.workflowRunId },
232
+ msg: messageParts.join(" ")
233
+ }];
235
234
  }
236
235
  var originalConsole = {
237
236
  log: console.log.bind(console),
@@ -1197,6 +1196,12 @@ function handleConfigRoute(ctx) {
1197
1196
  console.log(
1198
1197
  `[/config] Loaded config from file: tools=${fileConfig.tools?.length ?? 0}, webhooks=${fileConfig.webhooks?.length ?? 0}`
1199
1198
  );
1199
+ console.log(
1200
+ `[/config] SENDING config with keys: ${Object.keys(fileConfig).join(", ")}`
1201
+ );
1202
+ console.log(
1203
+ `[/config] SENDING full config: ${JSON.stringify(fileConfig).substring(0, 2e3)}...`
1204
+ );
1200
1205
  return { status: 200, body: fileConfig };
1201
1206
  }
1202
1207
  console.log("[/config] Config file not found, falling back to runtime serialization");
@@ -1207,6 +1212,12 @@ function handleConfigRoute(ctx) {
1207
1212
  console.log(
1208
1213
  `[/config] Runtime serialization: tools=${serialized.tools?.length ?? 0}, webhooks=${serialized.webhooks?.length ?? 0}`
1209
1214
  );
1215
+ console.log(
1216
+ `[/config] SENDING serialized config with keys: ${Object.keys(serialized).join(", ")}`
1217
+ );
1218
+ console.log(
1219
+ `[/config] SENDING full serialized config: ${JSON.stringify(serialized).substring(0, 2e3)}...`
1220
+ );
1210
1221
  return { status: 200, body: serialized };
1211
1222
  }
1212
1223
  async function handleCoreRoute(req, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "1.2.36",
3
+ "version": "1.2.38",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",