@automattic/agenttic-client 0.1.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 +409 -0
- package/dist/MockSalesGraph-ORPXGMCD.js +7 -0
- package/dist/chunk-LAB4XYXR.js +688 -0
- package/dist/chunk-ZDG7Y2LU.js +39 -0
- package/dist/client/index.d.ts +44 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2137 -0
- package/dist/message-actions/factories.d.ts.map +1 -0
- package/dist/message-actions/index.d.ts.map +1 -0
- package/dist/message-actions/resolver.d.ts.map +1 -0
- package/dist/message-actions/useMessageActions.d.ts.map +1 -0
- package/dist/mocks/index.js +288 -0
- package/dist/react/agentManager.d.ts.map +1 -0
- package/dist/react/useAgentChat.d.ts.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../src/message-actions/factories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,qBAAqB,EACrB,uBAAuB,EACvB,SAAS,EACT,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,sBAAsB;IACtC,oBAAoB,EAAE,CAAE,OAAO,EAAE,SAAS,KAAM,uBAAuB,EAAE,CAAC;IAC1E,aAAa,EAAE,CAAE,SAAS,EAAE,MAAM,KAAM,IAAI,CAAC;IAC7C,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,EAAE,CAAE,QAAQ,EAAE,MAAM,IAAI,KAAM,IAAI,CAAC;IAC3C,SAAS,EAAE,CAAE,QAAQ,EAAE,MAAM,IAAI,KAAM,IAAI,CAAC;CAC5C;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GACjC,QAAQ,qBAAqB,KAC3B,sBAqFF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/message-actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/message-actions/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,0BAA0B,EAC1B,SAAS,EACT,eAAe,EACf,MAAM,uBAAuB,CAAC;AAE/B;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,aAAa,EAAE,0BAA0B,EAAE,GACzC,eAAe,EAAE,CAyBnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMessageActions.d.ts","sourceRoot":"","sources":["../../src/message-actions/useMessageActions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,0BAA0B,EAC1B,uBAAuB,EACvB,MAAM,uBAAuB,CAAC;AAG/B;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,uBAAuB,GAAG;IAC9D,aAAa,EAAE,0BAA0B,EAAE,CAAC;CAC5C,CA2CA"}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MockSalesGraph
|
|
3
|
+
} from "../chunk-ZDG7Y2LU.js";
|
|
4
|
+
import "../chunk-LAB4XYXR.js";
|
|
5
|
+
|
|
6
|
+
// src/mocks/mockContext.ts
|
|
7
|
+
var getClientContext = () => {
|
|
8
|
+
return {
|
|
9
|
+
selectedBlockClientId: "qwu2",
|
|
10
|
+
currentPageContent: [
|
|
11
|
+
{
|
|
12
|
+
name: "core/post-content",
|
|
13
|
+
type: "content",
|
|
14
|
+
clientId: "kgrq",
|
|
15
|
+
innerBlocks: [
|
|
16
|
+
{
|
|
17
|
+
clientId: "hac1",
|
|
18
|
+
name: "core/group",
|
|
19
|
+
isValid: true,
|
|
20
|
+
originalContent: '<div class="wp-block-group alignfull is-style-section-default" id="intro-section" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"></div>',
|
|
21
|
+
validationIssues: [],
|
|
22
|
+
attributes: {
|
|
23
|
+
tagName: "div",
|
|
24
|
+
metadata: {
|
|
25
|
+
name: "Introduction",
|
|
26
|
+
patternCategory: "intro",
|
|
27
|
+
remotePatternId: 14040,
|
|
28
|
+
reason: "Creates a strong first impression by highlighting Mama's Bread's reputation and inviting customers to discover more. Features key imagery. "
|
|
29
|
+
},
|
|
30
|
+
align: "full",
|
|
31
|
+
className: "is-style-section-default",
|
|
32
|
+
style: {
|
|
33
|
+
spacing: {
|
|
34
|
+
margin: {
|
|
35
|
+
top: "0",
|
|
36
|
+
bottom: "0"
|
|
37
|
+
},
|
|
38
|
+
padding: {
|
|
39
|
+
top: "var:preset|spacing|40",
|
|
40
|
+
bottom: "var:preset|spacing|40"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
layout: {
|
|
45
|
+
type: "constrained",
|
|
46
|
+
justifyContent: "center"
|
|
47
|
+
},
|
|
48
|
+
anchor: "intro-section"
|
|
49
|
+
},
|
|
50
|
+
innerBlocks: [
|
|
51
|
+
{
|
|
52
|
+
clientId: "XfP9",
|
|
53
|
+
name: "core/group",
|
|
54
|
+
isValid: true,
|
|
55
|
+
originalContent: '<div class="wp-block-group alignwide">\n\n</div>',
|
|
56
|
+
validationIssues: [],
|
|
57
|
+
attributes: {
|
|
58
|
+
tagName: "div",
|
|
59
|
+
metadata: {
|
|
60
|
+
name: "Container"
|
|
61
|
+
},
|
|
62
|
+
align: "wide",
|
|
63
|
+
style: {
|
|
64
|
+
spacing: {
|
|
65
|
+
blockGap: "var:preset|spacing|40"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
layout: {
|
|
69
|
+
type: "constrained"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
innerBlocks: [
|
|
73
|
+
{
|
|
74
|
+
clientId: "bo18",
|
|
75
|
+
name: "core/columns",
|
|
76
|
+
isValid: true,
|
|
77
|
+
originalContent: '<div class="wp-block-columns alignwide are-vertically-aligned-top">\n\n</div>',
|
|
78
|
+
validationIssues: [],
|
|
79
|
+
attributes: {
|
|
80
|
+
verticalAlignment: "top",
|
|
81
|
+
isStackedOnMobile: true,
|
|
82
|
+
align: "wide",
|
|
83
|
+
style: {
|
|
84
|
+
spacing: {
|
|
85
|
+
blockGap: {
|
|
86
|
+
top: "var:preset|spacing|30"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
innerBlocks: [
|
|
92
|
+
{
|
|
93
|
+
clientId: "B0cB",
|
|
94
|
+
name: "core/column",
|
|
95
|
+
isValid: true,
|
|
96
|
+
originalContent: '<div class="wp-block-column is-vertically-aligned-top"></div>',
|
|
97
|
+
validationIssues: [],
|
|
98
|
+
attributes: {
|
|
99
|
+
verticalAlignment: "top",
|
|
100
|
+
width: "",
|
|
101
|
+
layout: {
|
|
102
|
+
type: "constrained",
|
|
103
|
+
justifyContent: "left",
|
|
104
|
+
contentSize: "480px"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
innerBlocks: [
|
|
108
|
+
{
|
|
109
|
+
clientId: "2Vj9",
|
|
110
|
+
name: "core/heading",
|
|
111
|
+
isValid: true,
|
|
112
|
+
originalContent: `<h2 class="wp-block-heading">Welcome to Oakland's Favorite Bakery</h2>`,
|
|
113
|
+
validationIssues: [],
|
|
114
|
+
attributes: {
|
|
115
|
+
content: "Welcome to Oakland's Favorite Bakery",
|
|
116
|
+
level: 2
|
|
117
|
+
},
|
|
118
|
+
innerBlocks: []
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
clientId: "KHCI",
|
|
124
|
+
name: "core/column",
|
|
125
|
+
isValid: true,
|
|
126
|
+
originalContent: '<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:40%">\n\n</div>',
|
|
127
|
+
validationIssues: [],
|
|
128
|
+
attributes: {
|
|
129
|
+
verticalAlignment: "top",
|
|
130
|
+
width: "40%"
|
|
131
|
+
},
|
|
132
|
+
innerBlocks: [
|
|
133
|
+
{
|
|
134
|
+
clientId: "qwu2",
|
|
135
|
+
name: "core/paragraph",
|
|
136
|
+
isValid: true,
|
|
137
|
+
originalContent: "<p>Discover why Mama's Bread is celebrated for its fresh, artisanal bread crafted with passion and tradition. Join us and taste the difference.</p>",
|
|
138
|
+
validationIssues: [],
|
|
139
|
+
attributes: {
|
|
140
|
+
content: "Discover why Mama's Bread is celebrated for its fresh, artisanal bread crafted with passion and tradition. Join us and taste the difference.",
|
|
141
|
+
dropCap: false
|
|
142
|
+
},
|
|
143
|
+
innerBlocks: []
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
clientId: "o-IA",
|
|
147
|
+
name: "core/buttons",
|
|
148
|
+
isValid: true,
|
|
149
|
+
originalContent: '<div class="wp-block-buttons"></div>',
|
|
150
|
+
validationIssues: [],
|
|
151
|
+
attributes: {},
|
|
152
|
+
innerBlocks: [
|
|
153
|
+
{
|
|
154
|
+
clientId: "wsbN",
|
|
155
|
+
name: "core/button",
|
|
156
|
+
isValid: true,
|
|
157
|
+
originalContent: '<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="menu">Menu</a></div>',
|
|
158
|
+
validationIssues: [],
|
|
159
|
+
attributes: {
|
|
160
|
+
tagName: "a",
|
|
161
|
+
type: "button",
|
|
162
|
+
url: "menu",
|
|
163
|
+
text: "Menu"
|
|
164
|
+
},
|
|
165
|
+
innerBlocks: []
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
clientId: "K9PG",
|
|
175
|
+
name: "core/image",
|
|
176
|
+
isValid: true,
|
|
177
|
+
originalContent: '<figure class="wp-block-image alignwide size-full aspect-16/9"><img src="http://localhost:8888/wp-content/uploads/2025/05/image-pexels-1055271.jpg" alt="bakery" class="wp-image-145"/></figure>',
|
|
178
|
+
validationIssues: [],
|
|
179
|
+
attributes: {
|
|
180
|
+
url: "http://localhost:8888/wp-content/uploads/2025/05/image-pexels-1055271.jpg",
|
|
181
|
+
alt: "bakery",
|
|
182
|
+
caption: "",
|
|
183
|
+
id: 145,
|
|
184
|
+
sizeSlug: "full",
|
|
185
|
+
linkDestination: "none",
|
|
186
|
+
align: "wide",
|
|
187
|
+
className: "aspect-16/9"
|
|
188
|
+
},
|
|
189
|
+
innerBlocks: []
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// src/mocks/mockTools.ts
|
|
202
|
+
var getClientTools = (addMessage) => {
|
|
203
|
+
return {
|
|
204
|
+
getAvailableTools: async () => [
|
|
205
|
+
{
|
|
206
|
+
id: "display_graph",
|
|
207
|
+
name: "Sales Graph Display",
|
|
208
|
+
description: "Displays a sales graph for products with interactive visualization. Use when users ask to see sales data, product performance, or graphical representations of sales metrics. Just make up random data",
|
|
209
|
+
input_schema: {
|
|
210
|
+
type: "object",
|
|
211
|
+
properties: {
|
|
212
|
+
title: {
|
|
213
|
+
type: "string",
|
|
214
|
+
description: 'The title for the graph (e.g., "Top 5 Products by Sales")'
|
|
215
|
+
},
|
|
216
|
+
timeframe: {
|
|
217
|
+
type: "string",
|
|
218
|
+
description: 'Optional timeframe description (e.g., "Last 30 days", "Q3 2024")'
|
|
219
|
+
},
|
|
220
|
+
data: {
|
|
221
|
+
type: "array",
|
|
222
|
+
description: "Array of sales data for products",
|
|
223
|
+
items: {
|
|
224
|
+
type: "object",
|
|
225
|
+
properties: {
|
|
226
|
+
product: {
|
|
227
|
+
type: "string",
|
|
228
|
+
description: "Product name"
|
|
229
|
+
},
|
|
230
|
+
sales: {
|
|
231
|
+
type: "number",
|
|
232
|
+
description: "Number of sales/units sold"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
required: ["product", "sales"]
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
required: ["title", "data"]
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
executeTool: async (toolId, args, messageId, toolCallId) => {
|
|
244
|
+
console.log(`Executing tool: ${toolId}`, {
|
|
245
|
+
args,
|
|
246
|
+
messageId,
|
|
247
|
+
toolCallId
|
|
248
|
+
});
|
|
249
|
+
switch (toolId) {
|
|
250
|
+
case "display_graph":
|
|
251
|
+
if (!args.title || !args.data) {
|
|
252
|
+
return {
|
|
253
|
+
result: "Error: Title and data are required for graph display",
|
|
254
|
+
returnToAgent: true
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
const { MockSalesGraph: MockSalesGraph2 } = await import("../MockSalesGraph-ORPXGMCD.js");
|
|
258
|
+
addMessage({
|
|
259
|
+
id: crypto.randomUUID(),
|
|
260
|
+
role: "agent",
|
|
261
|
+
content: [
|
|
262
|
+
{
|
|
263
|
+
type: "component",
|
|
264
|
+
component: MockSalesGraph2,
|
|
265
|
+
componentProps: {
|
|
266
|
+
title: args.title,
|
|
267
|
+
data: args.data,
|
|
268
|
+
timeframe: args.timeframe
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
timestamp: Date.now(),
|
|
273
|
+
archived: false,
|
|
274
|
+
showIcon: true
|
|
275
|
+
});
|
|
276
|
+
return {
|
|
277
|
+
result: `Graph displayed: ${args.title} with ${args.data.length} data points`,
|
|
278
|
+
returnToAgent: false
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
export {
|
|
285
|
+
MockSalesGraph,
|
|
286
|
+
getClientContext,
|
|
287
|
+
getClientTools
|
|
288
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentManager.d.ts","sourceRoot":"","sources":["../../src/react/agentManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,EACN,YAAY,EAEZ,OAAO,EACP,iBAAiB,EACjB,IAAI,EACJ,UAAU,EAEV,MAAM,uBAAuB,CAAC;AAmB/B;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,WAAW,EAAE,CACZ,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,kBAAkB,KACtB,OAAO,CAAE,MAAM,CAAE,CAAC;IACvB,QAAQ,EAAE,CAAE,GAAG,EAAE,MAAM,KAAM,MAAM,GAAG,IAAI,CAAC;IAC3C,QAAQ,EAAE,CAAE,GAAG,EAAE,MAAM,KAAM,OAAO,CAAC;IACrC,WAAW,EAAE,CAAE,GAAG,EAAE,MAAM,KAAM,OAAO,CAAC;IACxC,WAAW,EAAE,CACZ,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,CAAE,iBAAiB,CAAE,KAClC,OAAO,CAAE,IAAI,CAAE,CAAC;IACrB,iBAAiB,EAAE,CAClB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,CAAE,iBAAiB,CAAE,KAClC,aAAa,CAAE,UAAU,CAAE,CAAC;IACjC,iBAAiB,EAAE,CAAE,GAAG,EAAE,MAAM,KAAM,OAAO,CAAE,IAAI,CAA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OAAO,qBAAqB,CAAC;IAGpD,UAAU,EAAE,CAAE,OAAO,EAAE,SAAS,KAAM,IAAI,CAAC;CAC3C;AAaD;;;;GAIG;AACH,wBAAgB,YAAY,CAAE,MAAM,EAAE,kBAAkB,GAAI,kBAAkB,CAqX7E;AAED,eAAe,YAAY,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@automattic/agenttic-client",
|
|
3
|
+
"version": "0.1.0",
|
|
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
|
+
"keywords": [
|
|
24
|
+
"a2a",
|
|
25
|
+
"agent2agent",
|
|
26
|
+
"agenttic",
|
|
27
|
+
"client",
|
|
28
|
+
"typescript",
|
|
29
|
+
"ai",
|
|
30
|
+
"agent",
|
|
31
|
+
"protocol"
|
|
32
|
+
],
|
|
33
|
+
"author": "Automattic",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=18.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"tsup": "^8.0.0",
|
|
40
|
+
"typescript": "^5.0.0",
|
|
41
|
+
"unified": "^11.0.5",
|
|
42
|
+
"vitest": "^1.0.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@automattic/charts": "^0.14.0",
|
|
46
|
+
"@types/react": "^18.0.0",
|
|
47
|
+
"@visx/xychart": "^3.12.0",
|
|
48
|
+
"@wordpress/element": "^6.2.0",
|
|
49
|
+
"@wordpress/i18n": "^6.1.0",
|
|
50
|
+
"react": "^18.0.0",
|
|
51
|
+
"react-markdown": "^10.1.0",
|
|
52
|
+
"remark-gfm": "^4.0.1"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": "^18.0.0"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public",
|
|
59
|
+
"branch": "trunk"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "pnpm run clean && tsup src/index.ts src/mocks/index.ts --format esm --target node18 && tsc --emitDeclarationOnly",
|
|
63
|
+
"build:no-splitting": "pnpm run clean && tsup src/index.ts --format esm --target node18 --splitting=false && tsc --emitDeclarationOnly",
|
|
64
|
+
"dev": "tsup src/index.ts --format esm --watch",
|
|
65
|
+
"dev:no-splitting": "tsup src/index.ts --format esm --target node18 --splitting=false --watch",
|
|
66
|
+
"clean": "rm -rf dist",
|
|
67
|
+
"type-check": "tsc --noEmit",
|
|
68
|
+
"lint": "wp-scripts lint-js src --ext .ts,.tsx",
|
|
69
|
+
"lint:fix": "wp-scripts lint-js src --ext .ts,.tsx --fix",
|
|
70
|
+
"test": "vitest run",
|
|
71
|
+
"i18n:extract": "npx --no-install @wordpress/i18n-command make-pot src --output=languages/a8c-agenttic.pot --domain=a8c-agenttic",
|
|
72
|
+
"i18n:update": "npx --no-install @wordpress/i18n-command make-json languages --domain=a8c-agenttic"
|
|
73
|
+
}
|
|
74
|
+
}
|