skedyul 1.2.43 → 1.2.44

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
@@ -10054,7 +10054,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
10054
10054
  message: "OK",
10055
10055
  toolName
10056
10056
  },
10057
- effect: functionResult.effect
10057
+ effect: functionResult.effect,
10058
+ dataBlocks: functionResult.dataBlocks
10058
10059
  };
10059
10060
  } catch (error) {
10060
10061
  if (error instanceof AppAuthInvalidError) {
@@ -11654,11 +11655,19 @@ function createSkedyulServer(config) {
11654
11655
  };
11655
11656
  }
11656
11657
  const outputData = result.output;
11658
+ const dataBlocks = result.dataBlocks;
11657
11659
  let structuredContent;
11658
11660
  if (outputData) {
11659
- structuredContent = { ...outputData, __effect: result.effect };
11660
- } else if (result.effect) {
11661
- structuredContent = { __effect: result.effect };
11661
+ structuredContent = {
11662
+ ...outputData,
11663
+ __effect: result.effect,
11664
+ __dataBlocks: dataBlocks
11665
+ };
11666
+ } else if (result.effect || dataBlocks) {
11667
+ structuredContent = {
11668
+ __effect: result.effect,
11669
+ __dataBlocks: dataBlocks
11670
+ };
11662
11671
  } else if (hasOutputSchema) {
11663
11672
  structuredContent = {};
11664
11673
  }
@@ -441,7 +441,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
441
441
  message: "OK",
442
442
  toolName
443
443
  },
444
- effect: functionResult.effect
444
+ effect: functionResult.effect,
445
+ dataBlocks: functionResult.dataBlocks
445
446
  };
446
447
  } catch (error) {
447
448
  if (error instanceof AppAuthInvalidError) {
@@ -2041,11 +2042,19 @@ function createSkedyulServer(config) {
2041
2042
  };
2042
2043
  }
2043
2044
  const outputData = result.output;
2045
+ const dataBlocks = result.dataBlocks;
2044
2046
  let structuredContent;
2045
2047
  if (outputData) {
2046
- structuredContent = { ...outputData, __effect: result.effect };
2047
- } else if (result.effect) {
2048
- structuredContent = { __effect: result.effect };
2048
+ structuredContent = {
2049
+ ...outputData,
2050
+ __effect: result.effect,
2051
+ __dataBlocks: dataBlocks
2052
+ };
2053
+ } else if (result.effect || dataBlocks) {
2054
+ structuredContent = {
2055
+ __effect: result.effect,
2056
+ __dataBlocks: dataBlocks
2057
+ };
2049
2058
  } else if (hasOutputSchema) {
2050
2059
  structuredContent = {};
2051
2060
  }
@@ -10285,7 +10285,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
10285
10285
  message: "OK",
10286
10286
  toolName
10287
10287
  },
10288
- effect: functionResult.effect
10288
+ effect: functionResult.effect,
10289
+ dataBlocks: functionResult.dataBlocks
10289
10290
  };
10290
10291
  } catch (error) {
10291
10292
  if (error instanceof AppAuthInvalidError) {
@@ -11885,11 +11886,19 @@ function createSkedyulServer(config) {
11885
11886
  };
11886
11887
  }
11887
11888
  const outputData = result.output;
11889
+ const dataBlocks = result.dataBlocks;
11888
11890
  let structuredContent;
11889
11891
  if (outputData) {
11890
- structuredContent = { ...outputData, __effect: result.effect };
11891
- } else if (result.effect) {
11892
- structuredContent = { __effect: result.effect };
11892
+ structuredContent = {
11893
+ ...outputData,
11894
+ __effect: result.effect,
11895
+ __dataBlocks: dataBlocks
11896
+ };
11897
+ } else if (result.effect || dataBlocks) {
11898
+ structuredContent = {
11899
+ __effect: result.effect,
11900
+ __dataBlocks: dataBlocks
11901
+ };
11893
11902
  } else if (hasOutputSchema) {
11894
11903
  structuredContent = {};
11895
11904
  }
package/dist/index.js CHANGED
@@ -10548,7 +10548,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
10548
10548
  message: "OK",
10549
10549
  toolName
10550
10550
  },
10551
- effect: functionResult.effect
10551
+ effect: functionResult.effect,
10552
+ dataBlocks: functionResult.dataBlocks
10552
10553
  };
