@hashgraphonline/standards-agent-kit 0.2.152 → 0.2.154
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/cjs/standards-agent-kit.cjs +1 -1
- package/dist/cjs/standards-agent-kit.cjs.map +1 -1
- package/dist/es/standards-agent-kit.es24.js +1 -1
- package/dist/es/standards-agent-kit.es25.js +1 -1
- package/dist/es/standards-agent-kit.es26.js +1 -1
- package/dist/es/standards-agent-kit.es27.js +1 -1
- package/dist/es/standards-agent-kit.es28.js +1 -1
- package/dist/es/standards-agent-kit.es31.js +1 -1
- package/dist/es/standards-agent-kit.es32.js +1 -1
- package/dist/es/standards-agent-kit.es33.js +1 -1
- package/dist/es/standards-agent-kit.es36.js +1 -1
- package/dist/es/standards-agent-kit.es37.js +1 -1
- package/dist/es/standards-agent-kit.es38.js +3 -3
- package/dist/es/standards-agent-kit.es39.js +8 -8
- package/dist/es/standards-agent-kit.es39.js.map +1 -1
- package/dist/es/standards-agent-kit.es48.js +7 -3
- package/dist/es/standards-agent-kit.es48.js.map +1 -1
- package/dist/es/standards-agent-kit.es49.js +3 -7
- package/dist/es/standards-agent-kit.es49.js.map +1 -1
- package/dist/es/standards-agent-kit.es50.js +3 -20
- package/dist/es/standards-agent-kit.es50.js.map +1 -1
- package/dist/es/standards-agent-kit.es51.js +17 -50
- package/dist/es/standards-agent-kit.es51.js.map +1 -1
- package/dist/es/standards-agent-kit.es52.js +54 -3
- package/dist/es/standards-agent-kit.es52.js.map +1 -1
- package/dist/es/standards-agent-kit.es53.js +2 -39
- package/dist/es/standards-agent-kit.es53.js.map +1 -1
- package/dist/es/standards-agent-kit.es54.js +38 -17
- package/dist/es/standards-agent-kit.es54.js.map +1 -1
- package/dist/es/standards-agent-kit.es55.js +16 -71
- package/dist/es/standards-agent-kit.es55.js.map +1 -1
- package/dist/es/standards-agent-kit.es56.js +73 -3
- package/dist/es/standards-agent-kit.es56.js.map +1 -1
- package/dist/es/standards-agent-kit.es6.js +1 -1
- package/dist/es/standards-agent-kit.es7.js +1 -1
- package/dist/es/standards-agent-kit.es9.js +1 -1
- package/dist/umd/standards-agent-kit.umd.js +1 -1
- package/dist/umd/standards-agent-kit.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/tools/inscriber/InscribeHashinalTool.ts +9 -3
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.154",
|
|
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",
|
|
@@ -161,7 +161,8 @@ const inscribeHashinalSchema = extendZodSchema(
|
|
|
161
161
|
waitForConfirmation: z
|
|
162
162
|
.boolean()
|
|
163
163
|
.optional()
|
|
164
|
-
.describe('Whether to wait for inscription confirmation')
|
|
164
|
+
.describe('Whether to wait for inscription confirmation')
|
|
165
|
+
.default(true),
|
|
165
166
|
timeoutMs: z
|
|
166
167
|
.number()
|
|
167
168
|
.int()
|
|
@@ -546,7 +547,10 @@ export class InscribeHashinalTool
|
|
|
546
547
|
fileStandard
|
|
547
548
|
);
|
|
548
549
|
|
|
549
|
-
const txId =
|
|
550
|
+
const txId =
|
|
551
|
+
result?.inscription?.tx_id ||
|
|
552
|
+
(result?.result as InscriptionResult)?.transactionId ||
|
|
553
|
+
'unknown';
|
|
550
554
|
const successResponse = createInscriptionSuccess({
|
|
551
555
|
hrl: hrl || 'hcs://1/unknown',
|
|
552
556
|
topicId: topicId || 'unknown',
|
|
@@ -577,7 +581,9 @@ export class InscribeHashinalTool
|
|
|
577
581
|
return successResponse;
|
|
578
582
|
} else if (!result.quote && !result.confirmed) {
|
|
579
583
|
const txId =
|
|
580
|
-
(result.result as InscriptionResult)?.transactionId
|
|
584
|
+
(result.result as InscriptionResult)?.transactionId ||
|
|
585
|
+
result?.inscription?.transactionId ||
|
|
586
|
+
'unknown';
|
|
581
587
|
return createInscriptionPending({
|
|
582
588
|
transactionId: txId,
|
|
583
589
|
details:
|