@1agents/dsh-a2a 0.0.0-stage → 0.1.1

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.
Files changed (144) hide show
  1. package/README.md +57 -2
  2. package/cordis.patch.yml +10 -0
  3. package/dist/approvals.js +50 -0
  4. package/dist/cli.js +32596 -0
  5. package/dist/executor.js +24896 -0
  6. package/dist/index.js +32595 -0
  7. package/dist/sdk-runtime.js +166 -0
  8. package/dist/server.js +32581 -0
  9. package/dist/shared/a2a/workbench-ui.js +186 -0
  10. package/dist/workbench-ui/app.css +453 -0
  11. package/dist/workbench-ui/app.js +13 -0
  12. package/dist/workbench-ui/chunk-23JHGYT3.js +1 -0
  13. package/dist/workbench-ui/chunk-3H6STGPV.js +1 -0
  14. package/dist/workbench-ui/chunk-3SNBBMGH.js +1 -0
  15. package/dist/workbench-ui/chunk-3XJZ6DIE.js +1 -0
  16. package/dist/workbench-ui/chunk-44KDLLKJ.js +1 -0
  17. package/dist/workbench-ui/chunk-46H7FU5Y.js +7 -0
  18. package/dist/workbench-ui/chunk-4N44QPL7.js +1 -0
  19. package/dist/workbench-ui/chunk-4YN4BS7I.js +1 -0
  20. package/dist/workbench-ui/chunk-53EG4IVQ.js +96 -0
  21. package/dist/workbench-ui/chunk-5FIPUNR4.js +1 -0
  22. package/dist/workbench-ui/chunk-6DWWYA6G.js +2 -0
  23. package/dist/workbench-ui/chunk-6FU3T633.js +99 -0
  24. package/dist/workbench-ui/chunk-6XKIHRA4.js +1 -0
  25. package/dist/workbench-ui/chunk-7GIX43Y5.js +1 -0
  26. package/dist/workbench-ui/chunk-7Q4WBGX6.js +4 -0
  27. package/dist/workbench-ui/chunk-A3BQM7HR.js +1 -0
  28. package/dist/workbench-ui/chunk-AFCFDDOP.js +24 -0
  29. package/dist/workbench-ui/chunk-AG67EUYD.js +89 -0
  30. package/dist/workbench-ui/chunk-AGJHMMTN.js +1 -0
  31. package/dist/workbench-ui/chunk-AO6JUBV6.js +41 -0
  32. package/dist/workbench-ui/chunk-AUSLTP43.js +72 -0
  33. package/dist/workbench-ui/chunk-AVZL46TT.js +1 -0
  34. package/dist/workbench-ui/chunk-AZRIGIV2.js +168 -0
  35. package/dist/workbench-ui/chunk-B2LIVH37.js +1 -0
  36. package/dist/workbench-ui/chunk-B7YX5TR5.js +1 -0
  37. package/dist/workbench-ui/chunk-BCB4X4XX.js +1 -0
  38. package/dist/workbench-ui/chunk-BCRQUL2A.js +88 -0
  39. package/dist/workbench-ui/chunk-BI6UHHQP.js +1 -0
  40. package/dist/workbench-ui/chunk-BLSLQ4AQ.js +120 -0
  41. package/dist/workbench-ui/chunk-C3QSRS6E.js +1 -0
  42. package/dist/workbench-ui/chunk-CK7M2PJ3.js +62 -0
  43. package/dist/workbench-ui/chunk-CM6LZ7TU.js +1 -0
  44. package/dist/workbench-ui/chunk-CP63H27F.js +36 -0
  45. package/dist/workbench-ui/chunk-CPUMMIS2.js +70 -0
  46. package/dist/workbench-ui/chunk-CSEIBI5U.js +2 -0
  47. package/dist/workbench-ui/chunk-CUS65DKZ.js +161 -0
  48. package/dist/workbench-ui/chunk-CVQY7TNC.js +1 -0
  49. package/dist/workbench-ui/chunk-D6S3XBIX.js +106 -0
  50. package/dist/workbench-ui/chunk-E253Y562.js +1 -0
  51. package/dist/workbench-ui/chunk-EADDJUDC.js +1 -0
  52. package/dist/workbench-ui/chunk-EBGJ3YXG.js +206 -0
  53. package/dist/workbench-ui/chunk-EKPVZ3WY.js +8 -0
  54. package/dist/workbench-ui/chunk-EQDCEAFY.js +1 -0
  55. package/dist/workbench-ui/chunk-ES3SSDJY.js +40 -0
  56. package/dist/workbench-ui/chunk-ESFD2H7N.js +231 -0
  57. package/dist/workbench-ui/chunk-FVOHPMS6.js +1 -0
  58. package/dist/workbench-ui/chunk-FXMQAGVT.js +1 -0
  59. package/dist/workbench-ui/chunk-GGTADRXD.js +24 -0
  60. package/dist/workbench-ui/chunk-GHIVPGNQ.js +1 -0
  61. package/dist/workbench-ui/chunk-GLU2YQV2.js +1 -0
  62. package/dist/workbench-ui/chunk-GOCKBYSM.js +1 -0
  63. package/dist/workbench-ui/chunk-H2KMMTJB.js +1 -0
  64. package/dist/workbench-ui/chunk-HGVLDNPP.js +39 -0
  65. package/dist/workbench-ui/chunk-HSAVC5GY.js +1 -0
  66. package/dist/workbench-ui/chunk-HSEAD2JH.js +1 -0
  67. package/dist/workbench-ui/chunk-HSIHOBTY.js +1 -0
  68. package/dist/workbench-ui/chunk-IZXOKUGG.js +67 -0
  69. package/dist/workbench-ui/chunk-JFT2LC2T.js +1 -0
  70. package/dist/workbench-ui/chunk-JHL3ZDYK.js +3 -0
  71. package/dist/workbench-ui/chunk-JMORLCZG.js +257 -0
  72. package/dist/workbench-ui/chunk-JR4SIX7A.js +1 -0
  73. package/dist/workbench-ui/chunk-K23HAGEH.js +30 -0
  74. package/dist/workbench-ui/chunk-K43JDCBH.js +1 -0
  75. package/dist/workbench-ui/chunk-KINKFJY7.js +1 -0
  76. package/dist/workbench-ui/chunk-KKQSA4LI.js +2 -0
  77. package/dist/workbench-ui/chunk-KOUZX3UX.js +1 -0
  78. package/dist/workbench-ui/chunk-KR4DRHW2.js +78 -0
  79. package/dist/workbench-ui/chunk-KT4DJNOR.js +1 -0
  80. package/dist/workbench-ui/chunk-KTPNKRRZ.js +292 -0
  81. package/dist/workbench-ui/chunk-LFHIPGSU.js +7 -0
  82. package/dist/workbench-ui/chunk-LWDL4HZB.js +125 -0
  83. package/dist/workbench-ui/chunk-MVYC3CY4.js +1 -0
  84. package/dist/workbench-ui/chunk-NWUPALCY.js +129 -0
  85. package/dist/workbench-ui/chunk-NY7C662Z.js +1 -0
  86. package/dist/workbench-ui/chunk-O76WTHWP.js +1 -0
  87. package/dist/workbench-ui/chunk-OTF7YHRE.js +162 -0
  88. package/dist/workbench-ui/chunk-P6TKKRKP.js +1 -0
  89. package/dist/workbench-ui/chunk-PFHOOWV3.js +1 -0
  90. package/dist/workbench-ui/chunk-PUQLANIM.js +1 -0
  91. package/dist/workbench-ui/chunk-PZCGBYVO.js +1 -0
  92. package/dist/workbench-ui/chunk-QOHUZGP4.js +1 -0
  93. package/dist/workbench-ui/chunk-QSEG3OFF.js +1 -0
  94. package/dist/workbench-ui/chunk-QYPOXZIA.js +84 -0
  95. package/dist/workbench-ui/chunk-R6SOF3JC.js +1 -0
  96. package/dist/workbench-ui/chunk-RCLOYU5F.js +1 -0
  97. package/dist/workbench-ui/chunk-RSRUP64S.js +1 -0
  98. package/dist/workbench-ui/chunk-RVAIT6JW.js +1 -0
  99. package/dist/workbench-ui/chunk-S2CCN3II.js +1 -0
  100. package/dist/workbench-ui/chunk-S2Q52W46.js +1 -0
  101. package/dist/workbench-ui/chunk-S2W5THJ5.js +1 -0
  102. package/dist/workbench-ui/chunk-S6ZQZNOX.js +1 -0
  103. package/dist/workbench-ui/chunk-S74PLMMS.js +1 -0
  104. package/dist/workbench-ui/chunk-S7C4HKEY.js +1 -0
  105. package/dist/workbench-ui/chunk-SDTB3Q65.js +1 -0
  106. package/dist/workbench-ui/chunk-SLPRGYUV.js +32 -0
  107. package/dist/workbench-ui/chunk-SQE76S5B.js +1 -0
  108. package/dist/workbench-ui/chunk-SSDZPVPW.js +1 -0
  109. package/dist/workbench-ui/chunk-SVI7DGIE.js +1 -0
  110. package/dist/workbench-ui/chunk-T6QKLZ4H.js +62 -0
  111. package/dist/workbench-ui/chunk-TJNRPTFL.js +1 -0
  112. package/dist/workbench-ui/chunk-TP6U4EDH.js +2 -0
  113. package/dist/workbench-ui/chunk-TYAAT3GQ.js +1 -0
  114. package/dist/workbench-ui/chunk-U6OCY4ZH.js +1 -0
  115. package/dist/workbench-ui/chunk-UAN3NLRF.js +1 -0
  116. package/dist/workbench-ui/chunk-UMLU3FIX.js +1 -0
  117. package/dist/workbench-ui/chunk-URIY2OTM.js +1 -0
  118. package/dist/workbench-ui/chunk-V2NUKAA7.js +38 -0
  119. package/dist/workbench-ui/chunk-V4QLL4TE.js +139 -0
  120. package/dist/workbench-ui/chunk-VASHXUK4.js +2 -0
  121. package/dist/workbench-ui/chunk-VJLIWNIU.js +1 -0
  122. package/dist/workbench-ui/chunk-VQNQFBID.js +1 -0
  123. package/dist/workbench-ui/chunk-VSIWU7XA.js +3 -0
  124. package/dist/workbench-ui/chunk-VSJASPUZ.js +321 -0
  125. package/dist/workbench-ui/chunk-VXPNUNUX.js +3 -0
  126. package/dist/workbench-ui/chunk-WBKLDCV6.js +1 -0
  127. package/dist/workbench-ui/chunk-WOKJM3FY.js +1 -0
  128. package/dist/workbench-ui/chunk-X3U3NA3X.js +34 -0
  129. package/dist/workbench-ui/chunk-XBYU7M4J.js +1 -0
  130. package/dist/workbench-ui/chunk-XBZAO4ID.js +10 -0
  131. package/dist/workbench-ui/chunk-XLLPZ2WO.js +1 -0
  132. package/dist/workbench-ui/chunk-YFVL4NJL.js +1 -0
  133. package/dist/workbench-ui/chunk-YRFQENM4.js +1 -0
  134. package/dist/workbench-ui/chunk-YUADQVB2.js +1 -0
  135. package/dist/workbench-ui/chunk-Z3TCAKM5.js +1 -0
  136. package/dist/workbench-ui/chunk-Z6QR6FRE.js +10 -0
  137. package/dist/workbench-ui/chunk-ZJPSORPP.js +3 -0
  138. package/dist/workbench-ui/chunk-ZLGCSTR2.js +15 -0
  139. package/dist/workbench-ui/chunk-ZLR4SG5X.js +1 -0
  140. package/dist/workbench-ui/chunk-ZND3TTGF.js +1 -0
  141. package/dist/workbench-ui/chunk-ZOP3ZYH7.js +2 -0
  142. package/dist/workbench-ui/index.html +14 -0
  143. package/dist/workbench.js +222 -0
  144. package/package.json +33 -4
