@aigentyc/chat-sdk 0.2.4 → 0.3.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.
Files changed (103) hide show
  1. package/bin/aigentyc.mjs +14 -8
  2. package/bin/lib/add.mjs +1 -1
  3. package/bin/lib/doctor.mjs +1 -1
  4. package/bin/lib/skill.mjs +84 -0
  5. package/claude-skill/README.md +32 -0
  6. package/claude-skill/aigentyc-chat-sdk/SKILL.md +339 -0
  7. package/context7.json +1 -1
  8. package/dist/ChatInterface-B0zbA3Lm.d.cts +64 -0
  9. package/dist/ChatInterface-f8ftS56n.d.ts +64 -0
  10. package/dist/{SlotsContext-CBtt36al.d.ts → SlotsContext-BjiX1mRx.d.ts} +17 -2
  11. package/dist/{SlotsContext-CHvISDJT.d.cts → SlotsContext-CEOBjzfh.d.cts} +17 -2
  12. package/dist/ai-elements.cjs +114 -393
  13. package/dist/ai-elements.cjs.map +1 -1
  14. package/dist/ai-elements.d.cts +2 -31
  15. package/dist/ai-elements.d.ts +2 -31
  16. package/dist/ai-elements.js +9 -291
  17. package/dist/ai-elements.js.map +1 -1
  18. package/dist/{chunk-5QSXB6UL.cjs → chunk-3HGOLNGG.cjs} +13 -4
  19. package/dist/chunk-3HGOLNGG.cjs.map +1 -0
  20. package/dist/{chunk-KVEJAPWA.js → chunk-3KSMOHNY.js} +48 -62
  21. package/dist/chunk-3KSMOHNY.js.map +1 -0
  22. package/dist/chunk-4WOBNRRB.cjs +540 -0
  23. package/dist/chunk-4WOBNRRB.cjs.map +1 -0
  24. package/dist/chunk-7AZMWPKX.cjs +35 -0
  25. package/dist/chunk-7AZMWPKX.cjs.map +1 -0
  26. package/dist/chunk-B27JIQ4Z.js +528 -0
  27. package/dist/chunk-B27JIQ4Z.js.map +1 -0
  28. package/dist/{chunk-J2K7EJYP.cjs → chunk-BPV66QNM.cjs} +6 -4
  29. package/dist/chunk-BPV66QNM.cjs.map +1 -0
  30. package/dist/{chunk-FYPJSHCL.js → chunk-FPQ3UCCJ.js} +6 -4
  31. package/dist/chunk-FPQ3UCCJ.js.map +1 -0
  32. package/dist/{chunk-7L4FS6G7.js → chunk-JHWSG5IB.js} +17 -3
  33. package/dist/chunk-JHWSG5IB.js.map +1 -0
  34. package/dist/{chunk-4FBVV64J.js → chunk-M4YRNNGB.js} +13 -4
  35. package/dist/chunk-M4YRNNGB.js.map +1 -0
  36. package/dist/{chunk-QDFPJJ5Y.cjs → chunk-OU5OZKYH.cjs} +50 -65
  37. package/dist/chunk-OU5OZKYH.cjs.map +1 -0
  38. package/dist/{chunk-MC6QDYB6.cjs → chunk-PPCGZ5MP.cjs} +166 -67
  39. package/dist/chunk-PPCGZ5MP.cjs.map +1 -0
  40. package/dist/{chunk-U3FXVLUK.js → chunk-PQCGQ32Q.js} +84 -4
  41. package/dist/chunk-PQCGQ32Q.js.map +1 -0
  42. package/dist/{chunk-FOZXDUSZ.js → chunk-SWKWHBBN.js} +151 -54
  43. package/dist/chunk-SWKWHBBN.js.map +1 -0
  44. package/dist/{chunk-DMGYQ6NN.cjs → chunk-TLGZSXTU.cjs} +86 -6
  45. package/dist/chunk-TLGZSXTU.cjs.map +1 -0
  46. package/dist/{chunk-C24QG43M.cjs → chunk-TZ7EM3EG.cjs} +17 -2
  47. package/dist/chunk-TZ7EM3EG.cjs.map +1 -0
  48. package/dist/chunk-XEAAB5ZM.js +32 -0
  49. package/dist/chunk-XEAAB5ZM.js.map +1 -0
  50. package/dist/components.cjs +31 -52
  51. package/dist/components.cjs.map +1 -1
  52. package/dist/components.d.cts +4 -34
  53. package/dist/components.d.ts +4 -34
  54. package/dist/components.js +18 -42
  55. package/dist/components.js.map +1 -1
  56. package/dist/core.d.cts +2 -2
  57. package/dist/core.d.ts +2 -2
  58. package/dist/hooks.cjs +6 -6
  59. package/dist/hooks.d.cts +2 -2
  60. package/dist/hooks.d.ts +2 -2
  61. package/dist/hooks.js +2 -2
  62. package/dist/i18n.d.cts +1 -1
  63. package/dist/i18n.d.ts +1 -1
  64. package/dist/index.cjs +45 -23
  65. package/dist/index.cjs.map +1 -1
  66. package/dist/index.d.cts +51 -6
  67. package/dist/index.d.ts +51 -6
  68. package/dist/index.js +17 -10
  69. package/dist/index.js.map +1 -1
  70. package/dist/llms-full.txt +194 -14
  71. package/dist/message-feedback-BFh3-qym.d.cts +92 -0
  72. package/dist/message-feedback-cWR0NVok.d.ts +92 -0
  73. package/dist/normalize-KzCLLqpU.d.cts +42 -0
  74. package/dist/normalize-KzCLLqpU.d.ts +42 -0
  75. package/dist/styles.css +1 -1
  76. package/dist/theme.d.cts +1 -1
  77. package/dist/theme.d.ts +1 -1
  78. package/dist/tools.cjs +14 -5
  79. package/dist/tools.d.cts +3 -2
  80. package/dist/tools.d.ts +3 -2
  81. package/dist/tools.js +3 -2
  82. package/dist/{types-DKJ_-nbG.d.cts → types-DlNwk-bG.d.cts} +33 -3
  83. package/dist/{types-DKJ_-nbG.d.ts → types-DlNwk-bG.d.ts} +33 -3
  84. package/dist/ui.cjs +45 -45
  85. package/dist/ui.js +2 -2
  86. package/llms.txt +175 -5
  87. package/package.json +2 -1
  88. package/dist/chunk-4FBVV64J.js.map +0 -1
  89. package/dist/chunk-5QSXB6UL.cjs.map +0 -1
  90. package/dist/chunk-7L4FS6G7.js.map +0 -1
  91. package/dist/chunk-A7PCSWIK.js +0 -219
  92. package/dist/chunk-A7PCSWIK.js.map +0 -1
  93. package/dist/chunk-C24QG43M.cjs.map +0 -1
  94. package/dist/chunk-DMGYQ6NN.cjs.map +0 -1
  95. package/dist/chunk-FOZXDUSZ.js.map +0 -1
  96. package/dist/chunk-FYPJSHCL.js.map +0 -1
  97. package/dist/chunk-J2K7EJYP.cjs.map +0 -1
  98. package/dist/chunk-KVEJAPWA.js.map +0 -1
  99. package/dist/chunk-MC6QDYB6.cjs.map +0 -1
  100. package/dist/chunk-QDFPJJ5Y.cjs.map +0 -1
  101. package/dist/chunk-RTVEBPAJ.cjs +0 -230
  102. package/dist/chunk-RTVEBPAJ.cjs.map +0 -1
  103. package/dist/chunk-U3FXVLUK.js.map +0 -1
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Tool result normalization helpers.
3
+ *
4
+ * Tools (especially `data_store`) can return data in a handful of shapes:
5
+ *
6
+ * 1. Projected flat rows (default `rows_only` mode):
7
+ * `[{ name: "alice", city: "haifa" }, ...]`
8
+ *
9
+ * 2. Full-format wrapper (`responseMode: "full"`):
10
+ * `{ storeName, columns, rows: [...], totalMatches, returned }`
11
+ *
12
+ * 3. Raw DB rows (from custom_execute that echoes the DB layer):
13
+ * `[{ id, dataStoreId, data: { name, city }, sortOrder }]`
14
+ *
15
+ * Custom renderers that want to work with any of these shapes can use
16
+ * `normalizeToolRows()` to get a consistent `Array<Record<string, unknown>>`
17
+ * regardless of upstream shape.
18
+ */
19
+ /**
20
+ * Normalize a tool result (or `result.data`) into a flat array of row
21
+ * objects, regardless of which shape the backend returned.
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * function MyRenderer({ result }: ToolRendererProps) {
26
+ * const rows = normalizeToolRows(result?.data);
27
+ * return <Table rows={rows} />;
28
+ * }
29
+ * ```
30
+ */
31
+ declare function normalizeToolRows(input: unknown): Array<Record<string, unknown>>;
32
+ /**
33
+ * Extract the display payload from a tool result, preferring `_displayData`
34
+ * over `data` (matches the ToolRenderer resolution). Useful when you're
35
+ * rendering from outside the built-in dispatcher.
36
+ */
37
+ declare function getToolDisplayData(result: {
38
+ data?: unknown;
39
+ _displayData?: unknown;
40
+ } | undefined): unknown;
41
+
42
+ export { getToolDisplayData as g, normalizeToolRows as n };
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Tool result normalization helpers.
3
+ *
4
+ * Tools (especially `data_store`) can return data in a handful of shapes:
5
+ *
6
+ * 1. Projected flat rows (default `rows_only` mode):
7
+ * `[{ name: "alice", city: "haifa" }, ...]`
8
+ *
9
+ * 2. Full-format wrapper (`responseMode: "full"`):
10
+ * `{ storeName, columns, rows: [...], totalMatches, returned }`
11
+ *
12
+ * 3. Raw DB rows (from custom_execute that echoes the DB layer):
13
+ * `[{ id, dataStoreId, data: { name, city }, sortOrder }]`
14
+ *
15
+ * Custom renderers that want to work with any of these shapes can use
16
+ * `normalizeToolRows()` to get a consistent `Array<Record<string, unknown>>`
17
+ * regardless of upstream shape.
18
+ */
19
+ /**
20
+ * Normalize a tool result (or `result.data`) into a flat array of row
21
+ * objects, regardless of which shape the backend returned.
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * function MyRenderer({ result }: ToolRendererProps) {
26
+ * const rows = normalizeToolRows(result?.data);
27
+ * return <Table rows={rows} />;
28
+ * }
29
+ * ```
30
+ */
31
+ declare function normalizeToolRows(input: unknown): Array<Record<string, unknown>>;
32
+ /**
33
+ * Extract the display payload from a tool result, preferring `_displayData`
34
+ * over `data` (matches the ToolRenderer resolution). Useful when you're
35
+ * rendering from outside the built-in dispatcher.
36
+ */
37
+ declare function getToolDisplayData(result: {
38
+ data?: unknown;
39
+ _displayData?: unknown;
40
+ } | undefined): unknown;
41
+
42
+ export { getToolDisplayData as g, normalizeToolRows as n };