@hashgraphonline/standards-agent-kit 0.2.138 → 0.2.140
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/cjs/tools/inscriber/InscribeHashinalTool.d.ts +3 -3
- 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 +15 -7
- package/dist/es/standards-agent-kit.es38.js.map +1 -1
- 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.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/tools/inscriber/InscribeHashinalTool.d.ts +3 -3
- package/dist/umd/standards-agent-kit.umd.js +1 -1
- package/dist/umd/standards-agent-kit.umd.js.map +1 -1
- package/dist/umd/tools/inscriber/InscribeHashinalTool.d.ts +3 -3
- package/package.json +26 -34
- package/src/tools/inscriber/InscribeFromBufferTool.ts +16 -4
- package/src/tools/inscriber/InscribeHashinalTool.ts +3 -3
|
@@ -67,14 +67,14 @@ export declare class InscribeHashinalTool extends BaseInscriberQueryTool impleme
|
|
|
67
67
|
* const testnetClient = Client.forTestnet();
|
|
68
68
|
* const tool = new InscribeHashinalTool(testnetClient);
|
|
69
69
|
* const block = await tool.createHashLinkBlock(inscriptionResponse);
|
|
70
|
-
*
|
|
71
|
-
*
|
|
70
|
+
* const id = block.blockId; // '0.0.6617393'
|
|
71
|
+
* const link = block.hashLink; // 'hcs://12/0.0.6617393'
|
|
72
72
|
*
|
|
73
73
|
* // Mainnet usage (automatic detection from client)
|
|
74
74
|
* const mainnetClient = Client.forMainnet();
|
|
75
75
|
* const tool = new InscribeHashinalTool(mainnetClient);
|
|
76
76
|
* const block = await tool.createHashLinkBlock(inscriptionResponse);
|
|
77
|
-
*
|
|
77
|
+
* const mainnetId = block.blockId; // Network-specific mainnet block ID
|
|
78
78
|
*
|
|
79
79
|
* // HashLink Block Response Structure:
|
|
80
80
|
* {
|
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.140",
|
|
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",
|
|
@@ -21,33 +21,6 @@
|
|
|
21
21
|
"LICENSE",
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"clean": "rimraf dist",
|
|
26
|
-
"build:es": "BUILD_FORMAT=es vite build",
|
|
27
|
-
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
28
|
-
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
29
|
-
"build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs && pnpm run build:umd",
|
|
30
|
-
"test": "jest",
|
|
31
|
-
"lint": "eslint . --ext .ts",
|
|
32
|
-
"lint:fix": "eslint . --ext .ts --fix",
|
|
33
|
-
"prepare": "pnpm run build",
|
|
34
|
-
"prepublishOnly": "pnpm run build",
|
|
35
|
-
"release": "pnpm publish --access public",
|
|
36
|
-
"release:canary": "pnpm run prepublishOnly && pnpm publish --tag canary --access public",
|
|
37
|
-
"version:canary": "pnpm version prerelease --preid canary --no-git-tag-version",
|
|
38
|
-
"publish:canary": "pnpm run version:canary && pnpm run release:canary",
|
|
39
|
-
"demo:cli": "tsx examples/cli-demo.ts",
|
|
40
|
-
"demo:interactive": "tsx examples/interactive-demo.ts",
|
|
41
|
-
"demo:langchain": "tsx examples/langchain-demo.ts",
|
|
42
|
-
"demo:plugin": "tsx examples/plugin-system-example.ts",
|
|
43
|
-
"demo:plugin:weather": "tsx examples/plugins/weather/index.ts",
|
|
44
|
-
"demo:plugin:defi": "tsx examples/plugins/defi/index.ts",
|
|
45
|
-
"demo:plugin:openconvai": "tsx examples/openconvai-plugin-example.ts",
|
|
46
|
-
"demo:inscription-quotes": "tsx examples/inscription-quote-demo.ts",
|
|
47
|
-
"standards-agent:start": "tsx examples/standards-expert/cli.ts -- start",
|
|
48
|
-
"standards-agent:process-docs": "tsx examples/standards-expert/cli.ts -- process-docs --all-repos",
|
|
49
|
-
"typecheck": "tsc --noEmit"
|
|
50
|
-
},
|
|
51
24
|
"keywords": [
|
|
52
25
|
"hedera",
|
|
53
26
|
"hcs10",
|
|
@@ -129,10 +102,29 @@
|
|
|
129
102
|
"vite-plugin-node-polyfills": "^0.23.0",
|
|
130
103
|
"vite-plugin-string-replace": "^1.1.3"
|
|
131
104
|
},
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
105
|
+
"scripts": {
|
|
106
|
+
"clean": "rimraf dist",
|
|
107
|
+
"build:es": "BUILD_FORMAT=es vite build",
|
|
108
|
+
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
109
|
+
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
110
|
+
"build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs && pnpm run build:umd",
|
|
111
|
+
"test": "jest",
|
|
112
|
+
"lint": "eslint . --ext .ts",
|
|
113
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
114
|
+
"release": "pnpm publish --access public",
|
|
115
|
+
"release:canary": "pnpm run prepublishOnly && pnpm publish --tag canary --access public",
|
|
116
|
+
"version:canary": "pnpm version prerelease --preid canary --no-git-tag-version",
|
|
117
|
+
"publish:canary": "pnpm run version:canary && pnpm run release:canary",
|
|
118
|
+
"demo:cli": "tsx examples/cli-demo.ts",
|
|
119
|
+
"demo:interactive": "tsx examples/interactive-demo.ts",
|
|
120
|
+
"demo:langchain": "tsx examples/langchain-demo.ts",
|
|
121
|
+
"demo:plugin": "tsx examples/plugin-system-example.ts",
|
|
122
|
+
"demo:plugin:weather": "tsx examples/plugins/weather/index.ts",
|
|
123
|
+
"demo:plugin:defi": "tsx examples/plugins/defi/index.ts",
|
|
124
|
+
"demo:plugin:openconvai": "tsx examples/openconvai-plugin-example.ts",
|
|
125
|
+
"demo:inscription-quotes": "tsx examples/inscription-quote-demo.ts",
|
|
126
|
+
"standards-agent:start": "tsx examples/standards-expert/cli.ts -- start",
|
|
127
|
+
"standards-agent:process-docs": "tsx examples/standards-expert/cli.ts -- process-docs --all-repos",
|
|
128
|
+
"typecheck": "tsc --noEmit"
|
|
137
129
|
}
|
|
138
|
-
}
|
|
130
|
+
}
|
|
@@ -137,7 +137,11 @@ export class InscribeFromBufferTool extends BaseInscriberQueryTool<
|
|
|
137
137
|
params.mimeType,
|
|
138
138
|
params.fileName
|
|
139
139
|
);
|
|
140
|
-
|
|
140
|
+
this.logger?.debug(
|
|
141
|
+
`[InscribeFromBufferTool] Resolved content bytes: ${
|
|
142
|
+
resolvedContent.buffer?.length ?? -1
|
|
143
|
+
}`
|
|
144
|
+
);
|
|
141
145
|
|
|
142
146
|
try {
|
|
143
147
|
this.validateContent(resolvedContent.buffer);
|
|
@@ -212,7 +216,9 @@ export class InscribeFromBufferTool extends BaseInscriberQueryTool<
|
|
|
212
216
|
}
|
|
213
217
|
|
|
214
218
|
try {
|
|
215
|
-
|
|
219
|
+
this.logger?.debug(
|
|
220
|
+
`[InscribeFromBufferTool] Calling inscribe with fileName: ${resolvedFileName}, mime: ${resolvedMimeType}`
|
|
221
|
+
);
|
|
216
222
|
const result = await this.executeInscription(
|
|
217
223
|
buffer,
|
|
218
224
|
resolvedFileName,
|
|
@@ -220,10 +226,16 @@ export class InscribeFromBufferTool extends BaseInscriberQueryTool<
|
|
|
220
226
|
options,
|
|
221
227
|
params.timeoutMs
|
|
222
228
|
);
|
|
223
|
-
|
|
229
|
+
this.logger?.debug(
|
|
230
|
+
`[InscribeFromBufferTool] Inscribe result (confirmed): ${Boolean((result as any)?.confirmed)}`
|
|
231
|
+
);
|
|
224
232
|
return this.formatInscriptionResult(result, options);
|
|
225
233
|
} catch (error) {
|
|
226
|
-
|
|
234
|
+
this.logger?.warn(
|
|
235
|
+
`[InscribeFromBufferTool] Error during inscription: ${
|
|
236
|
+
error instanceof Error ? error.message : String(error)
|
|
237
|
+
}`
|
|
238
|
+
);
|
|
227
239
|
const errorMessage =
|
|
228
240
|
error instanceof Error
|
|
229
241
|
? error.message
|
|
@@ -597,14 +597,14 @@ export class InscribeHashinalTool
|
|
|
597
597
|
* const testnetClient = Client.forTestnet();
|
|
598
598
|
* const tool = new InscribeHashinalTool(testnetClient);
|
|
599
599
|
* const block = await tool.createHashLinkBlock(inscriptionResponse);
|
|
600
|
-
*
|
|
601
|
-
*
|
|
600
|
+
* const id = block.blockId; // '0.0.6617393'
|
|
601
|
+
* const link = block.hashLink; // 'hcs://12/0.0.6617393'
|
|
602
602
|
*
|
|
603
603
|
* // Mainnet usage (automatic detection from client)
|
|
604
604
|
* const mainnetClient = Client.forMainnet();
|
|
605
605
|
* const tool = new InscribeHashinalTool(mainnetClient);
|
|
606
606
|
* const block = await tool.createHashLinkBlock(inscriptionResponse);
|
|
607
|
-
*
|
|
607
|
+
* const mainnetId = block.blockId; // Network-specific mainnet block ID
|
|
608
608
|
*
|
|
609
609
|
* // HashLink Block Response Structure:
|
|
610
610
|
* {
|