@hashgraphonline/standards-agent-kit 0.2.1 → 0.2.102
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/builders/hcs10/hcs10-builder.d.ts +4 -0
- package/dist/cjs/builders/hcs2/hcs2-builder.d.ts +50 -0
- package/dist/cjs/builders/hcs2/index.d.ts +1 -0
- package/dist/cjs/builders/index.d.ts +2 -0
- package/dist/cjs/builders/inscriber/index.d.ts +1 -0
- package/dist/cjs/builders/inscriber/inscriber-builder.d.ts +46 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/standards-agent-kit.cjs +1 -1
- package/dist/cjs/standards-agent-kit.cjs.map +1 -1
- package/dist/cjs/tools/hcs10/FindRegistrationsTool.d.ts +4 -4
- package/dist/cjs/tools/hcs10/RegisterAgentTool.d.ts +24 -8
- package/dist/cjs/tools/hcs10/index.d.ts +1 -0
- package/dist/cjs/tools/hcs10/natural-language-mapper.d.ts +19 -0
- package/dist/cjs/tools/hcs2/CreateRegistryTool.d.ts +48 -0
- package/dist/cjs/tools/hcs2/DeleteEntryTool.d.ts +41 -0
- package/dist/cjs/tools/hcs2/MigrateRegistryTool.d.ts +47 -0
- package/dist/cjs/tools/hcs2/QueryRegistryTool.d.ts +47 -0
- package/dist/cjs/tools/hcs2/RegisterEntryTool.d.ts +47 -0
- package/dist/cjs/tools/hcs2/UpdateEntryTool.d.ts +53 -0
- package/dist/cjs/tools/hcs2/base-hcs2-tools.d.ts +28 -0
- package/dist/cjs/tools/hcs2/hcs2-tool-params.d.ts +18 -0
- package/dist/cjs/tools/hcs2/index.d.ts +8 -0
- package/dist/cjs/tools/index.d.ts +2 -0
- package/dist/cjs/tools/inscriber/InscribeFromBufferTool.d.ts +77 -0
- package/dist/cjs/tools/inscriber/InscribeFromFileTool.d.ts +65 -0
- package/dist/cjs/tools/inscriber/InscribeFromUrlTool.d.ts +65 -0
- package/dist/cjs/tools/inscriber/InscribeHashinalTool.d.ts +125 -0
- package/dist/cjs/tools/inscriber/RetrieveInscriptionTool.d.ts +35 -0
- package/dist/cjs/tools/inscriber/base-inscriber-tools.d.ts +28 -0
- package/dist/cjs/tools/inscriber/index.d.ts +7 -0
- package/dist/cjs/tools/inscriber/inscriber-tool-params.d.ts +18 -0
- package/dist/es/builders/hcs10/hcs10-builder.d.ts +4 -0
- package/dist/es/builders/hcs2/hcs2-builder.d.ts +50 -0
- package/dist/es/builders/hcs2/index.d.ts +1 -0
- package/dist/es/builders/index.d.ts +2 -0
- package/dist/es/builders/inscriber/index.d.ts +1 -0
- package/dist/es/builders/inscriber/inscriber-builder.d.ts +46 -0
- package/dist/es/index.d.ts +1 -1
- package/dist/es/standards-agent-kit.es.js +50 -16
- package/dist/es/standards-agent-kit.es.js.map +1 -1
- package/dist/es/standards-agent-kit.es10.js +17 -23
- package/dist/es/standards-agent-kit.es10.js.map +1 -1
- package/dist/es/standards-agent-kit.es11.js +36 -58
- package/dist/es/standards-agent-kit.es11.js.map +1 -1
- package/dist/es/standards-agent-kit.es12.js +43 -18
- package/dist/es/standards-agent-kit.es12.js.map +1 -1
- package/dist/es/standards-agent-kit.es13.js +53 -16
- package/dist/es/standards-agent-kit.es13.js.map +1 -1
- package/dist/es/standards-agent-kit.es14.js +18 -28
- package/dist/es/standards-agent-kit.es14.js.map +1 -1
- package/dist/es/standards-agent-kit.es15.js +26 -12
- package/dist/es/standards-agent-kit.es15.js.map +1 -1
- package/dist/es/standards-agent-kit.es16.js +37 -241
- package/dist/es/standards-agent-kit.es16.js.map +1 -1
- package/dist/es/standards-agent-kit.es17.js +16 -136
- package/dist/es/standards-agent-kit.es17.js.map +1 -1
- package/dist/es/standards-agent-kit.es18.js +154 -27
- package/dist/es/standards-agent-kit.es18.js.map +1 -1
- package/dist/es/standards-agent-kit.es19.js +26 -22
- package/dist/es/standards-agent-kit.es19.js.map +1 -1
- package/dist/es/standards-agent-kit.es2.js +27 -13
- package/dist/es/standards-agent-kit.es2.js.map +1 -1
- package/dist/es/standards-agent-kit.es20.js +42 -3
- package/dist/es/standards-agent-kit.es20.js.map +1 -1
- package/dist/es/standards-agent-kit.es21.js +48 -0
- package/dist/es/standards-agent-kit.es21.js.map +1 -0
- package/dist/es/standards-agent-kit.es22.js +51 -0
- package/dist/es/standards-agent-kit.es22.js.map +1 -0
- package/dist/es/standards-agent-kit.es23.js +45 -0
- package/dist/es/standards-agent-kit.es23.js.map +1 -0
- package/dist/es/standards-agent-kit.es24.js +48 -0
- package/dist/es/standards-agent-kit.es24.js.map +1 -0
- package/dist/es/standards-agent-kit.es25.js +45 -0
- package/dist/es/standards-agent-kit.es25.js.map +1 -0
- package/dist/es/standards-agent-kit.es26.js +32 -0
- package/dist/es/standards-agent-kit.es26.js.map +1 -0
- package/dist/es/standards-agent-kit.es27.js +71 -0
- package/dist/es/standards-agent-kit.es27.js.map +1 -0
- package/dist/es/standards-agent-kit.es28.js +71 -0
- package/dist/es/standards-agent-kit.es28.js.map +1 -0
- package/dist/es/standards-agent-kit.es29.js +79 -0
- package/dist/es/standards-agent-kit.es29.js.map +1 -0
- package/dist/es/standards-agent-kit.es3.js +59 -296
- package/dist/es/standards-agent-kit.es3.js.map +1 -1
- package/dist/es/standards-agent-kit.es30.js +90 -0
- package/dist/es/standards-agent-kit.es30.js.map +1 -0
- package/dist/es/standards-agent-kit.es31.js +45 -0
- package/dist/es/standards-agent-kit.es31.js.map +1 -0
- package/dist/es/standards-agent-kit.es32.js +249 -0
- package/dist/es/standards-agent-kit.es32.js.map +1 -0
- package/dist/es/standards-agent-kit.es33.js +141 -0
- package/dist/es/standards-agent-kit.es33.js.map +1 -0
- package/dist/es/standards-agent-kit.es34.js +33 -0
- package/dist/es/standards-agent-kit.es34.js.map +1 -0
- package/dist/es/standards-agent-kit.es35.js +28 -0
- package/dist/es/standards-agent-kit.es35.js.map +1 -0
- package/dist/es/standards-agent-kit.es36.js +7 -0
- package/dist/es/standards-agent-kit.es36.js.map +1 -0
- package/dist/es/standards-agent-kit.es4.js +44 -20
- package/dist/es/standards-agent-kit.es4.js.map +1 -1
- package/dist/es/standards-agent-kit.es5.js +312 -121
- package/dist/es/standards-agent-kit.es5.js.map +1 -1
- package/dist/es/standards-agent-kit.es6.js +24 -23
- package/dist/es/standards-agent-kit.es6.js.map +1 -1
- package/dist/es/standards-agent-kit.es7.js +220 -20
- package/dist/es/standards-agent-kit.es7.js.map +1 -1
- package/dist/es/standards-agent-kit.es8.js +20 -29
- package/dist/es/standards-agent-kit.es8.js.map +1 -1
- package/dist/es/standards-agent-kit.es9.js +26 -36
- package/dist/es/standards-agent-kit.es9.js.map +1 -1
- package/dist/es/tools/hcs10/FindRegistrationsTool.d.ts +4 -4
- package/dist/es/tools/hcs10/RegisterAgentTool.d.ts +24 -8
- package/dist/es/tools/hcs10/index.d.ts +1 -0
- package/dist/es/tools/hcs10/natural-language-mapper.d.ts +19 -0
- package/dist/es/tools/hcs2/CreateRegistryTool.d.ts +48 -0
- package/dist/es/tools/hcs2/DeleteEntryTool.d.ts +41 -0
- package/dist/es/tools/hcs2/MigrateRegistryTool.d.ts +47 -0
- package/dist/es/tools/hcs2/QueryRegistryTool.d.ts +47 -0
- package/dist/es/tools/hcs2/RegisterEntryTool.d.ts +47 -0
- package/dist/es/tools/hcs2/UpdateEntryTool.d.ts +53 -0
- package/dist/es/tools/hcs2/base-hcs2-tools.d.ts +28 -0
- package/dist/es/tools/hcs2/hcs2-tool-params.d.ts +18 -0
- package/dist/es/tools/hcs2/index.d.ts +8 -0
- package/dist/es/tools/index.d.ts +2 -0
- package/dist/es/tools/inscriber/InscribeFromBufferTool.d.ts +77 -0
- package/dist/es/tools/inscriber/InscribeFromFileTool.d.ts +65 -0
- package/dist/es/tools/inscriber/InscribeFromUrlTool.d.ts +65 -0
- package/dist/es/tools/inscriber/InscribeHashinalTool.d.ts +125 -0
- package/dist/es/tools/inscriber/RetrieveInscriptionTool.d.ts +35 -0
- package/dist/es/tools/inscriber/base-inscriber-tools.d.ts +28 -0
- package/dist/es/tools/inscriber/index.d.ts +7 -0
- package/dist/es/tools/inscriber/inscriber-tool-params.d.ts +18 -0
- package/dist/umd/builders/hcs10/hcs10-builder.d.ts +4 -0
- package/dist/umd/builders/hcs2/hcs2-builder.d.ts +50 -0
- package/dist/umd/builders/hcs2/index.d.ts +1 -0
- package/dist/umd/builders/index.d.ts +2 -0
- package/dist/umd/builders/inscriber/index.d.ts +1 -0
- package/dist/umd/builders/inscriber/inscriber-builder.d.ts +46 -0
- package/dist/umd/index.d.ts +1 -1
- 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/hcs10/FindRegistrationsTool.d.ts +4 -4
- package/dist/umd/tools/hcs10/RegisterAgentTool.d.ts +24 -8
- package/dist/umd/tools/hcs10/index.d.ts +1 -0
- package/dist/umd/tools/hcs10/natural-language-mapper.d.ts +19 -0
- package/dist/umd/tools/hcs2/CreateRegistryTool.d.ts +48 -0
- package/dist/umd/tools/hcs2/DeleteEntryTool.d.ts +41 -0
- package/dist/umd/tools/hcs2/MigrateRegistryTool.d.ts +47 -0
- package/dist/umd/tools/hcs2/QueryRegistryTool.d.ts +47 -0
- package/dist/umd/tools/hcs2/RegisterEntryTool.d.ts +47 -0
- package/dist/umd/tools/hcs2/UpdateEntryTool.d.ts +53 -0
- package/dist/umd/tools/hcs2/base-hcs2-tools.d.ts +28 -0
- package/dist/umd/tools/hcs2/hcs2-tool-params.d.ts +18 -0
- package/dist/umd/tools/hcs2/index.d.ts +8 -0
- package/dist/umd/tools/index.d.ts +2 -0
- package/dist/umd/tools/inscriber/InscribeFromBufferTool.d.ts +77 -0
- package/dist/umd/tools/inscriber/InscribeFromFileTool.d.ts +65 -0
- package/dist/umd/tools/inscriber/InscribeFromUrlTool.d.ts +65 -0
- package/dist/umd/tools/inscriber/InscribeHashinalTool.d.ts +125 -0
- package/dist/umd/tools/inscriber/RetrieveInscriptionTool.d.ts +35 -0
- package/dist/umd/tools/inscriber/base-inscriber-tools.d.ts +28 -0
- package/dist/umd/tools/inscriber/index.d.ts +7 -0
- package/dist/umd/tools/inscriber/inscriber-tool-params.d.ts +18 -0
- package/package.json +32 -30
- package/src/builders/hcs10/hcs10-builder.ts +37 -16
- package/src/builders/hcs2/hcs2-builder.ts +148 -0
- package/src/builders/hcs2/index.ts +1 -0
- package/src/builders/index.ts +3 -1
- package/src/builders/inscriber/index.ts +1 -0
- package/src/builders/inscriber/inscriber-builder.ts +112 -0
- package/src/index.ts +1 -1
- package/src/tools/hcs10/FindRegistrationsTool.ts +19 -4
- package/src/tools/hcs10/RegisterAgentTool.ts +147 -9
- package/src/tools/hcs10/index.ts +2 -1
- package/src/tools/hcs10/natural-language-mapper.ts +194 -0
- package/src/tools/hcs2/CreateRegistryTool.ts +63 -0
- package/src/tools/hcs2/DeleteEntryTool.ts +58 -0
- package/src/tools/hcs2/MigrateRegistryTool.ts +64 -0
- package/src/tools/hcs2/QueryRegistryTool.ts +70 -0
- package/src/tools/hcs2/RegisterEntryTool.ts +63 -0
- package/src/tools/hcs2/UpdateEntryTool.ts +68 -0
- package/src/tools/hcs2/base-hcs2-tools.ts +65 -0
- package/src/tools/hcs2/hcs2-tool-params.ts +21 -0
- package/src/tools/hcs2/index.ts +8 -0
- package/src/tools/index.ts +3 -2
- package/src/tools/inscriber/InscribeFromBufferTool.ts +105 -0
- package/src/tools/inscriber/InscribeFromFileTool.ts +93 -0
- package/src/tools/inscriber/InscribeFromUrlTool.ts +93 -0
- package/src/tools/inscriber/InscribeHashinalTool.ts +117 -0
- package/src/tools/inscriber/RetrieveInscriptionTool.ts +59 -0
- package/src/tools/inscriber/base-inscriber-tools.ts +65 -0
- package/src/tools/inscriber/index.ts +7 -0
- package/src/tools/inscriber/inscriber-tool-params.ts +21 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseInscriberQueryTool } from './base-inscriber-tools';
|
|
3
|
+
import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager';
|
|
4
|
+
/**
|
|
5
|
+
* Schema for inscribing from URL
|
|
6
|
+
*/
|
|
7
|
+
declare const inscribeFromUrlSchema: z.ZodObject<{
|
|
8
|
+
url: z.ZodString;
|
|
9
|
+
mode: z.ZodOptional<z.ZodEnum<["file", "hashinal"]>>;
|
|
10
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
chunkSize: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
waitForConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
url: string;
|
|
17
|
+
tags?: string[] | undefined;
|
|
18
|
+
metadata?: Record<string, unknown> | undefined;
|
|
19
|
+
mode?: "file" | "hashinal" | undefined;
|
|
20
|
+
chunkSize?: number | undefined;
|
|
21
|
+
waitForConfirmation?: boolean | undefined;
|
|
22
|
+
apiKey?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
url: string;
|
|
25
|
+
tags?: string[] | undefined;
|
|
26
|
+
metadata?: Record<string, unknown> | undefined;
|
|
27
|
+
mode?: "file" | "hashinal" | undefined;
|
|
28
|
+
chunkSize?: number | undefined;
|
|
29
|
+
waitForConfirmation?: boolean | undefined;
|
|
30
|
+
apiKey?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Tool for inscribing content from URL
|
|
34
|
+
*/
|
|
35
|
+
export declare class InscribeFromUrlTool extends BaseInscriberQueryTool<typeof inscribeFromUrlSchema> {
|
|
36
|
+
name: string;
|
|
37
|
+
description: string;
|
|
38
|
+
get specificInputSchema(): z.ZodObject<{
|
|
39
|
+
url: z.ZodString;
|
|
40
|
+
mode: z.ZodOptional<z.ZodEnum<["file", "hashinal"]>>;
|
|
41
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
42
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
+
chunkSize: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
waitForConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
url: string;
|
|
48
|
+
tags?: string[] | undefined;
|
|
49
|
+
metadata?: Record<string, unknown> | undefined;
|
|
50
|
+
mode?: "file" | "hashinal" | undefined;
|
|
51
|
+
chunkSize?: number | undefined;
|
|
52
|
+
waitForConfirmation?: boolean | undefined;
|
|
53
|
+
apiKey?: string | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
url: string;
|
|
56
|
+
tags?: string[] | undefined;
|
|
57
|
+
metadata?: Record<string, unknown> | undefined;
|
|
58
|
+
mode?: "file" | "hashinal" | undefined;
|
|
59
|
+
chunkSize?: number | undefined;
|
|
60
|
+
waitForConfirmation?: boolean | undefined;
|
|
61
|
+
apiKey?: string | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
protected executeQuery(params: z.infer<typeof inscribeFromUrlSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseInscriberQueryTool } from './base-inscriber-tools';
|
|
3
|
+
import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager';
|
|
4
|
+
/**
|
|
5
|
+
* Schema for inscribing Hashinal NFT
|
|
6
|
+
*/
|
|
7
|
+
declare const inscribeHashinalSchema: z.ZodObject<{
|
|
8
|
+
url: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
creator: z.ZodString;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
type: z.ZodString;
|
|
13
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
trait_type: z.ZodString;
|
|
15
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
value: string | number;
|
|
18
|
+
trait_type: string;
|
|
19
|
+
}, {
|
|
20
|
+
value: string | number;
|
|
21
|
+
trait_type: string;
|
|
22
|
+
}>, "many">>;
|
|
23
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
|
+
jsonFileURL: z.ZodOptional<z.ZodString>;
|
|
25
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
chunkSize: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
waitForConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
url: string;
|
|
31
|
+
type: string;
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
creator: string;
|
|
35
|
+
tags?: string[] | undefined;
|
|
36
|
+
properties?: Record<string, unknown> | undefined;
|
|
37
|
+
chunkSize?: number | undefined;
|
|
38
|
+
waitForConfirmation?: boolean | undefined;
|
|
39
|
+
apiKey?: string | undefined;
|
|
40
|
+
attributes?: {
|
|
41
|
+
value: string | number;
|
|
42
|
+
trait_type: string;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
jsonFileURL?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
url: string;
|
|
47
|
+
type: string;
|
|
48
|
+
name: string;
|
|
49
|
+
description: string;
|
|
50
|
+
creator: string;
|
|
51
|
+
tags?: string[] | undefined;
|
|
52
|
+
properties?: Record<string, unknown> | undefined;
|
|
53
|
+
chunkSize?: number | undefined;
|
|
54
|
+
waitForConfirmation?: boolean | undefined;
|
|
55
|
+
apiKey?: string | undefined;
|
|
56
|
+
attributes?: {
|
|
57
|
+
value: string | number;
|
|
58
|
+
trait_type: string;
|
|
59
|
+
}[] | undefined;
|
|
60
|
+
jsonFileURL?: string | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
/**
|
|
63
|
+
* Tool for inscribing Hashinal NFTs
|
|
64
|
+
*/
|
|
65
|
+
export declare class InscribeHashinalTool extends BaseInscriberQueryTool<typeof inscribeHashinalSchema> {
|
|
66
|
+
name: string;
|
|
67
|
+
description: string;
|
|
68
|
+
get specificInputSchema(): z.ZodObject<{
|
|
69
|
+
url: z.ZodString;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
creator: z.ZodString;
|
|
72
|
+
description: z.ZodString;
|
|
73
|
+
type: z.ZodString;
|
|
74
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
|
+
trait_type: z.ZodString;
|
|
76
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
value: string | number;
|
|
79
|
+
trait_type: string;
|
|
80
|
+
}, {
|
|
81
|
+
value: string | number;
|
|
82
|
+
trait_type: string;
|
|
83
|
+
}>, "many">>;
|
|
84
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
85
|
+
jsonFileURL: z.ZodOptional<z.ZodString>;
|
|
86
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
87
|
+
chunkSize: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
waitForConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
url: string;
|
|
92
|
+
type: string;
|
|
93
|
+
name: string;
|
|
94
|
+
description: string;
|
|
95
|
+
creator: string;
|
|
96
|
+
tags?: string[] | undefined;
|
|
97
|
+
properties?: Record<string, unknown> | undefined;
|
|
98
|
+
chunkSize?: number | undefined;
|
|
99
|
+
waitForConfirmation?: boolean | undefined;
|
|
100
|
+
apiKey?: string | undefined;
|
|
101
|
+
attributes?: {
|
|
102
|
+
value: string | number;
|
|
103
|
+
trait_type: string;
|
|
104
|
+
}[] | undefined;
|
|
105
|
+
jsonFileURL?: string | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
url: string;
|
|
108
|
+
type: string;
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
creator: string;
|
|
112
|
+
tags?: string[] | undefined;
|
|
113
|
+
properties?: Record<string, unknown> | undefined;
|
|
114
|
+
chunkSize?: number | undefined;
|
|
115
|
+
waitForConfirmation?: boolean | undefined;
|
|
116
|
+
apiKey?: string | undefined;
|
|
117
|
+
attributes?: {
|
|
118
|
+
value: string | number;
|
|
119
|
+
trait_type: string;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
jsonFileURL?: string | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
protected executeQuery(params: z.infer<typeof inscribeHashinalSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
|
|
124
|
+
}
|
|
125
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseInscriberQueryTool } from './base-inscriber-tools';
|
|
3
|
+
import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager';
|
|
4
|
+
/**
|
|
5
|
+
* Schema for retrieving inscription
|
|
6
|
+
*/
|
|
7
|
+
declare const retrieveInscriptionSchema: z.ZodObject<{
|
|
8
|
+
transactionId: z.ZodString;
|
|
9
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
transactionId: string;
|
|
12
|
+
apiKey?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
transactionId: string;
|
|
15
|
+
apiKey?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Tool for retrieving inscriptions
|
|
19
|
+
*/
|
|
20
|
+
export declare class RetrieveInscriptionTool extends BaseInscriberQueryTool<typeof retrieveInscriptionSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
get specificInputSchema(): z.ZodObject<{
|
|
24
|
+
transactionId: z.ZodString;
|
|
25
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
transactionId: string;
|
|
28
|
+
apiKey?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
transactionId: string;
|
|
31
|
+
apiKey?: string | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
protected executeQuery(params: z.infer<typeof retrieveInscriptionSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseHederaTransactionTool, BaseHederaQueryTool, BaseServiceBuilder } from 'hedera-agent-kit';
|
|
2
|
+
import { InscriberBuilder } from '../../builders/inscriber/inscriber-builder';
|
|
3
|
+
import { InscriberTransactionToolParams, InscriberQueryToolParams } from './inscriber-tool-params';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* Base class for Inscriber transaction tools
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class BaseInscriberTransactionTool<T extends z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny> = z.ZodObject<z.ZodRawShape>> extends BaseHederaTransactionTool<T> {
|
|
9
|
+
protected inscriberBuilder: InscriberBuilder;
|
|
10
|
+
namespace: "inscriber";
|
|
11
|
+
constructor(params: InscriberTransactionToolParams);
|
|
12
|
+
/**
|
|
13
|
+
* Override to return the InscriberBuilder
|
|
14
|
+
*/
|
|
15
|
+
protected getServiceBuilder(): BaseServiceBuilder;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Base class for Inscriber query tools
|
|
19
|
+
*/
|
|
20
|
+
export declare abstract class BaseInscriberQueryTool<T extends z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, Record<string, unknown>, Record<string, unknown>> = z.ZodObject<z.ZodRawShape>> extends BaseHederaQueryTool<T> {
|
|
21
|
+
protected inscriberBuilder: InscriberBuilder;
|
|
22
|
+
namespace: "inscriber";
|
|
23
|
+
constructor(params: InscriberQueryToolParams);
|
|
24
|
+
/**
|
|
25
|
+
* Override to return the InscriberBuilder
|
|
26
|
+
*/
|
|
27
|
+
protected getServiceBuilder(): BaseServiceBuilder;
|
|
28
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './base-inscriber-tools';
|
|
2
|
+
export * from './inscriber-tool-params';
|
|
3
|
+
export * from './InscribeFromUrlTool';
|
|
4
|
+
export * from './InscribeFromFileTool';
|
|
5
|
+
export * from './InscribeFromBufferTool';
|
|
6
|
+
export * from './InscribeHashinalTool';
|
|
7
|
+
export * from './RetrieveInscriptionTool';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HederaAgentKit, BasePluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { InscriberBuilder } from '../../builders/inscriber/inscriber-builder';
|
|
3
|
+
/**
|
|
4
|
+
* Parameters for Inscriber transaction tools
|
|
5
|
+
*/
|
|
6
|
+
export interface InscriberTransactionToolParams {
|
|
7
|
+
hederaKit: HederaAgentKit;
|
|
8
|
+
inscriberBuilder: InscriberBuilder;
|
|
9
|
+
logger?: BasePluginContext['logger'];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Parameters for Inscriber query tools
|
|
13
|
+
*/
|
|
14
|
+
export interface InscriberQueryToolParams {
|
|
15
|
+
hederaKit: HederaAgentKit;
|
|
16
|
+
inscriberBuilder: InscriberBuilder;
|
|
17
|
+
logger?: BasePluginContext['logger'];
|
|
18
|
+
}
|
|
@@ -104,6 +104,10 @@ export declare class HCS10Builder extends BaseServiceBuilder {
|
|
|
104
104
|
* Get the network type
|
|
105
105
|
*/
|
|
106
106
|
getNetwork(): StandardNetworkType;
|
|
107
|
+
/**
|
|
108
|
+
* Get state manager instance
|
|
109
|
+
*/
|
|
110
|
+
getStateManager(): IStateManager | undefined;
|
|
107
111
|
/**
|
|
108
112
|
* Get account and signer information
|
|
109
113
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BaseServiceBuilder, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
import { HCS2Client, CreateRegistryOptions, RegisterEntryOptions, UpdateEntryOptions, DeleteEntryOptions, MigrateTopicOptions, QueryRegistryOptions, TopicRegistrationResponse, RegistryOperationResponse, TopicRegistry } from '@hashgraphonline/standards-sdk';
|
|
3
|
+
/**
|
|
4
|
+
* Builder for HCS-2 operations that delegates to HCS2Client
|
|
5
|
+
*/
|
|
6
|
+
export declare class HCS2Builder extends BaseServiceBuilder {
|
|
7
|
+
protected hcs2Client?: HCS2Client;
|
|
8
|
+
constructor(hederaKit: HederaAgentKit);
|
|
9
|
+
/**
|
|
10
|
+
* Get or create HCS-2 client
|
|
11
|
+
*/
|
|
12
|
+
protected getHCS2Client(): Promise<HCS2Client>;
|
|
13
|
+
/**
|
|
14
|
+
* Create a new HCS-2 registry
|
|
15
|
+
* Note: This executes the transaction directly via HCS2Client
|
|
16
|
+
*/
|
|
17
|
+
createRegistry(options?: CreateRegistryOptions): Promise<TopicRegistrationResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Register a new entry in an HCS-2 registry
|
|
20
|
+
*/
|
|
21
|
+
registerEntry(registryTopicId: string, options: RegisterEntryOptions): Promise<RegistryOperationResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Update an existing entry in an HCS-2 registry
|
|
24
|
+
*/
|
|
25
|
+
updateEntry(registryTopicId: string, options: UpdateEntryOptions): Promise<RegistryOperationResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Delete an entry from an HCS-2 registry
|
|
28
|
+
*/
|
|
29
|
+
deleteEntry(registryTopicId: string, options: DeleteEntryOptions): Promise<RegistryOperationResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Migrate an HCS-2 registry to a new topic
|
|
32
|
+
*/
|
|
33
|
+
migrateRegistry(registryTopicId: string, options: MigrateTopicOptions): Promise<RegistryOperationResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Query entries from an HCS-2 registry
|
|
36
|
+
*/
|
|
37
|
+
getRegistry(topicId: string, options?: QueryRegistryOptions): Promise<TopicRegistry>;
|
|
38
|
+
/**
|
|
39
|
+
* Submit a raw message to an HCS-2 topic
|
|
40
|
+
*/
|
|
41
|
+
submitMessage(topicId: string, payload: any): Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* Get topic info from mirror node
|
|
44
|
+
*/
|
|
45
|
+
getTopicInfo(topicId: string): Promise<any>;
|
|
46
|
+
/**
|
|
47
|
+
* Close the HCS-2 client
|
|
48
|
+
*/
|
|
49
|
+
close(): Promise<void>;
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hcs2-builder';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './inscriber-builder';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseServiceBuilder, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
import { InscriptionInput, InscriptionOptions, InscriptionResponse, RetrievedInscriptionResult } from '@hashgraphonline/standards-sdk';
|
|
3
|
+
/**
|
|
4
|
+
* Type definition for DAppSigner since we don't have the actual package
|
|
5
|
+
*/
|
|
6
|
+
interface DAppSigner {
|
|
7
|
+
getAccountId(): {
|
|
8
|
+
toString(): string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for InscriptionSDK since we don't have the actual package
|
|
13
|
+
*/
|
|
14
|
+
interface InscriptionSDK {
|
|
15
|
+
inscribeAndExecute(request: any, config: any): Promise<any>;
|
|
16
|
+
inscribe(request: any, signer: any): Promise<any>;
|
|
17
|
+
waitForInscription(txId: string, maxAttempts: number, intervalMs: number, checkCompletion: boolean, progressCallback?: Function): Promise<any>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Builder for Inscription operations
|
|
21
|
+
*/
|
|
22
|
+
export declare class InscriberBuilder extends BaseServiceBuilder {
|
|
23
|
+
protected inscriptionSDK?: InscriptionSDK;
|
|
24
|
+
constructor(hederaKit: HederaAgentKit);
|
|
25
|
+
/**
|
|
26
|
+
* Get or create Inscription SDK - temporarily returns null since we don't have the actual SDK
|
|
27
|
+
*/
|
|
28
|
+
protected getInscriptionSDK(options: InscriptionOptions): Promise<InscriptionSDK | null>;
|
|
29
|
+
/**
|
|
30
|
+
* Inscribe content using server-side authentication
|
|
31
|
+
*/
|
|
32
|
+
inscribe(input: InscriptionInput, options: InscriptionOptions): Promise<InscriptionResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Inscribe content using a DApp signer
|
|
35
|
+
*/
|
|
36
|
+
inscribeWithSigner(input: InscriptionInput, signer: DAppSigner, options: InscriptionOptions): Promise<InscriptionResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieve an existing inscription
|
|
39
|
+
*/
|
|
40
|
+
retrieveInscription(transactionId: string, options: InscriptionOptions): Promise<RetrievedInscriptionResult>;
|
|
41
|
+
/**
|
|
42
|
+
* Close the inscription SDK
|
|
43
|
+
*/
|
|
44
|
+
close(): Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
package/dist/es/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export * from './tools';
|
|
|
2
2
|
export * from './state';
|
|
3
3
|
export * from './init';
|
|
4
4
|
export * from './plugins';
|
|
5
|
-
export { HCS10Builder } from './builders';
|
|
5
|
+
export { HCS10Builder, HCS2Builder, InscriberBuilder } from './builders';
|
|
6
6
|
export type { ExecuteResult } from './builders';
|
|
7
7
|
export { HCS10Client } from './hcs10';
|
|
@@ -1,42 +1,76 @@
|
|
|
1
1
|
import { HCS10Builder } from "./standards-agent-kit.es2.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
2
|
+
import { HCS2Builder } from "./standards-agent-kit.es3.js";
|
|
3
|
+
import { InscriberBuilder } from "./standards-agent-kit.es4.js";
|
|
4
|
+
import { HCS10Client } from "./standards-agent-kit.es5.js";
|
|
5
|
+
import { BaseHCS10QueryTool, BaseHCS10TransactionTool } from "./standards-agent-kit.es6.js";
|
|
6
|
+
import { RegisterAgentTool } from "./standards-agent-kit.es7.js";
|
|
7
|
+
import { SendMessageToConnectionTool } from "./standards-agent-kit.es8.js";
|
|
8
|
+
import { InitiateConnectionTool } from "./standards-agent-kit.es9.js";
|
|
9
|
+
import { ListConnectionsTool } from "./standards-agent-kit.es10.js";
|
|
10
|
+
import { CheckMessagesTool } from "./standards-agent-kit.es11.js";
|
|
11
|
+
import { FindRegistrationsTool } from "./standards-agent-kit.es12.js";
|
|
12
|
+
import { ConnectionMonitorTool } from "./standards-agent-kit.es13.js";
|
|
13
|
+
import { ManageConnectionRequestsTool } from "./standards-agent-kit.es14.js";
|
|
14
|
+
import { AcceptConnectionRequestTool } from "./standards-agent-kit.es15.js";
|
|
15
|
+
import { RetrieveProfileTool } from "./standards-agent-kit.es16.js";
|
|
16
|
+
import { ListUnapprovedConnectionRequestsTool } from "./standards-agent-kit.es17.js";
|
|
17
|
+
import { NaturalLanguageMapper } from "./standards-agent-kit.es18.js";
|
|
18
|
+
import { BaseHCS2QueryTool, BaseHCS2TransactionTool } from "./standards-agent-kit.es19.js";
|
|
19
|
+
import { CreateRegistryTool } from "./standards-agent-kit.es20.js";
|
|
20
|
+
import { RegisterEntryTool } from "./standards-agent-kit.es21.js";
|
|
21
|
+
import { UpdateEntryTool } from "./standards-agent-kit.es22.js";
|
|
22
|
+
import { DeleteEntryTool } from "./standards-agent-kit.es23.js";
|
|
23
|
+
import { MigrateRegistryTool } from "./standards-agent-kit.es24.js";
|
|
24
|
+
import { QueryRegistryTool } from "./standards-agent-kit.es25.js";
|
|
25
|
+
import { BaseInscriberQueryTool, BaseInscriberTransactionTool } from "./standards-agent-kit.es26.js";
|
|
26
|
+
import { InscribeFromUrlTool } from "./standards-agent-kit.es27.js";
|
|
27
|
+
import { InscribeFromFileTool } from "./standards-agent-kit.es28.js";
|
|
28
|
+
import { InscribeFromBufferTool } from "./standards-agent-kit.es29.js";
|
|
29
|
+
import { InscribeHashinalTool } from "./standards-agent-kit.es30.js";
|
|
30
|
+
import { RetrieveInscriptionTool } from "./standards-agent-kit.es31.js";
|
|
31
|
+
import { OpenConvaiState } from "./standards-agent-kit.es32.js";
|
|
32
|
+
import { initializeStandardsAgentKit } from "./standards-agent-kit.es33.js";
|
|
17
33
|
import { BasePlugin, HederaGetHbarPriceTool, PluginRegistry } from "hedera-agent-kit";
|
|
18
|
-
import { HbarPricePlugin } from "./standards-agent-kit.
|
|
34
|
+
import { HbarPricePlugin } from "./standards-agent-kit.es34.js";
|
|
19
35
|
export {
|
|
20
36
|
AcceptConnectionRequestTool,
|
|
21
37
|
BaseHCS10QueryTool,
|
|
22
38
|
BaseHCS10TransactionTool,
|
|
39
|
+
BaseHCS2QueryTool,
|
|
40
|
+
BaseHCS2TransactionTool,
|
|
41
|
+
BaseInscriberQueryTool,
|
|
42
|
+
BaseInscriberTransactionTool,
|
|
23
43
|
BasePlugin,
|
|
24
44
|
CheckMessagesTool,
|
|
25
45
|
ConnectionMonitorTool,
|
|
46
|
+
CreateRegistryTool,
|
|
47
|
+
DeleteEntryTool,
|
|
26
48
|
FindRegistrationsTool,
|
|
27
49
|
HederaGetHbarPriceTool as GetHbarPriceTool,
|
|
28
50
|
HCS10Builder,
|
|
29
51
|
HCS10Client,
|
|
52
|
+
HCS2Builder,
|
|
30
53
|
HbarPricePlugin,
|
|
31
54
|
InitiateConnectionTool,
|
|
55
|
+
InscribeFromBufferTool,
|
|
56
|
+
InscribeFromFileTool,
|
|
57
|
+
InscribeFromUrlTool,
|
|
58
|
+
InscribeHashinalTool,
|
|
59
|
+
InscriberBuilder,
|
|
32
60
|
ListConnectionsTool,
|
|
33
61
|
ListUnapprovedConnectionRequestsTool,
|
|
34
62
|
ManageConnectionRequestsTool,
|
|
63
|
+
MigrateRegistryTool,
|
|
64
|
+
NaturalLanguageMapper,
|
|
35
65
|
OpenConvaiState,
|
|
36
66
|
PluginRegistry,
|
|
67
|
+
QueryRegistryTool,
|
|
37
68
|
RegisterAgentTool,
|
|
69
|
+
RegisterEntryTool,
|
|
70
|
+
RetrieveInscriptionTool,
|
|
38
71
|
RetrieveProfileTool,
|
|
39
72
|
SendMessageToConnectionTool,
|
|
73
|
+
UpdateEntryTool,
|
|
40
74
|
initializeStandardsAgentKit
|
|
41
75
|
};
|
|
42
76
|
//# sourceMappingURL=standards-agent-kit.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-agent-kit.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"standards-agent-kit.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,46 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"Optional: Filter registrations by a specific Hedera account ID (e.g., 0.0.12345)."
|
|
2
|
+
import { BaseHCS10QueryTool } from "./standards-agent-kit.es6.js";
|
|
3
|
+
const ListConnectionsZodSchema = z.object({
|
|
4
|
+
includeDetails: z.boolean().optional().describe(
|
|
5
|
+
"Whether to include detailed information about each connection"
|
|
7
6
|
),
|
|
8
|
-
|
|
9
|
-
"Optional: Filter registrations by a list of tags (API filter only)."
|
|
10
|
-
)
|
|
7
|
+
showPending: z.boolean().optional().describe("Whether to include pending connection requests")
|
|
11
8
|
});
|
|
12
|
-
class
|
|
9
|
+
class ListConnectionsTool extends BaseHCS10QueryTool {
|
|
13
10
|
constructor(params) {
|
|
14
11
|
super(params);
|
|
15
|
-
this.name = "
|
|
16
|
-
this.description = "
|
|
17
|
-
this.specificInputSchema =
|
|
12
|
+
this.name = "list_connections";
|
|
13
|
+
this.description = "Lists the currently active HCS-10 connections with detailed information. Shows connection status, agent details, and recent activity. Use this to get a comprehensive view of all active connections.";
|
|
14
|
+
this.specificInputSchema = ListConnectionsZodSchema;
|
|
18
15
|
}
|
|
19
|
-
async executeQuery({
|
|
20
|
-
accountId,
|
|
21
|
-
tags
|
|
22
|
-
}) {
|
|
16
|
+
async executeQuery(args) {
|
|
23
17
|
const hcs10Builder = this.hcs10Builder;
|
|
24
18
|
const params = {};
|
|
25
|
-
if (
|
|
26
|
-
params.
|
|
19
|
+
if (args.includeDetails !== void 0) {
|
|
20
|
+
params.includeDetails = args.includeDetails;
|
|
27
21
|
}
|
|
28
|
-
if (
|
|
29
|
-
params.
|
|
22
|
+
if (args.showPending !== void 0) {
|
|
23
|
+
params.showPending = args.showPending;
|
|
30
24
|
}
|
|
31
|
-
await hcs10Builder.
|
|
25
|
+
await hcs10Builder.listConnections(params);
|
|
32
26
|
const result = await hcs10Builder.execute();
|
|
33
27
|
if (result.success && "rawResult" in result && result.rawResult) {
|
|
34
28
|
const raw = result.rawResult;
|
|
35
29
|
return {
|
|
36
30
|
success: true,
|
|
37
|
-
data: raw.formattedOutput || raw.message || "
|
|
31
|
+
data: raw.formattedOutput || raw.message || "Connections listed"
|
|
38
32
|
};
|
|
39
33
|
}
|
|
40
34
|
return result;
|
|
41
35
|
}
|
|
42
36
|
}
|
|
43
37
|
export {
|
|
44
|
-
|
|
38
|
+
ListConnectionsTool
|
|
45
39
|
};
|
|
46
40
|
//# sourceMappingURL=standards-agent-kit.es10.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-agent-kit.es10.js","sources":["../../src/tools/hcs10/
|
|
1
|
+
{"version":3,"file":"standards-agent-kit.es10.js","sources":["../../src/tools/hcs10/ListConnectionsTool.ts"],"sourcesContent":["import { z } from 'zod';\nimport { BaseHCS10QueryTool } from './base-hcs10-tools';\nimport { HCS10QueryToolParams } from './hcs10-tool-params';\n\n/**\n * A tool to list currently active HCS-10 connections stored in the state manager.\n * Enhanced to show more details similar to moonscape's implementation.\n */\nconst ListConnectionsZodSchema = z.object({\n includeDetails: z\n .boolean()\n .optional()\n .describe(\n 'Whether to include detailed information about each connection'\n ),\n showPending: z\n .boolean()\n .optional()\n .describe('Whether to include pending connection requests'),\n});\n\nexport class ListConnectionsTool extends BaseHCS10QueryTool<\n typeof ListConnectionsZodSchema\n> {\n name = 'list_connections';\n description =\n 'Lists the currently active HCS-10 connections with detailed information. Shows connection status, agent details, and recent activity. Use this to get a comprehensive view of all active connections.';\n specificInputSchema = ListConnectionsZodSchema;\n constructor(params: HCS10QueryToolParams) {\n super(params);\n }\n\n protected async executeQuery(\n args: z.infer<typeof ListConnectionsZodSchema>\n ): Promise<unknown> {\n const hcs10Builder = this.hcs10Builder;\n const params: { includeDetails?: boolean; showPending?: boolean } = {};\n if (args.includeDetails !== undefined) {\n params.includeDetails = args.includeDetails;\n }\n if (args.showPending !== undefined) {\n params.showPending = args.showPending;\n }\n await hcs10Builder.listConnections(params);\n\n const result = await hcs10Builder.execute();\n\n if (result.success && 'rawResult' in result && result.rawResult) {\n const raw = result.rawResult as { formattedOutput?: string; message?: string };\n return {\n success: true,\n data: raw.formattedOutput || raw.message || 'Connections listed'\n };\n }\n\n return result;\n }\n}"],"names":[],"mappings":";;AAQA,MAAM,2BAA2B,EAAE,OAAO;AAAA,EACxC,gBAAgB,EACb,UACA,WACA;AAAA,IACC;AAAA,EAAA;AAAA,EAEJ,aAAa,EACV,QAAA,EACA,SAAA,EACA,SAAS,gDAAgD;AAC9D,CAAC;AAEM,MAAM,4BAA4B,mBAEvC;AAAA,EAKA,YAAY,QAA8B;AACxC,UAAM,MAAM;AALd,SAAA,OAAO;AACP,SAAA,cACE;AACF,SAAA,sBAAsB;AAAA,EAGtB;AAAA,EAEA,MAAgB,aACd,MACkB;AAClB,UAAM,eAAe,KAAK;AAC1B,UAAM,SAA8D,CAAA;AACpE,QAAI,KAAK,mBAAmB,QAAW;AACrC,aAAO,iBAAiB,KAAK;AAAA,IAC/B;AACA,QAAI,KAAK,gBAAgB,QAAW;AAClC,aAAO,cAAc,KAAK;AAAA,IAC5B;AACA,UAAM,aAAa,gBAAgB,MAAM;AAEzC,UAAM,SAAS,MAAM,aAAa,QAAA;AAElC,QAAI,OAAO,WAAW,eAAe,UAAU,OAAO,WAAW;AAC/D,YAAM,MAAM,OAAO;AACnB,aAAO;AAAA,QACL,SAAS;AAAA,QACT,MAAM,IAAI,mBAAmB,IAAI,WAAW;AAAA,MAAA;AAAA,IAEhD;AAEA,WAAO;AAAA,EACT;AACF;"}
|