@automattic/agenttic-client 0.1.0 → 0.1.2
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/auth/jetpack.d.ts +77 -0
- package/dist/auth/jetpack.d.ts.map +1 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/types/index.d.ts +192 -0
- package/dist/client/types/index.d.ts.map +1 -0
- package/dist/client/utils/core.d.ts +82 -0
- package/dist/client/utils/core.d.ts.map +1 -0
- package/dist/client/utils/index.d.ts +8 -0
- package/dist/client/utils/index.d.ts.map +1 -0
- package/dist/client/utils/internal/errors.d.ts +43 -0
- package/dist/client/utils/internal/errors.d.ts.map +1 -0
- package/dist/client/utils/internal/messages.d.ts +27 -0
- package/dist/client/utils/internal/messages.d.ts.map +1 -0
- package/dist/client/utils/internal/requests.d.ts +54 -0
- package/dist/client/utils/internal/requests.d.ts.map +1 -0
- package/dist/client/utils/internal/streaming.d.ts +23 -0
- package/dist/client/utils/internal/streaming.d.ts.map +1 -0
- package/dist/client/utils/internal/tools.d.ts +16 -0
- package/dist/client/utils/internal/tools.d.ts.map +1 -0
- package/dist/client/utils/logger.d.ts +7 -0
- package/dist/client/utils/logger.d.ts.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +146 -0
- package/dist/markdown-extensions/charts/BarChart.d.ts +16 -0
- package/dist/markdown-extensions/charts/BarChart.d.ts.map +1 -0
- package/dist/markdown-extensions/charts/BaseChart.d.ts +36 -0
- package/dist/markdown-extensions/charts/BaseChart.d.ts.map +1 -0
- package/dist/markdown-extensions/charts/ChartBlock.d.ts +34 -0
- package/dist/markdown-extensions/charts/ChartBlock.d.ts.map +1 -0
- package/dist/markdown-extensions/charts/ChartError.d.ts +17 -0
- package/dist/markdown-extensions/charts/ChartError.d.ts.map +1 -0
- package/dist/markdown-extensions/charts/ChartErrorBoundary.d.ts +30 -0
- package/dist/markdown-extensions/charts/ChartErrorBoundary.d.ts.map +1 -0
- package/dist/markdown-extensions/charts/LineChart.d.ts +14 -0
- package/dist/markdown-extensions/charts/LineChart.d.ts.map +1 -0
- package/dist/markdown-extensions/charts/index.d.ts +293 -0
- package/dist/markdown-extensions/charts/index.d.ts.map +1 -0
- package/dist/markdown-extensions/charts/utils/chartUtils.d.ts +56 -0
- package/dist/markdown-extensions/charts/utils/chartUtils.d.ts.map +1 -0
- package/dist/markdown-extensions/index.d.ts +34 -0
- package/dist/markdown-extensions/index.d.ts.map +1 -0
- package/dist/markdown-extensions/types.d.ts +52 -0
- package/dist/markdown-extensions/types.d.ts.map +1 -0
- package/dist/message-actions/factories.d.ts +16 -0
- package/dist/message-actions/index.d.ts +5 -0
- package/dist/message-actions/resolver.d.ts +9 -0
- package/dist/message-actions/useMessageActions.d.ts +9 -0
- package/dist/mocks/MockSalesGraph.d.ts +13 -0
- package/dist/mocks/MockSalesGraph.d.ts.map +1 -0
- package/dist/mocks/index.d.ts +12 -0
- package/dist/mocks/index.d.ts.map +1 -0
- package/dist/mocks/mockContext.d.ts +187 -0
- package/dist/mocks/mockContext.d.ts.map +1 -0
- package/dist/mocks/mockTools.d.ts +44 -0
- package/dist/mocks/mockTools.d.ts.map +1 -0
- package/dist/react/agentManager.d.ts +27 -0
- package/dist/react/conversationStorage.d.ts +29 -0
- package/dist/react/conversationStorage.d.ts.map +1 -0
- package/dist/react/conversationUtils.d.ts +32 -0
- package/dist/react/conversationUtils.d.ts.map +1 -0
- package/dist/react/useAgentChat.d.ts +97 -0
- package/dist/react/useClientContext.d.ts +17 -0
- package/dist/react/useClientContext.d.ts.map +1 -0
- package/dist/react/useClientTools.d.ts +23 -0
- package/dist/react/useClientTools.d.ts.map +1 -0
- package/dist/utils/createMessageRenderer.d.ts +25 -0
- package/dist/utils/createMessageRenderer.d.ts.map +1 -0
- package/dist/utils/markdownParser.d.ts +25 -0
- package/dist/utils/markdownParser.d.ts.map +1 -0
- package/dist/utils/theme.d.ts +8 -0
- package/dist/utils/theme.d.ts.map +1 -0
- package/package.json +81 -73
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import { type MarkdownComponents, type MarkdownExtensions } from '../utils/markdownParser';
|
|
4
|
+
import type { AuthProvider, ContextProvider, ToolProvider } from '../client/types/index';
|
|
5
|
+
import type { createFeedbackActions } from '../message-actions/factories';
|
|
6
|
+
export interface Suggestion {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
prompt: string;
|
|
10
|
+
}
|
|
11
|
+
export type { MarkdownComponents, MarkdownExtensions, } from '../utils/markdownParser';
|
|
12
|
+
export interface UIMessage {
|
|
13
|
+
id: string;
|
|
14
|
+
role: 'user' | 'agent';
|
|
15
|
+
content: Array<{
|
|
16
|
+
type: 'text' | 'image_url' | 'component';
|
|
17
|
+
text?: string;
|
|
18
|
+
image_url?: string;
|
|
19
|
+
component?: React.ComponentType;
|
|
20
|
+
componentProps?: any;
|
|
21
|
+
}>;
|
|
22
|
+
timestamp: number;
|
|
23
|
+
archived: boolean;
|
|
24
|
+
showIcon: boolean;
|
|
25
|
+
icon?: string;
|
|
26
|
+
actions?: UIMessageAction[];
|
|
27
|
+
}
|
|
28
|
+
export interface UIMessageAction {
|
|
29
|
+
id: string;
|
|
30
|
+
label: string;
|
|
31
|
+
icon: React.ReactNode;
|
|
32
|
+
onClick: (message: UIMessage) => void | Promise<void>;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
tooltip?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface MessageActionDefinition {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
icon: ReactNode;
|
|
40
|
+
onClick: (message: UIMessage) => void | Promise<void>;
|
|
41
|
+
condition?: (message: UIMessage) => boolean;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
tooltip?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface MessageActionsRegistration {
|
|
46
|
+
id: string;
|
|
47
|
+
actions: MessageActionDefinition[] | ((message: UIMessage) => MessageActionDefinition[]);
|
|
48
|
+
}
|
|
49
|
+
export interface FeedbackActionsConfig {
|
|
50
|
+
onFeedback: (messageId: string, feedback: 'up' | 'down') => void | Promise<void>;
|
|
51
|
+
condition?: (message: UIMessage) => boolean;
|
|
52
|
+
icons: {
|
|
53
|
+
up: ReactNode;
|
|
54
|
+
down: ReactNode;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface UseMessageActionsReturn {
|
|
58
|
+
registerMessageActions: (registration: MessageActionsRegistration) => void;
|
|
59
|
+
unregisterMessageActions: (id: string) => void;
|
|
60
|
+
clearAllMessageActions: () => void;
|
|
61
|
+
createFeedbackActions: typeof createFeedbackActions;
|
|
62
|
+
}
|
|
63
|
+
export interface UseAgentChatConfig {
|
|
64
|
+
agentId: string;
|
|
65
|
+
agentUrl: string;
|
|
66
|
+
sessionId: string;
|
|
67
|
+
contextProvider?: ContextProvider;
|
|
68
|
+
toolProvider?: ToolProvider;
|
|
69
|
+
authProvider?: AuthProvider;
|
|
70
|
+
}
|
|
71
|
+
export interface UseAgentChatReturn {
|
|
72
|
+
messages: UIMessage[];
|
|
73
|
+
isProcessing: boolean;
|
|
74
|
+
error: string | null;
|
|
75
|
+
onSubmit: (message: string) => Promise<void>;
|
|
76
|
+
suggestions: Suggestion[];
|
|
77
|
+
messageRenderer?: React.ComponentType<{
|
|
78
|
+
children: string;
|
|
79
|
+
}>;
|
|
80
|
+
registerSuggestions: (suggestions: Suggestion[]) => void;
|
|
81
|
+
clearSuggestions: () => void;
|
|
82
|
+
registerMarkdownComponents: (components: MarkdownComponents) => void;
|
|
83
|
+
registerMarkdownExtensions: (extensions: MarkdownExtensions) => void;
|
|
84
|
+
registerMessageActions: (registration: MessageActionsRegistration) => void;
|
|
85
|
+
unregisterMessageActions: (id: string) => void;
|
|
86
|
+
clearAllMessageActions: () => void;
|
|
87
|
+
createFeedbackActions: typeof createFeedbackActions;
|
|
88
|
+
addMessage: (message: UIMessage) => void;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* React hook for agent chat functionality
|
|
92
|
+
* Provides all necessary data and methods for AgentUI component
|
|
93
|
+
* @param config
|
|
94
|
+
*/
|
|
95
|
+
export declare function useAgentChat(config: UseAgentChatConfig): UseAgentChatReturn;
|
|
96
|
+
export default useAgentChat;
|
|
97
|
+
//# sourceMappingURL=useAgentChat.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ClientContext, ContextProvider } from '../client/types/index';
|
|
2
|
+
/**
|
|
3
|
+
* Callback function type for getting client context
|
|
4
|
+
*/
|
|
5
|
+
export type GetClientContextCallback = () => ClientContext;
|
|
6
|
+
/**
|
|
7
|
+
* Hook for creating a context provider from a user-provided callback
|
|
8
|
+
*
|
|
9
|
+
* This hook abstracts the ContextProvider interface and allows users to simply
|
|
10
|
+
* provide a callback function that returns fresh context data each time a message
|
|
11
|
+
* is sent to the agent.
|
|
12
|
+
*
|
|
13
|
+
* @param getClientContextCallback - Function that returns fresh client context data
|
|
14
|
+
* @return ContextProvider instance or undefined if no callback provided
|
|
15
|
+
*/
|
|
16
|
+
export declare function useClientContext(getClientContextCallback?: GetClientContextCallback): ContextProvider | undefined;
|
|
17
|
+
//# sourceMappingURL=useClientContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClientContext.d.ts","sourceRoot":"","sources":["../../src/react/useClientContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,aAAa,CAAC;AAE3D;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,wBAAwB,CAAC,EAAE,wBAAwB,GACjD,eAAe,GAAG,SAAS,CA2B7B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Tool, ToolProvider } from '../client/types/index';
|
|
2
|
+
/**
|
|
3
|
+
* Callback function type for getting tools
|
|
4
|
+
*/
|
|
5
|
+
export type GetClientToolsCallback = () => Promise<Tool[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Callback function type for executing tools
|
|
8
|
+
*/
|
|
9
|
+
export type ExecuteToolCallback = (toolId: string, args: any) => Promise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* React hook that creates a ToolProvider
|
|
12
|
+
*
|
|
13
|
+
* This hook takes separate callback functions for getting tools and executing tools.
|
|
14
|
+
* It wraps them in the ToolProvider interface expected by the agenttic client.
|
|
15
|
+
* The callbacks are called fresh each time, ensuring dynamic tool availability and execution.
|
|
16
|
+
* Tool results are automatically handled by the A2A client.
|
|
17
|
+
*
|
|
18
|
+
* @param getClientTools - Function that returns available tools as an array of Tool objects
|
|
19
|
+
* @param executeTool - Function that executes a tool with the arguments returned by the agent
|
|
20
|
+
* @return ToolProvider instance or undefined if no getClientTools callback provided
|
|
21
|
+
*/
|
|
22
|
+
export declare function useClientTools(getClientTools?: GetClientToolsCallback, executeTool?: ExecuteToolCallback): ToolProvider | undefined;
|
|
23
|
+
//# sourceMappingURL=useClientTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClientTools.d.ts","sourceRoot":"","sources":["../../src/react/useClientTools.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;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;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC7B,cAAc,CAAC,EAAE,sBAAsB,EACvC,WAAW,CAAC,EAAE,mBAAmB,GAC/B,YAAY,GAAG,SAAS,CA6C1B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a configured message renderer component
|
|
3
|
+
*
|
|
4
|
+
* This factory creates a React component that renders markdown content
|
|
5
|
+
* with the specified extensions and custom components.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { Components } from 'react-markdown';
|
|
9
|
+
import type { PluggableList } from 'unified';
|
|
10
|
+
import type { MarkdownExtensions } from '../markdown-extensions/types';
|
|
11
|
+
interface CreateMessageRendererOptions {
|
|
12
|
+
components?: Components;
|
|
13
|
+
extensions?: MarkdownExtensions;
|
|
14
|
+
remarkPlugins?: PluggableList;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates a message renderer component with pre-configured markdown settings
|
|
18
|
+
* @param options - Configuration options for markdown rendering
|
|
19
|
+
* @return A React component that renders markdown with the specified configuration
|
|
20
|
+
*/
|
|
21
|
+
export declare function createMessageRenderer(options?: CreateMessageRendererOptions): React.ComponentType<{
|
|
22
|
+
children: string;
|
|
23
|
+
}>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=createMessageRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createMessageRenderer.d.ts","sourceRoot":"","sources":["../../src/utils/createMessageRenderer.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,UAAU,4BAA4B;IACrC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,aAAa,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,OAAO,GAAE,4BAAiC,GACxC,KAAK,CAAC,aAAa,CAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAE,CA0B7C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Markdown Parser Utility
|
|
3
|
+
*
|
|
4
|
+
* Converts markdown text to React components using react-markdown
|
|
5
|
+
* with custom components and extensions support.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { Components } from 'react-markdown';
|
|
9
|
+
import type { PluggableList } from 'unified';
|
|
10
|
+
import type { MarkdownExtensions } from '../markdown-extensions/types';
|
|
11
|
+
export type MarkdownComponents = Components;
|
|
12
|
+
export type { MarkdownExtensions } from '../markdown-extensions/types';
|
|
13
|
+
interface ParseMarkdownOptions {
|
|
14
|
+
components?: MarkdownComponents;
|
|
15
|
+
extensions?: MarkdownExtensions;
|
|
16
|
+
remarkPlugins?: PluggableList;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Parses markdown text into a React component using react-markdown
|
|
20
|
+
* @param text - The markdown text to parse
|
|
21
|
+
* @param options - Custom components and extensions to use
|
|
22
|
+
* @return React element containing the parsed markdown
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseMarkdownToComponent(text: string, options?: ParseMarkdownOptions): React.ReactElement;
|
|
25
|
+
//# sourceMappingURL=markdownParser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownParser.d.ts","sourceRoot":"","sources":["../../src/utils/markdownParser.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAG5C,YAAY,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,UAAU,oBAAoB;IAC7B,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,aAAa,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,oBAAyB,GAChC,KAAK,CAAC,YAAY,CAuBpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility to get CSS variable values
|
|
3
|
+
* Note: OKLCH colors are automatically converted to RGB by the browser
|
|
4
|
+
* @param variableName
|
|
5
|
+
* @param fallback
|
|
6
|
+
*/
|
|
7
|
+
export declare const getCSSVariable: (variableName: string, fallback?: string) => string;
|
|
8
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAC1B,cAAc,MAAM,EACpB,WAAU,MAAW,KACnB,MAYF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,74 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
2
|
+
"name": "@automattic/agenttic-client",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A TypeScript client library for A2A (Agent2Agent) protocol communication",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./mocks": {
|
|
15
|
+
"types": "./dist/mocks/index.d.ts",
|
|
16
|
+
"import": "./dist/mocks/index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "pnpm run clean && tsup src/index.ts src/mocks/index.ts --format esm --target node18 && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
25
|
+
"build:no-splitting": "pnpm run clean && tsup src/index.ts --format esm --target node18 --splitting=false && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
26
|
+
"dev": "tsup src/index.ts --format esm --watch",
|
|
27
|
+
"dev:no-splitting": "tsup src/index.ts --format esm --target node18 --splitting=false --watch",
|
|
28
|
+
"clean": "rm -rf dist",
|
|
29
|
+
"type-check": "tsc --noEmit",
|
|
30
|
+
"lint": "wp-scripts lint-js src --ext .ts,.tsx",
|
|
31
|
+
"lint:fix": "wp-scripts lint-js src --ext .ts,.tsx --fix",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"prepublishOnly": "pnpm run build",
|
|
34
|
+
"i18n:extract": "npx --no-install @wordpress/i18n-command make-pot src --output=languages/a8c-agenttic.pot --domain=a8c-agenttic",
|
|
35
|
+
"i18n:update": "npx --no-install @wordpress/i18n-command make-json languages --domain=a8c-agenttic"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"a2a",
|
|
39
|
+
"agent2agent",
|
|
40
|
+
"agenttic",
|
|
41
|
+
"client",
|
|
42
|
+
"typescript",
|
|
43
|
+
"ai",
|
|
44
|
+
"agent",
|
|
45
|
+
"protocol"
|
|
46
|
+
],
|
|
47
|
+
"author": "Automattic",
|
|
48
|
+
"license": "MIT",
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=18.0.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@wordpress/api-fetch": "^7.0.0",
|
|
54
|
+
"tsup": "^8.0.0",
|
|
55
|
+
"typescript": "^5.0.0",
|
|
56
|
+
"unified": "^11.0.5",
|
|
57
|
+
"vitest": "^1.0.0"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@automattic/charts": "^0.14.0",
|
|
61
|
+
"@types/react": "^18.0.0",
|
|
62
|
+
"@visx/xychart": "^3.12.0",
|
|
63
|
+
"@wordpress/element": "^6.2.0",
|
|
64
|
+
"@wordpress/i18n": "^6.1.0",
|
|
65
|
+
"react": "^18.0.0",
|
|
66
|
+
"react-markdown": "^10.1.0",
|
|
67
|
+
"remark-gfm": "^4.0.1"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"@wordpress/api-fetch": "^6.0.0 || ^7.0.0",
|
|
71
|
+
"react": "^18.0.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"@wordpress/api-fetch": {
|
|
75
|
+
"optional": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"access": "public",
|
|
80
|
+
"branch": "trunk"
|
|
81
|
+
}
|
|
82
|
+
}
|