@hashgraphonline/standards-agent-kit 0.2.127 → 0.2.129
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/InscribeFromBufferTool.d.ts +2 -10
- package/dist/cjs/tools/inscriber/InscribeHashinalTool.d.ts +62 -30
- package/dist/cjs/utils/content-resolver.d.ts +10 -0
- package/dist/cjs/utils/metadata-defaults.d.ts +18 -0
- package/dist/cjs/validation/content-ref-schemas.d.ts +9 -0
- package/dist/cjs/validation/hip412-schemas.d.ts +125 -0
- package/dist/es/standards-agent-kit.es36.js +11 -63
- package/dist/es/standards-agent-kit.es36.js.map +1 -1
- package/dist/es/standards-agent-kit.es37.js +159 -33
- package/dist/es/standards-agent-kit.es37.js.map +1 -1
- package/dist/es/standards-agent-kit.es44.js +57 -0
- package/dist/es/standards-agent-kit.es44.js.map +1 -0
- package/dist/es/standards-agent-kit.es45.js +6 -0
- package/dist/es/standards-agent-kit.es45.js.map +1 -0
- package/dist/es/standards-agent-kit.es46.js +43 -0
- package/dist/es/standards-agent-kit.es46.js.map +1 -0
- package/dist/es/standards-agent-kit.es47.js +15 -0
- package/dist/es/standards-agent-kit.es47.js.map +1 -0
- package/dist/es/tools/inscriber/InscribeFromBufferTool.d.ts +2 -10
- package/dist/es/tools/inscriber/InscribeHashinalTool.d.ts +62 -30
- package/dist/es/utils/content-resolver.d.ts +10 -0
- package/dist/es/utils/metadata-defaults.d.ts +18 -0
- package/dist/es/validation/content-ref-schemas.d.ts +9 -0
- package/dist/es/validation/hip412-schemas.d.ts +125 -0
- 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/InscribeFromBufferTool.d.ts +2 -10
- package/dist/umd/tools/inscriber/InscribeHashinalTool.d.ts +62 -30
- package/dist/umd/utils/content-resolver.d.ts +10 -0
- package/dist/umd/utils/metadata-defaults.d.ts +18 -0
- package/dist/umd/validation/content-ref-schemas.d.ts +9 -0
- package/dist/umd/validation/hip412-schemas.d.ts +125 -0
- package/package.json +34 -31
- package/src/tools/inscriber/InscribeFromBufferTool.ts +30 -133
- package/src/tools/inscriber/InscribeHashinalTool.ts +271 -46
- package/src/utils/content-resolver.ts +87 -0
- package/src/utils/metadata-defaults.ts +25 -0
- package/src/validation/content-ref-schemas.ts +20 -0
- package/src/validation/hip412-schemas.ts +52 -0
|
@@ -2,10 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
import { BaseInscriberQueryTool } from './base-inscriber-tools';
|
|
3
3
|
import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager';
|
|
4
4
|
declare const inscribeFromBufferSchema: z.ZodObject<{
|
|
5
|
-
base64Data: z.ZodString
|
|
5
|
+
base64Data: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
6
6
|
fileName: z.ZodString;
|
|
7
7
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
8
|
-
mode: z.ZodOptional<z.ZodEnum<["file", "hashinal"]>>;
|
|
9
8
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
9
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
10
|
chunkSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -20,7 +19,6 @@ declare const inscribeFromBufferSchema: z.ZodObject<{
|
|
|
20
19
|
tags?: string[] | undefined;
|
|
21
20
|
metadata?: Record<string, unknown> | undefined;
|
|
22
21
|
mimeType?: string | undefined;
|
|
23
|
-
mode?: "file" | "hashinal" | undefined;
|
|
24
22
|
chunkSize?: number | undefined;
|
|
25
23
|
waitForConfirmation?: boolean | undefined;
|
|
26
24
|
timeoutMs?: number | undefined;
|
|
@@ -31,7 +29,6 @@ declare const inscribeFromBufferSchema: z.ZodObject<{
|
|
|
31
29
|
tags?: string[] | undefined;
|
|
32
30
|
metadata?: Record<string, unknown> | undefined;
|
|
33
31
|
mimeType?: string | undefined;
|
|
34
|
-
mode?: "file" | "hashinal" | undefined;
|
|
35
32
|
chunkSize?: number | undefined;
|
|
36
33
|
waitForConfirmation?: boolean | undefined;
|
|
37
34
|
timeoutMs?: number | undefined;
|
|
@@ -43,10 +40,9 @@ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeo
|
|
|
43
40
|
description: string;
|
|
44
41
|
private config;
|
|
45
42
|
get specificInputSchema(): z.ZodObject<{
|
|
46
|
-
base64Data: z.ZodString
|
|
43
|
+
base64Data: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
47
44
|
fileName: z.ZodString;
|
|
48
45
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
49
|
-
mode: z.ZodOptional<z.ZodEnum<["file", "hashinal"]>>;
|
|
50
46
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
51
47
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
52
48
|
chunkSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -61,7 +57,6 @@ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeo
|
|
|
61
57
|
tags?: string[] | undefined;
|
|
62
58
|
metadata?: Record<string, unknown> | undefined;
|
|
63
59
|
mimeType?: string | undefined;
|
|
64
|
-
mode?: "file" | "hashinal" | undefined;
|
|
65
60
|
chunkSize?: number | undefined;
|
|
66
61
|
waitForConfirmation?: boolean | undefined;
|
|
67
62
|
timeoutMs?: number | undefined;
|
|
@@ -72,7 +67,6 @@ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeo
|
|
|
72
67
|
tags?: string[] | undefined;
|
|
73
68
|
metadata?: Record<string, unknown> | undefined;
|
|
74
69
|
mimeType?: string | undefined;
|
|
75
|
-
mode?: "file" | "hashinal" | undefined;
|
|
76
70
|
chunkSize?: number | undefined;
|
|
77
71
|
waitForConfirmation?: boolean | undefined;
|
|
78
72
|
timeoutMs?: number | undefined;
|
|
@@ -84,7 +78,5 @@ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeo
|
|
|
84
78
|
private validateContent;
|
|
85
79
|
private executeInscription;
|
|
86
80
|
private formatInscriptionResult;
|
|
87
|
-
private resolveContent;
|
|
88
|
-
private handleDirectContent;
|
|
89
81
|
}
|
|
90
82
|
export {};
|
|
@@ -5,11 +5,15 @@ import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager';
|
|
|
5
5
|
* Schema for inscribing Hashinal NFT
|
|
6
6
|
*/
|
|
7
7
|
declare const inscribeHashinalSchema: z.ZodObject<{
|
|
8
|
-
url: z.ZodString
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9
|
+
contentRef: z.ZodOptional<z.ZodString>;
|
|
10
|
+
base64Data: z.ZodOptional<z.ZodString>;
|
|
11
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
12
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
13
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
15
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16
|
+
type: z.ZodOptional<z.ZodString>;
|
|
13
17
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
18
|
trait_type: z.ZodString;
|
|
15
19
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
@@ -22,6 +26,7 @@ declare const inscribeHashinalSchema: z.ZodObject<{
|
|
|
22
26
|
}>, "many">>;
|
|
23
27
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
28
|
jsonFileURL: z.ZodOptional<z.ZodString>;
|
|
29
|
+
fileStandard: z.ZodDefault<z.ZodOptional<z.ZodEnum<["1", "6"]>>>;
|
|
25
30
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
31
|
chunkSize: z.ZodOptional<z.ZodNumber>;
|
|
27
32
|
waitForConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -29,41 +34,51 @@ declare const inscribeHashinalSchema: z.ZodObject<{
|
|
|
29
34
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
30
35
|
quoteOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31
36
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
url: string;
|
|
33
|
-
type: string;
|
|
34
|
-
name: string;
|
|
35
|
-
description: string;
|
|
36
|
-
creator: string;
|
|
37
37
|
quoteOnly: boolean;
|
|
38
|
+
fileStandard: "1" | "6";
|
|
39
|
+
url?: string | undefined;
|
|
40
|
+
type?: string | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
description?: string | undefined;
|
|
38
43
|
tags?: string[] | undefined;
|
|
44
|
+
creator?: string | undefined;
|
|
39
45
|
properties?: Record<string, unknown> | undefined;
|
|
46
|
+
mimeType?: string | undefined;
|
|
40
47
|
chunkSize?: number | undefined;
|
|
41
48
|
waitForConfirmation?: boolean | undefined;
|
|
42
49
|
timeoutMs?: number | undefined;
|
|
43
50
|
apiKey?: string | undefined;
|
|
51
|
+
fileName?: string | undefined;
|
|
52
|
+
base64Data?: string | undefined;
|
|
44
53
|
attributes?: {
|
|
45
54
|
value: string | number;
|
|
46
55
|
trait_type: string;
|
|
47
56
|
}[] | undefined;
|
|
57
|
+
contentRef?: string | undefined;
|
|
48
58
|
jsonFileURL?: string | undefined;
|
|
49
59
|
}, {
|
|
50
|
-
url
|
|
51
|
-
type
|
|
52
|
-
name
|
|
53
|
-
description
|
|
54
|
-
creator: string;
|
|
60
|
+
url?: string | undefined;
|
|
61
|
+
type?: string | undefined;
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
description?: string | undefined;
|
|
55
64
|
tags?: string[] | undefined;
|
|
65
|
+
creator?: string | undefined;
|
|
56
66
|
properties?: Record<string, unknown> | undefined;
|
|
67
|
+
mimeType?: string | undefined;
|
|
57
68
|
chunkSize?: number | undefined;
|
|
58
69
|
waitForConfirmation?: boolean | undefined;
|
|
59
70
|
timeoutMs?: number | undefined;
|
|
60
71
|
apiKey?: string | undefined;
|
|
61
72
|
quoteOnly?: boolean | undefined;
|
|
73
|
+
fileName?: string | undefined;
|
|
74
|
+
base64Data?: string | undefined;
|
|
62
75
|
attributes?: {
|
|
63
76
|
value: string | number;
|
|
64
77
|
trait_type: string;
|
|
65
78
|
}[] | undefined;
|
|
79
|
+
contentRef?: string | undefined;
|
|
66
80
|
jsonFileURL?: string | undefined;
|
|
81
|
+
fileStandard?: "1" | "6" | undefined;
|
|
67
82
|
}>;
|
|
68
83
|
/**
|
|
69
84
|
* Tool for inscribing Hashinal NFTs
|
|
@@ -72,11 +87,15 @@ export declare class InscribeHashinalTool extends BaseInscriberQueryTool<typeof
|
|
|
72
87
|
name: string;
|
|
73
88
|
description: string;
|
|
74
89
|
get specificInputSchema(): z.ZodObject<{
|
|
75
|
-
url: z.ZodString
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
url: z.ZodOptional<z.ZodString>;
|
|
91
|
+
contentRef: z.ZodOptional<z.ZodString>;
|
|
92
|
+
base64Data: z.ZodOptional<z.ZodString>;
|
|
93
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
94
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
95
|
+
name: z.ZodOptional<z.ZodString>;
|
|
96
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
98
|
+
type: z.ZodOptional<z.ZodString>;
|
|
80
99
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
100
|
trait_type: z.ZodString;
|
|
82
101
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
@@ -89,6 +108,7 @@ export declare class InscribeHashinalTool extends BaseInscriberQueryTool<typeof
|
|
|
89
108
|
}>, "many">>;
|
|
90
109
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
91
110
|
jsonFileURL: z.ZodOptional<z.ZodString>;
|
|
111
|
+
fileStandard: z.ZodDefault<z.ZodOptional<z.ZodEnum<["1", "6"]>>>;
|
|
92
112
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
93
113
|
chunkSize: z.ZodOptional<z.ZodNumber>;
|
|
94
114
|
waitForConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -96,42 +116,54 @@ export declare class InscribeHashinalTool extends BaseInscriberQueryTool<typeof
|
|
|
96
116
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
97
117
|
quoteOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
98
118
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
url: string;
|
|
100
|
-
type: string;
|
|
101
|
-
name: string;
|
|
102
|
-
description: string;
|
|
103
|
-
creator: string;
|
|
104
119
|
quoteOnly: boolean;
|
|
120
|
+
fileStandard: "1" | "6";
|
|
121
|
+
url?: string | undefined;
|
|
122
|
+
type?: string | undefined;
|
|
123
|
+
name?: string | undefined;
|
|
124
|
+
description?: string | undefined;
|
|
105
125
|
tags?: string[] | undefined;
|
|
126
|
+
creator?: string | undefined;
|
|
106
127
|
properties?: Record<string, unknown> | undefined;
|
|
128
|
+
mimeType?: string | undefined;
|
|
107
129
|
chunkSize?: number | undefined;
|
|
108
130
|
waitForConfirmation?: boolean | undefined;
|
|
109
131
|
timeoutMs?: number | undefined;
|
|
110
132
|
apiKey?: string | undefined;
|
|
133
|
+
fileName?: string | undefined;
|
|
134
|
+
base64Data?: string | undefined;
|
|
111
135
|
attributes?: {
|
|
112
136
|
value: string | number;
|
|
113
137
|
trait_type: string;
|
|
114
138
|
}[] | undefined;
|
|
139
|
+
contentRef?: string | undefined;
|
|
115
140
|
jsonFileURL?: string | undefined;
|
|
116
141
|
}, {
|
|
117
|
-
url
|
|
118
|
-
type
|
|
119
|
-
name
|
|
120
|
-
description
|
|
121
|
-
creator: string;
|
|
142
|
+
url?: string | undefined;
|
|
143
|
+
type?: string | undefined;
|
|
144
|
+
name?: string | undefined;
|
|
145
|
+
description?: string | undefined;
|
|
122
146
|
tags?: string[] | undefined;
|
|
147
|
+
creator?: string | undefined;
|
|
123
148
|
properties?: Record<string, unknown> | undefined;
|
|
149
|
+
mimeType?: string | undefined;
|
|
124
150
|
chunkSize?: number | undefined;
|
|
125
151
|
waitForConfirmation?: boolean | undefined;
|
|
126
152
|
timeoutMs?: number | undefined;
|
|
127
153
|
apiKey?: string | undefined;
|
|
128
154
|
quoteOnly?: boolean | undefined;
|
|
155
|
+
fileName?: string | undefined;
|
|
156
|
+
base64Data?: string | undefined;
|
|
129
157
|
attributes?: {
|
|
130
158
|
value: string | number;
|
|
131
159
|
trait_type: string;
|
|
132
160
|
}[] | undefined;
|
|
161
|
+
contentRef?: string | undefined;
|
|
133
162
|
jsonFileURL?: string | undefined;
|
|
163
|
+
fileStandard?: "1" | "6" | undefined;
|
|
134
164
|
}>;
|
|
135
165
|
protected executeQuery(params: z.infer<typeof inscribeHashinalSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
|
|
166
|
+
private resolveContent;
|
|
167
|
+
private handleDirectContent;
|
|
136
168
|
}
|
|
137
169
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ContentResolutionResult {
|
|
2
|
+
buffer: Buffer;
|
|
3
|
+
mimeType?: string;
|
|
4
|
+
fileName?: string;
|
|
5
|
+
wasReference?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Resolves content from various input formats (content-ref, base64, plain text)
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveContent(input: string, providedMimeType?: string, providedFileName?: string): Promise<ContentResolutionResult>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates default metadata for NFT inscription
|
|
3
|
+
*/
|
|
4
|
+
export declare function generateDefaultMetadata(params: {
|
|
5
|
+
name?: string;
|
|
6
|
+
creator?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
fileName?: string;
|
|
10
|
+
mimeType?: string;
|
|
11
|
+
operatorAccount: string;
|
|
12
|
+
}): {
|
|
13
|
+
name: string;
|
|
14
|
+
creator: string;
|
|
15
|
+
description: string;
|
|
16
|
+
type: string;
|
|
17
|
+
image: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Validates content reference format
|
|
4
|
+
*/
|
|
5
|
+
export declare const contentRefSchema: z.ZodString;
|
|
6
|
+
/**
|
|
7
|
+
* Validates content reference or returns error for dumber models
|
|
8
|
+
*/
|
|
9
|
+
export declare function validateContentRef(input: string): string;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* HIP-412 file schema for multi-file NFTs
|
|
4
|
+
*/
|
|
5
|
+
export declare const hip412FileSchema: z.ZodObject<{
|
|
6
|
+
uri: z.ZodString;
|
|
7
|
+
checksum: z.ZodOptional<z.ZodString>;
|
|
8
|
+
is_default_file: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
type: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: string;
|
|
12
|
+
uri: string;
|
|
13
|
+
checksum?: string | undefined;
|
|
14
|
+
is_default_file?: boolean | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
type: string;
|
|
17
|
+
uri: string;
|
|
18
|
+
checksum?: string | undefined;
|
|
19
|
+
is_default_file?: boolean | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* HIP-412 attribute schema for NFT traits
|
|
23
|
+
*/
|
|
24
|
+
export declare const hip412AttributeSchema: z.ZodObject<{
|
|
25
|
+
trait_type: z.ZodString;
|
|
26
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
27
|
+
display_type: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
value: string | number;
|
|
30
|
+
trait_type: string;
|
|
31
|
+
display_type?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
value: string | number;
|
|
34
|
+
trait_type: string;
|
|
35
|
+
display_type?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* HIP-412 compliant metadata schema for Hedera NFTs
|
|
39
|
+
*/
|
|
40
|
+
export declare const hip412MetadataSchema: z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
description: z.ZodString;
|
|
43
|
+
image: z.ZodString;
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
46
|
+
creatorDID: z.ZodOptional<z.ZodString>;
|
|
47
|
+
checksum: z.ZodOptional<z.ZodString>;
|
|
48
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
49
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
+
uri: z.ZodString;
|
|
51
|
+
checksum: z.ZodOptional<z.ZodString>;
|
|
52
|
+
is_default_file: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
type: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
type: string;
|
|
56
|
+
uri: string;
|
|
57
|
+
checksum?: string | undefined;
|
|
58
|
+
is_default_file?: boolean | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
type: string;
|
|
61
|
+
uri: string;
|
|
62
|
+
checksum?: string | undefined;
|
|
63
|
+
is_default_file?: boolean | undefined;
|
|
64
|
+
}>, "many">>;
|
|
65
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
+
trait_type: z.ZodString;
|
|
67
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
68
|
+
display_type: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
value: string | number;
|
|
71
|
+
trait_type: string;
|
|
72
|
+
display_type?: string | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
value: string | number;
|
|
75
|
+
trait_type: string;
|
|
76
|
+
display_type?: string | undefined;
|
|
77
|
+
}>, "many">>;
|
|
78
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
type: string;
|
|
81
|
+
image: string;
|
|
82
|
+
name: string;
|
|
83
|
+
description: string;
|
|
84
|
+
format: string;
|
|
85
|
+
creator?: string | undefined;
|
|
86
|
+
properties?: Record<string, unknown> | undefined;
|
|
87
|
+
checksum?: string | undefined;
|
|
88
|
+
creatorDID?: string | undefined;
|
|
89
|
+
files?: {
|
|
90
|
+
type: string;
|
|
91
|
+
uri: string;
|
|
92
|
+
checksum?: string | undefined;
|
|
93
|
+
is_default_file?: boolean | undefined;
|
|
94
|
+
}[] | undefined;
|
|
95
|
+
attributes?: {
|
|
96
|
+
value: string | number;
|
|
97
|
+
trait_type: string;
|
|
98
|
+
display_type?: string | undefined;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
type: string;
|
|
102
|
+
image: string;
|
|
103
|
+
name: string;
|
|
104
|
+
description: string;
|
|
105
|
+
creator?: string | undefined;
|
|
106
|
+
properties?: Record<string, unknown> | undefined;
|
|
107
|
+
checksum?: string | undefined;
|
|
108
|
+
creatorDID?: string | undefined;
|
|
109
|
+
format?: string | undefined;
|
|
110
|
+
files?: {
|
|
111
|
+
type: string;
|
|
112
|
+
uri: string;
|
|
113
|
+
checksum?: string | undefined;
|
|
114
|
+
is_default_file?: boolean | undefined;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
attributes?: {
|
|
117
|
+
value: string | number;
|
|
118
|
+
trait_type: string;
|
|
119
|
+
display_type?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
/**
|
|
123
|
+
* Validates metadata against HIP-412 standard
|
|
124
|
+
*/
|
|
125
|
+
export declare function validateHIP412Metadata(metadata: any): z.infer<typeof hip412MetadataSchema>;
|
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.129",
|
|
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,6 +21,33 @@
|
|
|
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
|
+
},
|
|
24
51
|
"keywords": [
|
|
25
52
|
"hedera",
|
|
26
53
|
"hcs10",
|
|
@@ -63,10 +90,10 @@
|
|
|
63
90
|
},
|
|
64
91
|
"dependencies": {
|
|
65
92
|
"@hashgraph/sdk": "^2.69.0",
|
|
66
|
-
"@hashgraphonline/standards-sdk": "
|
|
67
|
-
"@langchain/community": "^0.3.
|
|
68
|
-
"@langchain/core": "^0.3.
|
|
69
|
-
"@langchain/openai": "^0.6.
|
|
93
|
+
"@hashgraphonline/standards-sdk": "0.0.181",
|
|
94
|
+
"@langchain/community": "^0.3.5",
|
|
95
|
+
"@langchain/core": "^0.3.7",
|
|
96
|
+
"@langchain/openai": "^0.6.7",
|
|
70
97
|
"@octokit/rest": "^21.1.1",
|
|
71
98
|
"axios": "^1.11.0",
|
|
72
99
|
"chromadb": "^2.4.6",
|
|
@@ -101,29 +128,5 @@
|
|
|
101
128
|
"vite-plugin-node-polyfills": "^0.23.0",
|
|
102
129
|
"vite-plugin-string-replace": "^1.1.3"
|
|
103
130
|
},
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
"build:es": "BUILD_FORMAT=es vite build",
|
|
107
|
-
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
108
|
-
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
109
|
-
"build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs && pnpm run build:umd",
|
|
110
|
-
"test": "jest",
|
|
111
|
-
"lint": "eslint . --ext .ts",
|
|
112
|
-
"lint:fix": "eslint . --ext .ts --fix",
|
|
113
|
-
"release": "pnpm publish --access public",
|
|
114
|
-
"release:canary": "pnpm run prepublishOnly && pnpm publish --tag canary --access public",
|
|
115
|
-
"version:canary": "pnpm version prerelease --preid canary --no-git-tag-version",
|
|
116
|
-
"publish:canary": "pnpm run version:canary && pnpm run release:canary",
|
|
117
|
-
"demo:cli": "tsx examples/cli-demo.ts",
|
|
118
|
-
"demo:interactive": "tsx examples/interactive-demo.ts",
|
|
119
|
-
"demo:langchain": "tsx examples/langchain-demo.ts",
|
|
120
|
-
"demo:plugin": "tsx examples/plugin-system-example.ts",
|
|
121
|
-
"demo:plugin:weather": "tsx examples/plugins/weather/index.ts",
|
|
122
|
-
"demo:plugin:defi": "tsx examples/plugins/defi/index.ts",
|
|
123
|
-
"demo:plugin:openconvai": "tsx examples/openconvai-plugin-example.ts",
|
|
124
|
-
"demo:inscription-quotes": "tsx examples/inscription-quote-demo.ts",
|
|
125
|
-
"standards-agent:start": "tsx examples/standards-expert/cli.ts -- start",
|
|
126
|
-
"standards-agent:process-docs": "tsx examples/standards-expert/cli.ts -- process-docs --all-repos",
|
|
127
|
-
"typecheck": "tsc --noEmit"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
131
|
+
"packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912"
|
|
132
|
+
}
|