@t2000/engine 1.2.0 → 1.2.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.
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4576,9 +4576,17 @@ Always prefer the canvas for visualisation requests. After rendering, offer to e
|
|
|
4576
4576
|
async call(input, context) {
|
|
4577
4577
|
const { template, params } = input;
|
|
4578
4578
|
const title = CANVAS_TITLES[template];
|
|
4579
|
+
const ADDRESS_AWARE_TEMPLATES = /* @__PURE__ */ new Set([
|
|
4580
|
+
"full_portfolio",
|
|
4581
|
+
"watch_address",
|
|
4582
|
+
"portfolio_timeline",
|
|
4583
|
+
"spending_breakdown",
|
|
4584
|
+
"activity_heatmap",
|
|
4585
|
+
"health_simulator"
|
|
4586
|
+
]);
|
|
4579
4587
|
let suinsName = null;
|
|
4580
4588
|
let resolvedParamAddress = null;
|
|
4581
|
-
if (params?.address) {
|
|
4589
|
+
if (params?.address && ADDRESS_AWARE_TEMPLATES.has(template)) {
|
|
4582
4590
|
const normalized = await normalizeAddressInput(params.address, {
|
|
4583
4591
|
suiRpcUrl: context.suiRpcUrl,
|
|
4584
4592
|
signal: context.signal
|