10553
10554
  } catch (error) {
10554
10555
  if (error instanceof AppAuthInvalidError) {
@@ -12148,11 +12149,19 @@ function createSkedyulServer(config) {
12148
12149
  };
12149
12150
  }
12150
12151
  const outputData = result.output;
12152
+ const dataBlocks = result.dataBlocks;
12151
12153
  let structuredContent;
12152
12154
  if (outputData) {
12153
- structuredContent = { ...outputData, __effect: result.effect };
12154
- } else if (result.effect) {
12155
- structuredContent = { __effect: result.effect };
12155
+ structuredContent = {
12156
+ ...outputData,
12157
+ __effect: result.effect,
12158
+ __dataBlocks: dataBlocks
12159
+ };
12160
+ } else if (result.effect || dataBlocks) {
12161
+ structuredContent = {
12162
+ __effect: result.effect,
12163
+ __dataBlocks: dataBlocks
12164
+ };
12156
12165
  } else if (hasOutputSchema) {
12157
12166
  structuredContent = {};
12158
12167
  }
package/dist/server.js CHANGED
@@ -441,7 +441,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
441
441
  message: "OK",
442
442
  toolName
443
443
  },
444
- effect: functionResult.effect
444
+ effect: functionResult.effect,
445
+ dataBlocks: functionResult.dataBlocks
445
446
  };
446
447
  } catch (error) {
447
448
  if (error instanceof AppAuthInvalidError) {
@@ -2041,11 +2042,19 @@ function createSkedyulServer(config) {
2041
2042
  };
2042
2043
  }
2043
2044
  const outputData = result.output;
2045
+ const dataBlocks = result.dataBlocks;
2044
2046
  let structuredContent;
2045
2047
  if (outputData) {
2046
- structuredContent = { ...outputData, __effect: result.effect };
2047
- } else if (result.effect) {
2048
- structuredContent = { __effect: result.effect };
2048
+ structuredContent = {
2049
+ ...outputData,
2050
+ __effect: result.effect,
2051
+ __dataBlocks: dataBlocks
2052
+ };
2053
+ } else if (result.effect || dataBlocks) {
2054
+ structuredContent = {
2055
+ __effect: result.effect,
2056
+ __dataBlocks: dataBlocks
2057
+ };
2049
2058
  } else if (hasOutputSchema) {
2050
2059
  structuredContent = {};
2051
2060
  }
@@ -402,7 +402,8 @@ function createCallToolHandler(registry, state, onMaxRequests) {
402
402
  message: "OK",
403
403
  toolName
404
404
  },
405
- effect: functionResult.effect
405
+ effect: functionResult.effect,
406
+ dataBlocks: functionResult.dataBlocks
406
407
  };
407
408
  } catch (error) {
408
409
  if (error instanceof AppAuthInvalidError) {
@@ -2002,11 +2003,19 @@ function createSkedyulServer(config) {
2002
2003
  };
2003
2004
  }
2004
2005
  const outputData = result.output;
2006
+ const dataBlocks = result.dataBlocks;
2005
2007
  let structuredContent;
2006
2008
  if (outputData) {
2007
- structuredContent = { ...outputData, __effect: result.effect };
2008
- } else if (result.effect) {
2009
- structuredContent = { __effect: result.effect };
2009
+ structuredContent = {
2010
+ ...outputData,
2011
+ __effect: result.effect,
2012
+ __dataBlocks: dataBlocks
2013
+ };
2014
+ } else if (result.effect || dataBlocks) {
2015
+ structuredContent = {
2016
+ __effect: result.effect,
2017
+ __dataBlocks: dataBlocks
2018
+ };
2010
2019
  } else if (hasOutputSchema) {
2011
2020
  structuredContent = {};
2012
2021
  }
@@ -175,6 +175,8 @@ export interface ToolExecutionResult<Output = unknown> {
175
175
  meta: ToolResponseMeta;
176
176
  effect?: ToolEffect;
177
177
  error?: ToolError | null;
178
+ /** Rich data blocks for UI rendering (profiles, spreadsheets, datetime cards) */
179
+ dataBlocks?: import('./data-blocks').DataBlock[];
178
180
  }
179
181
  export interface ToolSchemaWithJson<Schema extends z.ZodTypeAny = z.ZodTypeAny> {
180
182
  zod: Schema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "1.2.43",
3
+ "version": "1.2.44",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",