@hashgraphonline/standards-agent-kit 0.2.140 → 0.2.141
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/standards-agent-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.141",
|
|
4
4
|
"description": "A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/standards-agent-kit.cjs",
|
|
@@ -545,7 +545,7 @@ export class InscribeHashinalTool
|
|
|
545
545
|
);
|
|
546
546
|
|
|
547
547
|
const txId = (result.result as InscriptionResult)?.transactionId ?? 'unknown';
|
|
548
|
-
|
|
548
|
+
const successResponse = createInscriptionSuccess({
|
|
549
549
|
hrl: hrl || 'hcs://1/unknown',
|
|
550
550
|
topicId: topicId || 'unknown',
|
|
551
551
|
standard: fileStandard === '6' ? 'Dynamic' : 'Static',
|
|
@@ -559,6 +559,19 @@ export class InscribeHashinalTool
|
|
|
559
559
|
attributes: Array.isArray(params.attributes) ? params.attributes : [],
|
|
560
560
|
},
|
|
561
561
|
});
|
|
562
|
+
|
|
563
|
+
// Attach HashLink block for interactive rendering when requested
|
|
564
|
+
if (params.withHashLinkBlocks !== false) {
|
|
565
|
+
try {
|
|
566
|
+
const block = await this.createHashLinkBlock(successResponse);
|
|
567
|
+
(successResponse as unknown as { hashLinkBlock?: unknown }).hashLinkBlock = block;
|
|
568
|
+
} catch (e) {
|
|
569
|
+
const logger = new Logger({ module: 'InscribeHashinalTool' });
|
|
570
|
+
logger.warn('Failed to create HashLink block', e);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
return successResponse;
|
|
562
575
|
} else if (!result.quote && !result.confirmed) {
|
|
563
576
|
const txId = (result.result as InscriptionResult)?.transactionId ?? 'unknown';
|
|
564
577
|
return createInscriptionPending({
|