@hashgraphonline/conversational-agent 0.2.215 → 0.2.217
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/cli/readme.md +181 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/SwarmPlugin.d.ts +17 -0
- package/dist/cjs/plugins/community/swarm/__tests__/SwarmPlugin.mocks.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/SwarmPlugin.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.d.ts +14 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadDataTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadFileTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.d.ts +1 -0
- package/dist/cjs/plugins/community/swarm/config.d.ts +6 -0
- package/dist/cjs/plugins/community/swarm/constants.d.ts +8 -0
- package/dist/cjs/plugins/community/swarm/index.d.ts +2 -0
- package/dist/cjs/plugins/community/swarm/model.d.ts +23 -0
- package/dist/cjs/plugins/community/swarm/tools/CreatePostageStampTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/tools/DownloadDataTool.d.ts +35 -0
- package/dist/cjs/plugins/community/swarm/tools/DownloadFilesTool.d.ts +41 -0
- package/dist/cjs/plugins/community/swarm/tools/ExtendPostageStampTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/tools/GetPostageStampTool.d.ts +35 -0
- package/dist/cjs/plugins/community/swarm/tools/ListPostageStampsTool.d.ts +53 -0
- package/dist/cjs/plugins/community/swarm/tools/QueryUploadProgressTool.d.ts +35 -0
- package/dist/cjs/plugins/community/swarm/tools/ReadFeedTool.d.ts +41 -0
- package/dist/cjs/plugins/community/swarm/tools/UpdateFeedTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/tools/UploadDataTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/tools/UploadFileTool.d.ts +53 -0
- package/dist/cjs/plugins/community/swarm/tools/UploadFolderTool.d.ts +47 -0
- package/dist/cjs/plugins/community/swarm/utils.d.ts +22 -0
- package/dist/cjs/plugins/index.d.ts +1 -0
- package/dist/esm/index.js +33 -31
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index10.js +13 -677
- package/dist/esm/index10.js.map +1 -1
- package/dist/esm/index11.js +601 -234
- package/dist/esm/index11.js.map +1 -1
- package/dist/esm/index12.js +296 -136
- package/dist/esm/index12.js.map +1 -1
- package/dist/esm/index13.js +127 -235
- package/dist/esm/index13.js.map +1 -1
- package/dist/esm/index14.js +247 -84
- package/dist/esm/index14.js.map +1 -1
- package/dist/esm/index15.js +81 -159
- package/dist/esm/index15.js.map +1 -1
- package/dist/esm/index16.js +155 -229
- package/dist/esm/index16.js.map +1 -1
- package/dist/esm/index17.js +238 -140
- package/dist/esm/index17.js.map +1 -1
- package/dist/esm/index18.js +139 -493
- package/dist/esm/index18.js.map +1 -1
- package/dist/esm/index19.js +479 -91
- package/dist/esm/index19.js.map +1 -1
- package/dist/esm/index20.js +88 -147
- package/dist/esm/index20.js.map +1 -1
- package/dist/esm/index21.js +127 -666
- package/dist/esm/index21.js.map +1 -1
- package/dist/esm/index22.js +698 -44
- package/dist/esm/index22.js.map +1 -1
- package/dist/esm/index23.js +45 -304
- package/dist/esm/index23.js.map +1 -1
- package/dist/esm/index24.js +303 -153
- package/dist/esm/index24.js.map +1 -1
- package/dist/esm/index25.js +150 -117
- package/dist/esm/index25.js.map +1 -1
- package/dist/esm/index26.js +154 -18
- package/dist/esm/index26.js.map +1 -1
- package/dist/esm/index27.js +18 -22
- package/dist/esm/index27.js.map +1 -1
- package/dist/esm/index28.js +15 -74
- package/dist/esm/index28.js.map +1 -1
- package/dist/esm/index29.js +70 -295
- package/dist/esm/index29.js.map +1 -1
- package/dist/esm/index30.js +279 -100
- package/dist/esm/index30.js.map +1 -1
- package/dist/esm/index31.js +86 -922
- package/dist/esm/index31.js.map +1 -1
- package/dist/esm/index32.js +904 -189
- package/dist/esm/index32.js.map +1 -1
- package/dist/esm/index33.js +185 -1169
- package/dist/esm/index33.js.map +1 -1
- package/dist/esm/index34.js +1218 -112
- package/dist/esm/index34.js.map +1 -1
- package/dist/esm/index35.js +111 -99
- package/dist/esm/index35.js.map +1 -1
- package/dist/esm/index36.js +113 -8
- package/dist/esm/index36.js.map +1 -1
- package/dist/esm/index37.js +8 -45
- package/dist/esm/index37.js.map +1 -1
- package/dist/esm/index38.js +41 -102
- package/dist/esm/index38.js.map +1 -1
- package/dist/esm/index39.js +96 -55
- package/dist/esm/index39.js.map +1 -1
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index40.js +58 -71
- package/dist/esm/index40.js.map +1 -1
- package/dist/esm/index41.js +79 -21
- package/dist/esm/index41.js.map +1 -1
- package/dist/esm/index42.js +21 -5
- package/dist/esm/index42.js.map +1 -1
- package/dist/esm/index43.js +4 -11
- package/dist/esm/index43.js.map +1 -1
- package/dist/esm/index44.js +12 -322
- package/dist/esm/index44.js.map +1 -1
- package/dist/esm/index45.js +280 -142
- package/dist/esm/index45.js.map +1 -1
- package/dist/esm/index46.js +181 -24
- package/dist/esm/index46.js.map +1 -1
- package/dist/esm/index48.js +67 -85
- package/dist/esm/index48.js.map +1 -1
- package/dist/esm/index49.js +75 -0
- package/dist/esm/index49.js.map +1 -0
- package/dist/esm/index5.js +2 -2
- package/dist/esm/index50.js +57 -0
- package/dist/esm/index50.js.map +1 -0
- package/dist/esm/index51.js +103 -0
- package/dist/esm/index51.js.map +1 -0
- package/dist/esm/index52.js +79 -0
- package/dist/esm/index52.js.map +1 -0
- package/dist/esm/index53.js +75 -0
- package/dist/esm/index53.js.map +1 -0
- package/dist/esm/index54.js +124 -0
- package/dist/esm/index54.js.map +1 -0
- package/dist/esm/index55.js +58 -0
- package/dist/esm/index55.js.map +1 -0
- package/dist/esm/index56.js +83 -0
- package/dist/esm/index56.js.map +1 -0
- package/dist/esm/index57.js +100 -0
- package/dist/esm/index57.js.map +1 -0
- package/dist/esm/index58.js +118 -0
- package/dist/esm/index58.js.map +1 -0
- package/dist/esm/index59.js +108 -0
- package/dist/esm/index59.js.map +1 -0
- package/dist/esm/index6.js +132 -833
- package/dist/esm/index6.js.map +1 -1
- package/dist/esm/index60.js +30 -0
- package/dist/esm/index60.js.map +1 -0
- package/dist/esm/index61.js +98 -0
- package/dist/esm/index61.js.map +1 -0
- package/dist/esm/index62.js +131 -0
- package/dist/esm/index62.js.map +1 -0
- package/dist/esm/index63.js +19 -0
- package/dist/esm/index63.js.map +1 -0
- package/dist/esm/index7.js +826 -75
- package/dist/esm/index7.js.map +1 -1
- package/dist/esm/index8.js +91 -13
- package/dist/esm/index8.js.map +1 -1
- package/dist/esm/index9.js +13 -17
- package/dist/esm/index9.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/plugins/community/swarm/SwarmPlugin.d.ts +17 -0
- package/dist/types/plugins/community/swarm/__tests__/SwarmPlugin.mocks.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/SwarmPlugin.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.d.ts +14 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/UploadDataTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/UploadFileTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.d.ts +1 -0
- package/dist/types/plugins/community/swarm/config.d.ts +6 -0
- package/dist/types/plugins/community/swarm/constants.d.ts +8 -0
- package/dist/types/plugins/community/swarm/index.d.ts +2 -0
- package/dist/types/plugins/community/swarm/model.d.ts +23 -0
- package/dist/types/plugins/community/swarm/tools/CreatePostageStampTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/tools/DownloadDataTool.d.ts +35 -0
- package/dist/types/plugins/community/swarm/tools/DownloadFilesTool.d.ts +41 -0
- package/dist/types/plugins/community/swarm/tools/ExtendPostageStampTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/tools/GetPostageStampTool.d.ts +35 -0
- package/dist/types/plugins/community/swarm/tools/ListPostageStampsTool.d.ts +53 -0
- package/dist/types/plugins/community/swarm/tools/QueryUploadProgressTool.d.ts +35 -0
- package/dist/types/plugins/community/swarm/tools/ReadFeedTool.d.ts +41 -0
- package/dist/types/plugins/community/swarm/tools/UpdateFeedTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/tools/UploadDataTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/tools/UploadFileTool.d.ts +53 -0
- package/dist/types/plugins/community/swarm/tools/UploadFolderTool.d.ts +47 -0
- package/dist/types/plugins/community/swarm/utils.d.ts +22 -0
- package/dist/types/plugins/index.d.ts +1 -0
- package/package.json +37 -27
- package/src/index.ts +1 -0
- package/src/plugins/community/swarm/README.md +279 -0
- package/src/plugins/community/swarm/SwarmPlugin.ts +178 -0
- package/src/plugins/community/swarm/__tests__/SwarmPlugin.mocks.ts +105 -0
- package/src/plugins/community/swarm/__tests__/SwarmPlugin.test.ts +93 -0
- package/src/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.ts +152 -0
- package/src/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.ts +93 -0
- package/src/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.ts +163 -0
- package/src/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.ts +132 -0
- package/src/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.ts +83 -0
- package/src/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.ts +219 -0
- package/src/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.ts +169 -0
- package/src/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.ts +133 -0
- package/src/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.ts +67 -0
- package/src/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.ts +148 -0
- package/src/plugins/community/swarm/__tests__/tools/UploadDataTool.test.ts +125 -0
- package/src/plugins/community/swarm/__tests__/tools/UploadFileTool.test.ts +194 -0
- package/src/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.ts +118 -0
- package/src/plugins/community/swarm/config.ts +6 -0
- package/src/plugins/community/swarm/constants.ts +12 -0
- package/src/plugins/community/swarm/index.ts +2 -0
- package/src/plugins/community/swarm/model.ts +23 -0
- package/src/plugins/community/swarm/tools/CreatePostageStampTool.ts +137 -0
- package/src/plugins/community/swarm/tools/DownloadDataTool.ts +79 -0
- package/src/plugins/community/swarm/tools/DownloadFilesTool.ts +155 -0
- package/src/plugins/community/swarm/tools/ExtendPostageStampTool.ts +112 -0
- package/src/plugins/community/swarm/tools/GetPostageStampTool.ts +92 -0
- package/src/plugins/community/swarm/tools/ListPostageStampsTool.ts +124 -0
- package/src/plugins/community/swarm/tools/QueryUploadProgressTool.ts +109 -0
- package/src/plugins/community/swarm/tools/ReadFeedTool.ts +110 -0
- package/src/plugins/community/swarm/tools/UpdateFeedTool.ts +149 -0
- package/src/plugins/community/swarm/tools/UploadDataTool.ts +109 -0
- package/src/plugins/community/swarm/tools/UploadFileTool.ts +163 -0
- package/src/plugins/community/swarm/tools/UploadFolderTool.ts +150 -0
- package/src/plugins/community/swarm/utils.ts +172 -0
- package/src/plugins/index.ts +1 -0
- package/cli/dist/CLIApp.d.ts +0 -11
- package/cli/dist/CLIApp.d.ts.map +0 -1
- package/cli/dist/CLIApp.js +0 -128
- package/cli/dist/CLIApp.js.map +0 -1
- package/cli/dist/LocalConversationalAgent.d.ts +0 -37
- package/cli/dist/LocalConversationalAgent.js +0 -58
- package/cli/dist/app.d.ts +0 -18
- package/cli/dist/app.d.ts.map +0 -1
- package/cli/dist/app.js +0 -14
- package/cli/dist/app.js.map +0 -1
- package/cli/dist/cli.d.ts +0 -3
- package/cli/dist/cli.d.ts.map +0 -1
- package/cli/dist/cli.js +0 -87
- package/cli/dist/cli.js.map +0 -1
- package/cli/dist/components/AppContainer.d.ts +0 -16
- package/cli/dist/components/AppContainer.js +0 -24
- package/cli/dist/components/AppScreens.d.ts +0 -2
- package/cli/dist/components/AppScreens.js +0 -259
- package/cli/dist/components/ChatScreen.d.ts +0 -21
- package/cli/dist/components/ChatScreen.d.ts.map +0 -1
- package/cli/dist/components/ChatScreen.js +0 -40
- package/cli/dist/components/ChatScreen.js.map +0 -1
- package/cli/dist/components/DebugLoadingScreen.d.ts +0 -5
- package/cli/dist/components/DebugLoadingScreen.js +0 -31
- package/cli/dist/components/LoadingScreen.d.ts +0 -3
- package/cli/dist/components/LoadingScreen.d.ts.map +0 -1
- package/cli/dist/components/LoadingScreen.js +0 -17
- package/cli/dist/components/LoadingScreen.js.map +0 -1
- package/cli/dist/components/LoadingScreenDebug.d.ts +0 -5
- package/cli/dist/components/LoadingScreenDebug.js +0 -27
- package/cli/dist/components/MCPConfigScreen.d.ts +0 -28
- package/cli/dist/components/MCPConfigScreen.d.ts.map +0 -1
- package/cli/dist/components/MCPConfigScreen.js +0 -186
- package/cli/dist/components/MCPConfigScreen.js.map +0 -1
- package/cli/dist/components/ScreenRouter.d.ts +0 -13
- package/cli/dist/components/ScreenRouter.d.ts.map +0 -1
- package/cli/dist/components/ScreenRouter.js +0 -23
- package/cli/dist/components/ScreenRouter.js.map +0 -1
- package/cli/dist/components/SetupScreen.d.ts +0 -16
- package/cli/dist/components/SetupScreen.d.ts.map +0 -1
- package/cli/dist/components/SetupScreen.js +0 -67
- package/cli/dist/components/SetupScreen.js.map +0 -1
- package/cli/dist/components/SingleLoadingScreen.d.ts +0 -5
- package/cli/dist/components/SingleLoadingScreen.js +0 -27
- package/cli/dist/components/StatusBadge.d.ts +0 -10
- package/cli/dist/components/StatusBadge.d.ts.map +0 -1
- package/cli/dist/components/StatusBadge.js +0 -24
- package/cli/dist/components/StatusBadge.js.map +0 -1
- package/cli/dist/components/TerminalWindow.d.ts +0 -9
- package/cli/dist/components/TerminalWindow.d.ts.map +0 -1
- package/cli/dist/components/TerminalWindow.js +0 -19
- package/cli/dist/components/TerminalWindow.js.map +0 -1
- package/cli/dist/components/WelcomeScreen.d.ts +0 -12
- package/cli/dist/components/WelcomeScreen.d.ts.map +0 -1
- package/cli/dist/components/WelcomeScreen.js +0 -47
- package/cli/dist/components/WelcomeScreen.js.map +0 -1
- package/cli/dist/context/AppContext.d.ts +0 -68
- package/cli/dist/context/AppContext.js +0 -363
- package/cli/dist/headless-runner.d.ts +0 -17
- package/cli/dist/headless-runner.d.ts.map +0 -1
- package/cli/dist/headless-runner.js +0 -128
- package/cli/dist/headless-runner.js.map +0 -1
- package/cli/dist/hooks/useInitializeAgent.d.ts +0 -19
- package/cli/dist/hooks/useInitializeAgent.d.ts.map +0 -1
- package/cli/dist/hooks/useInitializeAgent.js +0 -29
- package/cli/dist/hooks/useInitializeAgent.js.map +0 -1
- package/cli/dist/hooks/useStableState.d.ts +0 -38
- package/cli/dist/hooks/useStableState.d.ts.map +0 -1
- package/cli/dist/hooks/useStableState.js +0 -69
- package/cli/dist/hooks/useStableState.js.map +0 -1
- package/cli/dist/managers/AgentManager.d.ts +0 -58
- package/cli/dist/managers/AgentManager.d.ts.map +0 -1
- package/cli/dist/managers/AgentManager.js +0 -121
- package/cli/dist/managers/AgentManager.js.map +0 -1
- package/cli/dist/managers/ConfigManager.d.ts +0 -54
- package/cli/dist/managers/ConfigManager.d.ts.map +0 -1
- package/cli/dist/managers/ConfigManager.js +0 -188
- package/cli/dist/managers/ConfigManager.js.map +0 -1
- package/cli/dist/types.d.ts +0 -52
- package/cli/dist/types.d.ts.map +0 -1
- package/cli/dist/types.js +0 -34
- package/cli/dist/types.js.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const ExtendPostageStampSchema: z.ZodObject<{
|
|
8
|
+
postageBatchId: z.ZodString;
|
|
9
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
10
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
postageBatchId: string;
|
|
13
|
+
duration?: string | undefined;
|
|
14
|
+
size?: number | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
postageBatchId: string;
|
|
17
|
+
duration?: string | undefined;
|
|
18
|
+
size?: number | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class ExtendPostageStampTool extends BaseHederaQueryTool<typeof ExtendPostageStampSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
postageBatchId: z.ZodString;
|
|
26
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
27
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
postageBatchId: string;
|
|
30
|
+
duration?: string | undefined;
|
|
31
|
+
size?: number | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
postageBatchId: string;
|
|
34
|
+
duration?: string | undefined;
|
|
35
|
+
size?: number | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
bee: Bee;
|
|
38
|
+
config: SwarmConfig;
|
|
39
|
+
constructor(params: {
|
|
40
|
+
hederaKit: HederaAgentKit;
|
|
41
|
+
config: SwarmConfig;
|
|
42
|
+
logger?: GenericPluginContext['logger'];
|
|
43
|
+
bee: Bee;
|
|
44
|
+
});
|
|
45
|
+
protected executeQuery(input: z.infer<typeof ExtendPostageStampSchema>): Promise<ToolResponse | string>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const GetPostageStampSchema: z.ZodObject<{
|
|
8
|
+
postageBatchId: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
postageBatchId: string;
|
|
11
|
+
}, {
|
|
12
|
+
postageBatchId: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare class GetPostageStampTool extends BaseHederaQueryTool<typeof GetPostageStampSchema> {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
namespace: string;
|
|
18
|
+
specificInputSchema: z.ZodObject<{
|
|
19
|
+
postageBatchId: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
postageBatchId: string;
|
|
22
|
+
}, {
|
|
23
|
+
postageBatchId: string;
|
|
24
|
+
}>;
|
|
25
|
+
bee: Bee;
|
|
26
|
+
config: SwarmConfig;
|
|
27
|
+
constructor(params: {
|
|
28
|
+
hederaKit: HederaAgentKit;
|
|
29
|
+
config: SwarmConfig;
|
|
30
|
+
logger?: GenericPluginContext['logger'];
|
|
31
|
+
bee: Bee;
|
|
32
|
+
});
|
|
33
|
+
protected executeQuery(input: z.infer<typeof GetPostageStampSchema>): Promise<ToolResponse | string>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const ListPostageStampsSchema: z.ZodObject<{
|
|
8
|
+
leastUsed: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
minUsage: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
maxUsage: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
leastUsed?: boolean | undefined;
|
|
15
|
+
minUsage?: number | undefined;
|
|
16
|
+
maxUsage?: number | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
limit?: number | undefined;
|
|
19
|
+
leastUsed?: boolean | undefined;
|
|
20
|
+
minUsage?: number | undefined;
|
|
21
|
+
maxUsage?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare class ListPostageStampsTool extends BaseHederaQueryTool<typeof ListPostageStampsSchema> {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
namespace: string;
|
|
27
|
+
specificInputSchema: z.ZodObject<{
|
|
28
|
+
leastUsed: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
minUsage: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
maxUsage: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
limit?: number | undefined;
|
|
34
|
+
leastUsed?: boolean | undefined;
|
|
35
|
+
minUsage?: number | undefined;
|
|
36
|
+
maxUsage?: number | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
limit?: number | undefined;
|
|
39
|
+
leastUsed?: boolean | undefined;
|
|
40
|
+
minUsage?: number | undefined;
|
|
41
|
+
maxUsage?: number | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
bee: Bee;
|
|
44
|
+
config: SwarmConfig;
|
|
45
|
+
constructor(params: {
|
|
46
|
+
hederaKit: HederaAgentKit;
|
|
47
|
+
config: SwarmConfig;
|
|
48
|
+
logger?: GenericPluginContext['logger'];
|
|
49
|
+
bee: Bee;
|
|
50
|
+
});
|
|
51
|
+
protected executeQuery(input: z.infer<typeof ListPostageStampsSchema>): Promise<ToolResponse | string>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const QueryUploadProgressSchema: z.ZodObject<{
|
|
8
|
+
tagId: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
tagId: string;
|
|
11
|
+
}, {
|
|
12
|
+
tagId: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare class QueryUploadProgressTool extends BaseHederaQueryTool<typeof QueryUploadProgressSchema> {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
namespace: string;
|
|
18
|
+
specificInputSchema: z.ZodObject<{
|
|
19
|
+
tagId: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
tagId: string;
|
|
22
|
+
}, {
|
|
23
|
+
tagId: string;
|
|
24
|
+
}>;
|
|
25
|
+
bee: Bee;
|
|
26
|
+
config: SwarmConfig;
|
|
27
|
+
constructor(params: {
|
|
28
|
+
hederaKit: HederaAgentKit;
|
|
29
|
+
config: SwarmConfig;
|
|
30
|
+
logger?: GenericPluginContext['logger'];
|
|
31
|
+
bee: Bee;
|
|
32
|
+
});
|
|
33
|
+
protected executeQuery(input: z.infer<typeof QueryUploadProgressSchema>): Promise<ToolResponse | string>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ToolResponse } from '../utils';
|
|
4
|
+
import { BaseHederaQueryTool, GenericPluginContext, HederaAgentKit } from 'hedera-agent-kit';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const ReadFeedSchema: z.ZodObject<{
|
|
8
|
+
memoryTopic: z.ZodString;
|
|
9
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
memoryTopic: string;
|
|
12
|
+
owner?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
memoryTopic: string;
|
|
15
|
+
owner?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare class ReadFeedTool extends BaseHederaQueryTool<typeof ReadFeedSchema> {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
namespace: string;
|
|
21
|
+
specificInputSchema: z.ZodObject<{
|
|
22
|
+
memoryTopic: z.ZodString;
|
|
23
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
memoryTopic: string;
|
|
26
|
+
owner?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
memoryTopic: string;
|
|
29
|
+
owner?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
bee: Bee;
|
|
32
|
+
config: SwarmConfig;
|
|
33
|
+
constructor(params: {
|
|
34
|
+
hederaKit: HederaAgentKit;
|
|
35
|
+
config: SwarmConfig;
|
|
36
|
+
logger?: GenericPluginContext['logger'];
|
|
37
|
+
bee: Bee;
|
|
38
|
+
});
|
|
39
|
+
protected executeQuery(input: z.infer<typeof ReadFeedSchema>): Promise<ToolResponse | string>;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const UpdateFeedSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodString;
|
|
9
|
+
memoryTopic: z.ZodString;
|
|
10
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
data: string;
|
|
13
|
+
memoryTopic: string;
|
|
14
|
+
postageBatchId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
data: string;
|
|
17
|
+
memoryTopic: string;
|
|
18
|
+
postageBatchId?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class UpdateFeedTool extends BaseHederaQueryTool<typeof UpdateFeedSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
data: z.ZodString;
|
|
26
|
+
memoryTopic: z.ZodString;
|
|
27
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
data: string;
|
|
30
|
+
memoryTopic: string;
|
|
31
|
+
postageBatchId?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
data: string;
|
|
34
|
+
memoryTopic: string;
|
|
35
|
+
postageBatchId?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
bee: Bee;
|
|
38
|
+
config: SwarmConfig;
|
|
39
|
+
constructor(params: {
|
|
40
|
+
hederaKit: HederaAgentKit;
|
|
41
|
+
config: SwarmConfig;
|
|
42
|
+
logger?: GenericPluginContext['logger'];
|
|
43
|
+
bee: Bee;
|
|
44
|
+
});
|
|
45
|
+
protected executeQuery(input: z.infer<typeof UpdateFeedSchema>): Promise<ToolResponse | string>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const UploadDataSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodString;
|
|
9
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
data: string;
|
|
13
|
+
redundancyLevel?: number | undefined;
|
|
14
|
+
postageBatchId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
data: string;
|
|
17
|
+
redundancyLevel?: number | undefined;
|
|
18
|
+
postageBatchId?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class UploadDataTool extends BaseHederaQueryTool<typeof UploadDataSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
data: z.ZodString;
|
|
26
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
data: string;
|
|
30
|
+
redundancyLevel?: number | undefined;
|
|
31
|
+
postageBatchId?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
data: string;
|
|
34
|
+
redundancyLevel?: number | undefined;
|
|
35
|
+
postageBatchId?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
bee: Bee;
|
|
38
|
+
config: SwarmConfig;
|
|
39
|
+
constructor(params: {
|
|
40
|
+
hederaKit: HederaAgentKit;
|
|
41
|
+
config: SwarmConfig;
|
|
42
|
+
logger?: GenericPluginContext['logger'];
|
|
43
|
+
bee: Bee;
|
|
44
|
+
});
|
|
45
|
+
protected executeQuery(input: z.infer<typeof UploadDataSchema>): Promise<ToolResponse | string>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const UploadFileSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodString;
|
|
9
|
+
isPath: z.ZodBoolean;
|
|
10
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
data: string;
|
|
14
|
+
isPath: boolean;
|
|
15
|
+
redundancyLevel?: number | undefined;
|
|
16
|
+
postageBatchId?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
data: string;
|
|
19
|
+
isPath: boolean;
|
|
20
|
+
redundancyLevel?: number | undefined;
|
|
21
|
+
postageBatchId?: string | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare class UploadFileTool extends BaseHederaQueryTool<typeof UploadFileSchema> {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
namespace: string;
|
|
27
|
+
specificInputSchema: z.ZodObject<{
|
|
28
|
+
data: z.ZodString;
|
|
29
|
+
isPath: z.ZodBoolean;
|
|
30
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
data: string;
|
|
34
|
+
isPath: boolean;
|
|
35
|
+
redundancyLevel?: number | undefined;
|
|
36
|
+
postageBatchId?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
data: string;
|
|
39
|
+
isPath: boolean;
|
|
40
|
+
redundancyLevel?: number | undefined;
|
|
41
|
+
postageBatchId?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
bee: Bee;
|
|
44
|
+
config: SwarmConfig;
|
|
45
|
+
constructor(params: {
|
|
46
|
+
hederaKit: HederaAgentKit;
|
|
47
|
+
config: SwarmConfig;
|
|
48
|
+
logger?: GenericPluginContext['logger'];
|
|
49
|
+
bee: Bee;
|
|
50
|
+
});
|
|
51
|
+
protected executeQuery(input: z.infer<typeof UploadFileSchema>): Promise<ToolResponse | string>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
|
|
2
|
+
import { Bee } from '@ethersphere/bee-js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ToolResponse } from '../utils';
|
|
5
|
+
import { SwarmConfig } from '../config';
|
|
6
|
+
|
|
7
|
+
declare const UploadFolderSchema: z.ZodObject<{
|
|
8
|
+
folderPath: z.ZodString;
|
|
9
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
folderPath: string;
|
|
13
|
+
redundancyLevel?: number | undefined;
|
|
14
|
+
postageBatchId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
folderPath: string;
|
|
17
|
+
redundancyLevel?: number | undefined;
|
|
18
|
+
postageBatchId?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class UploadFolderTool extends BaseHederaQueryTool<typeof UploadFolderSchema> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
namespace: string;
|
|
24
|
+
specificInputSchema: z.ZodObject<{
|
|
25
|
+
folderPath: z.ZodString;
|
|
26
|
+
redundancyLevel: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
postageBatchId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
folderPath: string;
|
|
30
|
+
redundancyLevel?: number | undefined;
|
|
31
|
+
postageBatchId?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
folderPath: string;
|
|
34
|
+
redundancyLevel?: number | undefined;
|
|
35
|
+
postageBatchId?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
bee: Bee;
|
|
38
|
+
config: SwarmConfig;
|
|
39
|
+
constructor(params: {
|
|
40
|
+
hederaKit: HederaAgentKit;
|
|
41
|
+
config: SwarmConfig;
|
|
42
|
+
logger?: GenericPluginContext['logger'];
|
|
43
|
+
bee: Bee;
|
|
44
|
+
});
|
|
45
|
+
protected executeQuery(input: z.infer<typeof UploadFolderSchema>): Promise<ToolResponse | string>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Bee, PostageBatch } from '@ethersphere/bee-js';
|
|
2
|
+
import { PostageBatchCurated, PostageBatchSummary } from './model';
|
|
3
|
+
import { SwarmConfig } from './config';
|
|
4
|
+
|
|
5
|
+
export interface ToolResponse {
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
tools?: {
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
_meta?: {
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function hexToBytes(hex: string): Uint8Array;
|
|
16
|
+
export declare const getBatchSummary: (batch: PostageBatch | PostageBatchCurated) => PostageBatchSummary;
|
|
17
|
+
export declare const getResponseWithStructuredContent: <T>(data: T) => ToolResponse;
|
|
18
|
+
export declare const errorHasStatus: (error: unknown, status: number) => boolean;
|
|
19
|
+
export declare const getErrorMessage: (error: unknown) => string;
|
|
20
|
+
export declare const runWithTimeout: <T>(asyncAction: Promise<T>, timeout: number) => Promise<[unknown, boolean]>;
|
|
21
|
+
export declare const getUploadPostageBatchId: (argsPostageBatchId: string | undefined, bee: Bee, config: SwarmConfig) => Promise<string>;
|
|
22
|
+
export declare function makeDate(numberWithUnit: string): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/conversational-agent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.217",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/cjs/index.cjs",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -28,6 +28,30 @@
|
|
|
28
28
|
"LICENSE",
|
|
29
29
|
"README.md"
|
|
30
30
|
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"test": "jest --detectOpenHandles",
|
|
33
|
+
"test:integration": "jest tests/integration",
|
|
34
|
+
"clean": "rimraf dist",
|
|
35
|
+
"build:es": "BUILD_FORMAT=es vite build",
|
|
36
|
+
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
37
|
+
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
38
|
+
"build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs",
|
|
39
|
+
"build:all": "pnpm run build && pnpm run cli:build",
|
|
40
|
+
"prepublishOnly": "pnpm run build",
|
|
41
|
+
"release": "pnpm publish --access public",
|
|
42
|
+
"release:canary": "pnpm run prepublishOnly && pnpm publish --tag canary --access public",
|
|
43
|
+
"version:canary": "pnpm version prerelease --preid canary --no-git-tag-version",
|
|
44
|
+
"publish:canary": "pnpm run version:canary && pnpm run release:canary",
|
|
45
|
+
"lint": "eslint .",
|
|
46
|
+
"lint:fix": "eslint . --fix",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"cli:build": "cd cli && pnpm install && pnpm build",
|
|
49
|
+
"cli": "tsx cli/scripts/run-cli.ts",
|
|
50
|
+
"cli:dev": "cd cli && pnpm dev",
|
|
51
|
+
"example:mcp-filesystem": "tsx examples/mcp-filesystem-demo.ts",
|
|
52
|
+
"example:mcp-multi": "tsx examples/mcp-multi-server-demo.ts",
|
|
53
|
+
"postinstall": "bash -c 'if [ \"$SKIP_CLI_POSTINSTALL\" = \"1\" ]; then exit 0; fi; cd cli && pnpm install --silent 2>/dev/null || true'"
|
|
54
|
+
},
|
|
31
55
|
"keywords": [
|
|
32
56
|
"hedera",
|
|
33
57
|
"hashgraph",
|
|
@@ -74,10 +98,12 @@
|
|
|
74
98
|
"fsevents": "2.3.3"
|
|
75
99
|
},
|
|
76
100
|
"dependencies": {
|
|
101
|
+
"@ethereumjs/wallet": "^10.0.0",
|
|
102
|
+
"@ethersphere/bee-js": "^10.1.1",
|
|
77
103
|
"@hashgraph/sdk": "^2.72.0",
|
|
78
|
-
"@hashgraphonline/hashinal-wc": "
|
|
79
|
-
"@hashgraphonline/standards-agent-kit": "^0.2.
|
|
80
|
-
"@hashgraphonline/standards-sdk": "0.1.
|
|
104
|
+
"@hashgraphonline/hashinal-wc": "2.0.1",
|
|
105
|
+
"@hashgraphonline/standards-agent-kit": "^0.2.164",
|
|
106
|
+
"@hashgraphonline/standards-sdk": "0.1.136",
|
|
81
107
|
"@langchain/anthropic": "^0.3.28",
|
|
82
108
|
"@langchain/core": "^0.3.77",
|
|
83
109
|
"@langchain/openai": "^0.6.13",
|
|
@@ -103,27 +129,11 @@
|
|
|
103
129
|
"url": "https://github.com/hashgraph-online/conversational-agent/issues"
|
|
104
130
|
},
|
|
105
131
|
"homepage": "https://github.com/hashgraph-online/conversational-agent#readme",
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
113
|
-
"build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs",
|
|
114
|
-
"build:all": "pnpm run build && pnpm run cli:build",
|
|
115
|
-
"release": "pnpm publish --access public",
|
|
116
|
-
"release:canary": "pnpm run prepublishOnly && pnpm publish --tag canary --access public",
|
|
117
|
-
"version:canary": "pnpm version prerelease --preid canary --no-git-tag-version",
|
|
118
|
-
"publish:canary": "pnpm run version:canary && pnpm run release:canary",
|
|
119
|
-
"lint": "eslint .",
|
|
120
|
-
"lint:fix": "eslint . --fix",
|
|
121
|
-
"typecheck": "tsc --noEmit",
|
|
122
|
-
"cli:build": "cd cli && pnpm install && pnpm build",
|
|
123
|
-
"cli": "tsx cli/scripts/run-cli.ts",
|
|
124
|
-
"cli:dev": "cd cli && pnpm dev",
|
|
125
|
-
"example:mcp-filesystem": "tsx examples/mcp-filesystem-demo.ts",
|
|
126
|
-
"example:mcp-multi": "tsx examples/mcp-multi-server-demo.ts",
|
|
127
|
-
"postinstall": "cd cli && pnpm install --silent 2>/dev/null || true"
|
|
132
|
+
"packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912",
|
|
133
|
+
"pnpm": {
|
|
134
|
+
"overrides": {
|
|
135
|
+
"@hashgraph/sdk": "2.72.0",
|
|
136
|
+
"use-sync-external-store": "1.5.0"
|
|
137
|
+
}
|
|
128
138
|
}
|
|
129
|
-
}
|
|
139
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { HCS10Plugin } from './plugins/hcs-10/HCS10Plugin';
|
|
|
2
2
|
export { HCS2Plugin } from './plugins/hcs-2/HCS2Plugin';
|
|
3
3
|
export { InscribePlugin } from './plugins/inscribe/InscribePlugin';
|
|
4
4
|
export { HbarPlugin } from './plugins/hbar/HbarPlugin';
|
|
5
|
+
export { SwarmPlugin, type SwarmConfig } from './plugins/community/swarm';
|
|
5
6
|
export { HCS10Plugin as OpenConvAIPlugin } from './plugins/hcs-10/HCS10Plugin';
|
|
6
7
|
export { ConversationalAgent } from './conversational-agent';
|
|
7
8
|
export type { ConversationalAgentOptions } from './conversational-agent';
|