@athenaintel/react 0.18.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.
- package/README.md +106 -4
- package/dist/SuperGroupingCard-BsWbHyV_.js +795 -0
- package/dist/SuperGroupingCard-BsWbHyV_.js.map +1 -0
- package/dist/SuperGroupingCard-CRRFUgjN.cjs +794 -0
- package/dist/SuperGroupingCard-CRRFUgjN.cjs.map +1 -0
- package/dist/chat/StatewireApprovalCard.d.ts +59 -2
- package/dist/chat/StatewireClientToolBridge.d.ts +3 -3
- package/dist/chat/StatewireQueuedMessages.d.ts +105 -6
- package/dist/chat/statewire-approval.d.ts +1 -1
- package/dist/chat/statewire-client-tools.d.ts +15 -21
- package/dist/chat/super-grouping/CollapsibleGroup.d.ts +52 -11
- package/dist/chat/super-grouping/SuperGroupingCard.d.ts +78 -21
- package/dist/chat/super-grouping/activity-timeline.d.ts +91 -0
- package/dist/chat/super-grouping/grouping-function.d.ts +13 -10
- package/dist/chat/super-grouping/index.d.ts +12 -0
- package/dist/chat/super-grouping/toolkit-map.d.ts +8 -1
- package/dist/chat/use-statewire-approval-request.d.ts +44 -0
- package/dist/chat-ui/header/conversation-history-panel.d.ts +11 -1
- package/dist/chat-ui/index.d.ts +7 -1
- package/dist/chat-ui/mentions/suggestions/shims.d.ts +0 -4
- package/dist/chat-ui/messages/runtime-message.d.ts +2 -3
- package/dist/chat-ui/messages/statewire-continue-run.d.ts +48 -7
- package/dist/chat-ui/messages/user-edit-composer.d.ts +5 -2
- package/dist/chat-ui/statewire.d.ts +19 -0
- package/dist/chat-ui/thread/chat-thread-shell.d.ts +7 -1
- package/dist/chat-ui/thread/statewire-history-edge.d.ts +52 -0
- package/dist/chat-ui-statewire.cjs +25 -0
- package/dist/chat-ui-statewire.cjs.map +1 -0
- package/dist/chat-ui-statewire.js +25 -0
- package/dist/chat-ui-statewire.js.map +1 -0
- package/dist/chat-ui.cjs +174 -357
- package/dist/chat-ui.cjs.map +1 -1
- package/dist/chat-ui.js +173 -355
- package/dist/chat-ui.js.map +1 -1
- package/dist/diagnostics/athena-diagnostics.d.ts +1 -1
- package/dist/diagnostics/errors.d.ts +4 -0
- package/dist/index.cjs +2222 -5183
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +21 -6
- package/dist/index.js +4193 -7151
- package/dist/index.js.map +1 -1
- package/dist/misc-tool-uis-B2e0Okkn.cjs +43 -0
- package/dist/misc-tool-uis-B2e0Okkn.cjs.map +1 -0
- package/dist/misc-tool-uis-gAiQw0Yl.js +44 -0
- package/dist/misc-tool-uis-gAiQw0Yl.js.map +1 -0
- package/dist/provider/AthenaProvider.d.ts +4 -2
- package/dist/provider/config.d.ts +9 -2
- package/dist/provider/statewire-window-context.d.ts +12 -0
- package/dist/runtime/statewire-auth-headers.d.ts +38 -0
- package/dist/runtime/statewire-lifecycle.d.ts +25 -0
- package/dist/runtime/statewire-session-key.d.ts +13 -0
- package/dist/runtime/useAthenaStatewireRuntime.d.ts +36 -5
- package/dist/statewire-continue-run-D34gS7_1.js +132 -0
- package/dist/statewire-continue-run-D34gS7_1.js.map +1 -0
- package/dist/statewire-continue-run-nE9VCKUh.cjs +131 -0
- package/dist/statewire-continue-run-nE9VCKUh.cjs.map +1 -0
- package/dist/statewire-history-edge-C8uyTEjX.cjs +1711 -0
- package/dist/statewire-history-edge-C8uyTEjX.cjs.map +1 -0
- package/dist/statewire-history-edge-CPohUKMt.js +1712 -0
- package/dist/statewire-history-edge-CPohUKMt.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/super-grouping.cjs +22 -0
- package/dist/super-grouping.cjs.map +1 -0
- package/dist/super-grouping.js +22 -0
- package/dist/super-grouping.js.map +1 -0
- package/dist/threads/mint-thread-id.d.ts +8 -0
- package/dist/threads/statewire-thread-list.d.ts +20 -4
- package/dist/tool-fallback-DkQ3DLkn.js +4281 -0
- package/dist/tool-fallback-DkQ3DLkn.js.map +1 -0
- package/dist/tool-fallback-kfhpJQZa.cjs +4297 -0
- package/dist/tool-fallback-kfhpJQZa.cjs.map +1 -0
- package/dist/tools/index.d.ts +14 -0
- package/dist/tools/misc-tool-uis.d.ts +2 -0
- package/dist/tools/primitives.d.ts +41 -0
- package/dist/tools/tool-fallback.d.ts +78 -6
- package/dist/tools/tool-icons.d.ts +10 -0
- package/dist/tools/tool-uis.d.ts +1 -23
- package/dist/tools.cjs +41 -0
- package/dist/tools.cjs.map +1 -0
- package/dist/tools.js +41 -0
- package/dist/tools.js.map +1 -0
- package/dist/trash-2-B5OaNAL7.cjs +5096 -0
- package/dist/trash-2-B5OaNAL7.cjs.map +1 -0
- package/dist/trash-2-CCwSURL-.js +5081 -0
- package/dist/trash-2-CCwSURL-.js.map +1 -0
- package/dist/{use-rest-conversation-history-Dm0rdQgT.cjs → use-rest-conversation-history-Cm8qMRxp.cjs} +445 -5406
- package/dist/use-rest-conversation-history-Cm8qMRxp.cjs.map +1 -0
- package/dist/{use-rest-conversation-history-Bs5qn5G3.js → use-rest-conversation-history-veDZS-oL.js} +491 -5452
- package/dist/use-rest-conversation-history-veDZS-oL.js.map +1 -0
- package/dist/wrench-BEf72cyP.cjs +417 -0
- package/dist/wrench-BEf72cyP.cjs.map +1 -0
- package/dist/wrench-CbrOlVYm.js +418 -0
- package/dist/wrench-CbrOlVYm.js.map +1 -0
- package/dist/x-Dfd2NzK0.cjs +42 -0
- package/dist/x-Dfd2NzK0.cjs.map +1 -0
- package/dist/x-_DntAa_a.js +43 -0
- package/dist/x-_DntAa_a.js.map +1 -0
- package/package.json +29 -11
- package/dist/chat/super-grouping/tool-status-labels.d.ts +0 -1
- package/dist/use-rest-conversation-history-Bs5qn5G3.js.map +0 -1
- package/dist/use-rest-conversation-history-Dm0rdQgT.cjs.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,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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
package/dist/tools/tool-uis.d.ts
CHANGED
|
@@ -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
|
|
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":";;;;;;;;;"}
|