@cntyclub/agent-react 0.4.0 → 0.6.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/dist/api-client.d.ts +1 -1
- package/dist/api-client.d.ts.map +1 -1
- package/dist/components/agent-composer.d.ts +23 -0
- package/dist/components/agent-composer.d.ts.map +1 -0
- package/dist/components/agent-panel.d.ts +3 -1
- package/dist/components/agent-panel.d.ts.map +1 -1
- package/dist/components/agent-widget.d.ts.map +1 -1
- package/dist/components/document-card.d.ts +11 -0
- package/dist/components/document-card.d.ts.map +1 -0
- package/dist/components/message-item.d.ts +5 -1
- package/dist/components/message-item.d.ts.map +1 -1
- package/dist/components/task-checklist.d.ts +11 -0
- package/dist/components/task-checklist.d.ts.map +1 -0
- package/dist/components/tool-activity-group.d.ts +15 -0
- package/dist/components/tool-activity-group.d.ts.map +1 -0
- package/dist/components/tool-approval-card.d.ts +10 -5
- package/dist/components/tool-approval-card.d.ts.map +1 -1
- package/dist/file-support.d.ts +13 -0
- package/dist/file-support.d.ts.map +1 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +768 -111
- package/dist/index.js.map +1 -1
- package/dist/message-group.d.ts +37 -0
- package/dist/message-group.d.ts.map +1 -0
- package/dist/tool-presentation.d.ts +20 -0
- package/dist/tool-presentation.d.ts.map +1 -0
- package/dist/types.d.ts +91 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/use-agent-chat.d.ts +1 -1
- package/dist/use-agent-chat.d.ts.map +1 -1
- package/dist/use-always-approve.d.ts +15 -0
- package/dist/use-always-approve.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -16,7 +16,39 @@ export interface TableBlock {
|
|
|
16
16
|
truncated?: boolean;
|
|
17
17
|
pagination?: Record<string, unknown>;
|
|
18
18
|
}
|
|
19
|
-
export type
|
|
19
|
+
export type DocumentFormat = "csv" | "txt" | "md" | "docx" | "pdf";
|
|
20
|
+
/** A file the agent generated for the user to preview and download. */
|
|
21
|
+
export interface DocumentBlock {
|
|
22
|
+
type: "document";
|
|
23
|
+
document_id: string;
|
|
24
|
+
filename: string;
|
|
25
|
+
format: DocumentFormat;
|
|
26
|
+
title?: string;
|
|
27
|
+
size_bytes?: number;
|
|
28
|
+
download_url?: string | null;
|
|
29
|
+
/** First chunk of the generated content, for the in-chat preview. */
|
|
30
|
+
preview?: string;
|
|
31
|
+
preview_truncated?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export type TaskStatus = "pending" | "in_progress" | "done";
|
|
34
|
+
export interface TaskItem {
|
|
35
|
+
title: string;
|
|
36
|
+
status: TaskStatus;
|
|
37
|
+
}
|
|
38
|
+
/** A read-only checklist of the steps the agent is working through. */
|
|
39
|
+
export interface TasksBlock {
|
|
40
|
+
type: "tasks";
|
|
41
|
+
tasks: TaskItem[];
|
|
42
|
+
}
|
|
43
|
+
export type MessageBlock = TableBlock | DocumentBlock | TasksBlock;
|
|
44
|
+
/** A text file the user uploaded, as summarized on their message. */
|
|
45
|
+
export interface AttachmentInfo {
|
|
46
|
+
id: string;
|
|
47
|
+
filename: string;
|
|
48
|
+
format: string;
|
|
49
|
+
size_bytes?: number;
|
|
50
|
+
char_count?: number;
|
|
51
|
+
}
|
|
20
52
|
export interface ToolCallInfo {
|
|
21
53
|
id?: string;
|
|
22
54
|
name?: string;
|
|
@@ -29,6 +61,10 @@ export interface ToolCallInfo {
|
|
|
29
61
|
export interface AgentMessage extends Omit<AgentModeSchemas["AgentChatMessage"], "blocks" | "tool_calls"> {
|
|
30
62
|
blocks?: MessageBlock[];
|
|
31
63
|
tool_calls?: ToolCallInfo[];
|
|
64
|
+
/** Tool messages only: capped, pretty-printed raw result for the JSON detail view. */
|
|
65
|
+
result?: string;
|
|
66
|
+
/** User messages only: files uploaded with this message. */
|
|
67
|
+
attachments?: AttachmentInfo[];
|
|
32
68
|
}
|
|
33
69
|
export type PendingApproval = AgentModeSchemas["PendingApproval"];
|
|
34
70
|
export type ConversationSummary = Required<AgentModeSchemas["ConversationList"]>;
|
|
@@ -39,6 +75,41 @@ export interface ChatResponse extends Omit<AgentModeSchemas["AgentChatResponse"]
|
|
|
39
75
|
}
|
|
40
76
|
export type ChatRequest = AgentModeSchemas["ChatRequestRequest"];
|
|
41
77
|
export type ApprovalRequest = AgentModeSchemas["ApprovalRequestRequest"];
|
|
78
|
+
/** One "key: value" fact shown inside a tool/approval card. */
|
|
79
|
+
export interface ToolCallDetail {
|
|
80
|
+
label: string;
|
|
81
|
+
value: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A human-readable description of a tool call, used to render approval prompts
|
|
85
|
+
* and the tool-activity log in plain language instead of raw arguments.
|
|
86
|
+
*
|
|
87
|
+
* Return this from {@link AgentConfig.describeToolCall} to turn e.g.
|
|
88
|
+
* `target_company_tags_apply({name:"Potential-Fit", company_id:"861a…"})`
|
|
89
|
+
* into "Tag Acme Corp as 'Potential-Fit'".
|
|
90
|
+
*/
|
|
91
|
+
export interface ToolCallDescription {
|
|
92
|
+
/** Short verb-phrase title, e.g. "Tag a company" or "Create product". */
|
|
93
|
+
title?: string;
|
|
94
|
+
/** One-line sentence describing exactly what will happen, in the user's terms. */
|
|
95
|
+
summary?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Structured facts to show under the summary. When omitted the widget derives
|
|
98
|
+
* them from the arguments (hiding technical keys like ids, keys, and slugs).
|
|
99
|
+
*/
|
|
100
|
+
details?: ToolCallDetail[];
|
|
101
|
+
/**
|
|
102
|
+
* Set false to keep the auto-derived argument facts hidden even when you
|
|
103
|
+
* provide no `details` (e.g. the summary already says everything). Default true.
|
|
104
|
+
*/
|
|
105
|
+
showDerivedDetails?: boolean;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Describes a tool call in plain language for approval prompts and the tool log.
|
|
109
|
+
* Receives the MCP tool name and its arguments; return `null`/`undefined` to
|
|
110
|
+
* fall back to the widget's default (humanized name + non-technical arguments).
|
|
111
|
+
*/
|
|
112
|
+
export type DescribeToolCall = (toolName: string, args: Record<string, unknown>) => ToolCallDescription | null | undefined;
|
|
42
113
|
/** Maps MCP tools to a page in the host app so the agent can navigate alongside chat. */
|
|
43
114
|
export interface AgentPageMapping {
|
|
44
115
|
/** MCP tool names whose execution relates to this page. */
|
|
@@ -71,6 +142,25 @@ export interface AgentConfig {
|
|
|
71
142
|
navigate?: (path: string) => void;
|
|
72
143
|
/** Tool → page mappings used for page-follow navigation and hints. */
|
|
73
144
|
pages?: AgentPageMapping[];
|
|
145
|
+
/**
|
|
146
|
+
* Turn raw tool calls into plain-language descriptions for approval prompts
|
|
147
|
+
* and the tool-activity log. Without it the widget still hides technical
|
|
148
|
+
* arguments (ids, keys, slugs, UUIDs) and humanizes the tool name, but this
|
|
149
|
+
* hook lets each dashboard say exactly what an action means to its users.
|
|
150
|
+
*/
|
|
151
|
+
describeToolCall?: DescribeToolCall;
|
|
152
|
+
/**
|
|
153
|
+
* File-upload behaviour. Only text formats are ever accepted (the model
|
|
154
|
+
* cannot read images). Defaults: enabled, 5 MB max, `.txt/.md/.csv/.tsv/.docx`.
|
|
155
|
+
*/
|
|
156
|
+
fileUpload?: {
|
|
157
|
+
/** Set false to hide the attach button and disable drag-and-drop. Default true. */
|
|
158
|
+
enabled?: boolean;
|
|
159
|
+
/** Max size per file in MB. Default 5. */
|
|
160
|
+
maxSizeMb?: number;
|
|
161
|
+
/** Accepted file extensions (with leading dot). Overrides the default text set. */
|
|
162
|
+
accept?: string[];
|
|
163
|
+
};
|
|
74
164
|
/** Widget appearance tweaks. All styling comes from the host's UI-kit theme tokens. */
|
|
75
165
|
appearance?: {
|
|
76
166
|
/** Floating button position. Default: "bottom-right". */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EA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agent-chat.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface AgentChatState {
|
|
|
10
10
|
error: string | null;
|
|
11
11
|
}
|
|
12
12
|
export interface AgentChatActions {
|
|
13
|
-
send: (text: string) => Promise<void>;
|
|
13
|
+
send: (text: string, files?: File[]) => Promise<void>;
|
|
14
14
|
resolveApproval: (callId: string, approve: boolean) => Promise<void>;
|
|
15
15
|
newChat: () => void;
|
|
16
16
|
openConversation: (conversationId: string) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-agent-chat.d.ts","sourceRoot":"","sources":["../src/use-agent-chat.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrC,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-agent-chat.d.ts","sourceRoot":"","sources":["../src/use-agent-chat.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrC,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,kBAAkB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,cAAc,GAAG,gBAAgB,CAiKnF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AlwaysApproveStore {
|
|
2
|
+
/** Whether the user chose to always approve this tool for this agent. */
|
|
3
|
+
isAlwaysApproved: (toolName: string) => boolean;
|
|
4
|
+
/** Remember to auto-approve this tool from now on (persisted per agent). */
|
|
5
|
+
setAlwaysApprove: (toolName: string) => void;
|
|
6
|
+
/** Stop auto-approving this tool. */
|
|
7
|
+
clearAlwaysApprove: (toolName: string) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Per-agent "always approve" memory for write tools, persisted in localStorage
|
|
11
|
+
* (keyed by client id). Once a tool is trusted the panel auto-resolves its
|
|
12
|
+
* future approval prompts instead of asking again.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useAlwaysApprove(clientId: string): AlwaysApproveStore;
|
|
15
|
+
//# sourceMappingURL=use-always-approve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-always-approve.d.ts","sourceRoot":"","sources":["../src/use-always-approve.ts"],"names":[],"mappings":"AAsBA,MAAM,WAAW,kBAAkB;IACjC,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IAChD,4EAA4E;IAC5E,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qCAAqC;IACrC,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAChD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CA4CrE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntyclub/agent-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Embeddable AI agent chat widget for Country Club dashboards — floating button, popup panel, fullscreen Agent Mode, MCP tool approvals, and paginated result tables. Built exclusively on @cntyclub/ui-react.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|