@athenaintel/react 0.17.0 → 0.19.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 (128) hide show
  1. package/README.md +179 -43
  2. package/dist/AthenaContext-B1QMhIP-.cjs.map +1 -1
  3. package/dist/AthenaContext-MOslgOmE.js.map +1 -1
  4. package/dist/SuperGroupingCard-BsWbHyV_.js +795 -0
  5. package/dist/SuperGroupingCard-BsWbHyV_.js.map +1 -0
  6. package/dist/SuperGroupingCard-CRRFUgjN.cjs +794 -0
  7. package/dist/SuperGroupingCard-CRRFUgjN.cjs.map +1 -0
  8. package/dist/chat/StatewireApprovalCard.d.ts +59 -2
  9. package/dist/chat/StatewireClientToolBridge.d.ts +3 -3
  10. package/dist/chat/StatewireQueuedMessages.d.ts +105 -6
  11. package/dist/chat/statewire-approval.d.ts +1 -1
  12. package/dist/chat/statewire-banners.d.ts +5 -9
  13. package/dist/chat/statewire-client-tools.d.ts +15 -21
  14. package/dist/chat/super-grouping/CollapsibleGroup.d.ts +52 -11
  15. package/dist/chat/super-grouping/SuperGroupingCard.d.ts +78 -21
  16. package/dist/chat/super-grouping/activity-timeline.d.ts +91 -0
  17. package/dist/chat/super-grouping/grouping-function.d.ts +13 -10
  18. package/dist/chat/super-grouping/index.d.ts +12 -0
  19. package/dist/chat/super-grouping/toolkit-map.d.ts +8 -1
  20. package/dist/chat/use-statewire-approval-request.d.ts +44 -0
  21. package/dist/chat-ui/header/conversation-history-panel.d.ts +11 -1
  22. package/dist/chat-ui/index.d.ts +9 -0
  23. package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +24 -0
  24. package/dist/chat-ui/mentions/suggestions/data/sources/index.d.ts +5 -0
  25. package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.d.ts +1 -1
  26. package/dist/chat-ui/mentions/suggestions/shims.d.ts +0 -4
  27. package/dist/chat-ui/messages/continue-pill.d.ts +13 -0
  28. package/dist/chat-ui/messages/message-components.d.ts +7 -2
  29. package/dist/chat-ui/messages/runtime-message.d.ts +21 -0
  30. package/dist/chat-ui/messages/statewire-continue-run.d.ts +82 -0
  31. package/dist/chat-ui/messages/user-edit-composer.d.ts +5 -2
  32. package/dist/chat-ui/statewire.d.ts +19 -0
  33. package/dist/chat-ui/thread/chat-composer-dock.d.ts +1 -1
  34. package/dist/chat-ui/thread/chat-thread-shell.d.ts +7 -1
  35. package/dist/chat-ui/thread/statewire-history-edge.d.ts +52 -0
  36. package/dist/chat-ui-statewire.cjs +25 -0
  37. package/dist/chat-ui-statewire.cjs.map +1 -0
  38. package/dist/chat-ui-statewire.js +25 -0
  39. package/dist/chat-ui-statewire.js.map +1 -0
  40. package/dist/chat-ui.cjs +292 -252
  41. package/dist/chat-ui.cjs.map +1 -1
  42. package/dist/chat-ui.js +289 -248
  43. package/dist/chat-ui.js.map +1 -1
  44. package/dist/diagnostics/athena-diagnostics.d.ts +1 -1
  45. package/dist/diagnostics/errors.d.ts +4 -4
  46. package/dist/index.cjs +20237 -26233
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.d.ts +25 -14
  49. package/dist/index.js +18465 -24458
  50. package/dist/index.js.map +1 -1
  51. package/dist/lib/athena-urls.d.ts +0 -2
  52. package/dist/lib/posthog/wrap-posthog-client.d.ts +3 -1
  53. package/dist/misc-tool-uis-B2e0Okkn.cjs +43 -0
  54. package/dist/misc-tool-uis-B2e0Okkn.cjs.map +1 -0
  55. package/dist/misc-tool-uis-gAiQw0Yl.js +44 -0
  56. package/dist/misc-tool-uis-gAiQw0Yl.js.map +1 -0
  57. package/dist/provider/AthenaContext.d.ts +0 -7
  58. package/dist/provider/AthenaProvider.d.ts +28 -52
  59. package/dist/provider/config.d.ts +19 -15
  60. package/dist/provider/statewire-lifecycle-context.d.ts +3 -4
  61. package/dist/provider/statewire-window-context.d.ts +12 -0
  62. package/dist/provider/types.d.ts +0 -1
  63. package/dist/runtime/statewire-auth-headers.d.ts +38 -0
  64. package/dist/runtime/statewire-lifecycle.d.ts +25 -1
  65. package/dist/runtime/statewire-run-config.d.ts +18 -5
  66. package/dist/runtime/statewire-session-key.d.ts +13 -0
  67. package/dist/runtime/useAthenaStatewireRuntime.d.ts +42 -16
  68. package/dist/statewire-continue-run-D34gS7_1.js +132 -0
  69. package/dist/statewire-continue-run-D34gS7_1.js.map +1 -0
  70. package/dist/statewire-continue-run-nE9VCKUh.cjs +131 -0
  71. package/dist/statewire-continue-run-nE9VCKUh.cjs.map +1 -0
  72. package/dist/statewire-history-edge-C8uyTEjX.cjs +1711 -0
  73. package/dist/statewire-history-edge-C8uyTEjX.cjs.map +1 -0
  74. package/dist/statewire-history-edge-CPohUKMt.js +1712 -0
  75. package/dist/statewire-history-edge-CPohUKMt.js.map +1 -0
  76. package/dist/styles.css +1 -1
  77. package/dist/super-grouping.cjs +22 -0
  78. package/dist/super-grouping.cjs.map +1 -0
  79. package/dist/super-grouping.js +22 -0
  80. package/dist/super-grouping.js.map +1 -0
  81. package/dist/threads/ThreadList.d.ts +6 -1
  82. package/dist/threads/mint-thread-id.d.ts +8 -0
  83. package/dist/threads/statewire-thread-list.d.ts +26 -9
  84. package/dist/threads/thread-id-context.d.ts +9 -0
  85. package/dist/threads/use-statewire-conversation-history.d.ts +2 -0
  86. package/dist/threads/useAthenaThreadManager.d.ts +24 -12
  87. package/dist/tool-fallback-DkQ3DLkn.js +4281 -0
  88. package/dist/tool-fallback-DkQ3DLkn.js.map +1 -0
  89. package/dist/tool-fallback-kfhpJQZa.cjs +4297 -0
  90. package/dist/tool-fallback-kfhpJQZa.cjs.map +1 -0
  91. package/dist/tools/index.d.ts +14 -0
  92. package/dist/tools/misc-tool-uis.d.ts +2 -0
  93. package/dist/tools/primitives.d.ts +41 -0
  94. package/dist/tools/tool-fallback.d.ts +78 -6
  95. package/dist/tools/tool-icons.d.ts +10 -0
  96. package/dist/tools/tool-uis.d.ts +1 -23
  97. package/dist/tools.cjs +41 -0
  98. package/dist/tools.cjs.map +1 -0
  99. package/dist/tools.js +41 -0
  100. package/dist/tools.js.map +1 -0
  101. package/dist/trash-2-B5OaNAL7.cjs +5096 -0
  102. package/dist/trash-2-B5OaNAL7.cjs.map +1 -0
  103. package/dist/trash-2-CCwSURL-.js +5081 -0
  104. package/dist/trash-2-CCwSURL-.js.map +1 -0
  105. package/dist/{use-rest-conversation-history-BdnG8jEP.cjs → use-rest-conversation-history-Cm8qMRxp.cjs} +985 -5405
  106. package/dist/use-rest-conversation-history-Cm8qMRxp.cjs.map +1 -0
  107. package/dist/{use-rest-conversation-history-DpEswBqQ.js → use-rest-conversation-history-veDZS-oL.js} +1035 -5455
  108. package/dist/use-rest-conversation-history-veDZS-oL.js.map +1 -0
  109. package/dist/wrench-BEf72cyP.cjs +417 -0
  110. package/dist/wrench-BEf72cyP.cjs.map +1 -0
  111. package/dist/wrench-CbrOlVYm.js +418 -0
  112. package/dist/wrench-CbrOlVYm.js.map +1 -0
  113. package/dist/x-Dfd2NzK0.cjs +42 -0
  114. package/dist/x-Dfd2NzK0.cjs.map +1 -0
  115. package/dist/x-_DntAa_a.js +43 -0
  116. package/dist/x-_DntAa_a.js.map +1 -0
  117. package/package.json +29 -11
  118. package/dist/chat/super-grouping/tool-status-labels.d.ts +0 -1
  119. package/dist/runtime/converter.d.ts +0 -5
  120. package/dist/runtime/external-message-converter.d.ts +0 -21
  121. package/dist/runtime/schemas.d.ts +0 -24
  122. package/dist/runtime/transport.d.ts +0 -39
  123. package/dist/runtime/useAthenaRuntime.d.ts +0 -47
  124. package/dist/threads/adapter.d.ts +0 -42
  125. package/dist/threads/useActiveThreadStateHydration.d.ts +0 -12
  126. package/dist/threads/useThreadTitlePolling.d.ts +0 -14
  127. package/dist/use-rest-conversation-history-BdnG8jEP.cjs.map +0 -1
  128. package/dist/use-rest-conversation-history-DpEswBqQ.js.map +0 -1
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The generic tool card and the primitives dedicated tool cards are built
3
+ * from, as a lean entry point for hosts that render their own thread and
4
+ * register their own tool UIs (Olympus). The full `@athenaintel/react` entry
5
+ * re-exports everything here alongside the SDK's built-in tool UI registry.
6
+ *
7
+ * Published as the `@athenaintel/react/tools` sub-path.
8
+ */
9
+ export { clearAutoOpenedAssets, ToolFallback, ToolFallbackArgs, ToolFallbackContent, type ToolFallbackContext, ToolFallbackError, ToolFallbackNotice, type ToolFallbackOptions, type ToolFallbackProps, ToolFallbackResult, ToolFallbackRoot, type ToolFallbackRootProps, ToolFallbackTrigger, type ToolFallbackTriggerProps, } from "./tool-fallback";
10
+ export { CopyToolSpecButton, ExpandableSection, formatToolName, normalizeResult, ToolCard, type ToolStatus, truncate, tryParseJson, } from "./primitives";
11
+ export { TOOL_ICONS, toolIcon } from "./tool-icons";
12
+ export { NestedPtcComponentsProvider, NestedPtcMessages, type NestedPtcMessagesProps, useNestedPtcComponents, } from "./NestedPtcMessages";
13
+ export { InstallPackageToolUI } from "./misc-tool-uis";
14
+ export { classifyToolResult, describeToolArgs, getToolDisplayMeta, isToolResultSuccess, resultMessage, toolActiveLabel, toolCompletedLabel, type ToolDisplayMeta, type ToolResultClassification, } from "@athenaintel/agent-runtime";
@@ -0,0 +1,2 @@
1
+ import type { ToolCallMessagePartComponent } from "@assistant-ui/react";
2
+ export declare const InstallPackageToolUI: ToolCallMessagePartComponent;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * The shared building blocks every SDK tool card is made of — the card shell
3
+ * (`ToolCard`), the collapsible details section, and the result/text helpers.
4
+ * Kept apart from the tool UI registry so a tool UI module can use them
5
+ * without importing the registry that imports it back.
6
+ */
7
+ import { type ElementType, type ReactNode } from "react";
8
+ import { formatToolName } from "@athenaintel/agent-runtime";
9
+ export { formatToolName };
10
+ /** Parse JSON text into a record, or `null` when it is not one. */
11
+ export declare function tryParseJson(text: string): Record<string, unknown> | null;
12
+ /** Parse a tool result (handles nested `.result`, string-encoded JSON) into a record. */
13
+ export declare function normalizeResult(result: unknown): Record<string, unknown> | null;
14
+ /** Truncate a string with an ellipsis. */
15
+ export declare function truncate(text: string, max: number): string;
16
+ export type ToolStatus = "running" | "complete" | "incomplete" | "requires-action";
17
+ export declare function ToolCard({ icon: Icon, status, title, subtitle, toolName, badge, error, children, args, result, }: {
18
+ icon: ElementType;
19
+ status: ToolStatus;
20
+ title: string;
21
+ subtitle?: string;
22
+ toolName?: string;
23
+ badge?: string;
24
+ error?: string | null;
25
+ children?: ReactNode;
26
+ args?: Record<string, unknown>;
27
+ result?: unknown;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
+ /** Copies `{ tool_name, arguments, result }` as JSON — the tool spec a support ticket needs. */
30
+ export declare function CopyToolSpecButton({ toolName, args, argsText, result, className, }: {
31
+ toolName: string;
32
+ args?: Record<string, unknown>;
33
+ argsText?: string;
34
+ result?: unknown;
35
+ className?: string;
36
+ }): import("react/jsx-runtime").JSX.Element;
37
+ export declare function ExpandableSection({ label, children, defaultOpen, }: {
38
+ label?: string;
39
+ children: ReactNode;
40
+ defaultOpen?: boolean;
41
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,54 @@
1
+ import { type ComponentProps, type ElementType, type ReactNode } from "react";
1
2
  import { type ToolCallMessagePartStatus, type ToolCallMessagePartComponent } from "@assistant-ui/react";
3
+ import { type ToolResultClassification } from "@athenaintel/agent-runtime";
2
4
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible";
5
+ import { type AssetType } from "../assets/asset-panel-store";
6
+ type ToolCallPartProps = ComponentProps<ToolCallMessagePartComponent>;
7
+ /** What a host slot sees about the call it decorates. */
8
+ export interface ToolFallbackContext {
9
+ toolName: string;
10
+ args: Record<string, unknown> | undefined;
11
+ argsText: string | undefined;
12
+ result: unknown;
13
+ status: ToolCallMessagePartStatus | undefined;
14
+ classification: ToolResultClassification;
15
+ /** An `asset_…` id found on the result or the arguments, if any. */
16
+ assetId: string | null;
17
+ }
18
+ export interface ToolFallbackOptions {
19
+ /** Row title for a settled call (defaults to the registry's `displayName`). */
20
+ displayName?: string;
21
+ /** Row title while running (defaults to the registry's `activeLabel`). */
22
+ activeLabel?: string;
23
+ /** Row icon (defaults to the registry's icon for the tool). */
24
+ icon?: ElementType;
25
+ /**
26
+ * Hide arguments that are internal identifiers (`asset_id`, `catalog_id`,
27
+ * `workspace_id`, `user_id`, and any `asset_…`-shaped value) from the
28
+ * disclosure. On by default — they mean nothing to a reader; a surface that
29
+ * needs them for review (an approval) turns it off.
30
+ */
31
+ hideInternalIdArgs?: boolean;
32
+ /** An extra control in the header row, outside the toggle (an Excel range jump, a thumbnail). */
33
+ extraAction?: ReactNode | ((context: ToolFallbackContext) => ReactNode);
34
+ /** A notice under the header (a prompt-injection warning, a policy note). */
35
+ notice?: ReactNode;
36
+ /** Replace the default raw result disclosure with a host renderer (Genie SQL, a table). */
37
+ renderResult?: (context: ToolFallbackContext) => ReactNode;
38
+ /** Where "Open" / the asset link goes; defaults to the SDK asset panel. */
39
+ onOpenAsset?: (assetId: string, meta: {
40
+ name?: string;
41
+ type: AssetType;
42
+ }) => void;
43
+ /** Extra content in the expanded body (a screenshot, a preview). */
44
+ children?: ReactNode;
45
+ /** Start expanded. */
46
+ defaultOpen?: boolean;
47
+ className?: string;
48
+ /** Extra attributes on the card element (`data-testid`, `data-tool-name`). */
49
+ rootProps?: Omit<ComponentProps<"div">, "className" | "children"> & Record<`data-${string}`, string | undefined>;
50
+ }
51
+ export type ToolFallbackProps = ToolCallPartProps & ToolFallbackOptions;
3
52
  export declare function clearAutoOpenedAssets(): void;
4
53
  export type ToolFallbackRootProps = Omit<React.ComponentProps<typeof Collapsible>, "open" | "onOpenChange"> & {
5
54
  open?: boolean;
@@ -7,28 +56,51 @@ export type ToolFallbackRootProps = Omit<React.ComponentProps<typeof Collapsible
7
56
  defaultOpen?: boolean;
8
57
  };
9
58
  declare function ToolFallbackRoot({ className, open: controlledOpen, onOpenChange: controlledOnOpenChange, defaultOpen, children, ...props }: ToolFallbackRootProps): import("react/jsx-runtime").JSX.Element;
10
- declare function ToolFallbackTrigger({ toolName, argsText, result, status, className, ...props }: React.ComponentProps<typeof CollapsibleTrigger> & {
59
+ export interface ToolFallbackTriggerProps extends Omit<React.ComponentProps<typeof CollapsibleTrigger>, "children"> {
11
60
  toolName: string;
12
61
  argsText?: string;
13
62
  result?: unknown;
14
63
  status?: ToolCallMessagePartStatus;
15
- }): import("react/jsx-runtime").JSX.Element;
64
+ isError?: boolean;
65
+ /** Pre-computed classification (else derived from status/result/isError). */
66
+ classification?: ToolResultClassification;
67
+ displayName?: string;
68
+ activeLabel?: string;
69
+ icon?: ElementType;
70
+ }
71
+ declare function ToolFallbackTrigger({ toolName, argsText, result, status, isError, classification: givenClassification, displayName, activeLabel, icon, className, ...props }: ToolFallbackTriggerProps): import("react/jsx-runtime").JSX.Element;
16
72
  declare function ToolFallbackContent({ className, children, ...props }: React.ComponentProps<typeof CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
17
- declare function ToolFallbackArgs({ argsText, className, ...props }: React.ComponentProps<"div"> & {
73
+ declare function ToolFallbackArgs({ argsText, hideInternalIdArgs, className, ...props }: React.ComponentProps<"div"> & {
18
74
  argsText?: string;
75
+ hideInternalIdArgs?: boolean;
19
76
  }): import("react/jsx-runtime").JSX.Element | null;
20
- declare function ToolFallbackResult({ result, className, ...props }: React.ComponentProps<"div"> & {
77
+ declare function ToolFallbackResult({ result, classification, className, ...props }: React.ComponentProps<"div"> & {
21
78
  result?: unknown;
79
+ classification?: ToolResultClassification;
22
80
  }): import("react/jsx-runtime").JSX.Element | null;
81
+ /**
82
+ * The failure a status-incomplete call carries, for the expanded body. The
83
+ * always-visible failure line is {@link ToolFallbackNotice}; this repeats the
84
+ * raw error text with the details.
85
+ */
23
86
  declare function ToolFallbackError({ status, className, ...props }: React.ComponentProps<"div"> & {
24
87
  status?: ToolCallMessagePartStatus;
25
88
  }): import("react/jsx-runtime").JSX.Element | null;
26
- declare const ToolFallback: ToolCallMessagePartComponent & {
89
+ /**
90
+ * The always-visible line under the header for a failed or paused call — the
91
+ * failure's code and message, or the runtime's pause notice — so a reader
92
+ * never has to expand a card to learn a step went wrong.
93
+ */
94
+ declare function ToolFallbackNotice({ classification, className, ...props }: React.ComponentProps<"div"> & {
95
+ classification: ToolResultClassification;
96
+ }): import("react/jsx-runtime").JSX.Element | null;
97
+ declare const ToolFallback: ToolCallMessagePartComponent & ((props: ToolFallbackProps) => ReactNode) & {
27
98
  Root: typeof ToolFallbackRoot;
28
99
  Trigger: typeof ToolFallbackTrigger;
29
100
  Content: typeof ToolFallbackContent;
30
101
  Args: typeof ToolFallbackArgs;
31
102
  Result: typeof ToolFallbackResult;
32
103
  Error: typeof ToolFallbackError;
104
+ Notice: typeof ToolFallbackNotice;
33
105
  };
34
- export { ToolFallback, ToolFallbackRoot, ToolFallbackTrigger, ToolFallbackContent, ToolFallbackArgs, ToolFallbackResult, ToolFallbackError, };
106
+ export { ToolFallback, ToolFallbackRoot, ToolFallbackTrigger, ToolFallbackContent, ToolFallbackArgs, ToolFallbackResult, ToolFallbackError, ToolFallbackNotice, };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The icon component behind each `ToolIconKey` of the shared tool display
3
+ * registry (`@athenaintel/agent-runtime`'s `tool-metadata`). The registry is
4
+ * React-free so mobile can share it; this is the web half.
5
+ */
6
+ import type { ToolIconKey } from "@athenaintel/agent-runtime";
7
+ import { type LucideIcon } from "lucide-react";
8
+ export declare const TOOL_ICONS: Record<ToolIconKey, LucideIcon>;
9
+ /** The icon component for a registry icon key. */
10
+ export declare function toolIcon(key: ToolIconKey): LucideIcon;
@@ -1,27 +1,6 @@
1
1
  import type { ToolCallMessagePartComponent } from "@assistant-ui/react";
2
2
  import { type AssetType } from "../assets/asset-panel-store";
3
- export declare function normalizeResult(result: unknown): Record<string, unknown> | null;
4
- export declare function truncate(text: string, max: number): string;
5
- /** Format a tool name like `create_new_sheet` → "Create New Sheet" */
6
- export declare function formatToolName(name: string): string;
7
- export type ToolStatus = "running" | "complete" | "incomplete" | "requires-action";
8
- export declare function ToolCard({ icon: Icon, status, title, subtitle, toolName, badge, error, children, args, result, }: {
9
- icon: React.ElementType;
10
- status: ToolStatus;
11
- title: string;
12
- subtitle?: string;
13
- toolName?: string;
14
- badge?: string;
15
- error?: string | null;
16
- children?: React.ReactNode;
17
- args?: Record<string, unknown>;
18
- result?: unknown;
19
- }): import("react/jsx-runtime").JSX.Element;
20
- export declare function ExpandableSection({ label, children, defaultOpen, }: {
21
- label?: string;
22
- children: React.ReactNode;
23
- defaultOpen?: boolean;
24
- }): import("react/jsx-runtime").JSX.Element;
3
+ export { ExpandableSection, formatToolName, normalizeResult, ToolCard, type ToolStatus, truncate, } from "./primitives";
25
4
  export declare const WebSearchToolUI: ToolCallMessagePartComponent;
26
5
  export declare const BrowseToolUI: ToolCallMessagePartComponent;
27
6
  /** Short human date for an email row: "Aug 24" this year, "Aug 24, 2025"
@@ -85,4 +64,3 @@ export declare const CaptureMomentToolUI: ToolCallMessagePartComponent;
85
64
  export declare const CaptureSlideScreenshotToolUI: ToolCallMessagePartComponent;
86
65
  export declare const OpenBrowserToolUI: ToolCallMessagePartComponent;
87
66
  export declare const TOOL_UI_REGISTRY: Record<string, ToolCallMessagePartComponent>;
88
- export {};
package/dist/tools.cjs ADDED
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const toolFallback = require("./tool-fallback-kfhpJQZa.cjs");
4
+ const miscToolUis = require("./misc-tool-uis-B2e0Okkn.cjs");
5
+ require("./trash-2-B5OaNAL7.cjs");
6
+ require("react");
7
+ require("@assistant-ui/tap");
8
+ require("statewire");
9
+ require("@assistant-ui/react-statewire");
10
+ require("@assistant-ui/store");
11
+ require("@assistant-ui/core");
12
+ exports.CopyToolSpecButton = toolFallback.CopyToolSpecButton;
13
+ exports.ExpandableSection = toolFallback.ExpandableSection;
14
+ exports.NestedPtcComponentsProvider = toolFallback.NestedPtcComponentsProvider;
15
+ exports.NestedPtcMessages = toolFallback.NestedPtcMessages;
16
+ exports.TOOL_ICONS = toolFallback.TOOL_ICONS;
17
+ exports.ToolCard = toolFallback.ToolCard;
18
+ exports.ToolFallback = toolFallback.ToolFallback;
19
+ exports.ToolFallbackArgs = toolFallback.ToolFallbackArgs;
20
+ exports.ToolFallbackContent = toolFallback.ToolFallbackContent;
21
+ exports.ToolFallbackError = toolFallback.ToolFallbackError;
22
+ exports.ToolFallbackNotice = toolFallback.ToolFallbackNotice;
23
+ exports.ToolFallbackResult = toolFallback.ToolFallbackResult;
24
+ exports.ToolFallbackRoot = toolFallback.ToolFallbackRoot;
25
+ exports.ToolFallbackTrigger = toolFallback.ToolFallbackTrigger;
26
+ exports.classifyToolResult = toolFallback.classifyToolResult;
27
+ exports.clearAutoOpenedAssets = toolFallback.clearAutoOpenedAssets;
28
+ exports.describeToolArgs = toolFallback.describeToolArgs;
29
+ exports.formatToolName = toolFallback.formatToolName;
30
+ exports.getToolDisplayMeta = toolFallback.getToolDisplayMeta;
31
+ exports.isToolResultSuccess = toolFallback.isToolResultSuccess;
32
+ exports.normalizeResult = toolFallback.normalizeResult;
33
+ exports.resultMessage = toolFallback.resultMessage;
34
+ exports.toolActiveLabel = toolFallback.toolActiveLabel;
35
+ exports.toolCompletedLabel = toolFallback.toolCompletedLabel;
36
+ exports.toolIcon = toolFallback.toolIcon;
37
+ exports.truncate = toolFallback.truncate;
38
+ exports.tryParseJson = toolFallback.tryParseJson;
39
+ exports.useNestedPtcComponents = toolFallback.useNestedPtcComponents;
40
+ exports.InstallPackageToolUI = miscToolUis.InstallPackageToolUI;
41
+ //# sourceMappingURL=tools.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/tools.js ADDED
@@ -0,0 +1,41 @@
1
+ import { C, E, N, a, T, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, t, s, u, v, w, x } from "./tool-fallback-DkQ3DLkn.js";
2
+ import { I } from "./misc-tool-uis-gAiQw0Yl.js";
3
+ import "./trash-2-CCwSURL-.js";
4
+ import "react";
5
+ import "@assistant-ui/tap";
6
+ import "statewire";
7
+ import "@assistant-ui/react-statewire";
8
+ import "@assistant-ui/store";
9
+ import "@assistant-ui/core";
10
+ export {
11
+ C as CopyToolSpecButton,
12
+ E as ExpandableSection,
13
+ I as InstallPackageToolUI,
14
+ N as NestedPtcComponentsProvider,
15
+ a as NestedPtcMessages,
16
+ T as TOOL_ICONS,
17
+ b as ToolCard,
18
+ c as ToolFallback,
19
+ d as ToolFallbackArgs,
20
+ e as ToolFallbackContent,
21
+ f as ToolFallbackError,
22
+ g as ToolFallbackNotice,
23
+ h as ToolFallbackResult,
24
+ i as ToolFallbackRoot,
25
+ j as ToolFallbackTrigger,
26
+ k as classifyToolResult,
27
+ l as clearAutoOpenedAssets,
28
+ m as describeToolArgs,
29
+ n as formatToolName,
30
+ o as getToolDisplayMeta,
31
+ p as isToolResultSuccess,
32
+ q as normalizeResult,
33
+ r as resultMessage,
34
+ t as toolActiveLabel,
35
+ s as toolCompletedLabel,
36
+ u as toolIcon,
37
+ v as truncate,
38
+ w as tryParseJson,
39
+ x as useNestedPtcComponents
40
+ };
41
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}