@@ -0,0 +1,222 @@
1
+ // dist/shared/a2a/workbench-ui.js
2
+ import { randomBytes, timingSafeEqual } from "node:crypto";
3
+ import { existsSync } from "node:fs";
4
+ import { readFile } from "node:fs/promises";
5
+ import path from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+ var WORKBENCH_UI_PATH = "/workbench/ui";
8
+ var API_PATH = `${WORKBENCH_UI_PATH}/api`;
9
+ var COOKIE = "acp_workbench";
10
+ var SESSION_MS = 12 * 60 * 60 * 1e3;
11
+ var MAX_SESSIONS = 64;
12
+ var ASSETS = { "app.js": "text/javascript; charset=utf-8", "app.css": "text/css; charset=utf-8" };
13
+ var CHUNK = /^chunk-[A-Za-z0-9_-]+\.js$/;
14
+ var SECURITY_HEADERS = {
15
+ "Content-Security-Policy": "default-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'self'",
16
+ "X-Content-Type-Options": "nosniff",
17
+ "Referrer-Policy": "no-referrer",
18
+ "Cache-Control": "no-store"
19
+ };
20
+ function assetDirectory() {
21
+ const here = path.dirname(fileURLToPath(import.meta.url));
22
+ return [
23
+ path.resolve(here, "../../workbench-ui"),
24
+ path.resolve(here, "../../dist/workbench-ui"),
25
+ path.resolve(here, "workbench-ui"),
26
+ path.resolve(here, "../workbench-ui")
27
+ ].find((directory) => existsSync(path.join(directory, "app.js")));
28
+ }
29
+ function send(res, status, type, payload, headers = {}) {
30
+ res.writeHead(status, { ...SECURITY_HEADERS, "Content-Type": type, ...headers });
31
+ res.end(payload);
32
+ }
33
+ function sendJson(res, status, data, headers = {}) {
34
+ send(res, status, "application/json", JSON.stringify(data), headers);
35
+ }
36
+ async function serveWorkbenchPage(req, res, pathname, options = {}) {
37
+ const headers = options.frameAncestors === "'self'" ? { "Content-Security-Policy": SECURITY_HEADERS["Content-Security-Policy"].replace("frame-ancestors 'none'", "frame-ancestors 'self'") } : {};
38
+ if (req.method !== "GET")
39
+ return sendJson(res, 405, { error: "Method not allowed" }, headers);
40
+ const directory = assetDirectory();
41
+ if (!directory)
42
+ return sendJson(res, 503, { error: "Workbench page is not built" }, headers);
43
+ if (pathname === WORKBENCH_UI_PATH || pathname === `${WORKBENCH_UI_PATH}/`) {
44
+ return send(res, 200, "text/html; charset=utf-8", await readFile(path.join(directory, "index.html")), headers);
45
+ }
46
+ const asset = pathname.slice(`${WORKBENCH_UI_PATH}/`.length);
47
+ const type = Object.hasOwn(ASSETS, asset) ? ASSETS[asset] : CHUNK.test(asset) ? ASSETS["app.js"] : void 0;
48
+ if (!type)
49
+ return sendJson(res, 404, { error: "No workbench page asset" }, headers);
50
+ try {
51
+ return send(res, 200, type, await readFile(path.join(directory, asset)), headers);
52
+ } catch {
53
+ return sendJson(res, 404, { error: "No workbench page asset" }, headers);
54
+ }
55
+ }
56
+ function isAgentRequest(req) {
57
+ if (["x-oneagents-session-id", "x-oneagents-session-token", "x-oneagents-turn-id"].some((name) => req.headers[name]))
58
+ return true;
59
+ const origin = String(req.headers["x-oneagents-origin"] ?? "").toLowerCase();
60
+ return origin === "mcp" || origin === "cli" || Boolean(req.headers.authorization);
61
+ }
62
+ function sameOriginBrowser(req) {
63
+ if (req.headers["sec-fetch-site"] !== "same-origin")
64
+ return false;
65
+ try {
66
+ const origin = new URL(String(req.headers.origin ?? ""));
67
+ if (!["http:", "https:"].includes(origin.protocol) || origin.username || origin.password)
68
+ return false;
69
+ if (origin.pathname !== "" && origin.pathname !== "/" || origin.search || origin.hash)
70
+ return false;
71
+ return origin.host.toLowerCase() === String(req.headers.host ?? "").toLowerCase();
72
+ } catch {
73
+ return false;
74
+ }
75
+ }
76
+ function cookieValue(req) {
77
+ for (const part of String(req.headers.cookie ?? "").split(";")) {
78
+ const [name, ...value] = part.trim().split("=");
79
+ if (name === COOKIE)
80
+ return value.join("=");
81
+ }
82
+ }
83
+ async function readToken(req) {
84
+ let length = 0;
85
+ const chunks = [];
86
+ for await (const data of req) {
87
+ length += data.length;
88
+ if (length > 4096)
89
+ throw new Error("Request body too large");
90
+ chunks.push(Buffer.from(data));
91
+ }
92
+ return JSON.parse(Buffer.concat(chunks).toString("utf8")).token;
93
+ }
94
+ var WorkbenchUi = class {
95
+ token;
96
+ now;
97
+ sessions = /* @__PURE__ */ new Map();
98
+ constructor(token, now = Date.now) {
99
+ this.token = token;
100
+ this.now = now;
101
+ }
102
+ /**
103
+ * Serves the page, the login session and static assets. For an authorized page API call it returns
104
+ * the matching /workbench route, which the caller dispatches exactly like the bearer API.
105
+ */
106
+ async handle(req, res, url) {
107
+ const pathname = url.pathname;
108
+ if (!pathname.startsWith(`${API_PATH}/`))
109
+ return void await serveWorkbenchPage(req, res, pathname);
110
+ if (isAgentRequest(req))
111
+ return void sendJson(res, 403, { error: "browser_action_required", message: "Agents and tools use the bearer workbench API, not the page." });
112
+ const write = req.method !== "GET";
113
+ if (write && !sameOriginBrowser(req)) {
114
+ return void sendJson(res, 403, { error: "browser_action_required", message: "\u8BF7\u5728\u672C\u5DE5\u4F5C\u53F0\u9875\u9762\u63D0\u4EA4\u3002" });
115
+ }
116
+ if (pathname === `${API_PATH}/session`)
117
+ return this.session(req, res);
118
+ if (!this.authorized(req))
119
+ return void sendJson(res, 401, { error: "login_required", message: "\u8BF7\u5148\u767B\u5F55\u5DE5\u4F5C\u53F0\u3002" });
120
+ return { route: `/workbench${pathname.slice(API_PATH.length)}` };
121
+ }
122
+ authorized(req) {
123
+ if (!this.token)
124
+ return true;
125
+ const id = cookieValue(req);
126
+ const expires = id ? this.sessions.get(id) : void 0;
127
+ if (!id || expires === void 0)
128
+ return false;
129
+ if (expires <= this.now()) {
130
+ this.sessions.delete(id);
131
+ return false;
132
+ }
133
+ return true;
134
+ }
135
+ async session(req, res) {
136
+ if (req.method === "GET")
137
+ return void sendJson(res, 200, { authenticated: this.authorized(req), loginRequired: Boolean(this.token) });
138
+ if (req.method === "DELETE") {
139
+ const id2 = cookieValue(req);
140
+ if (id2)
141
+ this.sessions.delete(id2);
142
+ return void sendJson(res, 200, { authenticated: false }, { "Set-Cookie": `${COOKIE}=; HttpOnly; SameSite=Strict; Path=${WORKBENCH_UI_PATH}; Max-Age=0` });
143
+ }
144
+ if (req.method !== "POST")
145
+ return void sendJson(res, 405, { error: "Method not allowed" });
146
+ if (!this.token)
147
+ return void sendJson(res, 200, { authenticated: true });
148
+ let supplied;
149
+ try {
150
+ supplied = await readToken(req);
151
+ } catch {
152
+ return void sendJson(res, 400, { error: "invalid", message: "\u8BF7\u6C42\u683C\u5F0F\u4E0D\u6B63\u786E\u3002" });
153
+ }
154
+ const expected = Buffer.from(this.token), given = Buffer.from(typeof supplied === "string" ? supplied : "");
155
+ if (given.length !== expected.length || !timingSafeEqual(given, expected)) {
156
+ return void sendJson(res, 401, { error: "login_failed", message: "\u5DE5\u4F5C\u53F0\u4EE4\u724C\u4E0D\u6B63\u786E\u3002" });
157
+ }
158
+ const now = this.now();
159
+ for (const [id2, expires] of this.sessions)
160
+ if (expires <= now)
161
+ this.sessions.delete(id2);
162
+ while (this.sessions.size >= MAX_SESSIONS)
163
+ this.sessions.delete(this.sessions.keys().next().value);
164
+ const id = randomBytes(32).toString("base64url");
165
+ this.sessions.set(id, now + SESSION_MS);
166
+ return void sendJson(res, 200, { authenticated: true }, { "Set-Cookie": `${COOKIE}=${id}; HttpOnly; SameSite=Strict; Path=${WORKBENCH_UI_PATH}; Max-Age=${SESSION_MS / 1e3}` });
167
+ }
168
+ };
169
+
170
+ // src/workbench.js
171
+ var json = (res, status, body) => {
172
+ res.writeHead(status, { "Content-Type": "application/json", "Cache-Control": "no-store" });
173
+ res.end(JSON.stringify(body));
174
+ };
175
+ function createWorkbench(options, loginToken) {
176
+ const ui = new WorkbenchUi(loginToken);
177
+ const gateway = options?.url ? new URL(options.url).origin : void 0;
178
+ return async (req, res, url) => {
179
+ const routed = await ui.handle(req, res, url);
180
+ if (!routed) return;
181
+ const route = routed.route;
182
+ if (/^\/workbench\/dsh\/tasks\/[^/]+$/.test(route)) return json(res, 200, { available: false, reason: "headless_runtime" });
183
+ if (!gateway) return json(res, 503, { error: "workbench_not_configured", message: "\u8BF7\u914D\u7F6E workbench.url \u8FDE\u63A5\u4EFB\u52A1\u7F51\u5173\u3002" });
184
+ if (req.method === "POST" && /^\/workbench\/tasks\/[^/]+\/process-requests$/.test(route)) return json(res, 403, { error: "browser_action_required" });
185
+ const chunks = [];
186
+ let length = 0;
187
+ if (!["GET", "HEAD"].includes(req.method)) {
188
+ for await (const chunk of req) {
189
+ length += chunk.length;
190
+ if (length > 1024 * 1024) return json(res, 413, { error: "Request body too large" });
191
+ chunks.push(chunk);
192
+ }
193
+ }
194
+ const headers = {
195
+ ...options.token ? { Authorization: `Bearer ${options.token}` } : {},
196
+ ...options.pageRelaySecret ? { "X-Workbench-Page-Relay": options.pageRelaySecret } : {},
197
+ ...chunks.length ? { "Content-Type": String(req.headers["content-type"] ?? "application/json") } : {}
198
+ };
199
+ try {
200
+ const upstream = await fetch(new URL(`${route}${url.search}`, gateway), {
201
+ method: req.method,
202
+ headers,
203
+ redirect: "error",
204
+ signal: AbortSignal.timeout(6e4),
205
+ ...chunks.length ? { body: Buffer.concat(chunks) } : {}
206
+ });
207
+ const passed = { "Cache-Control": "no-store" };
208
+ for (const name of ["content-type", "content-disposition", "x-content-type-options"]) {
209
+ const value = upstream.headers.get(name);
210
+ if (value) passed[name] = value;
211
+ }
212
+ res.writeHead(upstream.status, passed);
213
+ res.end(Buffer.from(await upstream.arrayBuffer()));
214
+ } catch {
215
+ json(res, 502, { error: "gateway_unreachable" });
216
+ }
217
+ };
218
+ }
219
+ export {
220
+ WORKBENCH_UI_PATH,
221
+ createWorkbench
222
+ };
package/package.json CHANGED
@@ -1,6 +1,35 @@
1
1
  {
2
2
  "name": "@1agents/dsh-a2a",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "DSH headless runtime execution over a standalone A2A endpoint.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" },
