@tangle-network/blueprint-ui 0.5.6 → 0.5.7
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/chunk-37ADATBT.js +55 -0
- package/dist/chunk-37ADATBT.js.map +1 -0
- package/dist/chunk-F2QBCGUW.js +1582 -0
- package/dist/chunk-F2QBCGUW.js.map +1 -0
- package/dist/chunk-TM5ROMDV.js +57 -0
- package/dist/chunk-TM5ROMDV.js.map +1 -0
- package/dist/components.d.ts +195 -0
- package/dist/components.js +1168 -0
- package/dist/components.js.map +1 -0
- package/dist/detectParentOrigin-BYruoIdc.d.ts +26 -0
- package/dist/iframe/index.d.ts +146 -0
- package/dist/iframe/index.js +607 -0
- package/dist/iframe/index.js.map +1 -0
- package/dist/iframe/testing-index.d.ts +82 -0
- package/dist/iframe/testing-index.js +560 -0
- package/dist/iframe/testing-index.js.map +1 -0
- package/dist/index.d.ts +8620 -0
- package/dist/index.js +870 -0
- package/dist/index.js.map +1 -0
- package/dist/parentBridgeProtocol-BSgLXg9g.d.ts +204 -0
- package/dist/preset.d.ts +60 -0
- package/dist/preset.js +7 -0
- package/dist/preset.js.map +1 -0
- package/dist/styles.css +568 -0
- package/dist/tangleIframeClient-C7NFG_Dw.d.ts +133 -0
- package/dist/useRegistrationCommand-Df1mvvwE.d.ts +151 -0
- package/dist/wallet/index.d.ts +134 -0
- package/dist/wallet/index.js +472 -0
- package/dist/wallet/index.js.map +1 -0
- package/package.json +1 -1
- package/src/components.ts +0 -3
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
// src/iframe/testing.tsx
|
|
2
|
+
import {
|
|
3
|
+
useCallback,
|
|
4
|
+
useEffect,
|
|
5
|
+
useMemo,
|
|
6
|
+
useRef,
|
|
7
|
+
useState
|
|
8
|
+
} from "react";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function mockWallet(input = {}) {
|
|
11
|
+
return {
|
|
12
|
+
address: input.address === void 0 ? "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" : input.address,
|
|
13
|
+
chainId: input.chainId ?? 84532,
|
|
14
|
+
isConnected: input.isConnected ?? input.address !== null
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function mockServiceContext(input = {}) {
|
|
18
|
+
return {
|
|
19
|
+
blueprintId: input.blueprintId ?? "0",
|
|
20
|
+
serviceId: input.serviceId === void 0 ? null : input.serviceId,
|
|
21
|
+
operators: input.operators ?? [
|
|
22
|
+
{
|
|
23
|
+
address: "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
|
|
24
|
+
rpcAddress: "http://localhost:8545",
|
|
25
|
+
status: "active"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
jobs: input.jobs ?? [
|
|
29
|
+
{ index: 0, name: "invoke" }
|
|
30
|
+
],
|
|
31
|
+
mode: input.mode ?? null,
|
|
32
|
+
chain: input.chain === void 0 ? {
|
|
33
|
+
id: 84532,
|
|
34
|
+
name: "Base Sepolia",
|
|
35
|
+
rpcUrl: "https://sepolia.base.org",
|
|
36
|
+
blockExplorerUrl: "https://sepolia.basescan.org",
|
|
37
|
+
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 }
|
|
38
|
+
} : input.chain
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
var TangleParentHarness = ({
|
|
42
|
+
appId = "harness",
|
|
43
|
+
wallet = mockWallet(),
|
|
44
|
+
service = mockServiceContext(),
|
|
45
|
+
onCallJob,
|
|
46
|
+
showDebugPanel = false,
|
|
47
|
+
children
|
|
48
|
+
}) => {
|
|
49
|
+
const [currentWallet, setCurrentWallet] = useState(wallet);
|
|
50
|
+
const [currentService, setCurrentService] = useState(service);
|
|
51
|
+
const [callLog, setCallLog] = useState([]);
|
|
52
|
+
const callJobHandler = useRef(onCallJob);
|
|
53
|
+
callJobHandler.current = onCallJob;
|
|
54
|
+
const seenHandshake = useRef(false);
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
const reply = (message) => {
|
|
57
|
+
window.dispatchEvent(
|
|
58
|
+
new MessageEvent("message", {
|
|
59
|
+
data: message,
|
|
60
|
+
origin: HARNESS_ORIGIN
|
|
61
|
+
})
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
const broadcast = () => {
|
|
65
|
+
const broadcastMsg = {
|
|
66
|
+
kind: "tangle.app.serviceContext",
|
|
67
|
+
blueprintId: currentService.blueprintId ?? "0",
|
|
68
|
+
serviceId: currentService.serviceId,
|
|
69
|
+
operators: currentService.operators,
|
|
70
|
+
jobs: currentService.jobs,
|
|
71
|
+
mode: currentService.mode,
|
|
72
|
+
...currentService.chain !== null ? { chain: currentService.chain } : {}
|
|
73
|
+
};
|
|
74
|
+
reply(broadcastMsg);
|
|
75
|
+
reply({
|
|
76
|
+
kind: "tangle.app.accountChanged",
|
|
77
|
+
account: currentWallet.address
|
|
78
|
+
});
|
|
79
|
+
if (currentWallet.chainId !== null) {
|
|
80
|
+
reply({
|
|
81
|
+
kind: "tangle.app.chainChanged",
|
|
82
|
+
chainId: currentWallet.chainId
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const handleInbound = async (data) => {
|
|
87
|
+
if (typeof data !== "object" || data === null) return;
|
|
88
|
+
const message = data;
|
|
89
|
+
switch (message.kind) {
|
|
90
|
+
case "tangle.app.handshake": {
|
|
91
|
+
if (!seenHandshake.current) {
|
|
92
|
+
seenHandshake.current = true;
|
|
93
|
+
reply({
|
|
94
|
+
kind: "tangle.app.handshakeAck",
|
|
95
|
+
appId,
|
|
96
|
+
protocolVersion: "1"
|
|
97
|
+
});
|
|
98
|
+
broadcast();
|
|
99
|
+
}
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
case "tangle.app.readAccount": {
|
|
103
|
+
if (typeof message.correlationId !== "string") return;
|
|
104
|
+
reply({
|
|
105
|
+
kind: "tangle.app.readAccountResult",
|
|
106
|
+
correlationId: message.correlationId,
|
|
107
|
+
ok: true,
|
|
108
|
+
data: {
|
|
109
|
+
account: currentWallet.address ?? "0x0000000000000000000000000000000000000000",
|
|
110
|
+
chainId: currentWallet.chainId ?? 0
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
case "tangle.app.requestConnect": {
|
|
116
|
+
if (typeof message.correlationId !== "string") return;
|
|
117
|
+
reply({
|
|
118
|
+
kind: "tangle.app.connectResult",
|
|
119
|
+
correlationId: message.correlationId,
|
|
120
|
+
ok: true,
|
|
121
|
+
data: {
|
|
122
|
+
account: currentWallet.address ?? "0x0000000000000000000000000000000000000000",
|
|
123
|
+
chainId: currentWallet.chainId ?? 0
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
case "tangle.app.callJob": {
|
|
129
|
+
if (typeof message.correlationId !== "string") return;
|
|
130
|
+
const request = message;
|
|
131
|
+
setCallLog((prev) => [...prev, request]);
|
|
132
|
+
const handler = callJobHandler.current;
|
|
133
|
+
if (!handler) {
|
|
134
|
+
const result = {
|
|
135
|
+
kind: "tangle.app.jobResult",
|
|
136
|
+
correlationId: request.correlationId,
|
|
137
|
+
status: "success",
|
|
138
|
+
data: { echo: request.inputs }
|
|
139
|
+
};
|
|
140
|
+
reply(result);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
try {
|
|
144
|
+
const outcome = await handler(request);
|
|
145
|
+
for (const chunk of outcome.chunks ?? []) {
|
|
146
|
+
reply({
|
|
147
|
+
kind: "tangle.app.jobResult",
|
|
148
|
+
correlationId: request.correlationId,
|
|
149
|
+
status: "streaming",
|
|
150
|
+
chunk
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
reply({
|
|
154
|
+
kind: "tangle.app.jobResult",
|
|
155
|
+
correlationId: request.correlationId,
|
|
156
|
+
status: outcome.status,
|
|
157
|
+
...outcome.data !== void 0 ? { data: outcome.data } : {},
|
|
158
|
+
...outcome.error !== void 0 ? { error: outcome.error } : {}
|
|
159
|
+
});
|
|
160
|
+
} catch (err) {
|
|
161
|
+
reply({
|
|
162
|
+
kind: "tangle.app.jobResult",
|
|
163
|
+
correlationId: request.correlationId,
|
|
164
|
+
status: "error",
|
|
165
|
+
error: err instanceof Error ? err.message : String(err)
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
// Wallet ops respond optimistically — tests that want to assert
|
|
171
|
+
// specific signatures should pre-set them via the dev handler.
|
|
172
|
+
case "tangle.app.signMessage": {
|
|
173
|
+
if (typeof message.correlationId !== "string") return;
|
|
174
|
+
reply({
|
|
175
|
+
kind: "tangle.app.signMessageResult",
|
|
176
|
+
correlationId: message.correlationId,
|
|
177
|
+
ok: true,
|
|
178
|
+
data: { signature: "0xdeadbeef" }
|
|
179
|
+
});
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
case "tangle.app.signTypedData": {
|
|
183
|
+
if (typeof message.correlationId !== "string") return;
|
|
184
|
+
reply({
|
|
185
|
+
kind: "tangle.app.signTypedDataResult",
|
|
186
|
+
correlationId: message.correlationId,
|
|
187
|
+
ok: true,
|
|
188
|
+
data: {
|
|
189
|
+
signature: "0x" + "11".repeat(65)
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
case "tangle.app.signTransaction": {
|
|
195
|
+
if (typeof message.correlationId !== "string") return;
|
|
196
|
+
reply({
|
|
197
|
+
kind: "tangle.app.signTransactionResult",
|
|
198
|
+
correlationId: message.correlationId,
|
|
199
|
+
ok: true,
|
|
200
|
+
data: { txHash: "0x" + "00".repeat(32) }
|
|
201
|
+
});
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
case "tangle.app.switchChain": {
|
|
205
|
+
if (typeof message.correlationId !== "string" || typeof message.chainId !== "number") {
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const chainId = message.chainId;
|
|
209
|
+
setCurrentWallet((w) => ({ ...w, chainId }));
|
|
210
|
+
reply({
|
|
211
|
+
kind: "tangle.app.switchChainResult",
|
|
212
|
+
correlationId: message.correlationId,
|
|
213
|
+
ok: true,
|
|
214
|
+
data: { chainId }
|
|
215
|
+
});
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
const originalParent = window.parent;
|
|
221
|
+
const proxyParent = {
|
|
222
|
+
postMessage: (message) => {
|
|
223
|
+
void handleInbound(message);
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
Object.defineProperty(window, "parent", {
|
|
227
|
+
configurable: true,
|
|
228
|
+
get: () => proxyParent
|
|
229
|
+
});
|
|
230
|
+
return () => {
|
|
231
|
+
Object.defineProperty(window, "parent", {
|
|
232
|
+
configurable: true,
|
|
233
|
+
value: originalParent
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
}, [appId, currentWallet, currentService]);
|
|
237
|
+
useEffect(() => {
|
|
238
|
+
if (!seenHandshake.current) return;
|
|
239
|
+
window.dispatchEvent(
|
|
240
|
+
new MessageEvent("message", {
|
|
241
|
+
data: {
|
|
242
|
+
kind: "tangle.app.accountChanged",
|
|
243
|
+
account: currentWallet.address
|
|
244
|
+
},
|
|
245
|
+
origin: HARNESS_ORIGIN
|
|
246
|
+
})
|
|
247
|
+
);
|
|
248
|
+
}, [currentWallet.address]);
|
|
249
|
+
useEffect(() => {
|
|
250
|
+
if (!seenHandshake.current || currentWallet.chainId === null) return;
|
|
251
|
+
window.dispatchEvent(
|
|
252
|
+
new MessageEvent("message", {
|
|
253
|
+
data: {
|
|
254
|
+
kind: "tangle.app.chainChanged",
|
|
255
|
+
chainId: currentWallet.chainId
|
|
256
|
+
},
|
|
257
|
+
origin: HARNESS_ORIGIN
|
|
258
|
+
})
|
|
259
|
+
);
|
|
260
|
+
}, [currentWallet.chainId]);
|
|
261
|
+
useEffect(() => {
|
|
262
|
+
if (!seenHandshake.current) return;
|
|
263
|
+
window.dispatchEvent(
|
|
264
|
+
new MessageEvent("message", {
|
|
265
|
+
data: {
|
|
266
|
+
kind: "tangle.app.serviceContext",
|
|
267
|
+
blueprintId: currentService.blueprintId ?? "0",
|
|
268
|
+
serviceId: currentService.serviceId,
|
|
269
|
+
operators: currentService.operators,
|
|
270
|
+
jobs: currentService.jobs,
|
|
271
|
+
mode: currentService.mode,
|
|
272
|
+
...currentService.chain !== null ? { chain: currentService.chain } : {}
|
|
273
|
+
},
|
|
274
|
+
origin: HARNESS_ORIGIN
|
|
275
|
+
})
|
|
276
|
+
);
|
|
277
|
+
}, [currentService]);
|
|
278
|
+
const debugApi = useMemo(
|
|
279
|
+
() => ({
|
|
280
|
+
setWallet: setCurrentWallet,
|
|
281
|
+
setService: setCurrentService,
|
|
282
|
+
callLog
|
|
283
|
+
}),
|
|
284
|
+
[callLog]
|
|
285
|
+
);
|
|
286
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
287
|
+
children,
|
|
288
|
+
showDebugPanel && /* @__PURE__ */ jsx(DebugPanel, { api: debugApi })
|
|
289
|
+
] });
|
|
290
|
+
};
|
|
291
|
+
var HARNESS_ORIGIN = "harness://tangle.local";
|
|
292
|
+
var DebugPanel = ({ api }) => {
|
|
293
|
+
const [open, setOpen] = useState(true);
|
|
294
|
+
const [tab, setTab] = useState("wallet");
|
|
295
|
+
if (!open) {
|
|
296
|
+
return /* @__PURE__ */ jsx(
|
|
297
|
+
"button",
|
|
298
|
+
{
|
|
299
|
+
type: "button",
|
|
300
|
+
onClick: () => setOpen(true),
|
|
301
|
+
style: debugStyles.collapsedTrigger,
|
|
302
|
+
children: "Debug"
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
return /* @__PURE__ */ jsxs("div", { style: debugStyles.panel, children: [
|
|
307
|
+
/* @__PURE__ */ jsxs("header", { style: debugStyles.header, children: [
|
|
308
|
+
/* @__PURE__ */ jsx("strong", { style: { fontSize: 11 }, children: "TANGLE DEV HARNESS" }),
|
|
309
|
+
/* @__PURE__ */ jsx(
|
|
310
|
+
"button",
|
|
311
|
+
{
|
|
312
|
+
type: "button",
|
|
313
|
+
onClick: () => setOpen(false),
|
|
314
|
+
style: debugStyles.closeButton,
|
|
315
|
+
"aria-label": "Close debug panel",
|
|
316
|
+
children: "\xD7"
|
|
317
|
+
}
|
|
318
|
+
)
|
|
319
|
+
] }),
|
|
320
|
+
/* @__PURE__ */ jsx("nav", { style: debugStyles.tabs, children: ["wallet", "service", "log"].map((t) => /* @__PURE__ */ jsx(
|
|
321
|
+
"button",
|
|
322
|
+
{
|
|
323
|
+
type: "button",
|
|
324
|
+
onClick: () => setTab(t),
|
|
325
|
+
style: {
|
|
326
|
+
...debugStyles.tab,
|
|
327
|
+
...tab === t ? debugStyles.tabActive : {}
|
|
328
|
+
},
|
|
329
|
+
children: t
|
|
330
|
+
},
|
|
331
|
+
t
|
|
332
|
+
)) }),
|
|
333
|
+
/* @__PURE__ */ jsxs("div", { style: debugStyles.body, children: [
|
|
334
|
+
tab === "wallet" && /* @__PURE__ */ jsx(WalletTab, { api }),
|
|
335
|
+
tab === "service" && /* @__PURE__ */ jsx(ServiceTab, { api }),
|
|
336
|
+
tab === "log" && /* @__PURE__ */ jsx(CallLogTab, { callLog: api.callLog })
|
|
337
|
+
] })
|
|
338
|
+
] });
|
|
339
|
+
};
|
|
340
|
+
var WalletTab = ({ api }) => {
|
|
341
|
+
const [address, setAddressInput] = useState(
|
|
342
|
+
"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
|
|
343
|
+
);
|
|
344
|
+
const [chainId, setChainIdInput] = useState("84532");
|
|
345
|
+
const applyConnect = useCallback(() => {
|
|
346
|
+
api.setWallet({
|
|
347
|
+
address,
|
|
348
|
+
chainId: Number(chainId) || null,
|
|
349
|
+
isConnected: true
|
|
350
|
+
});
|
|
351
|
+
}, [address, chainId, api]);
|
|
352
|
+
const disconnect = useCallback(() => {
|
|
353
|
+
api.setWallet({ address: null, chainId: null, isConnected: false });
|
|
354
|
+
}, [api]);
|
|
355
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
356
|
+
/* @__PURE__ */ jsx("label", { style: debugStyles.label, children: "address" }),
|
|
357
|
+
/* @__PURE__ */ jsx(
|
|
358
|
+
"input",
|
|
359
|
+
{
|
|
360
|
+
value: address,
|
|
361
|
+
onChange: (e) => setAddressInput(e.target.value),
|
|
362
|
+
style: debugStyles.input
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ jsx("label", { style: debugStyles.label, children: "chain id" }),
|
|
366
|
+
/* @__PURE__ */ jsx(
|
|
367
|
+
"input",
|
|
368
|
+
{
|
|
369
|
+
value: chainId,
|
|
370
|
+
onChange: (e) => setChainIdInput(e.target.value),
|
|
371
|
+
style: debugStyles.input
|
|
372
|
+
}
|
|
373
|
+
),
|
|
374
|
+
/* @__PURE__ */ jsxs("div", { style: debugStyles.buttonRow, children: [
|
|
375
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: applyConnect, style: debugStyles.primary, children: "Set connected" }),
|
|
376
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: disconnect, style: debugStyles.secondary, children: "Disconnect" })
|
|
377
|
+
] })
|
|
378
|
+
] });
|
|
379
|
+
};
|
|
380
|
+
var ServiceTab = ({ api }) => {
|
|
381
|
+
const [serviceId, setServiceIdInput] = useState("1");
|
|
382
|
+
const [blueprintId, setBlueprintIdInput] = useState("0");
|
|
383
|
+
const apply = useCallback(() => {
|
|
384
|
+
api.setService((prev) => ({
|
|
385
|
+
...prev,
|
|
386
|
+
serviceId: serviceId || null,
|
|
387
|
+
blueprintId
|
|
388
|
+
}));
|
|
389
|
+
}, [api, serviceId, blueprintId]);
|
|
390
|
+
const clearService = useCallback(() => {
|
|
391
|
+
api.setService((prev) => ({ ...prev, serviceId: null }));
|
|
392
|
+
}, [api]);
|
|
393
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
394
|
+
/* @__PURE__ */ jsx("label", { style: debugStyles.label, children: "blueprint id" }),
|
|
395
|
+
/* @__PURE__ */ jsx(
|
|
396
|
+
"input",
|
|
397
|
+
{
|
|
398
|
+
value: blueprintId,
|
|
399
|
+
onChange: (e) => setBlueprintIdInput(e.target.value),
|
|
400
|
+
style: debugStyles.input
|
|
401
|
+
}
|
|
402
|
+
),
|
|
403
|
+
/* @__PURE__ */ jsx("label", { style: debugStyles.label, children: "service id (empty = not deployed)" }),
|
|
404
|
+
/* @__PURE__ */ jsx(
|
|
405
|
+
"input",
|
|
406
|
+
{
|
|
407
|
+
value: serviceId,
|
|
408
|
+
onChange: (e) => setServiceIdInput(e.target.value),
|
|
409
|
+
style: debugStyles.input
|
|
410
|
+
}
|
|
411
|
+
),
|
|
412
|
+
/* @__PURE__ */ jsxs("div", { style: debugStyles.buttonRow, children: [
|
|
413
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: apply, style: debugStyles.primary, children: "Apply" }),
|
|
414
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: clearService, style: debugStyles.secondary, children: "Clear service" })
|
|
415
|
+
] })
|
|
416
|
+
] });
|
|
417
|
+
};
|
|
418
|
+
var CallLogTab = ({ callLog }) => {
|
|
419
|
+
if (callLog.length === 0) {
|
|
420
|
+
return /* @__PURE__ */ jsx("p", { style: debugStyles.empty, children: "No callJob requests yet." });
|
|
421
|
+
}
|
|
422
|
+
return /* @__PURE__ */ jsx("ol", { style: debugStyles.log, children: callLog.map((entry) => /* @__PURE__ */ jsxs("li", { style: debugStyles.logEntry, children: [
|
|
423
|
+
/* @__PURE__ */ jsxs("strong", { children: [
|
|
424
|
+
"job ",
|
|
425
|
+
entry.jobIndex
|
|
426
|
+
] }),
|
|
427
|
+
/* @__PURE__ */ jsx("pre", { style: debugStyles.pre, children: JSON.stringify(entry.inputs, null, 2) })
|
|
428
|
+
] }, entry.correlationId)) });
|
|
429
|
+
};
|
|
430
|
+
var debugStyles = {
|
|
431
|
+
panel: {
|
|
432
|
+
position: "fixed",
|
|
433
|
+
right: 12,
|
|
434
|
+
top: 12,
|
|
435
|
+
width: 280,
|
|
436
|
+
zIndex: 99999,
|
|
437
|
+
background: "#0b0b14",
|
|
438
|
+
color: "#fff",
|
|
439
|
+
border: "1px solid #3a3a52",
|
|
440
|
+
borderRadius: 10,
|
|
441
|
+
boxShadow: "0 14px 32px rgba(0,0,0,0.4)",
|
|
442
|
+
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Code", monospace',
|
|
443
|
+
fontSize: 12
|
|
444
|
+
},
|
|
445
|
+
header: {
|
|
446
|
+
display: "flex",
|
|
447
|
+
alignItems: "center",
|
|
448
|
+
justifyContent: "space-between",
|
|
449
|
+
padding: "8px 10px",
|
|
450
|
+
borderBottom: "1px solid #2a2a3e"
|
|
451
|
+
},
|
|
452
|
+
closeButton: {
|
|
453
|
+
background: "none",
|
|
454
|
+
border: "none",
|
|
455
|
+
color: "#fff",
|
|
456
|
+
fontSize: 18,
|
|
457
|
+
cursor: "pointer",
|
|
458
|
+
lineHeight: 1
|
|
459
|
+
},
|
|
460
|
+
tabs: {
|
|
461
|
+
display: "flex",
|
|
462
|
+
borderBottom: "1px solid #2a2a3e"
|
|
463
|
+
},
|
|
464
|
+
tab: {
|
|
465
|
+
flex: 1,
|
|
466
|
+
background: "none",
|
|
467
|
+
border: "none",
|
|
468
|
+
color: "#a0a0c0",
|
|
469
|
+
padding: "6px 8px",
|
|
470
|
+
cursor: "pointer",
|
|
471
|
+
fontSize: 11,
|
|
472
|
+
textTransform: "uppercase"
|
|
473
|
+
},
|
|
474
|
+
tabActive: {
|
|
475
|
+
color: "#fff",
|
|
476
|
+
borderBottom: "2px solid #818cf8"
|
|
477
|
+
},
|
|
478
|
+
body: {
|
|
479
|
+
padding: 10,
|
|
480
|
+
maxHeight: 320,
|
|
481
|
+
overflow: "auto"
|
|
482
|
+
},
|
|
483
|
+
label: {
|
|
484
|
+
display: "block",
|
|
485
|
+
color: "#a0a0c0",
|
|
486
|
+
fontSize: 10,
|
|
487
|
+
marginBottom: 4,
|
|
488
|
+
marginTop: 6,
|
|
489
|
+
textTransform: "uppercase"
|
|
490
|
+
},
|
|
491
|
+
input: {
|
|
492
|
+
width: "100%",
|
|
493
|
+
background: "#15152a",
|
|
494
|
+
border: "1px solid #2a2a3e",
|
|
495
|
+
color: "#fff",
|
|
496
|
+
padding: "6px 8px",
|
|
497
|
+
borderRadius: 4,
|
|
498
|
+
fontFamily: "inherit",
|
|
499
|
+
fontSize: 11,
|
|
500
|
+
boxSizing: "border-box"
|
|
501
|
+
},
|
|
502
|
+
buttonRow: { display: "flex", gap: 6, marginTop: 8 },
|
|
503
|
+
primary: {
|
|
504
|
+
flex: 1,
|
|
505
|
+
background: "#4f46e5",
|
|
506
|
+
color: "#fff",
|
|
507
|
+
border: "none",
|
|
508
|
+
padding: "6px 8px",
|
|
509
|
+
borderRadius: 4,
|
|
510
|
+
cursor: "pointer",
|
|
511
|
+
fontSize: 11,
|
|
512
|
+
fontFamily: "inherit"
|
|
513
|
+
},
|
|
514
|
+
secondary: {
|
|
515
|
+
flex: 1,
|
|
516
|
+
background: "transparent",
|
|
517
|
+
color: "#a0a0c0",
|
|
518
|
+
border: "1px solid #3a3a52",
|
|
519
|
+
padding: "6px 8px",
|
|
520
|
+
borderRadius: 4,
|
|
521
|
+
cursor: "pointer",
|
|
522
|
+
fontSize: 11,
|
|
523
|
+
fontFamily: "inherit"
|
|
524
|
+
},
|
|
525
|
+
collapsedTrigger: {
|
|
526
|
+
position: "fixed",
|
|
527
|
+
right: 12,
|
|
528
|
+
top: 12,
|
|
529
|
+
zIndex: 99999,
|
|
530
|
+
padding: "6px 10px",
|
|
531
|
+
background: "#0b0b14",
|
|
532
|
+
border: "1px solid #3a3a52",
|
|
533
|
+
color: "#fff",
|
|
534
|
+
borderRadius: 6,
|
|
535
|
+
fontFamily: "inherit",
|
|
536
|
+
fontSize: 11,
|
|
537
|
+
cursor: "pointer"
|
|
538
|
+
},
|
|
539
|
+
log: { listStyle: "none", padding: 0, margin: 0 },
|
|
540
|
+
logEntry: {
|
|
541
|
+
padding: 6,
|
|
542
|
+
borderBottom: "1px solid #2a2a3e",
|
|
543
|
+
fontSize: 11
|
|
544
|
+
},
|
|
545
|
+
pre: {
|
|
546
|
+
margin: "4px 0 0",
|
|
547
|
+
color: "#a0a0c0",
|
|
548
|
+
fontSize: 10,
|
|
549
|
+
whiteSpace: "pre-wrap",
|
|
550
|
+
wordBreak: "break-word"
|
|
551
|
+
},
|
|
552
|
+
empty: { color: "#a0a0c0", fontSize: 11, margin: 0 }
|
|
553
|
+
};
|
|
554
|
+
export {
|
|
555
|
+
HARNESS_ORIGIN,
|
|
556
|
+
TangleParentHarness,
|
|
557
|
+
mockServiceContext,
|
|
558
|
+
mockWallet
|
|
559
|
+
};
|
|
560
|
+
//# sourceMappingURL=testing-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/iframe/testing.tsx"],"sourcesContent":["// Testing harness for iframe blueprints. The promise of the SDK is that\n// publishers can iterate on their UI without running the Tangle Cloud dapp\n// — these utilities are what makes that true.\n\nimport {\n type FC,\n type ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport type { Address } from 'viem';\n\nimport type {\n ServiceSnapshot,\n WalletSnapshot,\n} from './tangleIframeClient';\nimport type {\n CallJobRequest,\n JobInputs,\n JobResultEvent,\n ParentMessage,\n ServiceContextBroadcast,\n ServiceContextJob,\n ServiceContextOperator,\n} from '../wallet/parentBridgeProtocol';\n\nexport type MockWalletInput = Partial<{\n address: Address | null;\n chainId: number;\n isConnected: boolean;\n}>;\n\nexport type MockServiceInput = Partial<{\n blueprintId: string;\n serviceId: string | null;\n operators: readonly ServiceContextOperator[];\n jobs: readonly ServiceContextJob[];\n mode: string | null;\n chain: import('../wallet/parentBridgeProtocol').ChainContext | null;\n}>;\n\n/**\n * Construct a deterministic wallet snapshot for tests. Defaults:\n * connected, vitalik.eth's address, Base Sepolia (84532).\n */\nexport function mockWallet(input: MockWalletInput = {}): WalletSnapshot {\n return {\n address:\n input.address === undefined\n ? '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n : input.address,\n chainId: input.chainId ?? 84532,\n isConnected: input.isConnected ?? input.address !== null,\n };\n}\n\n/**\n * Construct a deterministic service snapshot for tests. Defaults: blueprint\n * id `0`, no service deployed yet (serviceId null), single mock operator on\n * the canonical local sidecar URL.\n */\nexport function mockServiceContext(\n input: MockServiceInput = {},\n): ServiceSnapshot {\n return {\n blueprintId: input.blueprintId ?? '0',\n serviceId: input.serviceId === undefined ? null : input.serviceId,\n operators:\n input.operators ?? [\n {\n address: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',\n rpcAddress: 'http://localhost:8545',\n status: 'active',\n },\n ],\n jobs:\n input.jobs ?? [\n { index: 0, name: 'invoke' },\n ],\n mode: input.mode ?? null,\n chain:\n input.chain === undefined\n ? {\n id: 84532,\n name: 'Base Sepolia',\n rpcUrl: 'https://sepolia.base.org',\n blockExplorerUrl: 'https://sepolia.basescan.org',\n nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },\n }\n : input.chain,\n };\n}\n\nexport type CallJobHandler = (\n request: CallJobRequest,\n) => Promise<{\n status: 'success' | 'error';\n data?: unknown;\n error?: string;\n /** Streaming chunks emitted in order before the terminal status. */\n chunks?: readonly unknown[];\n}>;\n\ntype HarnessProps = {\n appId?: string;\n wallet?: WalletSnapshot;\n service?: ServiceSnapshot;\n /** Override callJob behavior. Default: returns a static `{ ok: true }`. */\n onCallJob?: CallJobHandler;\n /** Surface a floating debug panel that lets the developer flip state at runtime. */\n showDebugPanel?: boolean;\n children: ReactNode;\n};\n\n/**\n * Drop-in parent simulator for tests + storybook + standalone dev. Wraps\n * children in a fake parent that:\n *\n * - Acks the iframe's handshake immediately\n * - Broadcasts the configured wallet + service context on mount\n * - Intercepts `callJob` requests and routes them through `onCallJob`\n * - (Optional) Mounts a floating debug panel so the developer can\n * mutate state at runtime: change account, switch chain, set\n * serviceId, fire a custom job\n *\n * The harness runs in the same JS context as the iframe app — there's no\n * cross-frame postMessage, just same-window event dispatch. That keeps it\n * fully synchronous + assertable, but the messages still flow through the\n * exact same protocol surface the production bridge uses.\n *\n * Usage:\n *\n * <TangleParentHarness wallet={mockWallet()} service={mockServiceContext()}>\n * <TangleIframeProvider appId=\"my-app\" mode=\"bridge\" parentOrigin=\"harness://\">\n * <App />\n * </TangleIframeProvider>\n * </TangleParentHarness>\n *\n * Set `mode=\"bridge\"` + `parentOrigin=\"harness://\"` on the provider so it\n * matches the harness's synthetic origin. In production, use `mode=\"auto\"`\n * (the default).\n */\nexport const TangleParentHarness: FC<HarnessProps> = ({\n appId = 'harness',\n wallet = mockWallet(),\n service = mockServiceContext(),\n onCallJob,\n showDebugPanel = false,\n children,\n}) => {\n const [currentWallet, setCurrentWallet] = useState<WalletSnapshot>(wallet);\n const [currentService, setCurrentService] =\n useState<ServiceSnapshot>(service);\n const [callLog, setCallLog] = useState<CallJobRequest[]>([]);\n const callJobHandler = useRef<CallJobHandler | undefined>(onCallJob);\n callJobHandler.current = onCallJob;\n const seenHandshake = useRef(false);\n\n // Bridge the iframe → \"parent\" channel. The SDK posts via\n // `window.parent.postMessage(msg, parentOrigin)`. In a real iframe that\n // crosses a window boundary; in the harness both live in one window, where\n // a same-window `postMessage` with a synthetic targetOrigin is *not*\n // delivered (the origin won't match the document's real origin in jsdom /\n // happy-dom / a real browser). So we intercept `window.parent.postMessage`\n // directly — identical to how production parents receive frames, minus the\n // window hop. Replies still travel back as dispatched `message` events\n // tagged with HARNESS_ORIGIN, which the SDK's listener filters for.\n useEffect(() => {\n const reply = (message: ParentMessage) => {\n window.dispatchEvent(\n new MessageEvent('message', {\n data: message,\n origin: HARNESS_ORIGIN,\n }),\n );\n };\n\n const broadcast = () => {\n const broadcastMsg: ServiceContextBroadcast = {\n kind: 'tangle.app.serviceContext',\n blueprintId: currentService.blueprintId ?? '0',\n serviceId: currentService.serviceId,\n operators: currentService.operators,\n jobs: currentService.jobs,\n mode: currentService.mode,\n ...(currentService.chain !== null\n ? { chain: currentService.chain }\n : {}),\n };\n reply(broadcastMsg);\n // Also broadcast wallet — combined into accountChanged + chainChanged.\n reply({\n kind: 'tangle.app.accountChanged',\n account: currentWallet.address,\n });\n if (currentWallet.chainId !== null) {\n reply({\n kind: 'tangle.app.chainChanged',\n chainId: currentWallet.chainId,\n });\n }\n };\n\n const handleInbound = async (data: unknown) => {\n if (typeof data !== 'object' || data === null) return;\n const message = data as { kind?: string; correlationId?: string };\n\n switch (message.kind) {\n case 'tangle.app.handshake': {\n if (!seenHandshake.current) {\n seenHandshake.current = true;\n reply({\n kind: 'tangle.app.handshakeAck',\n appId,\n protocolVersion: '1',\n });\n broadcast();\n }\n return;\n }\n case 'tangle.app.readAccount': {\n if (typeof message.correlationId !== 'string') return;\n reply({\n kind: 'tangle.app.readAccountResult',\n correlationId: message.correlationId,\n ok: true,\n data: {\n account:\n currentWallet.address ??\n ('0x0000000000000000000000000000000000000000' as Address),\n chainId: currentWallet.chainId ?? 0,\n },\n });\n return;\n }\n case 'tangle.app.requestConnect': {\n // The harness \"connects\" immediately to the mocked wallet — a real\n // parent would open its connect modal and resolve once the user\n // picks a wallet. Tests that need the disconnected path pass a\n // wallet with a null address.\n if (typeof message.correlationId !== 'string') return;\n reply({\n kind: 'tangle.app.connectResult',\n correlationId: message.correlationId,\n ok: true,\n data: {\n account:\n currentWallet.address ??\n ('0x0000000000000000000000000000000000000000' as Address),\n chainId: currentWallet.chainId ?? 0,\n },\n });\n return;\n }\n case 'tangle.app.callJob': {\n if (typeof message.correlationId !== 'string') return;\n const request = message as unknown as CallJobRequest;\n setCallLog((prev) => [...prev, request]);\n // Default behavior when no handler: emit a single `success` with\n // a echo of the inputs so UIs render *something* in dev mode.\n const handler = callJobHandler.current;\n if (!handler) {\n const result: JobResultEvent = {\n kind: 'tangle.app.jobResult',\n correlationId: request.correlationId,\n status: 'success',\n data: { echo: request.inputs },\n };\n reply(result);\n return;\n }\n try {\n const outcome = await handler(request);\n for (const chunk of outcome.chunks ?? []) {\n reply({\n kind: 'tangle.app.jobResult',\n correlationId: request.correlationId,\n status: 'streaming',\n chunk,\n });\n }\n reply({\n kind: 'tangle.app.jobResult',\n correlationId: request.correlationId,\n status: outcome.status,\n ...(outcome.data !== undefined ? { data: outcome.data } : {}),\n ...(outcome.error !== undefined ? { error: outcome.error } : {}),\n });\n } catch (err) {\n reply({\n kind: 'tangle.app.jobResult',\n correlationId: request.correlationId,\n status: 'error',\n error: err instanceof Error ? err.message : String(err),\n });\n }\n return;\n }\n // Wallet ops respond optimistically — tests that want to assert\n // specific signatures should pre-set them via the dev handler.\n case 'tangle.app.signMessage': {\n if (typeof message.correlationId !== 'string') return;\n reply({\n kind: 'tangle.app.signMessageResult',\n correlationId: message.correlationId,\n ok: true,\n data: { signature: '0xdeadbeef' as `0x${string}` },\n });\n return;\n }\n case 'tangle.app.signTypedData': {\n if (typeof message.correlationId !== 'string') return;\n // The harness signs deterministically — production parents show\n // an approval modal first. Tests that need to assert the\n // typed-data payload should inspect callLog (extend later if\n // needed) or pass a custom onSignTypedData handler.\n reply({\n kind: 'tangle.app.signTypedDataResult',\n correlationId: message.correlationId,\n ok: true,\n data: {\n signature: ('0x' + '11'.repeat(65)) as `0x${string}`,\n },\n });\n return;\n }\n case 'tangle.app.signTransaction': {\n if (typeof message.correlationId !== 'string') return;\n reply({\n kind: 'tangle.app.signTransactionResult',\n correlationId: message.correlationId,\n ok: true,\n data: { txHash: ('0x' + '00'.repeat(32)) as `0x${string}` },\n });\n return;\n }\n case 'tangle.app.switchChain': {\n if (\n typeof message.correlationId !== 'string' ||\n typeof (message as unknown as { chainId?: number }).chainId !== 'number'\n ) {\n return;\n }\n const chainId = (message as unknown as { chainId: number }).chainId;\n setCurrentWallet((w) => ({ ...w, chainId }));\n reply({\n kind: 'tangle.app.switchChainResult',\n correlationId: message.correlationId,\n ok: true,\n data: { chainId },\n });\n return;\n }\n }\n };\n\n // Route the iframe's outbound posts straight into the handler. We expose\n // only `postMessage` — the SDK never touches other `window.parent`\n // members — and restore the original on teardown.\n const originalParent = window.parent;\n const proxyParent = {\n postMessage: (message: unknown) => {\n void handleInbound(message);\n },\n } as unknown as Window;\n Object.defineProperty(window, 'parent', {\n configurable: true,\n get: () => proxyParent,\n });\n return () => {\n Object.defineProperty(window, 'parent', {\n configurable: true,\n value: originalParent,\n });\n };\n }, [appId, currentWallet, currentService]);\n\n // Re-broadcast when state changes.\n useEffect(() => {\n if (!seenHandshake.current) return;\n window.dispatchEvent(\n new MessageEvent('message', {\n data: {\n kind: 'tangle.app.accountChanged',\n account: currentWallet.address,\n },\n origin: HARNESS_ORIGIN,\n }),\n );\n }, [currentWallet.address]);\n\n useEffect(() => {\n if (!seenHandshake.current || currentWallet.chainId === null) return;\n window.dispatchEvent(\n new MessageEvent('message', {\n data: {\n kind: 'tangle.app.chainChanged',\n chainId: currentWallet.chainId,\n },\n origin: HARNESS_ORIGIN,\n }),\n );\n }, [currentWallet.chainId]);\n\n useEffect(() => {\n if (!seenHandshake.current) return;\n window.dispatchEvent(\n new MessageEvent('message', {\n data: {\n kind: 'tangle.app.serviceContext',\n blueprintId: currentService.blueprintId ?? '0',\n serviceId: currentService.serviceId,\n operators: currentService.operators,\n jobs: currentService.jobs,\n mode: currentService.mode,\n ...(currentService.chain !== null\n ? { chain: currentService.chain }\n : {}),\n },\n origin: HARNESS_ORIGIN,\n }),\n );\n }, [currentService]);\n\n const debugApi = useMemo(\n () => ({\n setWallet: setCurrentWallet,\n setService: setCurrentService,\n callLog,\n }),\n [callLog],\n );\n\n return (\n <>\n {children}\n {showDebugPanel && <DebugPanel api={debugApi} />}\n </>\n );\n};\n\n/**\n * Synthetic origin every harness instance uses. Stable across tests so the\n * iframe SDK + the harness can pin to the same string.\n */\nexport const HARNESS_ORIGIN = 'harness://tangle.local';\n\n// ── Debug panel ──────────────────────────────────────────────────────────────\n\nconst DebugPanel: FC<{\n api: {\n setWallet: (w: WalletSnapshot | ((prev: WalletSnapshot) => WalletSnapshot)) => void;\n setService: (\n s: ServiceSnapshot | ((prev: ServiceSnapshot) => ServiceSnapshot),\n ) => void;\n callLog: readonly CallJobRequest[];\n };\n}> = ({ api }) => {\n const [open, setOpen] = useState(true);\n const [tab, setTab] = useState<'wallet' | 'service' | 'log'>('wallet');\n if (!open) {\n return (\n <button\n type=\"button\"\n onClick={() => setOpen(true)}\n style={debugStyles.collapsedTrigger}\n >\n Debug\n </button>\n );\n }\n return (\n <div style={debugStyles.panel}>\n <header style={debugStyles.header}>\n <strong style={{ fontSize: 11 }}>TANGLE DEV HARNESS</strong>\n <button\n type=\"button\"\n onClick={() => setOpen(false)}\n style={debugStyles.closeButton}\n aria-label=\"Close debug panel\"\n >\n ×\n </button>\n </header>\n <nav style={debugStyles.tabs}>\n {(['wallet', 'service', 'log'] as const).map((t) => (\n <button\n key={t}\n type=\"button\"\n onClick={() => setTab(t)}\n style={{\n ...debugStyles.tab,\n ...(tab === t ? debugStyles.tabActive : {}),\n }}\n >\n {t}\n </button>\n ))}\n </nav>\n <div style={debugStyles.body}>\n {tab === 'wallet' && <WalletTab api={api} />}\n {tab === 'service' && <ServiceTab api={api} />}\n {tab === 'log' && <CallLogTab callLog={api.callLog} />}\n </div>\n </div>\n );\n};\n\nconst WalletTab: FC<{\n api: { setWallet: (w: WalletSnapshot | ((prev: WalletSnapshot) => WalletSnapshot)) => void };\n}> = ({ api }) => {\n const [address, setAddressInput] = useState(\n '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n );\n const [chainId, setChainIdInput] = useState('84532');\n const applyConnect = useCallback(() => {\n api.setWallet({\n address: address as Address,\n chainId: Number(chainId) || null,\n isConnected: true,\n });\n }, [address, chainId, api]);\n const disconnect = useCallback(() => {\n api.setWallet({ address: null, chainId: null, isConnected: false });\n }, [api]);\n return (\n <div>\n <label style={debugStyles.label}>address</label>\n <input\n value={address}\n onChange={(e) => setAddressInput(e.target.value)}\n style={debugStyles.input}\n />\n <label style={debugStyles.label}>chain id</label>\n <input\n value={chainId}\n onChange={(e) => setChainIdInput(e.target.value)}\n style={debugStyles.input}\n />\n <div style={debugStyles.buttonRow}>\n <button type=\"button\" onClick={applyConnect} style={debugStyles.primary}>\n Set connected\n </button>\n <button type=\"button\" onClick={disconnect} style={debugStyles.secondary}>\n Disconnect\n </button>\n </div>\n </div>\n );\n};\n\nconst ServiceTab: FC<{\n api: {\n setService: (\n s: ServiceSnapshot | ((prev: ServiceSnapshot) => ServiceSnapshot),\n ) => void;\n };\n}> = ({ api }) => {\n const [serviceId, setServiceIdInput] = useState('1');\n const [blueprintId, setBlueprintIdInput] = useState('0');\n const apply = useCallback(() => {\n api.setService((prev) => ({\n ...prev,\n serviceId: serviceId || null,\n blueprintId,\n }));\n }, [api, serviceId, blueprintId]);\n const clearService = useCallback(() => {\n api.setService((prev) => ({ ...prev, serviceId: null }));\n }, [api]);\n return (\n <div>\n <label style={debugStyles.label}>blueprint id</label>\n <input\n value={blueprintId}\n onChange={(e) => setBlueprintIdInput(e.target.value)}\n style={debugStyles.input}\n />\n <label style={debugStyles.label}>service id (empty = not deployed)</label>\n <input\n value={serviceId}\n onChange={(e) => setServiceIdInput(e.target.value)}\n style={debugStyles.input}\n />\n <div style={debugStyles.buttonRow}>\n <button type=\"button\" onClick={apply} style={debugStyles.primary}>\n Apply\n </button>\n <button type=\"button\" onClick={clearService} style={debugStyles.secondary}>\n Clear service\n </button>\n </div>\n </div>\n );\n};\n\nconst CallLogTab: FC<{ callLog: readonly CallJobRequest[] }> = ({ callLog }) => {\n if (callLog.length === 0) {\n return <p style={debugStyles.empty}>No callJob requests yet.</p>;\n }\n return (\n <ol style={debugStyles.log}>\n {callLog.map((entry) => (\n <li key={entry.correlationId} style={debugStyles.logEntry}>\n <strong>job {entry.jobIndex}</strong>\n <pre style={debugStyles.pre}>\n {JSON.stringify(entry.inputs, null, 2)}\n </pre>\n </li>\n ))}\n </ol>\n );\n};\n\n// Inline styles keep the harness style-system-agnostic — consumers may not\n// ship Tailwind, and the panel shouldn't add a dependency.\nconst debugStyles = {\n panel: {\n position: 'fixed' as const,\n right: 12,\n top: 12,\n width: 280,\n zIndex: 99999,\n background: '#0b0b14',\n color: '#fff',\n border: '1px solid #3a3a52',\n borderRadius: 10,\n boxShadow: '0 14px 32px rgba(0,0,0,0.4)',\n fontFamily:\n 'ui-monospace, SFMono-Regular, Menlo, Monaco, \"Cascadia Code\", monospace',\n fontSize: 12,\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: '8px 10px',\n borderBottom: '1px solid #2a2a3e',\n },\n closeButton: {\n background: 'none',\n border: 'none',\n color: '#fff',\n fontSize: 18,\n cursor: 'pointer',\n lineHeight: 1,\n },\n tabs: {\n display: 'flex',\n borderBottom: '1px solid #2a2a3e',\n },\n tab: {\n flex: 1,\n background: 'none',\n border: 'none',\n color: '#a0a0c0',\n padding: '6px 8px',\n cursor: 'pointer',\n fontSize: 11,\n textTransform: 'uppercase' as const,\n },\n tabActive: {\n color: '#fff',\n borderBottom: '2px solid #818cf8',\n },\n body: {\n padding: 10,\n maxHeight: 320,\n overflow: 'auto' as const,\n },\n label: {\n display: 'block',\n color: '#a0a0c0',\n fontSize: 10,\n marginBottom: 4,\n marginTop: 6,\n textTransform: 'uppercase' as const,\n },\n input: {\n width: '100%',\n background: '#15152a',\n border: '1px solid #2a2a3e',\n color: '#fff',\n padding: '6px 8px',\n borderRadius: 4,\n fontFamily: 'inherit',\n fontSize: 11,\n boxSizing: 'border-box' as const,\n },\n buttonRow: { display: 'flex', gap: 6, marginTop: 8 },\n primary: {\n flex: 1,\n background: '#4f46e5',\n color: '#fff',\n border: 'none',\n padding: '6px 8px',\n borderRadius: 4,\n cursor: 'pointer',\n fontSize: 11,\n fontFamily: 'inherit',\n },\n secondary: {\n flex: 1,\n background: 'transparent',\n color: '#a0a0c0',\n border: '1px solid #3a3a52',\n padding: '6px 8px',\n borderRadius: 4,\n cursor: 'pointer',\n fontSize: 11,\n fontFamily: 'inherit',\n },\n collapsedTrigger: {\n position: 'fixed' as const,\n right: 12,\n top: 12,\n zIndex: 99999,\n padding: '6px 10px',\n background: '#0b0b14',\n border: '1px solid #3a3a52',\n color: '#fff',\n borderRadius: 6,\n fontFamily: 'inherit',\n fontSize: 11,\n cursor: 'pointer',\n },\n log: { listStyle: 'none', padding: 0, margin: 0 },\n logEntry: {\n padding: 6,\n borderBottom: '1px solid #2a2a3e',\n fontSize: 11,\n },\n pre: {\n margin: '4px 0 0',\n color: '#a0a0c0',\n fontSize: 10,\n whiteSpace: 'pre-wrap' as const,\n wordBreak: 'break-word' as const,\n },\n empty: { color: '#a0a0c0', fontSize: 11, margin: 0 },\n} as const;\n\nexport type { JobInputs };\n"],"mappings":";AAIA;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAyaH,mBAEqB,KAFrB;AArYG,SAAS,WAAW,QAAyB,CAAC,GAAmB;AACtE,SAAO;AAAA,IACL,SACE,MAAM,YAAY,SACd,+CACA,MAAM;AAAA,IACZ,SAAS,MAAM,WAAW;AAAA,IAC1B,aAAa,MAAM,eAAe,MAAM,YAAY;AAAA,EACtD;AACF;AAOO,SAAS,mBACd,QAA0B,CAAC,GACV;AACjB,SAAO;AAAA,IACL,aAAa,MAAM,eAAe;AAAA,IAClC,WAAW,MAAM,cAAc,SAAY,OAAO,MAAM;AAAA,IACxD,WACE,MAAM,aAAa;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IACF,MACE,MAAM,QAAQ;AAAA,MACZ,EAAE,OAAO,GAAG,MAAM,SAAS;AAAA,IAC7B;AAAA,IACF,MAAM,MAAM,QAAQ;AAAA,IACpB,OACE,MAAM,UAAU,SACZ;AA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