@automattic/agenttic-client 0.1.14 → 0.1.16
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 +78 -1
- package/dist/client/types/index.d.ts +55 -0
- package/dist/client/types/index.d.ts.map +1 -1
- package/dist/index.d.ts +5 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1205 -1649
- package/dist/message-actions/index.d.ts +0 -2
- package/dist/message-actions/index.d.ts.map +1 -1
- package/dist/message-actions/useMessageActions.d.ts.map +1 -1
- package/dist/mocks/MockSalesGraph.d.ts.map +1 -1
- package/dist/mocks.js +672 -50
- package/dist/react/useAgentChat.d.ts +0 -18
- package/dist/react/useAgentChat.d.ts.map +1 -1
- package/dist/react/useClientTools.d.ts +65 -3
- package/dist/react/useClientTools.d.ts.map +1 -1
- package/dist/utils/wordpressAbilities.d.ts +37 -0
- package/dist/utils/wordpressAbilities.d.ts.map +1 -0
- package/package.json +3 -10
- package/dist/BarChart-CeqsqG1F.js +0 -801
- package/dist/BarChart.css +0 -1
- package/dist/markdown-extensions/charts/BarChart.d.ts +0 -16
- package/dist/markdown-extensions/charts/BarChart.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/BaseChart.d.ts +0 -36
- package/dist/markdown-extensions/charts/BaseChart.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/ChartBlock.d.ts +0 -34
- package/dist/markdown-extensions/charts/ChartBlock.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/ChartError.d.ts +0 -17
- package/dist/markdown-extensions/charts/ChartError.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/ChartErrorBoundary.d.ts +0 -30
- package/dist/markdown-extensions/charts/ChartErrorBoundary.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/LineChart.d.ts +0 -14
- package/dist/markdown-extensions/charts/LineChart.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/index.d.ts +0 -294
- package/dist/markdown-extensions/charts/index.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/utils/chartUtils.d.ts +0 -56
- package/dist/markdown-extensions/charts/utils/chartUtils.d.ts.map +0 -1
- package/dist/markdown-extensions/index.d.ts +0 -34
- package/dist/markdown-extensions/index.d.ts.map +0 -1
- package/dist/markdown-extensions/types.d.ts +0 -52
- package/dist/markdown-extensions/types.d.ts.map +0 -1
- package/dist/marked.esm-CXPn2rbO.js +0 -1090
- package/dist/message-actions/factories.d.ts +0 -16
- package/dist/message-actions/factories.d.ts.map +0 -1
- package/dist/parseBlocks-DtWG2dnE.js +0 -34
- package/dist/parseIncompleteMarkdown-Di9Hun9H.js +0 -211
- package/dist/utils/createMessageRenderer.d.ts +0 -27
- package/dist/utils/createMessageRenderer.d.ts.map +0 -1
- package/dist/utils/streaming/parseBlocks.d.ts +0 -26
- package/dist/utils/streaming/parseBlocks.d.ts.map +0 -1
- package/dist/utils/streaming/parseIncompleteMarkdown.d.ts +0 -24
- package/dist/utils/streaming/parseIncompleteMarkdown.d.ts.map +0 -1
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import { type MarkdownComponents, type MarkdownExtensions } from '../utils/createMessageRenderer';
|
|
4
3
|
import type { AuthProvider, ContextProvider, ToolProvider } from '../client/types/index';
|
|
5
|
-
import type { createFeedbackActions } from '../message-actions/factories';
|
|
6
4
|
export interface Suggestion {
|
|
7
5
|
id: string;
|
|
8
6
|
label: string;
|
|
9
7
|
prompt: string;
|
|
10
8
|
}
|
|
11
|
-
export type { MarkdownComponents, MarkdownExtensions, } from '../utils/createMessageRenderer';
|
|
12
9
|
export interface UIMessage {
|
|
13
10
|
id: string;
|
|
14
11
|
role: 'user' | 'agent';
|
|
@@ -50,19 +47,10 @@ export interface MessageActionsRegistration {
|
|
|
50
47
|
id: string;
|
|
51
48
|
actions: MessageActionDefinition[] | ((message: UIMessage) => MessageActionDefinition[]);
|
|
52
49
|
}
|
|
53
|
-
export interface FeedbackActionsConfig {
|
|
54
|
-
onFeedback: (messageId: string, feedback: 'up' | 'down') => void | Promise<void>;
|
|
55
|
-
condition?: (message: UIMessage) => boolean;
|
|
56
|
-
icons: {
|
|
57
|
-
up: ReactNode;
|
|
58
|
-
down: ReactNode;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
50
|
export interface UseMessageActionsReturn {
|
|
62
51
|
registerMessageActions: (registration: MessageActionsRegistration) => void;
|
|
63
52
|
unregisterMessageActions: (id: string) => void;
|
|
64
53
|
clearAllMessageActions: () => void;
|
|
65
|
-
createFeedbackActions: typeof createFeedbackActions;
|
|
66
54
|
}
|
|
67
55
|
export interface UseAgentChatConfig {
|
|
68
56
|
agentId: string;
|
|
@@ -79,17 +67,11 @@ export interface UseAgentChatReturn {
|
|
|
79
67
|
error: string | null;
|
|
80
68
|
onSubmit: (message: string) => Promise<void>;
|
|
81
69
|
suggestions: Suggestion[];
|
|
82
|
-
messageRenderer?: React.ComponentType<{
|
|
83
|
-
children: string;
|
|
84
|
-
}>;
|
|
85
70
|
registerSuggestions: (suggestions: Suggestion[]) => void;
|
|
86
71
|
clearSuggestions: () => void;
|
|
87
|
-
registerMarkdownComponents: (components: MarkdownComponents) => void;
|
|
88
|
-
registerMarkdownExtensions: (extensions: MarkdownExtensions) => void;
|
|
89
72
|
registerMessageActions: (registration: MessageActionsRegistration) => void;
|
|
90
73
|
unregisterMessageActions: (id: string) => void;
|
|
91
74
|
clearAllMessageActions: () => void;
|
|
92
|
-
createFeedbackActions: typeof createFeedbackActions;
|
|
93
75
|
addMessage: (message: UIMessage) => void;
|
|
94
76
|
abortCurrentRequest: () => void;
|
|
95
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAgentChat.d.ts","sourceRoot":"","sources":["../../src/react/useAgentChat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,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;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAE,OAAO,EAAE,MAAM,KAAM,OAAO,CAAE,IAAI,CAAE,CAAC;IACjD,WAAW,EAAE,UAAU,EAAE,CAAC;IAG1B,mBAAmB,EAAE,CAAE,WAAW,EAAE,UAAU,EAAE,KAAM,IAAI,CAAC;IAC3D,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAG7B,sBAAsB,EAAE,CACvB,YAAY,EAAE,0BAA0B,KACpC,IAAI,CAAC;IACV,wBAAwB,EAAE,CAAE,EAAE,EAAE,MAAM,KAAM,IAAI,CAAC;IACjD,sBAAsB,EAAE,MAAM,IAAI,CAAC;IAGnC,UAAU,EAAE,CAAE,OAAO,EAAE,SAAS,KAAM,IAAI,CAAC;IAG3C,mBAAmB,EAAE,MAAM,IAAI,CAAC;CAChC;AAWD;;;;GAIG;AACH,wBAAgB,YAAY,CAAE,MAAM,EAAE,kBAAkB,GAAI,kBAAkB,CA2Y7E;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Tool, ToolProvider } from '../client/types/index';
|
|
1
|
+
import type { Ability, ExecuteAbilityFunction, Tool, ToolProvider } from '../client/types/index';
|
|
2
2
|
/**
|
|
3
3
|
* Callback function type for getting tools
|
|
4
4
|
*/
|
|
@@ -8,7 +8,16 @@ export type GetClientToolsCallback = () => Promise<Tool[]>;
|
|
|
8
8
|
*/
|
|
9
9
|
export type ExecuteToolCallback = (toolId: string, args: any) => Promise<any>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Configuration for useClientToolsWithAbilities hook
|
|
12
|
+
*/
|
|
13
|
+
export interface UseClientToolsWithAbilitiesConfig {
|
|
14
|
+
getClientTools?: GetClientToolsCallback;
|
|
15
|
+
executeTool?: ExecuteToolCallback;
|
|
16
|
+
abilities?: Ability[];
|
|
17
|
+
executeAbility?: ExecuteAbilityFunction;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* React hook that creates a ToolProvider for regular tools
|
|
12
21
|
*
|
|
13
22
|
* This hook takes separate callback functions for getting tools and executing tools.
|
|
14
23
|
* It wraps them in the ToolProvider interface expected by the agenttic client.
|
|
@@ -18,6 +27,59 @@ export type ExecuteToolCallback = (toolId: string, args: any) => Promise<any>;
|
|
|
18
27
|
* @param getClientTools - Function that returns available tools as an array of Tool objects
|
|
19
28
|
* @param executeTool - Function that executes a tool with the arguments returned by the agent
|
|
20
29
|
* @return ToolProvider instance or undefined if no getClientTools callback provided
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const toolProvider = useClientTools(
|
|
34
|
+
* async () => [...myTools],
|
|
35
|
+
* async (toolId, args) => {
|
|
36
|
+
* // Execute tool logic
|
|
37
|
+
* }
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare function useClientTools(getClientTools: GetClientToolsCallback, executeTool: ExecuteToolCallback): ToolProvider | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* React hook that creates a ToolProvider for WordPress Abilities
|
|
44
|
+
*
|
|
45
|
+
* This hook converts WordPress Abilities to tools and provides a ToolProvider
|
|
46
|
+
* that executes them using the WordPress Abilities API.
|
|
47
|
+
*
|
|
48
|
+
* @param abilities - Array of WordPress Abilities from @wordpress/abilities
|
|
49
|
+
* @param executeAbility - Function to execute abilities (from @wordpress/abilities)
|
|
50
|
+
* @return ToolProvider instance or undefined if no abilities provided
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import { getAbilities, executeAbility } from '@wordpress/abilities';
|
|
55
|
+
*
|
|
56
|
+
* const abilities = await getAbilities();
|
|
57
|
+
* const toolProvider = useClientAbilities(abilities, executeAbility);
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function useClientAbilities(abilities: Ability[], executeAbility: ExecuteAbilityFunction): ToolProvider | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* React hook that creates a ToolProvider for both tools and WordPress Abilities
|
|
63
|
+
*
|
|
64
|
+
* This hook accepts a configuration object that supports both regular tools
|
|
65
|
+
* and WordPress Abilities. Abilities are automatically converted to tools and
|
|
66
|
+
* merged with regular tools.
|
|
67
|
+
*
|
|
68
|
+
* @param config - Configuration object with tools, abilities, and execution functions
|
|
69
|
+
* @return ToolProvider instance or undefined if no tools/abilities provided
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```typescript
|
|
73
|
+
* import { getAbilities, executeAbility } from '@wordpress/abilities';
|
|
74
|
+
*
|
|
75
|
+
* const abilities = await getAbilities();
|
|
76
|
+
* const toolProvider = useClientToolsWithAbilities({
|
|
77
|
+
* getClientTools: async () => [...myTools],
|
|
78
|
+
* executeTool: async (toolId, args) => { ... },
|
|
79
|
+
* abilities,
|
|
80
|
+
* executeAbility,
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
21
83
|
*/
|
|
22
|
-
export declare function
|
|
84
|
+
export declare function useClientToolsWithAbilities(config: UseClientToolsWithAbilitiesConfig): ToolProvider | undefined;
|
|
23
85
|
//# sourceMappingURL=useClientTools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientTools.d.ts","sourceRoot":"","sources":["../../src/react/useClientTools.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useClientTools.d.ts","sourceRoot":"","sources":["../../src/react/useClientTools.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,OAAO,EACP,sBAAsB,EACtB,IAAI,EACJ,YAAY,EACZ,MAAM,uBAAuB,CAAC;AAG/B;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,CAAE,IAAI,EAAE,CAAE,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CACjC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,GAAG,KACL,OAAO,CAAE,GAAG,CAAE,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,iCAAiC;IACjD,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACxC;AA4HD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAC7B,cAAc,EAAE,sBAAsB,EACtC,WAAW,EAAE,mBAAmB,GAC9B,YAAY,GAAG,SAAS,CAO1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CACjC,SAAS,EAAE,OAAO,EAAE,EACpB,cAAc,EAAE,sBAAsB,GACpC,YAAY,GAAG,SAAS,CAe1B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,2BAA2B,CAC1C,MAAM,EAAE,iCAAiC,GACvC,YAAY,GAAG,SAAS,CA8B1B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress Abilities API integration for Agenttic Client
|
|
3
|
+
*
|
|
4
|
+
* This module provides utilities to integrate WordPress Abilities API
|
|
5
|
+
* abilities with the Agenttic tool system.
|
|
6
|
+
*/
|
|
7
|
+
import type { Ability, Tool } from '../client/types';
|
|
8
|
+
/**
|
|
9
|
+
* Extended Tool interface to track WordPress Ability origin
|
|
10
|
+
*/
|
|
11
|
+
interface AbilityTool extends Tool {
|
|
12
|
+
_source?: 'wordpress-ability';
|
|
13
|
+
_originalAbility?: Ability;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Convert a single WordPress Ability to an Agenttic Tool.
|
|
17
|
+
*
|
|
18
|
+
* @param ability The WordPress Ability to convert
|
|
19
|
+
* @return The converted Tool object
|
|
20
|
+
*/
|
|
21
|
+
export declare function convertAbilityToTool(ability: Ability): AbilityTool;
|
|
22
|
+
/**
|
|
23
|
+
* Convert an array of WordPress Abilities to Agenttic Tools.
|
|
24
|
+
*
|
|
25
|
+
* @param abilities Array of WordPress Abilities
|
|
26
|
+
* @return Array of converted Tool objects
|
|
27
|
+
*/
|
|
28
|
+
export declare function convertAbilitiesToTools(abilities: Ability[]): Tool[];
|
|
29
|
+
/**
|
|
30
|
+
* Check if a tool was converted from a WordPress Ability.
|
|
31
|
+
*
|
|
32
|
+
* @param tool The tool to check
|
|
33
|
+
* @return True if the tool originated from a WordPress Ability
|
|
34
|
+
*/
|
|
35
|
+
export declare function isWordPressAbility(tool: any): tool is AbilityTool;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=wordpressAbilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordpressAbilities.d.ts","sourceRoot":"","sources":["../../src/utils/wordpressAbilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,UAAU,WAAY,SAAQ,IAAI;IACjC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAE,OAAO,EAAE,OAAO,GAAI,WAAW,CAuBpE;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAE,SAAS,EAAE,OAAO,EAAE,GAAI,IAAI,EAAE,CAEtE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,GAAG,GAAI,IAAI,IAAI,WAAW,CAEnE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/agenttic-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A TypeScript client library for A2A (Agent2Agent) protocol communication",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,13 +45,8 @@
|
|
|
45
45
|
"vitest": "^1.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@automattic/charts": ">=0.14.0 <1.0.0",
|
|
49
48
|
"@types/react": "^18.0.0",
|
|
50
|
-
"
|
|
51
|
-
"@wordpress/i18n": "^6.1.0",
|
|
52
|
-
"react": "^18.0.0",
|
|
53
|
-
"react-markdown": "^10.1.0",
|
|
54
|
-
"remark-gfm": "^4.0.1"
|
|
49
|
+
"react": "^18.0.0"
|
|
55
50
|
},
|
|
56
51
|
"optionalDependencies": {
|
|
57
52
|
"marked": "^16.2.1"
|
|
@@ -76,8 +71,6 @@
|
|
|
76
71
|
"type-check": "tsc --noEmit",
|
|
77
72
|
"lint": "wp-scripts lint-js src --ext .ts,.tsx",
|
|
78
73
|
"lint:fix": "wp-scripts lint-js src --ext .ts,.tsx --fix",
|
|
79
|
-
"test": "vitest run"
|
|
80
|
-
"i18n:extract": "npx --no-install @wordpress/i18n-command make-pot src --output=languages/a8c-agenttic.pot --domain=a8c-agenttic",
|
|
81
|
-
"i18n:update": "npx --no-install @wordpress/i18n-command make-json languages --domain=a8c-agenttic"
|
|
74
|
+
"test": "vitest run"
|
|
82
75
|
}
|
|
83
76
|
}
|