8
+ "repository": { "type": "git", "url": "git+https://github.com/scottzx/agent-workflow.git", "directory": "packages/dsh-a2a" },
9
+ "exports": {
10
+ ".": "./dist/index.js",
11
+ "./server": "./dist/server.js",
12
+ "./executor": "./dist/executor.js",
13
+ "./package.json": "./package.json",
14
+ "./cordis.patch.yml": "./cordis.patch.yml"
15
+ },
16
+ "bin": { "dsh-a2a": "./dist/cli.js" },
17
+ "files": ["dist", "cordis.patch.yml", "README.md"],
18
+ "dsh": { "bundle": { "patch": "./cordis.patch.yml" } },
19
+ "scripts": {
20
+ "build": "node scripts/build.mjs",
21
+ "typecheck": "node scripts/check.mjs",
22
+ "test": "node scripts/build.mjs && node --test test/*.test.mjs"
23
+ },
24
+ "dependencies": {
25
+ "@1agents/acp-runtime-sdk": "npm:@agentclientprotocol/sdk@^1.5.0",
26
+ "@a2a-js/sdk": "1.3.0",
27
+ "dsh-zod": "npm:zod@4.4.3",
28
+ "zod": "^4.6.5"
29
+ },
30
+ "devDependencies": {
31
+ "@1agents/acp-service": "workspace:*",
32
+ "esbuild": "^0.28.0"
33
+ },
34
+ "engines": { "node": ">=22.13.0" }
35
+ }