@gram-ai/elements 1.25.0 → 1.25.1

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.
@@ -13,6 +13,22 @@ export declare const TextConversation: Story;
13
13
  * arguments and results, demonstrating the tool call rendering pipeline.
14
14
  */
15
15
  export declare const ToolCalls: Story;
16
+ /**
17
+ * BEFORE the fix (AGE-1295): simulates the duplicated tool calls that the
18
+ * converter used to produce. Each tool group shows an inflated count because
19
+ * the server's accumulated tool_calls were not deduplicated.
20
+ *
21
+ * Expected: groups show "Executed 2 tools" and "Executed 3 tools" instead
22
+ * of 1 tool each — this is the bug.
23
+ */
24
+ export declare const BeforeFix_DuplicatedToolCalls: Story;
25
+ /**
26
+ * AFTER the fix (AGE-1295): the converter now deduplicates tool calls, so
27
+ * each tool group correctly shows only its own tool call.
28
+ *
29
+ * Expected: each group shows exactly 1 tool call.
30
+ */
31
+ export declare const AfterFix_DeduplicatedToolCalls: Story;
16
32
  /**
17
33
  * Replay with reasoning (chain-of-thought) content. The assistant's
18
34
  * internal reasoning is shown before the final response.
package/dist/elements.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-wBHCO1r-.cjs"),r=require("./index-iUSSoKFz.cjs");exports.Chat=e.Chat;exports.ChatHistory=e.ChatHistory;exports.ElementsProvider=e.ElementsProvider;exports.GramElementsProvider=e.ElementsProvider;exports.MODELS=e.MODELS;exports.Replay=e.Replay;exports.ShareButton=e.ShareButton;exports.defineFrontendTool=e.defineFrontendTool;exports.trackError=e.trackError;exports.useRecordCassette=e.useRecordCassette;exports.useThreadId=e.useThreadId;exports.useElements=r.useElements;exports.useGramElements=r.useElements;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C3UbmFRR.cjs"),r=require("./index-iUSSoKFz.cjs");exports.Chat=e.Chat;exports.ChatHistory=e.ChatHistory;exports.ElementsProvider=e.ElementsProvider;exports.GramElementsProvider=e.ElementsProvider;exports.MODELS=e.MODELS;exports.Replay=e.Replay;exports.ShareButton=e.ShareButton;exports.defineFrontendTool=e.defineFrontendTool;exports.trackError=e.trackError;exports.useRecordCassette=e.useRecordCassette;exports.useThreadId=e.useThreadId;exports.useElements=r.useElements;exports.useGramElements=r.useElements;
2
2
  //# sourceMappingURL=elements.cjs.map
package/dist/elements.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aa as s, ab as r, a8 as t, a8 as o, ah as d, ad as m, ac as n, af as u, ag as l, ae as E, a9 as h } from "./index-DDb23655.js";
1
+ import { aa as s, ab as r, a8 as t, a8 as o, ah as d, ad as m, ac as n, af as u, ag as l, ae as E, a9 as h } from "./index-DxJwZ5Kc.js";
2
2
  import { u as i, u as c } from "./index-CtyV0c-T.js";
3
3
  export {
4
4
  s as Chat,