@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.
- package/bin/aigentyc.mjs +14 -8
- package/bin/lib/add.mjs +1 -1
- package/bin/lib/doctor.mjs +1 -1
- package/bin/lib/skill.mjs +84 -0
- package/claude-skill/README.md +32 -0
- package/claude-skill/aigentyc-chat-sdk/SKILL.md +339 -0
- package/context7.json +1 -1
- package/dist/ChatInterface-B0zbA3Lm.d.cts +64 -0
- package/dist/ChatInterface-f8ftS56n.d.ts +64 -0
- package/dist/{SlotsContext-CBtt36al.d.ts → SlotsContext-BjiX1mRx.d.ts} +17 -2
- package/dist/{SlotsContext-CHvISDJT.d.cts → SlotsContext-CEOBjzfh.d.cts} +17 -2
- package/dist/ai-elements.cjs +114 -393
- package/dist/ai-elements.cjs.map +1 -1
- package/dist/ai-elements.d.cts +2 -31
- package/dist/ai-elements.d.ts +2 -31
- package/dist/ai-elements.js +9 -291
- package/dist/ai-elements.js.map +1 -1
- package/dist/{chunk-5QSXB6UL.cjs → chunk-3HGOLNGG.cjs} +13 -4
- package/dist/chunk-3HGOLNGG.cjs.map +1 -0
- package/dist/{chunk-KVEJAPWA.js → chunk-3KSMOHNY.js} +48 -62
- package/dist/chunk-3KSMOHNY.js.map +1 -0
- package/dist/chunk-4WOBNRRB.cjs +540 -0
- package/dist/chunk-4WOBNRRB.cjs.map +1 -0
- package/dist/chunk-7AZMWPKX.cjs +35 -0
- package/dist/chunk-7AZMWPKX.cjs.map +1 -0
- package/dist/chunk-B27JIQ4Z.js +528 -0
- package/dist/chunk-B27JIQ4Z.js.map +1 -0
- package/dist/{chunk-J2K7EJYP.cjs → chunk-BPV66QNM.cjs} +6 -4
- package/dist/chunk-BPV66QNM.cjs.map +1 -0
- package/dist/{chunk-FYPJSHCL.js → chunk-FPQ3UCCJ.js} +6 -4
- package/dist/chunk-FPQ3UCCJ.js.map +1 -0
- package/dist/{chunk-7L4FS6G7.js → chunk-JHWSG5IB.js} +17 -3
- package/dist/chunk-JHWSG5IB.js.map +1 -0
- package/dist/{chunk-4FBVV64J.js → chunk-M4YRNNGB.js} +13 -4
- package/dist/chunk-M4YRNNGB.js.map +1 -0
- package/dist/{chunk-QDFPJJ5Y.cjs → chunk-OU5OZKYH.cjs} +50 -65
- package/dist/chunk-OU5OZKYH.cjs.map +1 -0
- package/dist/{chunk-MC6QDYB6.cjs → chunk-PPCGZ5MP.cjs} +166 -67
- package/dist/chunk-PPCGZ5MP.cjs.map +1 -0
- package/dist/{chunk-U3FXVLUK.js → chunk-PQCGQ32Q.js} +84 -4
- package/dist/chunk-PQCGQ32Q.js.map +1 -0
- package/dist/{chunk-FOZXDUSZ.js → chunk-SWKWHBBN.js} +151 -54
- package/dist/chunk-SWKWHBBN.js.map +1 -0
- package/dist/{chunk-DMGYQ6NN.cjs → chunk-TLGZSXTU.cjs} +86 -6
- package/dist/chunk-TLGZSXTU.cjs.map +1 -0
- package/dist/{chunk-C24QG43M.cjs → chunk-TZ7EM3EG.cjs} +17 -2
- package/dist/chunk-TZ7EM3EG.cjs.map +1 -0
- package/dist/chunk-XEAAB5ZM.js +32 -0
- package/dist/chunk-XEAAB5ZM.js.map +1 -0
- package/dist/components.cjs +31 -52
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +4 -34
- package/dist/components.d.ts +4 -34
- package/dist/components.js +18 -42
- package/dist/components.js.map +1 -1
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/hooks.cjs +6 -6
- package/dist/hooks.d.cts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +2 -2
- package/dist/i18n.d.cts +1 -1
- package/dist/i18n.d.ts +1 -1
- package/dist/index.cjs +45 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +51 -6
- package/dist/index.d.ts +51 -6
- package/dist/index.js +17 -10
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +194 -14
- package/dist/message-feedback-BFh3-qym.d.cts +92 -0
- package/dist/message-feedback-cWR0NVok.d.ts +92 -0
- package/dist/normalize-KzCLLqpU.d.cts +42 -0
- package/dist/normalize-KzCLLqpU.d.ts +42 -0
- package/dist/styles.css +1 -1
- package/dist/theme.d.cts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/tools.cjs +14 -5
- package/dist/tools.d.cts +3 -2
- package/dist/tools.d.ts +3 -2
- package/dist/tools.js +3 -2
- package/dist/{types-DKJ_-nbG.d.cts → types-DlNwk-bG.d.cts} +33 -3
- package/dist/{types-DKJ_-nbG.d.ts → types-DlNwk-bG.d.ts} +33 -3
- package/dist/ui.cjs +45 -45
- package/dist/ui.js +2 -2
- package/llms.txt +175 -5
- package/package.json +2 -1
- package/dist/chunk-4FBVV64J.js.map +0 -1
- package/dist/chunk-5QSXB6UL.cjs.map +0 -1
- package/dist/chunk-7L4FS6G7.js.map +0 -1
- package/dist/chunk-A7PCSWIK.js +0 -219
- package/dist/chunk-A7PCSWIK.js.map +0 -1
- package/dist/chunk-C24QG43M.cjs.map +0 -1
- package/dist/chunk-DMGYQ6NN.cjs.map +0 -1
- package/dist/chunk-FOZXDUSZ.js.map +0 -1
- package/dist/chunk-FYPJSHCL.js.map +0 -1
- package/dist/chunk-J2K7EJYP.cjs.map +0 -1
- package/dist/chunk-KVEJAPWA.js.map +0 -1
- package/dist/chunk-MC6QDYB6.cjs.map +0 -1
- package/dist/chunk-QDFPJJ5Y.cjs.map +0 -1
- package/dist/chunk-RTVEBPAJ.cjs +0 -230
- package/dist/chunk-RTVEBPAJ.cjs.map +0 -1
- 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 };
|