@hashgraphonline/standards-agent-kit 0.2.139 → 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",
|
|
@@ -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
|
+
}
|
|
@@ -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({
|